From 7d6dedca86fbe6f8b4ad104bf0a7d8b8dc5f8c5e Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 4 Jul 2023 16:09:16 +0300 Subject: [PATCH 001/307] upgdared to sdk0.47 --- Dockerfile | 2 +- Makefile | 10 + app/ante_handler.go | 20 +- app/app.go | 245 +- app/ccv_msg_filter_add.go | 2 +- app/export.go | 8 +- app/proposals_allowlist_test.go | 10 +- app/proposals_allowlisting.go | 17 +- app/simulation_test.go | 195 +- app/upgrades/v3/constants.go | 2 +- buf.work.yaml | 9 + cmd/neutrond/consumer.go | 8 +- cmd/neutrond/genaccounts.go | 4 +- cmd/neutrond/main.go | 2 +- cmd/neutrond/root.go | 54 +- config.yml | 40 +- docs/static/openapi.yml | 52969 ++++++++++------ go.mod | 205 +- go.sum | 3217 +- network/hermes/config.toml | 2 +- network/init-neutrond.sh | 2 +- network/init.sh | 16 +- proto/buf.gen.gogo.yml | 8 + proto/buf.lock | 33 + proto/buf.yaml | 26 + .../contractmanager/genesis.proto | 2 +- .../contractmanager/params.proto | 0 .../{ => neutron}/contractmanager/query.proto | 4 +- proto/{ => neutron}/cron/genesis.proto | 4 +- proto/{ => neutron}/cron/params.proto | 0 proto/{ => neutron}/cron/query.proto | 4 +- proto/{ => neutron}/cron/schedule.proto | 0 proto/{ => neutron}/cron/tx.proto | 0 proto/{ => neutron}/feeburner/genesis.proto | 4 +- proto/{ => neutron}/feeburner/params.proto | 0 proto/{ => neutron}/feeburner/query.proto | 4 +- .../total_burned_neutrons_amount.proto | 0 proto/{ => neutron}/feerefunder/fee.proto | 0 proto/{ => neutron}/feerefunder/genesis.proto | 4 +- proto/{ => neutron}/feerefunder/params.proto | 2 +- proto/{ => neutron}/feerefunder/query.proto | 4 +- .../interchainqueries/genesis.proto | 2 +- .../interchainqueries/params.proto | 0 .../interchainqueries/query.proto | 6 +- .../{ => neutron}/interchainqueries/tx.proto | 2 +- .../interchaintxs/v1/genesis.proto | 2 +- .../interchaintxs/v1/params.proto | 0 .../interchaintxs/v1/query.proto | 2 +- proto/{ => neutron}/interchaintxs/v1/tx.proto | 2 +- proto/{ => neutron}/transfer/v1/query.proto | 0 proto/{ => neutron}/transfer/v1/tx.proto | 2 +- scripts/protocgen.sh | 31 + tests/e2e/interchain_security_test.go | 6 +- testutil/chain.go | 10 +- testutil/consumer/test_helpers.go | 16 +- .../contractmanager/keeper/contractmanager.go | 6 +- testutil/contractmanager/network/network.go | 30 +- testutil/cron/keeper/cron.go | 6 +- testutil/cron/network/network.go | 30 +- testutil/feeburner/keeper/feeburner.go | 6 +- testutil/feerefunder/keeper/fee.go | 6 +- .../keeper/interchainqeries.go | 8 +- testutil/interchainqueries/network/network.go | 32 +- .../interchaintxs/keeper/interchaintxs.go | 9 +- testutil/interchaintxs/network/network.go | 32 +- testutil/mocks/feerefunder/types/keepers.go | 2 +- .../mocks/interchainqueries/keeper/verify.go | 16 +- .../types/expected_keepers.go | 4 +- .../mocks/interchainqueries/types/verify.go | 12 +- .../interchaintxs/types/expected_keepers.go | 58 +- .../mocks/transfer/types/expected_keepers.go | 16 +- testutil/test_helpers.go | 37 +- testutil/transfer/keeper/keeper.go | 8 +- wasmbinding/bindings/query.go | 2 +- wasmbinding/message_plugin.go | 2 +- wasmbinding/test/custom_message_test.go | 5 +- wasmbinding/test/custom_query_test.go | 13 +- .../client/cli/query_failure_test.go | 2 +- x/contractmanager/keeper/keeper.go | 2 +- x/contractmanager/keeper/sudo.go | 4 +- x/contractmanager/keeper/sudo_test.go | 2 +- x/contractmanager/module.go | 18 +- x/contractmanager/types/genesis.pb.go | 58 +- x/contractmanager/types/params.pb.go | 36 +- x/contractmanager/types/query.pb.go | 86 +- x/contractmanager/types/query.pb.gw.go | 8 +- x/contractmanager/types/sudo.go | 4 +- x/cron/client/cli/query_schedule_test.go | 2 +- x/cron/keeper/keeper.go | 4 +- x/cron/module.go | 19 +- x/cron/module_simulation.go | 11 +- x/cron/types/genesis.pb.go | 42 +- x/cron/types/params.pb.go | 36 +- x/cron/types/query.pb.go | 88 +- x/cron/types/query.pb.gw.go | 8 +- x/cron/types/schedule.pb.go | 59 +- x/cron/types/tx.pb.go | 28 +- x/feeburner/keeper/keeper.go | 6 +- x/feeburner/keeper/keeper_test.go | 2 +- x/feeburner/module.go | 18 +- x/feeburner/module_simulation.go | 11 +- x/feeburner/types/genesis.pb.go | 46 +- x/feeburner/types/params.pb.go | 44 +- x/feeburner/types/query.pb.go | 78 +- x/feeburner/types/query.pb.gw.go | 6 +- .../types/total_burned_neutrons_amount.pb.go | 46 +- x/feerefunder/keeper/keeper.go | 5 +- x/feerefunder/keeper/keeper_test.go | 2 +- x/feerefunder/module.go | 19 +- x/feerefunder/types/codec.go | 5 +- x/feerefunder/types/expected_keepers.go | 2 +- x/feerefunder/types/fee.pb.go | 62 +- x/feerefunder/types/genesis.go | 2 +- x/feerefunder/types/genesis.pb.go | 56 +- x/feerefunder/types/params.pb.go | 40 +- x/feerefunder/types/query.pb.go | 82 +- x/feerefunder/types/query.pb.gw.go | 6 +- x/feerefunder/types/tx.pb.go | 166 +- x/ibc-hooks/hooks.go | 4 +- x/ibc-hooks/ibc_middleware_test.go | 17 +- x/ibc-hooks/ibc_module.go | 15 +- x/ibc-hooks/ics4_middleware.go | 33 +- x/ibc-hooks/sdkmodule.go | 26 +- x/ibc-hooks/testutils/testing_hooks.go | 4 +- x/ibc-hooks/types/expected_keepers.go | 6 + x/ibc-hooks/types/keys.go | 1 + x/ibc-hooks/utils/utils.go | 6 +- x/ibc-hooks/wasm_hook.go | 10 +- x/interchainqueries/keeper/grpc_query.go | 4 +- x/interchainqueries/keeper/grpc_query_test.go | 13 +- x/interchainqueries/keeper/keeper.go | 8 +- x/interchainqueries/keeper/keeper_test.go | 85 +- x/interchainqueries/keeper/msg_server.go | 21 +- .../keeper/process_block_results.go | 20 +- .../keeper/process_block_results_test.go | 93 +- x/interchainqueries/module.go | 23 +- x/interchainqueries/module_simulation.go | 11 +- x/interchainqueries/types/expected_keepers.go | 4 +- x/interchainqueries/types/genesis.pb.go | 100 +- x/interchainqueries/types/params.pb.go | 58 +- x/interchainqueries/types/query.pb.go | 137 +- x/interchainqueries/types/query.pb.gw.go | 12 +- x/interchainqueries/types/tx.go | 4 +- x/interchainqueries/types/tx.pb.go | 162 +- x/interchainqueries/types/tx_test.go | 14 +- x/interchainqueries/types/verify.go | 10 +- x/interchaintxs/genesis_test.go | 2 +- x/interchaintxs/ibc_module.go | 15 +- .../keeper/grpc_query_interchainaccount.go | 2 +- .../grpc_query_interchainaccount_test.go | 8 +- .../keeper/grpc_query_params_test.go | 2 +- x/interchaintxs/keeper/ibc_handlers.go | 2 +- x/interchaintxs/keeper/ibc_handlers_test.go | 16 +- x/interchaintxs/keeper/keeper.go | 11 +- x/interchaintxs/keeper/msg_server.go | 15 +- x/interchaintxs/keeper/msg_server_test.go | 27 +- x/interchaintxs/keeper/params_test.go | 2 +- x/interchaintxs/module.go | 23 +- x/interchaintxs/module_simulation.go | 11 +- x/interchaintxs/types/expected_keepers.go | 11 +- x/interchaintxs/types/genesis.pb.go | 42 +- x/interchaintxs/types/params.pb.go | 44 +- x/interchaintxs/types/query.pb.go | 83 +- x/interchaintxs/types/tx.pb.go | 96 +- x/interchaintxs/types/types.go | 4 +- x/tokenfactory/client/cli/tx.go | 28 +- x/tokenfactory/keeper/genesis_test.go | 2 +- x/tokenfactory/keeper/keeper.go | 7 +- x/tokenfactory/keeper/keeper_test.go | 2 +- x/tokenfactory/module.go | 23 +- x/tokenfactory/types/authorityMetadata.pb.go | 4 +- x/tokenfactory/types/genesis.pb.go | 4 +- x/tokenfactory/types/params.pb.go | 4 +- x/tokenfactory/types/query.pb.go | 6 +- x/tokenfactory/types/query.pb.gw.go | 6 +- x/tokenfactory/types/tx.pb.go | 6 +- x/transfer/ibc_handlers.go | 4 +- x/transfer/ibc_handlers_test.go | 4 +- x/transfer/keeper/keeper.go | 15 +- x/transfer/keeper/keeper_test.go | 4 +- x/transfer/module.go | 27 +- x/transfer/types/expected_keepers.go | 3 +- x/transfer/types/query.pb.go | 60 +- x/transfer/types/query.pb.gw.go | 28 +- x/transfer/types/query.pb.gw.go_old | 2 +- x/transfer/types/tx.go | 65 +- x/transfer/types/tx.pb.go | 85 +- x/transfer/types/tx_test.go | 2 +- 188 files changed, 36027 insertions(+), 24461 deletions(-) create mode 100644 buf.work.yaml create mode 100644 proto/buf.gen.gogo.yml create mode 100644 proto/buf.lock create mode 100644 proto/buf.yaml rename proto/{ => neutron}/contractmanager/genesis.proto (95%) rename proto/{ => neutron}/contractmanager/params.proto (100%) rename proto/{ => neutron}/contractmanager/query.proto (94%) rename proto/{ => neutron}/cron/genesis.proto (86%) rename proto/{ => neutron}/cron/params.proto (100%) rename proto/{ => neutron}/cron/query.proto (95%) rename proto/{ => neutron}/cron/schedule.proto (100%) rename proto/{ => neutron}/cron/tx.proto (100%) rename proto/{ => neutron}/feeburner/genesis.proto (83%) rename proto/{ => neutron}/feeburner/params.proto (100%) rename proto/{ => neutron}/feeburner/query.proto (94%) rename proto/{ => neutron}/feeburner/total_burned_neutrons_amount.proto (100%) rename proto/{ => neutron}/feerefunder/fee.proto (100%) rename proto/{ => neutron}/feerefunder/genesis.proto (88%) rename proto/{ => neutron}/feerefunder/params.proto (89%) rename proto/{ => neutron}/feerefunder/query.proto (93%) rename proto/{ => neutron}/interchainqueries/genesis.proto (97%) rename proto/{ => neutron}/interchainqueries/params.proto (100%) rename proto/{ => neutron}/interchainqueries/query.proto (94%) rename proto/{ => neutron}/interchainqueries/tx.proto (98%) rename proto/{ => neutron}/interchaintxs/v1/genesis.proto (86%) rename proto/{ => neutron}/interchaintxs/v1/params.proto (100%) rename proto/{ => neutron}/interchaintxs/v1/query.proto (97%) rename proto/{ => neutron}/interchaintxs/v1/tx.proto (98%) rename proto/{ => neutron}/transfer/v1/query.proto (100%) rename proto/{ => neutron}/transfer/v1/tx.proto (97%) create mode 100755 scripts/protocgen.sh diff --git a/Dockerfile b/Dockerfile index 5096fc644..3862e3254 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN cd /opt/neutron && make install-test-binary WORKDIR /opt/neutron HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD \ - curl -f http://127.0.0.1:1317/blocks/1 >/dev/null 2>&1 || exit 1 + curl -f http://127.0.0.1:1317/cosmos/base/tendermint/v1beta1/blocks/1 >/dev/null 2>&1 || exit 1 CMD bash /opt/neutron/network/init.sh && \ bash /opt/neutron/network/init-neutrond.sh && \ diff --git a/Makefile b/Makefile index a3a08263d..8025d700c 100644 --- a/Makefile +++ b/Makefile @@ -188,6 +188,16 @@ format: ############################################################################### ### Protobuf ### ############################################################################### +protoVer=0.11.6 +protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) +protoImage=docker run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) +proto-gen: + @echo "Generating Protobuf files" + @$(protoImage) sh ./scripts/protocgen.sh + +proto-swagger-gen: + @$(protoImage) sh ./scripts/protoc-swagger-gen.sh + PROTO_FORMATTER_IMAGE=tendermintdev/docker-build-proto@sha256:aabcfe2fc19c31c0f198d4cd26393f5e5ca9502d7ea3feafbfe972448fee7cae proto-format: diff --git a/app/ante_handler.go b/app/ante_handler.go index 1a41cef03..c0dcf5151 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -3,14 +3,15 @@ package app import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types" + "github.com/cometbft/cometbft/libs/log" + storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" - ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante" - ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper" - consumerante "github.com/cosmos/interchain-security/app/consumer/ante" - ibcconsumerkeeper "github.com/cosmos/interchain-security/x/ccv/consumer/keeper" - "github.com/tendermint/tendermint/libs/log" + ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante" + ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" + consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" + ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -21,7 +22,7 @@ type HandlerOptions struct { IBCKeeper *ibckeeper.Keeper ConsumerKeeper ibcconsumerkeeper.Keeper WasmConfig *wasmTypes.WasmConfig - TXCounterStoreKey sdk.StoreKey + TXCounterStoreKey storetypes.StoreKey } func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, error) { @@ -50,21 +51,20 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, ante.NewSetUpContextDecorator(), wasmkeeper.NewLimitSimulationGasDecorator(options.WasmConfig.SimulationGasLimit), // after setup context to enforce limits early wasmkeeper.NewCountTXDecorator(options.TXCounterStoreKey), - ante.NewRejectExtensionOptionsDecorator(), + ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker), consumerante.NewDisabledModulesDecorator("/cosmos.evidence", "/cosmos.slashing"), - ante.NewMempoolFeeDecorator(), ante.NewValidateBasicDecorator(), ante.NewTxTimeoutHeightDecorator(), ante.NewValidateMemoDecorator(options.AccountKeeper), ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper), - ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper), + ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), // SetPubKeyDecorator must be called before all signature verification decorators ante.NewSetPubKeyDecorator(options.AccountKeeper), ante.NewValidateSigCountDecorator(options.AccountKeeper), ante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer), ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler), ante.NewIncrementSequenceDecorator(options.AccountKeeper), - ibcante.NewAnteDecorator(options.IBCKeeper), + ibcante.NewRedundantRelayDecorator(options.IBCKeeper), } // Don't delete it even if IDE tells you so. diff --git a/app/app.go b/app/app.go index aec5edd8f..e598a714a 100644 --- a/app/app.go +++ b/app/app.go @@ -2,6 +2,12 @@ package app import ( "fmt" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/x/genutil" + genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" + "github.com/neutron-org/neutron/docs" "io" "io/fs" "net/http" @@ -16,24 +22,27 @@ import ( "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + 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" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" + nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node" "github.com/cosmos/cosmos-sdk/client/grpc/tmservice" - "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "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" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/ante" - authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/auth/vesting" @@ -66,31 +75,25 @@ 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" - ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts" - icacontroller "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/controller" - icacontrollerkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/controller/keeper" - icacontrollertypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/controller/types" - icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host" - icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper" - icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - ibc "github.com/cosmos/ibc-go/v4/modules/core" - ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - ibcporttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types" - ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host" - ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper" - "github.com/cosmos/interchain-security/legacy_ibc_testing/core" - ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing" + 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" + icahost "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host" + 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" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + ibc "github.com/cosmos/ibc-go/v7/modules/core" + ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client" + ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" + ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" + "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/core" + ibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" "github.com/spf13/cast" - 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" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - dbm "github.com/tendermint/tm-db" + govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -104,11 +107,8 @@ import ( adminmodulemoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - paramsrest "github.com/cosmos/cosmos-sdk/x/params/client/rest" - upgraderest "github.com/cosmos/cosmos-sdk/x/upgrade/client/rest" appparams "github.com/neutron-org/neutron/app/params" - "github.com/neutron-org/neutron/docs" "github.com/neutron-org/neutron/wasmbinding" "github.com/neutron-org/neutron/x/contractmanager" contractmanagermodulekeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" @@ -131,14 +131,17 @@ import ( feetypes "github.com/neutron-org/neutron/x/feerefunder/types" - e2e "github.com/cosmos/interchain-security/testutil/integration" - ccvconsumer "github.com/cosmos/interchain-security/x/ccv/consumer" - ccvconsumerkeeper "github.com/cosmos/interchain-security/x/ccv/consumer/keeper" - ccvconsumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" - - "github.com/strangelove-ventures/packet-forward-middleware/v4/router" - routerkeeper "github.com/strangelove-ventures/packet-forward-middleware/v4/router/keeper" - routertypes "github.com/strangelove-ventures/packet-forward-middleware/v4/router/types" + e2e "github.com/cosmos/interchain-security/v3/testutil/integration" + ccvconsumer "github.com/cosmos/interchain-security/v3/x/ccv/consumer" + ccvconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + + storetypes "github.com/cosmos/cosmos-sdk/store/types" + consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" + consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" + "github.com/strangelove-ventures/packet-forward-middleware/v7/router" + routerkeeper "github.com/strangelove-ventures/packet-forward-middleware/v7/router/keeper" + routertypes "github.com/strangelove-ventures/packet-forward-middleware/v7/router/types" ) const ( @@ -186,12 +189,14 @@ var ( authzmodule.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, + genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, ibc.AppModuleBasic{}, ica.AppModuleBasic{}, + tendermint.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transferSudo.AppModuleBasic{}, @@ -208,15 +213,12 @@ var ( adminmodulemodule.NewAppModuleBasic( govclient.NewProposalHandler( adminmodulecli.NewSubmitParamChangeProposalTxCmd, - paramsrest.ProposalRESTHandler, ), govclient.NewProposalHandler( adminmodulecli.NewCmdSubmitUpgradeProposal, - upgraderest.ProposalRESTHandler, ), govclient.NewProposalHandler( adminmodulecli.NewCmdSubmitCancelUpgradeProposal, - upgraderest.ProposalCancelRESTHandler, ), ), ibchooks.AppModuleBasic{}, @@ -240,8 +242,8 @@ var ( ) var ( + _ runtime.AppI = (*App)(nil) _ servertypes.Application = (*App)(nil) - _ simapp.App = (*App)(nil) _ ibctesting.TestingApp = (*App)(nil) ) @@ -271,9 +273,9 @@ type App struct { invCheckPeriod uint // keys to access the substores - keys map[string]*sdk.KVStoreKey - tkeys map[string]*sdk.TransientStoreKey - memKeys map[string]*sdk.MemoryStoreKey + keys map[string]*storetypes.KVStoreKey + tkeys map[string]*storetypes.TransientStoreKey + memKeys map[string]*storetypes.MemoryStoreKey // keepers AccountKeeper authkeeper.AccountKeeper @@ -314,6 +316,8 @@ type App struct { InterchainTxsKeeper interchaintxskeeper.Keeper ContractManagerKeeper contractmanagermodulekeeper.Keeper + ConsensusParamsKeeper consensusparamkeeper.Keeper + WasmKeeper wasm.Keeper // mm is the module manager @@ -339,7 +343,7 @@ func New( baseAppOptions ...func(*baseapp.BaseApp), ) *App { appCodec := encodingConfig.Marshaler - cdc := encodingConfig.Amino + legacyAmino := encodingConfig.Amino interfaceRegistry := encodingConfig.InterfaceRegistry bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...) @@ -354,14 +358,14 @@ func New( icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasm.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmodulemoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, - crontypes.StoreKey, ibchookstypes.StoreKey, + crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, feetypes.MemStoreKey) app := &App{ BaseApp: bApp, - cdc: cdc, + cdc: legacyAmino, appCodec: appCodec, interfaceRegistry: interfaceRegistry, invCheckPeriod: invCheckPeriod, @@ -371,10 +375,11 @@ func New( encodingConfig: encodingConfig, } - app.ParamsKeeper = initParamsKeeper(appCodec, cdc, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey]) + app.ParamsKeeper = initParamsKeeper(appCodec, legacyAmino, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey]) // set the BaseApp's parameter store - bApp.SetParamStore(app.ParamsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramskeeper.ConsensusParamsKeyTable())) + app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(govtypes.ModuleName).String()) + bApp.SetParamStore(&app.ConsensusParamsKeeper) // add capability keeper and ScopeToModule for ibc module app.CapabilityKeeper = capabilitykeeper.NewKeeper(appCodec, keys[capabilitytypes.StoreKey], memKeys[capabilitytypes.MemStoreKey]) @@ -390,28 +395,62 @@ func New( // add keepers app.AccountKeeper = authkeeper.NewAccountKeeper( - appCodec, keys[authtypes.StoreKey], app.GetSubspace(authtypes.ModuleName), authtypes.ProtoBaseAccount, maccPerms, + appCodec, + keys[authtypes.StoreKey], + authtypes.ProtoBaseAccount, + maccPerms, + sdk.GetConfig().GetBech32AccountAddrPrefix(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.AuthzKeeper = authzkeeper.NewKeeper( - keys[authz.ModuleName], appCodec, app.MsgServiceRouter(), + keys[authz.ModuleName], appCodec, app.MsgServiceRouter(), app.AccountKeeper, ) app.BankKeeper = bankkeeper.NewBaseKeeper( - appCodec, keys[banktypes.StoreKey], app.AccountKeeper, app.GetSubspace(banktypes.ModuleName), app.BlockedAddrs(), + appCodec, + keys[banktypes.StoreKey], + app.AccountKeeper, + BlockedAddresses(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.SlashingKeeper = slashingkeeper.NewKeeper( - appCodec, keys[slashingtypes.StoreKey], &app.ConsumerKeeper, app.GetSubspace(slashingtypes.ModuleName), + appCodec, + legacyAmino, + keys[slashingtypes.StoreKey], + &app.ConsumerKeeper, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - app.CrisisKeeper = crisiskeeper.NewKeeper( - app.GetSubspace(crisistypes.ModuleName), invCheckPeriod, app.BankKeeper, authtypes.FeeCollectorName, + app.CrisisKeeper = *crisiskeeper.NewKeeper( + appCodec, + keys[crisistypes.StoreKey], + invCheckPeriod, + app.BankKeeper, + authtypes.FeeCollectorName, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper) - app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp) + app.UpgradeKeeper = *upgradekeeper.NewKeeper( + skipUpgradeHeights, + keys[upgradetypes.StoreKey], + appCodec, + homePath, + app.BaseApp, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) // ... other modules keepers + // pre-initialize ConsumerKeeper to satsfy ibckeeper.NewKeeper + // which would panic on nil or zero keeper + // ConsumerKeeper implements StakingKeeper but all function calls result in no-ops so this is safe + // communication over IBC is not affected by these changes + app.ConsumerKeeper = ccvconsumerkeeper.NewNonZeroKeeper( + appCodec, + keys[ccvconsumertypes.StoreKey], + app.GetSubspace(ccvconsumertypes.ModuleName), + ) // Create IBC Keeper app.IBCKeeper = ibckeeper.NewKeeper( @@ -427,6 +466,7 @@ func New( app.ICAHostKeeper = icahostkeeper.NewKeeper( appCodec, keys[icahosttypes.StoreKey], app.GetSubspace(icahosttypes.SubModuleName), + app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 feerefunder app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper, app.AccountKeeper, scopedICAHostKeeper, app.MsgServiceRouter(), ) @@ -465,6 +505,7 @@ func New( ) wasmHooks := ibchooks.NewWasmHooks(nil, sdk.GetConfig().GetBech32AccountAddrPrefix()) // The contract keeper needs to be set later app.HooksICS4Wrapper = ibchooks.NewICS4Middleware( + app.IBCKeeper.ChannelKeeper, app.RouterKeeper, &wasmHooks, ) @@ -507,12 +548,13 @@ func New( app.SlashingKeeper, app.BankKeeper, app.AccountKeeper, - &app.TransferKeeper, + app.TransferKeeper.Keeper, // we cant use our transfer wrapper type here because of interface incompatibility, it looks safe to use underlying transfer keeper. + // Since the keeper is only used to send reward to provider chain app.IBCKeeper, authtypes.FeeCollectorName, ) app.ConsumerKeeper = *app.ConsumerKeeper.SetHooks(app.SlashingKeeper.Hooks()) - consumerModule := ccvconsumer.NewAppModule(app.ConsumerKeeper) + consumerModule := ccvconsumer.NewAppModule(app.ConsumerKeeper, app.GetSubspace(ccvconsumertypes.ModuleName)) tokenFactoryKeeper := tokenfactorykeeper.NewKeeper( appCodec, @@ -535,11 +577,11 @@ func New( supportedFeatures := "iterator,stargate,staking,neutron" // register the proposal types - adminRouter := govtypes.NewRouter() - adminRouter.AddRoute(govtypes.RouterKey, govtypes.ProposalHandler). + adminRouter := govv1beta1.NewRouter() + adminRouter.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)). - AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)). - AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) + AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(&app.UpgradeKeeper)). + AddRoute(ibchost.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) app.AdminmoduleKeeper = *adminmodulemodulekeeper.NewKeeper( appCodec, @@ -568,7 +610,6 @@ func New( app.GetSubspace(interchaintxstypes.ModuleName), app.IBCKeeper.ChannelKeeper, app.ICAControllerKeeper, - scopedInterTxKeeper, app.ContractManagerKeeper, app.FeeKeeper, ) @@ -579,11 +620,11 @@ func New( app.WasmKeeper = wasm.NewKeeper( appCodec, keys[wasm.StoreKey], - app.GetSubspace(wasm.ModuleName), app.AccountKeeper, app.BankKeeper, nil, nil, + app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 feerefunder app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper, scopedWasmKeeper, @@ -593,11 +634,12 @@ func New( wasmDir, wasmConfig, supportedFeatures, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), wasmOpts..., ) - wasmHooks.ContractKeeper = wasmkeeper.NewDefaultPermissionKeeper(app.WasmKeeper) + wasmHooks.ContractKeeper = &app.WasmKeeper - app.CronKeeper.WasmMsgServer = wasmkeeper.NewMsgServerImpl(wasmkeeper.NewDefaultPermissionKeeper(app.WasmKeeper)) + app.CronKeeper.WasmMsgServer = wasmkeeper.NewMsgServerImpl(&app.WasmKeeper) cronModule := cron.NewAppModule(appCodec, &app.CronKeeper) if len(enabledProposals) != 0 { @@ -655,16 +697,15 @@ func New( app.setupUpgradeStoreLoaders() app.mm = module.NewManager( - auth.NewAppModule(appCodec, app.AccountKeeper, nil), + auth.NewAppModule(appCodec, app.AccountKeeper, nil, app.GetSubspace(authtypes.ModuleName)), authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), vesting.NewAppModule(app.AccountKeeper, app.BankKeeper), - bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper), - capability.NewAppModule(appCodec, *app.CapabilityKeeper), + bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), + capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry), - crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants), - slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.ConsumerKeeper), - upgrade.NewAppModule(app.UpgradeKeeper), - wasm.NewAppModule(appCodec, &app.WasmKeeper, app.AccountKeeper, app.BankKeeper), + slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.ConsumerKeeper, app.GetSubspace(slashingtypes.ModuleName)), + upgrade.NewAppModule(&app.UpgradeKeeper), + wasm.NewAppModule(appCodec, &app.WasmKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), evidence.NewAppModule(app.EvidenceKeeper), ibc.NewAppModule(app.IBCKeeper), params.NewAppModule(app.ParamsKeeper), @@ -681,6 +722,7 @@ func New( ibcHooksModule, tokenfactory.NewAppModule(appCodec, *app.TokenFactoryKeeper, app.AccountKeeper, app.BankKeeper), cronModule, + crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them ) // During begin block slashing happens after distr.BeginBlocker so that @@ -780,27 +822,30 @@ func New( ) app.mm.RegisterInvariants(&app.CrisisKeeper) - app.mm.RegisterRoutes(app.Router(), app.QueryRouter(), encodingConfig.Amino) - app.configurator = module.NewConfigurator(app.AppCodec(), app.MsgServiceRouter(), app.GRPCQueryRouter()) - app.mm.RegisterServices(module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())) + app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) + app.mm.RegisterServices(app.configurator) app.setupUpgradeHandlers() // create the simulation manager and define the order of the modules for deterministic simulations app.sm = module.NewSimulationManager( - auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts), + auth.NewAppModule(appCodec, app.AccountKeeper, nil, app.GetSubspace(authtypes.ModuleName)), authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), - bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper), - capability.NewAppModule(appCodec, *app.CapabilityKeeper), + bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), + capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry), - slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.ConsumerKeeper), - params.NewAppModule(app.ParamsKeeper), + slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, nil, app.GetSubspace(slashingtypes.ModuleName)), + wasm.NewAppModule(appCodec, &app.WasmKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), evidence.NewAppModule(app.EvidenceKeeper), - wasm.NewAppModule(appCodec, &app.WasmKeeper, app.AccountKeeper, app.BankKeeper), ibc.NewAppModule(app.IBCKeeper), + params.NewAppModule(app.ParamsKeeper), transferModule, + consumerModule, + icaModule, + app.RouterModule, interchainQueriesModule, interchainTxsModule, + feeBurnerModule, cronModule, ) app.sm.RegisterStoreDecoders() @@ -912,7 +957,7 @@ func (app *App) setupUpgradeHandlers() { func (app *App) Name() string { return app.BaseApp.Name() } // GetBaseApp returns the base app of the application -func (app App) GetBaseApp() *baseapp.BaseApp { return app.BaseApp } +func (app *App) GetBaseApp() *baseapp.BaseApp { return app.BaseApp } // BeginBlocker application updates every begin block func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock { @@ -986,21 +1031,21 @@ func (app *App) InterfaceRegistry() types.InterfaceRegistry { // GetKey returns the KVStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. -func (app *App) GetKey(storeKey string) *sdk.KVStoreKey { +func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey { return app.keys[storeKey] } // GetTKey returns the TransientStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. -func (app *App) GetTKey(storeKey string) *sdk.TransientStoreKey { +func (app *App) GetTKey(storeKey string) *storetypes.TransientStoreKey { return app.tkeys[storeKey] } // GetMemKey returns the MemStoreKey for the provided mem key. // // NOTE: This is solely used for testing purposes. -func (app *App) GetMemKey(storeKey string) *sdk.MemoryStoreKey { +func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { return app.memKeys[storeKey] } @@ -1016,16 +1061,11 @@ func (app *App) GetSubspace(moduleName string) paramstypes.Subspace { // API server. func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { clientCtx := apiSvr.ClientCtx - rpc.RegisterRoutes(clientCtx, apiSvr.Router) - // Register legacy tx routes. - authrest.RegisterTxRoutes(clientCtx, apiSvr.Router) // Register new tx routes from grpc-gateway. authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // Register new tendermint queries routes from grpc-gateway. tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) - // Register legacy and grpc-gateway routes for all modules. - ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router) ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) // Register app's swagger ui @@ -1041,7 +1081,7 @@ func (app *App) RegisterTxService(clientCtx client.Context) { // RegisterTendermintService implements the Application.RegisterTendermintService method. func (app *App) RegisterTendermintService(clientCtx client.Context) { - tmservice.RegisterTendermintService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.interfaceRegistry) + tmservice.RegisterTendermintService(clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, app.Query) } // GetMaccPerms returns a copy of the module account permissions @@ -1054,7 +1094,7 @@ func GetMaccPerms() map[string][]string { } // initParamsKeeper init params keeper and its subspaces -func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey sdk.StoreKey) paramskeeper.Keeper { +func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper { paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) paramsKeeper.Subspace(authtypes.ModuleName) @@ -1143,3 +1183,20 @@ func (app *App) GetTestSlashingKeeper() e2e.TestSlashingKeeper { func (app *App) GetTestEvidenceKeeper() e2e.TestEvidenceKeeper { return app.EvidenceKeeper } + +func (app *App) RegisterNodeService(clientCtx client.Context) { + nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter()) +} + +// BlockedAddresses returns all the app's blocked account addresses. +func BlockedAddresses() map[string]bool { + modAccAddrs := make(map[string]bool) + for acc := range GetMaccPerms() { + modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true + } + + // allow the following addresses to receive funds + delete(modAccAddrs, authtypes.NewModuleAddress(govtypes.ModuleName).String()) + + return modAccAddrs +} diff --git a/app/ccv_msg_filter_add.go b/app/ccv_msg_filter_add.go index d4ead58a7..0f883f44e 100644 --- a/app/ccv_msg_filter_add.go +++ b/app/ccv_msg_filter_add.go @@ -2,4 +2,4 @@ package app -const SkipCcvMsgFilter = false +const SkipCcvMsgFilter = true // TODO вернуть false diff --git a/app/export.go b/app/export.go index e71f8b575..8d437fdcb 100644 --- a/app/export.go +++ b/app/export.go @@ -4,17 +4,17 @@ import ( "encoding/json" "fmt" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + tmtypes "github.com/cometbft/cometbft/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" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmtypes "github.com/tendermint/tendermint/types" ) // ExportAppStateAndValidators exports the state of the application for a genesis // file. func (app *App) 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()}) @@ -27,7 +27,7 @@ func (app *App) 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/proposals_allowlist_test.go b/app/proposals_allowlist_test.go index 2538ee2a1..f2e1f7681 100644 --- a/app/proposals_allowlist_test.go +++ b/app/proposals_allowlist_test.go @@ -4,11 +4,11 @@ import ( "encoding/json" "testing" - simapp "github.com/cosmos/cosmos-sdk/simapp" - ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + "github.com/cosmos/cosmos-sdk/testutil/sims" + ibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/app" ) @@ -38,7 +38,7 @@ func SetupTestingAppConsumer() (ibctesting.TestingApp, map[string]json.RawMessag 0, encoding, app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, + sims.EmptyAppOptions{}, nil, ) return testApp, app.NewDefaultGenesisState(encoding.Marshaler) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index e587feac8..38a86ed9d 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -2,14 +2,13 @@ package app import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types" - ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - packetforwardmiddlewaretypes "github.com/strangelove-ventures/packet-forward-middleware/v4/router/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" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + packetforwardmiddlewaretypes "github.com/strangelove-ventures/packet-forward-middleware/v7/router/types" crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" @@ -53,8 +52,6 @@ type paramChangeKey struct { } var WhitelistedParams = map[paramChangeKey]struct{}{ - // bank - {Subspace: banktypes.ModuleName, Key: string(banktypes.KeySendEnabled)}: {}, // ibc transfer {Subspace: ibctransfertypes.ModuleName, Key: string(ibctransfertypes.KeySendEnabled)}: {}, {Subspace: ibctransfertypes.ModuleName, Key: string(ibctransfertypes.KeyReceiveEnabled)}: {}, @@ -62,8 +59,8 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyHostEnabled)}: {}, {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyAllowMessages)}: {}, // cosmwasm - {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, - {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, + //{Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, + //{Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, // feerefunder {Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, // interchaintxs diff --git a/app/simulation_test.go b/app/simulation_test.go index 24df5b875..38200832e 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -1,94 +1,107 @@ package app_test -import ( - "os" - "testing" +// TODO: enable test +// at the moment latest ibc-go release requires outdated app interface in the `simapp.SimulationOperations` method - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/stretchr/testify/require" - abci "github.com/tendermint/tendermint/abci/types" - - "github.com/neutron-org/neutron/app" -) - -func init() { - simapp.GetSimulatorFlags() -} - -type SimApp interface { - GetBaseApp() *baseapp.BaseApp - AppCodec() codec.Codec - SimulationManager() *module.SimulationManager - ModuleAccountAddrs() map[string]bool - Name() string - LegacyAmino() *codec.LegacyAmino - BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock - EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock - InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain -} - -// BenchmarkSimulation run the chain simulation -// Running using starport command: -// `starport chain simulate -v --numBlocks 200 --blockSize 50` -// Running as go benchmark test: -// `go test -benchmem -run=^$ -bench ^BenchmarkSimulation ./app -NumBlocks=200 -BlockSize 50 -Commit=true -Verbose=true -Enabled=true` -func BenchmarkSimulation(b *testing.B) { - simapp.FlagEnabledValue = true - simapp.FlagCommitValue = true - - config, db, dir, logger, _, err := simapp.SetupSimulation("goleveldb-app-sim", "Simulation") - require.NoError(b, err, "simulation setup failed") - - b.Cleanup(func() { - db.Close() - err = os.RemoveAll(dir) - require.NoError(b, err) - }) - - encoding := app.MakeEncodingConfig() - - app := app.New( - logger, - db, - nil, - true, - map[int64]bool{}, - app.DefaultNodeHome, - 0, - encoding, - app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, - nil, - ) - - simApp := app - // require.True(b, ok, "can't use simapp") - - // Run randomized simulations - _, simParams, simErr := simulation.SimulateFromSeed( - b, - os.Stdout, - simApp.GetBaseApp(), - simapp.AppStateFn(simApp.AppCodec(), simApp.SimulationManager()), - simulationtypes.RandomAccounts, - simapp.SimulationOperations(app, simApp.AppCodec(), config), - simApp.ModuleAccountAddrs(), - config, - simApp.AppCodec(), - ) - - // export state and simParams before the simulation error is checked - err = simapp.CheckExportSimulation(app, config, simParams) - require.NoError(b, err) - require.NoError(b, simErr) - - if config.Commit { - simapp.PrintStats(db) - } -} +// +//import ( +// "github.com/cosmos/cosmos-sdk/server/types" +// "github.com/cosmos/ibc-go/v7/testing/simapp" +// "os" +// "testing" +// +// abci "github.com/cometbft/cometbft/abci/types" +// "github.com/cosmos/cosmos-sdk/baseapp" +// "github.com/cosmos/cosmos-sdk/codec" +// sdk "github.com/cosmos/cosmos-sdk/types" +// "github.com/cosmos/cosmos-sdk/types/module" +// simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation" +// "github.com/cosmos/cosmos-sdk/x/simulation" +// "github.com/stretchr/testify/require" +// +// "github.com/neutron-org/neutron/app" +//) +// +//func init() { +// simapp.GetSimulatorFlags() +//} +// +//type SimApp interface { +// GetBaseApp() *baseapp.BaseApp +// AppCodec() codec.Codec +// SimulationManager() *module.SimulationManager +// ModuleAccountAddrs() map[string]bool +// Name() string +// LegacyAmino() *codec.LegacyAmino +// BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock +// EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock +// InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain +// +// // Loads the app at a given height. +// LoadHeight(height int64) error +// +// // Exports the state of the application for a genesis file. +// ExportAppStateAndValidators( +// forZeroHeight bool, jailAllowedAddrs []string, +// ) (types.ExportedApp, error) +//} +// +//// BenchmarkSimulation run the chain simulation +//// Running using starport command: +//// `starport chain simulate -v --numBlocks 200 --blockSize 50` +//// Running as go benchmark test: +//// `go test -benchmem -run=^$ -bench ^BenchmarkSimulation ./app -NumBlocks=200 -BlockSize 50 -Commit=true -Verbose=true -Enabled=true` +//func BenchmarkSimulation(b *testing.B) { +// simapp.FlagEnabledValue = true +// simapp.FlagCommitValue = true +// +// config, db, dir, logger, _, err := simapp.SetupSimulation("goleveldb-app-sim", "Simulation") +// require.NoError(b, err, "simulation setup failed") +// +// b.Cleanup(func() { +// db.Close() +// err = os.RemoveAll(dir) +// require.NoError(b, err) +// }) +// +// encoding := app.MakeEncodingConfig() +// +// app := app.New( +// logger, +// db, +// nil, +// true, +// map[int64]bool{}, +// app.DefaultNodeHome, +// 0, +// encoding, +// app.GetEnabledProposals(), +// simapp.EmptyAppOptions{}, +// nil, +// ) +// +// simApp := app +// // require.True(b, ok, "can't use simapp") +// +// // Run randomized simulations +// _, simParams, simErr := simulation.SimulateFromSeed( +// b, +// os.Stdout, +// simApp.GetBaseApp(), +// simapp.AppStateFn(simApp.AppCodec(), simApp.SimulationManager()), +// simulationtypes.RandomAccounts, +// simapp.SimulationOperations(app, simApp.AppCodec(), config), +// simApp.ModuleAccountAddrs(), +// config, +// simApp.AppCodec(), +// ) +// +// // export state and simParams before the simulation error is checked +// err = simapp.CheckExportSimulation(app, config, simParams) +// require.NoError(b, err) +// require.NoError(b, simErr) +// +// if config.Commit { +// simapp.PrintStats(db) +// } +//} diff --git a/app/upgrades/v3/constants.go b/app/upgrades/v3/constants.go index 3d9e4862e..2e64b39d4 100644 --- a/app/upgrades/v3/constants.go +++ b/app/upgrades/v3/constants.go @@ -2,7 +2,7 @@ package v3 import ( store "github.com/cosmos/cosmos-sdk/store/types" - ccvprovider "github.com/cosmos/interchain-security/x/ccv/provider/types" + ccvprovider "github.com/cosmos/interchain-security/v3/x/ccv/provider/types" "github.com/neutron-org/neutron/app/upgrades" ) diff --git a/buf.work.yaml b/buf.work.yaml new file mode 100644 index 000000000..d050a7aac --- /dev/null +++ b/buf.work.yaml @@ -0,0 +1,9 @@ +# Generated by "buf config migrate-v1beta1". Edit as necessary, and +# remove this comment when you're finished. +# +# This workspace file points to the roots found in your +# previous "buf.yaml" configuration. +version: v1 +directories: + - proto + # - third_party/proto diff --git a/cmd/neutrond/consumer.go b/cmd/neutrond/consumer.go index af0a57c54..0db98e88e 100644 --- a/cmd/neutrond/consumer.go +++ b/cmd/neutrond/consumer.go @@ -4,6 +4,9 @@ import ( "encoding/json" "fmt" + types1 "github.com/cometbft/cometbft/abci/types" + pvm "github.com/cometbft/cometbft/privval" + tmtypes "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" @@ -11,11 +14,8 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - ccvconsumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" "github.com/spf13/cobra" - types1 "github.com/tendermint/tendermint/abci/types" - pvm "github.com/tendermint/tendermint/privval" - tmtypes "github.com/tendermint/tendermint/types" "github.com/neutron-org/neutron/testutil/consumer" ) diff --git a/cmd/neutrond/genaccounts.go b/cmd/neutrond/genaccounts.go index 58b486d82..79d45bb00 100644 --- a/cmd/neutrond/genaccounts.go +++ b/cmd/neutrond/genaccounts.go @@ -53,7 +53,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa } if keyringBackend != "" && clientCtx.Keyring == nil { var err error - kr, err = keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf) + kr, err = keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, clientCtx.Codec) if err != nil { return err } @@ -65,7 +65,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa if err != nil { return fmt.Errorf("failed to get address from Keyring: %w", err) } - addr = info.GetAddress() + addr, err = info.GetAddress() if err != nil { return fmt.Errorf("failed to get address from key info: %w", err) } diff --git a/cmd/neutrond/main.go b/cmd/neutrond/main.go index 5b8efe781..4208d8f5c 100644 --- a/cmd/neutrond/main.go +++ b/cmd/neutrond/main.go @@ -16,7 +16,7 @@ func main() { rootCmd.AddCommand(AddConsumerSectionCmd(app.DefaultNodeHome)) - if err := svrcmd.Execute(rootCmd, app.DefaultNodeHome); err != nil { + if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil { os.Exit(1) } } diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 170dadddc..679e4fc79 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -2,12 +2,13 @@ package main import ( "errors" - "io" - "os" - "path/filepath" - "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + 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" "github.com/cosmos/cosmos-sdk/client/config" @@ -18,6 +19,7 @@ import ( "github.com/cosmos/cosmos-sdk/server" servertypes "github.com/cosmos/cosmos-sdk/server/types" "github.com/cosmos/cosmos-sdk/snapshots" + snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" "github.com/cosmos/cosmos-sdk/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/version" @@ -25,14 +27,15 @@ import ( authtypes "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/prometheus/client_golang/prometheus" "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" + "io" + "os" + "path/filepath" "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/app/params" @@ -50,13 +53,13 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { WithLegacyAmino(encodingConfig.Amino). WithInput(os.Stdin). WithAccountRetriever(authtypes.AccountRetriever{}). - WithBroadcastMode(flags.BroadcastBlock). + WithBroadcastMode(flags.BroadcastSync). WithHomeDir(app.DefaultNodeHome). WithViper("") rootCmd := &cobra.Command{ Use: version.AppName, - Short: "IntechainAdapteerd (daemon)", + Short: "Neutrond (daemon)", PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { // set the default command outputs cmd.SetOut(cmd.OutOrStdout()) @@ -76,7 +79,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { return err } - return server.InterceptConfigsPreRunHandler(cmd, "", tmcfg.DefaultConfig()) + return server.InterceptConfigsPreRunHandler(cmd, "", nil, tmcfg.DefaultConfig()) }, } @@ -88,10 +91,11 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { debugCmd := debug.Cmd() debugCmd.AddCommand(genContractAddressCmd()) + gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic) 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, banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome), genutilcli.ValidateGenesisCmd(app.ModuleBasics), AddGenesisAccountCmd(app.DefaultNodeHome), @@ -196,8 +200,10 @@ func (ac appCreator) newApp( panic(err) } - snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots") - snapshotDB, err := sdk.NewLevelDB("metadata", snapshotDir) + homeDir := cast.ToString(appOpts.Get(flags.FlagHome)) + + snapshotDir := filepath.Join(homeDir, "data", "snapshots") + snapshotDB, err := dbm.NewDB("metadata", dbm.GoLevelDBBackend, snapshotDir) if err != nil { panic(err) } @@ -210,6 +216,17 @@ func (ac appCreator) newApp( wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer)) } + 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 + } + enabledWasmProposals := app.GetEnabledProposals() logger.Info("Enabled wasm proposals", "proposals", enabledWasmProposals) @@ -228,12 +245,10 @@ func (ac appCreator) newApp( baseapp.SetInterBlockCache(cache), baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))), baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))), - baseapp.SetSnapshotStore(snapshotStore), - baseapp.SetSnapshotInterval(cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval))), - baseapp.SetSnapshotKeepRecent(cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent))), + baseapp.SetSnapshot(snapshotStore, snapshottypes.SnapshotOptions{Interval: cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval)), KeepRecent: cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent))}), + baseapp.SetChainID(chainID), ) } - func (ac appCreator) appExport( logger log.Logger, db dbm.DB, @@ -242,6 +257,7 @@ func (ac appCreator) appExport( forZeroHeight bool, jailAllowedAddrs []string, appOpts servertypes.AppOptions, + modulesToExport []string, ) (servertypes.ExportedApp, error) { var interchainapp *app.App homePath, ok := appOpts.Get(flags.FlagHome).(string) @@ -271,5 +287,5 @@ func (ac appCreator) appExport( } } - return interchainapp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs) + return interchainapp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) } diff --git a/config.yml b/config.yml index 664f08b7d..7fa6878fa 100644 --- a/config.yml +++ b/config.yml @@ -1,16 +1,30 @@ +version: 1 +build: + proto: + path: proto + third_party_paths: + - third_party/proto + - proto_vendor accounts: - - name: alice - coins: ["20000token", "200000000untrn"] - - name: bob - coins: ["10000token", "100000000untrn"] -validator: - name: alice - staked: "100000000untrn" -client: - openapi: - path: "docs/static/openapi.yml" - vuex: - path: "vue/src/store" +- name: alice + coins: + - 20000token + - 200000000untrn +- name: bob + coins: + - 10000token + - 100000000untrn faucet: name: bob - coins: ["5token", "100000untrn"] + coins: + - 5token + - 100000untrn + host: 0.0.0.0:4500 +client: + vuex: + path: vue/src/store + openapi: + path: docs/static/openapi.yml +validators: +- name: alice + bonded: 100000000untrn diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index efb750ed9..25217cdce 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -4,472 +4,206 @@ info: name: '' description: '' paths: - /cosmos/adminmodule/adminmodule/admins: + /cosmos/auth/v1beta1/account_info/{address}: get: - summary: Queries a list of admins items. - operationId: CosmosAdminmoduleAdminmoduleAdmins + summary: AccountInfo queries account info which is common to all account types. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosAuthV1Beta1AccountInfo responses: '200': description: A successful response. schema: type: object properties: - admins: - type: array - items: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form + info: + description: info is the account info which is represented by BaseAccount. + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - (e.g., leading "." is not accepted). + protocol buffer message. This string must contain at + least + one "/" character. The last segment of the URL's path + must represent - In practice, teams usually precompile into the binary - all types that they + the fully qualified name of the type (as in - expect it to use in the context of Any. However, for - URLs which use the + `path/google.protobuf.Duration`). The name should be + in a canonical form - scheme `http`, `https`, or no scheme, one can optionally - set up a type + (e.g., leading "." is not accepted). - server that maps type URLs to message definitions as - follows: + In practice, teams usually precompile into the binary + all types that they - * If no scheme is provided, `https` is assumed. + expect it to use in the context of Any. However, for + URLs which use the - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + scheme `http`, `https`, or no scheme, one can + optionally set up a type - Note: this functionality is not currently available in - the official + server that maps type URLs to message definitions as + follows: - protobuf release, and it is not used for type URLs - beginning with - type.googleapis.com. + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Schemes other than `http`, `https` (or the empty scheme) - might be + Note: this functionality is not currently available in + the official - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + protobuf release, and it is not used for type URLs + beginning with - URL that describes the type of the serialized message. + type.googleapis.com. - Protobuf library provides support to pack/unpack Any values - in the form + Schemes other than `http`, `https` (or the empty + scheme) might be - of utility functions or additional generated methods of the - Any type. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + URL that describes the type of the serialized message. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Protobuf library provides support to pack/unpack Any + values in the form - Example 2: Pack and unpack a message in Java. + of utility functions or additional generated methods of + the Any type. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. + Example 1: Pack and unpack a message in C++. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tags: - - Query - /cosmos/adminmodule/adminmodule/archivedproposals: - get: - summary: Queries a list of archived proposals. - operationId: CosmosAdminmoduleAdminmoduleArchivedProposals - responses: - '200': - description: A successful response. - schema: - type: object - properties: - proposals: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - content: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); + if (any.UnpackTo(&foo)) { ... - if (any.UnpackTo(&foo)) { - ... - } + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - methods only use the fully qualified type name after the - last '/' + The pack methods provided by protobuf library will by + default use - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - name "y.z". + methods only use the fully qualified type name after the + last '/' + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + name "y.z". - JSON - ==== - The JSON representation of an `Any` value uses the - regular + JSON - representation of the deserialized, embedded message, - with an + ==== - additional field `@type` which contains the type URL. - Example: + The JSON representation of an `Any` value uses the regular - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + representation of the deserialized, embedded message, with + an - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + additional field `@type` which contains the type URL. + Example: - If the embedded message type is well-known and has a - custom JSON + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - representation, that representation will be embedded - adding a field + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - `value` which holds the custom JSON in addition to the - `@type` + If the embedded message type is well-known and has a + custom JSON - field. Example (for message - [google.protobuf.Duration][]): + representation, that representation will be embedded + adding a field - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - status: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: >- - ProposalStatus enumerates the valid statuses of a - proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - final_tally_result: - type: object - properties: - 'yes': - type: string - abstain: - type: string - 'no': - type: string - no_with_veto: - type: string - description: >- - TallyResult defines a standard tally for a governance - proposal. - submit_time: - type: string - format: date-time - deposit_end_time: - type: string - format: date-time - total_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + `value` which holds the custom JSON in addition to the + `@type` + field. Example (for message [google.protobuf.Duration][]): - NOTE: The amount field is an Int which implements the - custom method + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + account_number: + type: string + format: uint64 + sequence: + type: string + format: uint64 + description: |- + QueryAccountInfoResponse is the Query/AccountInfo response type. - signatures required by gogoproto. - voting_start_time: - type: string - format: date-time - voting_end_time: - type: string - format: date-time - description: >- - Proposal defines the core field members of a governance - proposal. + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -655,12 +389,25 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: address + description: address is the account address string. + in: path + required: true + type: string tags: - Query /cosmos/auth/v1beta1/accounts: get: - summary: Accounts returns all the existing accounts - description: 'Since: cosmos-sdk 0.43' + summary: Accounts returns all the existing accounts. + description: >- + When called from another module, this query might consume a high amount + of + + gas if the pagination field is incorrectly set. + + + Since: cosmos-sdk 0.43 operationId: CosmosAuthV1Beta1Accounts responses: '200': @@ -851,9 +598,10 @@ paths: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -1123,7 +871,6 @@ paths: type: object properties: account: - description: account defines the account of the corresponding address. type: object properties: '@type': @@ -1184,22 +931,130 @@ paths: used with implementation specific semantics. additionalProperties: {} - description: >- - QueryAccountResponse is the response type for the Query/Account - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + QueryAccountResponse is the response type for the Query/Account + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: type: object properties: '@type': @@ -1380,188 +1235,23 @@ paths: type: string tags: - Query - /cosmos/auth/v1beta1/module_accounts/{name}: + /cosmos/auth/v1beta1/address_by_id/{id}: get: - summary: ModuleAccountByName returns the module account info by module name - operationId: CosmosAuthV1Beta1ModuleAccountByName + summary: AccountAddressByID returns account address based on account number. + description: 'Since: cosmos-sdk 0.46.2' + operationId: CosmosAuthV1Beta1AccountAddressByID responses: '200': description: A successful response. schema: type: object properties: - account: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - QueryModuleAccountByNameResponse is the response type for the - Query/ModuleAccountByName RPC method. + account_address: + type: string + description: 'Since: cosmos-sdk 0.46.2' + title: >- + QueryAccountAddressByIDResponse is the response type for + AccountAddressByID rpc method default: description: An unexpected error response. schema: @@ -1748,44 +1438,47 @@ paths: "value": "1.212s" } parameters: - - name: name + - name: id + description: |- + Deprecated, use account_id instead + + id is the account number of the address to be queried. This field + should have been an uint64 (like all account numbers), and will be + updated to uint64 in a future version of the auth query. in: path required: true type: string + format: int64 + - name: account_id + description: |- + account_id is the account number of the address to be queried. + + Since: cosmos-sdk 0.47 + in: query + required: false + type: string + format: uint64 tags: - Query - /cosmos/auth/v1beta1/params: + /cosmos/auth/v1beta1/bech32: get: - summary: Params queries all parameters. - operationId: CosmosAuthV1Beta1Params + summary: Bech32Prefix queries bech32Prefix + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosAuthV1Beta1Bech32Prefix responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 + bech32_prefix: + type: string description: >- - QueryParamsResponse is the response type for the Query/Params RPC + Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + + + Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: @@ -1973,226 +1666,25 @@ paths: } tags: - Query - /cosmos/authz/v1beta1/grants: + /cosmos/auth/v1beta1/bech32/{address_bytes}: get: - summary: Returns list of `Authorization`, granted to the grantee by the granter. - operationId: CosmosAuthzV1Beta1Grants + summary: AddressBytesToString converts Account Address bytes to string + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosAuthV1Beta1AddressBytesToString responses: '200': description: A successful response. schema: type: object properties: - grants: - type: array - items: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a - custom JSON - - representation, that representation will be embedded - adding a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message - [google.protobuf.Duration][]): + address_string: + type: string + description: >- + AddressBytesToStringResponse is the response type for + AddressString rpc method. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: >- - authorizations is a list of grants granted for grantee by - granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - was set, its value is undefined otherwise - description: >- - QueryGrantsResponse is the response type for the - Query/Authorizations RPC method. + Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: @@ -2379,305 +1871,33 @@ paths: "value": "1.212s" } parameters: - - name: granter - in: query - required: false - type: string - - name: grantee - in: query - required: false - type: string - - name: msg_type_url - description: >- - Optional, msg_type_url, when set, will query only grants matching - given msg type. - in: query - required: false - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false + - name: address_bytes + in: path + required: true type: string format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /cosmos/authz/v1beta1/grants/grantee/{grantee}: + /cosmos/auth/v1beta1/bech32/{address_string}: get: - summary: GranteeGrants returns a list of `GrantAuthorization` by grantee. - description: 'Since: cosmos-sdk 0.45.2' - operationId: CosmosAuthzV1Beta1GranteeGrants + summary: AddressStringToBytes converts Address string to bytes + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosAuthV1Beta1AddressStringToBytes responses: '200': description: A successful response. schema: type: object properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a - custom JSON - - representation, that representation will be embedded - adding a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message - [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses - of the grantee and granter. + address_bytes: + type: string + format: byte + description: >- + AddressStringToBytesResponse is the response type for AddressBytes + rpc method. - It is used in genesis.proto and query.proto - description: grants is a list of grants granted to the grantee. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - was set, its value is undefined otherwise - description: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. + Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: @@ -2864,294 +2084,204 @@ paths: "value": "1.212s" } parameters: - - name: grantee + - name: address_string in: path required: true type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /cosmos/authz/v1beta1/grants/granter/{granter}: + /cosmos/auth/v1beta1/module_accounts: get: - summary: GranterGrants returns list of `GrantAuthorization`, granted by granter. - description: 'Since: cosmos-sdk 0.45.2' - operationId: CosmosAuthzV1Beta1GranterGrants + summary: ModuleAccounts returns all the existing module accounts. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosAuthV1Beta1ModuleAccounts responses: '200': description: A successful response. schema: type: object properties: - grants: + accounts: type: array items: type: object properties: - granter: - type: string - grantee: + '@type': type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's - path must represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be - in a canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the - binary all types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can - optionally set up a type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available - in the official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty - scheme) might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any - values in the form + Protobuf library provides support to pack/unpack Any values + in the form - of utility functions or additional generated methods of - the Any type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the - regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, - with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a - custom JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded - adding a field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message - [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses - of the grantee and granter. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + QueryModuleAccountsResponse is the response type for the + Query/ModuleAccounts RPC method. - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - was set, its value is undefined otherwise - description: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. + Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: @@ -3337,223 +2467,190 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: granter - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /cosmos/bank/v1beta1/balances/{address}: + /cosmos/auth/v1beta1/module_accounts/{name}: get: - summary: AllBalances queries the balance of all coins for a single account. - operationId: CosmosBankV1Beta1AllBalances + summary: ModuleAccountByName returns the module account info by module name + operationId: CosmosAuthV1Beta1ModuleAccountByName responses: '200': description: A successful response. schema: type: object properties: - balances: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - description: balances is the balances of all the coins. - pagination: - description: pagination defines the pagination in the response. + account: type: object properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + '@type': type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - was set, its value is undefined otherwise - description: >- - QueryAllBalancesResponse is the response type for the - Query/AllBalances RPC + protocol buffer message. This string must contain at least - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: address - description: address is the address to query balances for. - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + one "/" character. The last segment of the URL's path must + represent - It is less efficient than using key. Only one of offset or key - should + the fully qualified name of the type (as in - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + `path/google.protobuf.Duration`). The name should be in a + canonical form - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + (e.g., leading "." is not accepted). - a count of the total number of items available for pagination in - UIs. - count_total is only respected when offset is used. It is ignored - when key + In practice, teams usually precompile into the binary all + types that they - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + expect it to use in the context of Any. However, for URLs + which use the + scheme `http`, `https`, or no scheme, one can optionally + set up a type - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/balances/{address}/by_denom: - get: - summary: Balance queries the balance of a single coin for a single account. - operationId: CosmosBankV1Beta1Balance - responses: - '200': - description: A successful response. - schema: - type: object - properties: - balance: - description: balance is the balance of the coin. - type: object - properties: - denom: - type: string - amount: - type: string + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } description: >- - QueryBalanceResponse is the response type for the Query/Balance - RPC method. + QueryModuleAccountByNameResponse is the response type for the + Query/ModuleAccountByName RPC method. default: description: An unexpected error response. schema: @@ -3571,130 +2668,212 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - - name: address - description: address is the address to query balances for. + - name: name in: path required: true type: string - - name: denom - description: denom is the coin denom to query balances for. - in: query - required: false - type: string tags: - Query - /cosmos/bank/v1beta1/denoms_metadata: + /cosmos/auth/v1beta1/params: get: - summary: >- - DenomsMetadata queries the client metadata for all registered coin - denominations. - operationId: CosmosBankV1Beta1DenomsMetadata + summary: Params queries all parameters. + operationId: CosmosAuthV1Beta1Params responses: '200': description: A successful response. schema: type: object properties: - metadatas: - type: array - items: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given - denom unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one - must - - raise the base_denom to in order to equal the - given DenomUnit's denom - - 1 denom = 1^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: >- - aliases is a list of string aliases for the given - denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: >- - denom_units represents the list of DenomUnit's for a - given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit - with exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges - (eg: ATOM). This can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - description: |- - Metadata represents a struct that describes - a basic token. - description: >- - metadata provides the client information for all the - registered tokens. - pagination: - description: pagination defines the pagination in the response. + params: + description: params defines the parameters of the module. type: object properties: - next_key: + max_memo_characters: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise description: >- - QueryDenomsMetadataResponse is the response type for the - Query/DenomsMetadata RPC - + QueryParamsResponse is the response type for the Query/Params RPC method. default: description: An unexpected error response. @@ -3713,271 +2892,394 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + one "/" character. The last segment of the URL's path + must represent - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/denoms_metadata/{denom}: - get: - summary: DenomsMetadata queries the client metadata of a given coin denomination. - operationId: CosmosBankV1Beta1DenomMetadata - responses: - '200': - description: A successful response. - schema: - type: object - properties: - metadata: - description: >- - metadata describes and provides all the client information for - the requested token. - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom - unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one - must + expect it to use in the context of Any. However, for + URLs which use the - raise the base_denom to in order to equal the given - DenomUnit's denom + scheme `http`, `https`, or no scheme, one can optionally + set up a type - 1 denom = 1^exponent base_denom + server that maps type URLs to message definitions as + follows: - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: >- - aliases is a list of string aliases for the given - denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: >- - denom_units represents the list of DenomUnit's for a given - coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit - with exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: - ATOM). This can + * If no scheme is provided, `https` is assumed. - be the same as the display. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + Note: this functionality is not currently available in + the official - Since: cosmos-sdk 0.43 - description: >- - QueryDenomMetadataResponse is the response type for the - Query/DenomMetadata RPC + protobuf release, and it is not used for type URLs + beginning with - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: denom - description: denom is the coin denom to query the metadata for. - in: path - required: true - type: string - tags: - - Query - /cosmos/bank/v1beta1/params: - get: - summary: Params queries the parameters of x/bank module. - operationId: CosmosBankV1Beta1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status - (whether a denom is + type.googleapis.com. - sendable). - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - description: >- - QueryParamsResponse defines the response type for querying x/bank - parameters. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } tags: - Query - /cosmos/bank/v1beta1/spendable_balances/{address}: + /cosmos/authz/v1beta1/grants: get: - summary: |- - SpendableBalances queries the spenable balance of all coins for a single - account. - operationId: CosmosBankV1Beta1SpendableBalances + summary: Returns list of `Authorization`, granted to the grantee by the granter. + operationId: CosmosAuthzV1Beta1Grants responses: '200': description: A successful response. schema: type: object properties: - balances: + grants: type: array items: type: object properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + protocol buffer message. This string must contain at + least - NOTE: The amount field is an Int which implements the custom - method + one "/" character. The last segment of the URL's + path must represent - signatures required by gogoproto. - description: balances is the spendable balances of all the coins. + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If + null, then the grant + + doesn't have a time expiration (other conditions in + `authorization` + + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + description: >- + authorizations is a list of grants granted for grantee by + granter. pagination: - description: pagination defines the pagination in the response. + description: pagination defines an pagination for the response. type: object properties: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -3987,10 +3289,8 @@ paths: was set, its value is undefined otherwise description: >- - QuerySpendableBalancesResponse defines the gRPC response structure - for querying - - an account's spendable balances. + QueryGrantsResponse is the response type for the + Query/Authorizations RPC method. default: description: An unexpected error response. schema: @@ -4008,14 +3308,191 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: address - description: address is the address to query spendable balances for. - in: path - required: true - type: string - - name: pagination.key + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: granter + in: query + required: false + type: string + - name: grantee + in: query + required: false + type: string + - name: msg_type_url + description: >- + Optional, msg_type_url, when set, will query only grants matching + given msg type. + in: query + required: false + type: string + - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key @@ -4073,47 +3550,221 @@ paths: type: boolean tags: - Query - /cosmos/bank/v1beta1/supply: + /cosmos/authz/v1beta1/grants/grantee/{grantee}: get: - summary: TotalSupply queries the total supply of all coins. - operationId: CosmosBankV1Beta1TotalSupply + summary: GranteeGrants returns a list of `GrantAuthorization` by grantee. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosAuthzV1Beta1GranteeGrants responses: '200': description: A successful response. schema: type: object properties: - supply: + grants: type: array items: type: object properties: - denom: + granter: type: string - amount: + grantee: type: string - description: >- - Coin defines a token with a denomination and an amount. + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain at + least + one "/" character. The last segment of the URL's + path must represent - NOTE: The amount field is an Int which implements the custom - method + the fully qualified name of the type (as in - signatures required by gogoproto. - title: supply is the supply of the coins - pagination: - description: |- - pagination defines the pagination in the response. + `path/google.protobuf.Duration`). The name should be + in a canonical form - Since: cosmos-sdk 0.43 + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses + of the grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted to the grantee. + pagination: + description: pagination defines an pagination for the response. type: object properties: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -4122,11 +3773,9 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - title: >- - QueryTotalSupplyResponse is the response type for the - Query/TotalSupply RPC - - method + description: >- + QueryGranteeGrantsResponse is the response type for the + Query/GranteeGrants RPC method. default: description: An unexpected error response. schema: @@ -4144,706 +3793,463 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + one "/" character. The last segment of the URL's path + must represent - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/supply/{denom}: - get: - summary: SupplyOf queries the supply of a single coin. - operationId: CosmosBankV1Beta1SupplyOf - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amount: - description: amount is the supply of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QuerySupplyOfResponse is the response type for the Query/SupplyOf - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: denom - description: denom is the coin denom to query balances for. - in: path - required: true - type: string - tags: - - Query - /cosmos/base/tendermint/v1beta1/blocks/latest: - get: - summary: GetLatestBlock returns the latest block. - operationId: CosmosBaseTendermintV1Beta1GetLatestBlock + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: grantee + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/authz/v1beta1/grants/granter/{granter}: + get: + summary: GranterGrants returns list of `GrantAuthorization`, granted by granter. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosAuthzV1Beta1GranterGrants responses: '200': description: A successful response. schema: type: object properties: - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - including all blockchain data structures and the rules - of the application's + protocol buffer message. This string must contain at + least - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. + one "/" character. The last segment of the URL's + path must represent - NOTE: not all txs here are valid. We're just agreeing - on the order first. + the fully qualified name of the type (as in - This means that block.AppHash does not include these - txs. - title: >- - Data contains the set of transactions included in the - block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed - message in the consensus. + `path/google.protobuf.Duration`). The name should be + in a canonical form - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + (e.g., leading "." is not accepted). - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed - message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + In practice, teams usually precompile into the + binary all types that they - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a - validator signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, + expect it to use in the context of Any. However, for + URLs which use the - including all blockchain data structures - and the rules of the application's + scheme `http`, `https`, or no scheme, one can + optionally set up a type - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: >- - commit from validators from the last - block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs - from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a block - header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a - block was committed by a set of - validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a - set of validators attempting to mislead a light - client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was committed by - a set of validators. + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses + of the grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted by the granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise description: >- - GetLatestBlockResponse is the response type for the - Query/GetLatestBlock RPC method. + QueryGranterGrantsResponse is the response type for the + Query/GranterGrants RPC method. default: description: An unexpected error response. schema: @@ -5029,601 +4435,229 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - tags: - - Service - /cosmos/base/tendermint/v1beta1/blocks/{height}: - get: - summary: GetBlockByHeight queries block for given height. - operationId: CosmosBaseTendermintV1Beta1GetBlockByHeight - responses: - '200': - description: A successful response. - schema: - type: object - properties: - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, + parameters: + - name: granter + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - including all blockchain data structures and the rules - of the application's + It is less efficient than using key. Only one of offset or key + should - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - NOTE: not all txs here are valid. We're just agreeing - on the order first. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - This means that block.AppHash does not include these - txs. + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/balances/{address}: + get: + summary: AllBalances queries the balance of all coins for a single account. + description: >- + When called from another module, this query might consume a high amount + of + + gas if the pagination field is incorrectly set. + operationId: CosmosBankV1Beta1AllBalances + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: balances is the balances of all the coins. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 title: >- - Data contains the set of transactions included in the - block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed - message in the consensus. + total is total number of results available if + PageRequest.count_total - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + was set, its value is undefined otherwise + description: >- + QueryAllBalancesResponse is the response type for the + Query/AllBalances RPC - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed - message in the consensus. + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query balances for. + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + It is less efficient than using key. Only one of offset or key + should - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a - validator signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - including all blockchain data structures - and the rules of the application's + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: >- - commit from validators from the last - block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs - from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a block - header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a - block was committed by a set of - validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a - set of validators attempting to mislead a light - client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was committed by - a set of validators. + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/balances/{address}/by_denom: + get: + summary: Balance queries the balance of a single coin for a single account. + operationId: CosmosBankV1Beta1Balance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balance: + description: balance is the balance of the coin. + type: object + properties: + denom: + type: string + amount: + type: string description: >- - GetBlockByHeightResponse is the response type for the - Query/GetBlockByHeight RPC method. + QueryBalanceResponse is the response type for the Query/Balance + RPC method. default: description: An unexpected error response. schema: @@ -5641,264 +4675,564 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + additionalProperties: {} + parameters: + - name: address + description: address is the address to query balances for. + in: path + required: true + type: string + - name: denom + description: denom is the coin denom to query balances for. + in: query + required: false + type: string + tags: + - Query + /cosmos/bank/v1beta1/denom_owners/{denom}: + get: + summary: >- + DenomOwners queries for all account addresses that own a particular + token - protocol buffer message. This string must contain at - least + denomination. + description: >- + When called from another module, this query might consume a high amount + of - one "/" character. The last segment of the URL's path - must represent + gas if the pagination field is incorrectly set. - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + Since: cosmos-sdk 0.46 + operationId: CosmosBankV1Beta1DenomOwners + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denom_owners: + type: array + items: + type: object + properties: + address: + type: string + description: >- + address defines the address that owns a particular + denomination. + balance: + description: >- + balance is the balance of the denominated coin for an + account. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DenomOwner defines structure representing an account that + owns or holds a - (e.g., leading "." is not accepted). + particular denominated token. It contains the account + address and account + balance of the denominated token. - In practice, teams usually precompile into the binary - all types that they - expect it to use in the context of Any. However, for - URLs which use the + Since: cosmos-sdk 0.46 + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - scheme `http`, `https`, or no scheme, one can optionally - set up a type + was set, its value is undefined otherwise + description: >- + QueryDenomOwnersResponse defines the RPC response of a DenomOwners + RPC query. - server that maps type URLs to message definitions as - follows: + Since: cosmos-sdk 0.46 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + description: >- + denom defines the coin denomination to query all account holders + for. + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - * If no scheme is provided, `https` is assumed. + It is less efficient than using key. Only one of offset or key + should - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - Note: this functionality is not currently available in - the official + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - protobuf release, and it is not used for type URLs - beginning with + a count of the total number of items available for pagination in + UIs. - type.googleapis.com. + count_total is only respected when offset is used. It is ignored + when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - Schemes other than `http`, `https` (or the empty scheme) - might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/denoms_metadata: + get: + summary: |- + DenomsMetadata queries the client metadata for all registered coin + denominations. + operationId: CosmosBankV1Beta1DenomsMetadata + responses: + '200': + description: A successful response. + schema: + type: object + properties: + metadatas: + type: array + items: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given + denom unit (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one + must - URL that describes the type of the serialized message. + raise the base_denom to in order to equal the + given DenomUnit's denom + 1 denom = 10^exponent base_denom - Protobuf library provides support to pack/unpack Any values - in the form + (e.g. with a base_denom of uatom, one can create a + DenomUnit of 'atom' with - of utility functions or additional generated methods of the - Any type. + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: >- + aliases is a list of string aliases for the given + denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: >- + denom_units represents the list of DenomUnit's for a + given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit + with exponent = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges + (eg: ATOM). This can + be the same as the display. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Since: cosmos-sdk 0.43 + uri: + type: string + description: >- + URI to a document (on or off-chain) that contains + additional information. Optional. - Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Since: cosmos-sdk 0.46 + uri_hash: + type: string + description: >- + URIHash is a sha256 hash of a document pointed by URI. + It's used to verify that - Example 3: Pack and unpack a message in Python. + the document didn't change. Optional. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Since: cosmos-sdk 0.46 + description: |- + Metadata represents a struct that describes + a basic token. + description: >- + metadata provides the client information for all the + registered tokens. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + was set, its value is undefined otherwise + description: >- + QueryDenomsMetadataResponse is the response type for the + Query/DenomsMetadata RPC - The pack methods provided by protobuf library will by - default use + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + It is less efficient than using key. Only one of offset or key + should - methods only use the fully qualified type name after the - last '/' + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - name "y.z". + a count of the total number of items available for pagination in + UIs. + count_total is only respected when offset is used. It is ignored + when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - JSON - ==== + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/denoms_metadata/{denom}: + get: + summary: DenomsMetadata queries the client metadata of a given coin denomination. + operationId: CosmosBankV1Beta1DenomMetadata + responses: + '200': + description: A successful response. + schema: + type: object + properties: + metadata: + description: >- + metadata describes and provides all the client information for + the requested token. + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom + unit (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one + must - The JSON representation of an `Any` value uses the regular + raise the base_denom to in order to equal the given + DenomUnit's denom - representation of the deserialized, embedded message, with - an + 1 denom = 10^exponent base_denom - additional field `@type` which contains the type URL. - Example: + (e.g. with a base_denom of uatom, one can create a + DenomUnit of 'atom' with - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: >- + aliases is a list of string aliases for the given + denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: >- + denom_units represents the list of DenomUnit's for a given + coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit + with exponent = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: + ATOM). This can - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + be the same as the display. - If the embedded message type is well-known and has a custom - JSON - representation, that representation will be embedded adding - a field + Since: cosmos-sdk 0.43 + uri: + type: string + description: >- + URI to a document (on or off-chain) that contains + additional information. Optional. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + Since: cosmos-sdk 0.46 + uri_hash: + type: string + description: >- + URIHash is a sha256 hash of a document pointed by URI. + It's used to verify that - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + the document didn't change. Optional. + + + Since: cosmos-sdk 0.46 + description: >- + QueryDenomMetadataResponse is the response type for the + Query/DenomMetadata RPC + + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} parameters: - - name: height + - name: denom + description: denom is the coin denom to query the metadata for. in: path required: true type: string - format: int64 tags: - - Service - /cosmos/base/tendermint/v1beta1/node_info: + - Query + /cosmos/bank/v1beta1/params: get: - summary: GetNodeInfo queries the current node info. - operationId: CosmosBaseTendermintV1Beta1GetNodeInfo + summary: Params queries the parameters of x/bank module. + operationId: CosmosBankV1Beta1Params responses: '200': description: A successful response. schema: type: object properties: - default_node_info: - type: object - properties: - protocol_version: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: - type: string - other: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - application_version: + params: type: object properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: + send_enabled: type: array items: type: object properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: + denom: type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status + (whether a denom is + + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. + + For genesis, use the newly added send_enabled field in the + genesis object. + + Storage, lookup, and manipulation of this information is + now in the keeper. + + + As of cosmos-sdk 0.47, this only exists for backwards + compatibility of genesis files. + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. description: >- - GetNodeInfoResponse is the request type for the Query/GetNodeInfo - RPC method. + QueryParamsResponse defines the response type for querying x/bank + parameters. default: description: An unexpected error response. schema: @@ -5916,191 +5250,651 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). + additionalProperties: {} + tags: + - Query + /cosmos/bank/v1beta1/send_enabled: + get: + summary: SendEnabled queries for SendEnabled entries. + description: >- + This query only returns denominations that have specific SendEnabled + settings. + Any denomination that does not have a specific setting will use the + default - In practice, teams usually precompile into the binary - all types that they + params.default_send_enabled, and will not be returned by this query. - expect it to use in the context of Any. However, for - URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + Since: cosmos-sdk 0.47 + operationId: CosmosBankV1Beta1SendEnabled + responses: + '200': + description: A successful response. + schema: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status + (whether a denom is - server that maps type URLs to message definitions as - follows: + sendable). + pagination: + description: >- + pagination defines the pagination in the response. This field + is only + populated if the denoms field in the request is empty. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - * If no scheme is provided, `https` is assumed. + was set, its value is undefined otherwise + description: >- + QuerySendEnabledResponse defines the RPC response of a SendEnable + query. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in - the official + Since: cosmos-sdk 0.47 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denoms + description: >- + denoms is the specific denoms you want look up. Leave empty to get + all entries. + in: query + required: false + type: array + items: + type: string + collectionFormat: multi + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - protobuf release, and it is not used for type URLs - beginning with + It is less efficient than using key. Only one of offset or key + should - type.googleapis.com. + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - Schemes other than `http`, `https` (or the empty scheme) - might be + a count of the total number of items available for pagination in + UIs. - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + count_total is only respected when offset is used. It is ignored + when key - URL that describes the type of the serialized message. + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - Protobuf library provides support to pack/unpack Any values - in the form + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/spendable_balances/{address}: + get: + summary: >- + SpendableBalances queries the spendable balance of all coins for a + single - of utility functions or additional generated methods of the - Any type. + account. + description: >- + When called from another module, this query might consume a high amount + of + gas if the pagination field is incorrectly set. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Since: cosmos-sdk 0.46 + operationId: CosmosBankV1Beta1SpendableBalances + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + NOTE: The amount field is an Int which implements the custom + method - Example 3: Pack and unpack a message in Python. + signatures required by gogoproto. + description: balances is the spendable balances of all the coins. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + was set, its value is undefined otherwise + description: >- + QuerySpendableBalancesResponse defines the gRPC response structure + for querying - Example 4: Pack and unpack a message in Go + an account's spendable balances. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - The pack methods provided by protobuf library will by - default use + Since: cosmos-sdk 0.46 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query spendable balances for. + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + It is less efficient than using key. Only one of offset or key + should - methods only use the fully qualified type name after the - last '/' + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - name "y.z". + a count of the total number of items available for pagination in + UIs. + count_total is only respected when offset is used. It is ignored + when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - JSON - ==== + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom: + get: + summary: >- + SpendableBalanceByDenom queries the spendable balance of a single denom + for - The JSON representation of an `Any` value uses the regular + a single account. + description: >- + When called from another module, this query might consume a high amount + of - representation of the deserialized, embedded message, with - an + gas if the pagination field is incorrectly set. - additional field `@type` which contains the type URL. - Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Since: cosmos-sdk 0.47 + operationId: CosmosBankV1Beta1SpendableBalanceByDenom + responses: + '200': + description: A successful response. + schema: + type: object + properties: + balance: + description: balance is the balance of the coin. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QuerySpendableBalanceByDenomResponse defines the gRPC response + structure for - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + querying an account's spendable balance for a specific denom. - If the embedded message type is well-known and has a custom - JSON - representation, that representation will be embedded adding - a field + Since: cosmos-sdk 0.47 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + description: address is the address to query balances for. + in: path + required: true + type: string + - name: denom + description: denom is the coin denom to query balances for. + in: query + required: false + type: string + tags: + - Query + /cosmos/bank/v1beta1/supply: + get: + summary: TotalSupply queries the total supply of all coins. + description: >- + When called from another module, this query might consume a high amount + of - `value` which holds the custom JSON in addition to the - `@type` + gas if the pagination field is incorrectly set. + operationId: CosmosBankV1Beta1TotalSupply + responses: + '200': + description: A successful response. + schema: + type: object + properties: + supply: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: supply is the supply of the coins + pagination: + description: |- + pagination defines the pagination in the response. + + Since: cosmos-sdk 0.43 + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + title: >- + QueryTotalSupplyResponse is the response type for the + Query/TotalSupply RPC + + method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - - Service - /cosmos/base/tendermint/v1beta1/syncing: + - Query + /cosmos/bank/v1beta1/supply/by_denom: get: - summary: GetSyncing queries node syncing. - operationId: CosmosBaseTendermintV1Beta1GetSyncing + summary: SupplyOf queries the supply of a single coin. + description: >- + When called from another module, this query might consume a high amount + of + + gas if the pagination field is incorrectly set. + operationId: CosmosBankV1Beta1SupplyOf responses: '200': description: A successful response. schema: type: object properties: - syncing: - type: boolean + amount: + description: amount is the supply of the coin. + type: object + properties: + denom: + type: string + amount: + type: string description: >- - GetSyncingResponse is the response type for the Query/GetSyncing + QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: denom + description: denom is the coin denom to query balances for. + in: query + required: false + type: string + tags: + - Query + /cosmos/base/tendermint/v1beta1/abci_query: + get: + summary: >- + ABCIQuery defines a query handler that supports ABCI queries directly to + the + + application, bypassing Tendermint completely. The ABCI query must + contain + + a valid and supported path, including app, custom, p2p, and store. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosBaseTendermintV1Beta1ABCIQuery + responses: + '200': + description: A successful response. + schema: + type: object + properties: + code: + type: integer + format: int64 + log: + type: string + title: nondeterministic + info: + type: string + title: nondeterministic + index: + type: string + format: int64 + key: + type: string + format: byte + value: + type: string + format: byte + proof_ops: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + description: >- + ProofOp defines an operation used for calculating Merkle + root. The data could + + be arbitrary format, providing necessary data for + example neighbouring node + + hash. + + + Note: This type is a duplicate of the ProofOp proto type + defined in Tendermint. + description: >- + ProofOps is Merkle proof defined by the list of ProofOps. + + + Note: This type is a duplicate of the ProofOps proto type + defined in Tendermint. + height: + type: string + format: int64 + codespace: + type: string + description: >- + ABCIQueryResponse defines the response structure for the ABCIQuery + gRPC query. + + + Note: This type is a duplicate of the ResponseQuery proto type + defined in + + Tendermint. default: description: An unexpected error response. schema: @@ -6286,347 +6080,1315 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: data + in: query + required: false + type: string + format: byte + - name: path + in: query + required: false + type: string + - name: height + in: query + required: false + type: string + format: int64 + - name: prove + in: query + required: false + type: boolean tags: - Service - /cosmos/base/tendermint/v1beta1/validatorsets/latest: + /cosmos/base/tendermint/v1beta1/blocks/latest: get: - summary: GetLatestValidatorSet queries latest validator-set. - operationId: CosmosBaseTendermintV1Beta1GetLatestValidatorSet + summary: GetLatestBlock returns the latest block. + operationId: CosmosBaseTendermintV1Beta1GetLatestBlock responses: '200': description: A successful response. schema: type: object properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a - custom JSON - - representation, that representation will be embedded - adding a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message - [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. + block_id: type: object properties: - next_key: + hash: type: string format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - GetLatestValidatorSetResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + block: + title: 'Deprecated: please use `sdk_block` instead' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, - (e.g., leading "." is not accepted). + including all blockchain data structures and the rules + of the application's + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. - In practice, teams usually precompile into the binary - all types that they + NOTE: not all txs here are valid. We're just agreeing + on the order first. - expect it to use in the context of Any. However, for - URLs which use the + This means that block.AppHash does not include these + txs. + title: >- + Data contains the set of transactions included in the + block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - scheme `http`, `https`, or no scheme, one can optionally - set up a type + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for - server that maps type URLs to message definitions as - follows: + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for - * If no scheme is provided, `https` is assumed. + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a + validator signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + including all blockchain data structures + and the rules of the application's - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a + block was committed by a set of + validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a + set of validators attempting to mislead a light + client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + sdk_block: + title: 'Since: cosmos-sdk 0.47' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, - URL that describes the type of the serialized message. + including all blockchain data structures and the rules + of the application's + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer + address, formatted as a Bech32 string. - Protobuf library provides support to pack/unpack Any values - in the form + In Tendermint, this type is `bytes`, but in the SDK, + we convert it to a Bech32 string - of utility functions or additional generated methods of the - Any type. + for better UX. - Example 1: Pack and unpack a message in C++. + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + NOTE: not all txs here are valid. We're just agreeing + on the order first. - Example 2: Pack and unpack a message in Java. + This means that block.AppHash does not include these + txs. + title: >- + Data contains the set of transactions included in the + block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for - Example 3: Pack and unpack a message in Python. + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a + validator signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + + including all blockchain data structures + and the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a + block was committed by a set of + validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a + set of validators attempting to mislead a light + client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + description: >- + Block is tendermint type Block, with the Header proposer + address + + field converted to bech32 string. + description: >- + GetLatestBlockResponse is the response type for the + Query/GetLatestBlock RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... Example 4: Pack and unpack a message in Go @@ -6696,570 +7458,1213 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Service - /cosmos/base/tendermint/v1beta1/validatorsets/{height}: + /cosmos/base/tendermint/v1beta1/blocks/{height}: get: - summary: GetValidatorSetByHeight queries validator-set at a given height. - operationId: CosmosBaseTendermintV1Beta1GetValidatorSetByHeight + summary: GetBlockByHeight queries block for given height. + operationId: CosmosBaseTendermintV1Beta1GetBlockByHeight responses: '200': description: A successful response. schema: type: object properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a - custom JSON - - representation, that representation will be embedded - adding a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message - [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. + block_id: type: object properties: - next_key: + hash: type: string format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - GetValidatorSetByHeightResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + block: + title: 'Deprecated: please use `sdk_block` instead' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, - * If no scheme is provided, `https` is assumed. + including all blockchain data structures and the rules + of the application's - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. - Note: this functionality is not currently available in - the official + NOTE: not all txs here are valid. We're just agreeing + on the order first. - protobuf release, and it is not used for type URLs - beginning with + This means that block.AppHash does not include these + txs. + title: >- + Data contains the set of transactions included in the + block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - type.googleapis.com. + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for - Protobuf library provides support to pack/unpack Any values - in the form + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a + validator signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, - of utility functions or additional generated methods of the - Any type. + including all blockchain data structures + and the rules of the application's + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a + block was committed by a set of + validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a + set of validators attempting to mislead a light + client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + sdk_block: + title: 'Since: cosmos-sdk 0.47' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, - Example 1: Pack and unpack a message in C++. + including all blockchain data structures and the rules + of the application's - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer + address, formatted as a Bech32 string. - Example 2: Pack and unpack a message in Java. + In Tendermint, this type is `bytes`, but in the SDK, + we convert it to a Bech32 string - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + for better UX. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. - Example 4: Pack and unpack a message in Go + NOTE: not all txs here are valid. We're just agreeing + on the order first. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use + This means that block.AppHash does not include these + txs. + title: >- + Data contains the set of transactions included in the + block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for - methods only use the fully qualified type name after the - last '/' + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed + message in the consensus. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or + commit vote from validators for - name "y.z". + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a + validator signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + including all blockchain data structures + and the rules of the application's + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a + block was committed by a set of + validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a + set of validators attempting to mislead a light + client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + description: >- + Block is tendermint type Block, with the Header proposer + address - JSON + field converted to bech32 string. + description: >- + GetBlockByHeightResponse is the response type for the + Query/GetBlockByHeight RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - ==== + protocol buffer message. This string must contain at + least - The JSON representation of an `Any` value uses the regular + one "/" character. The last segment of the URL's path + must represent - representation of the deserialized, embedded message, with - an + the fully qualified name of the type (as in - additional field `@type` which contains the type URL. - Example: + `path/google.protobuf.Duration`). The name should be in + a canonical form - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: height - in: path - required: true - type: string - format: int64 - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Service - /cosmos/evidence/v1beta1/evidence: - get: - summary: AllEvidence queries all evidence. - operationId: CosmosEvidenceV1Beta1AllEvidence - responses: - '200': - description: A successful response. - schema: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). In practice, teams usually precompile into the binary @@ -7412,30 +8817,96 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - description: evidence returns all evidences. - pagination: - description: pagination defines the pagination in the response. + parameters: + - name: height + in: path + required: true + type: string + format: int64 + tags: + - Service + /cosmos/base/tendermint/v1beta1/node_info: + get: + summary: GetNodeInfo queries the current node info. + operationId: CosmosBaseTendermintV1Beta1GetNodeInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + default_node_info: type: object properties: - next_key: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: type: string format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + moniker: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + application_version: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + title: 'Since: cosmos-sdk 0.43' + description: VersionInfo is the type for the GetNodeInfoResponse message. description: >- - QueryAllEvidenceResponse is the response type for the - Query/AllEvidence RPC - - method. + GetNodeInfoResponse is the response type for the Query/GetNodeInfo + RPC method. default: description: An unexpected error response. schema: @@ -7621,139 +9092,22 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - - Query - /cosmos/evidence/v1beta1/evidence/{evidence_hash}: + - Service + /cosmos/base/tendermint/v1beta1/syncing: get: - summary: Evidence queries evidence based on evidence hash. - operationId: CosmosEvidenceV1Beta1Evidence + summary: GetSyncing queries node syncing. + operationId: CosmosBaseTendermintV1Beta1GetSyncing responses: '200': description: A successful response. schema: type: object properties: - evidence: - description: evidence returns the requested evidence. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} + syncing: + type: boolean description: >- - QueryEvidenceResponse is the response type for the Query/Evidence + GetSyncingResponse is the response type for the Query/GetSyncing RPC method. default: description: An unexpected error response. @@ -7940,404 +9294,210 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: evidence_hash - description: evidence_hash defines the hash of the requested evidence. - in: path - required: true - type: string - format: byte tags: - - Query - /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: + - Service + /cosmos/base/tendermint/v1beta1/validatorsets/latest: get: - summary: Allowance returns fee granted to the grantee by the granter. - operationId: CosmosFeegrantV1Beta1Allowance + summary: GetLatestValidatorSet queries latest validator-set. + operationId: CosmosBaseTendermintV1Beta1GetLatestValidatorSet responses: '200': description: A successful response. schema: type: object properties: - allowance: - description: allowance is a allowance granted for grantee by granter. - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance - of their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an - allowance of another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's + path must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be - in a canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the + binary all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can - optionally set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently available + in the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty - scheme) might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - title: >- - Grant is stored in the KVStore to record a grant with full - context - description: >- - QueryAllowanceResponse is the response type for the - Query/Allowance RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + used with implementation specific semantics. + additionalProperties: {} description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least + `Any` contains an arbitrary serialized protocol buffer + message along with a - one "/" character. The last segment of the URL's path - must represent + URL that describes the type of the serialized message. - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + Protobuf library provides support to pack/unpack Any + values in the form - (e.g., leading "." is not accepted). + of utility functions or additional generated methods of + the Any type. - In practice, teams usually precompile into the binary - all types that they + Example 1: Pack and unpack a message in C++. - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the + regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, + with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message + [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: granter - description: >- - granter is the address of the user granting an allowance of their - funds. - in: path - required: true - type: string - - name: grantee - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - in: path - required: true - type: string - tags: - - Query - /cosmos/feegrant/v1beta1/allowances/{grantee}: - get: - summary: Allowances returns all the grants for address. - operationId: CosmosFeegrantV1Beta1Allowances - responses: - '200': - description: A successful response. - schema: - type: object - properties: - allowances: - type: array - items: - type: object - properties: - granter: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + voting_power: type: string - description: >- - granter is the address of the user granting an allowance - of their funds. - grantee: + format: int64 + proposer_priority: type: string - description: >- - grantee is the address of the user being granted an - allowance of another user's funds. - allowance: - description: >- - allowance can be any of basic and filtered fee - allowance. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - title: >- - Grant is stored in the KVStore to record a grant with full - context - description: allowances are allowance's granted for grantee by granter. + format: int64 + description: Validator is the type for the validator-set. pagination: description: pagination defines an pagination for the response. type: object @@ -8345,9 +9505,10 @@ paths: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -8357,8 +9518,8 @@ paths: was set, its value is undefined otherwise description: >- - QueryAllowancesResponse is the response type for the - Query/Allowances RPC method. + GetLatestValidatorSetResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. default: description: An unexpected error response. schema: @@ -8545,10 +9706,6 @@ paths: "value": "1.212s" } parameters: - - name: grantee - in: path - required: true - type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -8606,38 +9763,28 @@ paths: required: false type: boolean tags: - - Query - /cosmos/feegrant/v1beta1/issued/{granter}: + - Service + /cosmos/base/tendermint/v1beta1/validatorsets/{height}: get: - summary: |- - AllowancesByGranter returns all the grants given by an address - Since v0.46 - operationId: CosmosFeegrantV1Beta1AllowancesByGranter + summary: GetValidatorSetByHeight queries validator-set at a given height. + operationId: CosmosBaseTendermintV1Beta1GetValidatorSetByHeight responses: '200': description: A successful response. schema: type: object properties: - allowances: + block_height: + type: string + format: int64 + validators: type: array items: type: object properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance - of their funds. - grantee: + address: type: string - description: >- - grantee is the address of the user being granted an - allowance of another user's funds. - allowance: - description: >- - allowance can be any of basic and filtered fee - allowance. + pub_key: type: object properties: '@type': @@ -8699,10 +9846,126 @@ paths: used with implementation specific semantics. additionalProperties: {} - title: >- - Grant is stored in the KVStore to record a grant with full - context - description: allowances that have been issued by the granter. + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. pagination: description: pagination defines an pagination for the response. type: object @@ -8710,9 +9973,10 @@ paths: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -8722,8 +9986,8 @@ paths: was set, its value is undefined otherwise description: >- - QueryAllowancesByGranterResponse is the response type for the - Query/AllowancesByGranter RPC method. + GetValidatorSetByHeightResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. default: description: An unexpected error response. schema: @@ -8910,10 +10174,11 @@ paths: "value": "1.212s" } parameters: - - name: granter + - name: height in: path required: true type: string + format: int64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -8971,356 +10236,105 @@ paths: required: false type: boolean tags: - - Query - /cosmos/params/v1beta1/params: + - Service + /cosmos/consensus/v1/params: get: - summary: |- - Params queries a specific parameter of a module, given its subspace and - key. - operationId: CosmosParamsV1Beta1Params + summary: Params queries the parameters of x/consensus_param module. + operationId: CosmosConsensusV1Params responses: '200': description: A successful response. schema: type: object properties: - param: - description: param defines the queried parameter. + params: + description: >- + params are the tendermint consensus params stored in the + consensus module. + + Please note that `params.version` is not populated in this + response, it is + + tracked separately in the x/upgrade module. type: object properties: - subspace: - type: string - key: - type: string - value: - type: string - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: subspace - description: subspace defines the module to query the parameter for. - in: query - required: false - type: string - - name: key - description: key defines the key of the parameter in the subspace. - in: query - required: false - type: string - tags: - - Query - /cosmos/slashing/v1beta1/params: - get: - summary: Params queries the parameters of slashing module - operationId: CosmosSlashingV1Beta1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - type: object - properties: - signed_blocks_window: - type: string - format: int64 - min_signed_per_window: - type: string - format: byte - downtime_jail_duration: - type: string - slash_fraction_double_sign: - type: string - format: byte - slash_fraction_downtime: - type: string - format: byte - description: >- - Params represents the parameters used for by the slashing - module. - title: >- - QueryParamsResponse is the response type for the Query/Params RPC - method - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /cosmos/slashing/v1beta1/signing_infos: - get: - summary: SigningInfos queries signing info of all validators - operationId: CosmosSlashingV1Beta1SigningInfos - responses: - '200': - description: A successful response. - schema: - type: object - properties: - info: - type: array - items: - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: >- - Height at which validator was first a candidate OR was - unjailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented each time the validator was a - bonded - - in a block and may have signed a precommit or not. This - in conjunction with the - - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to - liveness downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed - out of validator set). It is set - - once the validator commits an equivocation or for any - other configured misbehiavor. - missed_blocks_counter: - type: string - format: int64 - description: >- - A counter kept to avoid unnecessary array reads. - - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. - description: >- - ValidatorSigningInfo defines a validator's signing info for - monitoring their - - liveness activity. - title: info is the signing info of all validators - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - title: >- - QuerySigningInfosResponse is the response type for the - Query/SigningInfos RPC - - method - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should + block: + type: object + properties: + max_bytes: + type: string + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: + type: string + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + description: BlockParams contains limits on the block size. + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + description: >- + Max age of evidence, in blocks. - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + The basic formula for calculating this is: + MaxAgeDuration / {average block - a count of the total number of items available for pagination in - UIs. + time}. + max_age_duration: + type: string + description: >- + Max age of evidence, in time. - count_total is only respected when offset is used. It is ignored - when key - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + It should correspond with an app's "unbonding period" + or other similar + mechanism for handling [Nothing-At-Stake - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/slashing/v1beta1/signing_infos/{cons_address}: - get: - summary: SigningInfo queries the signing info of given cons address - operationId: CosmosSlashingV1Beta1SigningInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - val_signing_info: - title: >- - val_signing_info is the signing info of requested val cons - address - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: >- - Height at which validator was first a candidate OR was - unjailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented each time the validator was a - bonded + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes + that can be committed in a single block. - in a block and may have signed a precommit or not. This in - conjunction with the + and should fall comfortably under the max block bytes. - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. - jailed_until: - type: string - format: date-time + Default is 1048576 or 1MB description: >- - Timestamp until which the validator is jailed due to - liveness downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out - of validator set). It is set - - once the validator commits an equivocation or for any - other configured misbehiavor. - missed_blocks_counter: - type: string - format: int64 + EvidenceParams determine how we handle evidence of + malfeasance. + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string description: >- - A counter kept to avoid unnecessary array reads. - - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. - description: >- - ValidatorSigningInfo defines a validator's signing info for - monitoring their - - liveness activity. - title: >- - QuerySigningInfoResponse is the response type for the - Query/SigningInfo RPC + ValidatorParams restrict the public key types validators + can use. - method + NOTE: uses ABCI pubkey naming, not Amino names. + version: + type: object + properties: + app: + type: string + format: uint64 + description: VersionParams contains the ABCI application version. + description: >- + QueryParamsResponse defines the response type for querying + x/consensus parameters. default: description: An unexpected error response. schema: @@ -9339,107 +10353,19 @@ paths: '@type': type: string additionalProperties: {} - parameters: - - name: cons_address - description: cons_address is the address to query signing info of - in: path - required: true - type: string tags: - Query - /cosmos/tx/v1beta1/simulate: - post: - summary: Simulate simulates executing a transaction for estimating gas usage. - operationId: CosmosTxV1Beta1Simulate + /cosmos/evidence/v1beta1/evidence: + get: + summary: AllEvidence queries all evidence. + operationId: CosmosEvidenceV1Beta1AllEvidence responses: '200': description: A successful response. schema: type: object properties: - gas_info: - description: gas_info is the information about gas used in the simulation. - type: object - properties: - gas_wanted: - type: string - format: uint64 - description: >- - GasWanted is the maximum units of work we allow this tx to - perform. - gas_used: - type: string - format: uint64 - description: GasUsed is the amount of gas actually consumed. - result: - description: result is the result of the simulation. - type: object - properties: - data: - type: string - format: byte - description: >- - Data is any data returned from message or handler - execution. It MUST be - - length prefixed in order to separate data from multiple - message executions. - log: - type: string - description: >- - Log contains the log information from message or handler - execution. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - format: byte - value: - type: string - format: byte - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, - associated with an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx - and ResponseDeliverTx. - - Later, transactions may be queried using these events. - description: >- - Events contains a slice of Event objects that were emitted - during message - - or handler execution. - description: |- - SimulateResponse is the response type for the - Service.SimulateRPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + evidence: type: array items: type: object @@ -9614,26 +10540,31 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: body - description: |- - SimulateRequest is the request type for the Service.Simulate - RPC method. - in: body - required: true - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest' - tags: - - Service - /cosmos/tx/v1beta1/txs: - get: - summary: GetTxsEvent fetches txs by event. - operationId: CosmosTxV1Beta1GetTxsEvent - responses: - '200': - description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse' + description: evidence returns all evidences. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryAllEvidenceResponse is the response type for the + Query/AllEvidence RPC + + method. default: description: An unexpected error response. schema: @@ -9820,14 +10751,6 @@ paths: "value": "1.212s" } parameters: - - name: events - description: events is the list of transaction event type. - in: query - required: false - type: array - items: - type: string - collectionFormat: multi - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -9884,240 +10807,83 @@ paths: in: query required: false type: boolean - - name: order_by - description: |2- - - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. - - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - - ORDER_BY_DESC: ORDER_BY_DESC defines descending order - in: query - required: false - type: string - enum: - - ORDER_BY_UNSPECIFIED - - ORDER_BY_ASC - - ORDER_BY_DESC - default: ORDER_BY_UNSPECIFIED tags: - - Service - post: - summary: BroadcastTx broadcast transaction. - operationId: CosmosTxV1Beta1BroadcastTx + - Query + /cosmos/evidence/v1beta1/evidence/{hash}: + get: + summary: Evidence queries evidence based on evidence hash. + operationId: CosmosEvidenceV1Beta1Evidence responses: '200': description: A successful response. schema: type: object properties: - tx_response: - description: tx_response is the queried TxResponses. + evidence: + description: evidence returns the requested evidence. type: object properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: + '@type': type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: - type: string - description: Result bytes, if any. - raw_log: - type: string - description: >- - The output of the application's logger (raw string). May - be - - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where - the key and value are - - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where - all the attributes - - contain key/value pairs that are strings instead - of raw bytes. - description: >- - Events contains a slice of Event objects that were - emitted during some - - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed - tx ABCI message log. description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type + A URL/resource name that uniquely identifies the type of + the serialized - server that maps type URLs to message definitions as - follows: + protocol buffer message. This string must contain at least + one "/" character. The last segment of the URL's path must + represent - * If no scheme is provided, `https` is assumed. + the fully qualified name of the type (as in - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + `path/google.protobuf.Duration`). The name should be in a + canonical form - Note: this functionality is not currently available in - the official + (e.g., leading "." is not accepted). - protobuf release, and it is not used for type URLs - beginning with - type.googleapis.com. + In practice, teams usually precompile into the binary all + types that they + expect it to use in the context of Any. However, for URLs + which use the - Schemes other than `http`, `https` (or the empty - scheme) might be + scheme `http`, `https`, or no scheme, one can optionally + set up a type - used with implementation specific semantics. - additionalProperties: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the - weighted median of + server that maps type URLs to message definitions as + follows: - the timestamps of the valid votes in the block.LastCommit. - For height == 1, - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - format: byte - value: - type: string - format: byte - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, - associated with an event. - description: >- - Event allows application developers to attach additional - information to + * If no scheme is provided, `https` is assumed. - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx - and ResponseDeliverTx. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a - transaction. Note, + Note: this functionality is not currently available in the + official - these events include those emitted by processing all the - messages and those + protobuf release, and it is not used for type URLs + beginning with - emitted from the ante handler. Whereas Logs contains the - events, with + type.googleapis.com. - additional metadata, emitted only by processing the - messages. + Schemes other than `http`, `https` (or the empty scheme) + might be - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: |- - BroadcastTxResponse is the response type for the - Service.BroadcastTx method. + used with implementation specific semantics. + additionalProperties: {} + description: >- + QueryEvidenceResponse is the response type for the Query/Evidence + RPC method. default: description: An unexpected error response. schema: @@ -10304,57 +11070,119 @@ paths: "value": "1.212s" } parameters: - - name: body - description: >- - BroadcastTxRequest is the request type for the - Service.BroadcastTxRequest + - name: hash + description: |- + hash defines the evidence hash of the requested evidence. - RPC method. - in: body + Since: cosmos-sdk 0.47 + in: path required: true - schema: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - mode: - type: string - enum: - - BROADCAST_MODE_UNSPECIFIED - - BROADCAST_MODE_BLOCK - - BROADCAST_MODE_SYNC - - BROADCAST_MODE_ASYNC - default: BROADCAST_MODE_UNSPECIFIED - description: >- - BroadcastMode specifies the broadcast mode for the - TxService.Broadcast RPC method. - - - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - the tx to be committed in a block. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - immediately. - description: >- - BroadcastTxRequest is the request type for the - Service.BroadcastTxRequest - - RPC method. + type: string + - name: evidence_hash + description: |- + evidence_hash defines the hash of the requested evidence. + Deprecated: Use hash, a HEX encoded string, instead. + in: query + required: false + type: string + format: byte tags: - - Service - /cosmos/tx/v1beta1/txs/block/{height}: + - Query + /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: get: - summary: GetBlockWithTxs fetches a block with decoded txs. - description: 'Since: cosmos-sdk 0.45.2' - operationId: CosmosTxV1Beta1GetBlockWithTxs + summary: Allowance returns fee granted to the grantee by the granter. + operationId: CosmosFeegrantV1Beta1Allowance responses: '200': description: A successful response. schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse' + type: object + properties: + allowance: + description: allowance is a allowance granted for grantee by granter. + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance + of their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an + allowance of another user's funds. + allowance: + description: >- + allowance can be any of basic, periodic, allowed fee + allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + title: >- + Grant is stored in the KVStore to record a grant with full + context + description: >- + QueryAllowanceResponse is the response type for the + Query/Allowance RPC method. default: description: An unexpected error response. schema: @@ -10541,291 +11369,138 @@ paths: "value": "1.212s" } parameters: - - name: height - description: height is the height of the block to query. + - name: granter + description: >- + granter is the address of the user granting an allowance of their + funds. in: path required: true type: string - format: int64 - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit + - name: grantee description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false + grantee is the address of the user being granted an allowance of + another user's funds. + in: path + required: true type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - - Service - /cosmos/tx/v1beta1/txs/{hash}: + - Query + /cosmos/feegrant/v1beta1/allowances/{grantee}: get: - summary: GetTx fetches a tx by hash. - operationId: CosmosTxV1Beta1GetTx + summary: Allowances returns all the grants for address. + operationId: CosmosFeegrantV1Beta1Allowances responses: '200': description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse' - default: - description: An unexpected error response. schema: type: object properties: - code: - type: integer - format: int32 - message: - type: string - details: + allowances: type: array items: type: object properties: - '@type': + granter: type: string description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least + granter is the address of the user granting an allowance + of their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an + allowance of another user's funds. + allowance: + description: >- + allowance can be any of basic, periodic, allowed fee + allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - one "/" character. The last segment of the URL's path - must represent + protocol buffer message. This string must contain at + least - the fully qualified name of the type (as in + one "/" character. The last segment of the URL's + path must represent - `path/google.protobuf.Duration`). The name should be in - a canonical form + the fully qualified name of the type (as in - (e.g., leading "." is not accepted). + `path/google.protobuf.Duration`). The name should be + in a canonical form + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they - expect it to use in the context of Any. However, for - URLs which use the + In practice, teams usually precompile into the + binary all types that they - scheme `http`, `https`, or no scheme, one can optionally - set up a type + expect it to use in the context of Any. However, for + URLs which use the - server that maps type URLs to message definitions as - follows: + scheme `http`, `https`, or no scheme, one can + optionally set up a type + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * If no scheme is provided, `https` is assumed. - Note: this functionality is not currently available in - the official + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Note: this functionality is not currently available + in the official - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + protobuf release, and it is not used for type URLs + beginning with - If the embedded message type is well-known and has a custom - JSON + type.googleapis.com. - representation, that representation will be embedded adding - a field - `value` which holds the custom JSON in addition to the - `@type` + Schemes other than `http`, `https` (or the empty + scheme) might be - field. Example (for message [google.protobuf.Duration][]): + used with implementation specific semantics. + additionalProperties: {} + title: >- + Grant is stored in the KVStore to record a grant with full + context + description: allowances are allowance's granted for grantee by granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: hash - description: hash is the tx hash to query, encoded as a hex string. - in: path - required: true - type: string - tags: - - Service - /cosmos/upgrade/v1beta1/applied_plan/{name}: - get: - summary: AppliedPlan queries a previously applied upgrade plan by its name. - operationId: CosmosUpgradeV1Beta1AppliedPlan - responses: - '200': - description: A successful response. - schema: - type: object - properties: - height: - type: string - format: int64 - description: height is the block height at which the plan was applied. + was set, its value is undefined otherwise description: >- - QueryAppliedPlanResponse is the response type for the - Query/AppliedPlan RPC - - method. + QueryAllowancesResponse is the response type for the + Query/Allowances RPC method. default: description: An unexpected error response. schema: @@ -11012,147 +11687,188 @@ paths: "value": "1.212s" } parameters: - - name: name - description: name is the name of the applied plan to query for. + - name: grantee in: path required: true type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /cosmos/upgrade/v1beta1/current_plan: + /cosmos/feegrant/v1beta1/issued/{granter}: get: - summary: CurrentPlan queries the current upgrade plan. - operationId: CosmosUpgradeV1Beta1CurrentPlan + summary: AllowancesByGranter returns all the grants given by an address + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosFeegrantV1Beta1AllowancesByGranter responses: '200': description: A successful response. schema: type: object properties: - plan: - description: plan is the current upgrade plan. - type: object - properties: - name: - type: string - description: >- - Sets the name for the upgrade. This name will be used by - the upgraded - - version of the software to apply any special "on-upgrade" - commands during - - the first BeginBlock method after the upgrade is applied. - It is also used - - to detect whether a software version can handle a given - upgrade. If no - - upgrade handler with this name has been set in the - software, it will be - - assumed that the software is out-of-date when the upgrade - Time or Height is - - reached and the software will exit. - time: - type: string - format: date-time - description: >- - Deprecated: Time based upgrades have been deprecated. Time - based upgrade logic - - has been removed from the SDK. - - If this field is not empty, an error will be thrown. - height: - type: string - format: int64 - description: |- - The height at which the upgrade must be performed. - Only used if Time is not set. - info: - type: string - title: >- - Any application specific upgrade info to be included - on-chain - - such as a git commit that validators could automatically - upgrade to - upgraded_client_state: - description: >- - Deprecated: UpgradedClientState field has been deprecated. - IBC upgrade logic has been - - moved to the IBC module in the sub module 02-client. + allowances: + type: array + items: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance + of their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an + allowance of another user's funds. + allowance: + description: >- + allowance can be any of basic, periodic, allowed fee + allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - If this field is not empty, an error will be thrown. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + protocol buffer message. This string must contain at + least - protocol buffer message. This string must contain at - least + one "/" character. The last segment of the URL's + path must represent - one "/" character. The last segment of the URL's path - must represent + the fully qualified name of the type (as in - the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be + in a canonical form - `path/google.protobuf.Duration`). The name should be - in a canonical form + (e.g., leading "." is not accepted). - (e.g., leading "." is not accepted). + In practice, teams usually precompile into the + binary all types that they - In practice, teams usually precompile into the binary - all types that they + expect it to use in the context of Any. However, for + URLs which use the - expect it to use in the context of Any. However, for - URLs which use the + scheme `http`, `https`, or no scheme, one can + optionally set up a type - scheme `http`, `https`, or no scheme, one can - optionally set up a type + server that maps type URLs to message definitions as + follows: - server that maps type URLs to message definitions as - follows: + * If no scheme is provided, `https` is assumed. - * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Note: this functionality is not currently available + in the official - Note: this functionality is not currently available in - the official + protobuf release, and it is not used for type URLs + beginning with - protobuf release, and it is not used for type URLs - beginning with + type.googleapis.com. - type.googleapis.com. + Schemes other than `http`, `https` (or the empty + scheme) might be - Schemes other than `http`, `https` (or the empty - scheme) might be + used with implementation specific semantics. + additionalProperties: {} + title: >- + Grant is stored in the KVStore to record a grant with full + context + description: allowances that have been issued by the granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - used with implementation specific semantics. - additionalProperties: {} + was set, its value is undefined otherwise description: >- - QueryCurrentPlanResponse is the response type for the - Query/CurrentPlan RPC + QueryAllowancesByGranterResponse is the response type for the + Query/AllowancesByGranter RPC method. - method. + + Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: @@ -11338,46 +12054,224 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: granter + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /cosmos/upgrade/v1beta1/module_versions: + /cosmos/mint/v1beta1/annual_provisions: get: - summary: ModuleVersions queries the list of module versions from state. - description: 'Since: cosmos-sdk 0.43' - operationId: CosmosUpgradeV1Beta1ModuleVersions + summary: AnnualProvisions current minting annual provisions value. + operationId: CosmosMintV1Beta1AnnualProvisions responses: '200': description: A successful response. schema: type: object properties: - module_versions: + annual_provisions: + type: string + format: byte + description: >- + annual_provisions is the current minting annual provisions + value. + description: |- + QueryAnnualProvisionsResponse is the response type for the + Query/AnnualProvisions RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object properties: - name: - type: string - title: name of the app module - version: + '@type': type: string - format: uint64 - title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 - description: >- - module_versions is a list of module names with their consensus - versions. + additionalProperties: {} + tags: + - Query + /cosmos/mint/v1beta1/inflation: + get: + summary: Inflation returns the current minting inflation value. + operationId: CosmosMintV1Beta1Inflation + responses: + '200': + description: A successful response. + schema: + type: object + properties: + inflation: + type: string + format: byte + description: inflation is the current minting inflation value. description: >- - QueryModuleVersionsResponse is the response type for the - Query/ModuleVersions - - RPC method. - + QueryInflationResponse is the response type for the + Query/Inflation RPC - Since: cosmos-sdk 0.43 + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/mint/v1beta1/params: + get: + summary: Params returns the total set of minting parameters. + operationId: CosmosMintV1Beta1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded atoms + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/nft/v1beta1/balance/{owner}/{class_id}: + get: + summary: >- + Balance queries the number of NFTs of a given class owned by the owner, + same as balanceOf in ERC721 + operationId: CosmosNftV1Beta1Balance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amount: + type: string + format: uint64 + title: >- + amount is the number of all NFTs of a given class owned by the + owner + title: >- + QueryBalanceResponse is the response type for the Query/Balance + RPC method default: description: An unexpected error response. schema: @@ -11564,298 +12458,245 @@ paths: "value": "1.212s" } parameters: - - name: module_name - description: |- - module_name is a field to query a specific module - consensus version from state. Leaving this empty will - fetch the full list of module versions from state - in: query - required: false + - name: owner + description: owner is the owner address of the nft + in: path + required: true + type: string + - name: class_id + description: class_id associated with the nft + in: path + required: true type: string tags: - Query - /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}: + /cosmos/nft/v1beta1/classes: get: - summary: >- - UpgradedConsensusState queries the consensus state that will serve - - as a trusted kernel for the next version of this chain. It will only be - - stored at the last height of this chain. - - UpgradedConsensusState RPC not supported with legacy querier - - This rpc is deprecated now that IBC has its own replacement - - (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - operationId: CosmosUpgradeV1Beta1UpgradedConsensusState + summary: Classes queries all NFT classes + operationId: CosmosNftV1Beta1Classes responses: '200': description: A successful response. schema: type: object properties: - upgraded_consensus_state: - type: string - format: byte - title: 'Since: cosmos-sdk 0.43' - description: >- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState - - RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + classes: type: array items: type: object properties: - '@type': + id: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + title: >- + id defines the unique identifier of the NFT + classification, similar to the contract address of + ERC721 + name: + type: string + title: >- + name defines the human-readable name of the NFT + classification. Optional + symbol: + type: string + title: >- + symbol is an abbreviated name for nft classification. + Optional + description: + type: string + title: >- + description is a brief description of nft + classification. Optional + uri: + type: string + title: >- + uri for the class metadata stored off chain. It can + define schema for Class and NFT `Data` attributes. + Optional + uri_hash: + type: string + title: >- + uri_hash is a hash of the document pointed by uri. + Optional + data: + title: >- + data is the app specific metadata of the NFT class. + Optional + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's + path must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the + binary all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently available + in the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the + regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, + with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message + [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: last_height - description: |- - last height of the current chain must be sent in request - as this is the height under which next consensus state is stored - in: path - required: true - type: string - format: int64 - tags: - - Query - /cosmwasm/wasm/v1/code: - get: - summary: Codes gets the metadata for all stored wasm codes - operationId: CosmwasmWasmV1Codes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_infos: - type: array - items: - type: object - properties: - code_id: - type: string - format: uint64 - title: id for legacy support - creator: - type: string - data_hash: - type: string - format: byte - instantiate_permission: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: Class defines the class of the nft type. + description: class defines the class of the nft type. pagination: description: pagination defines the pagination in the response. type: object @@ -11863,9 +12704,10 @@ paths: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -11875,8 +12717,8 @@ paths: was set, its value is undefined otherwise title: >- - QueryCodesResponse is the response type for the Query/Codes RPC - method + QueryClassesResponse is the response type for the Query/Classes + RPC method default: description: An unexpected error response. schema: @@ -12121,65 +12963,228 @@ paths: type: boolean tags: - Query - /cosmwasm/wasm/v1/code/{code_id}: + /cosmos/nft/v1beta1/classes/{class_id}: get: - summary: Code gets the binary code and metadata for a singe wasm code - operationId: CosmwasmWasmV1Code + summary: Class queries an NFT class based on its id + operationId: CosmosNftV1Beta1Class responses: '200': description: A successful response. schema: type: object properties: - code_info: + class: + description: class defines the class of the nft type. type: object properties: - code_id: + id: type: string - format: uint64 - title: id for legacy support - creator: + title: >- + id defines the unique identifier of the NFT + classification, similar to the contract address of ERC721 + name: type: string - data_hash: + title: >- + name defines the human-readable name of the NFT + classification. Optional + symbol: type: string - format: byte - instantiate_permission: + title: >- + symbol is an abbreviated name for nft classification. + Optional + description: + type: string + title: >- + description is a brief description of nft classification. + Optional + uri: + type: string + title: >- + uri for the class metadata stored off chain. It can define + schema for Class and NFT `Data` attributes. Optional + uri_hash: + type: string + title: >- + uri_hash is a hash of the document pointed by uri. + Optional + data: + title: >- + data is the app specific metadata of the NFT class. + Optional type: object properties: - permission: + '@type': type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo - data: - type: string - format: byte + A URL/resource name that uniquely identifies the type + of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } title: >- - QueryCodeResponse is the response type for the Query/Code RPC + QueryClassResponse is the response type for the Query/Class RPC method default: description: An unexpected error response. @@ -12367,29 +13372,224 @@ paths: "value": "1.212s" } parameters: - - name: code_id - description: grpc-gateway_out does not support Go style CodID + - name: class_id + description: class_id associated with the nft in: path required: true type: string - format: uint64 tags: - Query - /cosmwasm/wasm/v1/code/{code_id}/contracts: + /cosmos/nft/v1beta1/nfts: get: - summary: ContractsByCode lists all smart contracts for a code id - operationId: CosmwasmWasmV1ContractsByCode + summary: >- + NFTs queries all NFTs of a given class or owner,choose at least one of + the two, similar to tokenByIndex in + + ERC721Enumerable + operationId: CosmosNftV1Beta1NFTs responses: '200': description: A successful response. schema: type: object properties: - contracts: + nfts: type: array items: - type: string - title: contracts are a set of contract addresses + type: object + properties: + class_id: + type: string + title: >- + class_id associated with the NFT, similar to the + contract address of ERC721 + id: + type: string + title: id is a unique identifier of the NFT + uri: + type: string + title: uri for the NFT metadata stored off chain + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri + data: + title: data is an app specific data of the NFT. Optional + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: NFT defines the NFT. + title: NFT defines the NFT pagination: description: pagination defines the pagination in the response. type: object @@ -12397,9 +13597,10 @@ paths: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -12408,9 +13609,9 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - title: |- - QueryContractsByCodeResponse is the response type for the - Query/ContractsByCode RPC method + title: >- + QueryNFTsResponse is the response type for the Query/NFTs RPC + methods default: description: An unexpected error response. schema: @@ -12597,12 +13798,16 @@ paths: "value": "1.212s" } parameters: - - name: code_id - description: grpc-gateway_out does not support Go style CodID - in: path - required: true + - name: class_id + description: class_id associated with the nft + in: query + required: false + type: string + - name: owner + description: owner is the owner address of the nft + in: query + required: false type: string - format: uint64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -12661,295 +13866,210 @@ paths: type: boolean tags: - Query - /cosmwasm/wasm/v1/codes/params: + /cosmos/nft/v1beta1/nfts/{class_id}/{id}: get: - summary: Params gets the module params - operationId: CosmwasmWasmV1Params + summary: NFT queries an NFT based on its class and id. + operationId: CosmosNftV1Beta1NFT responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. + nft: + title: owner is the owner address of the nft type: object properties: - code_upload_access: + class_id: + type: string + title: >- + class_id associated with the NFT, similar to the contract + address of ERC721 + id: + type: string + title: id is a unique identifier of the NFT + uri: + type: string + title: uri for the NFT metadata stored off chain + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri + data: + title: data is an app specific data of the NFT. Optional type: object properties: - permission: + '@type': type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - instantiate_default_permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least + A URL/resource name that uniquely identifies the type + of the serialized - one "/" character. The last segment of the URL's path - must represent + protocol buffer message. This string must contain at + least - the fully qualified name of the type (as in + one "/" character. The last segment of the URL's path + must represent - `path/google.protobuf.Duration`). The name should be in - a canonical form + the fully qualified name of the type (as in - (e.g., leading "." is not accepted). + `path/google.protobuf.Duration`). The name should be + in a canonical form + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they - expect it to use in the context of Any. However, for - URLs which use the + In practice, teams usually precompile into the binary + all types that they - scheme `http`, `https`, or no scheme, one can optionally - set up a type + expect it to use in the context of Any. However, for + URLs which use the - server that maps type URLs to message definitions as - follows: + scheme `http`, `https`, or no scheme, one can + optionally set up a type + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * If no scheme is provided, `https` is assumed. - Note: this functionality is not currently available in - the official + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - protobuf release, and it is not used for type URLs - beginning with + Note: this functionality is not currently available in + the official - type.googleapis.com. + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - } + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } ... - } - - The pack methods provided by protobuf library will by - default use + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + The pack methods provided by protobuf library will by + default use - methods only use the fully qualified type name after the - last '/' + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + methods only use the fully qualified type name after the + last '/' - name "y.z". + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + name "y.z". - JSON - ==== + JSON - The JSON representation of an `Any` value uses the regular + ==== - representation of the deserialized, embedded message, with - an + The JSON representation of an `Any` value uses the regular - additional field `@type` which contains the type URL. - Example: + representation of the deserialized, embedded message, with + an - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + additional field `@type` which contains the type URL. + Example: - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - If the embedded message type is well-known and has a custom - JSON + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - representation, that representation will be embedded adding - a field + If the embedded message type is well-known and has a + custom JSON - `value` which holds the custom JSON in addition to the - `@type` + representation, that representation will be embedded + adding a field - field. Example (for message [google.protobuf.Duration][]): + `value` which holds the custom JSON in addition to the + `@type` - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tags: - - Query - /cosmwasm/wasm/v1/codes/pinned: - get: - summary: PinnedCodes gets the pinned code ids - operationId: CosmwasmWasmV1PinnedCodes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_ids: - type: array - items: - type: string - format: uint64 - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + field. Example (for message [google.protobuf.Duration][]): - was set, its value is undefined otherwise - title: |- - QueryPinnedCodesResponse is the response type for the - Query/PinnedCodes RPC method + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: NFT defines the NFT. + title: QueryNFTResponse is the response type for the Query/NFT RPC method default: description: An unexpected error response. schema: @@ -13136,185 +14256,35 @@ paths: "value": "1.212s" } parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false + - name: class_id + description: class_id associated with the nft + in: path + required: true type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false + - name: id + description: id is a unique identifier of the NFT + in: path + required: true type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /cosmwasm/wasm/v1/contract/{address}: + /cosmos/nft/v1beta1/owner/{class_id}/{id}: get: - summary: ContractInfo gets the contract meta data - operationId: CosmwasmWasmV1ContractInfo + summary: >- + Owner queries the owner of the NFT based on its class and id, same as + ownerOf in ERC721 + operationId: CosmosNftV1Beta1Owner responses: '200': description: A successful response. schema: type: object properties: - address: + owner: type: string - title: address is the address of the contract - contract_info: - type: object - properties: - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored Wasm code - creator: - type: string - title: Creator address who initially instantiated the contract - admin: - type: string - title: Admin is an optional address that can execute migrations - label: - type: string - description: >- - Label is optional metadata to be stored with a contract - instance. - created: - description: Created Tx position when the contract was instantiated. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block - (actual transaction index, - - or gas consumed) - ibc_port_id: - type: string - extension: - description: >- - Extension is an extension point to store custom metadata - within the - - persistence model. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - title: ContractInfo stores a WASM contract instance + title: owner is the owner address of the nft title: >- - QueryContractInfoResponse is the response type for the - Query/ContractInfo RPC - + QueryOwnerResponse is the response type for the Query/Owner RPC method default: description: An unexpected error response. @@ -13502,91 +14472,37 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address is the address of the contract to query + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + - name: id + description: id is a unique identifier of the NFT in: path required: true type: string tags: - Query - /cosmwasm/wasm/v1/contract/{address}/history: + /cosmos/nft/v1beta1/supply/{class_id}: get: - summary: ContractHistory gets the contract code history - operationId: CosmwasmWasmV1ContractHistory + summary: >- + Supply queries the number of NFTs from the given class, same as + totalSupply of ERC721. + operationId: CosmosNftV1Beta1Supply responses: '200': description: A successful response. schema: type: object properties: - entries: - type: array - items: - type: object - properties: - operation: - type: string - enum: - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - default: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - description: >- - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - ContractCodeHistoryOperationTypeUnspecified placeholder - for empty value - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - title: >- - ContractCodeHistoryOperationType actions that caused a - code change - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - updated: - description: Updated Tx position when the operation was executed. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block - (actual transaction index, - - or gas consumed) - msg: - type: string - format: byte - description: ContractCodeHistoryEntry metadata to a contract. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - title: |- - QueryContractHistoryResponse is the response type for the - Query/ContractHistory RPC method + amount: + type: string + format: uint64 + title: amount is the number of all NFTs from the given class + title: >- + QuerySupplyResponse is the response type for the Query/Supply RPC + method default: description: An unexpected error response. schema: @@ -13773,41 +14689,327 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address is the address of the contract to query + - name: class_id + description: class_id associated with the nft in: path required: true type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string + tags: + - Query + /cosmos/params/v1beta1/params: + get: + summary: |- + Params queries a specific parameter of a module, given its subspace and + key. + operationId: CosmosParamsV1Beta1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + param: + description: param defines the queried parameter. + type: object + properties: + subspace: + type: string + key: + type: string + value: + type: string + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: subspace + description: subspace defines the module to query the parameter for. + in: query + required: false + type: string + - name: key + description: key defines the key of the parameter in the subspace. + in: query + required: false + type: string + tags: + - Query + /cosmos/params/v1beta1/subspaces: + get: + summary: >- + Subspaces queries for all registered subspaces and all keys for a + subspace. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosParamsV1Beta1Subspaces + responses: + '200': + description: A successful response. + schema: + type: object + properties: + subspaces: + type: array + items: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + description: >- + Subspace defines a parameter subspace name and all the keys + that exist for + + the subspace. + + + Since: cosmos-sdk 0.46 + description: >- + QuerySubspacesResponse defines the response types for querying for + all + + registered subspaces and all keys for a subspace. + + + Since: cosmos-sdk 0.46 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/slashing/v1beta1/params: + get: + summary: Params queries the parameters of slashing module + operationId: CosmosSlashingV1Beta1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + description: >- + Params represents the parameters used for by the slashing + module. + title: >- + QueryParamsResponse is the response type for the Query/Params RPC + method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /cosmos/slashing/v1beta1/signing_infos: + get: + summary: SigningInfos queries signing info of all validators + operationId: CosmosSlashingV1Beta1SigningInfos + responses: + '200': + description: A successful response. + schema: + type: object + properties: + info: + type: array + items: + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + title: >- + Height at which validator was first a candidate OR was + unjailed + index_offset: + type: string + format: int64 + description: >- + Index which is incremented each time the validator was a + bonded + + in a block and may have signed a precommit or not. This + in conjunction with the + + `SignedBlocksWindow` param determines the index in the + `MissedBlocksBitArray`. + jailed_until: + type: string + format: date-time + description: >- + Timestamp until which the validator is jailed due to + liveness downtime. + tombstoned: + type: boolean + description: >- + Whether or not a validator has been tombstoned (killed + out of validator set). It is set + + once the validator commits an equivocation or for any + other configured misbehiavor. + missed_blocks_counter: + type: string + format: int64 + description: >- + A counter kept to avoid unnecessary array reads. + + Note that `Sum(MissedBlocksBitArray)` always equals + `MissedBlocksCounter`. + description: >- + ValidatorSigningInfo defines a validator's signing info for + monitoring their + + liveness activity. + title: info is the signing info of all validators + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + title: >- + QuerySigningInfosResponse is the response type for the + Query/SigningInfos RPC + + method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string format: uint64 - name: pagination.count_total description: >- @@ -13836,23 +15038,110 @@ paths: type: boolean tags: - Query - /cosmwasm/wasm/v1/contract/{address}/raw/{query_data}: + /cosmos/slashing/v1beta1/signing_infos/{cons_address}: get: - summary: RawContractState gets single key from the raw store data of a contract - operationId: CosmwasmWasmV1RawContractState + summary: SigningInfo queries the signing info of given cons address + operationId: CosmosSlashingV1Beta1SigningInfo responses: '200': description: A successful response. schema: type: object properties: - data: + val_signing_info: + title: >- + val_signing_info is the signing info of requested val cons + address + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + title: >- + Height at which validator was first a candidate OR was + unjailed + index_offset: + type: string + format: int64 + description: >- + Index which is incremented each time the validator was a + bonded + + in a block and may have signed a precommit or not. This in + conjunction with the + + `SignedBlocksWindow` param determines the index in the + `MissedBlocksBitArray`. + jailed_until: + type: string + format: date-time + description: >- + Timestamp until which the validator is jailed due to + liveness downtime. + tombstoned: + type: boolean + description: >- + Whether or not a validator has been tombstoned (killed out + of validator set). It is set + + once the validator commits an equivocation or for any + other configured misbehiavor. + missed_blocks_counter: + type: string + format: int64 + description: >- + A counter kept to avoid unnecessary array reads. + + Note that `Sum(MissedBlocksBitArray)` always equals + `MissedBlocksCounter`. + description: >- + ValidatorSigningInfo defines a validator's signing info for + monitoring their + + liveness activity. + title: >- + QuerySigningInfoResponse is the response type for the + Query/SigningInfo RPC + + method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: type: string - format: byte - title: Data contains the raw store data - title: |- - QueryRawContractStateResponse is the response type for the - Query/RawContractState RPC method + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: cons_address + description: cons_address is the address to query signing info of + in: path + required: true + type: string + tags: + - Query + /cosmos/tx/v1beta1/decode: + post: + summary: TxDecode decodes the transaction. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosTxV1Beta1TxDecode + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.TxDecodeResponse' default: description: An unexpected error response. schema: @@ -14039,35 +15328,49 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address is the address of the contract - in: path - required: true - type: string - - name: query_data - in: path + - name: body + description: |- + TxDecodeRequest is the request type for the Service.TxDecode + RPC method. + + Since: cosmos-sdk 0.47 + in: body required: true - type: string - format: byte + schema: + type: object + properties: + tx_bytes: + type: string + format: byte + description: tx_bytes is the raw transaction. + description: |- + TxDecodeRequest is the request type for the Service.TxDecode + RPC method. + + Since: cosmos-sdk 0.47 tags: - - Query - /cosmwasm/wasm/v1/contract/{address}/smart/{query_data}: - get: - summary: SmartContractState get smart query result from the contract - operationId: CosmwasmWasmV1SmartContractState + - Service + /cosmos/tx/v1beta1/decode/amino: + post: + summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosTxV1Beta1TxDecodeAmino responses: '200': description: A successful response. schema: type: object properties: - data: + amino_json: type: string - format: byte - title: Data contains the json data returned from the smart contract - title: |- - QuerySmartContractStateResponse is the response type for the - Query/SmartContractState RPC method + description: >- + TxDecodeAminoResponse is the response type for the + Service.TxDecodeAmino + + RPC method. + + + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -14254,64 +15557,53 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address is the address of the contract - in: path - required: true - type: string - - name: query_data - description: QueryData contains the query data passed to the contract - in: path + - name: body + description: >- + TxDecodeAminoRequest is the request type for the + Service.TxDecodeAmino + + RPC method. + + + Since: cosmos-sdk 0.47 + in: body required: true - type: string - format: byte + schema: + type: object + properties: + amino_binary: + type: string + format: byte + description: >- + TxDecodeAminoRequest is the request type for the + Service.TxDecodeAmino + + RPC method. + + + Since: cosmos-sdk 0.47 tags: - - Query - /cosmwasm/wasm/v1/contract/{address}/state: - get: - summary: AllContractState gets all raw store data for a single contract - operationId: CosmwasmWasmV1AllContractState + - Service + /cosmos/tx/v1beta1/encode: + post: + summary: TxEncode encodes the transaction. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosTxV1Beta1TxEncode responses: '200': description: A successful response. schema: type: object properties: - models: - type: array - items: - type: object - properties: - key: - type: string - format: byte - title: hex-encode key to read it better (this is often ascii) - value: - type: string - format: byte - title: base64-encode raw value - title: Model is a struct that holds a KV pair - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + tx_bytes: + type: string + format: byte + description: tx_bytes is the encoded transaction bytes. + description: |- + TxEncodeResponse is the response type for the + Service.TxEncode method. - was set, its value is undefined otherwise - title: |- - QueryAllContractStateResponse is the response type for the - Query/AllContractState RPC method + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -14498,105 +15790,40 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address is the address of the contract - in: path - required: true - type: string - - name: pagination.key + - name: body description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - + TxEncodeRequest is the request type for the Service.TxEncode + RPC method. - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.TxEncodeRequest' tags: - - Query - /cosmwasm/wasm/v1/contracts/creator/{creator_address}: - get: - summary: ContractsByCreator gets the contracts by creator - operationId: CosmwasmWasmV1ContractsByCreator + - Service + /cosmos/tx/v1beta1/encode/amino: + post: + summary: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosTxV1Beta1TxEncodeAmino responses: '200': description: A successful response. schema: type: object properties: - contract_addresses: - type: array - items: - type: string - title: ContractAddresses result set - pagination: - description: Pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + amino_binary: + type: string + format: byte + description: >- + TxEncodeAminoResponse is the response type for the + Service.TxEncodeAmino - was set, its value is undefined otherwise - description: |- - QueryContractsByCreatorResponse is the response type for the - Query/ContractsByCreator RPC method. + RPC method. + + + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -14783,354 +16010,300 @@ paths: "value": "1.212s" } parameters: - - name: creator_address - description: CreatorAddress is the address of contract creator - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total + - name: body description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key + TxEncodeAminoRequest is the request type for the + Service.TxEncodeAmino - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + RPC method. - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connection_id}: - get: - summary: >- - InterchainAccount returns the interchain account address for a given - owner address on a given connection - operationId: IbcApplicationsInterchainAccountsControllerV1InterchainAccount - responses: - '200': - description: A successful response. + Since: cosmos-sdk 0.47 + in: body + required: true schema: type: object properties: - address: + amino_json: type: string description: >- - QueryInterchainAccountResponse the response type for the - Query/InterchainAccount RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: owner - in: path - required: true - type: string - - name: connection_id - in: path - required: true - type: string + TxEncodeAminoRequest is the request type for the + Service.TxEncodeAmino + + RPC method. + + + Since: cosmos-sdk 0.47 tags: - - Query - /ibc/apps/interchain_accounts/controller/v1/params: - get: - summary: Params queries all parameters of the ICA controller submodule. - operationId: IbcApplicationsInterchainAccountsControllerV1Params + - Service + /cosmos/tx/v1beta1/simulate: + post: + summary: Simulate simulates executing a transaction for estimating gas usage. + operationId: CosmosTxV1Beta1Simulate responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. + gas_info: + description: gas_info is the information about gas used in the simulation. type: object properties: - controller_enabled: - type: boolean + gas_wanted: + type: string + format: uint64 description: >- - controller_enabled enables or disables the controller - submodule. - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /ibc/apps/interchain_accounts/host/v1/params: - get: - summary: Params queries all parameters of the ICA host submodule. - operationId: IbcApplicationsInterchainAccountsHostV1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. + GasWanted is the maximum units of work we allow this tx to + perform. + gas_used: + type: string + format: uint64 + description: GasUsed is the amount of gas actually consumed. + result: + description: result is the result of the simulation. type: object properties: - host_enabled: - type: boolean - description: host_enabled enables or disables the host submodule. - allow_messages: + data: + type: string + format: byte + description: >- + Data is any data returned from message or handler + execution. It MUST be + + length prefixed in order to separate data from multiple + message executions. + + Deprecated. This field is still populated, but prefer + msg_response instead + + because it also contains the Msg response typeURL. + log: + type: string + description: >- + Log contains the log information from message or handler + execution. + events: type: array items: - type: string + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + title: nondeterministic + description: >- + EventAttribute is a single key-value pair, + associated with an event. + description: >- + Event allows application developers to attach additional + information to + + ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx + and ResponseDeliverTx. + + Later, transactions may be queried using these events. description: >- - allow_messages defines a list of sdk message typeURLs - allowed to be executed on a host chain. - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /ibc/core/channel/v1/channels: - get: - summary: Channels queries all the IBC channels of a chain. - operationId: IbcCoreChannelV1Channels - responses: - '200': - description: A successful response. - schema: - type: object - properties: - channels: - type: array - items: - type: object - properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: >- - State defines if a channel is in one of the following - states: - - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: >- - - ORDER_NONE_UNSPECIFIED: zero-value for channel - ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: - type: string - description: >- - port on the counterparty chain which owns the other - end of the channel. - channel_id: - type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which - packets sent on - - this channel will travel - version: - type: string - title: >- - opaque channel version, which is agreed upon during the - handshake - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier - description: >- - IdentifiedChannel defines a channel with additional port and - channel - - identifier fields. - description: list of stored channels of the chain. - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - description: >- - QueryChannelsResponse is the response type for the Query/Channels - RPC method. + Events contains a slice of Event objects that were emitted + during message + + or handler execution. + msg_responses: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + msg_responses contains the Msg handler responses type + packed in Anys. + + + Since: cosmos-sdk 0.46 + description: |- + SimulateResponse is the response type for the + Service.SimulateRPC method. default: description: An unexpected error response. schema: @@ -15317,179 +16490,25 @@ paths: "value": "1.212s" } parameters: - - name: pagination.key + - name: body description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean + SimulateRequest is the request type for the Service.Simulate + RPC method. + in: body + required: true + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest' tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}: + - Service + /cosmos/tx/v1beta1/txs: get: - summary: Channel queries an IBC Channel. - operationId: IbcCoreChannelV1Channel + summary: GetTxsEvent fetches txs by event. + operationId: CosmosTxV1Beta1GetTxsEvent responses: '200': description: A successful response. schema: - type: object - properties: - channel: - title: channel associated with the request identifiers - type: object - properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: >- - State defines if a channel is in one of the following - states: - - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: - type: string - description: >- - port on the counterparty chain which owns the other - end of the channel. - channel_id: - type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which - packets sent on - - this channel will travel - version: - type: string - title: >- - opaque channel version, which is agreed upon during the - handshake - description: >- - Channel defines pipeline for exactly-once packet delivery - between specific - - modules on separate blockchains, which has at least one end - capable of - - sending packets and one end capable of receiving packets. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - description: >- - QueryChannelResponse is the response type for the Query/Channel - RPC method. - - Besides the Channel end, it includes a proof and the height from - which the - - proof was retrieved. + $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse' default: description: An unexpected error response. schema: @@ -15676,71 +16695,231 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true + - name: events + description: events is the list of transaction event type. + in: query + required: false + type: array + items: + type: string + collectionFormat: multi + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false type: string - - name: port_id - description: port unique identifier - in: path - required: true + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false type: string - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state: - get: - summary: >- - ChannelClientState queries for the client state for the channel - associated + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - with the provided channel identifiers. - operationId: IbcCoreChannelV1ChannelClientState + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: order_by + description: |2- + - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + in: query + required: false + type: string + enum: + - ORDER_BY_UNSPECIFIED + - ORDER_BY_ASC + - ORDER_BY_DESC + default: ORDER_BY_UNSPECIFIED + - name: page + description: >- + page is the page number to query, starts at 1. If not provided, will + default to first page. + in: query + required: false + type: string + format: uint64 + - name: limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + tags: + - Service + post: + summary: BroadcastTx broadcast transaction. + operationId: CosmosTxV1Beta1BroadcastTx responses: '200': description: A successful response. schema: type: object properties: - identified_client_state: - title: client state associated with the channel + tx_response: + description: tx_response is the queried TxResponses. type: object properties: - client_id: + height: type: string - title: client identifier - client_state: - title: client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type + format: int64 + title: The block height + txhash: + type: string + description: The transaction hash. + codespace: + type: string + title: Namespace for the Code + code: + type: integer + format: int64 + description: Response code. + data: + type: string + description: Result bytes, if any. + raw_log: + type: string + description: >- + The output of the application's logger (raw string). May + be + + non-deterministic. + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + description: >- + Attribute defines an attribute wrapper where + the key and value are + + strings instead of raw bytes. + description: >- + StringEvent defines en Event object wrapper where + all the attributes + + contain key/value pairs that are strings instead + of raw bytes. + description: >- + Events contains a slice of Event objects that were + emitted during some + + execution. + description: >- + ABCIMessageLog defines a structure containing an indexed + tx ABCI message log. + description: >- + The output of the application's logger (typed). May be + non-deterministic. + info: + type: string + description: Additional information. May be non-deterministic. + gas_wanted: + type: string + format: int64 + description: Amount of gas requested for transaction. + gas_used: + type: string + format: int64 + description: Amount of gas consumed by transaction. + tx: + description: The request transaction bytes. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type server that maps type URLs to message definitions as follows: @@ -15772,158 +16951,64 @@ paths: used with implementation specific semantics. additionalProperties: {} + timestamp: + type: string description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a - custom JSON - - representation, that representation will be embedded - adding a field + Time of the previous block. For heights > 1, it's the + weighted median of - `value` which holds the custom JSON in addition to the - `@type` + the timestamps of the valid votes in the block.LastCommit. + For height == 1, - field. Example (for message [google.protobuf.Duration][]): + it's genesis time. + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + title: nondeterministic + description: >- + EventAttribute is a single key-value pair, + associated with an event. + description: >- + Event allows application developers to attach additional + information to - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - IdentifiedClientState defines a client state with an - additional client + ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx + and ResponseDeliverTx. - identifier field. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + Later, transactions may be queried using these events. + description: >- + Events defines all the events emitted by processing a + transaction. Note, - RevisionNumber the same. However some consensus algorithms may - choose to + these events include those emitted by processing all the + messages and those - reset the height in certain conditions e.g. hard forks, - state-machine + emitted from the ante. Whereas Logs contains the events, + with - breaking changes In these cases, the RevisionNumber is - incremented so that + additional metadata, emitted only by processing the + messages. - height continues to be monitonically increasing even as the - RevisionHeight - gets reset - title: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState RPC method + Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + description: |- + BroadcastTxResponse is the response type for the + Service.BroadcastTx method. default: description: An unexpected error response. schema: @@ -16110,239 +17195,317 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path + - name: body + description: >- + BroadcastTxRequest is the request type for the + Service.BroadcastTxRequest + + RPC method. + in: body required: true - type: string + schema: + type: object + properties: + tx_bytes: + type: string + format: byte + description: tx_bytes is the raw transaction. + mode: + type: string + enum: + - BROADCAST_MODE_UNSPECIFIED + - BROADCAST_MODE_BLOCK + - BROADCAST_MODE_SYNC + - BROADCAST_MODE_ASYNC + default: BROADCAST_MODE_UNSPECIFIED + description: >- + BroadcastMode specifies the broadcast mode for the + TxService.Broadcast RPC method. + + - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, + BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x + onwards. + - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + a CheckTx execution response only. + - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + immediately. + description: >- + BroadcastTxRequest is the request type for the + Service.BroadcastTxRequest + + RPC method. tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}: + - Service + /cosmos/tx/v1beta1/txs/block/{height}: get: - summary: |- - ChannelConsensusState queries for the consensus state for the channel - associated with the provided channel identifiers. - operationId: IbcCoreChannelV1ChannelConsensusState + summary: GetBlockWithTxs fetches a block with decoded txs. + description: 'Since: cosmos-sdk 0.45.2' + operationId: CosmosTxV1Beta1GetBlockWithTxs responses: '200': description: A successful response. + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse' + default: + description: An unexpected error response. schema: type: object properties: - consensus_state: - title: consensus state associated with the channel - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all - types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for URLs - which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in - the form + Protobuf library provides support to pack/unpack Any values + in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - } + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } ... - } + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - client_id: - type: string - title: client ID associated with the consensus state - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: height + description: height is the height of the block to query. + in: path + required: true + type: string + format: int64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - RevisionNumber the same. However some consensus algorithms may - choose to + It is less efficient than using key. Only one of offset or key + should - reset the height in certain conditions e.g. hard forks, - state-machine + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - breaking changes In these cases, the RevisionNumber is - incremented so that + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - height continues to be monitonically increasing even as the - RevisionHeight + a count of the total number of items available for pagination in + UIs. - gets reset - title: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState RPC method + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Service + /cosmos/tx/v1beta1/txs/{hash}: + get: + summary: GetTx fetches a tx by hash. + operationId: CosmosTxV1Beta1GetTx + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse' default: description: An unexpected error response. schema: @@ -16529,82 +17692,32 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: revision_number - description: revision number of the consensus state - in: path - required: true - type: string - format: uint64 - - name: revision_height - description: revision height of the consensus state + - name: hash + description: hash is the tx hash to query, encoded as a hex string. in: path required: true type: string - format: uint64 tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence: + - Service + /cosmos/upgrade/v1beta1/applied_plan/{name}: get: - summary: >- - NextSequenceReceive returns the next receive sequence for a given - channel. - operationId: IbcCoreChannelV1NextSequenceReceive + summary: AppliedPlan queries a previously applied upgrade plan by its name. + operationId: CosmosUpgradeV1Beta1AppliedPlan responses: '200': description: A successful response. schema: type: object properties: - next_sequence_receive: - type: string - format: uint64 - title: next sequence receive number - proof: + height: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight + format: int64 + description: height is the block height at which the plan was applied. + description: >- + QueryAppliedPlanResponse is the response type for the + Query/AppliedPlan RPC - gets reset - title: |- - QuerySequenceResponse is the request type for the - Query/QueryNextSequenceReceiveResponse RPC method + method. default: description: An unexpected error response. schema: @@ -16791,121 +17904,28 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier + - name: name + description: name is the name of the applied plan to query for. in: path required: true type: string tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements: + /cosmos/upgrade/v1beta1/authority: get: - summary: >- - PacketAcknowledgements returns all the packet acknowledgements - associated - - with a channel. - operationId: IbcCoreChannelV1PacketAcknowledgements + summary: Returns the account with authority to conduct upgrades + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosUpgradeV1Beta1Authority responses: '200': description: A successful response. schema: type: object properties: - acknowledgements: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve - and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to - interpret this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: |- - QueryPacketAcknowledgemetsResponse is the request type for the - Query/QueryPacketAcknowledgements RPC method + address: + type: string + description: 'Since: cosmos-sdk 0.46' + title: QueryAuthorityResponse is the response type for Query/Authority default: description: An unexpected error response. schema: @@ -17091,128 +18111,140 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: packet_commitment_sequences - description: list of packet sequences - in: query - required: false - type: array - items: - type: string - format: uint64 - collectionFormat: multi tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}: + /cosmos/upgrade/v1beta1/current_plan: get: - summary: PacketAcknowledgement queries a stored packet acknowledgement hash. - operationId: IbcCoreChannelV1PacketAcknowledgement + summary: CurrentPlan queries the current upgrade plan. + operationId: CosmosUpgradeV1Beta1CurrentPlan responses: '200': description: A successful response. schema: type: object properties: - acknowledgement: - type: string - format: byte - title: packet associated with the request fields - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + plan: + description: plan is the current upgrade plan. type: object properties: - revision_number: + name: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + description: >- + Sets the name for the upgrade. This name will be used by + the upgraded + + version of the software to apply any special "on-upgrade" + commands during + + the first BeginBlock method after the upgrade is applied. + It is also used + + to detect whether a software version can handle a given + upgrade. If no + + upgrade handler with this name has been set in the + software, it will be + + assumed that the software is out-of-date when the upgrade + Time or Height is + + reached and the software will exit. + time: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time + based upgrade logic - RevisionNumber the same. However some consensus algorithms may - choose to + has been removed from the SDK. - reset the height in certain conditions e.g. hard forks, - state-machine + If this field is not empty, an error will be thrown. + height: + type: string + format: int64 + description: The height at which the upgrade must be performed. + info: + type: string + title: >- + Any application specific upgrade info to be included + on-chain - breaking changes In these cases, the RevisionNumber is - incremented so that + such as a git commit that validators could automatically + upgrade to + upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. + IBC upgrade logic has been - height continues to be monitonically increasing even as the - RevisionHeight + moved to the IBC module in the sub module 02-client. - gets reset - title: >- - QueryPacketAcknowledgementResponse defines the client query - response for a + If this field is not empty, an error will be thrown. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - packet which also includes a proof and the height from which the + protocol buffer message. This string must contain at + least - proof was retrieved + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + QueryCurrentPlanResponse is the response type for the + Query/CurrentPlan RPC + + method. default: description: An unexpected error response. schema: @@ -17398,126 +18430,46 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence - in: path - required: true - type: string - format: uint64 tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments: + /cosmos/upgrade/v1beta1/module_versions: get: - summary: |- - PacketCommitments returns all the packet commitments hashes associated - with a channel. - operationId: IbcCoreChannelV1PacketCommitments + summary: ModuleVersions queries the list of module versions from state. + description: 'Since: cosmos-sdk 0.43' + operationId: CosmosUpgradeV1Beta1ModuleVersions responses: '200': description: A successful response. schema: type: object properties: - commitments: + module_versions: type: array items: type: object properties: - port_id: - type: string - description: channel port identifier. - channel_id: + name: type: string - description: channel unique identifier. - sequence: + title: name of the app module + version: type: string format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve - and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to - interpret this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. + title: consensus version of the app module + description: |- + ModuleVersion specifies a module and its consensus version. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision + Since: cosmos-sdk 0.43 description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine + module_versions is a list of module names with their consensus + versions. + description: >- + QueryModuleVersionsResponse is the response type for the + Query/ModuleVersions - breaking changes In these cases, the RevisionNumber is - incremented so that + RPC method. - height continues to be monitonically increasing even as the - RevisionHeight - gets reset - title: |- - QueryPacketCommitmentsResponse is the request type for the - Query/QueryPacketCommitments RPC method + Since: cosmos-sdk 0.43 default: description: An unexpected error response. schema: @@ -17704,116 +18656,46 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: pagination.key + - name: module_name description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. + module_name is a field to query a specific module + consensus version from state. Leaving this empty will + fetch the full list of module versions from state in: query required: false type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks: + /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}: get: summary: >- - UnreceivedAcks returns all the unreceived IBC acknowledgements - associated + UpgradedConsensusState queries the consensus state that will serve - with a channel and sequences. - operationId: IbcCoreChannelV1UnreceivedAcks + as a trusted kernel for the next version of this chain. It will only be + + stored at the last height of this chain. + + UpgradedConsensusState RPC not supported with legacy querier + + This rpc is deprecated now that IBC has its own replacement + + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + operationId: CosmosUpgradeV1Beta1UpgradedConsensusState responses: '200': description: A successful response. schema: type: object properties: - sequences: - type: array - items: - type: string - format: uint64 - title: list of unreceived acknowledgement sequences - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight + upgraded_consensus_state: + type: string + format: byte + title: 'Since: cosmos-sdk 0.43' + description: >- + QueryUpgradedConsensusStateResponse is the response type for the + Query/UpgradedConsensusState - gets reset - title: |- - QueryUnreceivedAcksResponse is the response type for the - Query/UnreceivedAcks RPC method + RPC method. default: description: An unexpected error response. schema: @@ -18000,80 +18882,94 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier + - name: last_height + description: |- + last height of the current chain must be sent in request + as this is the height under which next consensus state is stored in: path required: true type: string - - name: packet_ack_sequences - description: list of acknowledgement sequences - in: path - required: true - type: array - items: - type: string - format: uint64 - collectionFormat: csv - minItems: 1 + format: int64 tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets: + /cosmwasm/wasm/v1/code: get: - summary: >- - UnreceivedPackets returns all the unreceived IBC packets associated with - a - - channel and sequences. - operationId: IbcCoreChannelV1UnreceivedPackets + summary: Codes gets the metadata for all stored wasm codes + operationId: CosmwasmWasmV1Codes responses: '200': description: A successful response. schema: type: object properties: - sequences: + code_infos: type: array items: - type: string - format: uint64 - title: list of unreceived packet sequences - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight + type: object + properties: + code_id: + type: string + format: uint64 + title: id for legacy support + creator: + type: string + data_hash: + type: string + format: byte + instantiate_permission: + type: object + properties: + permission: + type: string + enum: + - ACCESS_TYPE_UNSPECIFIED + - ACCESS_TYPE_NOBODY + - ACCESS_TYPE_ONLY_ADDRESS + - ACCESS_TYPE_EVERYBODY + - ACCESS_TYPE_ANY_OF_ADDRESSES + default: ACCESS_TYPE_UNSPECIFIED + description: >- + - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified + placeholder for empty value + - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address + Deprecated: use AccessTypeAnyOfAddresses instead + - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses + title: AccessType permission types + address: + type: string + title: |- + Address + Deprecated: replaced by addresses + addresses: + type: array + items: + type: string + description: AccessConfig access control type. + title: CodeInfoResponse contains code meta data from CodeInfo + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - gets reset - title: |- - QueryUnreceivedPacketsResponse is the response type for the - Query/UnreceivedPacketCommitments RPC method + was set, its value is undefined otherwise + title: >- + QueryCodesResponse is the response type for the Query/Codes RPC + method default: description: An unexpected error response. schema: @@ -18260,83 +19156,124 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false type: string - - name: port_id - description: port unique identifier - in: path - required: true + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false type: string - - name: packet_commitment_sequences - description: list of packet sequences - in: path - required: true - type: array - items: - type: string - format: uint64 - collectionFormat: csv - minItems: 1 + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}: + /cosmwasm/wasm/v1/code/{code_id}: get: - summary: PacketCommitment queries a stored packet commitment hash. - operationId: IbcCoreChannelV1PacketCommitment + summary: Code gets the binary code and metadata for a singe wasm code + operationId: CosmwasmWasmV1Code responses: '200': description: A successful response. schema: type: object properties: - commitment: - type: string - format: byte - title: packet associated with the request fields - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + code_info: type: object properties: - revision_number: + code_id: type: string format: uint64 - title: the revision that the client is currently on - revision_height: + title: id for legacy support + creator: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset + data_hash: + type: string + format: byte + instantiate_permission: + type: object + properties: + permission: + type: string + enum: + - ACCESS_TYPE_UNSPECIFIED + - ACCESS_TYPE_NOBODY + - ACCESS_TYPE_ONLY_ADDRESS + - ACCESS_TYPE_EVERYBODY + - ACCESS_TYPE_ANY_OF_ADDRESSES + default: ACCESS_TYPE_UNSPECIFIED + description: >- + - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified + placeholder for empty value + - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address + Deprecated: use AccessTypeAnyOfAddresses instead + - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses + title: AccessType permission types + address: + type: string + title: |- + Address + Deprecated: replaced by addresses + addresses: + type: array + items: + type: string + description: AccessConfig access control type. + title: CodeInfoResponse contains code meta data from CodeInfo + data: + type: string + format: byte title: >- - QueryPacketCommitmentResponse defines the client query response - for a packet - - which also includes a proof and the height from which the proof - was - - retrieved + QueryCodeResponse is the response type for the Query/Code RPC + method default: description: An unexpected error response. schema: @@ -18523,82 +19460,51 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence + - name: code_id + description: grpc-gateway_out does not support Go style CodID in: path required: true type: string format: uint64 tags: - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}: + /cosmwasm/wasm/v1/code/{code_id}/contracts: get: - summary: >- - PacketReceipt queries if a given packet sequence has been received on - the - - queried chain - operationId: IbcCoreChannelV1PacketReceipt + summary: ContractsByCode lists all smart contracts for a code id + operationId: CosmwasmWasmV1ContractsByCode responses: '200': description: A successful response. schema: type: object properties: - received: - type: boolean - title: success flag for if receipt exists - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + contracts: + type: array + items: + type: string + title: contracts are a set of contract addresses + pagination: + description: pagination defines the pagination in the response. type: object properties: - revision_number: + next_key: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - QueryPacketReceiptResponse defines the client query response for a - packet - - receipt which also includes a proof, and the height from which the - proof was + title: >- + total is total number of results available if + PageRequest.count_total - retrieved + was set, its value is undefined otherwise + title: |- + QueryContractsByCodeResponse is the response type for the + Query/ContractsByCode RPC method default: description: An unexpected error response. schema: @@ -18785,176 +19691,136 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier + - name: code_id + description: grpc-gateway_out does not support Go style CodID in: path required: true type: string - - name: port_id - description: port unique identifier - in: path - required: true + format: uint64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false type: string - - name: sequence - description: packet sequence - in: path - required: true + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false type: string format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /ibc/core/channel/v1/connections/{connection}/channels: + /cosmwasm/wasm/v1/codes/params: get: - summary: |- - ConnectionChannels queries all the channels associated with a connection - end. - operationId: IbcCoreChannelV1ConnectionChannels + summary: Params gets the module params + operationId: CosmwasmWasmV1Params responses: '200': description: A successful response. schema: type: object properties: - channels: - type: array - items: - type: object - properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: >- - State defines if a channel is in one of the following - states: - - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: >- - - ORDER_NONE_UNSPECIFIED: zero-value for channel - ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: - type: string - description: >- - port on the counterparty chain which owns the other - end of the channel. - channel_id: - type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which - packets sent on - - this channel will travel - version: - type: string - title: >- - opaque channel version, which is agreed upon during the - handshake - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier - description: >- - IdentifiedChannel defines a channel with additional port and - channel - - identifier fields. - description: list of channels associated with a connection. - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height + params: + description: params defines the parameters of the module. type: object properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + code_upload_access: + type: object + properties: + permission: + type: string + enum: + - ACCESS_TYPE_UNSPECIFIED + - ACCESS_TYPE_NOBODY + - ACCESS_TYPE_ONLY_ADDRESS + - ACCESS_TYPE_EVERYBODY + - ACCESS_TYPE_ANY_OF_ADDRESSES + default: ACCESS_TYPE_UNSPECIFIED + description: >- + - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified + placeholder for empty value + - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address + Deprecated: use AccessTypeAnyOfAddresses instead + - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses + title: AccessType permission types + address: + type: string + title: |- + Address + Deprecated: replaced by addresses + addresses: + type: array + items: + type: string + description: AccessConfig access control type. + instantiate_default_permission: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: |- - QueryConnectionChannelsResponse is the Response type for the - Query/QueryConnectionChannels RPC method + enum: + - ACCESS_TYPE_UNSPECIFIED + - ACCESS_TYPE_NOBODY + - ACCESS_TYPE_ONLY_ADDRESS + - ACCESS_TYPE_EVERYBODY + - ACCESS_TYPE_ANY_OF_ADDRESSES + default: ACCESS_TYPE_UNSPECIFIED + description: >- + - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified + placeholder for empty value + - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address + Deprecated: use AccessTypeAnyOfAddresses instead + - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses + title: AccessType permission types + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. default: description: An unexpected error response. schema: @@ -19140,86 +20006,45 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: connection - description: connection unique identifier - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean tags: - Query - /ibc/client/v1/params: + /cosmwasm/wasm/v1/codes/pinned: get: - summary: ClientParams queries all parameters of the ibc client. - operationId: IbcCoreClientV1ClientParams + summary: PinnedCodes gets the pinned code ids + operationId: CosmwasmWasmV1PinnedCodes responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. + code_ids: + type: array + items: + type: string + format: uint64 + pagination: + description: pagination defines the pagination in the response. type: object properties: - allowed_clients: - type: array - items: - type: string - description: >- - allowed_clients defines the list of allowed client state - types. - description: >- - QueryClientParamsResponse is the response type for the - Query/ClientParams RPC + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - method. + was set, its value is undefined otherwise + title: |- + QueryPinnedCodesResponse is the response type for the + Query/PinnedCodes RPC method default: description: An unexpected error response. schema: @@ -19405,241 +20230,187 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /ibc/core/client/v1/client_states: + /cosmwasm/wasm/v1/contract/{address}: get: - summary: ClientStates queries all the IBC light clients of a chain. - operationId: IbcCoreClientV1ClientStates + summary: ContractInfo gets the contract meta data + operationId: CosmwasmWasmV1ContractInfo responses: '200': description: A successful response. schema: type: object properties: - client_states: - type: array - items: - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least + address: + type: string + title: address is the address of the contract + contract_info: + type: object + properties: + code_id: + type: string + format: uint64 + title: CodeID is the reference to the stored Wasm code + creator: + type: string + title: Creator address who initially instantiated the contract + admin: + type: string + title: Admin is an optional address that can execute migrations + label: + type: string + description: >- + Label is optional metadata to be stored with a contract + instance. + created: + description: Created Tx position when the contract was instantiated. + type: object + properties: + block_height: + type: string + format: uint64 + title: BlockHeight is the block the contract was created at + tx_index: + type: string + format: uint64 + title: >- + TxIndex is a monotonic counter within the block + (actual transaction index, - one "/" character. The last segment of the URL's - path must represent + or gas consumed) + ibc_port_id: + type: string + extension: + description: >- + Extension is an extension point to store custom metadata + within the - the fully qualified name of the type (as in + persistence model. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - `path/google.protobuf.Duration`). The name should be - in a canonical form + protocol buffer message. This string must contain at + least - (e.g., leading "." is not accepted). + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in - In practice, teams usually precompile into the - binary all types that they + `path/google.protobuf.Duration`). The name should be + in a canonical form - expect it to use in the context of Any. However, for - URLs which use the + (e.g., leading "." is not accepted). - scheme `http`, `https`, or no scheme, one can - optionally set up a type - server that maps type URLs to message definitions as - follows: + In practice, teams usually precompile into the binary + all types that they + expect it to use in the context of Any. However, for + URLs which use the - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + scheme `http`, `https`, or no scheme, one can + optionally set up a type - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + server that maps type URLs to message definitions as + follows: - If the embedded message type is well-known and has a - custom JSON - representation, that representation will be embedded - adding a field + * If no scheme is provided, `https` is assumed. - `value` which holds the custom JSON in addition to the - `@type` + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - field. Example (for message - [google.protobuf.Duration][]): + Note: this functionality is not currently available in + the official - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - IdentifiedClientState defines a client state with an - additional client + protobuf release, and it is not used for type URLs + beginning with - identifier field. - description: list of stored ClientStates of the chain. - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + type.googleapis.com. - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - corresponding request message has used PageRequest. + Schemes other than `http`, `https` (or the empty + scheme) might be - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - description: >- - QueryClientStatesResponse is the response type for the - Query/ClientStates RPC + used with implementation specific semantics. + additionalProperties: {} + title: ContractInfo stores a WASM contract instance + title: >- + QueryContractInfoResponse is the response type for the + Query/ContractInfo RPC - method. + method default: description: An unexpected error response. schema: @@ -19826,275 +20597,92 @@ paths: "value": "1.212s" } parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false + - name: address + description: address is the address of the contract to query + in: path + required: true type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean tags: - Query - /ibc/core/client/v1/client_states/{client_id}: + /cosmwasm/wasm/v1/contract/{address}/history: get: - summary: ClientState queries an IBC light client. - operationId: IbcCoreClientV1ClientState + summary: ContractHistory gets the contract code history + operationId: CosmwasmWasmV1ContractHistory responses: '200': description: A successful response. schema: type: object properties: - client_state: - title: client state associated with the request identifier - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): + entries: + type: array + items: + type: object + properties: + operation: + type: string + enum: + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS + default: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED + description: >- + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: + ContractCodeHistoryOperationTypeUnspecified placeholder + for empty value + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + title: >- + ContractCodeHistoryOperationType actions that caused a + code change + code_id: + type: string + format: uint64 + title: CodeID is the reference to the stored WASM code + updated: + description: Updated Tx position when the operation was executed. + type: object + properties: + block_height: + type: string + format: uint64 + title: BlockHeight is the block the contract was created at + tx_index: + type: string + format: uint64 + title: >- + TxIndex is a monotonic counter within the block + (actual transaction index, - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + or gas consumed) + msg: + type: string + format: byte + description: ContractCodeHistoryEntry metadata to a contract. + pagination: + description: pagination defines the pagination in the response. type: object properties: - revision_number: + next_key: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - description: >- - QueryClientStateResponse is the response type for the - Query/ClientState RPC - - method. Besides the client state, it includes a proof and the - height from + title: >- + total is total number of results available if + PageRequest.count_total - which the proof was retrieved. + was set, its value is undefined otherwise + title: |- + QueryContractHistoryResponse is the response type for the + Query/ContractHistory RPC method default: description: An unexpected error response. schema: @@ -20281,30 +20869,86 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client state unique identifier + - name: address + description: address is the address of the contract to query in: path required: true type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /ibc/core/client/v1/client_status/{client_id}: + /cosmwasm/wasm/v1/contract/{address}/raw/{query_data}: get: - summary: Status queries the status of an IBC client. - operationId: IbcCoreClientV1ClientStatus + summary: RawContractState gets single key from the raw store data of a contract + operationId: CosmwasmWasmV1RawContractState responses: '200': description: A successful response. schema: type: object properties: - status: + data: type: string - description: >- - QueryClientStatusResponse is the response type for the - Query/ClientStatus RPC - - method. It returns the current status of the IBC client. + format: byte + title: Data contains the raw store data + title: |- + QueryRawContractStateResponse is the response type for the + Query/RawContractState RPC method default: description: An unexpected error response. schema: @@ -20491,272 +21135,35 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client unique identifier + - name: address + description: address is the address of the contract + in: path + required: true + type: string + - name: query_data in: path required: true type: string + format: byte tags: - Query - /ibc/core/client/v1/consensus_states/{client_id}: + /cosmwasm/wasm/v1/contract/{address}/smart/{query_data}: get: - summary: |- - ConsensusStates queries all the consensus state associated with a given - client. - operationId: IbcCoreClientV1ConsensusStates + summary: SmartContractState get smart query result from the contract + operationId: CosmwasmWasmV1SmartContractState responses: '200': description: A successful response. schema: type: object properties: - consensus_states: - type: array - items: - type: object - properties: - height: - title: consensus state height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each - height while keeping - - RevisionNumber the same. However some consensus - algorithms may choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as - the RevisionHeight - - gets reset - consensus_state: - title: consensus state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's - path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be - in a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the - binary all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can - optionally set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a - custom JSON - - representation, that representation will be embedded - adding a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message - [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - ConsensusStateWithHeight defines a consensus state with an - additional height - - field. - title: consensus states associated with the identifier - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + data: + type: string + format: byte + title: Data contains the json data returned from the smart contract title: |- - QueryConsensusStatesResponse is the response type for the - Query/ConsensusStates RPC method + QuerySmartContractStateResponse is the response type for the + Query/SmartContractState RPC method default: description: An unexpected error response. schema: @@ -20943,119 +21350,54 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier + - name: address + description: address is the address of the contract in: path required: true type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false + - name: query_data + description: QueryData contains the query data passed to the contract + in: path + required: true type: string format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean tags: - Query - /ibc/core/client/v1/consensus_states/{client_id}/heights: + /cosmwasm/wasm/v1/contract/{address}/state: get: - summary: >- - ConsensusStateHeights queries the height of every consensus states - associated with a given client. - operationId: IbcCoreClientV1ConsensusStateHeights + summary: AllContractState gets all raw store data for a single contract + operationId: CosmwasmWasmV1AllContractState responses: '200': description: A successful response. schema: type: object properties: - consensus_state_heights: + models: type: array items: type: object properties: - revision_number: + key: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + format: byte + title: hex-encode key to read it better (this is often ascii) + value: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms - may choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes - of updating and - - freezing clients - title: consensus state heights + format: byte + title: base64-encode raw value + title: Model is a struct that holds a KV pair pagination: - title: pagination response + description: pagination defines the pagination in the response. type: object properties: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -21064,19 +21406,9 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } title: |- - QueryConsensusStateHeightsResponse is the response type for the - Query/ConsensusStateHeights RPC method + QueryAllContractStateResponse is the response type for the + Query/AllContractState RPC method default: description: An unexpected error response. schema: @@ -21263,8 +21595,8 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier + - name: address + description: address is the address of the contract in: path required: true type: string @@ -21314,232 +21646,55 @@ paths: in: query required: false type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}: + /cosmwasm/wasm/v1/contracts/creator/{creator_address}: get: - summary: >- - ConsensusState queries a consensus state associated with a client state - at - - a given height. - operationId: IbcCoreClientV1ConsensusState + summary: ContractsByCreator gets the contracts by creator + operationId: CosmwasmWasmV1ContractsByCreator responses: '200': description: A successful response. schema: type: object properties: - consensus_state: - title: >- - consensus state associated with the client identifier at the - given height + contract_addresses: + type: array + items: + type: string + title: ContractAddresses result set + pagination: + description: Pagination defines the pagination in the response. type: object properties: - '@type': + next_key: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - QueryConsensusStateResponse is the response type for the - Query/ConsensusState - - RPC method + was set, its value is undefined otherwise + description: |- + QueryContractsByCreatorResponse is the response type for the + Query/ContractsByCreator RPC method. default: description: An unexpected error response. schema: @@ -21726,217 +21881,86 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier + - name: creator_address + description: CreatorAddress is the address of contract creator in: path required: true type: string - - name: revision_number - description: consensus state revision number - in: path - required: true + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false type: string format: uint64 - - name: revision_height - description: consensus state revision height - in: path - required: true + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false type: string format: uint64 - - name: latest_height + - name: pagination.count_total description: >- - latest_height overrrides the height field and queries the latest - stored + count_total is set to true to indicate that the result set should + include - ConsensusState + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 in: query required: false type: boolean tags: - Query - /ibc/core/client/v1/upgraded_client_states: + /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connection_id}: get: - summary: UpgradedClientState queries an Upgraded IBC light client. - operationId: IbcCoreClientV1UpgradedClientState + summary: >- + InterchainAccount returns the interchain account address for a given + owner address on a given connection + operationId: IbcApplicationsInterchainAccountsControllerV1InterchainAccount responses: '200': description: A successful response. schema: type: object properties: - upgraded_client_state: - title: client state associated with the request identifier - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: |- - QueryUpgradedClientStateResponse is the response type for the - Query/UpgradedClientState RPC method. + address: + type: string + description: >- + QueryInterchainAccountResponse the response type for the + Query/InterchainAccount RPC method. default: description: An unexpected error response. schema: @@ -22122,219 +22146,67 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: owner + in: path + required: true + type: string + - name: connection_id + in: path + required: true + type: string tags: - Query - /ibc/core/client/v1/upgraded_consensus_states: + /ibc/apps/interchain_accounts/controller/v1/params: get: - summary: UpgradedConsensusState queries an Upgraded IBC consensus state. - operationId: IbcCoreClientV1UpgradedConsensusState + summary: Params queries all parameters of the ICA controller submodule. + operationId: IbcApplicationsInterchainAccountsControllerV1Params responses: '200': description: A successful response. schema: type: object properties: - upgraded_consensus_state: - title: Consensus state associated with the request identifier + params: + description: params defines the parameters of the module. type: object properties: - '@type': - type: string + controller_enabled: + type: boolean description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least + controller_enabled enables or disables the controller + submodule. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - one "/" character. The last segment of the URL's path must - represent + protocol buffer message. This string must contain at + least - the fully qualified name of the type (as in + one "/" character. The last segment of the URL's path + must represent - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: |- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in + the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form @@ -22494,29 +22366,174 @@ paths: } tags: - Query - /ibc/core/connection/v1/client_connections/{client_id}: + /ibc/apps/interchain_accounts/host/v1/params: get: - summary: |- - ClientConnections queries the connection paths associated with a client - state. - operationId: IbcCoreConnectionV1ClientConnections + summary: Params queries all parameters of the ICA host submodule. + operationId: IbcApplicationsInterchainAccountsHostV1Params responses: '200': description: A successful response. schema: type: object properties: - connection_paths: + params: + description: params defines the parameters of the module. + type: object + properties: + host_enabled: + type: boolean + description: host_enabled enables or disables the host submodule. + allow_messages: + type: array + items: + type: string + description: >- + allow_messages defines a list of sdk message typeURLs + allowed to be executed on a host chain. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: - type: string - description: slice of all the connection paths associated with a client. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was generated + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /ibc/core/channel/v1/channels: + get: + summary: Channels queries all the IBC channels of a chain. + operationId: IbcCoreChannelV1Channels + responses: + '200': + description: A successful response. + schema: + type: object + properties: + channels: + type: array + items: + type: object + properties: + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: >- + State defines if a channel is in one of the following + states: + + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: >- + - ORDER_NONE_UNSPECIFIED: zero-value for channel + ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end + type: object + properties: + port_id: + type: string + description: >- + port on the counterparty chain which owns the other + end of the channel. + channel_id: + type: string + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on + + this channel will travel + version: + type: string + title: >- + opaque channel version, which is agreed upon during the + handshake + port_id: + type: string + title: port identifier + channel_id: + type: string + title: channel identifier + description: >- + IdentifiedChannel defines a channel with additional port and + channel + + identifier fields. + description: list of stored channels of the chain. + pagination: + title: pagination response + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height type: object properties: revision_number: @@ -22544,9 +22561,9 @@ paths: RevisionHeight gets reset - title: |- - QueryClientConnectionsResponse is the response type for the - Query/ClientConnections RPC method + description: >- + QueryChannelsResponse is the response type for the Query/Channels + RPC method. default: description: An unexpected error response. schema: @@ -22733,509 +22750,148 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier associated with a connection - in: path - required: true + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /ibc/core/connection/v1/connections: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}: get: - summary: Connections queries all the IBC connections of a chain. - operationId: IbcCoreConnectionV1Connections + summary: Channel queries an IBC Channel. + operationId: IbcCoreChannelV1Channel responses: '200': description: A successful response. schema: type: object properties: - connections: - type: array - items: - type: object - properties: - id: - type: string - description: connection identifier. - client_id: - type: string - description: client associated with this connection. - versions: - type: array - items: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: >- - list of features compatible with the specified - identifier - description: >- - Version defines the versioning scheme used to - negotiate the IBC verison in - - the connection handshake. - title: >- - IBC version which can be utilised to determine encodings - or protocols for - - channels or packets utilising this connection - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain - associated with a given + channel: + title: channel associated with the request identifiers + type: object + properties: + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: >- + State defines if a channel is in one of the following + states: - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty - chain associated with a + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - - The constructed key from the Path and the key will - be append(Path.KeyPath, - - append(Path.KeyPrefix, key...)) - delay_period: - type: string - format: uint64 - description: delay period associated with this connection. - description: >- - IdentifiedConnection defines a connection with additional - connection - - identifier field. - description: list of stored connections of the chain. - pagination: - title: pagination response - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - description: >- - QueryConnectionsResponse is the response type for the - Query/Connections RPC - - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - tags: - - Query - /ibc/core/connection/v1/connections/{connection_id}: - get: - summary: Connection queries an IBC connection end. - operationId: IbcCoreConnectionV1Connection - responses: - '200': - description: A successful response. - schema: - type: object - properties: - connection: - title: connection associated with the request identifier - type: object - properties: - client_id: - type: string - description: client associated with this connection. - versions: - type: array - items: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: >- - list of features compatible with the specified - identifier - description: >- - Version defines the versioning scheme used to negotiate - the IBC verison in - - the connection handshake. - description: >- - IBC version which can be utilised to determine encodings - or protocols for - - channels or packets utilising this connection. - state: - description: current state of the connection end. + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered type: string enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent counterparty: - description: counterparty chain associated with this connection. + title: counterparty channel end type: object properties: - client_id: + port_id: type: string description: >- - identifies the client on the counterparty chain - associated with a given - - connection. - connection_id: + port on the counterparty chain which owns the other + end of the channel. + channel_id: type: string - description: >- - identifies the connection end on the counterparty - chain associated with a - - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - - The constructed key from the Path and the key will be - append(Path.KeyPath, + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on - append(Path.KeyPrefix, key...)) - delay_period: + this channel will travel + version: type: string - format: uint64 - description: >- - delay period that must pass before a consensus state can - be used for - - packet-verification NOTE: delay period logic is only - implemented by some - - clients. + title: >- + opaque channel version, which is agreed upon during the + handshake description: >- - ConnectionEnd defines a stateful object on a chain connected - to another - - separate one. + Channel defines pipeline for exactly-once packet delivery + between specific - NOTE: there must only be 2 defined ConnectionEnds to establish + modules on separate blockchains, which has at least one end + capable of - a connection between two chains. + sending packets and one end capable of receiving packets. proof: type: string format: byte @@ -23270,13 +22926,13 @@ paths: gets reset description: >- - QueryConnectionResponse is the response type for the - Query/Connection RPC + QueryChannelResponse is the response type for the Query/Channel + RPC method. - method. Besides the connection end, it includes a proof and the - height from + Besides the Channel end, it includes a proof and the height from + which the - which the proof was retrieved. + proof was retrieved. default: description: An unexpected error response. schema: @@ -23463,19 +23119,26 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - description: connection unique identifier + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier in: path required: true type: string tags: - Query - /ibc/core/connection/v1/connections/{connection_id}/client_state: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state: get: - summary: |- - ConnectionClientState queries the client state associated with the - connection. - operationId: IbcCoreConnectionV1ConnectionClientState + summary: >- + ChannelClientState queries for the client state for the channel + associated + + with the provided channel identifiers. + operationId: IbcCoreChannelV1ChannelClientState responses: '200': description: A successful response. @@ -23702,8 +23365,8 @@ paths: gets reset title: |- - QueryConnectionClientStateResponse is the response type for the - Query/ConnectionClientState RPC method + QueryChannelClientStateResponse is the Response type for the + Query/QueryChannelClientState RPC method default: description: An unexpected error response. schema: @@ -23890,19 +23553,24 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - description: connection identifier + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier in: path required: true type: string tags: - Query - /ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}: get: summary: |- - ConnectionConsensusState queries the consensus state associated with the - connection. - operationId: IbcCoreConnectionV1ConnectionConsensusState + ChannelConsensusState queries for the consensus state for the channel + associated with the provided channel identifiers. + operationId: IbcCoreChannelV1ChannelConsensusState responses: '200': description: A successful response. @@ -24116,8 +23784,8 @@ paths: gets reset title: |- - QueryConnectionConsensusStateResponse is the response type for the - Query/ConnectionConsensusState RPC method + QueryChannelClientStateResponse is the Response type for the + Query/QueryChannelClientState RPC method default: description: An unexpected error response. schema: @@ -24304,67 +23972,82 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - description: connection identifier + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier in: path required: true type: string - name: revision_number + description: revision number of the consensus state in: path required: true type: string format: uint64 - name: revision_height + description: revision height of the consensus state in: path required: true type: string format: uint64 tags: - Query - /interchain_security/ccv/consumer/next-fee-distribution: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence: get: summary: >- - ConsumerGenesis queries the genesis state needed to start a consumer - chain - - whose proposal has been accepted - operationId: InterchainSecurityCcvConsumerV1QueryNextFeeDistribution + NextSequenceReceive returns the next receive sequence for a given + channel. + operationId: IbcCoreChannelV1NextSequenceReceive responses: '200': description: A successful response. schema: type: object properties: - data: + next_sequence_receive: + type: string + format: uint64 + title: next sequence receive number + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - currentHeight: - type: string - format: int64 - title: current block height at the time of querying - lastHeight: - type: string - format: int64 - title: block height at which last distribution took place - nextHeight: - type: string - format: int64 - title: block height at which next distribution will take place - distribution_fraction: - type: string - title: ratio between consumer and provider fee distribution - total: - type: string - title: total accruead fees at the time of querying - toProvider: + revision_number: type: string - title: amount distibuted to provider chain - toConsumer: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string - title: amount distributed (kept) by consumer chain - title: >- - NextFeeDistributionEstimate holds information about next fee - distribution + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QuerySequenceResponse is the request type for the + Query/QueryNextSequenceReceiveResponse RPC method default: description: An unexpected error response. schema: @@ -24550,113 +24233,123 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string tags: - Query - /interchain_security/ccv/consumer/params: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements: get: - summary: QueryParams queries the ccv/consumer module parameters. - operationId: InterchainSecurityCcvConsumerV1QueryParams + summary: >- + PacketAcknowledgements returns all the packet acknowledgements + associated + + with a channel. + operationId: IbcCoreChannelV1PacketAcknowledgements responses: '200': description: A successful response. schema: type: object properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - enabled: - type: boolean - title: >- - TODO: Remove enabled flag and find a better way to setup - integration tests - - See: - https://github.com/cosmos/interchain-security/issues/339 - blocks_per_distribution_transmission: - type: string - format: int64 - description: >- - ///////////////////// - - Distribution Params - - Number of blocks between ibc-token-transfers from the - consumer chain to - - the provider chain. Note that at this transmission event a - fraction of - - the accumulated tokens are divided and sent consumer - redistribution + acknowledgements: + type: array + items: + type: object + properties: + port_id: + type: string + description: channel port identifier. + channel_id: + type: string + description: channel unique identifier. + sequence: + type: string + format: uint64 + description: packet sequence. + data: + type: string + format: byte + description: embedded data that represents packet state. + description: >- + PacketState defines the generic type necessary to retrieve + and store - address. - distribution_transmission_channel: - type: string - description: >- - Channel, and provider-chain receiving address to send - distribution token + packet commitments, acknowledgements, and receipts. - transfers over. These parameters is auto-set during the - consumer <-> + Caller is responsible for knowing the context necessary to + interpret this - provider handshake procedure. - provider_fee_pool_addr_str: - type: string - ccv_timeout_period: + state as a commitment, acknowledgement, or a receipt. + pagination: + title: pagination response + type: object + properties: + next_key: type: string - title: >- - Sent CCV related IBC packets will timeout after this - duration - transfer_timeout_period: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string + format: uint64 title: >- - Sent transfer related IBC packets will timeout after this - duration - consumer_redistribution_fraction: - type: string - description: >- - The fraction of tokens allocated to the consumer - redistribution address + total is total number of results available if + PageRequest.count_total - during distribution events. The fraction is a string - representing a + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - decimal number. For example "0.75" would represent 75%. - historical_entries: + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height + type: object + properties: + revision_number: type: string - format: int64 - description: >- - The number of historical info entries to persist in store. + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - This param is a part of the cosmos sdk staking module. In - the case of + RevisionNumber the same. However some consensus algorithms may + choose to - a ccv enabled consumer chain, the ccv module acts as the - staking module. - unbonding_period: - type: string - description: >- - Unbonding period for the consumer, + reset the height in certain conditions e.g. hard forks, + state-machine - which should be smaller than that of the provider in - general. - soft_opt_out_threshold: - type: string - title: >- - The threshold for the percentage of validators at the - bottom of the set who + breaking changes In these cases, the RevisionNumber is + incremented so that - can opt out of running the consumer chain without being - punished. For example, a + height continues to be monitonically increasing even as the + RevisionHeight - value of 0.05 means that the validators in the bottom 5% - of the set can opt out - title: Params defines the parameters for CCV consumer module - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. + gets reset + title: |- + QueryPacketAcknowledgemetsResponse is the request type for the + Query/QueryPacketAcknowledgements RPC method default: description: An unexpected error response. schema: @@ -24842,159 +24535,138 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: packet_commitment_sequences + description: list of packet sequences + in: query + required: false + type: array + items: + type: string + format: uint64 + collectionFormat: multi tags: - Query - /interchain_security/ccv/provider/consumer_chain_start_proposals: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}: get: - summary: QueryConsumerChainStarts queries consumer chain start proposals. - operationId: InterchainSecurityCcvProviderV1QueryConsumerChainStarts + summary: PacketAcknowledgement queries a stored packet acknowledgement hash. + operationId: IbcCoreChannelV1PacketAcknowledgement responses: '200': description: A successful response. schema: type: object properties: - proposals: + acknowledgement: + type: string + format: byte + title: packet associated with the request fields + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - pending: - type: array - items: - type: object - properties: - title: - type: string - title: the title of the proposal - description: - type: string - title: the description of the proposal - chain_id: - type: string - description: >- - the proposed chain-id of the new consumer chain, - must be different from all other consumer chain ids - of the executing - - provider chain. - initial_height: - description: >- - the proposed initial height of new consumer chain. - - For a completely new chain, this will be {0,1}. - However, it may be different if this is a chain that - is converting to a consumer chain. - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the - purposes of updating and - - freezing clients - genesis_hash: - type: string - format: byte - description: >- - The hash of the consumer chain genesis state without - the consumer CCV module genesis params. - - It is used for off-chain confirmation of - genesis.json validity by validators and other - parties. - binary_hash: - type: string - format: byte - description: >- - The hash of the consumer chain binary that should be - run by validators on chain initialization. - - It is used for off-chain confirmation of binary - validity by validators and other parties. - spawn_time: - type: string - format: date-time - description: >- - spawn time is the time on the provider chain at - which the consumer chain genesis is finalized and - all validators - - will be responsible for starting their consumer - chain validator node. - unbonding_period: - type: string - description: >- - Unbonding period for the consumer, - - which should be smaller than that of the provider in - general. - ccv_timeout_period: - type: string - title: >- - Sent CCV related IBC packets will timeout after this - duration - transfer_timeout_period: - type: string - title: >- - Sent transfer related IBC packets will timeout after - this duration - consumer_redistribution_fraction: - type: string - description: >- - The fraction of tokens allocated to the consumer - redistribution address + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - during distribution events. The fraction is a string - representing a + RevisionNumber the same. However some consensus algorithms may + choose to - decimal number. For example "0.75" would represent - 75%. - blocks_per_distribution_transmission: - type: string - format: int64 - description: >- - BlocksPerDistributionTransmission is the number of - blocks between ibc-token-transfers from the consumer - chain to the provider chain. + reset the height in certain conditions e.g. hard forks, + state-machine - On sending transmission event, - `consumer_redistribution_fraction` of the - accumulated tokens are sent to the consumer - redistribution address. - historical_entries: - type: string - format: int64 - description: >- - The number of historical info entries to persist in - store. + breaking changes In these cases, the RevisionNumber is + incremented so that - This param is a part of the cosmos sdk staking - module. In the case of + height continues to be monitonically increasing even as the + RevisionHeight - a ccv enabled consumer chain, the ccv module acts as - the staking module. - description: >- - ConsumerAdditionProposal is a governance proposal on the - provider chain to spawn a new consumer chain. + gets reset + title: >- + QueryPacketAcknowledgementResponse defines the client query + response for a - If it passes, then all validators on the provider chain - are expected to validate the consumer chain at spawn - time + packet which also includes a proof and the height from which the - or get slashed. It is recommended that spawn time occurs - after the proposal end time. - title: proposals waiting for spawn_time to pass - description: >- - ConsumerAdditionProposals holds pending governance proposals - on the provider chain to spawn a new chain. + proof was retrieved default: description: An unexpected error response. schema: @@ -25180,54 +24852,127 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: sequence + description: packet sequence + in: path + required: true + type: string + format: uint64 tags: - Query - /interchain_security/ccv/provider/consumer_chain_stop_proposals: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments: get: - summary: QueryConsumerChainStops queries consumer chain stop proposals. - operationId: InterchainSecurityCcvProviderV1QueryConsumerChainStops + summary: |- + PacketCommitments returns all the packet commitments hashes associated + with a channel. + operationId: IbcCoreChannelV1PacketCommitments responses: '200': description: A successful response. schema: type: object properties: - proposals: + commitments: + type: array + items: + type: object + properties: + port_id: + type: string + description: channel port identifier. + channel_id: + type: string + description: channel unique identifier. + sequence: + type: string + format: uint64 + description: packet sequence. + data: + type: string + format: byte + description: embedded data that represents packet state. + description: >- + PacketState defines the generic type necessary to retrieve + and store + + packet commitments, acknowledgements, and receipts. + + Caller is responsible for knowing the context necessary to + interpret this + + state as a commitment, acknowledgement, or a receipt. + pagination: + title: pagination response type: object properties: - pending: - type: array - items: - type: object - properties: - title: - type: string - title: the title of the proposal - description: - type: string - title: the description of the proposal - chain_id: - type: string - title: the chain-id of the consumer chain to be stopped - stop_time: - type: string - format: date-time - title: >- - the time on the provider chain at which all - validators are responsible to stop their consumer - chain validator node - description: >- - ConsumerRemovalProposal is a governance proposal on the - provider chain to remove (and stop) a consumer chain. + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - If it passes, all the consumer chain's state is removed - from the provider chain. The outstanding unbonding + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - operation funds are released. - title: proposals waiting for stop_time to pass + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision description: >- - ConsumerRemovalProposals holds pending governance proposals on - the provider chain to remove (and stop) a consumer chain. + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryPacketCommitmentsResponse is the request type for the + Query/QueryPacketCommitments RPC method default: description: An unexpected error response. schema: @@ -25413,29 +25158,127 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /interchain_security/ccv/provider/consumer_chains: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks: get: - summary: |- - ConsumerChains queries active consumer chains supported by the provider - chain - operationId: InterchainSecurityCcvProviderV1QueryConsumerChains + summary: >- + UnreceivedAcks returns all the unreceived IBC acknowledgements + associated + + with a channel and sequences. + operationId: IbcCoreChannelV1UnreceivedAcks responses: '200': description: A successful response. schema: type: object properties: - chains: + sequences: type: array items: - type: object - properties: - chain_id: - type: string - client_id: - type: string + type: string + format: uint64 + title: list of unreceived acknowledgement sequences + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryUnreceivedAcksResponse is the response type for the + Query/UnreceivedAcks RPC method default: description: An unexpected error response. schema: @@ -25621,719 +25464,344 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - tags: - - Query - /interchain_security/ccv/provider/consumer_genesis/{chain_id}: + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: packet_ack_sequences + description: list of acknowledgement sequences + in: path + required: true + type: array + items: + type: string + format: uint64 + collectionFormat: csv + minItems: 1 + tags: + - Query + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets: get: summary: >- - ConsumerGenesis queries the genesis state needed to start a consumer - chain + UnreceivedPackets returns all the unreceived IBC packets associated with + a - whose proposal has been accepted - operationId: InterchainSecurityCcvProviderV1QueryConsumerGenesis + channel and sequences. + operationId: IbcCoreChannelV1UnreceivedPackets responses: '200': description: A successful response. schema: type: object properties: - genesis_state: + sequences: + type: array + items: + type: string + format: uint64 + title: list of unreceived packet sequences + height: + title: query block height type: object properties: - params: - type: object - properties: - enabled: - type: boolean - title: >- - TODO: Remove enabled flag and find a better way to - setup integration tests + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - See: - https://github.com/cosmos/interchain-security/issues/339 - blocks_per_distribution_transmission: - type: string - format: int64 - description: >- - ///////////////////// + RevisionNumber the same. However some consensus algorithms may + choose to - Distribution Params + reset the height in certain conditions e.g. hard forks, + state-machine - Number of blocks between ibc-token-transfers from the - consumer chain to + breaking changes In these cases, the RevisionNumber is + incremented so that - the provider chain. Note that at this transmission - event a fraction of + height continues to be monitonically increasing even as the + RevisionHeight - the accumulated tokens are divided and sent consumer - redistribution + gets reset + title: |- + QueryUnreceivedPacketsResponse is the response type for the + Query/UnreceivedPacketCommitments RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - address. - distribution_transmission_channel: - type: string - description: >- - Channel, and provider-chain receiving address to send - distribution token + protocol buffer message. This string must contain at + least - transfers over. These parameters is auto-set during - the consumer <-> + one "/" character. The last segment of the URL's path + must represent - provider handshake procedure. - provider_fee_pool_addr_str: - type: string - ccv_timeout_period: - type: string - title: >- - Sent CCV related IBC packets will timeout after this - duration - transfer_timeout_period: - type: string - title: >- - Sent transfer related IBC packets will timeout after - this duration - consumer_redistribution_fraction: - type: string - description: >- - The fraction of tokens allocated to the consumer - redistribution address + the fully qualified name of the type (as in - during distribution events. The fraction is a string - representing a + `path/google.protobuf.Duration`). The name should be in + a canonical form - decimal number. For example "0.75" would represent - 75%. - historical_entries: - type: string - format: int64 - description: >- - The number of historical info entries to persist in - store. + (e.g., leading "." is not accepted). - This param is a part of the cosmos sdk staking module. - In the case of - a ccv enabled consumer chain, the ccv module acts as - the staking module. - unbonding_period: - type: string - description: >- - Unbonding period for the consumer, + In practice, teams usually precompile into the binary + all types that they - which should be smaller than that of the provider in - general. - soft_opt_out_threshold: - type: string - title: >- - The threshold for the percentage of validators at the - bottom of the set who + expect it to use in the context of Any. However, for + URLs which use the - can opt out of running the consumer chain without - being punished. For example, a + scheme `http`, `https`, or no scheme, one can optionally + set up a type - value of 0.05 means that the validators in the bottom - 5% of the set can opt out - title: Params defines the parameters for CCV consumer module - provider_client_id: - type: string - description: empty for a new chain, filled in on restart. - provider_channel_id: - type: string - description: empty for a new chain, filled in on restart. - new_chain: - type: boolean - description: true for new chain GenesisState, false for chain restart. - provider_client_state: - description: >- - ProviderClientState filled in on new chain, nil on - restart. - type: object - properties: - chain_id: - type: string - trust_level: - type: object - properties: - numerator: - type: string - format: uint64 - denominator: - type: string - format: uint64 - description: >- - Fraction defines the protobuf message type for - tmmath.Fraction that only + server that maps type URLs to message definitions as + follows: - supports positive values. - trusting_period: - type: string - title: >- - duration of the period since the LastestTimestamp - during which the - submitted headers are valid for upgrade - unbonding_period: - type: string - title: duration of the staking unbonding period - max_clock_drift: - type: string - description: >- - defines how much new (untrusted) header's Time can - drift into the future. - frozen_height: - title: >- - Block height when the client was frozen due to a - misbehaviour - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each - height while keeping + * If no scheme is provided, `https` is assumed. - RevisionNumber the same. However some consensus - algorithms may choose to + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - reset the height in certain conditions e.g. hard - forks, state-machine + Note: this functionality is not currently available in + the official - breaking changes In these cases, the RevisionNumber is - incremented so that + protobuf release, and it is not used for type URLs + beginning with - height continues to be monitonically increasing even - as the RevisionHeight + type.googleapis.com. - gets reset - latest_height: - title: Latest height the client was updated to - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each - height while keeping - RevisionNumber the same. However some consensus - algorithms may choose to + Schemes other than `http`, `https` (or the empty scheme) + might be - reset the height in certain conditions e.g. hard - forks, state-machine + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - breaking changes In these cases, the RevisionNumber is - incremented so that + URL that describes the type of the serialized message. - height continues to be monitonically increasing even - as the RevisionHeight - gets reset - proof_specs: - type: array - items: - type: object - properties: - leaf_spec: - title: >- - any field in the ExistenceProof must be the same - as in this spec. + Protobuf library provides support to pack/unpack Any values + in the form - except Prefix, which is just the first bytes of - prefix (spec can be longer) - type: object - properties: - hash: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data - passed. Note this is an illegal argument - some places. - - BITCOIN: ripemd160(sha256(x)) - prehash_key: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data - passed. Note this is an illegal argument - some places. - - BITCOIN: ripemd160(sha256(x)) - prehash_value: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data - passed. Note this is an illegal argument - some places. - - BITCOIN: ripemd160(sha256(x)) - length: - type: string - enum: - - NO_PREFIX - - VAR_PROTO - - VAR_RLP - - FIXED32_BIG - - FIXED32_LITTLE - - FIXED64_BIG - - FIXED64_LITTLE - - REQUIRE_32_BYTES - - REQUIRE_64_BYTES - default: NO_PREFIX - description: >- - - NO_PREFIX: NO_PREFIX don't include any - length info - - VAR_PROTO: VAR_PROTO uses protobuf (and go-amino) varint encoding of the length - - VAR_RLP: VAR_RLP uses rlp int encoding of the length - - FIXED32_BIG: FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer - - FIXED32_LITTLE: FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer - - FIXED64_BIG: FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer - - FIXED64_LITTLE: FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer - - REQUIRE_32_BYTES: REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) - - REQUIRE_64_BYTES: REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) - title: >- - * + of utility functions or additional generated methods of the + Any type. - LengthOp defines how to process the key and - value of the LeafOp - to include length information. After - encoding the length with the given + Example 1: Pack and unpack a message in C++. - algorithm, the length will be prepended to - the key and value bytes. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - (Each one with it's own encoded length) - prefix: - type: string - format: byte - description: >- - prefix is a fixed bytes that may optionally - be included at the beginning to - differentiate + Example 2: Pack and unpack a message in Java. - a leaf node from an inner node. - description: >- - * + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - LeafOp represents the raw key-value data we wish - to prove, and + Example 3: Pack and unpack a message in Python. - must be flexible to represent the internal - transformation from + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - the original key-value pairs into the basis - hash, for many existing + Example 4: Pack and unpack a message in Go - merkle trees. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by + default use - key and value are passed in. So that the - signature of this operation is: + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - leafOp(key, value) -> output + methods only use the fully qualified type name after the + last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - To process this, first prehash the keys and - values if needed (ANY means no hash in this - case): + name "y.z". - hkey = prehashKey(key) - hvalue = prehashValue(value) + JSON - Then combine the bytes, and hash it + ==== - output = hash(prefix || length(hkey) || hkey || - length(hvalue) || hvalue) - inner_spec: - type: object - properties: - child_order: - type: array - items: - type: integer - format: int32 - title: >- - Child order is the ordering of the children - node, must count from 0 + The JSON representation of an `Any` value uses the regular - iavl tree is [0, 1] (left then right) + representation of the deserialized, embedded message, with + an - merk is [0, 2, 1] (left, right, here) - child_size: - type: integer - format: int32 - min_prefix_length: - type: integer - format: int32 - max_prefix_length: - type: integer - format: int32 - empty_child: - type: string - format: byte - title: >- - empty child is the prehash image that is - used when one child is nil (eg. 20 bytes of - 0) - hash: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data - passed. Note this is an illegal argument - some places. - - BITCOIN: ripemd160(sha256(x)) - description: >- - InnerSpec contains all store-specific structure - info to determine if two proofs from a - - given store are neighbors. - - - This enables: - - - isLeftMost(spec: InnerSpec, op: InnerOp) - - isRightMost(spec: InnerSpec, op: InnerOp) - - isLeftNeighbor(spec: InnerSpec, left: InnerOp, - right: InnerOp) - max_depth: - type: integer - format: int32 - title: >- - max_depth (if > 0) is the maximum number of - InnerOps allowed (mainly for fixed-depth tries) - min_depth: - type: integer - format: int32 - title: >- - min_depth (if > 0) is the minimum number of - InnerOps allowed (mainly for fixed-depth tries) - description: >- - * - - ProofSpec defines what the expected parameters are - for a given proof type. - - This can be stored in the client and used to - validate any incoming proofs. - - - verify(ProofSpec, Proof) -> Proof | Error - - - As demonstrated in tests, if we don't fix the - algorithm used to calculate the - - LeafHash for a given tree, there are many possible - key-value pairs that can - - generate a given hash (by interpretting the preimage - differently). - - We need this for proper security, requires client - knows a priori what - - tree format server uses. But not in code, rather a - configuration object. - title: >- - Proof specifications used in verifying counterparty - state - upgrade_path: - type: array - items: - type: string - title: >- - Path at which next upgraded client will be committed. - - Each element corresponds to the key for a single - CommitmentProof in the - - chained proof. NOTE: ClientState must stored under - - `{upgradePath}/{upgradeHeight}/clientState` - ConsensusState must be stored - - under `{upgradepath}/{upgradeHeight}/consensusState` - For SDK chains using + additional field `@type` which contains the type URL. + Example: - the default upgrade module, upgrade_path should be - []string{"upgrade", + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - "upgradedIBCState"}` - allow_update_after_expiry: - type: boolean - title: >- - This flag, when set to true, will allow governance to - recover a client + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - which has expired - allow_update_after_misbehaviour: - type: boolean - title: >- - This flag, when set to true, will allow governance to - unfreeze a client + If the embedded message type is well-known and has a custom + JSON - whose chain has experienced a misbehaviour event - provider_consensus_state: - description: >- - ProviderConsensusState filled in on new chain, nil on - restart. - type: object - properties: - timestamp: - type: string - format: date-time - description: >- - timestamp that corresponds to the block height in - which the ConsensusState + representation, that representation will be embedded adding + a field - was stored. - root: - title: commitment root (i.e app hash) - type: object - properties: - hash: - type: string - format: byte - description: >- - MerkleRoot defines a merkle root hash. + `value` which holds the custom JSON in addition to the + `@type` - In the Cosmos SDK, the AppHash of a block header - becomes the root. - next_validators_hash: - type: string - format: byte - maturing_packets: - type: array - items: - type: object - properties: - vscId: - type: string - format: uint64 - maturity_time: - type: string - format: date-time - title: >- - MaturingVSCPacket contains the maturing time of a - received VSCPacket - description: MaturingPackets nil on new chain, filled in on restart. - initial_val_set: - type: array - items: - type: object - properties: - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - power: - type: string - format: int64 - title: ValidatorUpdate - description: InitialValset filled in on new chain and on restart. - height_to_valset_update_id: - type: array - items: - type: object - properties: - height: - type: string - format: uint64 - valset_update_id: - type: string - format: uint64 - title: >- - HeightValsetUpdateID defines the genesis information for - the mapping + field. Example (for message [google.protobuf.Duration][]): - of each block height to a valset update id - description: >- - HeightToValsetUpdateId nil on new chain, filled in on - restart. - outstanding_downtime_slashing: - type: array - items: - type: object - properties: - validator_consensus_address: - type: string - description: >- - OutstandingDowntime defines the genesis information for - each validator + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: packet_commitment_sequences + description: list of packet sequences + in: path + required: true + type: array + items: + type: string + format: uint64 + collectionFormat: csv + minItems: 1 + tags: + - Query + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}: + get: + summary: PacketCommitment queries a stored packet commitment hash. + operationId: IbcCoreChannelV1PacketCommitment + responses: + '200': + description: A successful response. + schema: + type: object + properties: + commitment: + type: string + format: byte + title: packet associated with the request fields + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - flagged with an outstanding downtime slashing. - description: >- - OutstandingDowntimes nil on new chain, filled in on - restart. - pending_consumer_packets: - description: >- - PendingConsumerPackets nil on new chain, filled in on - restart. - type: object - properties: - list: - type: array - items: - type: object - properties: - type: - type: string - enum: - - CONSUMER_PACKET_TYPE_UNSPECIFIED - - CONSUMER_PACKET_TYPE_SLASH - - CONSUMER_PACKET_TYPE_VSCM - default: CONSUMER_PACKET_TYPE_UNSPECIFIED - description: >- - ConsumerPacketType indicates interchain security - specific packet types. + RevisionNumber the same. However some consensus algorithms may + choose to - - CONSUMER_PACKET_TYPE_UNSPECIFIED: UNSPECIFIED packet type - - CONSUMER_PACKET_TYPE_SLASH: Slash packet - - CONSUMER_PACKET_TYPE_VSCM: VSCMatured packet - slashPacketData: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: >- - PubKey pub_key = 2 - [(gogoproto.nullable)=false]; - title: Validator - valset_update_id: - type: string - format: uint64 - title: >- - map to the infraction block height on the - provider - infraction: - title: >- - tell if the slashing is for a downtime or a - double-signing infraction - type: string - enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: >- - InfractionType indicates the infraction type - a validator commited. + reset the height in certain conditions e.g. hard forks, + state-machine - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. - description: >- - This packet is sent from the consumer chain to - the provider chain + breaking changes In these cases, the RevisionNumber is + incremented so that - to request the slashing of a validator as a - result of an infraction + height continues to be monitonically increasing even as the + RevisionHeight - committed on the consumer chain. - vscMaturedPacketData: - type: object - properties: - valset_update_id: - type: string - format: uint64 - title: >- - the id of the VSC packet that reached - maturity - description: >- - This packet is sent from the consumer chain to - the provider chain + gets reset + title: >- + QueryPacketCommitmentResponse defines the client query response + for a packet - to notify that a VSC packet reached maturity on - the consumer chain. - title: >- - ConsumerPacketData contains a consumer packet data - and a type tag - last_transmission_block_height: - description: >- - LastTransmissionBlockHeight nil on new chain, filled in on - restart. - type: object - properties: - height: - type: string - format: int64 - title: >- - LastTransmissionBlockHeight is the last time validator - holding + which also includes a proof and the height from which the proof + was - pools were transmitted to the provider chain - preCCV: - type: boolean - title: >- - flag indicating whether the consumer CCV module starts in - pre-CCV state - title: GenesisState defines the CCV consumer chain genesis state + retrieved default: description: An unexpected error response. schema: @@ -26520,97 +25988,82 @@ paths: "value": "1.212s" } parameters: - - name: chain_id + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: sequence + description: packet sequence in: path required: true type: string + format: uint64 tags: - Query - /interchain_security/ccv/provider/pending_consumer_packets: + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}: get: summary: >- - QueryThrottledConsumerPacketData returns a list of pending packet data - instances + PacketReceipt queries if a given packet sequence has been received on + the - (slash packet and vsc matured) for a single consumer chain - operationId: InterchainSecurityCcvProviderV1QueryThrottledConsumerPacketData + queried chain + operationId: IbcCoreChannelV1PacketReceipt responses: '200': description: A successful response. schema: type: object properties: - chain_id: - type: string - size: + received: + type: boolean + title: success flag for if receipt exists + proof: type: string - format: uint64 - packetDataInstances: - type: array - items: - type: object - properties: - slash_packet: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - title: Validator - valset_update_id: - type: string - format: uint64 - title: map to the infraction block height on the provider - infraction: - title: >- - tell if the slashing is for a downtime or a - double-signing infraction - type: string - enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: >- - InfractionType indicates the infraction type a - validator commited. + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. - description: >- - This packet is sent from the consumer chain to the - provider chain + RevisionNumber the same. However some consensus algorithms may + choose to - to request the slashing of a validator as a result of an - infraction + reset the height in certain conditions e.g. hard forks, + state-machine - committed on the consumer chain. - vsc_matured_packet: - type: object - properties: - valset_update_id: - type: string - format: uint64 - title: the id of the VSC packet that reached maturity - description: >- - This packet is sent from the consumer chain to the - provider chain + breaking changes In these cases, the RevisionNumber is + incremented so that - to notify that a VSC packet reached maturity on the - consumer chain. - title: >- - ThrottledPacketDataWrapper contains either SlashPacketData - or VSCMaturedPacketData + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + QueryPacketReceiptResponse defines the client query response for a + packet + + receipt which also includes a proof, and the height from which the + proof was + + retrieved default: description: An unexpected error response. schema: @@ -26797,143 +26250,177 @@ paths: "value": "1.212s" } parameters: - - name: chain_id - in: query - required: false + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: sequence + description: packet sequence + in: path + required: true type: string + format: uint64 tags: - Query - /interchain_security/ccv/provider/throttle_state: + /ibc/core/channel/v1/connections/{connection}/channels: get: - summary: >- - QueryThrottleState returns the main on-chain state relevant to currently - throttled slash packets - operationId: InterchainSecurityCcvProviderV1QueryThrottleState + summary: |- + ConnectionChannels queries all the channels associated with a connection + end. + operationId: IbcCoreChannelV1ConnectionChannels responses: '200': description: A successful response. schema: type: object properties: - slash_meter: - type: string - format: int64 - title: current slash_meter state - slash_meter_allowance: - type: string - format: int64 - description: >- - allowance of voting power units (int) that the slash meter is - given per replenish period - - this also serves as the max value for the meter. - next_replenish_candidate: - type: string - format: date-time - title: >- - next time the slash meter could potentially be replenished, - iff it's not full - packets: + channels: type: array items: type: object properties: - global_entry: + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: >- + State defines if a channel is in one of the following + states: + + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: >- + - ORDER_NONE_UNSPECIFIED: zero-value for channel + ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end type: object properties: - recv_time: + port_id: type: string - format: date-time description: >- - Block time that slash packet was received by - provider chain. - - This field is used for store key iteration ordering. - consumer_chain_id: - type: string - description: The consumer that sent a slash packet. - ibc_seq_num: + port on the counterparty chain which owns the other + end of the channel. + channel_id: type: string - format: uint64 - description: >- - The IBC sequence number of the recv packet. + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on - This field is used in the store key to ensure - uniqueness. - provider_val_cons_addr: - description: >- - The provider's consensus address of the validator - being slashed. + this channel will travel + version: + type: string + title: >- + opaque channel version, which is agreed upon during the + handshake + port_id: + type: string + title: port identifier + channel_id: + type: string + title: channel identifier + description: >- + IdentifiedChannel defines a channel with additional port and + channel - This field is used to obtain validator power in - HandleThrottleQueues. + identifier fields. + description: list of channels associated with a connection. + pagination: + title: pagination response + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - This field is not used in the store key, but is - persisted in value bytes, see QueueGlobalSlashEntry. - type: object - properties: - address: - type: string - format: byte - title: >- - A validator's consensus address on the provider - chain - description: >- - A persisted queue entry indicating that a slash packet - data instance needs to be handled. + corresponding request message has used PageRequest. - This type belongs in the "global" queue, to coordinate - slash packet handling times between consumers. - data: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - title: Validator - valset_update_id: - type: string - format: uint64 - title: map to the infraction block height on the provider - infraction: - title: >- - tell if the slashing is for a downtime or a - double-signing infraction - type: string - enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: >- - InfractionType indicates the infraction type a - validator commited. + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. - description: >- - This packet is sent from the consumer chain to the - provider chain + RevisionNumber the same. However some consensus algorithms may + choose to - to request the slashing of a validator as a result of an - infraction + reset the height in certain conditions e.g. hard forks, + state-machine - committed on the consumer chain. - description: >- - A query wrapper type for the global entry and data relevant - to a throttled slash packet. - title: data relevant to currently throttled slash packets + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryConnectionChannelsResponse is the Response type for the + Query/QueryConnectionChannels RPC method default: description: An unexpected error response. schema: @@ -27119,236 +26606,304 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: connection + description: connection unique identifier + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /interchain_security/ccv/provider/validator_consumer_addr: + /ibc/core/client/v1/client_states: get: - summary: |- - QueryValidatorConsumerAddr queries the address - assigned by a validator for a consumer chain. - operationId: InterchainSecurityCcvProviderV1QueryValidatorConsumerAddr + summary: ClientStates queries all the IBC light clients of a chain. + operationId: IbcCoreClientV1ClientStates responses: '200': description: A successful response. schema: type: object properties: - consumer_address: - type: string - title: The address of the validator on the consumer chain - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + client_states: type: array items: type: object properties: - '@type': + client_id: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + title: client identifier + client_state: + title: client state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's + path must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the + binary all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently available + in the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the + regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, + with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message + [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: chain_id - description: The id of the consumer chain - in: query - required: false - type: string - - name: provider_address - description: The consensus address of the validator on the provider chain - in: query - required: false - type: string - tags: - - Query - /interchain_security/ccv/provider/validator_provider_addr: - get: - summary: |- - QueryProviderAddr returns the provider chain validator - given a consumer chain validator address - operationId: InterchainSecurityCcvProviderV1QueryValidatorProviderAddr - responses: - '200': - description: A successful response. - schema: - type: object - properties: - provider_address: - type: string - title: The address of the validator on the provider chain + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + IdentifiedClientState defines a client state with an + additional client + + identifier field. + description: list of stored ClientStates of the chain. + pagination: + title: pagination response + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + description: >- + QueryClientStatesResponse is the response type for the + Query/ClientStates RPC + + method. default: description: An unexpected error response. schema: @@ -27535,105 +27090,6 @@ paths: "value": "1.212s" } parameters: - - name: chain_id - description: The id of the provider chain - in: query - required: false - type: string - - name: consumer_address - description: The consensus address of the validator on the consumer chain - in: query - required: false - type: string - tags: - - Query - /neutron/contractmanager/failures: - get: - summary: Queries a list of Failure items. - operationId: NeutronContractmanagerFailures - responses: - '200': - description: A successful response. - schema: - type: object - properties: - failures: - type: array - items: - type: object - properties: - channel_id: - type: string - title: ChannelId - address: - type: string - title: Address of the failed contract - id: - type: string - format: uint64 - title: id of the failure under specific address - ack_id: - type: string - format: uint64 - title: ACK id to restore - ack_type: - type: string - title: Acknowledgement type - description: >- - Failure message contains information about ACK failures and - can be used to - - replay ACK in case of requirement. - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: address - in: query - required: false - type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -27692,70 +27148,227 @@ paths: type: boolean tags: - Query - /neutron/contractmanager/failures/{address}: + /ibc/core/client/v1/client_states/{client_id}: get: - summary: Queries a Failure by address. - operationId: NeutronContractmanagerAddressFailures + summary: ClientState queries an IBC light client. + operationId: IbcCoreClientV1ClientState responses: '200': description: A successful response. schema: type: object properties: - failures: - type: array - items: - type: object - properties: - channel_id: - type: string - title: ChannelId - address: - type: string - title: Address of the failed contract - id: - type: string - format: uint64 - title: id of the failure under specific address - ack_id: - type: string - format: uint64 - title: ACK id to restore - ack_type: - type: string - title: Acknowledgement type - description: >- - Failure message contains information about ACK failures and - can be used to + client_state: + title: client state associated with the request identifier + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - replay ACK in case of requirement. - pagination: + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - next_key: + revision_number: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + title: the height within the given revision description: >- - PageResponse is to be embedded in gRPC response messages where - the + Normally the RevisionHeight is incremented at each height + while keeping - corresponding request message has used PageRequest. + RevisionNumber the same. However some consensus algorithms may + choose to - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + description: >- + QueryClientStateResponse is the response type for the + Query/ClientState RPC + + method. Besides the client state, it includes a proof and the + height from + + which the proof was retrieved. default: description: An unexpected error response. schema: @@ -27773,127 +27386,199 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: address - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + one "/" character. The last segment of the URL's path + must represent - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /neutron/contractmanager/params: - get: - summary: Parameters queries the parameters of the module. - operationId: NeutronContractmanagerParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: client_id + description: client state unique identifier + in: path + required: true + type: string tags: - Query - /neutron/cron/params: + /ibc/core/client/v1/client_status/{client_id}: get: - summary: Queries the parameters of the module. - operationId: NeutronCronParams + summary: Status queries the status of an IBC client. + operationId: IbcCoreClientV1ClientStatus responses: '200': description: A successful response. schema: type: object properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - security_address: - type: string - title: Security address that can remove schedules - limit: - type: string - format: uint64 - title: Limit of schedules executed in one block + status: + type: string + description: >- + QueryClientStatusResponse is the response type for the + Query/ClientStatus RPC + + method. It returns the current status of the IBC client. default: description: An unexpected error response. schema: @@ -27911,236 +27596,442 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: client_id + description: client unique identifier + in: path + required: true + type: string tags: - Query - /neutron/cron/schedule: + /ibc/core/client/v1/consensus_states/{client_id}: get: - summary: Queries a list of Schedule items. - operationId: NeutronCronSchedules + summary: |- + ConsensusStates queries all the consensus state associated with a given + client. + operationId: IbcCoreClientV1ConsensusStates responses: '200': description: A successful response. schema: type: object properties: - schedules: + consensus_states: type: array items: type: object properties: - name: - type: string - title: Name of schedule - period: - type: string - format: uint64 - title: Period in blocks - msgs: - type: array - items: - type: object - properties: - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - title: >- - Msg is json encoded message to be passed to the - contract - title: Msgs that will be executed every period amount of time - last_execute_height: - type: string - format: uint64 - title: Last execution's block height - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + height: + title: consensus state height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each + height while keeping - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + RevisionNumber the same. However some consensus + algorithms may choose to - corresponding request message has used PageRequest. + reset the height in certain conditions e.g. hard forks, + state-machine - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + breaking changes In these cases, the RevisionNumber is + incremented so that - It is less efficient than using key. Only one of offset or key - should + height continues to be monitonically increasing even as + the RevisionHeight - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + gets reset + consensus_state: + title: consensus state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + protocol buffer message. This string must contain at + least - a count of the total number of items available for pagination in - UIs. + one "/" character. The last segment of the URL's + path must represent - count_total is only respected when offset is used. It is ignored - when key + the fully qualified name of the type (as in - is set. - in: query - required: false - type: boolean - tags: - - Query - /neutron/cron/schedule/{name}: - get: - summary: Queries a Schedule by name. - operationId: NeutronCronSchedule - responses: - '200': - description: A successful response. - schema: - type: object - properties: - schedule: + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + ConsensusStateWithHeight defines a consensus state with an + additional height + + field. + title: consensus states associated with the identifier + pagination: + title: pagination response type: object properties: - name: - type: string - title: Name of schedule - period: + next_key: type: string - format: uint64 - title: Period in blocks - msgs: - type: array - items: - type: object - properties: - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - title: >- - Msg is json encoded message to be passed to the - contract - title: Msgs that will be executed every period amount of time - last_execute_height: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string format: uint64 - title: Last execution's block height - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: name - in: path - required: true - type: string - tags: - - Query - /neutron/feeburner/params: - get: - summary: Parameters queries the parameters of the module. - operationId: NeutronFeeburnerParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - neutron_denom: - type: string title: >- - Defines Neutron denom, which will be burned during fee - processing, any + total is total number of results available if + PageRequest.count_total - other denom will be sent to Treasury - reserve_address: - type: string - title: Deprecated in v0.4.4. Is not used anymore - treasury_address: - type: string - title: Defines treasury address - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + title: |- + QueryConsensusStatesResponse is the response type for the + Query/ConsensusStates RPC method default: description: An unexpected error response. schema: @@ -28158,338 +28049,320 @@ paths: properties: '@type': type: string - additionalProperties: {} - tags: - - Query - /neutron/feeburner/total_burned_neutrons_amount: - get: - summary: TotalBurnedNeutronsAmount queries total amount of burned neutron fees. - operationId: NeutronFeeburnerTotalBurnedNeutronsAmount - responses: - '200': - description: A successful response. - schema: - type: object - properties: - total_burned_neutrons_amount: - type: object - properties: - coin: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + protocol buffer message. This string must contain at + least - NOTE: The amount field is an Int which implements the - custom method + one "/" character. The last segment of the URL's path + must represent - signatures required by gogoproto. - title: >- - TotalBurnedNeutronsAmount defines total amount of burned - neutron fees - description: |- - QueryTotalBurnedNeutronsAmountResponse is response type for the - Query/QueryTotalBurnedNeutronsAmount method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /neutron-org/neutron/feerefunder/info: - get: - operationId: NeutronFeerefunderFeeInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - fee_info: - type: object - properties: - payer: - type: string - packet_id: - type: object - properties: - channel_id: - type: string - port_id: - type: string - sequence: - type: string - format: uint64 - fee: - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - NOTE: The amount field is an Int which implements - the custom method + (e.g., leading "." is not accepted). - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + In practice, teams usually precompile into the binary + all types that they - NOTE: The amount field is an Int which implements - the custom method + expect it to use in the context of Any. However, for + URLs which use the - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - NOTE: The amount field is an Int which implements - the custom method - signatures required by gogoproto. - title: the packet timeout fee - title: >- - Fee defines the ICS29 receive, acknowledgement and timeout - fees - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} - parameters: - - name: channel_id - in: query - required: false - type: string - - name: port_id - in: query + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: client_id + description: client identifier + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query required: false type: string - - name: sequence + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. in: query required: false type: string format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /neutron-org/neutron/feerefunder/params: + /ibc/core/client/v1/consensus_states/{client_id}/heights: get: - summary: Parameters queries the parameters of the module. - operationId: NeutronFeerefunderParams + summary: >- + ConsensusStateHeights queries the height of every consensus states + associated with a given client. + operationId: IbcCoreClientV1ConsensusStateHeights responses: '200': description: A successful response. schema: type: object properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - min_fee: - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method + consensus_state_heights: + type: array + items: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + RevisionNumber the same. However some consensus algorithms + may choose to + reset the height in certain conditions e.g. hard forks, + state-machine - NOTE: The amount field is an Int which implements - the custom method + breaking changes In these cases, the RevisionNumber is + incremented so that - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + height continues to be monitonically increasing even as the + RevisionHeight + gets reset + title: >- + Height is a monotonically increasing data type - NOTE: The amount field is an Int which implements - the custom method + that can be compared against another Height for the purposes + of updating and - signatures required by gogoproto. - title: the packet timeout fee - title: >- - Fee defines the ICS29 receive, acknowledgement and timeout - fees - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /neutron/interchainqueries/params: - get: - summary: Parameters queries the parameters of the module. - operationId: NeutronInterchainqueriesParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. + freezing clients + title: consensus state heights + pagination: + title: pagination response type: object properties: - query_submit_timeout: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string format: uint64 title: >- - Defines amount of blocks required before query becomes - available for - - removal by anybody - query_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method + total is total number of results available if + PageRequest.count_total - signatures required by gogoproto. - description: Amount of coins deposited for the query. - tx_query_removal_limit: - type: string - format: uint64 - description: >- - Amount of tx hashes to be removed during a single - EndBlock. Can vary to + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - balance between network cleaning speed and EndBlock - duration. A zero value + corresponding request message has used PageRequest. - means no limit. - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + title: |- + QueryConsensusStateHeightsResponse is the response type for the + Query/ConsensusStateHeights RPC method default: description: An unexpected error response. schema: @@ -28675,545 +28548,534 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: client_id + description: client identifier + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /neutron/interchainqueries/query_result: + /ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}: get: - operationId: NeutronInterchainqueriesQueryResult + summary: >- + ConsensusState queries a consensus state associated with a client state + at + + a given height. + operationId: IbcCoreClientV1ConsensusState responses: '200': description: A successful response. schema: type: object properties: - result: + consensus_state: + title: >- + consensus state associated with the client identifier at the + given height type: object properties: - kv_results: - type: array - items: - type: object - properties: - storage_prefix: - type: string - title: is the substore name (acc, staking, etc.) - key: - type: string - format: byte - title: is the key in IAVL store - value: - type: string - format: byte - title: is the value in IAVL store - Proof: - title: >- - is the Merkle Proof which proves existence of - key-value pair in IAVL + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - storage - type: object - properties: - ops: - type: array - items: - type: object - properties: - type: - type: string - key: - type: string - format: byte - data: - type: string - format: byte - title: >- - ProofOp defines an operation used for - calculating Merkle root + protocol buffer message. This string must contain at least - The data could be arbitrary format, providing - nessecary data + one "/" character. The last segment of the URL's path must + represent - for example neighbouring node hash - block: - type: object - properties: - next_block_header: - title: >- - We need to know block X+1 to verify response of - transaction for block X + the fully qualified name of the type (as in - since LastResultsHash is root hash of all results from - the txs from the + `path/google.protobuf.Duration`). The name should be in a + canonical form - previous block - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + (e.g., leading "." is not accepted). - protocol buffer message. This string must contain - at least - one "/" character. The last segment of the URL's - path must represent + In practice, teams usually precompile into the binary all + types that they - the fully qualified name of the type (as in + expect it to use in the context of Any. However, for URLs + which use the - `path/google.protobuf.Duration`). The name should - be in a canonical form + scheme `http`, `https`, or no scheme, one can optionally + set up a type - (e.g., leading "." is not accepted). + server that maps type URLs to message definitions as + follows: - In practice, teams usually precompile into the - binary all types that they + * If no scheme is provided, `https` is assumed. - expect it to use in the context of Any. However, - for URLs which use the + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - scheme `http`, `https`, or no scheme, one can - optionally set up a type + Note: this functionality is not currently available in the + official - server that maps type URLs to message definitions - as follows: + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Schemes other than `http`, `https` (or the empty scheme) + might be - Note: this functionality is not currently - available in the official + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - protobuf release, and it is not used for type URLs - beginning with + URL that describes the type of the serialized message. - type.googleapis.com. + Protobuf library provides support to pack/unpack Any values in + the form - Schemes other than `http`, `https` (or the empty - scheme) might be + of utility functions or additional generated methods of the + Any type. - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - URL that describes the type of the serialized message. + Example 1: Pack and unpack a message in C++. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Protobuf library provides support to pack/unpack Any - values in the form + Example 2: Pack and unpack a message in Java. - of utility functions or additional generated methods - of the Any type. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + Example 3: Pack and unpack a message in Python. - Example 1: Pack and unpack a message in C++. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Example 4: Pack and unpack a message in Go - Example 2: Pack and unpack a message in Java. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + The pack methods provided by protobuf library will by default + use - Example 3: Pack and unpack a message in Python. + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + methods only use the fully qualified type name after the last + '/' - Example 4: Pack and unpack a message in Go + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + name "y.z". - The pack methods provided by protobuf library will by - default use - 'type.googleapis.com/full.type.name' as the type URL - and the unpack - methods only use the fully qualified type name after - the last '/' + JSON - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + ==== - name "y.z". + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an + additional field `@type` which contains the type URL. Example: - JSON + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - ==== + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - The JSON representation of an `Any` value uses the - regular + If the embedded message type is well-known and has a custom + JSON - representation of the deserialized, embedded message, - with an + representation, that representation will be embedded adding a + field - additional field `@type` which contains the type URL. - Example: + `value` which holds the custom JSON in addition to the `@type` - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - If the embedded message type is well-known and has a - custom JSON + RevisionNumber the same. However some consensus algorithms may + choose to - representation, that representation will be embedded - adding a field + reset the height in certain conditions e.g. hard forks, + state-machine - `value` which holds the custom JSON in addition to the - `@type` + breaking changes In these cases, the RevisionNumber is + incremented so that - field. Example (for message - [google.protobuf.Duration][]): + height continues to be monitonically increasing even as the + RevisionHeight - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - header: - title: >- - We need to know block X to verify inclusion of - transaction for block X - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + gets reset + title: >- + QueryConsensusStateResponse is the response type for the + Query/ConsensusState - protocol buffer message. This string must contain - at least + RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - one "/" character. The last segment of the URL's - path must represent + protocol buffer message. This string must contain at + least - the fully qualified name of the type (as in + one "/" character. The last segment of the URL's path + must represent - `path/google.protobuf.Duration`). The name should - be in a canonical form + the fully qualified name of the type (as in - (e.g., leading "." is not accepted). + `path/google.protobuf.Duration`). The name should be in + a canonical form + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the - binary all types that they - expect it to use in the context of Any. However, - for URLs which use the + In practice, teams usually precompile into the binary + all types that they - scheme `http`, `https`, or no scheme, one can - optionally set up a type + expect it to use in the context of Any. However, for + URLs which use the - server that maps type URLs to message definitions - as follows: + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * If no scheme is provided, `https` is assumed. - Note: this functionality is not currently - available in the official + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - protobuf release, and it is not used for type URLs - beginning with + Note: this functionality is not currently available in + the official - type.googleapis.com. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Schemes other than `http`, `https` (or the empty - scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + Schemes other than `http`, `https` (or the empty scheme) + might be - URL that describes the type of the serialized message. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any - values in the form - of utility functions or additional generated methods - of the Any type. + Protobuf library provides support to pack/unpack Any values + in the form + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Example 1: Pack and unpack a message in C++. - Example 2: Pack and unpack a message in Java. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Example 2: Pack and unpack a message in Java. - Example 3: Pack and unpack a message in Python. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Example 3: Pack and unpack a message in Python. - Example 4: Pack and unpack a message in Go + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 4: Pack and unpack a message in Go - The pack methods provided by protobuf library will by - default use + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - 'type.googleapis.com/full.type.name' as the type URL - and the unpack + The pack methods provided by protobuf library will by + default use - methods only use the fully qualified type name after - the last '/' + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + methods only use the fully qualified type name after the + last '/' - name "y.z". + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + name "y.z". - JSON - ==== + JSON - The JSON representation of an `Any` value uses the - regular + ==== - representation of the deserialized, embedded message, - with an + The JSON representation of an `Any` value uses the regular - additional field `@type` which contains the type URL. - Example: + representation of the deserialized, embedded message, with + an - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + additional field `@type` which contains the type URL. + Example: - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - If the embedded message type is well-known and has a - custom JSON + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - representation, that representation will be embedded - adding a field + If the embedded message type is well-known and has a custom + JSON - `value` which holds the custom JSON in addition to the - `@type` + representation, that representation will be embedded adding + a field - field. Example (for message - [google.protobuf.Duration][]): + `value` which holds the custom JSON in addition to the + `@type` - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tx: - type: object - properties: - response: - type: object - properties: - code: - type: integer - format: int64 - data: - type: string - format: byte - log: - type: string - title: nondeterministic - info: - type: string - title: nondeterministic - gas_wanted: - type: string - format: int64 - gas_used: - type: string - format: int64 - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - format: byte - value: - type: string - format: byte - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value - pair, associated with an event. - description: >- - Event allows application developers to - attach additional information to - - ResponseBeginBlock, ResponseEndBlock, - ResponseCheckTx and ResponseDeliverTx. + field. Example (for message [google.protobuf.Duration][]): - Later, transactions may be queried using - these events. - title: nondeterministic - codespace: - type: string - delivery_proof: - title: >- - is the Merkle Proof which proves existence of - response in block with height + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: client_id + description: client identifier + in: path + required: true + type: string + - name: revision_number + description: consensus state revision number + in: path + required: true + type: string + format: uint64 + - name: revision_height + description: consensus state revision height + in: path + required: true + type: string + format: uint64 + - name: latest_height + description: >- + latest_height overrrides the height field and queries the latest + stored - next_block_header.Height - type: object - properties: - total: - type: string - format: int64 - index: - type: string - format: int64 - leaf_hash: - type: string - format: byte - aunts: - type: array - items: - type: string - format: byte - inclusion_proof: - title: >- - is the Merkle Proof which proves existence of data - in block with height + ConsensusState + in: query + required: false + type: boolean + tags: + - Query + /ibc/core/client/v1/params: + get: + summary: ClientParams queries all parameters of the ibc client submodule. + operationId: IbcCoreClientV1ClientParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + allowed_clients: + type: array + items: + type: string + description: >- + allowed_clients defines the list of allowed client state + types. + description: >- + QueryClientParamsResponse is the response type for the + Query/ClientParams RPC - header.Height - type: object - properties: - total: - type: string - format: int64 - index: - type: string - format: int64 - leaf_hash: - type: string - format: byte - aunts: - type: array - items: - type: string - format: byte - data: - type: string - format: byte - title: is body of the transaction - height: - type: string - format: uint64 - revision: - type: string - format: uint64 - allow_kv_callbacks: - type: boolean + method. default: description: An unexpected error response. schema: @@ -29399,146 +29261,191 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: query_id - in: query - required: false - type: string - format: uint64 tags: - Query - /neutron/interchainqueries/registered_queries: + /ibc/core/client/v1/upgraded_client_states: get: - operationId: NeutronInterchainqueriesRegisteredQueries + summary: UpgradedClientState queries an Upgraded IBC light client. + operationId: IbcCoreClientV1UpgradedClientState responses: '200': description: A successful response. schema: type: object properties: - registered_queries: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: The unique id of the registered query. - owner: - type: string - description: The address that registered the query. - query_type: - type: string - title: 'The query type identifier: `kv` or `tx` now' - keys: - type: array - items: - type: object - properties: - path: - type: string - title: >- - Path (storage prefix) to the storage where you - want to read value by key + upgraded_client_state: + title: client state associated with the request identifier + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - (usually name of cosmos-sdk module: 'staking', - 'bank', etc.) - key: - type: string - format: byte - title: Key you want to read from the storage - title: >- - The KV-storage keys for which we want to get values from - remote chain - transactions_filter: - type: string - title: The filter for transaction search ICQ - connection_id: - type: string - title: >- - The IBC connection ID for getting ConsensusState to - verify proofs - update_period: - type: string - format: uint64 - description: >- - Parameter that defines how often the query must be - updated. - last_submitted_result_local_height: - type: string - format: uint64 - description: >- - The local chain last block height when the query result - was updated. - last_submitted_result_remote_height: - description: >- - The remote chain last block height when the query result - was updated. - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type + protocol buffer message. This string must contain at least - that can be compared against another Height for the - purposes of updating and + one "/" character. The last segment of the URL's path must + represent - freezing clients - deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in a + canonical form - NOTE: The amount field is an Int which implements the - custom method + (e.g., leading "." is not accepted). - signatures required by gogoproto. - description: Amount of coins deposited for the query. - submit_timeout: - type: string - format: uint64 - description: >- - Timeout before query becomes available for everybody to - remove. - registered_at_height: - type: string - format: uint64 - description: The local chain height when the query was registered. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - was set, its value is undefined otherwise + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: |- + QueryUpgradedClientStateResponse is the response type for the + Query/UpgradedClientState RPC method. default: description: An unexpected error response. schema: @@ -29724,177 +29631,191 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: owners - in: query - required: false - type: array - items: - type: string - collectionFormat: multi - - name: connection_id - in: query - required: false - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean tags: - Query - /neutron/interchainqueries/registered_query: + /ibc/core/client/v1/upgraded_consensus_states: get: - operationId: NeutronInterchainqueriesRegisteredQuery + summary: UpgradedConsensusState queries an Upgraded IBC consensus state. + operationId: IbcCoreClientV1UpgradedConsensusState responses: '200': description: A successful response. schema: type: object properties: - registered_query: + upgraded_consensus_state: + title: Consensus state associated with the request identifier type: object properties: - id: - type: string - format: uint64 - description: The unique id of the registered query. - owner: - type: string - description: The address that registered the query. - query_type: - type: string - title: 'The query type identifier: `kv` or `tx` now' - keys: - type: array - items: - type: object - properties: - path: - type: string - title: >- - Path (storage prefix) to the storage where you want - to read value by key - - (usually name of cosmos-sdk module: 'staking', - 'bank', etc.) - key: - type: string - format: byte - title: Key you want to read from the storage - title: >- - The KV-storage keys for which we want to get values from - remote chain - transactions_filter: - type: string - title: The filter for transaction search ICQ - connection_id: - type: string - title: >- - The IBC connection ID for getting ConsensusState to verify - proofs - update_period: - type: string - format: uint64 - description: >- - Parameter that defines how often the query must be - updated. - last_submitted_result_local_height: + '@type': type: string - format: uint64 - description: >- - The local chain last block height when the query result - was updated. - last_submitted_result_remote_height: description: >- - The remote chain last block height when the query result - was updated. - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type + A URL/resource name that uniquely identifies the type of + the serialized - that can be compared against another Height for the - purposes of updating and + protocol buffer message. This string must contain at least - freezing clients - deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + one "/" character. The last segment of the URL's path must + represent + the fully qualified name of the type (as in - NOTE: The amount field is an Int which implements the - custom method + `path/google.protobuf.Duration`). The name should be in a + canonical form - signatures required by gogoproto. - description: Amount of coins deposited for the query. - submit_timeout: - type: string - format: uint64 - description: >- - Timeout before query becomes available for everybody to - remove. - registered_at_height: - type: string - format: uint64 - description: The local chain height when the query was registered. + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: |- + QueryUpgradedConsensusStateResponse is the response type for the + Query/UpgradedConsensusState RPC method. default: description: An unexpected error response. schema: @@ -30080,26 +30001,61 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: query_id - in: query - required: false - type: string - format: uint64 tags: - Query - /neutron/interchainqueries/remote_height: + /ibc/core/connection/v1/client_connections/{client_id}: get: - operationId: NeutronInterchainqueriesLastRemoteHeight + summary: |- + ClientConnections queries the connection paths associated with a client + state. + operationId: IbcCoreConnectionV1ClientConnections responses: '200': description: A successful response. schema: type: object properties: - height: + connection_paths: + type: array + items: + type: string + description: slice of all the connection paths associated with a client. + proof: type: string - format: uint64 + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was generated + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryClientConnectionsResponse is the response type for the + Query/ClientConnections RPC method default: description: An unexpected error response. schema: @@ -30286,28 +30242,171 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - in: query - required: false + - name: client_id + description: client identifier associated with a connection + in: path + required: true type: string tags: - Query - /ibc/apps/transfer/v1/denom_hashes/{trace}: + /ibc/core/connection/v1/connections: get: - summary: DenomHash queries a denomination hash information. - operationId: NeutronTransferDenomHash + summary: Connections queries all the IBC connections of a chain. + operationId: IbcCoreConnectionV1Connections responses: '200': description: A successful response. schema: type: object properties: - hash: - type: string - description: hash (in hex format) of the denomination trace information. + connections: + type: array + items: + type: object + properties: + id: + type: string + description: connection identifier. + client_id: + type: string + description: client associated with this connection. + versions: + type: array + items: + type: object + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: >- + list of features compatible with the specified + identifier + description: >- + Version defines the versioning scheme used to + negotiate the IBC verison in + + the connection handshake. + title: >- + IBC version which can be utilised to determine encodings + or protocols for + + channels or packets utilising this connection + state: + description: current state of the connection end. + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + default: STATE_UNINITIALIZED_UNSPECIFIED + counterparty: + description: counterparty chain associated with this connection. + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain + associated with a given + + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty + chain associated with a + + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. + + The constructed key from the Path and the key will + be append(Path.KeyPath, + + append(Path.KeyPrefix, key...)) + delay_period: + type: string + format: uint64 + description: delay period associated with this connection. + description: >- + IdentifiedConnection defines a connection with additional + connection + + identifier field. + description: list of stored connections of the chain. + pagination: + title: pagination response + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset description: >- - QueryDenomHashResponse is the response type for the - Query/DenomHash RPC + QueryConnectionsResponse is the response type for the + Query/Connections RPC method. default: @@ -30496,67 +30595,208 @@ paths: "value": "1.212s" } parameters: - - name: trace - description: The denomination trace ([port_id]/[channel_id])+/[denom] - in: path - required: true + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false type: string - tags: - - Query - /ibc/apps/transfer/v1/denom_traces: - get: - summary: DenomTraces queries all denomination traces. - operationId: NeutronTransferDenomTraces - responses: - '200': - description: A successful response. - schema: - type: object - properties: - denom_traces: - type: array - items: - type: object - properties: - path: - type: string - description: >- - path defines the chain of port/channel identifiers used - for tracing the + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - source of the fungible token. - base_denom: - type: string - description: base denomination of the relayed fungible token. - description: >- - DenomTrace contains the base denomination for ICS20 fungible - tokens and the + It is less efficient than using key. Only one of offset or key + should - source tracing information path. - description: denom_traces returns all denominations trace information. - pagination: - description: pagination defines the pagination in the response. + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /ibc/core/connection/v1/connections/{connection_id}: + get: + summary: Connection queries an IBC connection end. + operationId: IbcCoreConnectionV1Connection + responses: + '200': + description: A successful response. + schema: + type: object + properties: + connection: + title: connection associated with the request identifier type: object properties: - next_key: + client_id: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + description: client associated with this connection. + versions: + type: array + items: + type: object + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: >- + list of features compatible with the specified + identifier + description: >- + Version defines the versioning scheme used to negotiate + the IBC verison in + + the connection handshake. + description: >- + IBC version which can be utilised to determine encodings + or protocols for + + channels or packets utilising this connection. + state: + description: current state of the connection end. + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + default: STATE_UNINITIALIZED_UNSPECIFIED + counterparty: + description: counterparty chain associated with this connection. + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain + associated with a given + + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty + chain associated with a + + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. + + The constructed key from the Path and the key will be + append(Path.KeyPath, + + append(Path.KeyPrefix, key...)) + delay_period: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + delay period that must pass before a consensus state can + be used for - was set, its value is undefined otherwise + packet-verification NOTE: delay period logic is only + implemented by some + + clients. + description: >- + ConnectionEnd defines a stateful object on a chain connected + to another + + separate one. + + NOTE: there must only be 2 defined ConnectionEnds to establish + + a connection between two chains. + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset description: >- - QueryConnectionsResponse is the response type for the - Query/DenomTraces RPC + QueryConnectionResponse is the response type for the + Query/Connection RPC - method. + method. Besides the connection end, it includes a proof and the + height from + + which the proof was retrieved. default: description: An unexpected error response. schema: @@ -30743,95 +30983,247 @@ paths: "value": "1.212s" } parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false + - name: connection_id + description: connection unique identifier + in: path + required: true type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /ibc/apps/transfer/v1/denom_traces/{hash}: + /ibc/core/connection/v1/connections/{connection_id}/client_state: get: - summary: DenomTrace queries a denomination trace information. - operationId: NeutronTransferDenomTrace + summary: |- + ConnectionClientState queries the client state associated with the + connection. + operationId: IbcCoreConnectionV1ConnectionClientState responses: '200': description: A successful response. schema: type: object properties: - denom_trace: - description: >- - denom_trace returns the requested denomination trace - information. + identified_client_state: + title: client state associated with the channel type: object properties: - path: + client_id: type: string + title: client identifier + client_state: + title: client state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} description: >- - path defines the chain of port/channel identifiers used - for tracing the + `Any` contains an arbitrary serialized protocol buffer + message along with a - source of the fungible token. - base_denom: + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods of + the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and + the unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + IdentifiedClientState defines a client state with an + additional client + + identifier field. + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: type: string - description: base denomination of the relayed fungible token. - description: >- - QueryDenomTraceResponse is the response type for the - Query/DenomTrace RPC + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - method. + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryConnectionClientStateResponse is the response type for the + Query/ConnectionClientState RPC method default: description: An unexpected error response. schema: @@ -31018,46 +31410,234 @@ paths: "value": "1.212s" } parameters: - - name: hash - description: >- - hash (in hex format) or denom (full denom with ibc prefix) of the - denomination trace information. + - name: connection_id + description: connection identifier in: path required: true type: string tags: - Query - /ibc/apps/transfer/v1/params: + /ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}: get: - summary: Params queries all parameters of the ibc-transfer module. - operationId: NeutronTransferParams + summary: |- + ConnectionConsensusState queries the consensus state associated with the + connection. + operationId: IbcCoreConnectionV1ConnectionConsensusState responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. + consensus_state: + title: consensus state associated with the channel type: object properties: - send_enabled: - type: boolean + '@type': + type: string description: >- - send_enabled enables or disables all cross-chain token - transfers from this + A URL/resource name that uniquely identifies the type of + the serialized - chain. - receive_enabled: - type: boolean - description: >- - receive_enabled enables or disables all cross-chain token - transfers to this + protocol buffer message. This string must contain at least - chain. - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + client_id: + type: string + title: client ID associated with the consensus state + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryConnectionConsensusStateResponse is the response type for the + Query/ConnectionConsensusState RPC method default: description: An unexpected error response. schema: @@ -31243,102 +31823,28 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - tags: - - Query - /osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/authority_metadata: - get: - operationId: OsmosisTokenfactoryV1Beta1DenomAuthorityMetadata - responses: - '200': - description: A successful response. - schema: - type: object - properties: - authority_metadata: - type: object - properties: - Admin: - type: string - title: Can be empty for no admin, or a valid osmosis address - description: >- - DenomAuthorityMetadata specifies metadata for addresses that - have specific - - capabilities over a token factory denom. Right now there is - only one Admin - - permission, but is planned to be extended to the future. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} parameters: - - name: creator + - name: connection_id + description: connection identifier in: path required: true type: string - - name: subdenom + - name: revision_number in: path required: true type: string - tags: - - Query - /osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}: - get: - operationId: OsmosisTokenfactoryV1Beta1DenomsFromCreator - responses: - '200': - description: A successful response. - schema: - type: object - properties: - denoms: - type: array - items: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: creator + format: uint64 + - name: revision_height in: path required: true type: string + format: uint64 tags: - Query - /osmosis/tokenfactory/v1beta1/params: + /ibc/core/connection/v1/params: get: - summary: Params returns the total set of minting parameters. - operationId: OsmosisTokenfactoryV1Beta1Params + summary: ConnectionParams queries all parameters of the ibc connection submodule. + operationId: IbcCoreConnectionV1ConnectionParams responses: '200': description: A successful response. @@ -31349,68 +31855,21 @@ paths: description: params defines the parameters of the module. type: object properties: - denom_creation_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - + max_expected_time_per_block: + type: string + format: uint64 + description: >- + maximum expected time per block (in nanoseconds), used to + enforce block delay. This parameter should reflect the - NOTE: The amount field is an Int which implements the - custom method + largest amount of time that the chain might reasonably + take to produce the next block under normal operating - signatures required by gogoproto. - fee_collector_address: - type: string - title: Params holds parameters for the tokenfactory module - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /ibc/apps/router/v1/params: - get: - summary: Params queries all parameters of the router module. - operationId: RouterV1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - fee_percentage: - type: string + conditions. A safe choice is 3-5x the expected time per + block. description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. + QueryConnectionParamsResponse is the response type for the + Query/ConnectionParams RPC method. default: description: An unexpected error response. schema: @@ -31428,2922 +31887,12946 @@ paths: properties: '@type': type: string - additionalProperties: {} - tags: - - Query -definitions: - cosmos.adminmodule.adminmodule.MsgAddAdminResponse: - type: object - cosmos.adminmodule.adminmodule.MsgDeleteAdminResponse: - type: object - cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. - cosmos.adminmodule.adminmodule.QueryAdminsResponse: - type: object - properties: - admins: - type: array - items: - type: string - cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse: - type: object - properties: - proposals: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - content: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all - types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for URLs - which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally set - up a type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs beginning - with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in - the form + Protobuf library provides support to pack/unpack Any values + in the form - of utility functions or additional generated methods of the Any - type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - status: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - final_tally_result: - type: object - properties: - 'yes': - type: string - abstain: - type: string - 'no': - type: string - no_with_veto: - type: string - description: TallyResult defines a standard tally for a governance proposal. - submit_time: - type: string - format: date-time - deposit_end_time: - type: string - format: date-time - total_deposit: - type: array - items: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/consumer/next-fee-distribution: + get: + summary: >- + ConsumerGenesis queries the genesis state needed to start a consumer + chain + + whose proposal has been accepted + operationId: InterchainSecurityCcvConsumerV1QueryNextFeeDistribution + responses: + '200': + description: A successful response. + schema: + type: object + properties: + data: type: object properties: - denom: + currentHeight: type: string - amount: + format: int64 + title: current block height at the time of querying + lastHeight: type: string - description: >- - Coin defines a token with a denomination and an amount. + format: int64 + title: block height at which last distribution took place + nextHeight: + type: string + format: int64 + title: block height at which next distribution will take place + distribution_fraction: + type: string + title: ratio between consumer and provider fee distribution + total: + type: string + title: total accruead fees at the time of querying + toProvider: + type: string + title: amount distibuted to provider chain + toConsumer: + type: string + title: amount distributed (kept) by consumer chain + title: >- + NextFeeDistributionEstimate holds information about next fee + distribution + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + protocol buffer message. This string must contain at + least - NOTE: The amount field is an Int which implements the custom - method + one "/" character. The last segment of the URL's path + must represent - signatures required by gogoproto. - voting_start_time: - type: string - format: date-time - voting_end_time: - type: string - format: date-time - description: Proposal defines the core field members of a governance proposal. - cosmos.base.v1beta1.Coin: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + the fully qualified name of the type (as in - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - cosmos.gov.v1beta1.Proposal: - type: object - properties: - proposal_id: - type: string - format: uint64 - content: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + `path/google.protobuf.Duration`). The name should be in + a canonical form - protocol buffer message. This string must contain at least + (e.g., leading "." is not accepted). - one "/" character. The last segment of the URL's path must - represent - the fully qualified name of the type (as in + In practice, teams usually precompile into the binary + all types that they - `path/google.protobuf.Duration`). The name should be in a - canonical form + expect it to use in the context of Any. However, for + URLs which use the - (e.g., leading "." is not accepted). + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - In practice, teams usually precompile into the binary all types - that they - expect it to use in the context of Any. However, for URLs which - use the + * If no scheme is provided, `https` is assumed. - scheme `http`, `https`, or no scheme, one can optionally set up a - type + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - server that maps type URLs to message definitions as follows: + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - * If no scheme is provided, `https` is assumed. + type.googleapis.com. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official + Schemes other than `http`, `https` (or the empty scheme) + might be - protobuf release, and it is not used for type URLs beginning with + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - type.googleapis.com. + URL that describes the type of the serialized message. - Schemes other than `http`, `https` (or the empty scheme) might be + Protobuf library provides support to pack/unpack Any values + in the form - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + of utility functions or additional generated methods of the + Any type. - URL that describes the type of the serialized message. + Example 1: Pack and unpack a message in C++. - Protobuf library provides support to pack/unpack Any values in the - form + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - of utility functions or additional generated methods of the Any type. + Example 2: Pack and unpack a message in Java. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 1: Pack and unpack a message in C++. + Example 3: Pack and unpack a message in Python. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 2: Pack and unpack a message in Java. + Example 4: Pack and unpack a message in Go - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Example 3: Pack and unpack a message in Python. + The pack methods provided by protobuf library will by + default use - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Example 4: Pack and unpack a message in Go + methods only use the fully qualified type name after the + last '/' - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - The pack methods provided by protobuf library will by default use + name "y.z". - 'type.googleapis.com/full.type.name' as the type URL and the unpack - methods only use the fully qualified type name after the last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type + JSON - name "y.z". + ==== + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with + an - JSON + additional field `@type` which contains the type URL. + Example: - ==== + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - The JSON representation of an `Any` value uses the regular + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - representation of the deserialized, embedded message, with an + If the embedded message type is well-known and has a custom + JSON - additional field `@type` which contains the type URL. Example: + representation, that representation will be embedded adding + a field - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + `value` which holds the custom JSON in addition to the + `@type` - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + field. Example (for message [google.protobuf.Duration][]): - If the embedded message type is well-known and has a custom JSON + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/consumer/params: + get: + summary: QueryParams queries the ccv/consumer module parameters. + operationId: InterchainSecurityCcvConsumerV1QueryParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + enabled: + type: boolean + title: >- + TODO: Remove enabled flag and find a better way to setup + integration tests - representation, that representation will be embedded adding a field + See: + https://github.com/cosmos/interchain-security/issues/339 + blocks_per_distribution_transmission: + type: string + format: int64 + description: >- + ///////////////////// - `value` which holds the custom JSON in addition to the `@type` + Distribution Params - field. Example (for message [google.protobuf.Duration][]): + Number of blocks between ibc-token-transfers from the + consumer chain to - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - status: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - final_tally_result: - type: object - properties: - 'yes': - type: string - abstain: - type: string - 'no': - type: string - no_with_veto: - type: string - description: TallyResult defines a standard tally for a governance proposal. - submit_time: - type: string - format: date-time - deposit_end_time: - type: string - format: date-time - total_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + the provider chain. Note that at this transmission event a + fraction of - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - voting_start_time: - type: string - format: date-time - voting_end_time: - type: string - format: date-time - description: Proposal defines the core field members of a governance proposal. - cosmos.gov.v1beta1.ProposalStatus: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. + the accumulated tokens are divided and sent consumer + redistribution - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - cosmos.gov.v1beta1.TallyResult: - type: object - properties: - 'yes': - type: string - abstain: - type: string - 'no': - type: string - no_with_veto: - type: string - description: TallyResult defines a standard tally for a governance proposal. - google.protobuf.Any: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + address. + distribution_transmission_channel: + type: string + description: >- + Channel, and provider-chain receiving address to send + distribution token - protocol buffer message. This string must contain at least + transfers over. These parameters is auto-set during the + consumer <-> - one "/" character. The last segment of the URL's path must represent + provider handshake procedure. + provider_fee_pool_addr_str: + type: string + ccv_timeout_period: + type: string + title: >- + Sent CCV related IBC packets will timeout after this + duration + transfer_timeout_period: + type: string + title: >- + Sent transfer related IBC packets will timeout after this + duration + consumer_redistribution_fraction: + type: string + description: >- + The fraction of tokens allocated to the consumer + redistribution address - the fully qualified name of the type (as in + during distribution events. The fraction is a string + representing a - `path/google.protobuf.Duration`). The name should be in a canonical - form + decimal number. For example "0.75" would represent 75%. + historical_entries: + type: string + format: int64 + description: >- + The number of historical info entries to persist in store. - (e.g., leading "." is not accepted). + This param is a part of the cosmos sdk staking module. In + the case of + a ccv enabled consumer chain, the ccv module acts as the + staking module. + unbonding_period: + type: string + description: >- + Unbonding period for the consumer, - In practice, teams usually precompile into the binary all types that - they + which should be smaller than that of the provider in + general. + soft_opt_out_threshold: + type: string + title: >- + The threshold for the percentage of validators at the + bottom of the set who - expect it to use in the context of Any. However, for URLs which use - the + can opt out of running the consumer chain without being + punished. For example, a - scheme `http`, `https`, or no scheme, one can optionally set up a type + value of 0.05 means that the validators in the bottom 5% + of the set can opt out + title: Params defines the parameters for CCV consumer module + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - server that maps type URLs to message definitions as follows: + protocol buffer message. This string must contain at + least + one "/" character. The last segment of the URL's path + must represent - * If no scheme is provided, `https` is assumed. + the fully qualified name of the type (as in - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + `path/google.protobuf.Duration`). The name should be in + a canonical form - Note: this functionality is not currently available in the official + (e.g., leading "." is not accepted). - protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. + In practice, teams usually precompile into the binary + all types that they + expect it to use in the context of Any. However, for + URLs which use the - Schemes other than `http`, `https` (or the empty scheme) might be + scheme `http`, `https`, or no scheme, one can optionally + set up a type - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along with - a + server that maps type URLs to message definitions as + follows: - URL that describes the type of the serialized message. + * If no scheme is provided, `https` is assumed. - Protobuf library provides support to pack/unpack Any values in the form + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - of utility functions or additional generated methods of the Any type. + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - Example 1: Pack and unpack a message in C++. + type.googleapis.com. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Schemes other than `http`, `https` (or the empty scheme) + might be - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Example 3: Pack and unpack a message in Python. + URL that describes the type of the serialized message. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Protobuf library provides support to pack/unpack Any values + in the form - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + of utility functions or additional generated methods of the + Any type. - The pack methods provided by protobuf library will by default use - 'type.googleapis.com/full.type.name' as the type URL and the unpack + Example 1: Pack and unpack a message in C++. - methods only use the fully qualified type name after the last '/' + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - in the type URL, for example "foo.bar.com/x/y.z" will yield type + Example 2: Pack and unpack a message in Java. - name "y.z". + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - JSON + Example 4: Pack and unpack a message in Go - ==== + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The JSON representation of an `Any` value uses the regular + The pack methods provided by protobuf library will by + default use - representation of the deserialized, embedded message, with an + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - additional field `@type` which contains the type URL. Example: + methods only use the fully qualified type name after the + last '/' - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + name "y.z". - If the embedded message type is well-known and has a custom JSON - representation, that representation will be embedded adding a field - `value` which holds the custom JSON in addition to the `@type` + JSON - field. Example (for message [google.protobuf.Duration][]): + ==== - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - google.rpc.Status: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + The JSON representation of an `Any` value uses the regular - protocol buffer message. This string must contain at least + representation of the deserialized, embedded message, with + an - one "/" character. The last segment of the URL's path must - represent + additional field `@type` which contains the type URL. + Example: - the fully qualified name of the type (as in + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - `path/google.protobuf.Duration`). The name should be in a - canonical form + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - (e.g., leading "." is not accepted). + If the embedded message type is well-known and has a custom + JSON + representation, that representation will be embedded adding + a field - In practice, teams usually precompile into the binary all types - that they + `value` which holds the custom JSON in addition to the + `@type` - expect it to use in the context of Any. However, for URLs which - use the + field. Example (for message [google.protobuf.Duration][]): - scheme `http`, `https`, or no scheme, one can optionally set up - a type + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/consumer_chain_start_proposals: + get: + summary: QueryConsumerChainStarts queries consumer chain start proposals. + operationId: InterchainSecurityCcvProviderV1QueryConsumerChainStarts + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: object + properties: + pending: + type: array + items: + type: object + properties: + title: + type: string + title: the title of the proposal + description: + type: string + title: the description of the proposal + chain_id: + type: string + description: >- + the proposed chain-id of the new consumer chain, + must be different from all other consumer chain ids + of the executing - server that maps type URLs to message definitions as follows: + provider chain. + initial_height: + description: >- + the proposed initial height of new consumer chain. + For a completely new chain, this will be {0,1}. + However, it may be different if this is a chain that + is converting to a consumer chain. + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + title: >- + Height is a monotonically increasing data type - * If no scheme is provided, `https` is assumed. + that can be compared against another Height for the + purposes of updating and - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + freezing clients + genesis_hash: + type: string + format: byte + description: >- + The hash of the consumer chain genesis state without + the consumer CCV module genesis params. - Note: this functionality is not currently available in the - official + It is used for off-chain confirmation of + genesis.json validity by validators and other + parties. + binary_hash: + type: string + format: byte + description: >- + The hash of the consumer chain binary that should be + run by validators on chain initialization. - protobuf release, and it is not used for type URLs beginning - with + It is used for off-chain confirmation of binary + validity by validators and other parties. + spawn_time: + type: string + format: date-time + description: >- + spawn time is the time on the provider chain at + which the consumer chain genesis is finalized and + all validators - type.googleapis.com. + will be responsible for starting their consumer + chain validator node. + unbonding_period: + type: string + description: >- + Unbonding period for the consumer, + which should be smaller than that of the provider in + general. + ccv_timeout_period: + type: string + title: >- + Sent CCV related IBC packets will timeout after this + duration + transfer_timeout_period: + type: string + title: >- + Sent transfer related IBC packets will timeout after + this duration + consumer_redistribution_fraction: + type: string + description: >- + The fraction of tokens allocated to the consumer + redistribution address - Schemes other than `http`, `https` (or the empty scheme) might - be + during distribution events. The fraction is a string + representing a - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + decimal number. For example "0.75" would represent + 75%. + blocks_per_distribution_transmission: + type: string + format: int64 + description: >- + BlocksPerDistributionTransmission is the number of + blocks between ibc-token-transfers from the consumer + chain to the provider chain. - URL that describes the type of the serialized message. + On sending transmission event, + `consumer_redistribution_fraction` of the + accumulated tokens are sent to the consumer + redistribution address. + historical_entries: + type: string + format: int64 + description: >- + The number of historical info entries to persist in + store. + This param is a part of the cosmos sdk staking + module. In the case of - Protobuf library provides support to pack/unpack Any values in the - form + a ccv enabled consumer chain, the ccv module acts as + the staking module. + description: >- + ConsumerAdditionProposal is a governance proposal on the + provider chain to spawn a new consumer chain. - of utility functions or additional generated methods of the Any - type. + If it passes, then all validators on the provider chain + are expected to validate the consumer chain at spawn + time + or get slashed. It is recommended that spawn time occurs + after the proposal end time. + title: proposals waiting for spawn_time to pass + description: >- + ConsumerAdditionProposals holds pending governance proposals + on the provider chain to spawn a new chain. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - Example 1: Pack and unpack a message in C++. + protocol buffer message. This string must contain at + least - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + one "/" character. The last segment of the URL's path + must represent - Example 2: Pack and unpack a message in Java. + the fully qualified name of the type (as in - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + `path/google.protobuf.Duration`). The name should be in + a canonical form - Example 3: Pack and unpack a message in Python. + (e.g., leading "." is not accepted). - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + In practice, teams usually precompile into the binary + all types that they - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + expect it to use in the context of Any. However, for + URLs which use the - The pack methods provided by protobuf library will by default use + scheme `http`, `https`, or no scheme, one can optionally + set up a type - 'type.googleapis.com/full.type.name' as the type URL and the unpack + server that maps type URLs to message definitions as + follows: - methods only use the fully qualified type name after the last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type + * If no scheme is provided, `https` is assumed. - name "y.z". + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - JSON + type.googleapis.com. - ==== - The JSON representation of an `Any` value uses the regular + Schemes other than `http`, `https` (or the empty scheme) + might be - representation of the deserialized, embedded message, with an + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - additional field `@type` which contains the type URL. Example: + URL that describes the type of the serialized message. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Protobuf library provides support to pack/unpack Any values + in the form - If the embedded message type is well-known and has a custom JSON + of utility functions or additional generated methods of the + Any type. - representation, that representation will be embedded adding a field - `value` which holds the custom JSON in addition to the `@type` + Example 1: Pack and unpack a message in C++. - field. Example (for message [google.protobuf.Duration][]): + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - cosmos.auth.v1beta1.Params: - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 - description: Params defines the parameters for the auth module. - cosmos.auth.v1beta1.QueryAccountResponse: - type: object - properties: - account: - description: account defines the account of the corresponding address. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + Example 2: Pack and unpack a message in Java. - protocol buffer message. This string must contain at least + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - one "/" character. The last segment of the URL's path must - represent + Example 3: Pack and unpack a message in Python. - the fully qualified name of the type (as in + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - `path/google.protobuf.Duration`). The name should be in a - canonical form + Example 4: Pack and unpack a message in Go - (e.g., leading "." is not accepted). + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by + default use - In practice, teams usually precompile into the binary all types - that they + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - expect it to use in the context of Any. However, for URLs which - use the + methods only use the fully qualified type name after the + last '/' - scheme `http`, `https`, or no scheme, one can optionally set up a - type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - server that maps type URLs to message definitions as follows: + name "y.z". - * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + JSON - Note: this functionality is not currently available in the - official + ==== - protobuf release, and it is not used for type URLs beginning with + The JSON representation of an `Any` value uses the regular - type.googleapis.com. + representation of the deserialized, embedded message, with + an + additional field `@type` which contains the type URL. + Example: - Schemes other than `http`, `https` (or the empty scheme) might be + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - QueryAccountResponse is the response type for the Query/Account RPC - method. - cosmos.auth.v1beta1.QueryAccountsResponse: - type: object - properties: - accounts: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - protocol buffer message. This string must contain at least + If the embedded message type is well-known and has a custom + JSON - one "/" character. The last segment of the URL's path must - represent + representation, that representation will be embedded adding + a field - the fully qualified name of the type (as in + `value` which holds the custom JSON in addition to the + `@type` - `path/google.protobuf.Duration`). The name should be in a - canonical form + field. Example (for message [google.protobuf.Duration][]): - (e.g., leading "." is not accepted). + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/consumer_chain_stop_proposals: + get: + summary: QueryConsumerChainStops queries consumer chain stop proposals. + operationId: InterchainSecurityCcvProviderV1QueryConsumerChainStops + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: object + properties: + pending: + type: array + items: + type: object + properties: + title: + type: string + title: the title of the proposal + description: + type: string + title: the description of the proposal + chain_id: + type: string + title: the chain-id of the consumer chain to be stopped + stop_time: + type: string + format: date-time + title: >- + the time on the provider chain at which all + validators are responsible to stop their consumer + chain validator node + description: >- + ConsumerRemovalProposal is a governance proposal on the + provider chain to remove (and stop) a consumer chain. + If it passes, all the consumer chain's state is removed + from the provider chain. The outstanding unbonding - In practice, teams usually precompile into the binary all types - that they + operation funds are released. + title: proposals waiting for stop_time to pass + description: >- + ConsumerRemovalProposals holds pending governance proposals on + the provider chain to remove (and stop) a consumer chain. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - expect it to use in the context of Any. However, for URLs which - use the + protocol buffer message. This string must contain at + least - scheme `http`, `https`, or no scheme, one can optionally set up - a type + one "/" character. The last segment of the URL's path + must represent - server that maps type URLs to message definitions as follows: + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - * If no scheme is provided, `https` is assumed. + (e.g., leading "." is not accepted). - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official + In practice, teams usually precompile into the binary + all types that they - protobuf release, and it is not used for type URLs beginning - with + expect it to use in the context of Any. However, for + URLs which use the - type.googleapis.com. + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - Schemes other than `http`, `https` (or the empty scheme) might - be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + * If no scheme is provided, `https` is assumed. - URL that describes the type of the serialized message. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + Note: this functionality is not currently available in + the official - Protobuf library provides support to pack/unpack Any values in the - form + protobuf release, and it is not used for type URLs + beginning with - of utility functions or additional generated methods of the Any - type. + type.googleapis.com. - Example 1: Pack and unpack a message in C++. + Schemes other than `http`, `https` (or the empty scheme) + might be - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Example 2: Pack and unpack a message in Java. + URL that describes the type of the serialized message. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. + Protobuf library provides support to pack/unpack Any values + in the form - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + of utility functions or additional generated methods of the + Any type. - Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 1: Pack and unpack a message in C++. - The pack methods provided by protobuf library will by default use + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - 'type.googleapis.com/full.type.name' as the type URL and the unpack + Example 2: Pack and unpack a message in Java. - methods only use the fully qualified type name after the last '/' + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - in the type URL, for example "foo.bar.com/x/y.z" will yield type + Example 3: Pack and unpack a message in Python. - name "y.z". + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - JSON + The pack methods provided by protobuf library will by + default use - ==== + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - The JSON representation of an `Any` value uses the regular + methods only use the fully qualified type name after the + last '/' - representation of the deserialized, embedded message, with an + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - additional field `@type` which contains the type URL. Example: + name "y.z". - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom JSON + JSON - representation, that representation will be embedded adding a field + ==== - `value` which holds the custom JSON in addition to the `@type` + The JSON representation of an `Any` value uses the regular - field. Example (for message [google.protobuf.Duration][]): + representation of the deserialized, embedded message, with + an - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - title: accounts are the existing accounts - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + additional field `@type` which contains the type URL. + Example: - was set, its value is undefined otherwise - description: >- - QueryAccountsResponse is the response type for the Query/Accounts RPC - method. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Since: cosmos-sdk 0.43 - cosmos.auth.v1beta1.QueryModuleAccountByNameResponse: - type: object - properties: - account: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + If the embedded message type is well-known and has a custom + JSON - protocol buffer message. This string must contain at least + representation, that representation will be embedded adding + a field - one "/" character. The last segment of the URL's path must - represent + `value` which holds the custom JSON in addition to the + `@type` - the fully qualified name of the type (as in + field. Example (for message [google.protobuf.Duration][]): - `path/google.protobuf.Duration`). The name should be in a - canonical form + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/consumer_chains: + get: + summary: |- + ConsumerChains queries active consumer chains supported by the provider + chain + operationId: InterchainSecurityCcvProviderV1QueryConsumerChains + responses: + '200': + description: A successful response. + schema: + type: object + properties: + chains: + type: array + items: + type: object + properties: + chain_id: + type: string + client_id: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - (e.g., leading "." is not accepted). + protocol buffer message. This string must contain at + least + one "/" character. The last segment of the URL's path + must represent - In practice, teams usually precompile into the binary all types - that they + the fully qualified name of the type (as in - expect it to use in the context of Any. However, for URLs which - use the + `path/google.protobuf.Duration`). The name should be in + a canonical form - scheme `http`, `https`, or no scheme, one can optionally set up a - type + (e.g., leading "." is not accepted). - server that maps type URLs to message definitions as follows: + In practice, teams usually precompile into the binary + all types that they - * If no scheme is provided, `https` is assumed. + expect it to use in the context of Any. However, for + URLs which use the - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + scheme `http`, `https`, or no scheme, one can optionally + set up a type - Note: this functionality is not currently available in the - official + server that maps type URLs to message definitions as + follows: - protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Schemes other than `http`, `https` (or the empty scheme) might be + Note: this functionality is not currently available in + the official - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + protobuf release, and it is not used for type URLs + beginning with - URL that describes the type of the serialized message. + type.googleapis.com. - Protobuf library provides support to pack/unpack Any values in the - form + Schemes other than `http`, `https` (or the empty scheme) + might be - of utility functions or additional generated methods of the Any type. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + URL that describes the type of the serialized message. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Protobuf library provides support to pack/unpack Any values + in the form - Example 2: Pack and unpack a message in Java. + of utility functions or additional generated methods of the + Any type. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. + Example 1: Pack and unpack a message in C++. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 4: Pack and unpack a message in Go + Example 2: Pack and unpack a message in Java. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - The pack methods provided by protobuf library will by default use + Example 3: Pack and unpack a message in Python. - 'type.googleapis.com/full.type.name' as the type URL and the unpack + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - methods only use the fully qualified type name after the last '/' + Example 4: Pack and unpack a message in Go - in the type URL, for example "foo.bar.com/x/y.z" will yield type + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - name "y.z". + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + methods only use the fully qualified type name after the + last '/' - JSON + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - ==== + name "y.z". - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. Example: + JSON - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + ==== - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + The JSON representation of an `Any` value uses the regular - If the embedded message type is well-known and has a custom JSON + representation of the deserialized, embedded message, with + an - representation, that representation will be embedded adding a field + additional field `@type` which contains the type URL. + Example: - `value` which holds the custom JSON in addition to the `@type` + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - field. Example (for message [google.protobuf.Duration][]): + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - QueryModuleAccountByNameResponse is the response type for the - Query/ModuleAccountByName RPC method. - cosmos.auth.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.base.query.v1beta1.PageRequest: - type: object - properties: - key: - type: string - format: byte - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - offset: - type: string - format: uint64 - description: |- - offset is a numeric offset that can be used when key is unavailable. - It is less efficient than using key. Only one of offset or key should - be set. - limit: - type: string - format: uint64 - description: >- - limit is the total number of results to be returned in the result - page. + If the embedded message type is well-known and has a custom + JSON - If left empty it will default to a value to be set by each app. - count_total: - type: boolean - description: >- - count_total is set to true to indicate that the result set should - include + representation, that representation will be embedded adding + a field - a count of the total number of items available for pagination in UIs. + `value` which holds the custom JSON in addition to the + `@type` - count_total is only respected when offset is used. It is ignored when - key + field. Example (for message [google.protobuf.Duration][]): - is set. - reverse: - type: boolean - description: >- - reverse is set to true if results are to be returned in the descending - order. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/consumer_genesis/{chain_id}: + get: + summary: >- + ConsumerGenesis queries the genesis state needed to start a consumer + chain + whose proposal has been accepted + operationId: InterchainSecurityCcvProviderV1QueryConsumerGenesis + responses: + '200': + description: A successful response. + schema: + type: object + properties: + genesis_state: + type: object + properties: + params: + type: object + properties: + enabled: + type: boolean + title: >- + TODO: Remove enabled flag and find a better way to + setup integration tests - Since: cosmos-sdk 0.43 - description: |- - message SomeRequest { - Foo some_parameter = 1; - PageRequest pagination = 2; - } - title: |- - PageRequest is to be embedded in gRPC request messages for efficient - pagination. Ex: - cosmos.base.query.v1beta1.PageResponse: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: |- - total is total number of results available if PageRequest.count_total - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + See: + https://github.com/cosmos/interchain-security/issues/339 + blocks_per_distribution_transmission: + type: string + format: int64 + description: >- + ///////////////////// - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - cosmos.authz.v1beta1.Grant: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + Distribution Params - protocol buffer message. This string must contain at least + Number of blocks between ibc-token-transfers from the + consumer chain to - one "/" character. The last segment of the URL's path must - represent + the provider chain. Note that at this transmission + event a fraction of - the fully qualified name of the type (as in + the accumulated tokens are divided and sent consumer + redistribution - `path/google.protobuf.Duration`). The name should be in a - canonical form + address. + distribution_transmission_channel: + type: string + description: >- + Channel, and provider-chain receiving address to send + distribution token - (e.g., leading "." is not accepted). + transfers over. These parameters is auto-set during + the consumer <-> + provider handshake procedure. + provider_fee_pool_addr_str: + type: string + ccv_timeout_period: + type: string + title: >- + Sent CCV related IBC packets will timeout after this + duration + transfer_timeout_period: + type: string + title: >- + Sent transfer related IBC packets will timeout after + this duration + consumer_redistribution_fraction: + type: string + description: >- + The fraction of tokens allocated to the consumer + redistribution address - In practice, teams usually precompile into the binary all types - that they + during distribution events. The fraction is a string + representing a - expect it to use in the context of Any. However, for URLs which - use the + decimal number. For example "0.75" would represent + 75%. + historical_entries: + type: string + format: int64 + description: >- + The number of historical info entries to persist in + store. - scheme `http`, `https`, or no scheme, one can optionally set up a - type + This param is a part of the cosmos sdk staking module. + In the case of - server that maps type URLs to message definitions as follows: + a ccv enabled consumer chain, the ccv module acts as + the staking module. + unbonding_period: + type: string + description: >- + Unbonding period for the consumer, + which should be smaller than that of the provider in + general. + soft_opt_out_threshold: + type: string + title: >- + The threshold for the percentage of validators at the + bottom of the set who - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. + can opt out of running the consumer chain without + being punished. For example, a + value of 0.05 means that the validators in the bottom + 5% of the set can opt out + title: Params defines the parameters for CCV consumer module + provider_client_id: + type: string + description: empty for a new chain, filled in on restart. + provider_channel_id: + type: string + description: empty for a new chain, filled in on restart. + new_chain: + type: boolean + description: true for new chain GenesisState, false for chain restart. + provider_client_state: + description: >- + ProviderClientState filled in on new chain, nil on + restart. + type: object + properties: + chain_id: + type: string + trust_level: + type: object + properties: + numerator: + type: string + format: uint64 + denominator: + type: string + format: uint64 + description: >- + Fraction defines the protobuf message type for + tmmath.Fraction that only - Protobuf library provides support to pack/unpack Any values in the - form + supports positive values. + trusting_period: + type: string + title: >- + duration of the period since the LastestTimestamp + during which the - of utility functions or additional generated methods of the Any type. + submitted headers are valid for upgrade + unbonding_period: + type: string + title: duration of the staking unbonding period + max_clock_drift: + type: string + description: >- + defines how much new (untrusted) header's Time can + drift into the future. + frozen_height: + title: >- + Block height when the client was frozen due to a + misbehaviour + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each + height while keeping + RevisionNumber the same. However some consensus + algorithms may choose to - Example 1: Pack and unpack a message in C++. + reset the height in certain conditions e.g. hard + forks, state-machine - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + breaking changes In these cases, the RevisionNumber is + incremented so that - Example 2: Pack and unpack a message in Java. + height continues to be monitonically increasing even + as the RevisionHeight - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + gets reset + latest_height: + title: Latest height the client was updated to + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each + height while keeping - Example 3: Pack and unpack a message in Python. + RevisionNumber the same. However some consensus + algorithms may choose to - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + reset the height in certain conditions e.g. hard + forks, state-machine - Example 4: Pack and unpack a message in Go + breaking changes In these cases, the RevisionNumber is + incremented so that - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + height continues to be monitonically increasing even + as the RevisionHeight - The pack methods provided by protobuf library will by default use + gets reset + proof_specs: + type: array + items: + type: object + properties: + leaf_spec: + title: >- + any field in the ExistenceProof must be the same + as in this spec. - 'type.googleapis.com/full.type.name' as the type URL and the unpack + except Prefix, which is just the first bytes of + prefix (spec can be longer) + type: object + properties: + hash: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data + passed. Note this is an illegal argument + some places. + - BITCOIN: ripemd160(sha256(x)) + prehash_key: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data + passed. Note this is an illegal argument + some places. + - BITCOIN: ripemd160(sha256(x)) + prehash_value: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data + passed. Note this is an illegal argument + some places. + - BITCOIN: ripemd160(sha256(x)) + length: + type: string + enum: + - NO_PREFIX + - VAR_PROTO + - VAR_RLP + - FIXED32_BIG + - FIXED32_LITTLE + - FIXED64_BIG + - FIXED64_LITTLE + - REQUIRE_32_BYTES + - REQUIRE_64_BYTES + default: NO_PREFIX + description: >- + - NO_PREFIX: NO_PREFIX don't include any + length info + - VAR_PROTO: VAR_PROTO uses protobuf (and go-amino) varint encoding of the length + - VAR_RLP: VAR_RLP uses rlp int encoding of the length + - FIXED32_BIG: FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer + - FIXED32_LITTLE: FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer + - FIXED64_BIG: FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer + - FIXED64_LITTLE: FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer + - REQUIRE_32_BYTES: REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) + - REQUIRE_64_BYTES: REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) + title: >- + * - methods only use the fully qualified type name after the last '/' + LengthOp defines how to process the key and + value of the LeafOp - in the type URL, for example "foo.bar.com/x/y.z" will yield type + to include length information. After + encoding the length with the given - name "y.z". + algorithm, the length will be prepended to + the key and value bytes. + (Each one with it's own encoded length) + prefix: + type: string + format: byte + description: >- + prefix is a fixed bytes that may optionally + be included at the beginning to + differentiate + a leaf node from an inner node. + description: >- + * - JSON + LeafOp represents the raw key-value data we wish + to prove, and - ==== + must be flexible to represent the internal + transformation from - The JSON representation of an `Any` value uses the regular + the original key-value pairs into the basis + hash, for many existing - representation of the deserialized, embedded message, with an + merkle trees. - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + key and value are passed in. So that the + signature of this operation is: - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + leafOp(key, value) -> output - If the embedded message type is well-known and has a custom JSON - representation, that representation will be embedded adding a field + To process this, first prehash the keys and + values if needed (ANY means no hash in this + case): - `value` which holds the custom JSON in addition to the `@type` + hkey = prehashKey(key) - field. Example (for message [google.protobuf.Duration][]): + hvalue = prehashValue(value) - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: |- - Grant gives permissions to execute - the provide method with expiration time. - cosmos.authz.v1beta1.GrantAuthorization: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - protocol buffer message. This string must contain at least + Then combine the bytes, and hash it - one "/" character. The last segment of the URL's path must - represent + output = hash(prefix || length(hkey) || hkey || + length(hvalue) || hvalue) + inner_spec: + type: object + properties: + child_order: + type: array + items: + type: integer + format: int32 + title: >- + Child order is the ordering of the children + node, must count from 0 - the fully qualified name of the type (as in + iavl tree is [0, 1] (left then right) - `path/google.protobuf.Duration`). The name should be in a - canonical form + merk is [0, 2, 1] (left, right, here) + child_size: + type: integer + format: int32 + min_prefix_length: + type: integer + format: int32 + max_prefix_length: + type: integer + format: int32 + empty_child: + type: string + format: byte + title: >- + empty child is the prehash image that is + used when one child is nil (eg. 20 bytes of + 0) + hash: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data + passed. Note this is an illegal argument + some places. + - BITCOIN: ripemd160(sha256(x)) + description: >- + InnerSpec contains all store-specific structure + info to determine if two proofs from a - (e.g., leading "." is not accepted). + given store are neighbors. - In practice, teams usually precompile into the binary all types - that they + This enables: - expect it to use in the context of Any. However, for URLs which - use the - scheme `http`, `https`, or no scheme, one can optionally set up a - type + isLeftMost(spec: InnerSpec, op: InnerOp) - server that maps type URLs to message definitions as follows: + isRightMost(spec: InnerSpec, op: InnerOp) + isLeftNeighbor(spec: InnerSpec, left: InnerOp, + right: InnerOp) + max_depth: + type: integer + format: int32 + title: >- + max_depth (if > 0) is the maximum number of + InnerOps allowed (mainly for fixed-depth tries) + min_depth: + type: integer + format: int32 + title: >- + min_depth (if > 0) is the minimum number of + InnerOps allowed (mainly for fixed-depth tries) + description: >- + * - * If no scheme is provided, `https` is assumed. + ProofSpec defines what the expected parameters are + for a given proof type. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + This can be stored in the client and used to + validate any incoming proofs. - Note: this functionality is not currently available in the - official - protobuf release, and it is not used for type URLs beginning with + verify(ProofSpec, Proof) -> Proof | Error - type.googleapis.com. + As demonstrated in tests, if we don't fix the + algorithm used to calculate the - Schemes other than `http`, `https` (or the empty scheme) might be + LeafHash for a given tree, there are many possible + key-value pairs that can - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + generate a given hash (by interpretting the preimage + differently). - URL that describes the type of the serialized message. + We need this for proper security, requires client + knows a priori what + tree format server uses. But not in code, rather a + configuration object. + title: >- + Proof specifications used in verifying counterparty + state + upgrade_path: + type: array + items: + type: string + title: >- + Path at which next upgraded client will be committed. - Protobuf library provides support to pack/unpack Any values in the - form + Each element corresponds to the key for a single + CommitmentProof in the - of utility functions or additional generated methods of the Any type. + chained proof. NOTE: ClientState must stored under + `{upgradePath}/{upgradeHeight}/clientState` + ConsensusState must be stored - Example 1: Pack and unpack a message in C++. + under `{upgradepath}/{upgradeHeight}/consensusState` + For SDK chains using - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + the default upgrade module, upgrade_path should be + []string{"upgrade", - Example 2: Pack and unpack a message in Java. + "upgradedIBCState"}` + allow_update_after_expiry: + type: boolean + title: allow_update_after_expiry is deprecated + allow_update_after_misbehaviour: + type: boolean + title: allow_update_after_misbehaviour is deprecated + provider_consensus_state: + description: >- + ProviderConsensusState filled in on new chain, nil on + restart. + type: object + properties: + timestamp: + type: string + format: date-time + description: >- + timestamp that corresponds to the block height in + which the ConsensusState - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". + was stored. + root: + title: commitment root (i.e app hash) + type: object + properties: + hash: + type: string + format: byte + description: >- + MerkleRoot defines a merkle root hash. + In the Cosmos SDK, the AppHash of a block header + becomes the root. + next_validators_hash: + type: string + format: byte + maturing_packets: + type: array + items: + type: object + properties: + vscId: + type: string + format: uint64 + maturity_time: + type: string + format: date-time + title: >- + MaturingVSCPacket contains the maturing time of a + received VSCPacket + description: MaturingPackets nil on new chain, filled in on restart. + initial_val_set: + type: array + items: + type: object + properties: + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + power: + type: string + format: int64 + title: ValidatorUpdate + description: InitialValset filled in on new chain and on restart. + height_to_valset_update_id: + type: array + items: + type: object + properties: + height: + type: string + format: uint64 + valset_update_id: + type: string + format: uint64 + title: >- + HeightValsetUpdateID defines the genesis information for + the mapping + of each block height to a valset update id + description: >- + HeightToValsetUpdateId nil on new chain, filled in on + restart. + outstanding_downtime_slashing: + type: array + items: + type: object + properties: + validator_consensus_address: + type: string + description: >- + OutstandingDowntime defines the genesis information for + each validator - JSON + flagged with an outstanding downtime slashing. + description: >- + OutstandingDowntimes nil on new chain, filled in on + restart. + pending_consumer_packets: + description: >- + PendingConsumerPackets nil on new chain, filled in on + restart. + type: object + properties: + list: + type: array + items: + type: object + properties: + type: + type: string + enum: + - CONSUMER_PACKET_TYPE_UNSPECIFIED + - CONSUMER_PACKET_TYPE_SLASH + - CONSUMER_PACKET_TYPE_VSCM + default: CONSUMER_PACKET_TYPE_UNSPECIFIED + description: >- + ConsumerPacketType indicates interchain security + specific packet types. - ==== + - CONSUMER_PACKET_TYPE_UNSPECIFIED: UNSPECIFIED packet type + - CONSUMER_PACKET_TYPE_SLASH: Slash packet + - CONSUMER_PACKET_TYPE_VSCM: VSCMatured packet + slashPacketData: + type: object + properties: + validator: + type: object + properties: + address: + type: string + format: byte + title: The first 20 bytes of SHA256(public key) + power: + type: string + format: int64 + description: The voting power + title: >- + PubKey pub_key = 2 + [(gogoproto.nullable)=false]; + title: Validator + valset_update_id: + type: string + format: uint64 + title: >- + map to the infraction block height on the + provider + infraction: + title: >- + tell if the slashing is for a downtime or a + double-signing infraction + type: string + enum: + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: >- + Infraction indicates the infraction a + validator commited. - The JSON representation of an `Any` value uses the regular + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + description: >- + This packet is sent from the consumer chain to + the provider chain - representation of the deserialized, embedded message, with an + to request the slashing of a validator as a + result of an infraction - additional field `@type` which contains the type URL. Example: + committed on the consumer chain. + vscMaturedPacketData: + type: object + properties: + valset_update_id: + type: string + format: uint64 + title: >- + the id of the VSC packet that reached + maturity + description: >- + This packet is sent from the consumer chain to + the provider chain - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + to notify that a VSC packet reached maturity on + the consumer chain. + title: >- + ConsumerPacketData contains a consumer packet data + and a type tag + last_transmission_block_height: + description: >- + LastTransmissionBlockHeight nil on new chain, filled in on + restart. + type: object + properties: + height: + type: string + format: int64 + title: >- + LastTransmissionBlockHeight is the last time validator + holding - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + pools were transmitted to the provider chain + preCCV: + type: boolean + title: >- + flag indicating whether the consumer CCV module starts in + pre-CCV state + title: GenesisState defines the CCV consumer chain genesis state + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - If the embedded message type is well-known and has a custom JSON + protocol buffer message. This string must contain at + least - representation, that representation will be embedded adding a field + one "/" character. The last segment of the URL's path + must represent - `value` which holds the custom JSON in addition to the `@type` + the fully qualified name of the type (as in - field. Example (for message [google.protobuf.Duration][]): + `path/google.protobuf.Duration`). The name should be in + a canonical form - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses of the grantee - and granter. + (e.g., leading "." is not accepted). - It is used in genesis.proto and query.proto - cosmos.authz.v1beta1.MsgExecResponse: - type: object - properties: - results: - type: array - items: - type: string - format: byte - description: MsgExecResponse defines the Msg/MsgExecResponse response type. - cosmos.authz.v1beta1.MsgGrantResponse: - type: object - description: MsgGrantResponse defines the Msg/MsgGrant response type. - cosmos.authz.v1beta1.MsgRevokeResponse: - type: object - description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. - cosmos.authz.v1beta1.QueryGranteeGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - protocol buffer message. This string must contain at least + In practice, teams usually precompile into the binary + all types that they - one "/" character. The last segment of the URL's path must - represent + expect it to use in the context of Any. However, for + URLs which use the - the fully qualified name of the type (as in + scheme `http`, `https`, or no scheme, one can optionally + set up a type - `path/google.protobuf.Duration`). The name should be in a - canonical form + server that maps type URLs to message definitions as + follows: - (e.g., leading "." is not accepted). + * If no scheme is provided, `https` is assumed. - In practice, teams usually precompile into the binary all - types that they + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - expect it to use in the context of Any. However, for URLs - which use the + Note: this functionality is not currently available in + the official - scheme `http`, `https`, or no scheme, one can optionally set - up a type + protobuf release, and it is not used for type URLs + beginning with - server that maps type URLs to message definitions as - follows: + type.googleapis.com. - * If no scheme is provided, `https` is assumed. + Schemes other than `http`, `https` (or the empty scheme) + might be - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Note: this functionality is not currently available in the - official + URL that describes the type of the serialized message. - protobuf release, and it is not used for type URLs beginning - with - type.googleapis.com. + Protobuf library provides support to pack/unpack Any values + in the form + of utility functions or additional generated methods of the + Any type. - Schemes other than `http`, `https` (or the empty scheme) - might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + Example 1: Pack and unpack a message in C++. - URL that describes the type of the serialized message. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - Protobuf library provides support to pack/unpack Any values in - the form + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - of utility functions or additional generated methods of the Any - type. + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 1: Pack and unpack a message in C++. + Example 4: Pack and unpack a message in Go - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Example 2: Pack and unpack a message in Java. + The pack methods provided by protobuf library will by + default use - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Example 3: Pack and unpack a message in Python. + methods only use the fully qualified type name after the + last '/' - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Example 4: Pack and unpack a message in Go + name "y.z". - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - The pack methods provided by protobuf library will by default - use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + JSON - methods only use the fully qualified type name after the last - '/' + ==== - in the type URL, for example "foo.bar.com/x/y.z" will yield type + The JSON representation of an `Any` value uses the regular - name "y.z". + representation of the deserialized, embedded message, with + an + additional field `@type` which contains the type URL. + Example: + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - JSON + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - ==== + If the embedded message type is well-known and has a custom + JSON - The JSON representation of an `Any` value uses the regular + representation, that representation will be embedded adding + a field - representation of the deserialized, embedded message, with an + `value` which holds the custom JSON in addition to the + `@type` - additional field `@type` which contains the type URL. Example: + field. Example (for message [google.protobuf.Duration][]): - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: chain_id + in: path + required: true + type: string + tags: + - Query + /interchain_security/ccv/provider/pending_consumer_packets: + get: + summary: >- + QueryThrottledConsumerPacketData returns a list of pending packet data + instances - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. - - It is used in genesis.proto and query.proto - description: grants is a list of grants granted to the grantee. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. - cosmos.authz.v1beta1.QueryGranterGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least + (slash packet and vsc matured) for a single consumer chain + operationId: InterchainSecurityCcvProviderV1QueryThrottledConsumerPacketData + responses: + '200': + description: A successful response. + schema: + type: object + properties: + chain_id: + type: string + size: + type: string + format: uint64 + packetDataInstances: + type: array + items: + type: object + properties: + slash_packet: + type: object + properties: + validator: + type: object + properties: + address: + type: string + format: byte + title: The first 20 bytes of SHA256(public key) + power: + type: string + format: int64 + description: The voting power + title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; + title: Validator + valset_update_id: + type: string + format: uint64 + title: map to the infraction block height on the provider + infraction: + title: >- + tell if the slashing is for a downtime or a + double-signing infraction + type: string + enum: + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: >- + Infraction indicates the infraction a validator + commited. - one "/" character. The last segment of the URL's path must - represent + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + description: >- + This packet is sent from the consumer chain to the + provider chain - the fully qualified name of the type (as in + to request the slashing of a validator as a result of an + infraction - `path/google.protobuf.Duration`). The name should be in a - canonical form + committed on the consumer chain. + vsc_matured_packet: + type: object + properties: + valset_update_id: + type: string + format: uint64 + title: the id of the VSC packet that reached maturity + description: >- + This packet is sent from the consumer chain to the + provider chain - (e.g., leading "." is not accepted). + to notify that a VSC packet reached maturity on the + consumer chain. + title: >- + ThrottledPacketDataWrapper contains either SlashPacketData + or VSCMaturedPacketData + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + protocol buffer message. This string must contain at + least - In practice, teams usually precompile into the binary all - types that they + one "/" character. The last segment of the URL's path + must represent - expect it to use in the context of Any. However, for URLs - which use the + the fully qualified name of the type (as in - scheme `http`, `https`, or no scheme, one can optionally set - up a type + `path/google.protobuf.Duration`). The name should be in + a canonical form - server that maps type URLs to message definitions as - follows: + (e.g., leading "." is not accepted). - * If no scheme is provided, `https` is assumed. + In practice, teams usually precompile into the binary + all types that they - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + expect it to use in the context of Any. However, for + URLs which use the - Note: this functionality is not currently available in the - official + scheme `http`, `https`, or no scheme, one can optionally + set up a type - protobuf release, and it is not used for type URLs beginning - with + server that maps type URLs to message definitions as + follows: - type.googleapis.com. + * If no scheme is provided, `https` is assumed. - Schemes other than `http`, `https` (or the empty scheme) - might be + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + Note: this functionality is not currently available in + the official - URL that describes the type of the serialized message. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Protobuf library provides support to pack/unpack Any values in - the form - of utility functions or additional generated methods of the Any - type. + Schemes other than `http`, `https` (or the empty scheme) + might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Example 1: Pack and unpack a message in C++. + URL that describes the type of the serialized message. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Protobuf library provides support to pack/unpack Any values + in the form - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + of utility functions or additional generated methods of the + Any type. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Example 1: Pack and unpack a message in C++. - Example 4: Pack and unpack a message in Go + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 2: Pack and unpack a message in Java. - The pack methods provided by protobuf library will by default - use + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Example 3: Pack and unpack a message in Python. - methods only use the fully qualified type name after the last - '/' + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - in the type URL, for example "foo.bar.com/x/y.z" will yield type + Example 4: Pack and unpack a message in Go - name "y.z". + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - JSON + methods only use the fully qualified type name after the + last '/' - ==== + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - The JSON representation of an `Any` value uses the regular + name "y.z". - representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + JSON - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + ==== - If the embedded message type is well-known and has a custom JSON + The JSON representation of an `Any` value uses the regular - representation, that representation will be embedded adding a - field + representation of the deserialized, embedded message, with + an - `value` which holds the custom JSON in addition to the `@type` + additional field `@type` which contains the type URL. + Example: - field. Example (for message [google.protobuf.Duration][]): + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + If the embedded message type is well-known and has a custom + JSON - was set, its value is undefined otherwise - description: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. - cosmos.authz.v1beta1.QueryGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + representation, that representation will be embedded adding + a field - protocol buffer message. This string must contain at least + `value` which holds the custom JSON in addition to the + `@type` - one "/" character. The last segment of the URL's path must - represent + field. Example (for message [google.protobuf.Duration][]): - the fully qualified name of the type (as in + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: chain_id + in: query + required: false + type: string + tags: + - Query + /interchain_security/ccv/provider/throttle_state: + get: + summary: >- + QueryThrottleState returns the main on-chain state relevant to currently + throttled slash packets + operationId: InterchainSecurityCcvProviderV1QueryThrottleState + responses: + '200': + description: A successful response. + schema: + type: object + properties: + slash_meter: + type: string + format: int64 + title: current slash_meter state + slash_meter_allowance: + type: string + format: int64 + description: >- + allowance of voting power units (int) that the slash meter is + given per replenish period - `path/google.protobuf.Duration`). The name should be in a - canonical form + this also serves as the max value for the meter. + next_replenish_candidate: + type: string + format: date-time + title: >- + next time the slash meter could potentially be replenished, + iff it's not full + packets: + type: array + items: + type: object + properties: + global_entry: + type: object + properties: + recv_time: + type: string + format: date-time + description: >- + Block time that slash packet was received by + provider chain. - (e.g., leading "." is not accepted). + This field is used for store key iteration ordering. + consumer_chain_id: + type: string + description: The consumer that sent a slash packet. + ibc_seq_num: + type: string + format: uint64 + description: >- + The IBC sequence number of the recv packet. + This field is used in the store key to ensure + uniqueness. + provider_val_cons_addr: + description: >- + The provider's consensus address of the validator + being slashed. - In practice, teams usually precompile into the binary all - types that they + This field is used to obtain validator power in + HandleThrottleQueues. - expect it to use in the context of Any. However, for URLs - which use the - scheme `http`, `https`, or no scheme, one can optionally set - up a type + This field is not used in the store key, but is + persisted in value bytes, see QueueGlobalSlashEntry. + type: object + properties: + address: + type: string + format: byte + title: >- + A validator's consensus address on the provider + chain + description: >- + A persisted queue entry indicating that a slash packet + data instance needs to be handled. - server that maps type URLs to message definitions as - follows: + This type belongs in the "global" queue, to coordinate + slash packet handling times between consumers. + data: + type: object + properties: + validator: + type: object + properties: + address: + type: string + format: byte + title: The first 20 bytes of SHA256(public key) + power: + type: string + format: int64 + description: The voting power + title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; + title: Validator + valset_update_id: + type: string + format: uint64 + title: map to the infraction block height on the provider + infraction: + title: >- + tell if the slashing is for a downtime or a + double-signing infraction + type: string + enum: + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: >- + Infraction indicates the infraction a validator + commited. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + description: >- + This packet is sent from the consumer chain to the + provider chain - * If no scheme is provided, `https` is assumed. + to request the slashing of a validator as a result of an + infraction - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + committed on the consumer chain. + description: >- + A query wrapper type for the global entry and data relevant + to a throttled slash packet. + title: data relevant to currently throttled slash packets + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - Note: this functionality is not currently available in the - official + protocol buffer message. This string must contain at + least - protobuf release, and it is not used for type URLs beginning - with + one "/" character. The last segment of the URL's path + must represent - type.googleapis.com. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - Schemes other than `http`, `https` (or the empty scheme) - might be + (e.g., leading "." is not accepted). - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - URL that describes the type of the serialized message. + In practice, teams usually precompile into the binary + all types that they + expect it to use in the context of Any. However, for + URLs which use the - Protobuf library provides support to pack/unpack Any values in - the form + scheme `http`, `https`, or no scheme, one can optionally + set up a type - of utility functions or additional generated methods of the Any - type. + server that maps type URLs to message definitions as + follows: - Example 1: Pack and unpack a message in C++. + * If no scheme is provided, `https` is assumed. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Example 2: Pack and unpack a message in Java. + Note: this functionality is not currently available in + the official - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + protobuf release, and it is not used for type URLs + beginning with - Example 3: Pack and unpack a message in Python. + type.googleapis.com. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Schemes other than `http`, `https` (or the empty scheme) + might be - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - The pack methods provided by protobuf library will by default - use + URL that describes the type of the serialized message. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - methods only use the fully qualified type name after the last - '/' + Protobuf library provides support to pack/unpack Any values + in the form - in the type URL, for example "foo.bar.com/x/y.z" will yield type + of utility functions or additional generated methods of the + Any type. - name "y.z". + Example 1: Pack and unpack a message in C++. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - JSON + Example 2: Pack and unpack a message in Java. - ==== + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - The JSON representation of an `Any` value uses the regular + Example 3: Pack and unpack a message in Python. - representation of the deserialized, embedded message, with an + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - additional field `@type` which contains the type URL. Example: + Example 4: Pack and unpack a message in Go - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + The pack methods provided by protobuf library will by + default use - If the embedded message type is well-known and has a custom JSON + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - representation, that representation will be embedded adding a - field + methods only use the fully qualified type name after the + last '/' - `value` which holds the custom JSON in addition to the `@type` + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - field. Example (for message [google.protobuf.Duration][]): + name "y.z". - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: authorizations is a list of grants granted for grantee by granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - was set, its value is undefined otherwise - description: >- - QueryGrantsResponse is the response type for the Query/Authorizations RPC - method. - cosmos.bank.v1beta1.DenomUnit: - type: object - properties: - denom: - type: string - description: denom represents the string name of the given denom unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - raise the base_denom to in order to equal the given DenomUnit's denom + JSON - 1 denom = 1^exponent base_denom + ==== - (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' - with + The JSON representation of an `Any` value uses the regular - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - cosmos.bank.v1beta1.Input: - type: object - properties: - address: - type: string - coins: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + representation of the deserialized, embedded message, with + an - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: Input models transaction input. - cosmos.bank.v1beta1.Metadata: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit (e.g - uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must + additional field `@type` which contains the type URL. + Example: - raise the base_denom to in order to equal the given DenomUnit's - denom + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - 1 denom = 1^exponent base_denom + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - (e.g. with a base_denom of uatom, one can create a DenomUnit of - 'atom' with + If the embedded message type is well-known and has a custom + JSON - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/validator_consumer_addr: + get: + summary: |- + QueryValidatorConsumerAddr queries the address + assigned by a validator for a consumer chain. + operationId: InterchainSecurityCcvProviderV1QueryValidatorConsumerAddr + responses: + '200': + description: A successful response. + schema: + type: object + properties: + consumer_address: type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with exponent - = 0). - display: - type: string + title: The address of the validator on the consumer chain + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: chain_id + description: The id of the consumer chain + in: query + required: false + type: string + - name: provider_address + description: The consensus address of the validator on the provider chain + in: query + required: false + type: string + tags: + - Query + /interchain_security/ccv/provider/validator_provider_addr: + get: + summary: |- + QueryProviderAddr returns the provider chain validator + given a consumer chain validator address + operationId: InterchainSecurityCcvProviderV1QueryValidatorProviderAddr + responses: + '200': + description: A successful response. + schema: + type: object + properties: + provider_address: + type: string + title: The address of the validator on the provider chain + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: chain_id + description: The id of the provider chain + in: query + required: false + type: string + - name: consumer_address + description: The consensus address of the validator on the consumer chain + in: query + required: false + type: string + tags: + - Query + /neutron/contractmanager/failures: + get: + summary: Queries a list of Failure items. + operationId: NeutronContractmanagerFailures + responses: + '200': + description: A successful response. + schema: + type: object + properties: + failures: + type: array + items: + type: object + properties: + channel_id: + type: string + title: ChannelId + address: + type: string + title: Address of the failed contract + id: + type: string + format: uint64 + title: id of the failure under specific address + ack_id: + type: string + format: uint64 + title: ACK id to restore + ack_type: + type: string + title: Acknowledgement type + description: >- + Failure message contains information about ACK failures and + can be used to + + replay ACK in case of requirement. + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + in: query + required: false + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /neutron/contractmanager/failures/{address}: + get: + summary: Queries a Failure by address. + operationId: NeutronContractmanagerAddressFailures + responses: + '200': + description: A successful response. + schema: + type: object + properties: + failures: + type: array + items: + type: object + properties: + channel_id: + type: string + title: ChannelId + address: + type: string + title: Address of the failed contract + id: + type: string + format: uint64 + title: id of the failure under specific address + ack_id: + type: string + format: uint64 + title: ACK id to restore + ack_type: + type: string + title: Acknowledgement type + description: >- + Failure message contains information about ACK failures and + can be used to + + replay ACK in case of requirement. + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: address + in: path + required: true + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /neutron/contractmanager/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronContractmanagerParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/cron/params: + get: + summary: Queries the parameters of the module. + operationId: NeutronCronParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + security_address: + type: string + title: Security address that can remove schedules + limit: + type: string + format: uint64 + title: Limit of schedules executed in one block + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/cron/schedule: + get: + summary: Queries a list of Schedule items. + operationId: NeutronCronSchedules + responses: + '200': + description: A successful response. + schema: + type: object + properties: + schedules: + type: array + items: + type: object + properties: + name: + type: string + title: Name of schedule + period: + type: string + format: uint64 + title: Period in blocks + msgs: + type: array + items: + type: object + properties: + contract: + type: string + title: Contract is the address of the smart contract + msg: + type: string + title: >- + Msg is json encoded message to be passed to the + contract + title: Msgs that will be executed every period amount of time + last_execute_height: + type: string + format: uint64 + title: Last execution's block height + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /neutron/cron/schedule/{name}: + get: + summary: Queries a Schedule by name. + operationId: NeutronCronSchedule + responses: + '200': + description: A successful response. + schema: + type: object + properties: + schedule: + type: object + properties: + name: + type: string + title: Name of schedule + period: + type: string + format: uint64 + title: Period in blocks + msgs: + type: array + items: + type: object + properties: + contract: + type: string + title: Contract is the address of the smart contract + msg: + type: string + title: >- + Msg is json encoded message to be passed to the + contract + title: Msgs that will be executed every period amount of time + last_execute_height: + type: string + format: uint64 + title: Last execution's block height + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: name + in: path + required: true + type: string + tags: + - Query + /neutron/feeburner/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronFeeburnerParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + neutron_denom: + type: string + title: >- + Defines Neutron denom, which will be burned during fee + processing, any + + other denom will be sent to Treasury + reserve_address: + type: string + title: Deprecated in v0.4.4. Is not used anymore + treasury_address: + type: string + title: Defines treasury address + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/feeburner/total_burned_neutrons_amount: + get: + summary: TotalBurnedNeutronsAmount queries total amount of burned neutron fees. + operationId: NeutronFeeburnerTotalBurnedNeutronsAmount + responses: + '200': + description: A successful response. + schema: + type: object + properties: + total_burned_neutrons_amount: + type: object + properties: + coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + title: >- + TotalBurnedNeutronsAmount defines total amount of burned + neutron fees + description: |- + QueryTotalBurnedNeutronsAmountResponse is response type for the + Query/QueryTotalBurnedNeutronsAmount method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron-org/neutron/feerefunder/info: + get: + operationId: NeutronFeerefunderFeeInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + fee_info: + type: object + properties: + payer: + type: string + packet_id: + type: object + properties: + channel_id: + type: string + port_id: + type: string + sequence: + type: string + format: uint64 + fee: + type: object + properties: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet timeout fee + title: >- + Fee defines the ICS29 receive, acknowledgement and timeout + fees + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: channel_id + in: query + required: false + type: string + - name: port_id + in: query + required: false + type: string + - name: sequence + in: query + required: false + type: string + format: uint64 + tags: + - Query + /neutron-org/neutron/feerefunder/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronFeerefunderParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + min_fee: + type: object + properties: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet timeout fee + title: >- + Fee defines the ICS29 receive, acknowledgement and timeout + fees + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/interchainqueries/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronInterchainqueriesParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + query_submit_timeout: + type: string + format: uint64 + title: >- + Defines amount of blocks required before query becomes + available for + + removal by anybody + query_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Amount of coins deposited for the query. + tx_query_removal_limit: + type: string + format: uint64 + description: >- + Amount of tx hashes to be removed during a single + EndBlock. Can vary to + + balance between network cleaning speed and EndBlock + duration. A zero value + + means no limit. + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /neutron/interchainqueries/query_result: + get: + operationId: NeutronInterchainqueriesQueryResult + responses: + '200': + description: A successful response. + schema: + type: object + properties: + result: + type: object + properties: + kv_results: + type: array + items: + type: object + properties: + storage_prefix: + type: string + title: is the substore name (acc, staking, etc.) + key: + type: string + format: byte + title: is the key in IAVL store + value: + type: string + format: byte + title: is the value in IAVL store + Proof: + title: >- + is the Merkle Proof which proves existence of + key-value pair in IAVL + + storage + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + title: >- + ProofOp defines an operation used for + calculating Merkle root + + The data could be arbitrary format, providing + nessecary data + + for example neighbouring node hash + block: + type: object + properties: + next_block_header: + title: >- + We need to know block X+1 to verify response of + transaction for block X + + since LastResultsHash is root hash of all results from + the txs from the + + previous block + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain + at least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should + be in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, + for URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions + as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently + available in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods + of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL + and the unpack + + methods only use the fully qualified type name after + the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + header: + title: >- + We need to know block X to verify inclusion of + transaction for block X + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain + at least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should + be in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, + for URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions + as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently + available in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods + of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL + and the unpack + + methods only use the fully qualified type name after + the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tx: + type: object + properties: + response: + type: object + properties: + code: + type: integer + format: int64 + data: + type: string + format: byte + log: + type: string + title: nondeterministic + info: + type: string + title: nondeterministic + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + title: nondeterministic + description: >- + EventAttribute is a single key-value + pair, associated with an event. + description: >- + Event allows application developers to + attach additional information to + + ResponseBeginBlock, ResponseEndBlock, + ResponseCheckTx and ResponseDeliverTx. + + Later, transactions may be queried using + these events. + title: nondeterministic + codespace: + type: string + delivery_proof: + title: >- + is the Merkle Proof which proves existence of + response in block with height + + next_block_header.Height + type: object + properties: + total: + type: string + format: int64 + index: + type: string + format: int64 + leaf_hash: + type: string + format: byte + aunts: + type: array + items: + type: string + format: byte + inclusion_proof: + title: >- + is the Merkle Proof which proves existence of data + in block with height + + header.Height + type: object + properties: + total: + type: string + format: int64 + index: + type: string + format: int64 + leaf_hash: + type: string + format: byte + aunts: + type: array + items: + type: string + format: byte + data: + type: string + format: byte + title: is body of the transaction + height: + type: string + format: uint64 + revision: + type: string + format: uint64 + allow_kv_callbacks: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: query_id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /neutron/interchainqueries/registered_queries: + get: + operationId: NeutronInterchainqueriesRegisteredQueries + responses: + '200': + description: A successful response. + schema: + type: object + properties: + registered_queries: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + description: The unique id of the registered query. + owner: + type: string + description: The address that registered the query. + query_type: + type: string + title: 'The query type identifier: `kv` or `tx` now' + keys: + type: array + items: + type: object + properties: + path: + type: string + title: >- + Path (storage prefix) to the storage where you + want to read value by key + + (usually name of cosmos-sdk module: 'staking', + 'bank', etc.) + key: + type: string + format: byte + title: Key you want to read from the storage + title: >- + The KV-storage keys for which we want to get values from + remote chain + transactions_filter: + type: string + title: The filter for transaction search ICQ + connection_id: + type: string + title: >- + The IBC connection ID for getting ConsensusState to + verify proofs + update_period: + type: string + format: uint64 + description: >- + Parameter that defines how often the query must be + updated. + last_submitted_result_local_height: + type: string + format: uint64 + description: >- + The local chain last block height when the query result + was updated. + last_submitted_result_remote_height: + description: >- + The remote chain last block height when the query result + was updated. + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the + purposes of updating and + + freezing clients + deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Amount of coins deposited for the query. + submit_timeout: + type: string + format: uint64 + description: >- + Timeout before query becomes available for everybody to + remove. + registered_at_height: + type: string + format: uint64 + description: The local chain height when the query was registered. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: owners + in: query + required: false + type: array + items: + type: string + collectionFormat: multi + - name: connection_id + in: query + required: false + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /neutron/interchainqueries/registered_query: + get: + operationId: NeutronInterchainqueriesRegisteredQuery + responses: + '200': + description: A successful response. + schema: + type: object + properties: + registered_query: + type: object + properties: + id: + type: string + format: uint64 + description: The unique id of the registered query. + owner: + type: string + description: The address that registered the query. + query_type: + type: string + title: 'The query type identifier: `kv` or `tx` now' + keys: + type: array + items: + type: object + properties: + path: + type: string + title: >- + Path (storage prefix) to the storage where you want + to read value by key + + (usually name of cosmos-sdk module: 'staking', + 'bank', etc.) + key: + type: string + format: byte + title: Key you want to read from the storage + title: >- + The KV-storage keys for which we want to get values from + remote chain + transactions_filter: + type: string + title: The filter for transaction search ICQ + connection_id: + type: string + title: >- + The IBC connection ID for getting ConsensusState to verify + proofs + update_period: + type: string + format: uint64 + description: >- + Parameter that defines how often the query must be + updated. + last_submitted_result_local_height: + type: string + format: uint64 + description: >- + The local chain last block height when the query result + was updated. + last_submitted_result_remote_height: + description: >- + The remote chain last block height when the query result + was updated. + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the + purposes of updating and + + freezing clients + deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Amount of coins deposited for the query. + submit_timeout: + type: string + format: uint64 + description: >- + Timeout before query becomes available for everybody to + remove. + registered_at_height: + type: string + format: uint64 + description: The local chain height when the query was registered. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: query_id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /neutron/interchainqueries/remote_height: + get: + operationId: NeutronInterchainqueriesLastRemoteHeight + responses: + '200': + description: A successful response. + schema: + type: object + properties: + height: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: connection_id + in: query + required: false + type: string + tags: + - Query + /ibc/apps/transfer/v1/denom_hashes/{trace}: + get: + summary: DenomHash queries a denomination hash information. + operationId: NeutronTransferDenomHash + responses: + '200': + description: A successful response. + schema: + type: object + properties: + hash: + type: string + description: hash (in hex format) of the denomination trace information. + description: >- + QueryDenomHashResponse is the response type for the + Query/DenomHash RPC + + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: trace + description: The denomination trace ([port_id]/[channel_id])+/[denom] + in: path + required: true + type: string + tags: + - Query + /ibc/apps/transfer/v1/denom_traces: + get: + summary: DenomTraces queries all denomination traces. + operationId: NeutronTransferDenomTraces + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denom_traces: + type: array + items: + type: object + properties: + path: + type: string + description: >- + path defines the chain of port/channel identifiers used + for tracing the + + source of the fungible token. + base_denom: + type: string + description: base denomination of the relayed fungible token. + description: >- + DenomTrace contains the base denomination for ICS20 fungible + tokens and the + + source tracing information path. + description: denom_traces returns all denominations trace information. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryConnectionsResponse is the response type for the + Query/DenomTraces RPC + + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /ibc/apps/transfer/v1/denom_traces/{hash}: + get: + summary: DenomTrace queries a denomination trace information. + operationId: NeutronTransferDenomTrace + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denom_trace: + description: >- + denom_trace returns the requested denomination trace + information. + type: object + properties: + path: + type: string + description: >- + path defines the chain of port/channel identifiers used + for tracing the + + source of the fungible token. + base_denom: + type: string + description: base denomination of the relayed fungible token. + description: >- + QueryDenomTraceResponse is the response type for the + Query/DenomTrace RPC + + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: hash + description: >- + hash (in hex format) or denom (full denom with ibc prefix) of the + denomination trace information. + in: path + required: true + type: string + tags: + - Query + /ibc/apps/transfer/v1/params: + get: + summary: Params queries all parameters of the ibc-transfer module. + operationId: NeutronTransferParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + send_enabled: + type: boolean + description: >- + send_enabled enables or disables all cross-chain token + transfers from this + + chain. + receive_enabled: + type: boolean + description: >- + receive_enabled enables or disables all cross-chain token + transfers to this + + chain. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/authority_metadata: + get: + operationId: OsmosisTokenfactoryV1Beta1DenomAuthorityMetadata + responses: + '200': + description: A successful response. + schema: + type: object + properties: + authority_metadata: + type: object + properties: + Admin: + type: string + title: Can be empty for no admin, or a valid osmosis address + description: >- + DenomAuthorityMetadata specifies metadata for addresses that + have specific + + capabilities over a token factory denom. Right now there is + only one Admin + + permission, but is planned to be extended to the future. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: creator + in: path + required: true + type: string + - name: subdenom + in: path + required: true + type: string + tags: + - Query + /osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}: + get: + operationId: OsmosisTokenfactoryV1Beta1DenomsFromCreator + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denoms: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: creator + in: path + required: true + type: string + tags: + - Query + /osmosis/tokenfactory/v1beta1/params: + get: + summary: Params returns the total set of minting parameters. + operationId: OsmosisTokenfactoryV1Beta1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + denom_creation_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + title: >- + DenomCreationFee is the fee required to create a new denom + using the tokenfactory module + fee_collector_address: + type: string + title: >- + FeeCollectorAddress is the address where fees collected + from denom creation are sent to + title: Params holds parameters for the tokenfactory module + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /ibc/apps/router/v1/params: + get: + summary: Params queries all parameters of the router module. + operationId: RouterV1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + fee_percentage: + type: string + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query +definitions: + cosmos.auth.v1beta1.AddressBytesToStringResponse: + type: object + properties: + address_string: + type: string + description: >- + AddressBytesToStringResponse is the response type for AddressString rpc + method. + + + Since: cosmos-sdk 0.46 + cosmos.auth.v1beta1.AddressStringToBytesResponse: + type: object + properties: + address_bytes: + type: string + format: byte + description: >- + AddressStringToBytesResponse is the response type for AddressBytes rpc + method. + + + Since: cosmos-sdk 0.46 + cosmos.auth.v1beta1.BaseAccount: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + account_number: + type: string + format: uint64 + sequence: + type: string + format: uint64 + description: >- + BaseAccount defines a base account type. It contains all the necessary + fields + + for basic account functionality. Any custom account type should extend + this + + type for additional functionality (e.g. vesting). + cosmos.auth.v1beta1.Bech32PrefixResponse: + type: object + properties: + bech32_prefix: + type: string + description: |- + Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + + Since: cosmos-sdk 0.46 + cosmos.auth.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.Params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: Params defines the parameters for the auth module. + cosmos.auth.v1beta1.QueryAccountAddressByIDResponse: + type: object + properties: + account_address: + type: string + description: 'Since: cosmos-sdk 0.46.2' + title: >- + QueryAccountAddressByIDResponse is the response type for + AccountAddressByID rpc method + cosmos.auth.v1beta1.QueryAccountInfoResponse: + type: object + properties: + info: + description: info is the account info which is represented by BaseAccount. + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + account_number: + type: string + format: uint64 + sequence: + type: string + format: uint64 + description: |- + QueryAccountInfoResponse is the Query/AccountInfo response type. + + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.QueryAccountResponse: + type: object + properties: + account: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + QueryAccountResponse is the response type for the Query/Account RPC + method. + cosmos.auth.v1beta1.QueryAccountsResponse: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + title: accounts are the existing accounts + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryAccountsResponse is the response type for the Query/Accounts RPC + method. + + + Since: cosmos-sdk 0.43 + cosmos.auth.v1beta1.QueryModuleAccountByNameResponse: + type: object + properties: + account: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + QueryModuleAccountByNameResponse is the response type for the + Query/ModuleAccountByName RPC method. + cosmos.auth.v1beta1.QueryModuleAccountsResponse: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + QueryModuleAccountsResponse is the response type for the + Query/ModuleAccounts RPC method. + + + Since: cosmos-sdk 0.46 + cosmos.auth.v1beta1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: QueryParamsResponse is the response type for the Query/Params RPC method. + cosmos.base.query.v1beta1.PageRequest: + type: object + properties: + key: + type: string + format: byte + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + offset: + type: string + format: uint64 + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + limit: + type: string + format: uint64 + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + count_total: + type: boolean + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in UIs. + + count_total is only respected when offset is used. It is ignored when + key + + is set. + reverse: + type: boolean + description: >- + reverse is set to true if results are to be returned in the descending + order. + + + Since: cosmos-sdk 0.43 + description: |- + message SomeRequest { + Foo some_parameter = 1; + PageRequest pagination = 2; + } + title: |- + PageRequest is to be embedded in gRPC request messages for efficient + pagination. Ex: + cosmos.base.query.v1beta1.PageResponse: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: |- + total is total number of results available if PageRequest.count_total + was set, its value is undefined otherwise + description: |- + PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + google.protobuf.Any: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a canonical + form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types that + they + + expect it to use in the context of Any. However, for URLs which use + the + + scheme `http`, `https`, or no scheme, one can optionally set up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along with + a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + google.rpc.Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + cosmos.authz.v1beta1.Grant: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If null, then the + grant + + doesn't have a time expiration (other conditions in `authorization` + + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + cosmos.authz.v1beta1.GrantAuthorization: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses of the grantee + and granter. + + It is used in genesis.proto and query.proto + cosmos.authz.v1beta1.MsgExecResponse: + type: object + properties: + results: + type: array + items: + type: string + format: byte + description: MsgExecResponse defines the Msg/MsgExecResponse response type. + cosmos.authz.v1beta1.MsgGrantResponse: + type: object + description: MsgGrantResponse defines the Msg/MsgGrant response type. + cosmos.authz.v1beta1.MsgRevokeResponse: + type: object + description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. + cosmos.authz.v1beta1.QueryGranteeGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses of the + grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted to the grantee. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryGranteeGrantsResponse is the response type for the + Query/GranteeGrants RPC method. + cosmos.authz.v1beta1.QueryGranterGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses of the + grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted by the granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryGranterGrantsResponse is the response type for the + Query/GranterGrants RPC method. + cosmos.authz.v1beta1.QueryGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If null, + then the grant + + doesn't have a time expiration (other conditions in + `authorization` + + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + description: authorizations is a list of grants granted for grantee by granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryGrantsResponse is the response type for the Query/Authorizations RPC + method. + cosmos.bank.v1beta1.DenomOwner: + type: object + properties: + address: + type: string + description: address defines the address that owns a particular denomination. + balance: + description: balance is the balance of the denominated coin for an account. + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DenomOwner defines structure representing an account that owns or holds a + particular denominated token. It contains the account address and account + balance of the denominated token. + + Since: cosmos-sdk 0.46 + cosmos.bank.v1beta1.DenomUnit: + type: object + properties: + denom: + type: string + description: denom represents the string name of the given denom unit (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given DenomUnit's denom + + 1 denom = 10^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' + with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + cosmos.bank.v1beta1.Input: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Input models transaction input. + cosmos.bank.v1beta1.Metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom unit (e.g + uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given DenomUnit's + denom + + 1 denom = 10^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a DenomUnit of + 'atom' with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: denom_units represents the list of DenomUnit's for a given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit with exponent + = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: ATOM). This + can + + be the same as the display. + + + Since: cosmos-sdk 0.43 + uri: + type: string + description: >- + URI to a document (on or off-chain) that contains additional + information. Optional. + + + Since: cosmos-sdk 0.46 + uri_hash: + type: string + description: >- + URIHash is a sha256 hash of a document pointed by URI. It's used to + verify that + + the document didn't change. Optional. + + + Since: cosmos-sdk 0.46 + description: |- + Metadata represents a struct that describes + a basic token. + cosmos.bank.v1beta1.MsgMultiSendResponse: + type: object + description: MsgMultiSendResponse defines the Msg/MultiSend response type. + cosmos.bank.v1beta1.MsgSendResponse: + type: object + description: MsgSendResponse defines the Msg/Send response type. + cosmos.bank.v1beta1.MsgSetSendEnabledResponse: + type: object + description: |- + MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.Output: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Output models transaction outputs. + cosmos.bank.v1beta1.Params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is + + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. + + For genesis, use the newly added send_enabled field in the genesis + object. + + Storage, lookup, and manipulation of this information is now in the + keeper. + + + As of cosmos-sdk 0.47, this only exists for backwards compatibility of + genesis files. + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. + cosmos.bank.v1beta1.QueryAllBalancesResponse: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: balances is the balances of all the coins. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryAllBalancesResponse is the response type for the Query/AllBalances + RPC + + method. + cosmos.bank.v1beta1.QueryBalanceResponse: + type: object + properties: + balance: + description: balance is the balance of the coin. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryBalanceResponse is the response type for the Query/Balance RPC + method. + cosmos.bank.v1beta1.QueryDenomMetadataResponse: + type: object + properties: + metadata: + description: >- + metadata describes and provides all the client information for the + requested token. + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom unit + (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given + DenomUnit's denom + + 1 denom = 10^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a DenomUnit + of 'atom' with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: denom_units represents the list of DenomUnit's for a given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit with + exponent = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: ATOM). + This can + + be the same as the display. + + + Since: cosmos-sdk 0.43 + uri: + type: string + description: >- + URI to a document (on or off-chain) that contains additional + information. Optional. + + + Since: cosmos-sdk 0.46 + uri_hash: + type: string + description: >- + URIHash is a sha256 hash of a document pointed by URI. It's used + to verify that + + the document didn't change. Optional. + + + Since: cosmos-sdk 0.46 + description: >- + QueryDenomMetadataResponse is the response type for the + Query/DenomMetadata RPC + + method. + cosmos.bank.v1beta1.QueryDenomOwnersResponse: + type: object + properties: + denom_owners: + type: array + items: + type: object + properties: + address: + type: string + description: address defines the address that owns a particular denomination. + balance: + description: balance is the balance of the denominated coin for an account. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DenomOwner defines structure representing an account that owns or + holds a + + particular denominated token. It contains the account address and + account + + balance of the denominated token. + + + Since: cosmos-sdk 0.46 + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC + query. + + + Since: cosmos-sdk 0.46 + cosmos.bank.v1beta1.QueryDenomsMetadataResponse: + type: object + properties: + metadatas: + type: array + items: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom unit + (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given + DenomUnit's denom + + 1 denom = 10^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a + DenomUnit of 'atom' with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: denom_units represents the list of DenomUnit's for a given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit with + exponent = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: + ATOM). This can + + be the same as the display. + + + Since: cosmos-sdk 0.43 + uri: + type: string + description: >- + URI to a document (on or off-chain) that contains additional + information. Optional. + + + Since: cosmos-sdk 0.46 + uri_hash: + type: string + description: >- + URIHash is a sha256 hash of a document pointed by URI. It's used + to verify that + + the document didn't change. Optional. + + + Since: cosmos-sdk 0.46 + description: |- + Metadata represents a struct that describes + a basic token. + description: >- + metadata provides the client information for all the registered + tokens. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryDenomsMetadataResponse is the response type for the + Query/DenomsMetadata RPC + + method. + cosmos.bank.v1beta1.QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is + + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. + + For genesis, use the newly added send_enabled field in the genesis + object. + + Storage, lookup, and manipulation of this information is now in + the keeper. + + + As of cosmos-sdk 0.47, this only exists for backwards + compatibility of genesis files. + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. + description: >- + QueryParamsResponse defines the response type for querying x/bank + parameters. + cosmos.bank.v1beta1.QuerySendEnabledResponse: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is + + sendable). + pagination: + description: |- + pagination defines the pagination in the response. This field is only + populated if the denoms field in the request is empty. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: |- + QuerySendEnabledResponse defines the RPC response of a SendEnable query. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse: + type: object + properties: + balance: + description: balance is the balance of the coin. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QuerySpendableBalanceByDenomResponse defines the gRPC response structure + for + + querying an account's spendable balance for a specific denom. + + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.QuerySpendableBalancesResponse: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: balances is the spendable balances of all the coins. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QuerySpendableBalancesResponse defines the gRPC response structure for + querying + + an account's spendable balances. + + + Since: cosmos-sdk 0.46 + cosmos.bank.v1beta1.QuerySupplyOfResponse: + type: object + properties: + amount: + description: amount is the supply of the coin. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC + method. + cosmos.bank.v1beta1.QueryTotalSupplyResponse: + type: object + properties: + supply: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: supply is the supply of the coins + pagination: + description: |- + pagination defines the pagination in the response. + + Since: cosmos-sdk 0.43 + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + title: >- + QueryTotalSupplyResponse is the response type for the Query/TotalSupply + RPC + + method + cosmos.bank.v1beta1.SendEnabled: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: |- + SendEnabled maps coin denom to a send_enabled status (whether a denom is + sendable). + cosmos.base.v1beta1.Coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + cosmos.base.tendermint.v1beta1.ABCIQueryResponse: + type: object + properties: + code: + type: integer + format: int64 + log: + type: string + title: nondeterministic + info: + type: string + title: nondeterministic + index: + type: string + format: int64 + key: + type: string + format: byte + value: + type: string + format: byte + proof_ops: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + description: >- + ProofOp defines an operation used for calculating Merkle root. + The data could + + be arbitrary format, providing necessary data for example + neighbouring node + + hash. + + + Note: This type is a duplicate of the ProofOp proto type defined + in Tendermint. + description: >- + ProofOps is Merkle proof defined by the list of ProofOps. + + + Note: This type is a duplicate of the ProofOps proto type defined in + Tendermint. + height: + type: string + format: int64 + codespace: + type: string + description: >- + ABCIQueryResponse defines the response structure for the ABCIQuery gRPC + query. + + + Note: This type is a duplicate of the ResponseQuery proto type defined in + + Tendermint. + cosmos.base.tendermint.v1beta1.Block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, formatted + as a Bech32 string. + + In Tendermint, this type is `bytes`, but in the SDK, we convert it + to a Bech32 string + + for better UX. + + + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and + the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from + the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block was + committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + description: |- + Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. + cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + block: + title: 'Deprecated: please use `sdk_block` instead' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + + including all blockchain data structures + and the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + sdk_block: + title: 'Since: cosmos-sdk 0.47' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, + formatted as a Bech32 string. + + In Tendermint, this type is `bytes`, but in the SDK, we + convert it to a Bech32 string + + for better UX. + + + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + + including all blockchain data structures + and the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). This - can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - description: |- - Metadata represents a struct that describes - a basic token. - cosmos.bank.v1beta1.MsgMultiSendResponse: - type: object - description: MsgMultiSendResponse defines the Msg/MultiSend response type. - cosmos.bank.v1beta1.MsgSendResponse: - type: object - description: MsgSendResponse defines the Msg/Send response type. - cosmos.bank.v1beta1.Output: - type: object - properties: - address: - type: string - coins: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: Output models transaction outputs. - cosmos.bank.v1beta1.Params: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - cosmos.bank.v1beta1.QueryAllBalancesResponse: - type: object - properties: - balances: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: balances is the balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. description: >- - QueryAllBalancesResponse is the response type for the Query/AllBalances - RPC - - method. - cosmos.bank.v1beta1.QueryBalanceResponse: + GetBlockByHeightResponse is the response type for the + Query/GetBlockByHeight RPC method. + cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: type: object properties: - balance: - description: balance is the balance of the coin. + block_id: type: object properties: - denom: - type: string - amount: + hash: type: string - description: >- - QueryBalanceResponse is the response type for the Query/Balance RPC - method. - cosmos.bank.v1beta1.QueryDenomMetadataResponse: - type: object - properties: - metadata: - description: >- - metadata describes and provides all the client information for the - requested token. + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + block: + title: 'Deprecated: please use `sdk_block` instead' type: object properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given - DenomUnit's denom - - 1 denom = 1^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a DenomUnit - of 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). - This can - - be the same as the display. - + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, - Since: cosmos-sdk 0.43 - description: >- - QueryDenomMetadataResponse is the response type for the - Query/DenomMetadata RPC + including all blockchain data structures and the rules of the + application's - method. - cosmos.bank.v1beta1.QueryDenomsMetadataResponse: - type: object - properties: - metadatas: - type: array - items: - type: object - properties: - description: - type: string - denom_units: - type: array - items: + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: type: object properties: - denom: + hash: type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given - DenomUnit's denom - - 1 denom = 1^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: - ATOM). This can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - description: |- - Metadata represents a struct that describes - a basic token. - description: >- - metadata provides the client information for all the registered - tokens. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryDenomsMetadataResponse is the response type for the - Query/DenomsMetadata RPC - - method. - cosmos.bank.v1beta1.QueryParamsResponse: - type: object - properties: - params: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + data: + type: object + properties: + txs: + type: array + items: type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. - sendable). - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - description: >- - QueryParamsResponse defines the response type for querying x/bank - parameters. - cosmos.bank.v1beta1.QuerySpendableBalancesResponse: - type: object - properties: - balances: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + NOTE: not all txs here are valid. We're just agreeing on the + order first. - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: balances is the spendable balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. - was set, its value is undefined otherwise - description: >- - QuerySpendableBalancesResponse defines the gRPC response structure for - querying + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for - an account's spendable balances. - cosmos.bank.v1beta1.QuerySupplyOfResponse: - type: object - properties: - amount: - description: amount is the supply of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC - method. - cosmos.bank.v1beta1.QueryTotalSupplyResponse: - type: object - properties: - supply: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: supply is the supply of the coins - pagination: - description: |- - pagination defines the pagination in the response. + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for - Since: cosmos-sdk 0.43 - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, - was set, its value is undefined otherwise - title: >- - QueryTotalSupplyResponse is the response type for the Query/TotalSupply - RPC + including all blockchain data structures + and the rules of the application's - method - cosmos.bank.v1beta1.SendEnabled: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: |- - SendEnabled maps coin denom to a send_enabled status (whether a denom is - sendable). - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: - type: object - properties: - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: type: object properties: - total: - type: integer - format: int64 - hash: + height: type: string - format: byte - title: PartsetHeader - title: BlockID - block: + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + sdk_block: + title: 'Since: cosmos-sdk 0.47' type: object properties: header: @@ -34429,9 +44912,18 @@ definitions: title: consensus info proposer_address: type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. + description: >- + proposer_address is the original block proposer address, + formatted as a Bech32 string. + + In Tendermint, this type is `bytes`, but in the SDK, we + convert it to a Bech32 string + + for better UX. + + + original proposer of the block + description: Header defines the structure of a Tendermint block header. data: type: object properties: @@ -34895,13 +45387,543 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: |- + Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. description: >- - GetBlockByHeightResponse is the response type for the - Query/GetBlockByHeight RPC method. - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: + GetLatestBlockResponse is the response type for the Query/GetLatestBlock + RPC method. + cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: type: object properties: - block_id: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + GetLatestValidatorSetResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. + cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: + type: object + properties: + default_node_info: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + application_version: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + title: 'Since: cosmos-sdk 0.43' + description: VersionInfo is the type for the GetNodeInfoResponse message. + description: >- + GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC + method. + cosmos.base.tendermint.v1beta1.GetSyncingResponse: + type: object + properties: + syncing: + type: boolean + description: >- + GetSyncingResponse is the response type for the Query/GetSyncing RPC + method. + cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + GetValidatorSetByHeightResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. + cosmos.base.tendermint.v1beta1.Header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: type: object properties: hash: @@ -34918,1835 +45940,2577 @@ definitions: format: byte title: PartsetHeader title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, formatted as + a Bech32 string. + + In Tendermint, this type is `bytes`, but in the SDK, we convert it to + a Bech32 string + + for better UX. + + + original proposer of the block + description: Header defines the structure of a Tendermint block header. + cosmos.base.tendermint.v1beta1.Module: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos.base.tendermint.v1beta1.ProofOp: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + description: >- + ProofOp defines an operation used for calculating Merkle root. The data + could + + be arbitrary format, providing necessary data for example neighbouring + node + + hash. + + + Note: This type is a duplicate of the ProofOp proto type defined in + Tendermint. + cosmos.base.tendermint.v1beta1.ProofOps: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + description: >- + ProofOp defines an operation used for calculating Merkle root. The + data could + + be arbitrary format, providing necessary data for example + neighbouring node + + hash. + + + Note: This type is a duplicate of the ProofOp proto type defined in + Tendermint. + description: >- + ProofOps is Merkle proof defined by the list of ProofOps. + + + Note: This type is a duplicate of the ProofOps proto type defined in + Tendermint. + cosmos.base.tendermint.v1beta1.Validator: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + cosmos.base.tendermint.v1beta1.VersionInfo: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + title: 'Since: cosmos-sdk 0.43' + description: VersionInfo is the type for the GetNodeInfoResponse message. + tendermint.crypto.PublicKey: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + tendermint.p2p.DefaultNodeInfo: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + tendermint.p2p.DefaultNodeInfoOther: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + tendermint.p2p.ProtocolVersion: + type: object + properties: + p2p: + type: string + format: uint64 block: + type: string + format: uint64 + app: + type: string + format: uint64 + tendermint.types.Block: + type: object + properties: + header: type: object properties: - header: + version: + title: basic block info type: object properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: + block: type: string - height: + format: uint64 + app: type: string - format: int64 - time: + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: type: string - format: date-time - last_block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. - NOTE: not all txs here are valid. We're just agreeing on the - order first. + NOTE: not all txs here are valid. We're just agreeing on the + order first. - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: evidence: - type: object - properties: - evidence: - type: array - items: + type: array + items: + type: object + properties: + duplicate_vote_evidence: type: object properties: - duplicate_vote_evidence: + vote_a: type: object properties: - vote_a: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the consensus. - vote_b: + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 + title: PartsetHeader + title: BlockID + description: zero if vote is nil. timestamp: type: string format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: type: object properties: - conflicting_block: + signed_header: type: object properties: - signed_header: + header: type: object properties: - header: + version: + title: basic block info type: object properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, - - including all blockchain data structures - and the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: >- - commit from validators from the last - block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs - from the previous block - evidence_hash: + block: type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: + format: uint64 + app: type: string - format: byte - title: original proposer of the block + format: uint64 description: >- - Header defines the structure of a block - header. - commit: + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and + the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: type: object properties: - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from + the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: type: object properties: - validators: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: type: array items: type: object properties: - address: + block_id_flag: type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN title: >- - PublicKey defines the keys available for - use with Validators - voting_power: + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: type: string - format: int64 - proposer_priority: + format: byte + timestamp: type: string - format: int64 - proposer: + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block was + committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: type: object properties: - address: + ed25519: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: + secp256k1: type: string - format: int64 - total_voting_power: + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: type: string format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: type: object properties: - address: + ed25519: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: + secp256k1: type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: type: string - format: byte + format: int64 timestamp: type: string format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - description: >- - GetLatestBlockResponse is the response type for the Query/GetLatestBlock - RPC method. - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: - type: object - properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally set - up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - GetLatestValidatorSetResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: - type: object - properties: - default_node_info: + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: type: object properties: - protocol_version: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: + height: type: string - other: + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - tx_index: - type: string - rpc_address: + hash: type: string - application_version: - type: object - properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: type: array items: type: object properties: - path: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: type: string - title: module path - version: + format: byte + timestamp: type: string - title: module version - sum: + format: date-time + signature: type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. - description: >- - GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC - method. - cosmos.base.tendermint.v1beta1.GetSyncingResponse: - type: object - properties: - syncing: - type: boolean - description: >- - GetSyncingResponse is the response type for the Query/GetSyncing RPC - method. - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + tendermint.types.BlockID: type: object properties: - block_height: + hash: type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally set - up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. + format: byte + part_set_header: type: object properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently total: + type: integer + format: int64 + hash: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - GetValidatorSetByHeightResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - cosmos.base.tendermint.v1beta1.Module: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos.base.tendermint.v1beta1.Validator: + format: byte + title: PartsetHeader + title: BlockID + tendermint.types.BlockIDFlag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + tendermint.types.Commit: type: object properties: - address: + height: type: string - pub_key: + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - '@type': + hash: type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - cosmos.base.tendermint.v1beta1.VersionInfo: - type: object - properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: type: array items: type: object properties: - path: + block_id_flag: type: string - title: module path - version: + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: type: string - title: module version - sum: + format: byte + timestamp: type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. - tendermint.crypto.PublicKey: + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + tendermint.types.CommitSig: type: object properties: - ed25519: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: type: string format: byte - secp256k1: + timestamp: + type: string + format: date-time + signature: type: string format: byte - title: PublicKey defines the keys available for use with Validators - tendermint.p2p.DefaultNodeInfo: + description: CommitSig is a part of the Vote included in a Commit. + tendermint.types.Data: type: object properties: - protocol_version: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the order + first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + tendermint.types.DuplicateVoteEvidence: + type: object + properties: + vote_a: type: object properties: - p2p: + type: type: string - format: uint64 - block: + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: type: string - format: uint64 - app: + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: - type: string - other: + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from validators + for + + consensus. + vote_b: type: object properties: - tx_index: + type: type: string - rpc_address: + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: type: string - tendermint.p2p.DefaultNodeInfoOther: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - tendermint.p2p.ProtocolVersion: - type: object - properties: - p2p: + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from validators + for + + consensus. + total_voting_power: type: string - format: uint64 - block: + format: int64 + validator_power: type: string - format: uint64 - app: + format: int64 + timestamp: type: string - format: uint64 - tendermint.types.Block: + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed two + conflicting votes. + tendermint.types.Evidence: type: object properties: - header: + duplicate_vote_evidence: type: object properties: - version: - title: basic block info + vote_a: type: object properties: - block: + type: type: string - format: uint64 - app: + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: type: string - format: uint64 + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, + Vote represents a prevote, precommit, or commit vote from + validators for - including all blockchain data structures and the rules of the - application's + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. - state transition machine. - chain_id: + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from + validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed two + conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, + + including all blockchain data structures and the rules + of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: type: string - height: + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: type: string format: int64 - time: + timestamp: type: string format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block + description: >- + LightClientAttackEvidence contains evidence of a set of validators + attempting to mislead a light client. + tendermint.types.EvidenceList: + type: object + properties: evidence: - type: object - properties: - evidence: - type: array - items: + type: array + items: + type: object + properties: + duplicate_vote_evidence: type: object properties: - duplicate_vote_evidence: + vote_a: type: object properties: - vote_a: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from + validators for + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the consensus. - vote_b: + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 + title: PartsetHeader + title: BlockID + description: zero if vote is nil. timestamp: type: string format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: + Vote represents a prevote, precommit, or commit vote from + validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed + two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: type: object properties: - conflicting_block: + signed_header: type: object properties: - signed_header: + header: type: object properties: - header: + version: + title: basic block info type: object properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - - including all blockchain data structures and - the rules of the application's - - state transition machine. - chain_id: + block: type: string - height: + format: uint64 + app: type: string - format: int64 - time: + format: uint64 + description: >- + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and the + rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: type: string - format: date-time - last_block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from - the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: + title: PartsetHeader + title: BlockID + signatures: type: array items: type: object properties: - address: + block_id_flag: type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN title: >- - PublicKey defines the keys available for - use with Validators - voting_power: + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: type: string - format: int64 - proposer_priority: + format: byte + timestamp: type: string - format: int64 - proposer: + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was + committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: type: object properties: - address: + ed25519: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: + secp256k1: type: string - format: int64 - total_voting_power: + format: byte + title: >- + PublicKey defines the keys available for use + with Validators + voting_power: type: string format: int64 - common_height: + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + tendermint.types.Header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + tendermint.types.LightBlock: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: type: string - format: int64 - byzantine_validators: - type: array - items: + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + tendermint.types.LightClientAttackEvidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a + block in the blockchain, + + including all blockchain data structures and the rules of + the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: type: object properties: - address: + total: + type: integer + format: int64 + hash: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the previous + block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer format: int64 - proposer_priority: + hash: type: string - format: int64 - total_voting_power: + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the signature is + for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a + set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: type: string format: int64 - timestamp: + proposer_priority: type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of validators + attempting to mislead a light client. + tendermint.types.PartSetHeader: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + tendermint.types.SignedHeader: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: type: object properties: height: @@ -36799,2218 +48563,1939 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. - tendermint.types.BlockID: + tendermint.types.SignedMsgType: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + tendermint.types.Validator: type: object properties: - hash: + address: type: string format: byte - part_set_header: + pub_key: type: object properties: - total: - type: integer - format: int64 - hash: + ed25519: type: string format: byte - title: PartsetHeader - title: BlockID - tendermint.types.BlockIDFlag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - tendermint.types.Commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: + secp256k1: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: + title: PublicKey defines the keys available for use with Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + tendermint.types.ValidatorSet: + type: object + properties: + validators: type: array items: type: object properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: + address: type: string format: byte - timestamp: + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + voting_power: type: string - format: date-time - signature: + format: int64 + proposer_priority: type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.CommitSig: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - tendermint.types.Data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the order - first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - tendermint.types.DuplicateVoteEvidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: type: object properties: - hash: + ed25519: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Validators + voting_power: type: string - format: byte - validator_index: - type: integer - format: int32 - signature: + format: int64 + proposer_priority: type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from validators - for + format: int64 + total_voting_power: + type: string + format: int64 + tendermint.types.Vote: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. - consensus. - vote_b: + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from validators - for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 + title: PartsetHeader + title: BlockID + description: zero if vote is nil. timestamp: type: string format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: |- + Vote represents a prevote, precommit, or commit vote from validators for + consensus. + tendermint.version.Consensus: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - tendermint.types.Evidence: + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + cosmos.consensus.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + cosmos.consensus.v1.QueryParamsResponse: type: object properties: - duplicate_vote_evidence: + params: + description: >- + params are the tendermint consensus params stored in the consensus + module. + + Please note that `params.version` is not populated in this response, + it is + + tracked separately in the x/upgrade module. type: object properties: - vote_a: + block: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + max_bytes: type: string format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for - - consensus. - vote_b: + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + description: BlockParams contains limits on the block size. + evidence: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + max_age_num_blocks: type: string format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: + description: >- + Max age of evidence, in blocks. + + + The basic formula for calculating this is: MaxAgeDuration / + {average block + + time}. + max_age_duration: type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + description: >- + Max age of evidence, in time. - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, - including all blockchain data structures and the rules - of the application's + It should correspond with an app's "unbonding period" or other + similar - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was committed by - a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + mechanism for handling [Nothing-At-Stake + + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can + be committed in a single block. + + and should fall comfortably under the max block bytes. + + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + description: |- + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + version: + type: object + properties: + app: + type: string + format: uint64 + description: VersionParams contains the ABCI application version. + description: >- + QueryParamsResponse defines the response type for querying x/consensus + parameters. + tendermint.types.BlockParams: + type: object + properties: + max_bytes: + type: string + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: + type: string + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + description: BlockParams contains limits on the block size. + tendermint.types.ConsensusParams: + type: object + properties: + block: + type: object + properties: + max_bytes: type: string format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: type: string format: int64 - timestamp: + title: |- + Max gas per block. + Note: must be greater or equal to -1 + description: BlockParams contains limits on the block size. + evidence: + type: object + properties: + max_age_num_blocks: type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.EvidenceList: + format: int64 + description: >- + Max age of evidence, in blocks. + + + The basic formula for calculating this is: MaxAgeDuration / + {average block + + time}. + max_age_duration: + type: string + description: >- + Max age of evidence, in time. + + + It should correspond with an app's "unbonding period" or other + similar + + mechanism for handling [Nothing-At-Stake + + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can be + committed in a single block. + + and should fall comfortably under the max block bytes. + + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + description: |- + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + version: + type: object + properties: + app: + type: string + format: uint64 + description: VersionParams contains the ABCI application version. + description: |- + ConsensusParams contains consensus critical parameters that determine the + validity of blocks. + tendermint.types.EvidenceParams: type: object properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. + max_age_num_blocks: + type: string + format: int64 + description: >- + Max age of evidence, in blocks. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. + The basic formula for calculating this is: MaxAgeDuration / {average + block - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + time}. + max_age_duration: + type: string + description: >- + Max age of evidence, in time. - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed - two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - including all blockchain data structures and the - rules of the application's + It should correspond with an app's "unbonding period" or other similar - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - tendermint.types.Header: + mechanism for handling [Nothing-At-Stake + + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can be + committed in a single block. + + and should fall comfortably under the max block bytes. + + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + tendermint.types.ValidatorParams: type: object properties: - version: - title: basic block info + pub_key_types: + type: array + items: + type: string + description: |- + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + tendermint.types.VersionParams: + type: object + properties: + app: + type: string + format: uint64 + description: VersionParams contains the ABCI application version. + cosmos.crisis.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: + type: object + description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. + cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: + type: object + properties: + hash: + type: string + format: byte + description: hash defines the hash of the evidence. + description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. + cosmos.evidence.v1beta1.QueryAllEvidenceResponse: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: evidence returns all evidences. + pagination: + description: pagination defines the pagination in the response. type: object properties: - block: + next_key: type: string - format: uint64 - app: + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, + title: >- + total is total number of results available if + PageRequest.count_total - including all blockchain data structures and the rules of the - application's + was set, its value is undefined otherwise + description: >- + QueryAllEvidenceResponse is the response type for the Query/AllEvidence + RPC - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: + method. + cosmos.evidence.v1beta1.QueryEvidenceResponse: + type: object + properties: + evidence: + description: evidence returns the requested evidence. type: object properties: - hash: + '@type': type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - tendermint.types.LightBlock: + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + QueryEvidenceResponse is the response type for the Query/Evidence RPC + method. + cosmos.feegrant.v1beta1.Grant: type: object properties: - signed_header: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - including all blockchain data structures and the rules of the - application's + protocol buffer message. This string must contain at least - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - validator_set: + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: + type: object + description: >- + MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response + type. + cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: + type: object + description: >- + MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse + response type. + cosmos.feegrant.v1beta1.QueryAllowanceResponse: + type: object + properties: + allowance: + description: allowance is a allowance granted for grantee by granter. type: object properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: + '@type': type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.LightClientAttackEvidence: + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + description: >- + QueryAllowanceResponse is the response type for the Query/Allowance RPC + method. + cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse: type: object properties: - conflicting_block: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of + their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic, periodic, allowed fee allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + description: allowances that have been issued by the granter. + pagination: + description: pagination defines an pagination for the response. type: object properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a - block in the blockchain, + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - including all blockchain data structures and the rules of - the application's + was set, its value is undefined otherwise + description: >- + QueryAllowancesByGranterResponse is the response type for the + Query/AllowancesByGranter RPC method. - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the previous - block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the signature is - for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a - set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + + Since: cosmos-sdk 0.46 + cosmos.feegrant.v1beta1.QueryAllowancesResponse: + type: object + properties: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of + their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic, periodic, allowed fee allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + description: allowances are allowance's granted for grantee by granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryAllowancesResponse is the response type for the Query/Allowances RPC + method. + cosmos.mint.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.mint.v1beta1.Params: + type: object + properties: + mint_denom: type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: + title: type of coin to mint + inflation_rate_change: type: string - format: int64 - timestamp: + title: maximum annual change in inflation rate + inflation_max: type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.PartSetHeader: + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded atoms + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: Params defines the parameters for the x/mint module. + cosmos.mint.v1beta1.QueryAnnualProvisionsResponse: type: object properties: - total: - type: integer - format: int64 - hash: + annual_provisions: type: string format: byte - title: PartsetHeader - tendermint.types.SignedHeader: + description: annual_provisions is the current minting annual provisions value. + description: |- + QueryAnnualProvisionsResponse is the response type for the + Query/AnnualProvisions RPC method. + cosmos.mint.v1beta1.QueryInflationResponse: type: object properties: - header: + inflation: + type: string + format: byte + description: inflation is the current minting inflation value. + description: |- + QueryInflationResponse is the response type for the Query/Inflation RPC + method. + cosmos.mint.v1beta1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. type: object properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: + mint_denom: type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: + title: type of coin to mint + inflation_rate_change: type: string - format: byte - title: validators for the next block - consensus_hash: + title: maximum annual change in inflation rate + inflation_max: type: string - format: byte - title: consensus params for current block - app_hash: + title: maximum inflation rate + inflation_min: type: string - format: byte - title: state after txs from the previous block - last_results_hash: + title: minimum inflation rate + goal_bonded: type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: + title: goal of percent bonded atoms + blocks_per_year: type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: + format: uint64 + title: expected blocks per year + description: QueryParamsResponse is the response type for the Query/Params RPC method. + cosmos.nft.v1beta1.Class: + type: object + properties: + id: + type: string + title: >- + id defines the unique identifier of the NFT classification, similar to + the contract address of ERC721 + name: + type: string + title: >- + name defines the human-readable name of the NFT classification. + Optional + symbol: + type: string + title: symbol is an abbreviated name for nft classification. Optional + description: + type: string + title: description is a brief description of nft classification. Optional + uri: + type: string + title: >- + uri for the class metadata stored off chain. It can define schema for + Class and NFT `Data` attributes. Optional + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri. Optional + data: + title: data is the app specific metadata of the NFT class. Optional + type: object + properties: + '@type': type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: Class defines the class of the nft type. + cosmos.nft.v1beta1.MsgSendResponse: + type: object + description: MsgSendResponse defines the Msg/Send response type. + cosmos.nft.v1beta1.NFT: + type: object + properties: + class_id: + type: string + title: >- + class_id associated with the NFT, similar to the contract address of + ERC721 + id: + type: string + title: id is a unique identifier of the NFT + uri: + type: string + title: uri for the NFT metadata stored off chain + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri + data: + title: data is an app specific data of the NFT. Optional type: object properties: - height: + '@type': type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.SignedMsgType: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - tendermint.types.Validator: + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: NFT defines the NFT. + cosmos.nft.v1beta1.QueryBalanceResponse: type: object properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: + amount: type: string - format: int64 - tendermint.types.ValidatorSet: + format: uint64 + title: amount is the number of all NFTs of a given class owned by the owner + title: QueryBalanceResponse is the response type for the Query/Balance RPC method + cosmos.nft.v1beta1.QueryClassResponse: type: object properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: + class: + description: class defines the class of the nft type. type: object properties: - address: + id: type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: + title: >- + id defines the unique identifier of the NFT classification, + similar to the contract address of ERC721 + name: type: string - format: int64 - proposer_priority: + title: >- + name defines the human-readable name of the NFT classification. + Optional + symbol: type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.Vote: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: + title: symbol is an abbreviated name for nft classification. Optional + description: type: string - format: byte - part_set_header: + title: description is a brief description of nft classification. Optional + uri: + type: string + title: >- + uri for the class metadata stored off chain. It can define schema + for Class and NFT `Data` attributes. Optional + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri. Optional + data: + title: data is the app specific metadata of the NFT class. Optional type: object properties: - total: - type: integer - format: int64 - hash: + '@type': type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: |- - Vote represents a prevote, precommit, or commit vote from validators for - consensus. - tendermint.version.Consensus: - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: - type: object - description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: - type: object - properties: - hash: - type: string - format: byte - description: hash defines the hash of the evidence. - description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. - cosmos.evidence.v1beta1.QueryAllEvidenceResponse: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path must + represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be in a + canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all types - that they + In practice, teams usually precompile into the binary all + types that they - expect it to use in the context of Any. However, for URLs which - use the + expect it to use in the context of Any. However, for URLs + which use the - scheme `http`, `https`, or no scheme, one can optionally set up - a type + scheme `http`, `https`, or no scheme, one can optionally set + up a type - server that maps type URLs to message definitions as follows: + server that maps type URLs to message definitions as follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in the + official - protobuf release, and it is not used for type URLs beginning - with + protobuf release, and it is not used for type URLs beginning + with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) might - be + Schemes other than `http`, `https` (or the empty scheme) might + be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in the - form + Protobuf library provides support to pack/unpack Any values in the + form - of utility functions or additional generated methods of the Any - type. + of utility functions or additional generated methods of the Any + type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - } + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - methods only use the fully qualified type name after the last '/' + The pack methods provided by protobuf library will by default use - in the type URL, for example "foo.bar.com/x/y.z" will yield type + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - name "y.z". + methods only use the fully qualified type name after the last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield type + name "y.z". - JSON - ==== - The JSON representation of an `Any` value uses the regular + JSON - representation of the deserialized, embedded message, with an + ==== - additional field `@type` which contains the type URL. Example: + The JSON representation of an `Any` value uses the regular - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + representation of the deserialized, embedded message, with an - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + additional field `@type` which contains the type URL. Example: - If the embedded message type is well-known and has a custom JSON + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - representation, that representation will be embedded adding a field + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - `value` which holds the custom JSON in addition to the `@type` + If the embedded message type is well-known and has a custom JSON - field. Example (for message [google.protobuf.Duration][]): + representation, that representation will be embedded adding a + field - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: evidence returns all evidences. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + `value` which holds the custom JSON in addition to the `@type` - was set, its value is undefined otherwise - description: >- - QueryAllEvidenceResponse is the response type for the Query/AllEvidence - RPC + field. Example (for message [google.protobuf.Duration][]): - method. - cosmos.evidence.v1beta1.QueryEvidenceResponse: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + title: QueryClassResponse is the response type for the Query/Class RPC method + cosmos.nft.v1beta1.QueryClassesResponse: type: object properties: - evidence: - description: evidence returns the requested evidence. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + classes: + type: array + items: + type: object + properties: + id: + type: string + title: >- + id defines the unique identifier of the NFT classification, + similar to the contract address of ERC721 + name: + type: string + title: >- + name defines the human-readable name of the NFT classification. + Optional + symbol: + type: string + title: symbol is an abbreviated name for nft classification. Optional + description: + type: string + title: >- + description is a brief description of nft classification. + Optional + uri: + type: string + title: >- + uri for the class metadata stored off chain. It can define + schema for Class and NFT `Data` attributes. Optional + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri. Optional + data: + title: data is the app specific metadata of the NFT class. Optional + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with - the fully qualified name of the type (as in + type.googleapis.com. - `path/google.protobuf.Duration`). The name should be in a - canonical form - (e.g., leading "." is not accepted). + Schemes other than `http`, `https` (or the empty scheme) + might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - In practice, teams usually precompile into the binary all types - that they + URL that describes the type of the serialized message. - expect it to use in the context of Any. However, for URLs which - use the - scheme `http`, `https`, or no scheme, one can optionally set up a - type + Protobuf library provides support to pack/unpack Any values in + the form - server that maps type URLs to message definitions as follows: + of utility functions or additional generated methods of the Any + type. - * If no scheme is provided, `https` is assumed. + Example 1: Pack and unpack a message in C++. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Note: this functionality is not currently available in the - official + Example 2: Pack and unpack a message in Java. - protobuf release, and it is not used for type URLs beginning with + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - type.googleapis.com. + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Schemes other than `http`, `https` (or the empty scheme) might be + Example 4: Pack and unpack a message in Go - used with implementation specific semantics. - additionalProperties: {} - description: >- - QueryEvidenceResponse is the response type for the Query/Evidence RPC - method. - cosmos.feegrant.v1beta1.Grant: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - protocol buffer message. This string must contain at least + The pack methods provided by protobuf library will by default + use - one "/" character. The last segment of the URL's path must - represent + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - the fully qualified name of the type (as in + methods only use the fully qualified type name after the last + '/' - `path/google.protobuf.Duration`). The name should be in a - canonical form + in the type URL, for example "foo.bar.com/x/y.z" will yield type - (e.g., leading "." is not accepted). + name "y.z". - In practice, teams usually precompile into the binary all types - that they - expect it to use in the context of Any. However, for URLs which - use the + JSON - scheme `http`, `https`, or no scheme, one can optionally set up a - type + ==== - server that maps type URLs to message definitions as follows: + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an - * If no scheme is provided, `https` is assumed. + additional field `@type` which contains the type URL. Example: - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - Note: this functionality is not currently available in the - official + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - protobuf release, and it is not used for type URLs beginning with + If the embedded message type is well-known and has a custom JSON - type.googleapis.com. + representation, that representation will be embedded adding a + field + `value` which holds the custom JSON in addition to the `@type` - Schemes other than `http`, `https` (or the empty scheme) might be + field. Example (for message [google.protobuf.Duration][]): - used with implementation specific semantics. - additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: - type: object - description: >- - MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response - type. - cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: - type: object - description: >- - MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse - response type. - cosmos.feegrant.v1beta1.QueryAllowanceResponse: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: Class defines the class of the nft type. + description: class defines the class of the nft type. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + title: QueryClassesResponse is the response type for the Query/Classes RPC method + cosmos.nft.v1beta1.QueryNFTResponse: type: object properties: - allowance: - description: allowance is a allowance granted for grantee by granter. + nft: + title: owner is the owner address of the nft type: object properties: - granter: + class_id: type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: + title: >- + class_id associated with the NFT, similar to the contract address + of ERC721 + id: type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. + title: id is a unique identifier of the NFT + uri: + type: string + title: uri for the NFT metadata stored off chain + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri + data: + title: data is an app specific data of the NFT. Optional type: object properties: '@type': @@ -39069,133 +50554,136 @@ definitions: used with implementation specific semantics. additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - description: >- - QueryAllowanceResponse is the response type for the Query/Allowance RPC - method. - cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse: - type: object - properties: - allowances: - type: array - items: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - protocol buffer message. This string must contain at least + URL that describes the type of the serialized message. - one "/" character. The last segment of the URL's path must - represent - the fully qualified name of the type (as in + Protobuf library provides support to pack/unpack Any values in the + form - `path/google.protobuf.Duration`). The name should be in a - canonical form + of utility functions or additional generated methods of the Any + type. - (e.g., leading "." is not accepted). + Example 1: Pack and unpack a message in C++. - In practice, teams usually precompile into the binary all - types that they + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - expect it to use in the context of Any. However, for URLs - which use the + Example 2: Pack and unpack a message in Java. - scheme `http`, `https`, or no scheme, one can optionally set - up a type + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - server that maps type URLs to message definitions as - follows: + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - * If no scheme is provided, `https` is assumed. + Example 4: Pack and unpack a message in Go - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Note: this functionality is not currently available in the - official + The pack methods provided by protobuf library will by default use - protobuf release, and it is not used for type URLs beginning - with + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - type.googleapis.com. + methods only use the fully qualified type name after the last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield type - Schemes other than `http`, `https` (or the empty scheme) - might be + name "y.z". - used with implementation specific semantics. - additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - description: allowances that have been issued by the granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - was set, its value is undefined otherwise - description: >- - QueryAllowancesByGranterResponse is the response type for the - Query/AllowancesByGranter RPC method. - cosmos.feegrant.v1beta1.QueryAllowancesResponse: + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: NFT defines the NFT. + title: QueryNFTResponse is the response type for the Query/NFT RPC method + cosmos.nft.v1beta1.QueryNFTsResponse: type: object properties: - allowances: + nfts: type: array items: type: object properties: - granter: + class_id: type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: + title: >- + class_id associated with the NFT, similar to the contract + address of ERC721 + id: type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. + title: id is a unique identifier of the NFT + uri: + type: string + title: uri for the NFT metadata stored off chain + uri_hash: + type: string + title: uri_hash is a hash of the document pointed by uri + data: + title: data is an app specific data of the NFT. Optional type: object properties: '@type': @@ -39256,18 +50744,125 @@ definitions: used with implementation specific semantics. additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - description: allowances are allowance's granted for grantee by granter. + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: NFT defines the NFT. + title: NFT defines the NFT pagination: - description: pagination defines an pagination for the response. + description: pagination defines the pagination in the response. type: object properties: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -39276,9 +50871,22 @@ definitions: PageRequest.count_total was set, its value is undefined otherwise - description: >- - QueryAllowancesResponse is the response type for the Query/Allowances RPC - method. + title: QueryNFTsResponse is the response type for the Query/NFTs RPC methods + cosmos.nft.v1beta1.QueryOwnerResponse: + type: object + properties: + owner: + type: string + title: owner is the owner address of the nft + title: QueryOwnerResponse is the response type for the Query/Owner RPC method + cosmos.nft.v1beta1.QuerySupplyResponse: + type: object + properties: + amount: + type: string + format: uint64 + title: amount is the number of all NFTs from the given class + title: QuerySupplyResponse is the response type for the Query/Supply RPC method cosmos.params.v1beta1.ParamChange: type: object properties: @@ -39305,9 +50913,57 @@ definitions: value: type: string description: QueryParamsResponse is response type for the Query/Params RPC method. + cosmos.params.v1beta1.QuerySubspacesResponse: + type: object + properties: + subspaces: + type: array + items: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + description: >- + Subspace defines a parameter subspace name and all the keys that + exist for + + the subspace. + + + Since: cosmos-sdk 0.46 + description: |- + QuerySubspacesResponse defines the response types for querying for all + registered subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 + cosmos.params.v1beta1.Subspace: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + description: |- + Subspace defines a parameter subspace name and all the keys that exist for + the subspace. + + Since: cosmos-sdk 0.46 cosmos.slashing.v1beta1.MsgUnjailResponse: type: object title: MsgUnjailResponse defines the Msg/Unjail response type + cosmos.slashing.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 cosmos.slashing.v1beta1.Params: type: object properties: @@ -39463,9 +51119,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -39606,6 +51263,11 @@ definitions: length prefixed in order to separate data from multiple message executions. + + Deprecated. This field is still populated, but prefer msg_response + instead + + because it also contains the Msg response typeURL. log: type: string description: Log contains the log information from message or handler execution. @@ -39623,10 +51285,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -39646,6 +51306,172 @@ definitions: message or handler execution. + msg_responses: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: |- + msg_responses contains the Msg handler responses type packed in Anys. + + Since: cosmos-sdk 0.46 description: Result is the union of ResponseFormat and ResponseCheckTx. cosmos.base.abci.v1beta1.StringEvent: type: object @@ -39831,10 +51657,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -39856,7 +51680,7 @@ definitions: these events include those emitted by processing all the messages and those - emitted from the ante handler. Whereas Logs contains the events, with + emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages. @@ -39887,21 +51711,35 @@ definitions: - SIGN_MODE_UNSPECIFIED - SIGN_MODE_DIRECT - SIGN_MODE_TEXTUAL + - SIGN_MODE_DIRECT_AUX - SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_EIP_191 default: SIGN_MODE_UNSPECIFIED description: |- SignMode represents a signing mode with its own security guarantees. + This enum should be considered a registry of all known sign modes + in the Cosmos ecosystem. Apps are not expected to support all known + sign modes. Apps that would like to support custom sign modes are + encouraged to open a small PR against this file to add a new case + to this SignMode enum describing their sign mode so that different + apps have a consistent version of this enum. + - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - rejected + rejected. - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - verified with raw bytes from Tx + verified with raw bytes from Tx. - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some human-readable textual representation on top of the binary representation - from SIGN_MODE_DIRECT + from SIGN_MODE_DIRECT. It is currently not supported. + - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + require signers signing over other signers' `signer_info`. It also allows + for adding Tips in transactions. + + Since: cosmos-sdk 0.46 - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - Amino JSON and will be removed in the future + Amino JSON and will be removed in the future. - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 @@ -39991,6 +51829,42 @@ definitions: appropriate fee grant does not exist or the chain does not support fee grants, this will fail + tip: + description: >- + Tip is the optional tip used for transactions fees paid in another + denom. + + + This field is ignored if the chain didn't enable tips, i.e. didn't add + the + + `TipDecorator` in its posthandler. + + + Since: cosmos-sdk 0.46 + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: amount is the amount of the tip + tipper: + type: string + title: tipper is the address of the account paying for the tip description: |- AuthInfo describes the fee and signer modes that are used to sign a transaction. @@ -40007,8 +51881,8 @@ definitions: method. - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - the tx to be committed in a block. + - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, + BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for a CheckTx execution response only. - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns @@ -40033,8 +51907,8 @@ definitions: RPC method. - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - the tx to be committed in a block. + - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, + BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for a CheckTx execution response only. - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns @@ -40214,10 +52088,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -40239,8 +52111,7 @@ definitions: these events include those emitted by processing all the messages and those - emitted from the ante handler. Whereas Logs contains the events, - with + emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages. @@ -40888,9 +52759,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -41080,10 +52952,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -41105,8 +52975,7 @@ definitions: these events include those emitted by processing all the messages and those - emitted from the ante handler. Whereas Logs contains the events, - with + emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages. @@ -41294,10 +53163,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -41319,8 +53186,7 @@ definitions: these events include those emitted by processing all the messages and those - emitted from the ante handler. Whereas Logs contains the events, - with + emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages. @@ -41333,15 +53199,18 @@ definitions: tags are stringified and the log is JSON decoded. description: tx_responses is the list of queried TxResponses. pagination: - description: pagination defines a pagination for the response. + description: |- + pagination defines a pagination for the response. + Deprecated post v0.46.x: use total instead. type: object properties: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -41350,6 +53219,10 @@ definitions: PageRequest.count_total was set, its value is undefined otherwise + total: + type: string + format: uint64 + title: total is total number of results available description: |- GetTxsEventResponse is the response type for the Service.TxsByEvents RPC method. @@ -41367,6 +53240,7 @@ definitions: - SIGN_MODE_UNSPECIFIED - SIGN_MODE_DIRECT - SIGN_MODE_TEXTUAL + - SIGN_MODE_DIRECT_AUX - SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_EIP_191 default: SIGN_MODE_UNSPECIFIED @@ -41374,17 +53248,42 @@ definitions: SignMode represents a signing mode with its own security guarantees. + + This enum should be considered a registry of all known sign modes + + in the Cosmos ecosystem. Apps are not expected to support all + known + + sign modes. Apps that would like to support custom sign modes are + + encouraged to open a small PR against this file to add a new case + + to this SignMode enum describing their sign mode so that different + + apps have a consistent version of this enum. + - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - rejected + rejected. - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - verified with raw bytes from Tx + verified with raw bytes from Tx. - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some human-readable textual representation on top of the binary representation - from SIGN_MODE_DIRECT + from SIGN_MODE_DIRECT. It is currently not supported. + - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode + does not + + require signers signing over other signers' `signer_info`. It also + allows + + for adding Tips in transactions. + + + Since: cosmos-sdk 0.46 - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - Amino JSON and will be removed in the future + Amino JSON and will be removed in the future. - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 @@ -41448,23 +53347,48 @@ definitions: - SIGN_MODE_UNSPECIFIED - SIGN_MODE_DIRECT - SIGN_MODE_TEXTUAL + - SIGN_MODE_DIRECT_AUX - SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_EIP_191 default: SIGN_MODE_UNSPECIFIED description: >- SignMode represents a signing mode with its own security guarantees. + + This enum should be considered a registry of all known sign modes + + in the Cosmos ecosystem. Apps are not expected to support all known + + sign modes. Apps that would like to support custom sign modes are + + encouraged to open a small PR against this file to add a new case + + to this SignMode enum describing their sign mode so that different + + apps have a consistent version of this enum. + - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - rejected + rejected. - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - verified with raw bytes from Tx + verified with raw bytes from Tx. - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some human-readable textual representation on top of the binary representation - from SIGN_MODE_DIRECT + from SIGN_MODE_DIRECT. It is currently not supported. + - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does + not + + require signers signing over other signers' `signer_info`. It also + allows + + for adding Tips in transactions. + + + Since: cosmos-sdk 0.46 - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - Amino JSON and will be removed in the future + Amino JSON and will be removed in the future. - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 @@ -41632,6 +53556,11 @@ definitions: length prefixed in order to separate data from multiple message executions. + + Deprecated. This field is still populated, but prefer msg_response + instead + + because it also contains the Msg response typeURL. log: type: string description: >- @@ -41651,10 +53580,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -41674,9 +53601,209 @@ definitions: message or handler execution. + msg_responses: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + msg_responses contains the Msg handler responses type packed in + Anys. + + + Since: cosmos-sdk 0.46 description: |- SimulateResponse is the response type for the Service.SimulateRPC method. + cosmos.tx.v1beta1.Tip: + type: object + properties: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: amount is the amount of the tip + tipper: + type: string + title: tipper is the address of the account paying for the tip + description: |- + Tip is the tip used for meta-transactions. + + Since: cosmos-sdk 0.46 cosmos.tx.v1beta1.Tx: type: object properties: @@ -42627,177 +54754,265 @@ definitions: when the default options are not sufficient. If any of these are present - and can't be handled, the transaction will be rejected - non_critical_extension_options: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up - a type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might - be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + and can't be handled, the transaction will be rejected + non_critical_extension_options: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + title: >- + extension_options are arbitrary options that can be added by chains + + when the default options are not sufficient. If any of these are + present + + and can't be handled, they will be ignored + description: TxBody is the body of a transaction that all signers sign over. + cosmos.tx.v1beta1.TxDecodeAminoRequest: + type: object + properties: + amino_binary: + type: string + format: byte + description: |- + TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino + RPC method. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxDecodeAminoResponse: + type: object + properties: + amino_json: + type: string + description: |- + TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino + RPC method. - If the embedded message type is well-known and has a custom JSON + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxDecodeRequest: + type: object + properties: + tx_bytes: + type: string + format: byte + description: tx_bytes is the raw transaction. + description: |- + TxDecodeRequest is the request type for the Service.TxDecode + RPC method. - representation, that representation will be embedded adding a field + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxDecodeResponse: + type: object + properties: + tx: + $ref: '#/definitions/cosmos.tx.v1beta1.Tx' + description: tx is the decoded transaction. + description: |- + TxDecodeResponse is the response type for the + Service.TxDecode method. - `value` which holds the custom JSON in addition to the `@type` + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxEncodeAminoRequest: + type: object + properties: + amino_json: + type: string + description: |- + TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino + RPC method. - field. Example (for message [google.protobuf.Duration][]): + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxEncodeAminoResponse: + type: object + properties: + amino_binary: + type: string + format: byte + description: |- + TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino + RPC method. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - title: >- - extension_options are arbitrary options that can be added by chains + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxEncodeRequest: + type: object + properties: + tx: + $ref: '#/definitions/cosmos.tx.v1beta1.Tx' + description: tx is the transaction to encode. + description: |- + TxEncodeRequest is the request type for the Service.TxEncode + RPC method. - when the default options are not sufficient. If any of these are - present + Since: cosmos-sdk 0.47 + cosmos.tx.v1beta1.TxEncodeResponse: + type: object + properties: + tx_bytes: + type: string + format: byte + description: tx_bytes is the encoded transaction bytes. + description: |- + TxEncodeResponse is the response type for the + Service.TxEncode method. - and can't be handled, they will be ignored - description: TxBody is the body of a transaction that all signers sign over. + Since: cosmos-sdk 0.47 tendermint.abci.Event: type: object properties: @@ -42810,10 +55025,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -42830,10 +55043,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -42852,6 +55063,18 @@ definitions: ModuleVersion specifies a module and its consensus version. Since: cosmos-sdk 0.43 + cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse: + type: object + description: |- + MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + + Since: cosmos-sdk 0.46 + cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse: + type: object + description: |- + MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + + Since: cosmos-sdk 0.46 cosmos.upgrade.v1beta1.Plan: type: object properties: @@ -42888,9 +55111,7 @@ definitions: height: type: string format: int64 - description: |- - The height at which the upgrade must be performed. - Only used if Time is not set. + description: The height at which the upgrade must be performed. info: type: string title: |- @@ -42974,6 +55195,13 @@ definitions: RPC method. + cosmos.upgrade.v1beta1.QueryAuthorityResponse: + type: object + properties: + address: + type: string + description: 'Since: cosmos-sdk 0.46' + title: QueryAuthorityResponse is the response type for Query/Authority cosmos.upgrade.v1beta1.QueryCurrentPlanResponse: type: object properties: @@ -43016,9 +55244,7 @@ definitions: height: type: string format: int64 - description: |- - The height at which the upgrade must be performed. - Only used if Time is not set. + description: The height at which the upgrade must be performed. info: type: string title: >- @@ -43139,11 +55365,51 @@ definitions: Query/UpgradedConsensusState RPC method. + cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse: + type: object + description: >- + MsgCreateVestingAccountResponse defines the + Msg/CreatePeriodicVestingAccount + + response type. + + + Since: cosmos-sdk 0.46 + cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse: + type: object + description: >- + MsgCreatePermanentLockedAccountResponse defines the + Msg/CreatePermanentLockedAccount response type. + + + Since: cosmos-sdk 0.46 cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse: type: object description: >- MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. + cosmos.vesting.v1beta1.Period: + type: object + properties: + length: + type: string + format: int64 + description: Period duration in seconds. + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Period defines a length of time and amount of coins that will vest. cosmwasm.wasm.v1.AbsoluteTxPosition: type: object properties: @@ -43462,6 +55728,28 @@ definitions: Data contains same raw bytes returned as data from the wasm contract. (May be empty) description: MsgMigrateContractResponse returns contract migration result data. + cosmwasm.wasm.v1.MsgPinCodesResponse: + type: object + description: |- + MsgPinCodesResponse defines the response structure for executing a + MsgPinCodes message. + + Since: 0.40 + cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse: + type: object + properties: + address: + type: string + description: Address is the bech32 address of the new contract instance. + data: + type: string + format: byte + title: Data contains bytes to returned from the contract + description: |- + MsgStoreAndInstantiateContractResponse defines the response structure + for executing a MsgStoreAndInstantiateContract message. + + Since: 0.40 cosmwasm.wasm.v1.MsgStoreCodeResponse: type: object properties: @@ -43474,12 +55762,38 @@ definitions: format: byte title: Checksum is the sha256 hash of the stored code description: MsgStoreCodeResponse returns store result data. + cosmwasm.wasm.v1.MsgSudoContractResponse: + type: object + properties: + data: + type: string + format: byte + title: Data contains bytes to returned from the contract + description: |- + MsgSudoContractResponse defines the response structure for executing a + MsgSudoContract message. + + Since: 0.40 + cosmwasm.wasm.v1.MsgUnpinCodesResponse: + type: object + description: |- + MsgUnpinCodesResponse defines the response structure for executing a + MsgUnpinCodes message. + + Since: 0.40 cosmwasm.wasm.v1.MsgUpdateAdminResponse: type: object title: MsgUpdateAdminResponse returns empty data cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse: type: object title: MsgUpdateInstantiateConfigResponse returns empty data + cosmwasm.wasm.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.40 cosmwasm.wasm.v1.Params: type: object properties: @@ -43557,9 +55871,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -43678,9 +55993,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -43747,9 +56063,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -43886,9 +56203,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -43915,9 +56233,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -44001,9 +56320,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -44035,6 +56355,21 @@ definitions: title: |- QuerySmartContractStateResponse is the response type for the Query/SmartContractState RPC method + ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse: + type: object + properties: + channel_id: + type: string + title: >- + MsgRegisterInterchainAccountResponse defines the response for + Msg/RegisterAccount + ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse: + type: object + properties: + sequence: + type: string + format: uint64 + title: MsgSendTxResponse defines the response for MsgSendTx ibc.applications.interchain_accounts.controller.v1.Params: type: object properties: @@ -44063,6 +56398,45 @@ definitions: type: boolean description: controller_enabled enables or disables the controller submodule. description: QueryParamsResponse is the response type for the Query/Params RPC method. + ibc.applications.interchain_accounts.v1.InterchainAccountPacketData: + type: object + properties: + type: + type: string + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED + description: |- + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain + title: >- + Type defines a classification of message issued from a controller + chain to its associated interchain accounts + + host + data: + type: string + format: byte + memo: + type: string + description: >- + InterchainAccountPacketData is comprised of a raw transaction, type of + transaction and optional memo field. + ibc.applications.interchain_accounts.v1.Type: + type: string + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED + description: |- + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain + title: >- + Type defines a classification of message issued from a controller chain to + its associated interchain accounts + + host ibc.applications.interchain_accounts.host.v1.Params: type: object properties: @@ -45052,9 +57426,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -45187,9 +57562,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -45360,9 +57736,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -45494,9 +57871,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -46521,9 +58899,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -46603,9 +58982,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -47043,9 +59423,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -47622,6 +60003,21 @@ definitions: description: >- MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. + ibc.core.connection.v1.Params: + type: object + properties: + max_expected_time_per_block: + type: string + format: uint64 + description: >- + maximum expected time per block (in nanoseconds), used to enforce + block delay. This parameter should reflect the + + largest amount of time that the chain might reasonably take to produce + the next block under normal operating + + conditions. A safe choice is 3-5x the expected time per block. + description: Params defines the set of Connection parameters. ibc.core.connection.v1.QueryClientConnectionsResponse: type: object properties: @@ -48076,6 +60472,27 @@ definitions: title: |- QueryConnectionConsensusStateResponse is the response type for the Query/ConnectionConsensusState RPC method + ibc.core.connection.v1.QueryConnectionParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + max_expected_time_per_block: + type: string + format: uint64 + description: >- + maximum expected time per block (in nanoseconds), used to enforce + block delay. This parameter should reflect the + + largest amount of time that the chain might reasonably take to + produce the next block under normal operating + + conditions. A safe choice is 3-5x the expected time per block. + description: >- + QueryConnectionParamsResponse is the response type for the + Query/ConnectionParams RPC method. ibc.core.connection.v1.QueryConnectionResponse: type: object properties: @@ -48302,9 +60719,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -48614,425 +61032,7 @@ definitions: set can opt out title: Params defines the parameters for CCV consumer module description: QueryParamsResponse is response type for the Query/Params RPC method. - cosmos.staking.v1beta1.InfractionType: - type: string - enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: |- - InfractionType indicates the infraction type a validator commited. - - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. - ibc.core.commitment.v1.MerkleRoot: - type: object - properties: - hash: - type: string - format: byte - description: |- - MerkleRoot defines a merkle root hash. - In the Cosmos SDK, the AppHash of a block header becomes the root. - ibc.lightclients.tendermint.v1.ClientState: - type: object - properties: - chain_id: - type: string - trust_level: - type: object - properties: - numerator: - type: string - format: uint64 - denominator: - type: string - format: uint64 - description: >- - Fraction defines the protobuf message type for tmmath.Fraction that - only - - supports positive values. - trusting_period: - type: string - title: |- - duration of the period since the LastestTimestamp during which the - submitted headers are valid for upgrade - unbonding_period: - type: string - title: duration of the staking unbonding period - max_clock_drift: - type: string - description: >- - defines how much new (untrusted) header's Time can drift into the - future. - frozen_height: - title: Block height when the client was frozen due to a misbehaviour - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - latest_height: - title: Latest height the client was updated to - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - proof_specs: - type: array - items: - type: object - properties: - leaf_spec: - title: >- - any field in the ExistenceProof must be the same as in this - spec. - - except Prefix, which is just the first bytes of prefix (spec can - be longer) - type: object - properties: - hash: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data passed. Note - this is an illegal argument some places. - - BITCOIN: ripemd160(sha256(x)) - prehash_key: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data passed. Note - this is an illegal argument some places. - - BITCOIN: ripemd160(sha256(x)) - prehash_value: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data passed. Note - this is an illegal argument some places. - - BITCOIN: ripemd160(sha256(x)) - length: - type: string - enum: - - NO_PREFIX - - VAR_PROTO - - VAR_RLP - - FIXED32_BIG - - FIXED32_LITTLE - - FIXED64_BIG - - FIXED64_LITTLE - - REQUIRE_32_BYTES - - REQUIRE_64_BYTES - default: NO_PREFIX - description: |- - - NO_PREFIX: NO_PREFIX don't include any length info - - VAR_PROTO: VAR_PROTO uses protobuf (and go-amino) varint encoding of the length - - VAR_RLP: VAR_RLP uses rlp int encoding of the length - - FIXED32_BIG: FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer - - FIXED32_LITTLE: FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer - - FIXED64_BIG: FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer - - FIXED64_LITTLE: FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer - - REQUIRE_32_BYTES: REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) - - REQUIRE_64_BYTES: REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) - title: >- - * - - LengthOp defines how to process the key and value of the - LeafOp - - to include length information. After encoding the length - with the given - - algorithm, the length will be prepended to the key and value - bytes. - - (Each one with it's own encoded length) - prefix: - type: string - format: byte - description: >- - prefix is a fixed bytes that may optionally be included at - the beginning to differentiate - - a leaf node from an inner node. - description: >- - * - - LeafOp represents the raw key-value data we wish to prove, and - - must be flexible to represent the internal transformation from - - the original key-value pairs into the basis hash, for many - existing - - merkle trees. - - - key and value are passed in. So that the signature of this - operation is: - - leafOp(key, value) -> output - - - To process this, first prehash the keys and values if needed - (ANY means no hash in this case): - - hkey = prehashKey(key) - - hvalue = prehashValue(value) - - - Then combine the bytes, and hash it - - output = hash(prefix || length(hkey) || hkey || length(hvalue) - || hvalue) - inner_spec: - type: object - properties: - child_order: - type: array - items: - type: integer - format: int32 - title: >- - Child order is the ordering of the children node, must count - from 0 - - iavl tree is [0, 1] (left then right) - - merk is [0, 2, 1] (left, right, here) - child_size: - type: integer - format: int32 - min_prefix_length: - type: integer - format: int32 - max_prefix_length: - type: integer - format: int32 - empty_child: - type: string - format: byte - title: >- - empty child is the prehash image that is used when one child - is nil (eg. 20 bytes of 0) - hash: - type: string - enum: - - NO_HASH - - SHA256 - - SHA512 - - KECCAK - - RIPEMD160 - - BITCOIN - - SHA512_256 - default: NO_HASH - title: >- - - NO_HASH: NO_HASH is the default if no data passed. Note - this is an illegal argument some places. - - BITCOIN: ripemd160(sha256(x)) - description: >- - InnerSpec contains all store-specific structure info to - determine if two proofs from a - - given store are neighbors. - - - This enables: - - - isLeftMost(spec: InnerSpec, op: InnerOp) - - isRightMost(spec: InnerSpec, op: InnerOp) - - isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - max_depth: - type: integer - format: int32 - title: >- - max_depth (if > 0) is the maximum number of InnerOps allowed - (mainly for fixed-depth tries) - min_depth: - type: integer - format: int32 - title: >- - min_depth (if > 0) is the minimum number of InnerOps allowed - (mainly for fixed-depth tries) - description: >- - * - - ProofSpec defines what the expected parameters are for a given proof - type. - - This can be stored in the client and used to validate any incoming - proofs. - - - verify(ProofSpec, Proof) -> Proof | Error - - - As demonstrated in tests, if we don't fix the algorithm used to - calculate the - - LeafHash for a given tree, there are many possible key-value pairs - that can - - generate a given hash (by interpretting the preimage differently). - - We need this for proper security, requires client knows a priori - what - - tree format server uses. But not in code, rather a configuration - object. - title: Proof specifications used in verifying counterparty state - upgrade_path: - type: array - items: - type: string - title: >- - Path at which next upgraded client will be committed. - - Each element corresponds to the key for a single CommitmentProof in - the - - chained proof. NOTE: ClientState must stored under - - `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be - stored - - under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains - using - - the default upgrade module, upgrade_path should be []string{"upgrade", - - "upgradedIBCState"}` - allow_update_after_expiry: - type: boolean - title: |- - This flag, when set to true, will allow governance to recover a client - which has expired - allow_update_after_misbehaviour: - type: boolean - title: >- - This flag, when set to true, will allow governance to unfreeze a - client - - whose chain has experienced a misbehaviour event - description: >- - ClientState from Tendermint tracks the current validator set, latest - height, - - and a possible frozen height. - ibc.lightclients.tendermint.v1.ConsensusState: - type: object - properties: - timestamp: - type: string - format: date-time - description: >- - timestamp that corresponds to the block height in which the - ConsensusState - - was stored. - root: - title: commitment root (i.e app hash) - type: object - properties: - hash: - type: string - format: byte - description: |- - MerkleRoot defines a merkle root hash. - In the Cosmos SDK, the AppHash of a block header becomes the root. - next_validators_hash: - type: string - format: byte - description: ConsensusState defines the consensus state from Tendermint. - ibc.lightclients.tendermint.v1.Fraction: - type: object - properties: - numerator: - type: string - format: uint64 - denominator: - type: string - format: uint64 - description: |- - Fraction defines the protobuf message type for tmmath.Fraction that only - supports positive values. - ics23.HashOp: + cosmos.ics23.v1.HashOp: type: string enum: - NO_HASH @@ -49047,7 +61047,7 @@ definitions: - NO_HASH: NO_HASH is the default if no data passed. Note this is an illegal argument some places. - BITCOIN: ripemd160(sha256(x)) - ics23.InnerSpec: + cosmos.ics23.v1.InnerSpec: type: object properties: child_order: @@ -49104,7 +61104,7 @@ definitions: isRightMost(spec: InnerSpec, op: InnerOp) isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - ics23.LeafOp: + cosmos.ics23.v1.LeafOp: type: object properties: hash: @@ -49222,7 +61222,7 @@ definitions: Then combine the bytes, and hash it output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - ics23.LengthOp: + cosmos.ics23.v1.LengthOp: type: string enum: - NO_PREFIX @@ -49251,7 +61251,7 @@ definitions: to include length information. After encoding the length with the given algorithm, the length will be prepended to the key and value bytes. (Each one with it's own encoded length) - ics23.ProofSpec: + cosmos.ics23.v1.ProofSpec: type: object properties: leaf_spec: @@ -49474,6 +61474,418 @@ definitions: We need this for proper security, requires client knows a priori what tree format server uses. But not in code, rather a configuration object. + cosmos.staking.v1beta1.Infraction: + type: string + enum: + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: |- + Infraction indicates the infraction a validator commited. + + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + ibc.core.commitment.v1.MerkleRoot: + type: object + properties: + hash: + type: string + format: byte + description: |- + MerkleRoot defines a merkle root hash. + In the Cosmos SDK, the AppHash of a block header becomes the root. + ibc.lightclients.tendermint.v1.ClientState: + type: object + properties: + chain_id: + type: string + trust_level: + type: object + properties: + numerator: + type: string + format: uint64 + denominator: + type: string + format: uint64 + description: >- + Fraction defines the protobuf message type for tmmath.Fraction that + only + + supports positive values. + trusting_period: + type: string + title: |- + duration of the period since the LastestTimestamp during which the + submitted headers are valid for upgrade + unbonding_period: + type: string + title: duration of the staking unbonding period + max_clock_drift: + type: string + description: >- + defines how much new (untrusted) header's Time can drift into the + future. + frozen_height: + title: Block height when the client was frozen due to a misbehaviour + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + + RevisionNumber the same. However some consensus algorithms may choose + to + + reset the height in certain conditions e.g. hard forks, state-machine + + breaking changes In these cases, the RevisionNumber is incremented so + that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + latest_height: + title: Latest height the client was updated to + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + + RevisionNumber the same. However some consensus algorithms may choose + to + + reset the height in certain conditions e.g. hard forks, state-machine + + breaking changes In these cases, the RevisionNumber is incremented so + that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + proof_specs: + type: array + items: + type: object + properties: + leaf_spec: + title: >- + any field in the ExistenceProof must be the same as in this + spec. + + except Prefix, which is just the first bytes of prefix (spec can + be longer) + type: object + properties: + hash: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data passed. Note + this is an illegal argument some places. + - BITCOIN: ripemd160(sha256(x)) + prehash_key: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data passed. Note + this is an illegal argument some places. + - BITCOIN: ripemd160(sha256(x)) + prehash_value: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data passed. Note + this is an illegal argument some places. + - BITCOIN: ripemd160(sha256(x)) + length: + type: string + enum: + - NO_PREFIX + - VAR_PROTO + - VAR_RLP + - FIXED32_BIG + - FIXED32_LITTLE + - FIXED64_BIG + - FIXED64_LITTLE + - REQUIRE_32_BYTES + - REQUIRE_64_BYTES + default: NO_PREFIX + description: |- + - NO_PREFIX: NO_PREFIX don't include any length info + - VAR_PROTO: VAR_PROTO uses protobuf (and go-amino) varint encoding of the length + - VAR_RLP: VAR_RLP uses rlp int encoding of the length + - FIXED32_BIG: FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer + - FIXED32_LITTLE: FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer + - FIXED64_BIG: FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer + - FIXED64_LITTLE: FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer + - REQUIRE_32_BYTES: REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) + - REQUIRE_64_BYTES: REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) + title: >- + * + + LengthOp defines how to process the key and value of the + LeafOp + + to include length information. After encoding the length + with the given + + algorithm, the length will be prepended to the key and value + bytes. + + (Each one with it's own encoded length) + prefix: + type: string + format: byte + description: >- + prefix is a fixed bytes that may optionally be included at + the beginning to differentiate + + a leaf node from an inner node. + description: >- + * + + LeafOp represents the raw key-value data we wish to prove, and + + must be flexible to represent the internal transformation from + + the original key-value pairs into the basis hash, for many + existing + + merkle trees. + + + key and value are passed in. So that the signature of this + operation is: + + leafOp(key, value) -> output + + + To process this, first prehash the keys and values if needed + (ANY means no hash in this case): + + hkey = prehashKey(key) + + hvalue = prehashValue(value) + + + Then combine the bytes, and hash it + + output = hash(prefix || length(hkey) || hkey || length(hvalue) + || hvalue) + inner_spec: + type: object + properties: + child_order: + type: array + items: + type: integer + format: int32 + title: >- + Child order is the ordering of the children node, must count + from 0 + + iavl tree is [0, 1] (left then right) + + merk is [0, 2, 1] (left, right, here) + child_size: + type: integer + format: int32 + min_prefix_length: + type: integer + format: int32 + max_prefix_length: + type: integer + format: int32 + empty_child: + type: string + format: byte + title: >- + empty child is the prehash image that is used when one child + is nil (eg. 20 bytes of 0) + hash: + type: string + enum: + - NO_HASH + - SHA256 + - SHA512 + - KECCAK + - RIPEMD160 + - BITCOIN + - SHA512_256 + default: NO_HASH + title: >- + - NO_HASH: NO_HASH is the default if no data passed. Note + this is an illegal argument some places. + - BITCOIN: ripemd160(sha256(x)) + description: >- + InnerSpec contains all store-specific structure info to + determine if two proofs from a + + given store are neighbors. + + + This enables: + + + isLeftMost(spec: InnerSpec, op: InnerOp) + + isRightMost(spec: InnerSpec, op: InnerOp) + + isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) + max_depth: + type: integer + format: int32 + title: >- + max_depth (if > 0) is the maximum number of InnerOps allowed + (mainly for fixed-depth tries) + min_depth: + type: integer + format: int32 + title: >- + min_depth (if > 0) is the minimum number of InnerOps allowed + (mainly for fixed-depth tries) + description: >- + * + + ProofSpec defines what the expected parameters are for a given proof + type. + + This can be stored in the client and used to validate any incoming + proofs. + + + verify(ProofSpec, Proof) -> Proof | Error + + + As demonstrated in tests, if we don't fix the algorithm used to + calculate the + + LeafHash for a given tree, there are many possible key-value pairs + that can + + generate a given hash (by interpretting the preimage differently). + + We need this for proper security, requires client knows a priori + what + + tree format server uses. But not in code, rather a configuration + object. + title: Proof specifications used in verifying counterparty state + upgrade_path: + type: array + items: + type: string + title: >- + Path at which next upgraded client will be committed. + + Each element corresponds to the key for a single CommitmentProof in + the + + chained proof. NOTE: ClientState must stored under + + `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be + stored + + under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains + using + + the default upgrade module, upgrade_path should be []string{"upgrade", + + "upgradedIBCState"}` + allow_update_after_expiry: + type: boolean + title: allow_update_after_expiry is deprecated + allow_update_after_misbehaviour: + type: boolean + title: allow_update_after_misbehaviour is deprecated + description: >- + ClientState from Tendermint tracks the current validator set, latest + height, + + and a possible frozen height. + ibc.lightclients.tendermint.v1.ConsensusState: + type: object + properties: + timestamp: + type: string + format: date-time + description: >- + timestamp that corresponds to the block height in which the + ConsensusState + + was stored. + root: + title: commitment root (i.e app hash) + type: object + properties: + hash: + type: string + format: byte + description: |- + MerkleRoot defines a merkle root hash. + In the Cosmos SDK, the AppHash of a block header becomes the root. + next_validators_hash: + type: string + format: byte + description: ConsensusState defines the consensus state from Tendermint. + ibc.lightclients.tendermint.v1.Fraction: + type: object + properties: + numerator: + type: string + format: uint64 + denominator: + type: string + format: uint64 + description: |- + Fraction defines the protobuf message type for tmmath.Fraction that only + supports positive values. interchain_security.ccv.consumer.v1.GenesisState: type: object properties: @@ -49922,18 +62334,10 @@ definitions: "upgradedIBCState"}` allow_update_after_expiry: type: boolean - title: >- - This flag, when set to true, will allow governance to recover a - client - - which has expired + title: allow_update_after_expiry is deprecated allow_update_after_misbehaviour: type: boolean - title: >- - This flag, when set to true, will allow governance to unfreeze a - client - - whose chain has experienced a misbehaviour event + title: allow_update_after_misbehaviour is deprecated provider_consensus_state: description: ProviderConsensusState filled in on new chain, nil on restart. type: object @@ -49986,9 +62390,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators power: type: string format: int64 @@ -50073,17 +62475,17 @@ definitions: double-signing infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED description: >- - InfractionType indicates the infraction type a validator + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: >- This packet is sent from the consumer chain to the provider chain @@ -51165,18 +63567,10 @@ definitions: "upgradedIBCState"}` allow_update_after_expiry: type: boolean - title: >- - This flag, when set to true, will allow governance to recover - a client - - which has expired + title: allow_update_after_expiry is deprecated allow_update_after_misbehaviour: type: boolean - title: >- - This flag, when set to true, will allow governance to unfreeze - a client - - whose chain has experienced a misbehaviour event + title: allow_update_after_misbehaviour is deprecated provider_consensus_state: description: ProviderConsensusState filled in on new chain, nil on restart. type: object @@ -51233,9 +63627,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators power: type: string format: int64 @@ -51320,17 +63712,17 @@ definitions: double-signing infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED description: >- - InfractionType indicates the infraction type a - validator commited. + Infraction indicates the infraction a validator + commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: >- This packet is sent from the consumer chain to the provider chain @@ -51466,17 +63858,16 @@ definitions: infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: >- - InfractionType indicates the infraction type a validator - commited. + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: |- + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: >- This packet is sent from the consumer chain to the provider chain @@ -51528,17 +63919,16 @@ definitions: infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: >- - InfractionType indicates the infraction type a validator - commited. + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: |- + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: >- This packet is sent from the consumer chain to the provider chain @@ -51604,16 +63994,16 @@ definitions: infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED description: |- - InfractionType indicates the infraction type a validator commited. + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: |- This packet is sent from the consumer chain to the provider chain to request the slashing of a validator as a result of an infraction @@ -51700,16 +64090,16 @@ definitions: infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED description: |- - InfractionType indicates the infraction type a validator commited. + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: |- This packet is sent from the consumer chain to the provider chain to request the slashing of a validator as a result of an infraction @@ -51760,16 +64150,16 @@ definitions: infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED description: |- - InfractionType indicates the infraction type a validator commited. + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: |- This packet is sent from the consumer chain to the provider chain to request the slashing of a validator as a result of an infraction @@ -51833,17 +64223,16 @@ definitions: infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED - description: >- - InfractionType indicates the infraction type a validator - commited. + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: |- + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: >- This packet is sent from the consumer chain to the provider chain @@ -51904,16 +64293,16 @@ definitions: title: tell if the slashing is for a downtime or a double-signing infraction type: string enum: - - INFRACTION_TYPE_UNSPECIFIED - - INFRACTION_TYPE_DOUBLE_SIGN - - INFRACTION_TYPE_DOWNTIME - default: INFRACTION_TYPE_UNSPECIFIED + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED description: |- - InfractionType indicates the infraction type a validator commited. + Infraction indicates the infraction a validator commited. - - INFRACTION_TYPE_UNSPECIFIED: UNSPECIFIED defines an empty infraction type. - - INFRACTION_TYPE_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_TYPE_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. description: |- This packet is sent from the consumer chain to the provider chain to request the slashing of a validator as a result of an infraction @@ -51953,9 +64342,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators power: type: string format: int64 @@ -52022,9 +64409,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -52148,9 +64536,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -52970,10 +65359,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -53262,9 +65649,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -53812,10 +66200,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -54316,10 +66702,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -54554,10 +66938,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -54658,10 +67040,8 @@ definitions: properties: key: type: string - format: byte value: type: string - format: byte index: type: boolean title: nondeterministic @@ -54879,9 +67259,10 @@ definitions: next_key: type: string format: byte - title: |- + description: |- next_key is the key to be passed to PageRequest.key to - query the next page most efficiently + query the next page most efficiently. It will be empty if + there are no more results. total: type: string format: uint64 @@ -54971,8 +67352,14 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. + title: >- + DenomCreationFee is the fee required to create a new denom using the + tokenfactory module fee_collector_address: type: string + title: >- + FeeCollectorAddress is the address where fees collected from denom + creation are sent to title: Params holds parameters for the tokenfactory module osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse: type: object @@ -55022,8 +67409,14 @@ definitions: method signatures required by gogoproto. + title: >- + DenomCreationFee is the fee required to create a new denom using + the tokenfactory module fee_collector_address: type: string + title: >- + FeeCollectorAddress is the address where fees collected from denom + creation are sent to title: Params holds parameters for the tokenfactory module description: QueryParamsResponse is the response type for the Query/Params RPC method. router.v1.Params: diff --git a/go.mod b/go.mod index 985f6c415..86b4cc516 100644 --- a/go.mod +++ b/go.mod @@ -3,162 +3,193 @@ module github.com/neutron-org/neutron go 1.20 require ( - github.com/CosmWasm/wasmd v0.31.0 - github.com/CosmWasm/wasmvm v1.2.3 + cosmossdk.io/core v0.5.1 + github.com/CosmWasm/wasmd v0.40.0 + github.com/CosmWasm/wasmvm v1.2.4 github.com/armon/go-metrics v0.4.1 - github.com/confio/ics23/go v0.9.0 - github.com/cosmos/admin-module v0.0.0-00010101000000-000000000000 - github.com/cosmos/cosmos-proto v1.0.0-beta.3 - github.com/cosmos/cosmos-sdk v0.45.15 - github.com/cosmos/ibc-go/v4 v4.3.0 - github.com/cosmos/interchain-security v1.0.1-0.20230419165046-6089b6121c33 + github.com/cometbft/cometbft v0.37.2 + github.com/cometbft/cometbft-db v0.8.0 + github.com/cosmos/admin-module v0.0.0-20220204080909-475a98e03f31 + github.com/cosmos/cosmos-proto v1.0.0-beta.2 + github.com/cosmos/cosmos-sdk v0.47.3 + github.com/cosmos/gogoproto v1.4.10 + github.com/cosmos/ibc-go/v7 v7.1.0 + github.com/cosmos/ics23/go v0.10.0 + github.com/cosmos/interchain-security/v3 v3.0.0-rc2 github.com/gogo/protobuf v1.3.3 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 github.com/pkg/errors v0.9.1 - github.com/prometheus/client_golang v1.14.0 - github.com/spf13/cast v1.5.0 + github.com/prometheus/client_golang v1.15.1 + github.com/rakyll/statik v0.1.7 + github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 - github.com/strangelove-ventures/packet-forward-middleware/v4 v4.0.5 - github.com/stretchr/testify v1.8.2 - github.com/tendermint/tendermint v0.34.27 - github.com/tendermint/tm-db v0.6.7 - google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 - google.golang.org/grpc v1.53.0 + github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f + github.com/stretchr/testify v1.8.4 + google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc + google.golang.org/grpc v1.55.0 gopkg.in/yaml.v2 v2.4.0 ) require ( - cosmossdk.io/api v0.2.6 // indirect - cosmossdk.io/core v0.5.1 // indirect + cloud.google.com/go v0.110.0 // indirect + cloud.google.com/go/compute v1.19.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.13.0 // indirect + cloud.google.com/go/storage v1.29.0 // indirect + cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - filippo.io/edwards25519 v1.0.0-rc.1 // indirect + cosmossdk.io/errors v1.0.0-beta.7 // indirect + cosmossdk.io/log v1.1.0 // indirect + cosmossdk.io/math v1.0.1 // indirect + cosmossdk.io/tools/rosetta v0.2.1 // indirect + filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect - github.com/99designs/keyring v1.2.1 // indirect - github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect - github.com/DataDog/zstd v1.5.0 // indirect - github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect - github.com/Workiva/go-datastructures v1.0.53 // indirect + github.com/99designs/keyring v1.2.2 // indirect + github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect + github.com/aws/aws-sdk-go v1.44.203 // 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 github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/cockroachdb/errors v1.9.1 // indirect - github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect - github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677 // indirect - github.com/cockroachdb/redact v1.1.3 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/chzyer/readline v1.5.1 // indirect + github.com/cockroachdb/apd/v2 v2.0.2 // indirect github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect - github.com/cometbft/cometbft-db v0.7.0 // indirect - github.com/cosmos/btcutil v1.0.4 // indirect - github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 // indirect + github.com/confio/ics23/go v0.9.0 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect - github.com/cosmos/gogoproto v1.4.6 // indirect - github.com/cosmos/gorocksdb v1.2.0 // indirect - github.com/cosmos/iavl v0.19.5 // indirect - github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect - github.com/creachadair/taskgroup v0.3.2 // indirect - github.com/danieljoos/wincred v1.1.2 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/iavl v0.20.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.0 // indirect + github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect + github.com/creachadair/taskgroup v0.4.2 // indirect + github.com/danieljoos/wincred v1.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // 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/docker/distribution v2.8.1+incompatible // indirect - github.com/dustin/go-humanize v1.0.0 // indirect + github.com/docker/distribution v2.8.2+incompatible // indirect + github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/getsentry/sentry-go v0.17.0 // indirect + github.com/ghodss/yaml v1.0.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-playground/locales v0.14.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gogo/gateway v1.1.0 // indirect - github.com/golang/glog v1.0.0 // indirect + github.com/gogo/googleapis v1.4.1 // indirect + github.com/golang/glog v1.1.1 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect + github.com/google/s2a-go v0.1.3 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect + github.com/googleapis/gax-go/v2 v2.8.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/gtank/merlin v0.1.1 // indirect github.com/gtank/ristretto255 v0.1.2 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-getter v1.7.1 // indirect github.com/hashicorp/go-immutable-radix v1.3.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/huandu/skiplist v1.2.0 // indirect github.com/iancoleman/orderedmap v0.2.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.15.11 // indirect - github.com/kr/pretty v0.3.1 // indirect - github.com/kr/text v0.2.0 // indirect - github.com/lib/pq v1.10.6 // indirect + github.com/klauspost/compress v1.16.5 // indirect + github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect - github.com/linxGnu/grocksdb v1.7.10 // indirect - github.com/magiconair/properties v1.8.6 // indirect + github.com/linxGnu/grocksdb v1.8.0 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.16 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect - github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect + github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b // indirect github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/oxyno-zeta/gomock-extra-matcher v1.1.0 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.0.5 // indirect - github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect + github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/prometheus/client_model v0.3.0 // indirect - github.com/prometheus/common v0.37.0 // indirect - github.com/prometheus/procfs v0.8.0 // indirect - github.com/rakyll/statik v0.1.7 // indirect + github.com/prometheus/client_model v0.4.0 // indirect + github.com/prometheus/common v0.44.0 // indirect + github.com/prometheus/procfs v0.10.1 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/regen-network/cosmos-proto v0.3.1 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect - github.com/rs/cors v1.8.2 // indirect - github.com/rs/zerolog v1.27.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.29.1 // indirect github.com/sasha-s/go-deadlock v0.3.1 // 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/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.14.0 // indirect - github.com/subosito/gotenv v1.4.1 // indirect - github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect - github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect + github.com/spf13/viper v1.16.0 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tidwall/btree v1.5.0 // indirect + github.com/tidwall/btree v1.6.0 // indirect + github.com/ulikunitz/xz v0.5.11 // indirect github.com/zondax/hid v0.9.1 // indirect github.com/zondax/ledger-go v0.14.1 // indirect - go.etcd.io/bbolt v1.3.6 // indirect - golang.org/x/crypto v0.5.0 // indirect - golang.org/x/exp v0.0.0-20230307190834-24139beb5833 // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/sys v0.6.0 // indirect - golang.org/x/term v0.6.0 // indirect - golang.org/x/text v0.8.0 // indirect + go.etcd.io/bbolt v1.3.7 // indirect + go.opencensus.io v0.24.0 // indirect + golang.org/x/crypto v0.10.0 // indirect + golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect + golang.org/x/net v0.11.0 // indirect + golang.org/x/oauth2 v0.8.0 // indirect + golang.org/x/sys v0.9.0 // indirect + golang.org/x/term v0.9.0 // indirect + golang.org/x/text v0.10.0 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.122.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect google.golang.org/protobuf v1.30.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.7 // indirect + pgregory.net/rapid v0.6.2 // indirect + sigs.k8s.io/yaml v1.3.0 // indirect ) replace ( - github.com/CosmWasm/wasmd v0.31.0 => github.com/neutron-org/wasmd v0.31.1-neutron-fixes.0.20230426103416-67da724a1eaf - github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.2 - github.com/cosmos/admin-module => github.com/Ethernal-Tech/admin-module v0.0.0-20221102105340-e693f4d379c3 - github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.45.15-ics + github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 + github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f + //github.com/cosmos/cosmos-sdk => ../cosmos-sdk + //github.com/cosmos/interchain-security => github.com/cosmos/interchain-security v1.0.1-0.20230612141232-8cd0ca920812 + // google.golang.org/grpc => google.golang.org/grpc v1.33.2 + github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 + // github.com/CosmWasm/wasmd v0.31.0 => github.com/neutron-org/wasmd v0.31.1-neutron-fixes.0.20230426103416-67da724a1eaf + //github.com/cosmos/admin-module => github.com/Ethernal-Tech/admin-module v0.0.0-20221102105340-e693f4d379c3 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - github.com/tendermint/tendermint => github.com/skip-mev/mev-cometbft v0.34.27-mev.17 - google.golang.org/grpc => google.golang.org/grpc v1.33.2 + github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 ) diff --git a/go.sum b/go.sum index 2567e9a25..4b35dacd3 100644 --- a/go.sum +++ b/go.sum @@ -1,14 +1,8 @@ +4d63.com/gochecknoglobals v0.1.0 h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0= 4d63.com/gochecknoglobals v0.1.0/go.mod h1:wfdC5ZjKSPr7CybKEcgJhUOgeAQW1+7WcyK8OvUilfo= -bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= -bazil.org/fuse v0.0.0-20180421153158-65cc252bf669/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= -bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= -bitbucket.org/creachadair/shell v0.0.6/go.mod h1:8Qqi/cYk7vPnsOePHroKXDJYmb5x7ENhtiFtfZq8K+M= -cloud.google.com/go v0.25.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.37.2/go.mod h1:H8IAquKe2L30IxoupDgqTaQvKSwF/c8prYHynGIWQbA= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.39.0/go.mod h1:rVLT6fkc8chs9sfPtFc1SBH6em7n+ZoXaG+87tDISts= cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= @@ -22,7 +16,6 @@ cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6 cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.60.0/go.mod h1:yw2G51M9IfRboUH61Us8GqCeF1PzPblB823Mn2q2eAU= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= @@ -38,55 +31,61 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= -cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= 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.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= -cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= -cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o= -cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE= +cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= +cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= +cloud.google.com/go/accessapproval v1.6.0 h1:x0cEHro/JFPd7eS4BlEWNTMecIj2HdXjOVB5BtvwER0= +cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E= +cloud.google.com/go/accesscontextmanager v1.7.0 h1:MG60JgnEoawHJrbWw0jGdv6HLNSf6gQvYRiXpuzqgEA= +cloud.google.com/go/accesscontextmanager v1.7.0/go.mod h1:CEGLewx8dwa33aDAZQujl7Dx+uYhS0eay198wB/VumQ= 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/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg= +cloud.google.com/go/aiplatform v1.37.0 h1:zTw+suCVchgZyO+k847wjzdVjWmrAuehxdvcZvJwfGg= +cloud.google.com/go/aiplatform v1.37.0/go.mod h1:IU2Cv29Lv9oCn/9LkFiiuKfwrRTq+QQMbW+hPCxJGZw= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= -cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk= -cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc= -cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc= -cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04= -cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno= -cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak= +cloud.google.com/go/analytics v0.19.0 h1:LqAo3tAh2FU9+w/r7vc3hBjU23Kv7GhO/PDIW7kIYgM= +cloud.google.com/go/analytics v0.19.0/go.mod h1:k8liqf5/HCnOUkbawNtrWWc+UAzyDlW89doe8TtoDsE= +cloud.google.com/go/apigateway v1.5.0 h1:ZI9mVO7x3E9RK/BURm2p1aw9YTBSCQe3klmyP1WxWEg= +cloud.google.com/go/apigateway v1.5.0/go.mod h1:GpnZR3Q4rR7LVu5951qfXPJCHquZt02jf7xQx7kpqN8= +cloud.google.com/go/apigeeconnect v1.5.0 h1:sWOmgDyAsi1AZ48XRHcATC0tsi9SkPT7DA/+VCfkaeA= +cloud.google.com/go/apigeeconnect v1.5.0/go.mod h1:KFaCqvBRU6idyhSNyn3vlHXc8VMDJdRmwDF6JyFRqZ8= +cloud.google.com/go/apigeeregistry v0.6.0 h1:E43RdhhCxdlV+I161gUY2rI4eOaMzHTA5kNkvRsFXvc= +cloud.google.com/go/apigeeregistry v0.6.0/go.mod h1:BFNzW7yQVLZ3yj0TKcwzb8n25CFBri51GVGOEUcgQsc= +cloud.google.com/go/appengine v1.7.1 h1:aBGDKmRIaRRoWJ2tAoN0oVSHoWLhtO9aj/NvUyP4aYs= +cloud.google.com/go/appengine v1.7.1/go.mod h1:IHLToyb/3fKutRysUlFO0BPt5j7RiQ45nrzEJmKTo6E= cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/area120 v0.7.1 h1:ugckkFh4XkHJMPhTIx0CyvdoBxmOpMe8rNs4Ok8GAag= +cloud.google.com/go/area120 v0.7.1/go.mod h1:j84i4E1RboTWjKtZVWXPqvK5VHQFJRF2c1Nm69pWm9k= cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= -cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0= -cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc= +cloud.google.com/go/artifactregistry v1.13.0 h1:o1Q80vqEB6Qp8WLEH3b8FBLNUCrGQ4k5RFj0sn/sgO8= +cloud.google.com/go/artifactregistry v1.13.0/go.mod h1:uy/LNfoOIivepGhooAUpL1i30Hgee3Cu0l4VTWHUC08= cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= -cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ= -cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY= +cloud.google.com/go/asset v1.13.0 h1:YAsssO08BqZ6mncbb6FPlj9h6ACS7bJQUOlzciSfbNk= +cloud.google.com/go/asset v1.13.0/go.mod h1:WQAMyYek/b7NBpYq/K4KJWcRqzoalEsxz/t/dTk4THw= cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= -cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo= -cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0= +cloud.google.com/go/assuredworkloads v1.10.0 h1:VLGnVFta+N4WM+ASHbhc14ZOItOabDLH1MSoDv+Xuag= +cloud.google.com/go/assuredworkloads v1.10.0/go.mod h1:kwdUQuXcedVdsIaKgKTp9t0UJkE5+PAVNhdQm4ZVq2E= cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= -cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8= -cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM= -cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc= -cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI= -cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE= -cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE= -cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4= -cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8= +cloud.google.com/go/automl v1.12.0 h1:50VugllC+U4IGl3tDNcZaWvApHBTrn/TvyHDJ0wM+Uw= +cloud.google.com/go/automl v1.12.0/go.mod h1:tWDcHDp86aMIuHmyvjuKeeHEGq76lD7ZqfGLN6B0NuU= +cloud.google.com/go/baremetalsolution v0.5.0 h1:2AipdYXL0VxMboelTTw8c1UJ7gYu35LZYUbuRv9Q28s= +cloud.google.com/go/baremetalsolution v0.5.0/go.mod h1:dXGxEkmR9BMwxhzBhV0AioD0ULBmuLZI8CdwalUxuss= +cloud.google.com/go/batch v0.7.0 h1:YbMt0E6BtqeD5FvSv1d56jbVsWEzlGm55lYte+M6Mzs= +cloud.google.com/go/batch v0.7.0/go.mod h1:vLZN95s6teRUqRQ4s3RLDsH8PvboqBK+rn1oevL159g= +cloud.google.com/go/beyondcorp v0.5.0 h1:UkY2BTZkEUAVrgqnSdOJ4p3y9ZRBPEe1LkjgC8Bj/Pc= +cloud.google.com/go/beyondcorp v0.5.0/go.mod h1:uFqj9X+dSfrheVp7ssLTaRHd2EHqSL4QZmH4e8WXGGU= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -94,29 +93,30 @@ cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUM cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= -cloud.google.com/go/bigquery v1.43.0/go.mod h1:ZMQcXHsl+xmU1z36G2jNGZmKp9zNY5BUua5wDgmNCfw= -cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc= +cloud.google.com/go/bigquery v1.50.0 h1:RscMV6LbnAmhAzD893Lv9nXXy2WCaJmbxYPWDLbGqNQ= +cloud.google.com/go/bigquery v1.50.0/go.mod h1:YrleYEh2pSEbgTBZYMJ5SuSr0ML3ypjRB1zgf7pvQLU= +cloud.google.com/go/bigtable v1.2.0 h1:F4cCmA4nuV84V5zYQ3MKY+M1Cw1avHDuf3S/LcZPA9c= cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= -cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI= -cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y= +cloud.google.com/go/billing v1.13.0 h1:JYj28UYF5w6VBAh0gQYlgHJ/OD1oA+JgW29YZQU+UHM= +cloud.google.com/go/billing v1.13.0/go.mod h1:7kB2W9Xf98hP9Sr12KfECgfGclsH3CQR0R08tnRlRbc= cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= -cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0= -cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk= -cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg= -cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590= -cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk= -cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk= -cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U= -cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA= -cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM= -cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk= +cloud.google.com/go/binaryauthorization v1.5.0 h1:d3pMDBCCNivxt5a4eaV7FwL7cSH0H7RrEnFrTb1QKWs= +cloud.google.com/go/binaryauthorization v1.5.0/go.mod h1:OSe4OU1nN/VswXKRBmciKpo9LulY41gch5c68htf3/Q= +cloud.google.com/go/certificatemanager v1.6.0 h1:5C5UWeSt8Jkgp7OWn2rCkLmYurar/vIWIoSQ2+LaTOc= +cloud.google.com/go/certificatemanager v1.6.0/go.mod h1:3Hh64rCKjRAX8dXgRAyOcY5vQ/fE1sh8o+Mdd6KPgY8= +cloud.google.com/go/channel v1.12.0 h1:GpcQY5UJKeOekYgsX3QXbzzAc/kRGtBq43fTmyKe6Uw= +cloud.google.com/go/channel v1.12.0/go.mod h1:VkxCGKASi4Cq7TbXxlaBezonAYpp1GCnKMY6tnMQnLU= +cloud.google.com/go/cloudbuild v1.9.0 h1:GHQCjV4WlPPVU/j3Rlpc8vNIDwThhd1U9qSY/NPZdko= +cloud.google.com/go/cloudbuild v1.9.0/go.mod h1:qK1d7s4QlO0VwfYn5YuClDGg2hfmLZEb4wQGAbIgL1s= +cloud.google.com/go/clouddms v1.5.0 h1:E7v4TpDGUyEm1C/4KIrpVSOCTm0P6vWdHT0I4mostRA= +cloud.google.com/go/clouddms v1.5.0/go.mod h1:QSxQnhikCLUw13iAbffF2CZxAER3xDGNHjsTAkQJcQA= cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= -cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4= -cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI= +cloud.google.com/go/cloudtasks v1.10.0 h1:uK5k6abf4yligFgYFnG0ni8msai/dSv6mDmiBulU0hU= +cloud.google.com/go/cloudtasks v1.10.0/go.mod h1:NDSoTLkZ3+vExFEWu2UJV1arUyzVDAiZtdWcsUyNwBs= cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= @@ -124,230 +124,253 @@ 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.12.0/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= -cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= -cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck= -cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg= -cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo= +cloud.google.com/go/compute v1.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ= +cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= +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/contactcenterinsights v1.6.0 h1:jXIpfcH/VYSE1SYcPzO0n1VVb+sAamiLOgCw45JbOQk= +cloud.google.com/go/contactcenterinsights v1.6.0/go.mod h1:IIDlT6CLcDoyv79kDv8iWxMSTZhLxSCofVV5W6YFM/w= +cloud.google.com/go/container v1.15.0 h1:NKlY/wCDapfVZlbVVaeuu2UZZED5Dy1z4Zx1KhEzm8c= +cloud.google.com/go/container v1.15.0/go.mod h1:ft+9S0WGjAyjDggg5S06DXj+fHJICWg8L7isCQe9pQA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/containeranalysis v0.9.0 h1:EQ4FFxNaEAg8PqQCO7bVQfWz9NVwZCUKaM1b3ycfx3U= +cloud.google.com/go/containeranalysis v0.9.0/go.mod h1:orbOANbwk5Ejoom+s+DUCTTJ7IBdBQJDcSylAx/on9s= cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= -cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE= -cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM= +cloud.google.com/go/datacatalog v1.13.0 h1:4H5IJiyUE0X6ShQBqgFFZvGGcrwGVndTwUSLP4c52gw= +cloud.google.com/go/datacatalog v1.13.0/go.mod h1:E4Rj9a5ZtAxcQJlEBTLgMTphfP11/lNaAshpoBgemX8= cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataflow v0.8.0 h1:eYyD9o/8Nm6EttsKZaEGD84xC17bNgSKCu0ZxwqUbpg= +cloud.google.com/go/dataflow v0.8.0/go.mod h1:Rcf5YgTKPtQyYz8bLYhFoIV/vP39eL7fWNcSOyFfLJE= cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= -cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0= -cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38= -cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w= +cloud.google.com/go/dataform v0.7.0 h1:Dyk+fufup1FR6cbHjFpMuP4SfPiF3LI3JtoIIALoq48= +cloud.google.com/go/dataform v0.7.0/go.mod h1:7NulqnVozfHvWUBpMDfKMUESr+85aJsC/2O0o3jWPDE= +cloud.google.com/go/datafusion v1.6.0 h1:sZjRnS3TWkGsu1LjYPFD/fHeMLZNXDK6PDHi2s2s/bk= +cloud.google.com/go/datafusion v1.6.0/go.mod h1:WBsMF8F1RhSXvVM8rCV3AeyWVxcC2xY6vith3iw3S+8= cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= -cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA= -cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A= -cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s= -cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI= +cloud.google.com/go/datalabeling v0.7.0 h1:ch4qA2yvddGRUrlfwrNJCr79qLqhS9QBwofPHfFlDIk= +cloud.google.com/go/datalabeling v0.7.0/go.mod h1:WPQb1y08RJbmpM3ww0CSUAGweL0SxByuW2E+FU+wXcM= +cloud.google.com/go/dataplex v1.6.0 h1:RvoZ5T7gySwm1CHzAw7yY1QwwqaGswunmqEssPxU/AM= +cloud.google.com/go/dataplex v1.6.0/go.mod h1:bMsomC/aEJOSpHXdFKFGQ1b0TDPIeL28nJObeO1ppRs= +cloud.google.com/go/dataproc v1.12.0 h1:W47qHL3W4BPkAIbk4SWmIERwsWBaNnWm0P2sdx3YgGU= +cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4= cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/dataqna v0.7.0 h1:yFzi/YU4YAdjyo7pXkBE2FeHbgz5OQQBVDdbErEHmVQ= +cloud.google.com/go/dataqna v0.7.0/go.mod h1:Lx9OcIIeqCrw1a6KdO3/5KMP1wAmTc0slZWwP12Qq3c= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM= +cloud.google.com/go/datastore v1.11.0 h1:iF6I/HaLs3Ado8uRKMvZRvF/ZLkWaWE9i8AiHzbC774= +cloud.google.com/go/datastore v1.11.0/go.mod h1:TvGxBIHCS50u8jzG+AW/ppf87v1of8nwzFNgEZU1D3c= cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= -cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g= -cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4= -cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c= -cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s= +cloud.google.com/go/datastream v1.7.0 h1:BBCBTnWMDwwEzQQmipUXxATa7Cm7CA/gKjKcR2w35T0= +cloud.google.com/go/datastream v1.7.0/go.mod h1:uxVRMm2elUSPuh65IbZpzJNMbuzkcvu5CjMqVIUHrww= +cloud.google.com/go/deploy v1.8.0 h1:otshdKEbmsi1ELYeCKNYppwV0UH5xD05drSdBm7ouTk= +cloud.google.com/go/deploy v1.8.0/go.mod h1:z3myEJnA/2wnB4sgjqdMfgxCA0EqC3RBTNcVPs93mtQ= cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= -cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek= -cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0= -cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM= -cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q= +cloud.google.com/go/dialogflow v1.32.0 h1:uVlKKzp6G/VtSW0E7IH1Y5o0H48/UOCmqksG2riYCwQ= +cloud.google.com/go/dialogflow v1.32.0/go.mod h1:jG9TRJl8CKrDhMEcvfcfFkkpp8ZhgPz3sBGmAUYJ2qE= +cloud.google.com/go/dlp v1.9.0 h1:1JoJqezlgu6NWCroBxr4rOZnwNFILXr4cB9dMaSKO4A= +cloud.google.com/go/dlp v1.9.0/go.mod h1:qdgmqgTyReTz5/YNSSuueR8pl7hO0o9bQ39ZhtgkWp4= cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= -cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k= -cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4= +cloud.google.com/go/documentai v1.18.0 h1:KM3Xh0QQyyEdC8Gs2vhZfU+rt6OCPF0dwVwxKgLmWfI= +cloud.google.com/go/documentai v1.18.0/go.mod h1:F6CK6iUH8J81FehpskRmhLq/3VlwQvb7TvwOceQ2tbs= cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/domains v0.8.0 h1:2ti/o9tlWL4N+wIuWUNH+LbfgpwxPr8J1sv9RHA4bYQ= +cloud.google.com/go/domains v0.8.0/go.mod h1:M9i3MMDzGFXsydri9/vW+EWz9sWb4I6WyHqdlAk0idE= cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/edgecontainer v1.0.0 h1:O0YVE5v+O0Q/ODXYsQHmHb+sYM8KNjGZw2pjX2Ws41c= +cloud.google.com/go/edgecontainer v1.0.0/go.mod h1:cttArqZpBB2q58W/upSG++ooo6EsblxDIolxa3jSjbY= +cloud.google.com/go/errorreporting v0.3.0 h1:kj1XEWMu8P0qlLhm3FwcaFsUvXChV/OraZwA70trRR0= cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= -cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI= -cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8= -cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc= -cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw= -cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= -cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= -cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= -cloud.google.com/go/firestore v1.8.0/go.mod h1:r3KB8cAdRIe8znzoPWLw8S6gpDVd9treohhn8b09424= +cloud.google.com/go/essentialcontacts v1.5.0 h1:gIzEhCoOT7bi+6QZqZIzX1Erj4SswMPIteNvYVlu+pM= +cloud.google.com/go/essentialcontacts v1.5.0/go.mod h1:ay29Z4zODTuwliK7SnX8E86aUF2CTzdNtvv42niCX0M= +cloud.google.com/go/eventarc v1.11.0 h1:fsJmNeqvqtk74FsaVDU6cH79lyZNCYP8Rrv7EhaB/PU= +cloud.google.com/go/eventarc v1.11.0/go.mod h1:PyUjsUKPWoRBCHeOxZd/lbOOjahV41icXyUY5kSTvVY= +cloud.google.com/go/filestore v1.6.0 h1:ckTEXN5towyTMu4q0uQ1Mde/JwTHur0gXs8oaIZnKfw= +cloud.google.com/go/filestore v1.6.0/go.mod h1:di5unNuss/qfZTw2U9nhFqo8/ZDSc466dre85Kydllg= +cloud.google.com/go/firestore v1.9.0 h1:IBlRyxgGySXu5VuW0RgGFlTtLukSnNkpDiEOMkQkmpA= cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= -cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY= -cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08= +cloud.google.com/go/functions v1.13.0 h1:pPDqtsXG2g9HeOQLoquLbmvmb82Y4Ezdo1GXuotFoWg= +cloud.google.com/go/functions v1.13.0/go.mod h1:EU4O007sQm6Ef/PwRsI8N2umygGqPBS/IZQKBQBcJ3c= cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= -cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= -cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= -cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60= -cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo= +cloud.google.com/go/gaming v1.9.0 h1:7vEhFnZmd931Mo7sZ6pJy7uQPDxF7m7v8xtBheG08tc= +cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0= +cloud.google.com/go/gkebackup v0.4.0 h1:za3QZvw6ujR0uyqkhomKKKNoXDyqYGPJies3voUK8DA= +cloud.google.com/go/gkebackup v0.4.0/go.mod h1:byAyBGUwYGEEww7xsbnUTBHIYcOPy/PgUWUtOeRm9Vg= cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkeconnect v0.7.0 h1:gXYKciHS/Lgq0GJ5Kc9SzPA35NGc3yqu6SkjonpEr2Q= +cloud.google.com/go/gkeconnect v0.7.0/go.mod h1:SNfmVqPkaEi3bF/B3CNZOAYPYdg7sU+obZ+QTky2Myw= cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= -cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA= -cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI= +cloud.google.com/go/gkehub v0.12.0 h1:TqCSPsEBQ6oZSJgEYZ3XT8x2gUadbvfwI32YB0kuHCs= +cloud.google.com/go/gkehub v0.12.0/go.mod h1:djiIwwzTTBrF5NaXCGv3mf7klpEMcST17VBTVVDcuaw= +cloud.google.com/go/gkemulticloud v0.5.0 h1:8I84Q4vl02rJRsFiinBxl7WCozfdLlUVBQuSrqr9Wtk= +cloud.google.com/go/gkemulticloud v0.5.0/go.mod h1:W0JDkiyi3Tqh0TJr//y19wyb1yf8llHVto2Htf2Ja3Y= +cloud.google.com/go/grafeas v0.2.0 h1:CYjC+xzdPvbV65gi6Dr4YowKcmLo045pm18L0DhdELM= cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= -cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM= -cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o= -cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c= +cloud.google.com/go/gsuiteaddons v1.5.0 h1:1mvhXqJzV0Vg5Fa95QwckljODJJfDFXV4pn+iL50zzA= +cloud.google.com/go/gsuiteaddons v1.5.0/go.mod h1:TFCClYLd64Eaa12sFVmUyG62tk4mdIsI7pAnSXRkcFo= 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 v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc= -cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= -cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= -cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc= -cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A= -cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM= -cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY= -cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs= -cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g= -cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA= -cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg= -cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0= +cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= +cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= +cloud.google.com/go/iap v1.7.1 h1:PxVHFuMxmSZyfntKXHXhd8bo82WJ+LcATenq7HLdVnU= +cloud.google.com/go/iap v1.7.1/go.mod h1:WapEwPc7ZxGt2jFGB/C/bm+hP0Y6NXzOYGjpPnmMS74= +cloud.google.com/go/ids v1.3.0 h1:fodnCDtOXuMmS8LTC2y3h8t24U8F3eKWfhi+3LY6Qf0= +cloud.google.com/go/ids v1.3.0/go.mod h1:JBdTYwANikFKaDP6LtW5JAi4gubs57SVNQjemdt6xV4= +cloud.google.com/go/iot v1.6.0 h1:39W5BFSarRNZfVG0eXI5LYux+OVQT8GkgpHCnrZL2vM= +cloud.google.com/go/iot v1.6.0/go.mod h1:IqdAsmE2cTYYNO1Fvjfzo9po179rAtJeVGUvkLN3rLE= +cloud.google.com/go/kms v1.10.1 h1:7hm1bRqGCA1GBRQUrp831TwJ9TWhP+tvLuP497CQS2g= +cloud.google.com/go/kms v1.10.1/go.mod h1:rIWk/TryCkR59GMC3YtHtXeLzd634lBbKenvyySAyYI= 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/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE= -cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8= +cloud.google.com/go/language v1.9.0 h1:7Ulo2mDk9huBoBi8zCE3ONOoBrL6UXfAI71CLQ9GEIM= +cloud.google.com/go/language v1.9.0/go.mod h1:Ns15WooPM5Ad/5no/0n81yUetis74g3zrbeJBE+ptUY= cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= -cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw= -cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE= -cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= -cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE= -cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM= -cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI= +cloud.google.com/go/lifesciences v0.8.0 h1:uWrMjWTsGjLZpCTWEAzYvyXj+7fhiZST45u9AgasasI= +cloud.google.com/go/lifesciences v0.8.0/go.mod h1:lFxiEOMqII6XggGbOnKiyZ7IBwoIqA84ClvoezaA/bo= +cloud.google.com/go/logging v1.7.0 h1:CJYxlNNNNAMkHp9em/YEXcfJg+rPDg7YfwoRpMU+t5I= +cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M= +cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= +cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= +cloud.google.com/go/managedidentities v1.5.0 h1:ZRQ4k21/jAhrHBVKl/AY7SjgzeJwG1iZa+mJ82P+VNg= +cloud.google.com/go/managedidentities v1.5.0/go.mod h1:+dWcZ0JlUmpuxpIDfyP5pP5y0bLdRwOS4Lp7gMni/LA= +cloud.google.com/go/maps v0.7.0 h1:mv9YaczD4oZBZkM5XJl6fXQ984IkJNHPwkc8MUsdkBo= +cloud.google.com/go/maps v0.7.0/go.mod h1:3GnvVl3cqeSvgMcpRlQidXsPYuDGQ8naBis7MVzpXsY= cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/mediatranslation v0.7.0 h1:anPxH+/WWt8Yc3EdoEJhPMBRF7EhIdz426A+tuoA0OU= +cloud.google.com/go/mediatranslation v0.7.0/go.mod h1:LCnB/gZr90ONOIQLgSXagp8XUW1ODs2UmUMvcgMfI2I= cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= -cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA= -cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY= +cloud.google.com/go/memcache v1.9.0 h1:8/VEmWCpnETCrBwS3z4MhT+tIdKgR1Z4Tr2tvYH32rg= +cloud.google.com/go/memcache v1.9.0/go.mod h1:8oEyzXCu+zo9RzlEaEjHl4KkgjlNDaXbCQeQWlzNFJM= cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= -cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8= -cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI= -cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk= -cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4= +cloud.google.com/go/metastore v1.10.0 h1:QCFhZVe2289KDBQ7WxaHV2rAmPrmRAdLC6gbjUd3HPo= +cloud.google.com/go/metastore v1.10.0/go.mod h1:fPEnH3g4JJAk+gMRnrAnoqyv2lpUCqJPWOodSaf45Eo= +cloud.google.com/go/monitoring v1.13.0 h1:2qsrgXGVoRXpP7otZ14eE1I568zAa92sJSDPyOJvwjM= +cloud.google.com/go/monitoring v1.13.0/go.mod h1:k2yMBAB1H9JT/QETjNkgdCGD9bPF712XiLTVr+cBrpw= cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= -cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM= -cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8= -cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8= -cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4= +cloud.google.com/go/networkconnectivity v1.11.0 h1:ZD6b4Pk1jEtp/cx9nx0ZYcL3BKqDa+KixNDZ6Bjs1B8= +cloud.google.com/go/networkconnectivity v1.11.0/go.mod h1:iWmDD4QF16VCDLXUqvyspJjIEtBR/4zq5hwnY2X3scM= +cloud.google.com/go/networkmanagement v1.6.0 h1:8KWEUNGcpSX9WwZXq7FtciuNGPdPdPN/ruDm769yAEM= +cloud.google.com/go/networkmanagement v1.6.0/go.mod h1:5pKPqyXjB/sgtvB5xqOemumoQNB7y95Q7S+4rjSOPYY= cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/networksecurity v0.8.0 h1:sOc42Ig1K2LiKlzG71GUVloeSJ0J3mffEBYmvu+P0eo= +cloud.google.com/go/networksecurity v0.8.0/go.mod h1:B78DkqsxFG5zRSVuwYFRZ9Xz8IcQ5iECsNrPn74hKHU= cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= -cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA= -cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0= -cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4= -cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs= -cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA= -cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk= -cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE= -cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc= +cloud.google.com/go/notebooks v1.8.0 h1:Kg2K3K7CbSXYJHZ1aGQpf1xi5x2GUvQWf2sFVuiZh8M= +cloud.google.com/go/notebooks v1.8.0/go.mod h1:Lq6dYKOYOWUCTvw5t2q1gp1lAp0zxAxRycayS0iJcqQ= +cloud.google.com/go/optimization v1.3.1 h1:dj8O4VOJRB4CUwZXdmwNViH1OtI0WtWL867/lnYH248= +cloud.google.com/go/optimization v1.3.1/go.mod h1:IvUSefKiwd1a5p0RgHDbWCIbDFgKuEdB+fPPuP0IDLI= +cloud.google.com/go/orchestration v1.6.0 h1:Vw+CEXo8M/FZ1rb4EjcLv0gJqqw89b7+g+C/EmniTb8= +cloud.google.com/go/orchestration v1.6.0/go.mod h1:M62Bevp7pkxStDfFfTuCOaXgaaqRAga1yKyoMtEoWPQ= +cloud.google.com/go/orgpolicy v1.10.0 h1:XDriMWug7sd0kYT1QKofRpRHzjad0bK8Q8uA9q+XrU4= +cloud.google.com/go/orgpolicy v1.10.0/go.mod h1:w1fo8b7rRqlXlIJbVhOMPrwVljyuW5mqssvBtU18ONc= cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= -cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo= -cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw= +cloud.google.com/go/osconfig v1.11.0 h1:PkSQx4OHit5xz2bNyr11KGcaFccL5oqglFPdTboyqwQ= +cloud.google.com/go/osconfig v1.11.0/go.mod h1:aDICxrur2ogRd9zY5ytBLV89KEgT2MKB2L/n6x1ooPw= cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= -cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70= -cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo= +cloud.google.com/go/oslogin v1.9.0 h1:whP7vhpmc+ufZa90eVpkfbgzJRK/Xomjz+XCD4aGwWw= +cloud.google.com/go/oslogin v1.9.0/go.mod h1:HNavntnH8nzrn8JCTT5fj18FuJLFJc4NaZJtBnQtKFs= cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= -cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg= -cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE= +cloud.google.com/go/phishingprotection v0.7.0 h1:l6tDkT7qAEV49MNEJkEJTB6vOO/onbSOcNtAT09HPuA= +cloud.google.com/go/phishingprotection v0.7.0/go.mod h1:8qJI4QKHoda/sb/7/YmMQ2omRLSLYSu9bU0EKCNI+Lk= +cloud.google.com/go/policytroubleshooter v1.6.0 h1:yKAGC4p9O61ttZUswaq9GAn1SZnEzTd0vUYXD7ZBT7Y= +cloud.google.com/go/policytroubleshooter v1.6.0/go.mod h1:zYqaPTsmfvpjm5ULxAyD/lINQxJ0DDsnWOP/GZ7xzBc= cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/privatecatalog v0.8.0 h1:EPEJ1DpEGXLDnmc7mnCAqFmkwUJbIsaLAiLHVOkkwtc= +cloud.google.com/go/privatecatalog v0.8.0/go.mod h1:nQ6pfaegeDAq/Q5lrfCQzQLhubPiZhSaNhIgfJlnIXs= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/pubsub v1.5.0/go.mod h1:ZEwJccE3z93Z2HWvstpri00jOg7oO4UZDtKhwDwqF0w= -cloud.google.com/go/pubsub v1.26.0/go.mod h1:QgBH3U/jdJy/ftjPhTkyXNj543Tin1pRYcdcPRnFIRI= -cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0= -cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg= +cloud.google.com/go/pubsub v1.30.0 h1:vCge8m7aUKBJYOgrZp7EsNDf6QMd2CAlXZqWTn3yq6s= +cloud.google.com/go/pubsub v1.30.0/go.mod h1:qWi1OPS0B+b5L+Sg6Gmc9zD1Y+HaM0MdUr7LsupY1P4= +cloud.google.com/go/pubsublite v1.7.0 h1:cb9fsrtpINtETHiJ3ECeaVzrfIVhcGjhhJEjybHXHao= +cloud.google.com/go/pubsublite v1.7.0/go.mod h1:8hVMwRXfDfvGm3fahVbtDbiLePT3gpoiJYJY+vxWxVM= +cloud.google.com/go/recaptchaenterprise v1.3.1 h1:u6EznTGzIdsyOsvm+Xkw0aSuKFXQlyjGE9a4exk6iNQ= cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= -cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE= -cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U= +cloud.google.com/go/recaptchaenterprise/v2 v2.7.0 h1:6iOCujSNJ0YS7oNymI64hXsjGq60T4FK1zdLugxbzvU= +cloud.google.com/go/recaptchaenterprise/v2 v2.7.0/go.mod h1:19wVj/fs5RtYtynAPJdDTb69oW0vNHYDBTbB4NvMD9c= cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommendationengine v0.7.0 h1:VibRFCwWXrFebEWKHfZAt2kta6pS7Tlimsnms0fjv7k= +cloud.google.com/go/recommendationengine v0.7.0/go.mod h1:1reUcE3GIu6MeBz/h5xZJqNLuuVjNg1lmWMPyjatzac= cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= -cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs= -cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70= +cloud.google.com/go/recommender v1.9.0 h1:ZnFRY5R6zOVk2IDS1Jbv5Bw+DExCI5rFumsTnMXiu/A= +cloud.google.com/go/recommender v1.9.0/go.mod h1:PnSsnZY7q+VL1uax2JWkt/UegHssxjUVVCrX52CuEmQ= cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= -cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA= -cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM= -cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA= -cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0= -cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU= -cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg= +cloud.google.com/go/redis v1.11.0 h1:JoAd3SkeDt3rLFAAxEvw6wV4t+8y4ZzfZcZmddqphQ8= +cloud.google.com/go/redis v1.11.0/go.mod h1:/X6eicana+BWcUda5PpwZC48o37SiFVTFSs0fWAJ7uQ= +cloud.google.com/go/resourcemanager v1.7.0 h1:NRM0p+RJkaQF9Ee9JMnUV9BQ2QBIOq/v8M+Pbv/wmCs= +cloud.google.com/go/resourcemanager v1.7.0/go.mod h1:HlD3m6+bwhzj9XCouqmeiGuni95NTrExfhoSrkC/3EI= +cloud.google.com/go/resourcesettings v1.5.0 h1:8Dua37kQt27CCWHm4h/Q1XqCF6ByD7Ouu49xg95qJzI= +cloud.google.com/go/resourcesettings v1.5.0/go.mod h1:+xJF7QSG6undsQDfsCJyqWXyBwUoJLhetkRMDRnIoXA= cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= -cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc= -cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y= -cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do= -cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo= +cloud.google.com/go/retail v1.12.0 h1:1Dda2OpFNzIb4qWgFZjYlpP7sxX3aLeypKG6A3H4Yys= +cloud.google.com/go/retail v1.12.0/go.mod h1:UMkelN/0Z8XvKymXFbD4EhFJlYKRx1FGhQkVPU5kF14= +cloud.google.com/go/run v0.9.0 h1:ydJQo+k+MShYnBfhaRHSZYeD/SQKZzZLAROyfpeD9zw= +cloud.google.com/go/run v0.9.0/go.mod h1:Wwu+/vvg8Y+JUApMwEDfVfhetv30hCG4ZwDR/IXl2Qg= cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= -cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk= -cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44= +cloud.google.com/go/scheduler v1.9.0 h1:NpQAHtx3sulByTLe2dMwWmah8PWgeoieFPpJpArwFV0= +cloud.google.com/go/scheduler v1.9.0/go.mod h1:yexg5t+KSmqu+njTIh3b7oYPheFtBWGcbVUYF1GGMIc= cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= -cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4= -cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4= +cloud.google.com/go/secretmanager v1.10.0 h1:pu03bha7ukxF8otyPKTFdDz+rr9sE3YauS5PliDXK60= +cloud.google.com/go/secretmanager v1.10.0/go.mod h1:MfnrdvKMPNra9aZtQFvBcvRU54hbPD8/HayQdlUgJpU= cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= -cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q= -cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA= +cloud.google.com/go/security v1.13.0 h1:PYvDxopRQBfYAXKAuDpFCKBvDOWPWzp9k/H5nB3ud3o= +cloud.google.com/go/security v1.13.0/go.mod h1:Q1Nvxl1PAgmeW0y3HTt54JYIvUdtcpYKVfIB8AOMZ+0= cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= -cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk= -cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk= -cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU= -cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s= +cloud.google.com/go/securitycenter v1.19.0 h1:AF3c2s3awNTMoBtMX3oCUoOMmGlYxGOeuXSYHNBkf14= +cloud.google.com/go/securitycenter v1.19.0/go.mod h1:LVLmSg8ZkkyaNy4u7HCIshAngSQ8EcIRREP3xBnyfag= cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= -cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4= -cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U= -cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco= -cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo= -cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E= -cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU= -cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4= -cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw= -cloud.google.com/go/spanner v1.7.0/go.mod h1:sd3K2gZ9Fd0vMPLXzeCrF6fq4i63Q7aTLW/lBIfBkIk= -cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos= +cloud.google.com/go/servicedirectory v1.9.0 h1:SJwk0XX2e26o25ObYUORXx6torSFiYgsGkWSkZgkoSU= +cloud.google.com/go/servicedirectory v1.9.0/go.mod h1:29je5JjiygNYlmsGz8k6o+OZ8vd4f//bQLtvzkPPT/s= +cloud.google.com/go/shell v1.6.0 h1:wT0Uw7ib7+AgZST9eCDygwTJn4+bHMDtZo5fh7kGWDU= +cloud.google.com/go/shell v1.6.0/go.mod h1:oHO8QACS90luWgxP3N9iZVuEiSF84zNyLytb+qE2f9A= +cloud.google.com/go/spanner v1.45.0 h1:7VdjZ8zj4sHbDw55atp5dfY6kn1j9sam9DRNpPQhqR4= +cloud.google.com/go/spanner v1.45.0/go.mod h1:FIws5LowYz8YAE1J8fOS7DJup8ff7xJeetWEo5REA2M= cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= -cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0= -cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco= +cloud.google.com/go/speech v1.15.0 h1:JEVoWGNnTF128kNty7T4aG4eqv2z86yiMJPT9Zjp+iw= +cloud.google.com/go/speech v1.15.0/go.mod h1:y6oH7GhqCaZANH7+Oe0BhgIogsNInLlz542tg3VqeYI= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -357,369 +380,256 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= -cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I= +cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI= +cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= +cloud.google.com/go/storagetransfer v1.8.0 h1:5T+PM+3ECU3EY2y9Brv0Sf3oka8pKmsCfpQ07+91G9o= +cloud.google.com/go/storagetransfer v1.8.0/go.mod h1:JpegsHHU1eXg7lMHkvf+KE5XDJ7EQu0GwNJbbVGanEw= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= -cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM= -cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA= -cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8= -cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4= -cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ= -cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg= -cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28= -cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y= -cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs= -cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg= -cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk= -cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw= +cloud.google.com/go/talent v1.5.0 h1:nI9sVZPjMKiO2q3Uu0KhTDVov3Xrlpt63fghP9XjyEM= +cloud.google.com/go/talent v1.5.0/go.mod h1:G+ODMj9bsasAEJkQSzO2uHQWXHHXUomArjWQQYkqK6c= +cloud.google.com/go/texttospeech v1.6.0 h1:H4g1ULStsbVtalbZGktyzXzw6jP26RjVGYx9RaYjBzc= +cloud.google.com/go/texttospeech v1.6.0/go.mod h1:YmwmFT8pj1aBblQOI3TfKmwibnsfvhIBzPXcW4EBovc= +cloud.google.com/go/tpu v1.5.0 h1:/34T6CbSi+kTv5E19Q9zbU/ix8IviInZpzwz3rsFE+A= +cloud.google.com/go/tpu v1.5.0/go.mod h1:8zVo1rYDFuW2l4yZVY0R0fb/v44xLh3llq7RuV61fPM= +cloud.google.com/go/trace v1.9.0 h1:olxC0QHC59zgJVALtgqfD9tGk0lfeCP5/AGXL3Px/no= +cloud.google.com/go/trace v1.9.0/go.mod h1:lOQqpE5IaWY0Ixg7/r2SjixMuc6lfTFeO4QGM4dQWOk= +cloud.google.com/go/translate v1.7.0 h1:GvLP4oQ4uPdChBmBaUSa/SaZxCdyWELtlAaKzpHsXdA= +cloud.google.com/go/translate v1.7.0/go.mod h1:lMGRudH1pu7I3n3PETiOB2507gf3HnfLV8qlkHZEyos= +cloud.google.com/go/video v1.15.0 h1:upIbnGI0ZgACm58HPjAeBMleW3sl5cT84AbYQ8PWOgM= +cloud.google.com/go/video v1.15.0/go.mod h1:SkgaXwT+lIIAKqWAJfktHT/RbgjSuY6DobxEp0C5yTQ= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= -cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M= -cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU= +cloud.google.com/go/videointelligence v1.10.0 h1:Uh5BdoET8XXqXX2uXIahGb+wTKbLkGH7s4GXR58RrG8= +cloud.google.com/go/videointelligence v1.10.0/go.mod h1:LHZngX1liVtUhZvi2uNS0VQuOzNi2TkY1OakiuoUOjU= +cloud.google.com/go/vision v1.2.0 h1:/CsSTkbmO9HC8iQpxbK8ATms3OQaX3YQUeTMGCxlaK4= cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= -cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY= -cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E= -cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE= -cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g= -cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208= -cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w= -cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8= +cloud.google.com/go/vision/v2 v2.7.0 h1:8C8RXUJoflCI4yVdqhTy9tRyygSHmp60aP363z23HKg= +cloud.google.com/go/vision/v2 v2.7.0/go.mod h1:H89VysHy21avemp6xcf9b9JvZHVehWbET0uT/bcuY/0= +cloud.google.com/go/vmmigration v1.6.0 h1:Azs5WKtfOC8pxvkyrDvt7J0/4DYBch0cVbuFfCCFt5k= +cloud.google.com/go/vmmigration v1.6.0/go.mod h1:bopQ/g4z+8qXzichC7GW1w2MjbErL54rk3/C843CjfY= +cloud.google.com/go/vmwareengine v0.3.0 h1:b0NBu7S294l0gmtrT0nOJneMYgZapr5x9tVWvgDoVEM= +cloud.google.com/go/vmwareengine v0.3.0/go.mod h1:wvoyMvNWdIzxMYSpH/R7y2h5h3WFkx6d+1TIsP39WGY= +cloud.google.com/go/vpcaccess v1.6.0 h1:FOe6CuiQD3BhHJWt7E8QlbBcaIzVRddupwJlp7eqmn4= +cloud.google.com/go/vpcaccess v1.6.0/go.mod h1:wX2ILaNhe7TlVa4vC5xce1bCnqE3AeH27RV31lnmZes= cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= -cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc= -cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A= -cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo= -cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ= +cloud.google.com/go/webrisk v1.8.0 h1:IY+L2+UwxcVm2zayMAtBhZleecdIFLiC+QJMzgb0kT0= +cloud.google.com/go/webrisk v1.8.0/go.mod h1:oJPDuamzHXgUc+b8SiHRcVInZQuybnvEW72PqTc7sSg= +cloud.google.com/go/websecurityscanner v1.5.0 h1:AHC1xmaNMOZtNqxI9Rmm87IJEyPaRkOxeI0gpAacXGk= +cloud.google.com/go/websecurityscanner v1.5.0/go.mod h1:Y6xdCPy81yi0SQnDY1xdNTNpfY1oAgXUlcfN3B3eSng= 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= -cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= -cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= -code.gitea.io/sdk/gitea v0.12.0/go.mod h1:z3uwDV/b9Ls47NGukYM9XhnHtqPh/J+t40lsUrR6JDY= +cloud.google.com/go/workflows v1.10.0 h1:FfGp9w0cYnaKZJhUOMqCOJCYT/WlvYBfTQhFWV3sRKI= +cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= +collectd.org v0.3.0 h1:iNBHGw1VvPJxH2B6RiFWFZ+vsjo1lCdRszBeOuwGi00= collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= -contrib.go.opencensus.io/exporter/aws v0.0.0-20181029163544-2befc13012d0/go.mod h1:uu1P0UCM/6RbsMrgPa98ll8ZcHM858i/AD06a9aLRCA= -contrib.go.opencensus.io/exporter/ocagent v0.5.0/go.mod h1:ImxhfLRpxoYiSq891pBrLVhN+qmP8BTVvdH2YLs7Gl0= -contrib.go.opencensus.io/exporter/stackdriver v0.12.1/go.mod h1:iwB6wGarfphGGe/e5CWqyUk/cLzKnWsOKPVW3no6OTw= -contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc= -contrib.go.opencensus.io/integrations/ocsql v0.1.4/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE= -contrib.go.opencensus.io/resource v0.1.1/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcigGlFvXwEGEnkRLA= -cosmossdk.io/api v0.2.6 h1:AoNwaLLapcLsphhMK6+o0kZl+D6MMUaHVqSdwinASGU= -cosmossdk.io/api v0.2.6/go.mod h1:u/d+GAxil0nWpl1XnQL8nkziQDIWuBDhv8VnDm/s6dI= +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.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= -cosmossdk.io/math v1.0.0-beta.4/go.mod h1:An0MllWJY6PxibUpnwGk8jOm+a/qIxlKmL5Zyp9NnaM= +cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w= +cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE= +cosmossdk.io/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0= +cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4= +cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= +cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= +cosmossdk.io/simapp v0.0.0-20230224204036-a6adb0821462 h1:g8muUHnXL8vhld2Sjilyhb1UQObc+x9GVuDK43TYZns= +cosmossdk.io/simapp v0.0.0-20230224204036-a6adb0821462/go.mod h1:4Dd3NLoLYoN90kZ0uyHoTHzVVk9+J0v4HhZRBNTAq2c= +cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff h1:P1ialzTepD1oxdNPYc5N8Eggq3RdejZq3cJs8YYMs9Y= +cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff/go.mod h1:AKzx6Mb544LjJ9RHmGFHjY9rEOLiUAi8I0F727TR0dY= +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 h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-beta.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= -filippo.io/edwards25519 v1.0.0-rc.1 h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU= filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= -git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= -git.apache.org/thrift.git v0.12.0/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= +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 h1:4wDp4BKF7NQqoh73VXpZsB/t1OEhDpz/zEpmdQfbjDk= 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 h1:Ahny8Ud1LjVMMAlt8utUFKhhxJtwBAualvsbc/Sk7cE= git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/99designs/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU= -github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= -github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/Abirdcfly/dupword v0.0.7 h1:z14n0yytA3wNO2gpCD/jVtp/acEXPGmYu0esewpBt6Q= github.com/Abirdcfly/dupword v0.0.7/go.mod h1:K/4M1kj+Zh39d2aotRwypvasonOyAMH1c/IZJzE0dmk= -github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg= -github.com/AkihiroSuda/containerd-fuse-overlayfs v1.0.0/go.mod h1:0mMDvQFeLbbn1Wy8P2j3hwFhqBq+FKn8OZPno8WLmp8= -github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/Antonboom/errname v0.1.7 h1:mBBDKvEYwPl4WFFNwec1CZO096G6vzK9vvDQzAwkako= github.com/Antonboom/errname v0.1.7/go.mod h1:g0ONh16msHIPgJSGsecu1G/dcF2hlYR/0SddnIAGavU= +github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= -github.com/Azure/azure-amqp-common-go/v2 v2.1.0/go.mod h1:R8rea+gJRuJR6QxTir/XuEd+YuKoUiazDC/N96FiDEU= -github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4= -github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= -github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v19.1.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v29.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v30.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v38.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v42.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 h1:qoVeMsc9/fh/yhxVaA0obYjVH/oI/ihrOoMwsLS9KSA= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 h1:Px2UA+2RvSSvv+RvJNuUB6n7rs5Wsel4dXLe90Um2n4= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= -github.com/Azure/azure-service-bus-go v0.9.1/go.mod h1:yzBx6/BUGfjfeqbRZny9AQIbIe3AcV9WZbAdpkoXOa0= -github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4= -github.com/Azure/azure-storage-blob-go v0.8.0/go.mod h1:lPI3aLPpuLTeUwh1sViKXFxwl2B6teiRqI0deQUvsw0= -github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= -github.com/Azure/go-ansiterm v0.0.0-20210608223527-2377c96fe795/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest v10.8.1+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest v10.15.5+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest v12.0.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest v14.1.1+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0= -github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630= -github.com/Azure/go-autorest/autorest v0.10.2/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630= -github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= -github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= -github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= -github.com/Azure/go-autorest/autorest/adal v0.8.3/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= -github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= -github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= -github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/azure/auth v0.4.2/go.mod h1:90gmfKdlmKgfjUpnCEpOJzsUEjrWDSLwHIG73tSXddM= -github.com/Azure/go-autorest/autorest/azure/cli v0.3.1/go.mod h1:ZG5p860J94/0kI9mNJVoIoLgXcirM2gF5i2kWloofxw= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= -github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc= -github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= -github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8= -github.com/Azure/go-autorest/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRYq3HT1WyXAvT7LLY3tl70hw6tQIbjI= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= -github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= -github.com/CloudyKit/fastprinter v0.0.0-20170127035650-74b38d55f37a/go.mod h1:EFZQ978U7x8IRnstaskI3IysnWY5Ao3QgZUKOXlsAdw= -github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= -github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w= -github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMdUywE7VMo= -github.com/CloudyKit/jet/v6 v6.1.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4= -github.com/CosmWasm/wasmvm v1.2.3 h1:OKYlobwmVGbl0eSn0mXoAAjE5hIuXnQCLPjbNd91sVY= -github.com/CosmWasm/wasmvm v1.2.3/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= +github.com/CosmWasm/wasmvm v1.2.4 h1:6OfeZuEcEH/9iqwrg2pkeVtDCkMoj9U6PpKtcrCyVrQ= +github.com/CosmWasm/wasmvm v1.2.4/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= +github.com/DATA-DOG/go-sqlmock v1.3.3 h1:CWUqKXe0s8A2z6qCgkP4Kru7wC11YoAnoupUKFDnH08= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= +github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/Djarvur/go-err113 v0.0.0-20200410182137-af658d038157/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= +github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/Djarvur/go-err113 v0.1.0/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/Ethernal-Tech/admin-module v0.0.0-20221102105340-e693f4d379c3 h1:NGYbosBJuYAKLhPC1Sb2aoqS8vViuOeGQ9upOnsqDlU= -github.com/Ethernal-Tech/admin-module v0.0.0-20221102105340-e693f4d379c3/go.mod h1:y18nJoc1Cm4TwN+bWWO7N1vpg2uA4kbJX+oVkMC2ibk= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0 h1:+r1rSv4gvYn0wmRjC8X7IAzX8QezqtFV9m0MUHFJgts= github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0= -github.com/GoogleCloudPlatform/cloudsql-proxy v0.0.0-20191009163259-e802c2cb94ae/go.mod h1:mjwGPas4yKduTyubHvD1Atl9r1rUq8DfVy+gkVvZ+oo= -github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20190822182118-27a4ced34534/go.mod h1:iroGtC8B3tQiqtds1l+mgk/BBOrxbqjH+eUfFQYRc14= -github.com/HdrHistogram/hdrhistogram-go v1.1.0/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= -github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= -github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver/v3 v3.0.3/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Masterminds/semver/v3 v3.1.0/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Masterminds/sprig v2.15.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= -github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= -github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= -github.com/Microsoft/go-winio v0.4.15-0.20200908182639-5b44b70ab3ab/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= -github.com/Microsoft/go-winio v0.4.15/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= -github.com/Microsoft/go-winio v0.4.16-0.20201130162521-d1ffc52c7331/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= -github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= -github.com/Microsoft/go-winio v0.4.17-0.20210211115548-6eac466e5fa3/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.4.17-0.20210324224401-5516f17a5958/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.4.17/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.5.1/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= -github.com/Microsoft/hcsshim v0.8.6/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg= -github.com/Microsoft/hcsshim v0.8.7-0.20190325164909-8abdbb8205e4/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg= -github.com/Microsoft/hcsshim v0.8.7/go.mod h1:OHd7sQqRFrYd3RmSgbgji+ctCwkbq2wbEYNSzOYtcBQ= -github.com/Microsoft/hcsshim v0.8.9/go.mod h1:5692vkUqntj1idxauYlpoINNKeqCiG6Sg38RRsjT5y8= -github.com/Microsoft/hcsshim v0.8.10/go.mod h1:g5uw8EV2mAlzqe94tfNBNdr89fnbD/n3HV0OhsddkmM= -github.com/Microsoft/hcsshim v0.8.14/go.mod h1:NtVKoYxQuTLx6gEq0L96c9Ju4JbRJ4nY2ow3VK6a9Lg= -github.com/Microsoft/hcsshim v0.8.15/go.mod h1:x38A4YbHbdxJtc0sF6oIz+RG0npwSCAvn69iY6URG00= -github.com/Microsoft/hcsshim v0.8.16/go.mod h1:o5/SZqmR7x9JNKsW3pu+nqHm0MF8vbA+VxGOoXdC600= -github.com/Microsoft/hcsshim v0.8.20/go.mod h1:+w2gRZ5ReXQhFOrvSQeNfhrYB/dg3oDwTOcER2fw4I4= -github.com/Microsoft/hcsshim v0.8.21/go.mod h1:+w2gRZ5ReXQhFOrvSQeNfhrYB/dg3oDwTOcER2fw4I4= -github.com/Microsoft/hcsshim v0.8.23/go.mod h1:4zegtUJth7lAvFyc6cH2gGQ5B3OFQim01nnU2M8jKDg= -github.com/Microsoft/hcsshim v0.9.2/go.mod h1:7pLA8lDk46WKDWlVsENo92gC0XFa8rbKfyFRBqxEbCc= -github.com/Microsoft/hcsshim v0.9.4/go.mod h1:7pLA8lDk46WKDWlVsENo92gC0XFa8rbKfyFRBqxEbCc= -github.com/Microsoft/hcsshim/test v0.0.0-20200826032352-301c83a30e7c/go.mod h1:30A5igQ91GEmhYJF8TaRP79pMBOYynRsyOByfVV0dU4= -github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5hlzMzRKMLyo42nCZ9oml8AdTlq/0cvIaBv6tK1RehU= -github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/OpenPeeDeeP/depguard v1.0.1/go.mod h1:xsIw86fROiiwelg+jB2uM9PiKihMMmUx/1V+TNhjQvM= +github.com/OpenPeeDeeP/depguard v1.1.1 h1:TSUznLjvp/4IUP+OQ0t/4jF4QUyxIcVX8YnghZdunyA= github.com/OpenPeeDeeP/depguard v1.1.1/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= +github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= -github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= -github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjKLwalezA0k99cWs5L11HWOAPNjdUZ6RxH1BXbbM= -github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ= +github.com/Shopify/sarama v1.19.0 h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= +github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c3fqvvgKm5o= 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.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= -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 h1:1d9pzdbkth4D9AX6ndKSl7of3UTV0RYl3z64U2dXMGo= github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= +github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/aead/siphash v1.0.1 h1:FwHfE/T45KPKYuuSAKyyvE+oPWcaQ+CUmFW0bPlM+kg= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= +github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af h1:wVe6/Ea46ZMeNkQjjBW6xcqyQA/j5e0D6GytH95g0gQ= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/alecthomas/kingpin v2.2.6+incompatible/go.mod h1:59OFYbFVLKQKq+mqrL6Rw5bR0c3ACQaawgXx0QYndlE= +github.com/alecthomas/kingpin/v2 v2.3.2 h1:H0aULhgmSzN8xQ3nX1uxtdlTHYoPLu5AhHxWrKI6ocU= +github.com/alecthomas/kingpin/v2 v2.3.2/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= github.com/alecthomas/participle/v2 v2.0.0-alpha7/go.mod h1:NumScqsC42o9x+dGj8/YqsIfhrIQjFEOFovxotbBirA= -github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:CgnQgUtFrFz9mxFNtED3jI5tLDjKlOM+oUF/sTk6ps0= -github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY9UnI16Z+UJqRyk= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= +github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= -github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= -github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= -github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= +github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= +github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db h1:nxAtV4VajJDhKysp2kdcJZsq8Ss1xSA0vZTkVHHJd0E= github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0 h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apex/log v1.1.4/go.mod h1:AlpoD9aScyQfJDVHmLMEcx4oU6LqzkWp4Mg9GdAcEvQ= -github.com/apex/log v1.3.0/go.mod h1:jd8Vpsr46WAe3EZSQ/IUMs2qQD/GOycT5rPWCO1yGcs= -github.com/apex/logs v0.0.4/go.mod h1:XzxuLZ5myVHDy9SAmYpamKKRNApGj54PfYLcFrXqDwo= -github.com/aphistic/golf v0.0.0-20180712155816-02c07f170c5a/go.mod h1:3NqKYiepwy8kCu4PNA+aP7WUV72eXWJeP9/r3/K9aLE= -github.com/aphistic/sweet v0.2.0/go.mod h1:fWDlIh/isSE9n6EPsRmC0det+whmX6dJid3stzu0Xys= -github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= -github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= -github.com/armon/go-metrics v0.4.0/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw= github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/ashanbrown/forbidigo v1.3.0 h1:VkYIwb/xxdireGAdJNZoo24O4lmnEWkactplBlWTShc= github.com/ashanbrown/forbidigo v1.3.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI= +github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= +github.com/aws/aws-lambda-go v1.13.3 h1:SuCy7H3NLyp+1Mrfp+m80jcbi9KYWAs9/BXwppwRDzY= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= -github.com/aws/aws-sdk-go v1.15.27/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= -github.com/aws/aws-sdk-go v1.15.90/go.mod h1:es1KtYUFs7le0xQ3rOihkuoVD90z7D0fR2Qm4S00/gU= -github.com/aws/aws-sdk-go v1.16.26/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.19.18/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.19.45/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.20.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.23.20/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.11/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.27.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.31.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= -github.com/aws/aws-sdk-go v1.36.30/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= +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 v1.9.1 h1:ZbovGV/qo40nrOJ4q8G33AGICzaPI45FHQWJ9650pF4= github.com/aws/aws-sdk-go-v2 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.1.1 h1:ZAoq32boMzcaTW9bcUacBswAmHTbvlvDJICgHFZuECo= github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= +github.com/aws/aws-sdk-go-v2/credentials v1.1.1 h1:NbvWIM1Mx6sNPTxowHgS2ewXCRp+NGTzUYb/96FZJbY= github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2 h1:EtEU7WRaWliitZh2nmuxEXrN0Cb8EgPUFGIoTMeqbzI= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= +github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1 h1:w/fPGB0t5rWwA43mux4e9ozFSH5zF1moQemlA131PWc= github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2 h1:4AH9fFjUlVktQMznF+YN33aWNXaR4VgDXyP28qokJC0= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= +github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1 h1:cKr6St+CtC3/dl/rEBJvlk7A/IN5D5F02GNkGzfbtVU= github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= +github.com/aws/aws-sdk-go-v2/service/sso v1.1.1 h1:37QubsarExl5ZuCBlnRP+7l1tNwZPBSTqpTBrPH98RU= 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 h1:TJoIfnIFubCX0ACVeJ0w46HEH5MwjwYN4iFhuYIhfIY= 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/aws/smithy-go v1.8.0 h1:AEwwwXQZtUwP5Mz506FeXXrKBe0jA8gVM+1gEcSRooc= github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I= -github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= -github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= -github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= +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/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20160804104726-4c0e84591b9a/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 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= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= +github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= -github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= +github.com/bkielbasa/cyclop v1.2.0 h1:7Jmnh0yL2DjKfw28p86YTd/B4lRGcNuu12sKE35sM7A= github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= -github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb/go.mod h1:PkYb9DJNAwrSvRx5DYA+gUcOIgTGVMNkfSCbZM8cWpI= -github.com/blang/semver v3.1.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= +github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= -github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= +github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40 h1:y4B3+GPxKlrigF1ha5FFErxK+sr6sWxQovRMzwMhejo= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= +github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/bombsimon/wsl/v2 v2.0.0/go.mod h1:mf25kr/SqFEPhhcxW1+7pxzGlW+hIl/hYTKY95VwV8U= -github.com/bombsimon/wsl/v2 v2.2.0/go.mod h1:Azh8c3XGEJl9LyX0/sFC+CKMc7Ssgua0g+6abzXN4Pg= -github.com/bombsimon/wsl/v3 v3.0.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/bombsimon/wsl/v3 v3.1.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= +github.com/bombsimon/wsl/v3 v3.3.0 h1:Mka/+kRLoQJq7g2rggtgQsjuI/K5Efd87WX96EWFxjM= github.com/bombsimon/wsl/v3 v3.3.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= +github.com/breml/bidichk v0.2.3 h1:qe6ggxpTfA8E75hdjWPZ581sY3a2lnl0IRxLQFelECI= github.com/breml/bidichk v0.2.3/go.mod h1:8u2C6DnAy0g2cEq+k/A2+tr9O1s+vHGxWn0LTc70T2A= +github.com/breml/errchkjson v0.3.0 h1:YdDqhfqMT+I1vIxPSas44P+9Z9HzJwCeAzjB8PxP1xw= github.com/breml/errchkjson v0.3.0/go.mod h1:9Cogkyv9gcT8HREpzi3TiqBxCqDzo8awa92zSDFcofU= -github.com/bshuster-repo/logrus-logstash-hook v0.4.1/go.mod h1:zsTqEiSzDgAa/8GZR7E1qaXrhYNDKBYy5/dWPTIflbk= -github.com/btcsuite/btcd v0.22.2 h1:vBZ+lGGd1XubpOWO67ITJpAEsICWhA0YzqkcpkgNBfo= -github.com/btcsuite/btcd v0.22.2/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= +github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= +github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c= +github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= github.com/btcsuite/btcd/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= -github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= -github.com/btcsuite/btcd/btcec/v2 v2.2.1/go.mod h1:9/CSmJxmuvqzX9Wh2fXMWToLOHhPd11lSPuIupwTkI8= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.2 h1:XLMbX8JQEiwMcYft2EGi8zPUkoa0abKIU6/BJSRsjzQ= @@ -727,564 +637,396 @@ github.com/btcsuite/btcd/btcutil v1.1.2/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9E github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/goleveldb v1.0.0 h1:Tvd0BfvqX9o823q1j2UZ/epQo09eJh6dTcRp79ilIN4= github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/snappy-go v1.0.0 h1:ZxaA6lo2EpxGddsA8JwWOcxlzRybb444sgmeJQMJGQE= github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0 h1:J9B4L7e3oqhXOcm+2IuNApwzQec85lE+QaikUcCs+dk= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/bufbuild/buf v1.9.0/go.mod h1:1Q+rMHiMVcfgScEF/GOldxmu4o9TrQ2sQQh58K6MscE= +github.com/bufbuild/buf v1.7.0 h1:uWRjhIXcrWkzIkA5TqXGyJbF51VW54QJsQZ3nwaes5Q= +github.com/bufbuild/buf v1.7.0/go.mod h1:Go40fMAF46PnPLC7jJgTQhAI95pmC0+VtxFKVC0qLq0= +github.com/bufbuild/connect-go v1.0.0 h1:htSflKUT8y1jxhoPhPYTZMrsY3ipUXjjrbcZR5O2cVo= github.com/bufbuild/connect-go v1.0.0/go.mod h1:9iNvh/NOsfhNBUH5CtvXeVUskQO1xsrEviH7ZArwZ3I= -github.com/bufbuild/protocompile v0.1.0/go.mod h1:ix/MMMdsT3fzxfw91dvbfzKW3fRRnuPCP47kpAm5m/4= -github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= -github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd/go.mod h1:2oa8nejYd4cQ/b0hMIopN0lCRxU0bueqREvZLWFrtK8= -github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50= -github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE= +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.1.1 h1:QvrO2QF2+/Cx1WA/vETCIYBKtRjc30vesdoPUNo1EbY= github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= +github.com/bwesterb/go-ristretto v1.2.0 h1:xxWOVbN5m8NNKiSDZXE1jtZvZnC6JSJ9cYFADiZcWtw= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/bwesterb/go-ristretto v1.2.2/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= +github.com/c-bata/go-prompt v0.2.2 h1:uyKRz6Z6DUyj49QVijyM339UJV9yhbr70gESwbNU3e0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= -github.com/caarlos0/ctrlc v1.0.0/go.mod h1:CdXpj4rmq0q/1Eb44M9zi2nKB0QraNKuRGYGrrHhcQw= -github.com/campoy/unique v0.0.0-20180121183637-88950e537e7e/go.mod h1:9IOqJGCPMSc6E5ydlp5NIonxObaeu/Iub/X03EKPVYo= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/casbin/casbin/v2 v2.37.0 h1:/poEwPSovi4bTOcP752/CsTQiRz2xycyVKFG7GUhbDw= github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= -github.com/cavaliercoder/go-cpio v0.0.0-20180626203310-925f9528c45e/go.mod h1:oDpT4efm8tSYHXV5tHSdRvBet/b/QzxZ+XyyPehvm3A= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.1.2/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= +github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g= +github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= +github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charithe/durationcheck v0.0.9 h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk= github.com/charithe/durationcheck v0.0.9/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= +github.com/chavacava/garif v0.0.0-20220630083739-93517212f375 h1:E7LT642ysztPWE0dfz43cWOvMiF42DyTRC+eZIaO4yI= github.com/chavacava/garif v0.0.0-20220630083739-93517212f375/go.mod h1:4m1Rv7xfuwWPNKXlThldNuJvutYM6J95wNuuVmn55To= -github.com/checkpoint-restore/go-criu/v4 v4.1.0/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw= -github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M= -github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= -github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927/go.mod h1:h/aW8ynjgkuj+NQRlZcDbAbM1ORAbXjXX77sX7T289U= +github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc= +github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +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/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/cilium/ebpf v0.0.0-20200110133405-4032b1d8aae3/go.mod h1:MA5e5Lr8slmEg9bt0VpxxWqJlO4iwu3FBdHUzV7wQVg= -github.com/cilium/ebpf v0.0.0-20200702112145-1c8d4c9ef775/go.mod h1:7cR51M8ViRLIdUjrmSXlK9pkrsDlLHbO8jiB8X8JnOc= -github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= -github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= +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 h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= +github.com/circonus-labs/circonusllhist v0.1.3 h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= +github.com/clbanning/mxj v1.8.4 h1:HuhwZtbyvyOw+3Z1AowPkU87JkJUSv751ELWaiTpj8I= github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec h1:EdRZT3IeKQmfCSrgo8SZ8V3MEnskuJP0wCYNpe+aiXo= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY= github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= -github.com/cloudflare/circl v1.3.1/go.mod h1:+CauBF6R70Jqcyl8N2hC8pAXYbWkGIezuSbuGLtRhnw= -github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U= +github.com/cloudflare/cloudflare-go v0.14.0 h1:gFqGlGl/5f9UGXAaKapCGUfaTCgRKKnzu2VvzMZlOFA= github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe h1:QQ3GSy+MqSHxm/d8nCtnAiZdYFd45cYZPs8vOOIYKfk= +github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195 h1:58f1tJ1ra+zFINPlwLWvQsR9CzAKt2e+EWV2yX9oXQ4= +github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +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/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= -github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= -github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= -github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= -github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM= -github.com/cockroachdb/errors v1.8.1/go.mod h1:qGwQn6JmZ+oMjuLwjWzUNqblqk0xl4CVV3SQbGwK7Ac= github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8= github.com/cockroachdb/errors v1.9.1/go.mod h1:2sxOtL2WIc096WSZqZ5h8fa17rdDq9HZOZLBCor4mBk= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= -github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= 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/pebble v0.0.0-20220817183557-09c6e030a677 h1:qbb/AE938DFhOajUYh9+OXELpSF9KZw2ZivtmW6eX1Q= github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677/go.mod h1:890yq1fUb9b6dGNwssgeUO5vQV9qfXnCPxAJhBQfXw0= -github.com/cockroachdb/redact v1.0.8/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ= github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= -github.com/codahale/hdrhistogram v0.0.0-20160425231609-f8ad88b59a58/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= +github.com/coinbase/kryptology v1.8.0 h1:Aoq4gdTsJhSU3lNWsD5BWmFSz2pE0GlmrljaOxepdYY= github.com/coinbase/kryptology v1.8.0/go.mod h1:RYXOAPdzOGUe3qlSFkMGn58i3xUA8hmxYHksuq+8ciI= -github.com/coinbase/rosetta-sdk-go v0.7.0/go.mod h1:7nD3oBPIiHqhRprqvMgPoGxe/nyq3yftRmpsy29coWE= 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-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo= -github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0= -github.com/confio/ics23/go v0.6.6/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= -github.com/confio/ics23/go v0.7.0/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= +github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= +github.com/cometbft/cometbft v0.37.2 h1:XB0yyHGT0lwmJlFmM4+rsRnczPlHoAKFX6K8Zgc2/Jc= +github.com/cometbft/cometbft v0.37.2/go.mod h1:Y2MMMN//O5K4YKd8ze4r9jmk4Y7h0ajqILXbH5JQFVs= +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= +github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a h1:AEpwbXTjBGKoqxuQ6QAcBMEuK0+PtajQj0wJkhTnSd0= github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= +github.com/consensys/gnark-crypto v0.5.3 h1:4xLFGZR3NWEH2zy+YzvzHicpToQR8FXFbfLNvpGB+rE= github.com/consensys/gnark-crypto v0.5.3/go.mod h1:hOdPlWQV1gDLp7faZVeg8Y0iEPFaOUnCc4XeCCk96p0= -github.com/containerd/aufs v0.0.0-20200908144142-dab0cbea06f4/go.mod h1:nukgQABAEopAHvB6j7cnP5zJ+/3aVcE7hCYqvIwAHyE= -github.com/containerd/aufs v0.0.0-20201003224125-76a6863f2989/go.mod h1:AkGGQs9NM2vtYHaUen+NljV0/baGCAPELGm2q9ZXpWU= -github.com/containerd/aufs v0.0.0-20210316121734-20793ff83c97/go.mod h1:kL5kd6KM5TzQjR79jljyi4olc1Vrx6XBlcyj3gNv2PU= -github.com/containerd/aufs v1.0.0/go.mod h1:kL5kd6KM5TzQjR79jljyi4olc1Vrx6XBlcyj3gNv2PU= -github.com/containerd/btrfs v0.0.0-20201111183144-404b9149801e/go.mod h1:jg2QkJcsabfHugurUvvPhS3E08Oxiuh5W/g1ybB4e0E= -github.com/containerd/btrfs v0.0.0-20210316141732-918d888fb676/go.mod h1:zMcX3qkXTAi9GI50+0HOeuV8LU2ryCE/V2vG/ZBiTss= -github.com/containerd/btrfs v1.0.0/go.mod h1:zMcX3qkXTAi9GI50+0HOeuV8LU2ryCE/V2vG/ZBiTss= -github.com/containerd/cgroups v0.0.0-20190717030353-c4b9ac5c7601/go.mod h1:X9rLEHIqSf/wfK8NsPqxJmeZgW4pcfzdXITDrUSJ6uI= -github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f/go.mod h1:OApqhQ4XNSNC13gXIwDjhOQxjWa/NxkwZXJ1EvqT0ko= -github.com/containerd/cgroups v0.0.0-20200531161412-0dbf7f05ba59/go.mod h1:pA0z1pT8KYB3TCXK/ocprsh7MAkoW8bZVzPdih9snmM= -github.com/containerd/cgroups v0.0.0-20200710171044-318312a37340/go.mod h1:s5q4SojHctfxANBDvMeIaIovkq29IP48TKAxnhYRxvo= -github.com/containerd/cgroups v0.0.0-20200824123100-0b889c03f102/go.mod h1:s5q4SojHctfxANBDvMeIaIovkq29IP48TKAxnhYRxvo= -github.com/containerd/cgroups v0.0.0-20210114181951-8a68de567b68/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= -github.com/containerd/cgroups v1.0.1/go.mod h1:0SJrPIenamHDcZhEcJMNBB85rHcUsw4f25ZfBiPYRkU= -github.com/containerd/cgroups v1.0.3/go.mod h1:/ofk34relqNjSGyqPrmEULrO4Sc8LJhvJmWbUCUKqj8= -github.com/containerd/console v0.0.0-20180822173158-c12b1e7919c1/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= -github.com/containerd/console v0.0.0-20181022165439-0650fd9eeb50/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= -github.com/containerd/console v0.0.0-20191206165004-02ecf6a7291e/go.mod h1:8Pf4gM6VEbTNRIT26AyyU7hxdQU3MvAvxVI0sc00XBE= -github.com/containerd/console v1.0.0/go.mod h1:8Pf4gM6VEbTNRIT26AyyU7hxdQU3MvAvxVI0sc00XBE= -github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4qcS3XoQ5xkw= -github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= -github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= -github.com/containerd/containerd v1.2.10/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.2/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.1-0.20201117152358-0edc412565dc/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.1/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.3/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.9/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.5.0-beta.1/go.mod h1:5HfvG1V2FsKesEGQ17k5/T7V960Tmcumvqn8Mc+pCYQ= -github.com/containerd/containerd v1.5.0-beta.3/go.mod h1:/wr9AVtEM7x9c+n0+stptlo/uBBoBORwEx6ardVcmKU= -github.com/containerd/containerd v1.5.0-beta.4/go.mod h1:GmdgZd2zA2GYIBZ0w09ZvgqEq8EfBp/m3lcVZIvPHhI= -github.com/containerd/containerd v1.5.0-rc.0/go.mod h1:V/IXoMqNGgBlabz3tHD2TWDoTJseu1FGOKuoA4nNb2s= -github.com/containerd/containerd v1.5.1/go.mod h1:0DOxVqwDy2iZvrZp2JUx/E+hS0UNTVn7dJnIOwtYR4g= -github.com/containerd/containerd v1.5.7/go.mod h1:gyvv6+ugqY25TiXxcZC3L5yOeYgEw0QMhscqVp1AR9c= -github.com/containerd/containerd v1.5.8/go.mod h1:YdFSv5bTFLpG2HIYmfqDpSYYTDX+mc5qtSuYx1YUb/s= -github.com/containerd/containerd v1.6.1/go.mod h1:1nJz5xCZPusx6jJU8Frfct988y0NpumIq9ODB0kLtoE= -github.com/containerd/containerd v1.6.3-0.20220401172941-5ff8fce1fcc6/go.mod h1:WSt2SnDLAGWlu+Vl+EWay37seZLKqgRt6XLjIMy8SYM= +github.com/containerd/containerd v1.6.8 h1:h4dOFDwzHmqFEP754PgfgTeVXFnLiRc6kiqC7tplDJs= github.com/containerd/containerd v1.6.8/go.mod h1:By6p5KqPK0/7/CgO/A6t/Gz+CUYUu2zf1hUaaymVXB0= -github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20190815185530-f2a389ac0a02/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20191127005431-f65d91d395eb/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20200710164510-efbc4488d8fe/go.mod h1:cECdGN1O8G9bgKTlLhuPJimka6Xb/Gg7vYzCTNVxhvo= -github.com/containerd/continuity v0.0.0-20201208142359-180525291bb7/go.mod h1:kR3BEg7bDFaEddKm54WSmrol1fKWDU1nKYkgrcgZT7Y= -github.com/containerd/continuity v0.0.0-20210208174643-50096c924a4e/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ= -github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= -github.com/containerd/continuity v0.2.2/go.mod h1:pWygW9u7LtS1o4N/Tn0FoCFDIXZ7rxcMX7HX1Dmibvk= -github.com/containerd/continuity v0.2.3-0.20220330195504-d132b287edc8/go.mod h1:pWygW9u7LtS1o4N/Tn0FoCFDIXZ7rxcMX7HX1Dmibvk= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= -github.com/containerd/fifo v0.0.0-20180307165137-3d5202aec260/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= -github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= -github.com/containerd/fifo v0.0.0-20200410184934-f15a3290365b/go.mod h1:jPQ2IAeZRCYxpS/Cm1495vGFww6ecHmMk1YJH2Q5ln0= -github.com/containerd/fifo v0.0.0-20201026212402-0724c46b320c/go.mod h1:jPQ2IAeZRCYxpS/Cm1495vGFww6ecHmMk1YJH2Q5ln0= -github.com/containerd/fifo v0.0.0-20210316144830-115abcc95a1d/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= -github.com/containerd/fifo v1.0.0/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= -github.com/containerd/fuse-overlayfs-snapshotter v1.0.2/go.mod h1:nRZceC8a7dRm3Ao6cJAwuJWPFiBPaibHiFntRUnzhwU= -github.com/containerd/go-cni v1.0.1/go.mod h1:+vUpYxKvAF72G9i1WoDOiPGRtQpqsNW/ZHtSlv++smU= -github.com/containerd/go-cni v1.0.2/go.mod h1:nrNABBHzu0ZwCug9Ije8hL2xBCYh/pjfMb1aZGrrohk= -github.com/containerd/go-cni v1.1.0/go.mod h1:Rflh2EJ/++BA2/vY5ao3K6WJRR/bZKsX123aPk+kUtA= -github.com/containerd/go-cni v1.1.3/go.mod h1:Rflh2EJ/++BA2/vY5ao3K6WJRR/bZKsX123aPk+kUtA= -github.com/containerd/go-cni v1.1.4/go.mod h1:Rflh2EJ/++BA2/vY5ao3K6WJRR/bZKsX123aPk+kUtA= -github.com/containerd/go-cni v1.1.6/go.mod h1:BWtoWl5ghVymxu6MBjg79W9NZrCRyHIdUtk4cauMe34= -github.com/containerd/go-runc v0.0.0-20180907222934-5a6d9f37cfa3/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= -github.com/containerd/go-runc v0.0.0-20190911050354-e029b79d8cda/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= -github.com/containerd/go-runc v0.0.0-20200220073739-7016d3ce2328/go.mod h1:PpyHrqVs8FTi9vpyHwPwiNEGaACDxT/N/pLcvMSRA9g= -github.com/containerd/go-runc v0.0.0-20201020171139-16b287bc67d0/go.mod h1:cNU0ZbCgCQVZK4lgG3P+9tn9/PaJNmoDXPpoJhDR+Ok= -github.com/containerd/go-runc v1.0.0/go.mod h1:cNU0ZbCgCQVZK4lgG3P+9tn9/PaJNmoDXPpoJhDR+Ok= -github.com/containerd/imgcrypt v1.0.1/go.mod h1:mdd8cEPW7TPgNG4FpuP3sGBiQ7Yi/zak9TYCG3juvb0= -github.com/containerd/imgcrypt v1.0.4-0.20210301171431-0ae5c75f59ba/go.mod h1:6TNsg0ctmizkrOgXRNQjAPFWpMYRWuiB6dSF4Pfa5SA= -github.com/containerd/imgcrypt v1.1.1-0.20210312161619-7ed62a527887/go.mod h1:5AZJNI6sLHJljKuI9IHnw1pWqo/F0nGDOuR9zgTs7ow= -github.com/containerd/imgcrypt v1.1.1/go.mod h1:xpLnwiQmEUJPvQoAapeb2SNCxz7Xr6PJrXQb0Dpc4ms= -github.com/containerd/imgcrypt v1.1.3/go.mod h1:/TPA1GIDXMzbj01yd8pIbQiLdQxed5ue1wb8bP7PQu4= -github.com/containerd/imgcrypt v1.1.4/go.mod h1:LorQnPtzL/T0IyCeftcsMEO7AqxUDbdO8j/tSUpgxvo= -github.com/containerd/nri v0.0.0-20201007170849-eb1350a75164/go.mod h1:+2wGSDGFYfE5+So4M5syatU0N0f0LbWpuqyMi4/BE8c= -github.com/containerd/nri v0.0.0-20210316161719-dbaa18c31c14/go.mod h1:lmxnXF6oMkbqs39FiCt1s0R2HSMhcLel9vNL3m4AaeY= -github.com/containerd/nri v0.1.0/go.mod h1:lmxnXF6oMkbqs39FiCt1s0R2HSMhcLel9vNL3m4AaeY= -github.com/containerd/stargz-snapshotter v0.0.0-20201027054423-3a04e4c2c116/go.mod h1:o59b3PCKVAf9jjiKtCc/9hLAd+5p/rfhBfm6aBcTEr4= -github.com/containerd/stargz-snapshotter v0.11.3/go.mod h1:2j2EAUyvrLU4D9unYlTIwGhDKQIk74KJ9E71lJsQCVM= -github.com/containerd/stargz-snapshotter/estargz v0.4.1/go.mod h1:x7Q9dg9QYb4+ELgxmo4gBUeJB0tl5dqH1Sdz0nJU1QM= -github.com/containerd/stargz-snapshotter/estargz v0.11.3/go.mod h1:7vRJIcImfY8bpifnMjt+HTJoQxASq7T28MYbP15/Nf0= -github.com/containerd/ttrpc v0.0.0-20190828154514-0e0f228740de/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= -github.com/containerd/ttrpc v0.0.0-20190828172938-92c8520ef9f8/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= -github.com/containerd/ttrpc v0.0.0-20191028202541-4f1b8fe65a5c/go.mod h1:LPm1u0xBw8r8NOKoOdNMeVHSawSsltak+Ihv+etqsE8= -github.com/containerd/ttrpc v1.0.1/go.mod h1:UAxOpgT9ziI0gJrmKvgcZivgxOp8iFPSk8httJEt98Y= -github.com/containerd/ttrpc v1.0.2/go.mod h1:UAxOpgT9ziI0gJrmKvgcZivgxOp8iFPSk8httJEt98Y= -github.com/containerd/ttrpc v1.1.0/go.mod h1:XX4ZTnoOId4HklF4edwc4DcqskFZuvXB1Evzy5KFQpQ= -github.com/containerd/typeurl v0.0.0-20180627222232-a93fcdb778cd/go.mod h1:Cm3kwCdlkCfMSHURc+r6fwoGH6/F1hH3S4sg0rLFWPc= -github.com/containerd/typeurl v0.0.0-20190911142611-5eb25027c9fd/go.mod h1:GeKYzf2pQcqv7tJ0AoCuuhtnqhva5LNU3U+OyKxxJpk= -github.com/containerd/typeurl v1.0.1/go.mod h1:TB1hUtrpaiO88KEK56ijojHS1+NeF0izUACaJW2mdXg= +github.com/containerd/typeurl v1.0.2 h1:Chlt8zIieDbzQFzXzAeBEF92KhExuE4p9p92/QmY7aY= github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= -github.com/containerd/zfs v0.0.0-20200918131355-0a33824f23a2/go.mod h1:8IgZOBdv8fAgXddBT4dBXJPtxyRsejFIpXoklgxgEjw= -github.com/containerd/zfs v0.0.0-20210301145711-11e8f1707f62/go.mod h1:A9zfAbMlQwE+/is6hi0Xw8ktpL+6glmqZYtevJgaB8Y= -github.com/containerd/zfs v0.0.0-20210315114300-dde8f0fda960/go.mod h1:m+m51S1DvAP6r3FcmYCp54bQ34pyOwTieQDNRIRHsFY= -github.com/containerd/zfs v0.0.0-20210324211415-d5c4544f0433/go.mod h1:m+m51S1DvAP6r3FcmYCp54bQ34pyOwTieQDNRIRHsFY= -github.com/containerd/zfs v1.0.0/go.mod h1:m+m51S1DvAP6r3FcmYCp54bQ34pyOwTieQDNRIRHsFY= -github.com/containernetworking/cni v0.7.1/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/containernetworking/cni v0.8.0/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/containernetworking/cni v0.8.1/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/containernetworking/cni v1.0.1/go.mod h1:AKuhXbN5EzmD4yTNtfSsX3tPcmtrBI6QcRV0NiNt15Y= -github.com/containernetworking/cni v1.1.1/go.mod h1:sDpYKmGVENF3s6uvMvGgldDWeG8dMxakj/u+i9ht9vw= -github.com/containernetworking/plugins v0.8.6/go.mod h1:qnw5mN19D8fIwkqW7oHHYDHVlzhJpcY6TQxn/fUyDDM= -github.com/containernetworking/plugins v0.9.1/go.mod h1:xP/idU2ldlzN6m4p5LmGiwRDjeJr6FLK6vuiUwoH7P8= -github.com/containernetworking/plugins v1.0.1/go.mod h1:QHCfGpaTwYTbbH+nZXKVTxNBDZcxSOplJT5ico8/FLE= -github.com/containernetworking/plugins v1.1.1/go.mod h1:Sr5TH/eBsGLXK/h71HeLfX19sZPp3ry5uHSkI4LPxV8= -github.com/containers/ocicrypt v1.0.1/go.mod h1:MeJDzk1RJHv89LjsH0Sp5KTY3ZYkjXO/C+bKAeWFIrc= -github.com/containers/ocicrypt v1.1.0/go.mod h1:b8AOe0YR67uU8OqfVNcznfFpAzu3rdgUV4GP9qXPfu4= -github.com/containers/ocicrypt v1.1.1/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY= -github.com/containers/ocicrypt v1.1.2/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY= -github.com/containers/ocicrypt v1.1.3/go.mod h1:xpdkbVAuaH3WzbEabUd5yDsl9SwJA5pABH85425Es2g= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-iptables v0.4.5/go.mod h1:/mVI274lEDI2ns62jHCDnCyBF9Iwsmekav8Dbxlm1MU= -github.com/coreos/go-iptables v0.5.0/go.mod h1:/mVI274lEDI2ns62jHCDnCyBF9Iwsmekav8Dbxlm1MU= -github.com/coreos/go-iptables v0.6.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q= -github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20161114122254-48702e0da86b/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7 h1:u9SHYsPQNyt5tgDm3YN7+9dYrpK96E5wFilTFWIDZOM= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.0.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf h1:CAKfRE2YtTUIjjh1bkBtyYFaUT/WmOqsJjgtihT0vMI= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cosmos/btcutil v1.0.4 h1:n7C2ngKXo7UC9gNyMNLbzqz7Asuf+7Qv4gnX/rOdQ44= -github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU= +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-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32/go.mod h1:kwMlEC4wWvB48zAShGKVqboJL6w4zCLesaNQ3YLU2BQ= -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.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= -github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= -github.com/cosmos/cosmos-sdk v0.45.15-ics h1:ujrXsulYGwggLCC0oD7CizvlAerqMQHfCHHjHqIamfY= -github.com/cosmos/cosmos-sdk v0.45.15-ics/go.mod h1:bScuNwWAP0TZJpUf+SHXRU3xGoUPp+X9nAzfeIXts40= +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.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM= +github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk= +github.com/cosmos/cosmos-sdk/db v1.0.0-beta.1.0.20220726092710-f848e4300a8a h1:2humuGPw3O5riJVFq/E2FRjF57UrO97W1qJcGVmK+6k= +github.com/cosmos/cosmos-sdk/db v1.0.0-beta.1.0.20220726092710-f848e4300a8a/go.mod h1:c8IO23vgNxueCCJlSI9awQtcxsvc+buzaeThB85qfBU= 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.3/go.mod h1:0hLIG5TR7IvV1fme1HCFKjfzW9X2x0Mo+RooWXCnOWU= -github.com/cosmos/gogoproto v1.4.6 h1:Ee7z15dWJaGlgM2rWrK8N2IX7PQcuccu8oG68jp5RL4= -github.com/cosmos/gogoproto v1.4.6/go.mod h1:VS/ASYmPgv6zkPKLjR9EB91lwbLHOzaGCirmKKhncfI= -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.17.3/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w= -github.com/cosmos/iavl v0.19.5 h1:rGA3hOrgNxgRM5wYcSCxgQBap7fW82WZgY78V9po/iY= -github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= -github.com/cosmos/ibc-go v1.2.2/go.mod h1:XmYjsRFOs6Q9Cz+CSsX21icNoH27vQKb3squgnCOCbs= -github.com/cosmos/ibc-go/v3 v3.0.0/go.mod h1:Mb+1NXiPOLd+CPFlOC6BKeAUaxXlhuWenMmRiUiSmwY= -github.com/cosmos/ibc-go/v4 v4.3.0 h1:yOzVsyZzsv4XPBux8gq+D0LhZn45yGWKjvT+6Vyo5no= -github.com/cosmos/ibc-go/v4 v4.3.0/go.mod h1:CcLvIoi9NNtIbNsxs4KjBGjYhlwqtsmXy1AKARKiMzQ= -github.com/cosmos/interchain-accounts v0.2.6 h1:TV2M2g1/Rb9MCNw1YePdBKE0rcEczNj1RGHT+2iRYas= -github.com/cosmos/interchain-security v1.0.1-0.20230419165046-6089b6121c33 h1:gGeyeocVM771mWQUngG+INMnZLRn04xtTP8eHUKv8Fs= -github.com/cosmos/interchain-security v1.0.1-0.20230419165046-6089b6121c33/go.mod h1:ux46JqLoUfPq7FKXYXkAiqwzSiIfcLEgtv+plrv9aRA= -github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY= -github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA= -github.com/cosmos/ledger-cosmos-go v0.12.2/go.mod h1:ZcqYgnfNJ6lAXe4HPtWgarNEY+B74i+2/8MhZw4ziiI= -github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI= +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.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= +github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= +github.com/cosmos/ibc-go/v7 v7.0.1 h1:NIBNRWjlOoFvFQu1ZlgwkaSeHO5avf4C1YQiWegt8jw= +github.com/cosmos/ibc-go/v7 v7.0.1/go.mod h1:vEaapV6nuLPQlS+g8IKmxMo6auPi0i7HMv1PhViht/E= +github.com/cosmos/ibc-go/v7 v7.1.0 h1:SCLgs7tqVnzdIDO5MRLgovAnc696vTTKl+8qsTu8IMM= +github.com/cosmos/ibc-go/v7 v7.1.0/go.mod h1:7MptlWeIyqmDiuJeRAFqBvXKY8Hybd+rF8vMSmGd2zg= +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/interchain-security v1.0.1-0.20230612141232-8cd0ca920812 h1:r5sBvbEKLVUNcVpL9jUEC/scgYFhVHAgvc/havsyKuU= +github.com/cosmos/interchain-security v1.0.1-0.20230612141232-8cd0ca920812/go.mod h1:U+0tyC7GQKg4s16Aj2KORdINXkCfm3b3h2ZO85r9bt0= +github.com/cosmos/interchain-security/v3 v3.0.0-rc2 h1:bCPsPX8pDRizqRV1i+9gX9RYAeKRBCmVd3C7NC3weTE= +github.com/cosmos/interchain-security/v3 v3.0.0-rc2/go.mod h1:HKHw9u4xMm5QJV76A03ORAXB2zisgpcunXZSca8TBdg= +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.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= +github.com/cosmos/ledger-cosmos-go v0.12.1/go.mod h1:dhO6kj+Y+AHIOgAe4L9HL/6NDdyyth4q238I9yFpD2g= +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 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= 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.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/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/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 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cristalhq/acmd v0.8.1/go.mod h1:LG5oa43pE/BbxtfMoImHCQN++0Su7dzipdgBjMCBVDQ= github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg= github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= +github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= +github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c h1:/ovYnF02fwL0kvspmy9AuyKg1JhdTRUgPw4nUxd9oZM= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= -github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= -github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= -github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1SMSibvLzxjeJLnrYEVLULFNiHY9YfQ= -github.com/d2g/dhcp4client v1.0.0/go.mod h1:j0hNfjhrt2SxUOw55nL0ATM/z4Yt3t2Kd1mW34z5W5s= -github.com/d2g/dhcp4server v0.0.0-20181031114812-7d4a0a7f59a5/go.mod h1:Eo87+Kg/IX2hfWJfwxMzLyuSZyxSoAug2nGa1G2QAi8= -github.com/d2g/hardwareaddr v0.0.0-20190221164911-e7d9fbe030e4/go.mod h1:bMl4RjIciD2oAxI7DmWRx6gbeqrkoLqv3MV0vzNad+I= +github.com/daixiang0/gci v0.8.1 h1:T4xpSC+hmsi4CSyuYfIJdMZAr9o7xZmHpQVygMghGZ4= github.com/daixiang0/gci v0.8.1/go.mod h1:EpVfrztufwVgQRXjnX4zuNinEpLj5OmMjtu/+MB0V0c= -github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= -github.com/danieljoos/wincred v1.1.0/go.mod h1:XYlo+eRTsVA9aHGp7NGjFkPla4m+DCL7hqDjlFjiygg= -github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= -github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= +github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= +github.com/dave/jennifer v1.2.0 h1:S15ZkFMRoJ36mGAQgWL1tnr0NQJh9rZ8qatseX/VbBc= github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= -github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= +github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4= github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= -github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 h1:YLtO71vCjJRCBcrPMtQ9nqBsqpA1m5sE92cU+pd5Mcc= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/decred/dcrd/lru v1.0.0 h1:Kbsb1SFDsIlaupWPwsPp+dkxiBY1frcS07PCPgotKz8= github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= +github.com/deepmap/oapi-codegen v1.8.2 h1:SegyeYGcdi0jLLrpbCMoJxnUUn8GBXHsvr4rbzjuhfU= github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= +github.com/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= -github.com/denisenkom/go-mssqldb v0.12.0/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfzrpArPY/aFvc9yU= -github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba/go.mod h1:dV8lFg6daOBZbT6/BDGIz6Y3WFGn8juu6G+CQ6LHtl0= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY= -github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= -github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= 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/dgrijalva/jwt-go v0.0.0-20170104182250-a601269ab70c/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= +github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8 h1:akOQj8IVgoeFfBTzGOEQakCYshWD6RNo1M5pivFXt70= 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= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954 h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= -github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= -github.com/djherbis/atime v1.1.0/go.mod h1:28OF6Y8s3NQWwacXc5eZTsEsiMzp7LF8MbXE+XJPdBE= -github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= +github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 h1:Izz0+t1Z5nI16/II7vuEo/nHjodOg0p7+OiDpjX5t1E= github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/cli v0.0.0-20190925022749-754388324470/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v20.10.0-beta1.0.20201029214301-1d20b15adc38+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v20.10.13+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v20.10.14+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v20.10.17+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/distribution v0.0.0-20190905152932-14b96e55d84c/go.mod h1:0+TTO4EOBfRPhZXAeF1Vu+W3hHZ8eLp8PgKVZlcvtFY= -github.com/docker/distribution v2.6.0-rc.1.0.20180327202408-83389a148052+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68= -github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v0.0.0-20200511152416-a93e9eb0e95c/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v1.4.2-0.20180531152204-71cd53e4a197/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= +github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v17.12.0-ce-rc1.0.20200730172259-9f28837c1d93+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.0-beta1.0.20201110211921-af34b94a78a1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.3-0.20211208011758-87521affb077+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.17+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v20.10.19+incompatible h1:lzEmjivyNHFHMNAFLXORMBXyGIhw/UP4DvJwvyKYq64= github.com/docker/docker v20.10.19+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= -github.com/docker/docker-credential-helpers v0.6.4/go.mod h1:ofX3UI0Gz1TteYBjtgs07O36Pyasyp66D2uKT7H8W1c= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-events v0.0.0-20170721190031-9461782956ad/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA= -github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA= -github.com/docker/go-metrics v0.0.0-20180209012529-399ea8c73916/go.mod h1:/u0gXw0Gay3ceNrsHubL3BtdOL2fHf93USgMTe0W5dI= -github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw= -github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/libnetwork v0.8.0-dev.2.0.20200917202933-d0951081b35f/go.mod h1:93m0aTqz6z+g32wla4l4WxTrdtvBRmVzYRkYvasA5Z8= -github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= -github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= +github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48 h1:iZOop7pqsg+56twTopWgwCGxdB5SI2yDO8Ti7eTRliQ= github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= +github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7 h1:tYwu/z8Y0NkkzGEh3z21mSWggMg4LwLRFucLS7TjARg= 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 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= +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/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= +github.com/eapache/go-resiliency v1.1.0 h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/eclipse/paho.mqtt.golang v1.2.0 h1:1F8mhG9+aO5/xpdtFkW4SxOJB67ukuDC3t2y2qayIX0= github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= -github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= -github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v0.0.14/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/go-control-plane v0.11.0 h1:jtLewhRR2vMRNnq2ZZUoCjUlgut+Y0+sDDWPOfwOi1o= +github.com/envoyproxy/go-control-plane v0.11.0/go.mod h1:VnHyVMpzcLvCFt9yUz1UnCwHLhwx1WguiVDV7pTG/tI= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= +github.com/envoyproxy/protoc-gen-validate v0.10.0 h1:oIfnZFdC0YhpNNEX+SuIqko4cqqVZeN9IGTrhZje83Y= +github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= +github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= -github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= -github.com/ethereum/go-ethereum v1.9.25/go.mod h1:vMkFiYLHI4tgPw4k2j4MHKoovchFE8plZ0M9VMk4/oM= +github.com/ethereum/go-ethereum v1.10.17 h1:XEcumY+qSr1cZQaWsQs5Kck3FHB0V2RiMHPdTBJ+oT8= 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/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= 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-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= 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/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= -github.com/fatih/color v1.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +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/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-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= -github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA= -github.com/flosch/pongo2/v4 v4.0.2/go.mod h1:B5ObFANs/36VwxxlgKpdchIJHMvHB562PW+BWPhwZD8= -github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= +github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90 h1:WXb3TSNmHp2vHoCroCIB1foO/yQ36swABL8aOVeDpgg= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/fortytw2/leaktest v1.2.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db h1:gb2Z18BhTPJPpLQWj4T+rfKHYCHxRHCtRxhKKjRidVw= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goblin v0.0.0-20210519012713-85d372ac71e2/go.mod h1:VzmDKDJVZI3aJmnRI9VjAn9nJ8qPPsN1fqzr9dqInIo= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8 h1:a9ENSRDFBUPkJ5lCgVZh26+ZbGyoVJG7yb5SSzF5H54= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= -github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= +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.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA= -github.com/fullstorydev/grpcurl v1.6.0/go.mod h1:ZQ+ayqbKMJNhzLmbpCiurTVlaK2M/3nqZCxaQ2Ze/sM= +github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= -github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY= -github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= +github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI= 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 h1:6awGqF5nG5zkVpMsAih1QH4VgzS8phTxECUWIFo7zko= github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= -github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= -github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= -github.com/getsentry/sentry-go v0.12.0/go.mod h1:NSap0JBYWzHND8oMbyi0+XZhUalc1TBdRL1M71JZW2c= github.com/getsentry/sentry-go v0.17.0 h1:UustVWnOoDFHBS7IJUB2QK/nB5pap748ZEp0swnQJak= github.com/getsentry/sentry-go v0.17.0/go.mod h1:B82dxtBvxG0KaPD8/hfSV+VcHD+Lg/xUS4JuQn1P4cM= -github.com/ghemawat/stream v0.0.0-20171120220530-696b145b53b9/go.mod h1:106OIgooyS7OzLDOpUGgm9fA3bQENb/cFSyyBmMoJDs= -github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= +github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.7.0/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= -github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= -github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= +github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd h1:r04MMPyLHj/QwZuMJ5+7tJcBr1AQjpiAK/rZWRrQT7o= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= +github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31 h1:gclg6gY70GLy3PbkQ1AERPfmLMMagS60DKF78eWwLn8= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= -github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= +github.com/go-chi/chi/v5 v5.0.7 h1:rDTPXLDHGATaeHvVlLcR4Qe0zftYethFucbjVQ1PxU8= github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= -github.com/go-critic/go-critic v0.4.1/go.mod h1:7/14rZGnZbY6E38VEGk2kVhoq6itzc1E68facVDK23g= -github.com/go-critic/go-critic v0.4.3/go.mod h1:j4O3D4RoIwRqlZw5jJpx0BNfXWWbpcJoKu5cYSe4YmQ= +github.com/go-critic/go-critic v0.6.5 h1:fDaR/5GWURljXwF8Eh31T2GZNz9X4jeboS912mWF8Uo= github.com/go-critic/go-critic v0.6.5/go.mod h1:ezfP/Lh7MA6dBNn4c6ab5ALv3sKnZVLx37tr00uuaOY= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -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-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= -github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= -github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo= -github.com/go-git/go-git/v5 v5.5.1/go.mod h1:uz5PQ3d0gz7mSgzZhSJToM6ALPaKCdSnl58/Xb5hzr8= +github.com/go-git/go-billy/v5 v5.4.0 h1:Vaw7LaSTRJOUric7pe4vnzBSgyuf2KrLsu2Y4ZpQBDE= +github.com/go-git/go-billy/v5 v5.4.0/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg= +github.com/go-git/go-git/v5 v5.5.2 h1:v8lgZa5k9ylUw+OR/roJHTxR4QItsNFI5nKtAXFuynw= +github.com/go-git/go-git/v5 v5.5.2/go.mod h1:BE5hUJ5yaV2YMxhmaP4l6RBQ08kMxKSPD4BlxtH7OjI= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1 h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0= 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 h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-lintpack/lintpack v0.5.2/go.mod h1:NwZuYi2nUHho8XEIZ6SIxihrnPoqBTDqfpXvXAN0sXM= 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-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= -github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.1/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +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.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/stdr v1.2.0/go.mod h1:YkVgnZu1ZjjL7xTxrfm/LLZBfkhTqSR1ydtm6jTKKwI= +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-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= +github.com/go-ole/go-ole v1.2.1 h1:2lOsA72HgjxAuMlKpFiCbHTvu44PIVkZ5hqm3RSdI/E= github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= -github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= @@ -1292,95 +1034,74 @@ github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= -github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= -github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= -github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= -github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= +github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-toolsmith/astcast v1.0.0 h1:JojxlmI6STnFVG9yOImLeGREv8W2ocNUM+iOhR6jE7g= github.com/go-toolsmith/astcast v1.0.0/go.mod h1:mt2OdQTeAQcY4DQgPSArJjHCcOwlX+Wl/kwN+LbLGQ4= -github.com/go-toolsmith/astcopy v1.0.0/go.mod h1:vrgyG+5Bxrnz4MZWPF+pI4R8h3qKRjjyvV/DSez4WVQ= +github.com/go-toolsmith/astcopy v1.0.2 h1:YnWf5Rnh1hUudj11kei53kI57quN/VH6Hp1n+erozn0= github.com/go-toolsmith/astcopy v1.0.2/go.mod h1:4TcEdbElGc9twQEYpVo/aieIXfHhiuLh4aLAck6dO7Y= -github.com/go-toolsmith/astequal v0.0.0-20180903214952-dcb477bfacd6/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= -github.com/go-toolsmith/astequal v1.0.0/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= -github.com/go-toolsmith/astequal v1.0.2/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= +github.com/go-toolsmith/astequal v1.0.3 h1:+LVdyRatFS+XO78SGV4I3TCEA0AC7fKEGma+fH+674o= github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= -github.com/go-toolsmith/astfmt v0.0.0-20180903215011-8f8ee99c3086/go.mod h1:mP93XdblcopXwlyN4X4uodxXQhldPGZbcEJIimQHrkg= +github.com/go-toolsmith/astfmt v1.0.0 h1:A0vDDXt+vsvLEdbMFJAUBI/uTbRw1ffOPnxsILnFL6k= github.com/go-toolsmith/astfmt v1.0.0/go.mod h1:cnWmsOAuq4jJY6Ct5YWlVLmcmLMn1JUPuQIHCY7CJDw= -github.com/go-toolsmith/astinfo v0.0.0-20180906194353-9809ff7efb21/go.mod h1:dDStQCHtmZpYOmjRP/8gHHnCCch3Zz3oEgCdZVdtweU= -github.com/go-toolsmith/astp v0.0.0-20180903215135-0af7e3c24f30/go.mod h1:SV2ur98SGypH1UjcPpCatrV5hPazG6+IfNHbkDXBRrk= +github.com/go-toolsmith/astp v1.0.0 h1:alXE75TXgcmupDsMK1fRAy0YUzLzqPVvBKoyWV+KPXg= github.com/go-toolsmith/astp v1.0.0/go.mod h1:RSyrtpVlfTFGDYRbrjyWP1pYu//tSFcvdYrA8meBmLI= -github.com/go-toolsmith/pkgload v0.0.0-20181119091011-e9e65178eee8/go.mod h1:WoMrjiy4zvdS+Bg6z9jZH82QXwkcgCBX6nOfnmdaHks= -github.com/go-toolsmith/pkgload v1.0.0/go.mod h1:5eFArkbO80v7Z0kdngIxsRXRMTaX4Ilcwuh3clNrQJc= -github.com/go-toolsmith/pkgload v1.0.2-0.20220101231613-e814995d17c5/go.mod h1:3NAwwmD4uY/yggRxoEjk/S00MIV3A+H7rrE3i87eYxM= +github.com/go-toolsmith/strparse v1.0.0 h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4= github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= -github.com/go-toolsmith/typep v1.0.0/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= +github.com/go-toolsmith/typep v1.0.2 h1:8xdsa1+FSIH/RhEkgnD1j2CJOy5mNllW1Q9tRiYwvlk= github.com/go-toolsmith/typep v1.0.2/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= +github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b h1:khEcpUM4yFcxg4/FHQWkvVRmgijNXRfzkIDHh23ggEo= github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= +github.com/go-zookeeper/zk v1.0.2 h1:4mx0EYENAdX/B/rbunjlt5+4RTA/a9SMHBRuSKdGxPM= github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= +github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= -github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= -github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= -github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0= -github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/godbus/dbus v0.0.0-20151105175453-c7fdd8b5cd55/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= -github.com/godbus/dbus v0.0.0-20180201030542-885f9cc04c9c/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= -github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/godbus/dbus/v5 v5.0.4 h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/flock v0.0.0-20190320160742-5135e617513b/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/gofrs/flock v0.7.3/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= +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/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= github.com/gofrs/uuid v4.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 v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/googleapis v1.2.0/go.mod h1:Njal3psf3qN6dwBtQfUmBZh2ybovJ0tlu3o/AC7HYjU= -github.com/gogo/googleapis v1.3.2/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= -github.com/gogo/googleapis v1.4.0/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= +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/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= -github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-jwt/jwt/v4 v4.1.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.3.0 h1:kHL1vqdqWNfATmA0FNMdmZNMyZI1U6O31X4rlIPoBog= github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= -github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188/go.mod h1:vXjM/+wXQnTPR4KqTKDgJukSZ6amVRtWMPEjE6sQoK8= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw= 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.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/glog v1.1.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= +github.com/golang/glog v1.1.1/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-20190129154638-5b532d6fd5ef/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= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= @@ -1390,8 +1111,6 @@ github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71 github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -1413,45 +1132,35 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= +github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/errcheck v0.0.0-20181223084120-ef45e06d44b6/go.mod h1:DbHgvLiFKX1Sh2T1w8Q/h4NAI8MHIpzCdnBUDTXU3I0= -github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613/go.mod h1:SyvUF2NxV+sN8upjjeVYr5W7tyxaT1JVtvhKhOn2ii8= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= -github.com/golangci/goconst v0.0.0-20180610141641-041c5f2b40f3/go.mod h1:JXrF4TWy4tXYn62/9x8Wm/K/dm06p8tCKwFRDPZG/1o= -github.com/golangci/gocyclo v0.0.0-20180528134321-2becd97e67ee/go.mod h1:ozx7R9SIwqmqf5pRP90DhR2Oay2UIjGuKheCBCNwAYU= -github.com/golangci/gocyclo v0.0.0-20180528144436-0a533e8fa43d/go.mod h1:ozx7R9SIwqmqf5pRP90DhR2Oay2UIjGuKheCBCNwAYU= -github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= +github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 h1:amWTbTGqOZ71ruzrdA+Nx5WA3tV1N0goTspwmKCQvBY= github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2/go.mod h1:9wOXstvyDRshQ9LggQuzBCGysxs3b6Uo/1MvYCR2NMs= -github.com/golangci/golangci-lint v1.23.7/go.mod h1:g/38bxfhp4rI7zeWSxcdIeHTQGS58TCak8FYcyCmavQ= -github.com/golangci/golangci-lint v1.27.0/go.mod h1:+eZALfxIuthdrHPtfM7w/R3POJLjHDfJJw8XZl9xOng= +github.com/golangci/golangci-lint v1.50.1 h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY= github.com/golangci/golangci-lint v1.50.1/go.mod h1:AQjHBopYS//oB8xs0y0M/dtxdKHkdhl0RvmjUct0/4w= -github.com/golangci/ineffassign v0.0.0-20190609212857-42439a7714cc/go.mod h1:e5tpTHCfVze+7EpLEozzMB3eafxo2KT5veNg1k6byQU= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= -github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= +github.com/golangci/misspell v0.3.5 h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo= github.com/golangci/misspell v0.3.5/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= -github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21/go.mod h1:tf5+bzsHdTM0bsB7+8mt0GUMvjCgwLpTapNZHU8AajI= -github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0/go.mod h1:qOQCunEYvmd/TLamH+7LlVccLvUH5kZNhbCgTHoBbp4= -github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039/go.mod h1:qOQCunEYvmd/TLamH+7LlVccLvUH5kZNhbCgTHoBbp4= +github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6 h1:DIPQnGy2Gv2FSA4B/hh8Q7xx3B7AIDk3DAMeHclH1vQ= github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= +github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= -github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= -github.com/google/btree v0.0.0-20180124185431-e89373fe6b4a/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg= -github.com/google/certificate-transparency-go v1.1.1/go.mod h1:FDKqPvSXawb2ecErVRrD+nfy23RCzyl7eqVCEmlT1Zs= -github.com/google/crfs v0.0.0-20191108021818-71d77da419c9/go.mod h1:etGhoOqfwPkooV6aqoX3eBGQOJblqdoc9XvWOeuxpPw= +github.com/google/flatbuffers v1.11.0 h1:O7CEyB8Cb3/DmtxODGtLHcEvpr81Jm5qLg/hsHnxA2A= github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -1469,27 +1178,18 @@ github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8 github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-containerregistry v0.0.0-20191010200024-a3d713f9b7f8/go.mod h1:KyKXa9ciM8+lgMXwOVsXi7UxGrsf9mM61Mzs+xKUrKE= -github.com/google/go-containerregistry v0.1.2/go.mod h1:GPivBPgdAyd2SU+vf6EpsgOtWDuPqjW0hJZt4rNdTZ4= -github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0= -github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= -github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/go-replayers/grpcreplay v0.1.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE= -github.com/google/go-replayers/httpreplay v0.1.0/go.mod h1:YKZViNhiGgqdBlUbI2MwGpq4pXxNmhJLPHQ7cv2b5no= -github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian v2.1.1-0.20190517191504-25dcb96d9e51+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -1498,35 +1198,31 @@ github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200507031123-427632fa3b1c/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +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 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/rpmpack v0.0.0-20191226140753-aa36bfddb3a0/go.mod h1:RaTPr0KUf2K7fnZYLNDrr8rxAamWs3iNywJLtQ2AzBg= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= -github.com/google/trillian v1.3.11/go.mod h1:0tPraVHrSDkA3BO6vKX67zgLXs6SsOAbHEivX+9mPgw= -github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/s2a-go v0.1.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= +github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= 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= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/wire v0.3.0/go.mod h1:i1DMg/Lu8Sz5yYl25iOdmc5CT5qusaa+zmRWs16741s= -github.com/google/wire v0.4.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU= 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/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= -github.com/googleapis/gax-go v2.0.2+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= +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/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= @@ -1536,78 +1232,52 @@ 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.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= -github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= -github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU= -github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97DwqyJO1AENw9kA= +github.com/googleapis/gax-go/v2 v2.8.0 h1:UBtEZqx1bjXtOQ5BVTkuYghXrr3N4V123VKJK67vJZc= +github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= +github.com/googleapis/go-type-adapters v1.0.0 h1:9XdMn+d/G57qq1s8dNc5IesGCXHf6V2HZ2JwRxfA2tA= 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 h1:tlyzajkF3030q6M8SvmJSemC9DTHL/xaMa18b65+JM4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gookit/color v1.2.4/go.mod h1:AhIE+pS6D4Ql0SQWbBeXPHw7gY0/sjHoA4s/n1KB7xg= -github.com/gookit/color v1.5.1/go.mod h1:wZFzea4X8qN6vHOSP2apMb4/+w/orMznEzYsIHPaqKM= -github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k= -github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= +github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 h1:PVRE9d4AQKmbelZ7emNig1+NT27DUmKZn5qXxfio54U= github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= -github.com/goreleaser/goreleaser v0.136.0/go.mod h1:wiKrPUeSNh6Wu8nUHxZydSOVQ/OZvOaO7DTtFqie904= -github.com/goreleaser/nfpm v1.2.1/go.mod h1:TtWrABZozuLOttX2uDlYyECfQX7x5XYkVxhjYcR6G9w= -github.com/goreleaser/nfpm v1.3.0/go.mod h1:w0p7Kc9TAUgWMyrub63ex3M2Mgw88M4GZXoTq5UCb40= -github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= +github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= -github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= -github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= -github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= -github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= +github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= -github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= -github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= +github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= +github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= +github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= -github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= -github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= -github.com/gotestyourself/gotestyourself v1.4.0/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= +github.com/gotestyourself/gotestyourself v2.2.0+incompatible h1:AQwinXlbQR2HvPjQZOmDhRqsv5mZf+Jb1RnSLxcqZcI= github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= -github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= +github.com/graph-gophers/graphql-go v1.3.0 h1:Eb9x/q6MFpCLz7jBCiP/WTxjSDrYLR1QY41SORZyNJ0= github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.0/go.mod h1:mJzapYve32yjrKlk9GbyCZHuPgZsrbyIbyKhSzOpg6s= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -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-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= -github.com/grpc-ecosystem/grpc-gateway v1.6.2/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= -github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.2/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.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= 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-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= 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= @@ -1615,992 +1285,700 @@ github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is= github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= -github.com/hanwen/go-fuse v1.0.0/go.mod h1:unqXarDXqzAk0rt98O2tVndEPIpUgLD9+rwFisZH3Ok= -github.com/hanwen/go-fuse/v2 v2.0.3/go.mod h1:0EQM6aH2ctVpvZ6a+onrQ/vaykxh2GH7hy3e13vzTUY= -github.com/hanwen/go-fuse/v2 v2.1.1-0.20220112183258-f57e95bda82d/go.mod h1:B1nGE/6RBFyBRC1RRnf23UpwCdyJ31eukw34oAKukAc= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/api v1.10.1/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= -github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= -github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= -github.com/hashicorp/consul/api v1.15.3/go.mod h1:/g/qgcoBcEXALCNZgRRisyTW0nY86++L0KbeAMXYCeY= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/consul/api v1.20.0 h1:9IHTjNVSZ7MIwjlW3N3a7iGiykCMDpxZu8jsxFJh0yc= +github.com/hashicorp/consul/api v1.20.0/go.mod h1:nR64eD44KQ59Of/ECwt2vUmIK2DKsDzAwTmwmLl8Wpo= +github.com/hashicorp/consul/sdk v0.3.0 h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= -github.com/hashicorp/consul/sdk v0.11.0/go.mod h1:yPkX5Q6CsxTFMjQQDJwzeNmUUF5NUGGbrDsv9wTb8cw= -github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-bexpr v0.1.10 h1:9kuI5PFotCboP3dkDYFr/wi0gg0QVbSNz5oFRpxn4uE= github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 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-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +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-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM= github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-immutable-radix v1.3.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= +github.com/hashicorp/go-msgpack v0.5.3 h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v0.0.0-20161216184304-ed905158d874/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-retryablehttp v0.5.3 h1:QlWt0KvWT0lq8MFppF9tsJGF+ynG7ztc2KIPhzRGk7s= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-retryablehttp v0.6.4/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= -github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= -github.com/hashicorp/go-retryablehttp v0.7.0/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= +github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= +github.com/hashicorp/go-sockaddr v1.0.0 h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= +github.com/hashicorp/go-syslog v1.0.0 h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1 h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0 h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= -github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.1.3 h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/memberlist v0.3.1/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= -github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/serf v0.9.8/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/uuid v0.0.0-20160311170451-ebb0a03e909c/go.mod h1:fHzc09UnyJyqyW+bFuq864eh+wC7dj65aXmXLRe5to0= -github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87/go.mod h1:XGsKKeXxeRr95aEOgipvluMPlgjr7dGlk9ZTWOjcUcg= -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/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY= +github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= +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 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= -github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= +github.com/holiman/uint256 v1.2.0 h1:gpSYcPLWGv4sG43I2mVLiDZCNDh/EpGjSk8tmtxitHM= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= +github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo= -github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4= +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/hudl/fargo v1.4.0 h1:ZDDILMbB37UlAVLlWcJ2Iz1XuahZZTDZfdCKeclfq2s= github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= -github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= +github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204 h1:+EYBkW+dbi3F/atB+LSQZSWh7+HNrV3A/N0y6DSoy9k= github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= +github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150 h1:vlNjIqmUZ9CMAWsbURYl3a6wZbw7q5RHVvlXTNS/Bs8= github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= -github.com/hydrogen18/memlistener v0.0.0-20141126152155-54553eb933fb/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= -github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6jq8pNA= github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639 h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= -github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= -github.com/improbable-eng/grpc-web v0.14.1/go.mod h1:zEjGHa8DAlkoOXmswrNvhUGEYQA9UI7DhrGeHR1DMGU= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/influxdata/flux v0.65.1 h1:77BcVUCzvN5HMm8+j9PRBQ4iZcu98Dl4Y9rf+J5vhnc= github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY= -github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= +github.com/influxdata/influxdb v1.8.3 h1:WEypI1BQFTT4teLM+1qkEcvUi0dAvopAI/ir0vAiBg8= github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= +github.com/influxdata/influxdb-client-go/v2 v2.4.0 h1:HGBfZYStlx3Kqvsv1h2pJixbCl/jhnFtxpKFAv9Tu5k= github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab h1:HqW4xhhynfjrtEiiSGcQUd6vrK23iMam1FO8rI7mwig= github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385 h1:ED4e5Cc3z5vSN2Tz2GkOHN7vs4Sxe2yds6CXvDnvZFE= github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385/go.mod h1:gHp9y86a/pxhjJ+zMjNXiQAA197Xk9wLxaz+fGG+kWk= github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e/go.mod h1:4kt73NQhadE3daL3WhR5EJ/J2ocX0PZzwxQ0gXJ7oFE= github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= +github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 h1:vilfsDSy7TDxedi9gyBkMvAirat/oRcL0lFdJBf6tdM= github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= +github.com/influxdata/promql/v2 v2.12.0 h1:kXn3p0D7zPw16rOtfDR+wo6aaiH8tSMfhPwONTxrlEc= github.com/influxdata/promql/v2 v2.12.0/go.mod h1:fxOPu+DY0bqCTCECchSRtWfc+0X19ybifQhZoQNF5D8= +github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6 h1:UzJnB7VRL4PSkUJHwsyzseGOmrO/r4yA+AuxGJxiZmA= github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bSgUQ7q5ZLSO+bKBGqJiCBGAl+9DxyW63zLTujjUlOE= +github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9 h1:MHTrDWmQpHq/hkq+7cw9oYAt2PqUw52TZazRA0N7PGE= github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0= +github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368 h1:+TUUmaFa4YD1Q+7bH9o5NCHQGPMqZCYJiNW6lIIS9z4= github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= +github.com/informalsystems/tm-load-test v1.3.0 h1:FGjKy7vBw6mXNakt+wmNWKggQZRsKkEYpaFk/zR64VA= github.com/informalsystems/tm-load-test v1.3.0/go.mod h1:OQ5AQ9TbT5hKWBNIwsMjn6Bf4O0U4b1kRc+0qZlQJKw= -github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ= -github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI= -github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= -github.com/iris-contrib/httpexpect/v2 v2.3.1/go.mod h1:ICTf89VBKSD3KB0fsyyHviKF8G8hyepP0dOXJPWz3T0= -github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI= -github.com/iris-contrib/jade v1.1.3/go.mod h1:H/geBymxJhShH5kecoiOCSssPX7QWYH7UaeZTSWddIk= -github.com/iris-contrib/jade v1.1.4/go.mod h1:EDqR+ur9piDl6DUgs6qRrlfzmlx/D5UybogqrXvJTBE= -github.com/iris-contrib/pongo2 v0.0.1/go.mod h1:Ssh+00+3GAZqSQb30AvBRNxBx7rf0GqwkjqxNd0u65g= -github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= -github.com/iris-contrib/schema v0.0.6/go.mod h1:iYszG0IOsuIsfzjymw1kMzTL8YQcCWlm65f3wX8J5iA= -github.com/ishidawataru/sctp v0.0.0-20191218070446-00ab2ac2db07/go.mod h1:co9pwDoBCm1kGxawmb4sPq0cSIOOWNPT4KnHotMP1Zg= -github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA= -github.com/j-keck/arping v1.0.2/go.mod h1:aJbELhR92bSk7tp79AWM/ftfc90EfEi2bQJrbBFOsPw= -github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jaguilar/vt100 v0.0.0-20150826170717-2703a27b14ea/go.mod h1:QMdK4dGB3YhEW2BmA1wgGpPYI3HZy/5gD705PXKUVSg= -github.com/jarcoal/httpmock v1.0.5/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/jdxcode/netrc v0.0.0-20210204082910-926c7f70242a h1:d4+I1YEKVmWZrgkt6jpXBnLgV2ZjO0YxEtLDdfIZfH4= github.com/jdxcode/netrc v0.0.0-20210204082910-926c7f70242a/go.mod h1:Zi/ZFkEqFHTm7qkjyNJjaWH4LQA9LQhGJyF0lTYGpxw= +github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e h1:UvSe12bq+Uj2hWd8aOlwPmoZ+CITRFrdit+sDGfAg8U= github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= -github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= +github.com/jgautheron/goconst v1.5.1 h1:HxVbL1MhydKs8R8n/HE5NPvzfaYmQJA3o879lE4+WcM= github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= -github.com/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= -github.com/jhump/gopoet v0.1.0/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= -github.com/jhump/goprotoc v0.5.0/go.mod h1:VrbvcYrQOrTi3i0Vf+m+oqQWk9l72mjkJCYo7UvLHRQ= -github.com/jhump/protoreflect v1.6.1/go.mod h1:RZQ/lnuN+zqeRVpQigTwO6o0AJUkxbnSnpuG7toUTG4= -github.com/jhump/protoreflect v1.11.0/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= -github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c h1:XImQJfpJLmGEEd8ll5yPVyL/aEvmgGHW4WYTyNseLOM= -github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI4tTg7puQFKI= -github.com/jingyugao/rowserrcheck v0.0.0-20191204022205-72ab7603b68a/go.mod h1:xRskid8CManxVta/ALEhJha/pweKBaVG6fWgc0yH25s= +github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f h1:BNuUg9k2EiJmlMwjoef3e8vZLHplbVw6DrjGFjLL+Yo= +github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f/go.mod h1:qr2b5kx4HbFS7/g4uYO5qv9ei8303JMsC7ESbYiqr2Q= +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-20191110105641-45db9963cdd3/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= +github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48= github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= -github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= -github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= -github.com/jmoiron/sqlx v1.2.1-0.20190826204134-d7d95172beb5/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= -github.com/joefitzgerald/rainbow-reporter v0.1.0/go.mod h1:481CNgqmVHQZzdIbN52CupLJyoVwB10FQ/IQlF1pdL8= -github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= -github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7/go.mod h1:2iMrUgbbvHEiQClaW2NsSzMyGHqN+rDFqY705q49KG0= +github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/jrick/logrotate v1.0.0 h1:lQ1bL/n9mBNeIXoTUoYRlK4dHuNJVofX9oWqBtPnSzI= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= -github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jsternberg/zap-logfmt v1.0.0 h1:0Dz2s/eturmdUS34GM82JwNEdQ9hPoJgqptcEKcbpzY= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= -github.com/juju/loggo v0.0.0-20180524022052-584905176618/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= -github.com/juju/ratelimit v1.0.1/go.mod h1:qapgC/Gy+xNh9UxzV13HGGl/6UXNN+ct+vwSgWNm/qk= -github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073/go.mod h1:63prj8cnj0tU0S9OHjGJn+b1h0ZghCndfnbQolrYTwA= -github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= +github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5 h1:PJr+ZMXIecYc1Ey2zucXdR73SMBtgjPgwa31099IMv0= 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 h1:2jNeR4YUziVtswNP9sEFAI913cVrzH85T+8Q6LpYbT0= github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= -github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= +github.com/karalabe/usb v0.0.2 h1:M6QQBNxF+CQ8OFvxrT90BA0qBOXymndZnk5q235mFc4= github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= -github.com/kataras/blocks v0.0.6/go.mod h1:UK+Iwk0Oxpc0GdoJja7sEildotAUKK1LYeYcVF0COWc= -github.com/kataras/blocks v0.0.7/go.mod h1:UJIU97CluDo0f+zEjbnbkeMRlvYORtmc1304EeyXf4I= -github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4CqbAk= -github.com/kataras/golog v0.0.10/go.mod h1:yJ8YKCmyL+nWjERB90Qwn+bdyBZsaQwU3bTVFgkFIp8= -github.com/kataras/golog v0.1.7/go.mod h1:jOSQ+C5fUqsNSwurB/oAHq1IFSb0KI3l6GMa7xB6dZA= -github.com/kataras/iris/v12 v12.0.1/go.mod h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U= -github.com/kataras/iris/v12 v12.1.8/go.mod h1:LMYy4VlP67TQ3Zgriz8RE2h2kMZV2SgMYbq3UhfoFmE= -github.com/kataras/iris/v12 v12.2.0-beta5/go.mod h1:q26aoWJ0Knx/00iPKg5iizDK7oQQSPjbD8np0XDh6dc= -github.com/kataras/jwt v0.1.8/go.mod h1:Q5j2IkcIHnfwy+oNY3TVWuEBJNw0ADgCcXK9CaZwV4o= -github.com/kataras/neffos v0.0.10/go.mod h1:ZYmJC07hQPW67eKuzlfY7SO3bC0mw83A3j6im82hfqw= -github.com/kataras/neffos v0.0.14/go.mod h1:8lqADm8PnbeFfL7CLXh1WHw53dG27MC3pgi2R1rmoTE= -github.com/kataras/neffos v0.0.20/go.mod h1:srdvC/Uo8mgrApWW0AYtiiLgMbyNPf69qPsd2FhE6MQ= -github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0= -github.com/kataras/pio v0.0.2/go.mod h1:hAoW0t9UmXi4R5Oyq5Z4irTbaTsOemSrDGUtaTl7Dro= -github.com/kataras/pio v0.0.10/go.mod h1:gS3ui9xSD+lAUpbYnjOGiQyY7sUMJO+EHpiRzhtZ5no= -github.com/kataras/pio v0.0.11/go.mod h1:38hH6SWH6m4DKSYmRhlrCJ5WItwWgCVrTNU62XZyUvI= -github.com/kataras/sitemap v0.0.5/go.mod h1:KY2eugMKiPwsJgx7+U103YZehfvNGOXURubcGyk0Bz8= -github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= -github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= +github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= -github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/errcheck v1.6.2 h1:uGQ9xI8/pgc9iOoCe7kWQgRE6SBTrCGmTSf0LrEtY7c= github.com/kisielk/errcheck v1.6.2/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= +github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkHAIKE/contextcheck v1.1.3 h1:l4pNvrb8JSwRd51ojtcOxOeHJzHek+MtOyXbaR0uvmw= github.com/kkHAIKE/contextcheck v1.1.3/go.mod h1:PG/cwd6c0705/LM0KTr1acO2gORUxkSVWyLJOFW5qoo= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 h1:FOOIBWrEkLgmlgGfMuZT83xIwfPDxEI2OHu6xUmJMFE= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.13/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.14.4/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= -github.com/klauspost/compress v1.15.10/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= +github.com/klauspost/compress v1.16.5/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 v0.0.0-20180405133222-e7e905edc00e/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6 h1:KAZ1BW2TCmT6PRihDPpocIy1QTtsAsrx6TneU/4+CMg= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= +github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= +github.com/kunwardeep/paralleltest v1.0.6 h1:FCKYMF1OF2+RveWlABsdnmsvJrei5aoyZoaGS+Ugg8g= github.com/kunwardeep/paralleltest v1.0.6/go.mod h1:Y0Y0XISdZM5IKm3TREQMZ6iteqn1YuwCsJO/0kL9Zes= -github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/kyoh86/exportloopref v0.1.8 h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77LoN/M= github.com/kyoh86/exportloopref v0.1.8/go.mod h1:1tUcJeiioIs7VWe5gcOObrux3lb66+sBqGZrRkMwPgg= -github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= +github.com/labstack/echo/v4 v4.2.1 h1:LF5Iq7t/jrtUuSutNuiEWtB5eiHfZ5gSe2pcu5exjQw= github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= -github.com/labstack/echo/v4 v4.5.0/go.mod h1:czIriw4a0C1dFun+ObrXp7ok03xON0N1awStJ6ArI7Y= -github.com/labstack/echo/v4 v4.9.0/go.mod h1:xkCDAdFCIf8jsFQ5NnbK7oqaF/yU1A1X20Ltm0OvSks= +github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/labstack/gommon v0.3.1/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= +github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= +github.com/ldez/tagliatelle v0.3.1 h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM= github.com/ldez/tagliatelle v0.3.1/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= +github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= +github.com/leonklingele/grouper v1.1.0 h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg= github.com/leonklingele/grouper v1.1.0/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= -github.com/letsencrypt/pkcs11key/v4 v4.0.0/go.mod h1:EFUvBDay26dErnNb70Nd0/VW3tJiIbETBPTl9ATXQag= -github.com/lib/pq v0.0.0-20180327071824-d34b9ff171c2/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs= -github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= 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 h1:143Bb8f8DuGWck/xpNUOckBVYfFbBTnLevfRZ1aVVqo= 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 h1:vi1F1IQ8N7hNWytK9DpJsUfQhGuNSc19z330K6vl4zk= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linuxkit/virtsock v0.0.0-20201010232012-f8cee7dfc7a3/go.mod h1:3r6x7q95whyfWQpmGZTu3gk3v2YkMi05HEzl7Tf7YEo= -github.com/linxGnu/grocksdb v1.7.10 h1:dz7RY7GnFUA+GJO6jodyxgkUeGMEkPp3ikt9hAcNGEw= -github.com/linxGnu/grocksdb v1.7.10/go.mod h1:0hTf+iA+GOr0jDX4CgIYyJZxqOH9XlBh6KVj8+zmF34= -github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= +github.com/linxGnu/grocksdb v1.8.0 h1:H4L/LhP7GOMf1j17oQAElHgVlbEje2h14A8Tz9cM2BE= +github.com/linxGnu/grocksdb v1.8.0/go.mod h1:09CeBborffXhXdNpEcOeZrLKEnRtrZFEpFdPNI9Zjjg= +github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77 h1:6xiz3+ZczT3M4+I+JLpcPGG1bQKm8067HktB17EDWEE= 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= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= -github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= -github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A= +github.com/lyft/protoc-gen-validate v0.0.13 h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= -github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailgun/raymond/v2 v2.0.46/go.mod h1:lsgvL50kgt1ylcFJYZiULi5fjPBkkhNfj4KA0W54Z18= -github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +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 h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= +github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= +github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= -github.com/maratori/testpackage v1.0.1/go.mod h1:ddKdw+XG0Phzhx8BFDTKgpWP4i7MpApTE5fXSKAqwDU= +github.com/maratori/testpackage v1.1.0 h1:GJY4wlzQhuBusMF1oahQCBtUV/AQ/k69IZ68vxaac2Q= github.com/maratori/testpackage v1.1.0/go.mod h1:PeAhzU8qkCwdGEMTEupsHJNlQu2gZopMC6RjbhmHeDc= -github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho= -github.com/matoous/godox v0.0.0-20190911065817-5d6d842e92eb/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= +github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 h1:pWxk9e//NbPwfxat7RXkts09K+dEBJWakUWwICVqYbA= github.com/matoous/godox v0.0.0-20210227103229-6504466cf951/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= -github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= -github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= +github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd h1:HvFwW+cm9bCbZ/+vuGNq7CRWXql8c0y8nGeYpqmpvmk= github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= -github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 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.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= 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-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= -github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= -github.com/mattn/go-ieproxy v0.0.1/go.mod h1:pYabZ6IHcRpFh7vIaLfK7rdcWgFEb3SFJ6/gNWuh88E= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/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= -github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-shellwords v1.0.3/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= -github.com/mattn/go-shellwords v1.0.6/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= -github.com/mattn/go-shellwords v1.0.10/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y= -github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y= -github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= +github.com/mattn/go-sqlite3 v1.11.0 h1:LDdKkqtYlom37fkvqs8rMPFKAMe8+SgjbwZ6ex1/A/Q= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= -github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104 h1:d8RFOZ2IiFtFWBcKEHAFYJcPTf0wY5q0exFNJZVWa1U= github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= -github.com/mattn/go-zglob v0.0.1/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= -github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= -github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= -github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg= -github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ= -github.com/mediocregopher/radix/v3 v3.4.2/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8= -github.com/mediocregopher/radix/v3 v3.8.0/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8= -github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= +github.com/mgechev/revive v1.2.4 h1:+2Hd/S8oO2H0Ikq2+egtNwQsVhAeELHjxjIUFX5ajLI= github.com/mgechev/revive v1.2.4/go.mod h1:iAWlQishqCuj4yhV24FTnKSXGpbAA+0SckXB8GQMX/Q= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= -github.com/microcosm-cc/bluemonday v1.0.20/go.mod h1:yfBmMi8mxvaZut3Yytv+jTXRY8mxyjJ0/kQBTElld50= -github.com/microcosm-cc/bluemonday v1.0.21/go.mod h1:ytNkv4RrDrLJ2pqlsSI46O6IVXmZOBBD4SaJyDwwTkM= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= -github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= -github.com/miekg/pkcs11 v1.0.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= -github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= -github.com/miekg/pkcs11 v1.1.1/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= -github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 h1:QRUSJEgZn2Snx0EmT/QLXibWjSUDjKWvXIT19NBVp94= -github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= -github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= -github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible/go.mod h1:8AuVvqP/mXw1px98n46wfvcGfQ4ci2FwoAjKYxuo3Z4= +github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= -github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-ps v0.0.0-20190716172923-621e5597135b/go.mod h1:r1VsdOzOPt1ZSrGZWFoNhsAedKnEd6r9Np1+5blZCWk= -github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/mitchellh/gox v0.4.0 h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= -github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= +github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f/go.mod h1:OkQIRizQZAeMln+1tSwduZz7+Af5oFlKirV/MSYes2A= +github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/buildkit v0.8.1/go.mod h1:/kyU1hKy/aYCuP39GZA9MaKioovHku57N6cqlKZIaiQ= +github.com/moby/buildkit v0.10.4 h1:FvC+buO8isGpUFZ1abdSLdGHZVqg9sqI4BbFL8tlzP4= github.com/moby/buildkit v0.10.4/go.mod h1:Yajz9vt1Zw5q9Pp4pdb3TCSUXJBIroIQGQ3TTs/sLug= -github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc= -github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= -github.com/moby/sys/mount v0.1.0/go.mod h1:FVQFLDRWwyBjDTBNQXDlWnSFREqOo3OKX9aqhmeoo74= -github.com/moby/sys/mount v0.1.1/go.mod h1:FVQFLDRWwyBjDTBNQXDlWnSFREqOo3OKX9aqhmeoo74= -github.com/moby/sys/mount v0.3.0/go.mod h1:U2Z3ur2rXPFrFmy4q6WMwWrBOAQGYtYTRVM8BIvzbwk= -github.com/moby/sys/mountinfo v0.1.0/go.mod h1:w2t2Avltqx8vE7gX5l+QiBKxODu2TX0+Syr3h52Tw4o= -github.com/moby/sys/mountinfo v0.1.3/go.mod h1:w2t2Avltqx8vE7gX5l+QiBKxODu2TX0+Syr3h52Tw4o= -github.com/moby/sys/mountinfo v0.4.0/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A= -github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A= -github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= -github.com/moby/sys/mountinfo v0.6.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= -github.com/moby/sys/signal v0.6.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg= -github.com/moby/sys/symlink v0.1.0/go.mod h1:GGDODQmbFOjFsXvfLVn3+ZRxkch54RkSiGqsZeMYowQ= -github.com/moby/sys/symlink v0.2.0/go.mod h1:7uZVF2dqJjG/NsClqul95CqKOBRQyYSNnJ6BMgR/gFs= -github.com/moby/term v0.0.0-20200312100748-672ec06f55cd/go.mod h1:DdlQx2hp0Ss5/fLikoLlEeIYiATotOjgB//nb973jeo= -github.com/moby/term v0.0.0-20200915141129-7f0af18e79f2/go.mod h1:TjQg8pa4iejrUrjiz0MCtMV38jdMNW4doKSiBrEvCQQ= -github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc= -github.com/moby/term v0.0.0-20210610120745-9d4ed1856297/go.mod h1:vgPCkQMyxTZ7IDy8SXRufE172gr8+K/JE/7hHFxHW3A= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= +github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae h1:O4SWKdcHVCvYqyDV+9CJA1fcDN2L11Bule0iFy3YlAI= github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5 h1:8Q0qkMVC/MmWkpIdlvZgcv2o2jrlF6zqVOh7W5YHdMA= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= +github.com/moricho/tparallel v0.2.1 h1:95FytivzT6rYzdJLdtfn6m1bfFJylOJK41+lgv/EHf4= github.com/moricho/tparallel v0.2.1/go.mod h1:fXEIZxG2vdfl0ZF8b42f5a78EhjjD5mX8qUplsoSU4k= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= -github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1/go.mod h1:FIczTrinKo8VaLxe6PWTPEXRXDIHz2QAwiaBaP5/4a8= -github.com/mozilla/tls-observatory v0.0.0-20190404164649-a3c1b6cfecfd/go.mod h1:SrKMQvPiws7F7iqYp8/TX+IhxCYhzr6N/1yb8cwHsGk= -github.com/mozilla/tls-observatory v0.0.0-20200317151703-4fa42e1c2dee/go.mod h1:SrKMQvPiws7F7iqYp8/TX+IhxCYhzr6N/1yb8cwHsGk= -github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= -github.com/mrunalp/fileutils v0.0.0-20200520151820-abd8a0e76976/go.mod h1:x8F1gnqOkIEiO4rqoeEEEqQbo7HjGMTvyoq3gej4iT0= -github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= +github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae h1:VeRdUYdCw49yizlSbMEn2SZ+gT+3IUKx8BqxyQdz+BY= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= -github.com/mwitkow/go-proto-validators v0.2.0/go.mod h1:ZfA1hW+UH/2ZHOWvQ3HnQaU0DtnpXu850MZiy+YUgcc= +github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76 h1:0xuRacu/Zr+jX+KyLLPPktbwXqyOvnOPUQmMLzX1jxU= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/nakabonne/nestif v0.3.0/go.mod h1:dI314BppzXjJ4HsCnbo7XzrJHPszZsjnk5wEBSYHI2c= +github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= +github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks= github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= +github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416 h1:shk/vn9oCoOTmwcouEdwIeOtOGA/ELRUw/GwvxwfT+0= github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2 h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q= +github.com/nats-io/jwt/v2 v2.0.3 h1:i/O6cmIsjpcQyWDYNcq2JyZ3/VTF8SJ4JWluI5OhpvI= github.com/nats-io/jwt/v2 v2.0.3/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY= -github.com/nats-io/jwt/v2 v2.2.1-0.20220330180145-442af02fd36a/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k= -github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= +github.com/nats-io/nats-server/v2 v2.5.0 h1:wsnVaaXH9VRSg+A2MVg5Q727/CqxnmPLGFQ3YZYKTQg= github.com/nats-io/nats-server/v2 v2.5.0/go.mod h1:Kj86UtrXAL6LwYRA6H4RqzkHhK0Vcv2ZnKD5WbQ1t3g= -github.com/nats-io/nats-server/v2 v2.8.4/go.mod h1:8zZa+Al3WsESfmgSs98Fi06dRWLH5Bnq90m5bKD/eT4= -github.com/nats-io/nats.go v1.8.1/go.mod h1:BrFz9vVn0fU3AcH9Vn4Kd7W0NpJ651tD5omQ3M8LwxM= github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= +github.com/nats-io/nats.go v1.12.1 h1:+0ndxwUPz3CmQ2vjbXdkC1fo3FdiOQDim4gl3Mge8Qo= github.com/nats-io/nats.go v1.12.1/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= -github.com/nats-io/nats.go v1.15.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= -github.com/nats-io/nats.go v1.16.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= -github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7TDb/4= github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s= +github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8= github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= +github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d/go.mod h1:o96djdrsSGy3AWPyBgZMAGfxZNfgntdJG+11KU4QvbU= +github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA= github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= -github.com/ncw/swift v1.0.47/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= -github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= -github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= -github.com/neilotoole/errgroup v0.1.5/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= +github.com/neilotoole/errgroup v0.1.6 h1:PODGqPXdT5BC/zCYIMoTrwV+ujKcW+gBXM6Ye9Ve3R8= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/networkplumbing/go-nft v0.2.0/go.mod h1:HnnM+tYvlGAsMU7yoYwXEVLLiDW9gdMmb5HoGcwpuQs= -github.com/neutron-org/wasmd v0.31.1-neutron-fixes.0.20230426103416-67da724a1eaf h1:XqGxQcpGQsjgZrxO2YNKfu1Qoc1XiPkeNeb94YliYRU= -github.com/neutron-org/wasmd v0.31.1-neutron-fixes.0.20230426103416-67da724a1eaf/go.mod h1:flAY8k+S04M6ndyZGQTZUY+r7ai+qom33s6PqO8YBCc= +github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f h1:YFXRHpaaRNK7stry4s6MM40IlulY/MSQTAvTbgodMDk= +github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f/go.mod h1:ZwQ3cw0rxF+DzonD2a5lisdcFEu64Db+0TPnHgMIvN0= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1 h1:VmQ1zVjrFguFYFDJrsJ8biPqZvWXrq1ydQKQMVp+w2Q= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1/go.mod h1:oB4CvQbYYn/g+q7c/rKQ33V4APW+kGdo5RkdFBovyxw= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nishanths/exhaustive v0.8.3 h1:pw5O09vwg8ZaditDp/nQRqVnrMczSJDxRDJMowvhsrM= github.com/nishanths/exhaustive v0.8.3/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg= -github.com/nishanths/predeclared v0.0.0-20190419143655-18a43bb90ffc/go.mod h1:62PewwiQTlm/7Rj+cxVYqZvDIUc+JjZq6GHAC1fsObQ= +github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= 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 h1:wVfs8F+in6nTBMkA7CbRw+zZMIB7nNM825cM1wuzoTk= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/oklog/ulid/v2 v2.1.0/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ= +github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= -github.com/onsi/ginkgo v0.0.0-20151202141238-7f8ab55aaf3b/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 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.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= +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 v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.0.0/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= -github.com/onsi/gomega v0.0.0-20151007035656-2152b45fa28a/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.8.1/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= -github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc= -github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= -github.com/onsi/gomega v1.15.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0= -github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= -github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/go-digest v1.0.0-rc1.0.20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.0/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.2-0.20211117181255-693428a734f5/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= -github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc10/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc9/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc92/go.mod h1:X1zlU4p7wOlX4+WRCz+hvlRv8phdL7UqbYD+vQwNMmE= -github.com/opencontainers/runc v1.0.0-rc93/go.mod h1:3NOsor4w32B2tC0Zbl8Knk4Wg84SM2ImC1fxBuqJ/H0= -github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= -github.com/opencontainers/runc v1.0.3/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= -github.com/opencontainers/runc v1.1.0/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= -github.com/opencontainers/runc v1.1.1/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= -github.com/opencontainers/runc v1.1.2/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= -github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.1/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.2-0.20190207185410-29686dbc5559/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20200728170252-4d89ac9fbff6/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= -github.com/opencontainers/selinux v1.6.0/go.mod h1:VVGKuOLlE7v4PJyT6h7mNWvq1rzqiriPsEqVhc+svHE= -github.com/opencontainers/selinux v1.8.0/go.mod h1:RScLhm78qiWa2gbVCcGkC7tCGdgk3ogry1nUQF8Evvo= -github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8= -github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= -github.com/opencontainers/selinux v1.10.1/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing-contrib/go-stdlib v1.0.0/go.mod h1:qtI1ogk+2JhVPIXVc6q+NHziSmy2W5GbdQZFUHADCBU= +github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5 h1:ZCnq+JUrvXcDVhX/xRolRBZifmabN1HcS1wrPSvxhrU= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= -github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= -github.com/openzipkin/zipkin-go v0.1.3/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.5 h1:UwtQQx2pyPIgWYHRg+epgdx1/HnBQTgN3/oIYEJTQzU= github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= -github.com/ory/dockertest/v3 v3.9.1/go.mod h1:42Ir9hmvaAPm0Mgibk6mBPi7SFvTXxEcnztDYOJ//uM= -github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= -github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= -github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= -github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= -github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= -github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= -github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= -github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0 h1:Yyk5ov0ZPKBXtVEeIWtc4J2XVrHuNoIK+0F2BUJgtsc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0/go.mod h1:UMGTHYEmJ1dRq8LDZ7VTAYO4nqM3GD1UGC3RJEUxEz0= +github.com/pact-foundation/pact-go v1.0.4 h1:OYkFijGHoZAYbOIb1LWXrwKQbMMRUv1oQ89blD2Mh2Q= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/paulbellamy/ratecounter v0.2.0 h1:2L/RhJq+HA8gBQImDXtLPrDXK5qAj6ozWVK/zFXVJGs= github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= -github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= -github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= 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.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= -github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= 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.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= -github.com/pelletier/go-toml/v2 v2.0.2/go.mod h1:MovirKjgVRESsAvNZlAjtFwV867yGuwRkXbG66OzopI= -github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= -github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +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 h1:2WnRzIquHa5QxaJKShDkLM+sc0JPuwhXzK8OYOyt3Vg= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/performancecopilot/speed/v4 v4.0.0 h1:VxEDCmdkfbQYDlcr/GC9YoN9PQ6p8ulk9xVsepYy9ZY= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= +github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 h1:oYW+YCJ1pachXTQmzR3rNLYGGz4g/UgFcjb28p/viDM= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= -github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761 h1:W04oB3d0J01W5jgYRGKsV8LCM6g9EkCvPkZcmFuy0OE= +github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d h1:CdDQnGF8Nq9ocOS/xlSptM1N3BbrA6/kmaep5ggwaIA= github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d/go.mod h1:3OzsM7FXDQlpCiw2j81fOmAwQLnZnLGXVKUzeKQXIAw= +github.com/philhofer/fwd v1.0.0 h1:UbZqGr5Y38ApvM/V/jEljVxwocdweyH+vmYvRPBnbqQ= 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 h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= 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/pjbgf/sha1cd v0.2.3 h1:uKQP/7QOzNtKYH7UTohZLcjF5/55EnTw0jO/Ru4jZwI= github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M= -github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= -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-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/profile v1.5.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= +github.com/pkg/profile v1.6.0 h1:hUDfIISABYI59DyeB3OTay/HxSRwTQ8rB/H83k6r5dM= github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= +github.com/pkg/sftp v1.13.1 h1:I2qBYMChEhIjOgazfJmV3/mZM256btk6wkCDRmW7JYs= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5 h1:tFwafIEMf0B7NlcxV/zJ6leBIa81D3hgGSgsE5hCkOQ= github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= -github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3 h1:hUmXhbljNFtrH5hzV9kiRoddZ5nfPTq3K0Sb2hYYiqE= +github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3/go.mod h1:q5NXNGzqj5uPnVuhGkZfmgHqNUhf15VLi6L9kW0VEc0= +github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4 h1:RHHRCZeaNyBXdYPMjZNH8/XHDBH38TZzw8izrW7dmBE= +github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4/go.mod h1:RdR1j20Aj5pB6+fw6Y9Ur7lMHpegTEjY1vc19hEZL40= +github.com/pointlander/peg v1.0.1 h1:mgA/GQE8TeS9MdkU6Xn6iEzBmQUQCNuWD7rHCK6Mjs0= +github.com/pointlander/peg v1.0.1/go.mod h1:5hsGDQR2oZI4QoWz0/Kdg3VSVEC31iJw/b7WjqCBGRI= +github.com/polyfloyd/go-errorlint v1.0.5 h1:AHB5JRCjlmelh9RrLxT9sgzpalIwwq4hqE8EkwIwKdY= github.com/polyfloyd/go-errorlint v1.0.5/go.mod h1:APVvOesVSAnne5SClsPxPdfvZTVDojXh1/G3qb5wjGI= +github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= -github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= -github.com/prometheus/client_golang v0.0.0-20180209125602-c332b6f63c06/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= -github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= -github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_golang v1.15.1 h1:8tXpTmJbyH5lydzFPoxSIJ0J46jdh3tylbvM1xCv0LI= +github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= -github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= -github.com/prometheus/common v0.0.0-20180110214958-89604d197083/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= +github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.29.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.30.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= -github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= -github.com/prometheus/procfs v0.0.0-20180125133057-cb4147076ac7/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= +github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.0-20190522114515-bc1a522cf7b1/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= -github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= -github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= -github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= +github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pseudomuto/protoc-gen-doc v1.3.2/go.mod h1:y5+P6n3iGrbKG+9O04V5ld71in3v/bX88wUwgt+U8EA= -github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= -github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= -github.com/quasilyte/go-ruleguard v0.1.2-0.20200318202121-b00d7a75d3d8/go.mod h1:CGFX09Ci3pq9QZdj86B+VGIdNj4VyCo2iPOGS9esB/k= -github.com/quasilyte/go-ruleguard v0.3.1-0.20210203134552-1b5a410e1cc8/go.mod h1:KsAh3x0e7Fkpgs+Q9pNLS5XpFSvYCEVl5gP9Pp1xp30= +github.com/quasilyte/go-ruleguard v0.3.18 h1:sd+abO1PEI9fkYennwzHn9kl3nqP6M5vE7FiOzZ+5CE= github.com/quasilyte/go-ruleguard v0.3.18/go.mod h1:lOIzcYlgxrQ2sGJ735EHXmf/e9MJ516j16K/Ifcttvs= -github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.21/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= -github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= +github.com/quasilyte/gogrep v0.0.0-20220828223005-86e4605de09f h1:6Gtn2i04RD0gVyYf2/IUMTIs+qYleBt4zxDqkLTcu4U= github.com/quasilyte/gogrep v0.0.0-20220828223005-86e4605de09f/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= +github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf68pVdQ3bCFZMDmnt9yqcMBro1pC7F+IPYMY= github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/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/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= 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/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= -github.com/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= -github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= -github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= +github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52 h1:RnWNS9Hlm8BIkjr6wx8li5abe0fr73jljLycdfemTp0= github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= +github.com/rjeczalik/notify v0.9.1 h1:CLCKso/QK1snAlnhNR/CNvNiFU2saUtjV0bx3EwNeCE= github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.1.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/fastuuid v1.2.0 h1:Ppwyp6VYCF1nvBTXL3trRso7mXMlRrw9ooo375wvi2s= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -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.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +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/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/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ= -github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= -github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo= -github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs= -github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= -github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= +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.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY= +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/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryancurrah/gomodguard v1.0.4/go.mod h1:9T/Cfuxs5StfsocWr4WzDL36HqnX0fVb9d5fSEaLhoE= -github.com/ryancurrah/gomodguard v1.1.0/go.mod h1:4O8tr7hBODaGE6VIhfJDHcwzh5GUccKSJBU0UMXJFVM= +github.com/ryancurrah/gomodguard v1.2.4 h1:CpMSDKan0LtNGGhPrvupAoLeObRFjND8/tU1rEOtBp4= github.com/ryancurrah/gomodguard v1.2.4/go.mod h1:+Kem4VjWwvFpUJRJSwa16s1tBJe+vbv02+naTow2f6M= +github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f h1:UFr9zpz4xgTnIE5yIMtWAMngCdZ9p/+q6lTbgelo80M= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/safchain/ethtool v0.0.0-20190326074333-42ed695e3de8/go.mod h1:Z0q5wiBQGYcxhMZ6gUqHn6pYNLypFAvaL3UvgZLR0U4= -github.com/safchain/ethtool v0.0.0-20210803160452-9aa261dae9b1/go.mod h1:Z0q5wiBQGYcxhMZ6gUqHn6pYNLypFAvaL3UvgZLR0U4= -github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= -github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= -github.com/sagikazarmark/crypt v0.6.0/go.mod h1:U8+INwJo3nBv1m6A/8OBXAq7Jnpspk5AxSgDyEQcea8= -github.com/sagikazarmark/crypt v0.8.0/go.mod h1:TmKwZAo97S4Fy4sfMH/HX/cQP5D+ijra2NyLpNNmttY= +github.com/sagikazarmark/crypt v0.10.0 h1:96E1qrToLBU6fGzo+PRRz7KGOc9FkYFiPnR3/zf8Smg= +github.com/sagikazarmark/crypt v0.10.0/go.mod h1:gwTNHQVoOS3xp9Xvz5LLR+1AauC5M6880z5NWzdhOyQ= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= +github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= -github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= +github.com/sashamelentyev/usestdlibvars v1.20.0 h1:K6CXjqqtSYSsuyRDDC7Sjn6vTMLiSJa4ZmDkiokoqtw= github.com/sashamelentyev/usestdlibvars v1.20.0/go.mod h1:0GaP+ecfZMXShS0A94CJn6aEuPRILv8h/VuWI9n1ygg= -github.com/sassoftware/go-rpmutils v0.0.0-20190420191620-a8f1baeba37b/go.mod h1:am+Fp8Bt506lA3Rk3QCmSqmYmLMnPDhdDUcosQCAx+I= +github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= -github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= -github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= -github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/securego/gosec v0.0.0-20200103095621-79fbf3af8d83/go.mod h1:vvbZ2Ae7AzSq3/kywjUDxSNq2SJ27RxCz2un0H3ePqE= -github.com/securego/gosec v0.0.0-20200401082031-e946c8c39989/go.mod h1:i9l/TNj+yDFh9SZXUTvspXTjbFXgZGP/UvhU1S65A4A= -github.com/securego/gosec/v2 v2.3.0/go.mod h1:UzeVyUXbxukhLeHKV3VVqo7HdoQR9MrRfFmZYotn8ME= +github.com/securego/gosec/v2 v2.13.1 h1:7mU32qn2dyC81MH9L2kefnQyRMUarfDER3iQyMHcjYM= github.com/securego/gosec/v2 v2.13.1/go.mod h1:EO1sImBMBWFjOTFzMWfTRrZW6M15gm60ljzrmy/wtHo= +github.com/segmentio/fasthash v1.0.3 h1:EI9+KE1EwvMLBWwjpRDc+fEM+prwxDYbslddQGtrmhM= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= +github.com/segmentio/kafka-go v0.2.0 h1:HtCSf6B4gN/87yc5qTl7WsxPKQIIGXLPPM1bMCPOsoY= 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/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/serialx/hashring v0.0.0-20190422032157-8b2912629002/go.mod h1:/yeG0My1xr/u+HZrFQ1tOQQQQrOawfyMUH13ai5brBc= +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 v0.0.0-20190901111213-e4ec7b275ada/go.mod h1:WWnYX4lzhCH5h/3YBfyVA3VbLYjlMZZAQcW9ojMexNc= -github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil/v3 v3.22.8/go.mod h1:s648gW4IywYzUfE/KjXxUsqrqx/T2xO5VqOXxONeRfI= -github.com/shirou/gopsutil/v3 v3.22.9/go.mod h1:bBYl1kjgEJpWpxeHmLI+dVHWtyAwfcmSBLDsp2TNT8A= -github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4/go.mod h1:qsXQc7+bwAM3Q1u/4XEfrquwF8Lw7D7y5cD8CuHnfIc= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go v0.0.0-20200502201357-93f07166e636/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= +github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= -github.com/sirupsen/logrus v1.0.4-0.20170822132746-89742aefa4b2/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= -github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sivchari/containedctx v1.0.2 h1:0hLQKpgC53OVF1VT7CeoFHk9YKstur1XOgfYIc1yrHI= github.com/sivchari/containedctx v1.0.2/go.mod h1:PwZOeqm4/DLoJOqMSIJs3aKqXRX4YO+uXww087KZ7Bw= +github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= +github.com/sivchari/tenv v1.7.0 h1:d4laZMBK6jpe5PWepxlV9S+LC0yXqvYHiq8E6ceoVVE= github.com/sivchari/tenv v1.7.0/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= +github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= -github.com/skip-mev/mev-cometbft v0.34.27-mev.17 h1:Sti5vpx6jvUzmLcsi22Xv9hf8eByXz6fKrKS3tACckw= -github.com/skip-mev/mev-cometbft v0.34.27-mev.17/go.mod h1:BcCbhKv7ieM0KEddnYXvQZR+pZykTKReJJYf7YC7qhw= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/assertions v1.0.0/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= -github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/assertions v1.13.0/go.mod h1:wDmR7qL282YbGsPy6H/yAsesrxfxaaSlJazyFLYVFx8= -github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9/go.mod h1:SnhjPscd9TpLiy1LpzGSKh3bXCfxxXuqd9xmQJy3slM= -github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= -github.com/smartystreets/gunit v1.0.0/go.mod h1:qwPWnhz6pn0NnRBP++URONOVyNkPyr4SauJk4cUOwJs= +github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa h1:YJfZp12Z3AFhSBeXOlv4BO55RMwPn2NoQeDsrdWnBtY= github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= +github.com/soheilhy/cmux v0.1.4 h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= +github.com/sonatard/noctx v0.0.1 h1:VC1Qhl6Oxx9vvWo3UDgrGXYCeKCe3Wbw7qAWL6FrmTY= github.com/sonatard/noctx v0.0.1/go.mod h1:9D2D/EoULe8Yy2joDHJj7bv3sZoq9AaSb8B4lqBjiZI= +github.com/sony/gobreaker v0.4.1 h1:oMnRNZXX5j85zso6xCPRNPtmAycat+WcoKbklScLDgQ= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sourcegraph/go-diff v0.5.1/go.mod h1:j2dHj3m8aZgQO8lMTcTnBcXkRRRqi34cd2MNlA9u1mE= -github.com/sourcegraph/go-diff v0.5.3/go.mod h1:v9JDtjCE4HHHCZGId75rg8gkKKa98RVjBcBGsVmMmak= +github.com/sourcegraph/go-diff v0.6.1 h1:hmA1LzxW0n1c3Q4YbrFgg4P99GSnebYa3x8gr0HZqLQ= github.com/sourcegraph/go-diff v0.6.1/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 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.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= -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.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= -github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +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.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= -github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= -github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/cobra v1.6.0/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= 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= -github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 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.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.6.1/go.mod h1:t3iDnF5Jlj76alVNuyFBk5oUMCvsrkbvZK0WQdfDi5k= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= -github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= -github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= -github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= -github.com/spf13/viper v1.13.0/go.mod h1:Icm2xNL3/8uyh/wFuB1jI7TiTNKp8632Nwegu+zgdYw= -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 h1:Gb2Tyox57NRNuZ2d3rmvB3pcmbu7O1RS3m8WRx7ilrg= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= +github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= -github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= -github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= -github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8= -github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= -github.com/strangelove-ventures/packet-forward-middleware/v4 v4.0.5 h1:KKUqeGhVBK38+1LwThC8IeIcsJZ6COX5kvhiJroFqCM= -github.com/strangelove-ventures/packet-forward-middleware/v4 v4.0.5/go.mod h1:4zAtg449/JISRmf+sbmqolqSLP+QJBh+EtWkWtt/AKE= +github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f h1:NJdZ+YJ9Vf2t286L20IjFK0SxGpobF1xIp5ZQlxWetk= +github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f/go.mod h1:DJNSVK8NCYHM+aZHCFkcAqPwjzwHYAjhjSMlhAGtJ3c= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v1.0.0 h1:kuuDrUJFZL1QYL9hUNuCxNObNzB0bV/ZG5jV3RWAQgo= github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e h1:mOtuXaRAbVZsxAHVdPR3IjfmN8T1h2iczJLynhLybf8= github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= -github.com/stretchr/objx v0.0.0-20180129172003-8a3f7159479f/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v0.0.0-20170130113145-4d4bfba8f1d1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -2608,223 +1986,133 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 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.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= -github.com/subosito/gotenv v1.4.0/go.mod h1:mZd6rFysKEcUhUHXJk0C/08wAgyDBFuwEYL7vWWGaGo= -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/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM= +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.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/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= -github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= -github.com/tdakkota/asciicheck v0.0.0-20200416190851-d7f85be797a2/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= -github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= +github.com/tdakkota/asciicheck v0.1.1 h1:PKzG7JUTUmVspQTDqtkX9eSiLGossXTybutHwTXuO0A= github.com/tdakkota/asciicheck v0.1.1/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= -github.com/tdewolff/minify/v2 v2.12.1/go.mod h1:p5pwbvNs1ghbFED/ZW1towGsnnWwzvM8iz8l0eURi9g= -github.com/tdewolff/minify/v2 v2.12.4/go.mod h1:h+SRvSIX3kwgwTFOpSckvSxgax3uy8kZTSF1Ojrr3bk= -github.com/tdewolff/parse/v2 v2.6.3/go.mod h1:woz0cgbLwFdtbjJu8PIKxhW05KplTFQkOdX78o+Jgrs= -github.com/tdewolff/parse/v2 v2.6.4/go.mod h1:woz0cgbLwFdtbjJu8PIKxhW05KplTFQkOdX78o+Jgrs= -github.com/tdewolff/test v1.0.7/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= 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/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U= -github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk= 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/spm v0.1.9/go.mod h1:iHgfQ5YOI6ONc9E7ugGQolVdfSMHpeXfZ/OpXuN/42Q= -github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8/BmWlMBw= -github.com/tendermint/tm-db v0.6.6/go.mod h1:wP8d49A85B7/erz/r4YbKssKw6ylsO/hKtFk7E1aWZI= -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/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= -github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= -github.com/tetafro/godot v0.3.7/go.mod h1:/7NLHhv08H1+8DNj0MElpAACw1ajsCuf3TKNQxA5S+0= -github.com/tetafro/godot v0.4.2/go.mod h1:/7NLHhv08H1+8DNj0MElpAACw1ajsCuf3TKNQxA5S+0= +github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= -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/gjson v1.6.7/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI= +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.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= +github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= +github.com/tidwall/sjson v1.2.4 h1:cuiLzLnaMeBhRmEv00Lpk3tkYrcxpmbU81tAY4Dw0tc= github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp19pSNM= -github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= -github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= +github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= +github.com/timonwong/loggercheck v0.9.3 h1:ecACo9fNiHxX4/Bc02rW2+kaJIAMAes7qJ7JKxt0EZI= github.com/timonwong/loggercheck v0.9.3/go.mod h1:wUqnk9yAOIKtGA39l1KLE9Iz0QiTocu/YZoOf+OzFdw= +github.com/tinylib/msgp v1.0.2 h1:DfdQrzQa7Yh2es9SuLkixqxuXS2SxsdYn0KbdrOGWD8= 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/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLDRpvE+3b7gP/C2YyLFYxNmcLnPTMe0= -github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= -github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= -github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= +github.com/tklauser/go-sysconf v0.3.5 h1:uu3Xl4nkLzQfXNsWn15rPc/HQCJKObbt1dKJeWp3vU4= github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= +github.com/tklauser/numcpus v0.2.2 h1:oyhllyrScuYI6g+h/zUvNXNp1wy7x8qQy3t/piefldA= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8 h1:ndzgwNDnKIqyCvHTXaCqh9KlOWKvBry6nuXMJmonVsE= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tomarrell/wrapcheck/v2 v2.7.0 h1:J/F8DbSKJC83bAvC6FoZaRjZiZ/iKoueSdrEkmGeacA= github.com/tomarrell/wrapcheck/v2 v2.7.0/go.mod h1:ao7l5p0aOlUNJKI0qVwB4Yjlqutd0IvAB9Rdwyilxvg= -github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce/go.mod h1:o8v6yHRoik09Xen7gje4m9ERNah1d1PPsVq1VEx9vE4= -github.com/tommy-muehle/go-mnd v1.1.1/go.mod h1:dSUh0FtTP8VhvkL1S+gUR1OKd9ZnSaozuI6r3m6wOig= -github.com/tommy-muehle/go-mnd v1.3.1-0.20200224220436-e6f9a994e8fa/go.mod h1:dSUh0FtTP8VhvkL1S+gUR1OKd9ZnSaozuI6r3m6wOig= +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/tonistiigi/fsutil v0.0.0-20201103201449-0834f99b7b85/go.mod h1:a7cilN64dG941IOXfhJhlH0qB92hxJ9A1ewrdUmJ6xo= -github.com/tonistiigi/fsutil v0.0.0-20220115021204-b19f7f9cb274/go.mod h1:oPAfvw32vlUJSjyDcQ3Bu0nb2ON2B+G0dtVN/SZNJiA= -github.com/tonistiigi/go-actions-cache v0.0.0-20220404170428-0bdeb6e1eac7/go.mod h1:qqvyZqkfwkoJuPU/bw61bItaoO0SJ8YSW0vSVRRvsRg= -github.com/tonistiigi/go-archvariant v1.0.0/go.mod h1:TxFmO5VS6vMq2kvs3ht04iPXtu2rUT/erOnGFYfk5Ho= -github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea/go.mod h1:WPnis/6cRcDZSUvVmezrxJPkiO87ThFYsoUiMwWNDJk= -github.com/tonistiigi/vt100 v0.0.0-20210615222946-8066bb97264f/go.mod h1:ulncasL3N9uLrVann0m+CDlJKWsIAP34MPcOJF6VRvc= -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 h1:G3dpKMzFDjgEh2q1Z7zUUtKa8ViPtH+ocF0bE0g00O8= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= +github.com/tyler-smith/go-bip39 v1.0.2 h1:+t3w+KwLXO6154GNJY+qUtIxLTmFjfUmpguQT1OlOT8= github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= -github.com/uber/jaeger-client-go v2.25.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo= -github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= -github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= -github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/ultraware/funlen v0.0.2/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= +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.0.3 h1:5ylVWm8wsNwH5aWo9438pwvsK0QiqVuUrt9bn7S/iLA= github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= -github.com/ultraware/whitespace v0.0.4/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= +github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= -github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.4/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= -github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= -github.com/uudashr/gocognit v1.0.1/go.mod h1:j44Ayx2KW4+oB6SWMv8KsmHzZrOInQav7D3cQMJ5JUM= +github.com/uudashr/gocognit v1.0.6 h1:2Cgi6MweCsdB6kpcVQp7EW4U23iBFQWfTXiWlyp842Y= github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= +github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.2.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s= -github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= -github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= -github.com/valyala/fasthttp v1.40.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= +github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/quicktemplate v1.2.0/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4= -github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= -github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= -github.com/vbatts/tar-split v0.11.2/go.mod h1:vV3ZuO2yWSVsz+pfFzDG/upWH1JhjOiEaWq6kXyQ3VI= -github.com/vdemeester/k8s-pkg-credentialprovider v1.17.4/go.mod h1:inCTmtUdr5KJbreVojo06krnTgaeAz/Z7lynpPk/Q2c= +github.com/vektra/mockery/v2 v2.14.0 h1:KZ1p5Hrn8tiY+LErRMr14HHle6khxo+JKOXLBW/yfqs= github.com/vektra/mockery/v2 v2.14.0/go.mod h1:bnD1T8tExSgPD1ripLkDbr60JA9VtQeu12P3wgLZd7M= -github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= -github.com/vishvananda/netlink v0.0.0-20181108222139-023a6dafdcdf/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= -github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= -github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= -github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= -github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= -github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI= +github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= -github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= +github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= +github.com/willf/bitset v1.1.3 h1:ekJIKh6+YbUIVt9DfNbkR5d6aFcFTLDRyJNAACURBg8= github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= -github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= -github.com/xanzy/go-gitlab v0.31.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug= -github.com/xanzy/go-gitlab v0.32.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug= +github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= +github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= +github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6 h1:YdYsPAZ2pC6Tow/nPZOPQ96O3hm/ToAkGsPLzedXERk= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= -github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= +github.com/ybbus/jsonrpc v2.1.2+incompatible h1:V4mkE9qhbDQ92/MLMIhlhMSbz8jNXdagC3xBR5NDwaQ= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= +github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= -github.com/yosssi/ace v0.0.5/go.mod h1:ALfIzm2vT7t5ZE7uoIZqF3TQ7SAOyupFZnkrF5id+K0= -github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= -github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13 h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs= -github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA= -github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= -github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +gitlab.com/bosi/decorder v0.2.3 h1:gX4/RgK16ijY8V+BRQHAySfQAb354T7/xQpDB2n10P0= gitlab.com/bosi/decorder v0.2.3/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -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 h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c/go.mod h1:xCI7ZzBfRuGgBXyXO6yfWfDmlWd35khcWpUa4L0xI/k= -go.etcd.io/etcd v0.5.0-alpha.5.0.20200910180754-dd1b699fc489/go.mod h1:yVHk9ub3CSBatqGNg7GRmsnfLWtoW60w4eDYfh7vHDg= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= -go.etcd.io/etcd/api/v3 v3.5.5/go.mod h1:KFtNaxGDw4Yx/BA4iPPwevUTAuqcsPxzyX8PHydchN8= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.5/go.mod h1:ggrwbk069qxpKPq8/FKkQ3Xq9y39kbFR4LnKszpRXeQ= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= -go.etcd.io/etcd/client/v2 v2.305.4/go.mod h1:Ud+VUwIi9/uQHOMA+4ekToJ12lTxlv0zB/+DHwTGEbU= -go.etcd.io/etcd/client/v2 v2.305.5/go.mod h1:zQjKllfqfBVyVStbt4FaosoX2iYd8fV/GRy/PbowgP4= -go.etcd.io/etcd/client/v3 v3.5.0/go.mod h1:AIKXXVX/DQXtfTEqBryiLTUXwON+GuvO6Z7lLS/oTh0= -go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= -go.etcd.io/etcd/client/v3 v3.5.5/go.mod h1:aApjR4WGlSumpnJ2kloS75h6aHUmAyaPLjHMxpc7E7c= -go.etcd.io/etcd/pkg/v3 v3.5.0/go.mod h1:UzJGatBQ1lXChBkQF0AuAtkRQMYnHubxAEYIrC3MSsE= -go.etcd.io/etcd/raft/v3 v3.5.0/go.mod h1:UFOHSIvO/nKwd4lhkwabrTD3cqW5yVyYYf/KlD00Szc= -go.etcd.io/etcd/server/v3 v3.5.0/go.mod h1:3Ah5ruV+M+7RZr0+Y/5mNLwC+eQlni+mQmOVdCRJoS4= -go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403/go.mod h1:jHoPAGnDrCy6kaI2tAze5Prf0Nr0w/oNkROt2lw3n3o= -go.mozilla.org/pkcs7 v0.0.0-20200128120323-432b2356ecb1/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk= -go.opencensus.io v0.15.0/go.mod h1:UffZAU+4sDEINUGP/B7UfBBkq4fqLu9zXAX7ke6CHW0= -go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= -go.opencensus.io v0.19.1/go.mod h1:gug0GbSHa8Pafr0d2urOSgoXHZ6x/RUlaiT0d9pqb4A= -go.opencensus.io v0.19.2/go.mod h1:NO/8qkisMZLZ1FCsKNqtJPwc8/TaclWyY0B6wcYNg9M= +go.etcd.io/etcd/api/v3 v3.5.9 h1:4wSsluwyTbGGmyjJktOf3wFQoTBIURXHnq9n/G/JQHs= +go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= +go.etcd.io/etcd/client/pkg/v3 v3.5.9 h1:oidDC4+YEuSIQbsR94rY9gur91UPL6DnxDCIYd2IGsE= +go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= +go.etcd.io/etcd/client/v2 v2.305.7 h1:AELPkjNR3/igjbO7CjyF1fPuVPjrblliiKj+Y6xSGOU= +go.etcd.io/etcd/client/v2 v2.305.7/go.mod h1:GQGT5Z3TBuAQGvgPfhR7VPySu/SudxmEkRq9BgzFU6s= +go.etcd.io/etcd/client/v3 v3.5.9 h1:r5xghnU7CwbUxD/fbUtRyJGaYNfDun8sp/gTr1hew6E= +go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= +go.etcd.io/gofail v0.1.0 h1:XItAMIhOojXFQMgrxjnd2EIIHun/d5qL0Pf7FzVTkFg= +go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -2834,142 +2122,69 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 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/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.28.0/go.mod h1:vEhqr0m4eTc+DWxfsXoXue2GBgV2uUwVznkGIHW/e5w= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.29.0/go.mod h1:LsankqVDx4W+RhZNA5uWarULII/MBhF5qwCYxTuyXjs= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.3 h1:syAz40OyelLZo42+3U68Phisvrx4qh+4wpdZw7eUUdY= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.3/go.mod h1:Dts42MGkzZne2yCru741+bFiTMWkIj/LLRizad7b9tw= -go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.29.0/go.mod h1:vHItvsnJtp7ES++nFLLFBzUWny7fJQSvTlxFcqQGUr4= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0/go.mod h1:2AboqHi0CiIZU0qwhtUfCYD1GeUzvvIXWNkhDt7ZMG4= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.29.0/go.mod h1:tLYsuf2v8fZreBVwp9gVMhefZlLFZaUiNVSq8QxXRII= -go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= -go.opentelemetry.io/otel v1.3.0/go.mod h1:PWIKzi6JCp7sM0k9yZ43VX+T345uNbAkDKwHVjb2PTs= -go.opentelemetry.io/otel v1.4.0/go.mod h1:jeAqMFKy2uLIxCtKxoFj0FAL5zAPKQagc3+GtBWakzk= -go.opentelemetry.io/otel v1.4.1/go.mod h1:StM6F/0fSwpd8dKWDCdRr7uRvEPYdW0hBSlbdTiUde4= +go.opentelemetry.io/otel v1.11.0 h1:kfToEGMDq6TrVrJ9Vht84Y8y9enykSZzDDZglV0kIEk= go.opentelemetry.io/otel v1.11.0/go.mod h1:H2KtuEphyMvlhZ+F7tg9GRhAOe60moNx61Ex+WmiKkk= -go.opentelemetry.io/otel/exporters/jaeger v1.4.1/go.mod h1:ZW7vkOu9nC1CxsD8bHNHCia5JUbwP39vxgd1q4Z5rCI= -go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.3.0/go.mod h1:VpP4/RMn8bv8gNo9uK7/IMY4mtWLELsS+JIP0inH0h4= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.4.1/go.mod h1:VpP4/RMn8bv8gNo9uK7/IMY4mtWLELsS+JIP0inH0h4= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.3.0/go.mod h1:hO1KLR7jcKaDDKDkvI9dP/FIhpmna5lkqPUQdEjFAM8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.4.1/go.mod h1:o5RW5o2pKpJLD5dNTCmjF1DorYwMeFJmb/rKr5sLaa8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.3.0/go.mod h1:keUU7UfnwWTWpJ+FWnyqmogPa82nuU5VUANFq49hlMY= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.4.1/go.mod h1:c6E4V3/U+miqjs/8l950wggHGL1qzlp0Ypj9xoGrPqo= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.3.0/go.mod h1:QNX1aly8ehqqX1LEa6YniTU7VY9I6R3X/oPxhGdTceE= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.4.1/go.mod h1:VwYo0Hak6Efuy0TXsZs8o1hnV3dHDPNtDbycG0hI8+M= -go.opentelemetry.io/otel/internal/metric v0.27.0/go.mod h1:n1CVxRqKqYZtqyTh9U/onvKapPGv7y/rpyOTI+LFNzw= -go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/metric v0.27.0/go.mod h1:raXDJ7uP2/Jc0nVZWQjJtzoyssOYWu/+pjZqRzfvZ7g= -go.opentelemetry.io/otel/metric v0.32.3/go.mod h1:pgiGmKohxHyTPHGOff+vrtIH39/R9fiO/WoenUQ3kcc= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= -go.opentelemetry.io/otel/sdk v1.3.0/go.mod h1:rIo4suHNhQwBIPg9axF8V9CA72Wz2mKF1teNrup8yzs= -go.opentelemetry.io/otel/sdk v1.4.1/go.mod h1:NBwHDgDIBYjwK2WNu1OPgsIc2IJzmBXNnvIJxJc8BpE= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0/go.mod h1:h7RBNMsDJ5pmI1zExLi+bJK+Dr8NQCh0qGhm1KDnNlE= -go.opentelemetry.io/otel/sdk/metric v0.20.0/go.mod h1:knxiS8Xd4E/N+ZqKmUPf3gTTZ4/0TjTXukfxjzSTpHE= -go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= -go.opentelemetry.io/otel/trace v1.3.0/go.mod h1:c/VDhno8888bvQYmbYLqe41/Ldmr/KKunbvWM4/fEjk= -go.opentelemetry.io/otel/trace v1.4.0/go.mod h1:uc3eRsqDfWs9R7b92xbQbU42/eTNz4N+gLP8qJCi4aE= -go.opentelemetry.io/otel/trace v1.4.1/go.mod h1:iYEVbroFCNut9QkwEczV9vMRPHNKSSwYZjulEtsmhFc= +go.opentelemetry.io/otel/trace v1.11.0 h1:20U/Vj42SX+mASlXLmSGBg6jpI1jQtv682lZtTAOVFI= go.opentelemetry.io/otel/trace v1.11.0/go.mod h1:nyYjis9jy0gytE9LXGU+/m1sHTKbRY0fX0hulNNDP1U= +go.opentelemetry.io/proto/otlp v0.7.0 h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.opentelemetry.io/proto/otlp v0.11.0/go.mod h1:QpEjXPrNQzrFDZgoTo49dgHR9RYRSrg3NAKnUGl9YpQ= -go.opentelemetry.io/proto/otlp v0.12.0/go.mod h1:TsIjwGWIx5VFYv9KGVlOpxoBl5Dy+63SUguV7GGvlSQ= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= -go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= -go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= -gocloud.dev v0.19.0/go.mod h1:SmKwiR8YwIMMJvQBKLsC3fHNyMwXLw3PMDO+VVteJMI= -golang.org/x/build v0.0.0-20190314133821-5284462c4bec/go.mod h1:atTaCNAy0f16Ah5aV1gMSwgiKVHwu/JncqDpuRr7lS4= -golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= -golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= -golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210915214749-c084706c2272/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-20211202192323-5770296d904e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +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.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/crypto v0.2.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE= -golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= +golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= +golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= 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= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= @@ -2978,19 +2193,15 @@ 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-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA= -golang.org/x/exp v0.0.0-20221019170559-20944726eadf/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp v0.0.0-20230307190834-24139beb5833 h1:SChBja7BCQewoTAU7IgvucQKMIXrEpFxNMs0spT3/5s= -golang.org/x/exp v0.0.0-20230307190834-24139beb5833/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20220613132600-b0d781184e0d/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc= +golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk= golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= @@ -3001,38 +2212,28 @@ golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRu golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= -golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181108082009-03003ca0c849/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -3040,23 +2241,15 @@ golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190619014844-b5b0513f8c1b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -3074,13 +2267,10 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -3088,56 +2278,27 @@ golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210520170846-37e1c6afe023/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20221002022538-bcab6841153b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20221017152216-f25eb7ecb193/go.mod h1:RpDiru2p0u2F0lLpEoqnP2+7xs0ifAuOcJ442g6GU2s= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/oauth2 v0.0.0-20180724155351-3d292e4d0cdc/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU= +golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/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-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -3147,12 +2308,10 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= @@ -3161,14 +2320,14 @@ golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7Lm golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= -golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= -golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= +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/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= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -3176,27 +2335,21 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= +golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181218192612-074acd46bca6/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -3204,47 +2357,27 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190522044717-8097e1b27ff5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190620070143-6f217b454f45/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190812073006-9eafafc0a87e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200120151820-655fe14d7479/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200217220822-9197077df867/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -3256,136 +2389,73 @@ golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200817155316-9781c653f443/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200916030750-2334cc1a136f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200917073148-efd3b9a0ff20/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200922070232-aee5d888a860/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-20201013081832-0aaa2718063a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201117170446-d9b008d0a637/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= -golang.org/x/sys v0.0.0-20201202213521-69691e467435/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210313202042-bd2e13477e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -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-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/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-20210909193231-528a39cd75f3/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210917161153-d61c044b1678/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-20211007075335-d3039528d8ac/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-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/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-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220111092808-5a964db01320/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a/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-20220319134239-a9b59b0215f8/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-20220405210540-1e041c57c461/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/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-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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-20220817070843-5a390386f1f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/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-20220915200043-7b5979e65e41/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20221013171732-95e765b1cc43/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.3.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 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20220919170432-7a66f970e087/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= -golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw= -golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/term v0.9.0 h1:GRRCnKYhdQrD8kfRAdQ6Zcw1P0OcELxGLKJvtjVMZ28= +golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -3397,158 +2467,82 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58= +golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/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/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220609170525-579cf78fd858/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= golang.org/x/time v0.1.0/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-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181117154741-2ddaf7f79a09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181219222714-6e267b5cc78e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190110163146-51295c7ec13a/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-20190221204921-83362c3779f5/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190322203728-c1a832b0ad89/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190422233926-fe54fb35175b/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190521203540-521d6ed310dd/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190706070813-72ffa07ba3db/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= -golang.org/x/tools v0.0.0-20190719005602-e377ae9d6386/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190916130336-e45ffcd953cc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113232020-e2727e816f5a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200102140908-9497f49d5709/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117220505-0cba7a3a9ee9/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204192400-7124308813f3/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200331202046-9d5940d49312/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200414032229-332987a829c3/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200422022333-3d57cf2e726e/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200426102838-f3a5411a4c3b/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200502202811-ed308ab3e770/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200616133436-c1934b75d054/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200624225443-88f3c62a19ff/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200625211823-6506e20df31f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200626171337-aa94e735be7f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200630154851-b2d8b0336632/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200706234117-b22de6825cf7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200812195022-5ae4c3c160a0/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200831203904-5a2aa26beb65/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20200916195026-c9a70fc28ce3/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/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-20201028025901-8cd080b735b3/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= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201230224404-63754364767c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= -golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.9-0.20211228192929-ee1ca4ffc4da/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= -golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= -golang.org/x/tools v0.1.12-0.20220628192153-7743d1d949f1/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= -golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -3556,32 +2550,23 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= gonum.org/v1/gonum v0.8.2 h1:CCXrcPKiGGotvnN6jfUsKk4rRqm7q09/YbKb5xCEvtM= gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= +gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0 h1:OE9mWmgKkjJyEmDAAtGMPjXu+YNeGvK9VTSHY6+Qihc= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= +gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b h1:Qh4dB5D/WpoUUp3lSod7qgoyEHbDGPUWjIbnqdqqe1k= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= -google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.0.0-20181220000619-583d854617af/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.2.0/go.mod h1:IfRCZScioGtypHNTlz3gFk67J8uePVW7uDTBzXuIkhU= -google.golang.org/api v0.3.0/go.mod h1:IuvZyQh8jgscv8qWfQ4ABd8m7hEudgBFM/EdhA3BnXw= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.5.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.6.0/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4= -google.golang.org/api v0.6.1-0.20190607001116-5213b8090861/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.10.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= @@ -3591,7 +2576,6 @@ google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/ google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.25.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= @@ -3600,7 +2584,6 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= @@ -3609,9 +2592,7 @@ google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6 google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -3621,7 +2602,6 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= -google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= @@ -3630,48 +2610,35 @@ google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaE google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= 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.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= -google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.122.0 h1:zDobeejm3E7pEG1mNHvdxvjs5XJoCMzyNH+CmwL94Es= +google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= 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.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.2/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/cloud v0.0.0-20151119220103-975617b05ea8/go.mod h1:0H1ncTHf11KCFhTc/+EFRbzSCOZx+VUbRMk55Yv5MYk= -google.golang.org/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 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-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181107211654-5fc9ac540362/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181219182458-5a97ab628bfb/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190508193815-b515fa19cec8/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190522204451-c2c4e71fbf69/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190620144150-6af8c5fc6601/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200117163144-32f20d992d24/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= @@ -3687,18 +2654,12 @@ google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200527145253-8367513e4ece/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200626011028-ee7919e894b5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200707001353-8e8330bf89df/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -3726,13 +2687,8 @@ google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -3752,7 +2708,6 @@ google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= @@ -3777,18 +2732,57 @@ google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53B google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= 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-20221024153911-1573dae28c9c/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= -google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221117204609-8f9c96812029/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20230125152338-dcaf20b6aeaa/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= -google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 h1:znp6mq/drrY+6khTAlJUDNFFcDGV2ENLYKpMq8SyCds= -google.golang.org/genproto v0.0.0-20230223222841-637eb2293923/go.mod h1:3Dl5ZL0q0isWJt+FVcfpQyirqemEuLAK/iFvg1UP1Hw= -google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= +google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc h1:8DyZCyvI8mE1IdLy/60bS+52xfymkE72wv1asokgtao= +google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1:kVKPf/IiYSBWEWtkIn6wZXwWGCnLKcC8oWfZvXjsGnM= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +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.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= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +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.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= +google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= 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= @@ -3805,50 +2799,38 @@ 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.28.2-0.20220831092852-f930b1dc76e8/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= +gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 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-20141024133853-64131543e789/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/cheggaaa/pb.v1 v1.0.27 h1:kJdccidYzt3CaHD1crCFTS1hxyhSi059NhOFUf03YFo= +gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/gcfg.v1 v1.2.3 h1:m8OOJ4ccYHnx2f4gQwpno8nAX5OGOh7RLaaz0pj3Ogs= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2/go.mod h1:Xk6kEKp8OKb+X14hQBKWaSkCsqBpgog8nAV2xsGOxlo= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.51.1/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.56.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.6/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= +gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6 h1:a6cXbcDDUkSBlpnkWV1bJ+vv3mOgQEltEJ2rPxroVu0= gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= +gopkg.in/resty.v1 v1.12.0 h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/urfave/cli.v1 v1.20.0 h1:NdAVW6RYxDif9DhDHaAortIu956m2c0v+09AZBPTbE0= gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= -gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -3856,30 +2838,19 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.6/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20191120175047-4206685974f2/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0/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.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= -gotest.tools/v3 v3.1.0/go.mod h1:fHy7eyTmJFO5bQbUsEGQ1v4m2J3Jz9eWL54TP2/ZuYQ= -gotest.tools/v3 v3.2.0/go.mod h1:Mcr9QNxkg0uMvy/YElmo4SpXgJKWgQvYrT7Kw5RzJ1A= -gotest.tools/v3 v3.3.0/go.mod h1:Mcr9QNxkg0uMvy/YElmo4SpXgJKWgQvYrT7Kw5RzJ1A= gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= -grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o= -honnef.co/go/tools v0.0.0-20180920025451-e3ad64cb4ed3/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +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= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -3887,124 +2858,34 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= +honnef.co/go/tools v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA= honnef.co/go/tools v0.3.3/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= -k8s.io/api v0.0.0-20180904230853-4e7be11eab3f/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA= -k8s.io/api v0.17.4/go.mod h1:5qxx6vjmwUVG2nHQTKGlLts8Tbok8PzHl4vHtVFuZCA= -k8s.io/api v0.19.0/go.mod h1:I1K45XlvTrDjmj5LoM5LuP/KYrhWbjUKT/SoPG0qTjw= -k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo= -k8s.io/api v0.20.4/go.mod h1:++lNL1AJMkDymriNniQsWRkMDzRaX2Y/POTUi8yvqYQ= -k8s.io/api v0.20.6/go.mod h1:X9e8Qag6JV/bL5G6bU8sdVRltWKmdHsFUGS3eVndqE8= -k8s.io/api v0.22.5/go.mod h1:mEhXyLaSD1qTOf40rRiKXkc+2iCem09rWLlFwhCEiAs= -k8s.io/api v0.23.4/go.mod h1:i77F4JfyNNrhOjZF7OwwNJS5Y1S9dpwvb9iYRYRczfI= -k8s.io/apimachinery v0.0.0-20180904193909-def12e63c512/go.mod h1:ccL7Eh7zubPUSh9A3USN90/OzHNSVN6zxzde07TDCL0= -k8s.io/apimachinery v0.17.4/go.mod h1:gxLnyZcGNdZTCLnq3fgzyg2A5BVCHTNDFrw8AmuJ+0g= -k8s.io/apimachinery v0.19.0/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= -k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= -k8s.io/apimachinery v0.20.4/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= -k8s.io/apimachinery v0.20.6/go.mod h1:ejZXtW1Ra6V1O5H8xPBGz+T3+4gfkTCeExAHKU57MAc= -k8s.io/apimachinery v0.22.1/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ0= -k8s.io/apimachinery v0.22.5/go.mod h1:xziclGKwuuJ2RM5/rSFQSYAj0zdbci3DH8kj+WvyN0U= -k8s.io/apimachinery v0.23.4/go.mod h1:BEuFMMBaIbcOqVIJqNZJXGFTP4W6AycEpb5+m/97hrM= -k8s.io/apiserver v0.17.4/go.mod h1:5ZDQ6Xr5MNBxyi3iUZXS84QOhZl+W7Oq2us/29c0j9I= -k8s.io/apiserver v0.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU= -k8s.io/apiserver v0.20.4/go.mod h1:Mc80thBKOyy7tbvFtB4kJv1kbdD0eIH8k8vianJcbFM= -k8s.io/apiserver v0.20.6/go.mod h1:QIJXNt6i6JB+0YQRNcS0hdRHJlMhflFmsBDeSgT1r8Q= -k8s.io/apiserver v0.22.5/go.mod h1:s2WbtgZAkTKt679sYtSudEQrTGWUSQAPe6MupLnlmaQ= -k8s.io/client-go v0.0.0-20180910083459-2cefa64ff137/go.mod h1:7vJpHMYJwNQCWgzmNV+VYUl1zCObLyodBc8nIyt8L5s= -k8s.io/client-go v0.17.4/go.mod h1:ouF6o5pz3is8qU0/qYL2RnoxOPqgfuidYLowytyLJmc= -k8s.io/client-go v0.19.0/go.mod h1:H9E/VT95blcFQnlyShFgnFT9ZnJOAceiUHM3MlRC+mU= -k8s.io/client-go v0.20.1/go.mod h1:/zcHdt1TeWSd5HoUe6elJmHSQ6uLLgp4bIJHVEuy+/Y= -k8s.io/client-go v0.20.4/go.mod h1:LiMv25ND1gLUdBeYxBIwKpkSC5IsozMMmOOeSJboP+k= -k8s.io/client-go v0.20.6/go.mod h1:nNQMnOvEUEsOzRRFIIkdmYOjAZrC8bgq0ExboWSU1I0= -k8s.io/client-go v0.22.5/go.mod h1:cs6yf/61q2T1SdQL5Rdcjg9J1ElXSwbjSrW2vFImM4Y= -k8s.io/client-go v0.23.4/go.mod h1:PKnIL4pqLuvYUK1WU7RLTMYKPiIh7MYShLshtRY9cj0= -k8s.io/cloud-provider v0.17.4/go.mod h1:XEjKDzfD+b9MTLXQFlDGkk6Ho8SGMpaU8Uugx/KNK9U= -k8s.io/code-generator v0.17.2/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= -k8s.io/code-generator v0.19.7/go.mod h1:lwEq3YnLYb/7uVXLorOJfxg+cUu2oihFhHZ0n9NIla0= -k8s.io/component-base v0.17.4/go.mod h1:5BRqHMbbQPm2kKu35v3G+CpVq4K0RJKC7TRioF0I9lE= -k8s.io/component-base v0.20.1/go.mod h1:guxkoJnNoh8LNrbtiQOlyp2Y2XFCZQmrcg2n/DeYNLk= -k8s.io/component-base v0.20.4/go.mod h1:t4p9EdiagbVCJKrQ1RsA5/V4rFQNDfRlevJajlGwgjI= -k8s.io/component-base v0.20.6/go.mod h1:6f1MPBAeI+mvuts3sIdtpjljHWBQ2cIy38oBIWMYnrM= -k8s.io/component-base v0.22.5/go.mod h1:VK3I+TjuF9eaa+Ln67dKxhGar5ynVbwnGrUiNF4MqCI= -k8s.io/cri-api v0.17.3/go.mod h1:X1sbHmuXhwaHs9xxYffLqJogVsnI+f6cPRcgPel7ywM= -k8s.io/cri-api v0.20.1/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI= -k8s.io/cri-api v0.20.4/go.mod h1:2JRbKt+BFLTjtrILYVqQK5jqhI+XNdF6UiGMgczeBCI= -k8s.io/cri-api v0.20.6/go.mod h1:ew44AjNXwyn1s0U4xCKGodU7J1HzBeZ1MpGrpa5r8Yc= -k8s.io/cri-api v0.23.1/go.mod h1:REJE3PSU0h/LOV1APBrupxrEJqnoxZC8KWzkBUHwrK4= -k8s.io/cri-api v0.24.0-alpha.3/go.mod h1:c/NLI5Zdyup5+oEYqFO2IE32ptofNiZpS1nL2y51gAg= -k8s.io/csi-translation-lib v0.17.4/go.mod h1:CsxmjwxEI0tTNMzffIAcgR9lX4wOh6AKHdxQrT7L0oo= -k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= -k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= -k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.9.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= -k8s.io/klog/v2 v2.30.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/kube-openapi v0.0.0-20180731170545-e3762e86a74c/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc= -k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E= -k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o= -k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= -k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65/go.mod h1:sX9MT8g7NVZM5lVL/j8QyCCJe8YSMW30QvGZWaCIDIk= -k8s.io/kubernetes v1.11.10/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= -k8s.io/kubernetes v1.13.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= -k8s.io/legacy-cloud-providers v0.17.4/go.mod h1:FikRNoD64ECjkxO36gkDgJeiQWwyZTuBkhu+yxOc1Js= -k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20211116205334-6203023598ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= -modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= -modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= -modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= -modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= -moul.io/http2curl v1.0.0/go.mod h1:f6cULg+e4Md/oW1cYmwW4IWQOVl2lGbmCNGOHvzX2kE= +mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM= mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= -mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw= -mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7/go.mod h1:HGC5lll35J70Y5v7vCGb9oLhHoScFwkHDJm/05RdSTc= +mvdan.cc/unparam v0.0.0-20220706161116-678bad134442 h1:seuXWbRB1qPrS3NQnHmFKLJLtskWyueeIzmLXghMGgk= mvdan.cc/unparam v0.0.0-20220706161116-678bad134442/go.mod h1:F/Cxw/6mVrNKqrR2YjFf5CaW0Bw4RL8RfbEf4GRggJk= 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= -pack.ag/amqp v0.11.2/go.mod h1:4/cbmt4EJXSKlG6LCfWHoqmN0uFdy5i/+YFz+fTfhV4= -pgregory.net/rapid v0.4.7/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU= -pgregory.net/rapid v0.5.2/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= -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.6.2 h1:ErW5sL+UKtfBfUTsWHDCoeB+eZKLKMxrSd1VJY6W4bw= +pgregory.net/rapid v0.6.2/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0 h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/pdf v0.1.1 h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= +rsc.io/quote/v3 v3.1.0 h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.14/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.15/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= -sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6/go.mod h1:p4QtZmO4uMYipTQNzagwnNoseA6OxSUutVw05NhYDRs= -sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI= -sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18= -sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.0.3/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/structured-merge-diff/v4 v4.1.2/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= -sigs.k8s.io/structured-merge-diff/v4 v4.2.1/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= -sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= -sourcegraph.com/sqs/pbtypes v1.0.0/go.mod h1:3AciMUv4qUuRHRHhOG4TZOB+72GdPVz5k+c648qsFS4= diff --git a/network/hermes/config.toml b/network/hermes/config.toml index f129c47c9..680206388 100644 --- a/network/hermes/config.toml +++ b/network/hermes/config.toml @@ -108,7 +108,7 @@ clock_drift = '5s' max_block_time = '10s' trusting_period = '14days' trust_threshold = { numerator = '1', denominator = '3' } -ccv_consumer_chain = true +unbonding_period = '20days' address_type = { derivation = 'cosmos' } [[chains]] diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index e97b8dd36..b0e43bcf5 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -609,7 +609,7 @@ set_genesis_param treasury_address "\"$DAO_CONTRACT_ADDRESS\"" set_genesis_param fee_collector_address "\"$DAO_CONTRACT_ADDRESS\"" # tokenfactory set_genesis_param security_address "\"$SECURITY_SUBDAO_CORE_CONTRACT_ADDRESS\"," # cron set_genesis_param limit 5 # cron -set_genesis_param allow_messages "[\"*\"]" # interchainaccounts +#set_genesis_param allow_messages "[\"*\"]" # interchainaccounts set_genesis_param signed_blocks_window "\"$SLASHING_SIGNED_BLOCKS_WINDOW\"," # slashing set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," # slashing set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing diff --git a/network/init.sh b/network/init.sh index a005ab0e0..a0749e7c8 100755 --- a/network/init.sh +++ b/network/init.sh @@ -49,13 +49,13 @@ echo "$DEMO_MNEMONIC_3" | $BINARY keys add demowallet3 --home "$CHAIN_DIR" --rec echo "$RLY_MNEMONIC_1" | $BINARY keys add rly1 --home "$CHAIN_DIR" --recover --keyring-backend=test echo "$RLY_MNEMONIC_2" | $BINARY keys add rly2 --home "$CHAIN_DIR" --recover --keyring-backend=test -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show val1 --keyring-backend test -a)" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show val2 --keyring-backend test -a)" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show demowallet1 --keyring-backend test -a)" "100000000000000$STAKEDENOM,100000000000000$IBCATOMDENOM,100000000000000$IBCUSDCDENOM" --home "$CHAIN_DIR" -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show demowallet2 --keyring-backend test -a)" "100000000000000$STAKEDENOM,100000000000000$IBCATOMDENOM,100000000000000$IBCUSDCDENOM" --home "$CHAIN_DIR" -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show demowallet3 --keyring-backend test -a)" "100000000000000$STAKEDENOM,100000000000000$IBCATOMDENOM,100000000000000$IBCUSDCDENOM" --home "$CHAIN_DIR" -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show rly1 --keyring-backend test -a)" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" -$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show rly2 --keyring-backend test -a)" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show val1 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show val2 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show demowallet1 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM,100000000000000$IBCATOMDENOM,100000000000000$IBCUSDCDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show demowallet2 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM,100000000000000$IBCATOMDENOM,100000000000000$IBCUSDCDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show demowallet3 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM,100000000000000$IBCATOMDENOM,100000000000000$IBCUSDCDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show rly1 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" +$BINARY add-genesis-account "$($BINARY --home "$CHAIN_DIR" keys show rly2 --keyring-backend test -a --home "$CHAIN_DIR")" "100000000000000$STAKEDENOM" --home "$CHAIN_DIR" sed -i -e 's/timeout_commit = "5s"/timeout_commit = "1s"/g' "$CHAIN_DIR/config/config.toml" sed -i -e 's/timeout_propose = "3s"/timeout_propose = "1s"/g' "$CHAIN_DIR/config/config.toml" @@ -68,6 +68,7 @@ sed -i -e 's/prometheus-retention-time = 0/prometheus-retention-time = 1000/g' " sed -i -e 's#"tcp://0.0.0.0:26656"#"tcp://0.0.0.0:'"$P2PPORT"'"#g' "$CHAIN_DIR/config/config.toml" sed -i -e 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:'"$RPCPORT"'"#g' "$CHAIN_DIR/config/config.toml" +sed -i -e 's#"tcp://localhost:1317"#"tcp://0.0.0.0:'"$RESTPORT"'"#g' "$CHAIN_DIR/config/app.toml" sed -i -e 's#"tcp://0.0.0.0:1317"#"tcp://0.0.0.0:'"$RESTPORT"'"#g' "$CHAIN_DIR/config/app.toml" sed -i -e 's#":8080"#":'"$ROSETTA_1"'"#g' "$CHAIN_DIR/config/app.toml" @@ -76,3 +77,4 @@ GENESIS_FILE="$CHAIN_DIR/config/genesis.json" sed -i -e "s/\"denom\": \"stake\",/\"denom\": \"$STAKEDENOM\",/g" "$GENESIS_FILE" sed -i -e "s/\"mint_denom\": \"stake\",/\"mint_denom\": \"$STAKEDENOM\",/g" "$GENESIS_FILE" sed -i -e "s/\"bond_denom\": \"stake\"/\"bond_denom\": \"$STAKEDENOM\"/g" "$GENESIS_FILE" +sed -i -e 's/enabled-unsafe-cors = false/enabled-unsafe-cors = true/g' "$CHAIN_DIR/config/app.toml" diff --git a/proto/buf.gen.gogo.yml b/proto/buf.gen.gogo.yml new file mode 100644 index 000000000..855ea251a --- /dev/null +++ b/proto/buf.gen.gogo.yml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - name: gocosmos + out: .. + opt: plugins=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/proto/buf.lock b/proto/buf.lock new file mode 100644 index 000000000..2f1d9f92f --- /dev/null +++ b/proto/buf.lock @@ -0,0 +1,33 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: cosmos + repository: cosmos-proto + commit: 1935555c206d4afb9e94615dfd0fad31 + digest: shake256:c74d91a3ac7ae07d579e90eee33abf9b29664047ac8816500cf22c081fec0d72d62c89ce0bebafc1f6fec7aa5315be72606717740ca95007248425102c365377 + - remote: buf.build + owner: cosmos + repository: cosmos-sdk + commit: 954f7b05f38440fc8250134b15adec47 + digest: shake256:2ab4404fd04a7d1d52df0e2d0f2d477a3d83ffd88d876957bf3fedfd702c8e52833d65b3ce1d89a3c5adf2aab512616b0e4f51d8463f07eda9a8a3317ee3ac54 + - remote: buf.build + owner: cosmos + repository: gogo-proto + commit: 5e5b9fdd01804356895f8f79a6f1ddc1 + digest: shake256:0b85da49e2e5f9ebc4806eae058e2f56096ff3b1c59d1fb7c190413dd15f45dd456f0b69ced9059341c80795d2b6c943de15b120a9e0308b499e43e4b5fc2952 + - remote: buf.build + owner: cosmos + repository: ibc + commit: f6d24a1cded4439f95a8069c4572f08c + digest: shake256:af93995752551b1b45d22b636423fb87b58e3688eb19680606d007fb2255970acf434733d7679af2c9af8e42976dc13c0650537555b7fc3ccd2e9df8fd351e45 + - remote: buf.build + owner: cosmos + repository: ics23 + commit: 55085f7c710a45f58fa09947208eb70b + digest: shake256:9bf0bc495b5a11c88d163d39ef521bc4b00bc1374a05758c91d82821bdc61f09e8c2c51dda8452529bf80137f34d852561eacbe9550a59015d51cecb0dacb628 + - remote: buf.build + owner: googleapis + repository: googleapis + commit: cc916c31859748a68fd229a3c8d7a2e8 + digest: shake256:469b049d0eb04203d5272062636c078decefc96fec69739159c25d85349c50c34c7706918a8b216c5c27f76939df48452148cff8c5c3ae77fa6ba5c25c1b8bf8 diff --git a/proto/buf.yaml b/proto/buf.yaml new file mode 100644 index 000000000..65944af23 --- /dev/null +++ b/proto/buf.yaml @@ -0,0 +1,26 @@ +version: v1 +name: buf.build/neutron-org/neutron +deps: + - buf.build/cosmos/cosmos-proto + - buf.build/cosmos/cosmos-sdk:v0.47.0 + - buf.build/cosmos/gogo-proto + - buf.build/googleapis/googleapis + - buf.build/cosmos/ibc +# - buf.build/osmosis-labs/osmosis +breaking: + use: + - FILE +lint: + use: + - DEFAULT + - COMMENTS + - FILE_LOWER_SNAKE_CASE + except: + - UNARY_RPC + - COMMENT_FIELD + - SERVICE_SUFFIX + - PACKAGE_VERSION_SUFFIX + - RPC_REQUEST_STANDARD_NAME + - PACKAGE_DIRECTORY_MATCH + ignore: + - tendermint \ No newline at end of file diff --git a/proto/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto similarity index 95% rename from proto/contractmanager/genesis.proto rename to proto/neutron/contractmanager/genesis.proto index 1fa55dad0..3ac92eb55 100644 --- a/proto/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neutron.contractmanager; import "gogoproto/gogo.proto"; -import "contractmanager/params.proto"; +import "neutron/contractmanager/params.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; diff --git a/proto/contractmanager/params.proto b/proto/neutron/contractmanager/params.proto similarity index 100% rename from proto/contractmanager/params.proto rename to proto/neutron/contractmanager/params.proto diff --git a/proto/contractmanager/query.proto b/proto/neutron/contractmanager/query.proto similarity index 94% rename from proto/contractmanager/query.proto rename to proto/neutron/contractmanager/query.proto index fe4e67f51..b517432e6 100644 --- a/proto/contractmanager/query.proto +++ b/proto/neutron/contractmanager/query.proto @@ -4,8 +4,8 @@ package neutron.contractmanager; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "contractmanager/params.proto"; -import "contractmanager/genesis.proto"; +import "neutron/contractmanager/params.proto"; +import "neutron/contractmanager/genesis.proto"; // this line is used by starport scaffolding # 1 option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; diff --git a/proto/cron/genesis.proto b/proto/neutron/cron/genesis.proto similarity index 86% rename from proto/cron/genesis.proto rename to proto/neutron/cron/genesis.proto index f887c5b90..e7e455276 100644 --- a/proto/cron/genesis.proto +++ b/proto/neutron/cron/genesis.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package neutron.cron; import "gogoproto/gogo.proto"; -import "cron/params.proto"; -import "cron/schedule.proto"; +import "neutron/cron/params.proto"; +import "neutron/cron/schedule.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/neutron-org/neutron/x/cron/types"; diff --git a/proto/cron/params.proto b/proto/neutron/cron/params.proto similarity index 100% rename from proto/cron/params.proto rename to proto/neutron/cron/params.proto diff --git a/proto/cron/query.proto b/proto/neutron/cron/query.proto similarity index 95% rename from proto/cron/query.proto rename to proto/neutron/cron/query.proto index ae39bcd04..0105437fa 100644 --- a/proto/cron/query.proto +++ b/proto/neutron/cron/query.proto @@ -4,8 +4,8 @@ package neutron.cron; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "cron/params.proto"; -import "cron/schedule.proto"; +import "neutron/cron/params.proto"; +import "neutron/cron/schedule.proto"; // this line is used by starport scaffolding # 1 option go_package = "github.com/neutron-org/neutron/x/cron/types"; diff --git a/proto/cron/schedule.proto b/proto/neutron/cron/schedule.proto similarity index 100% rename from proto/cron/schedule.proto rename to proto/neutron/cron/schedule.proto diff --git a/proto/cron/tx.proto b/proto/neutron/cron/tx.proto similarity index 100% rename from proto/cron/tx.proto rename to proto/neutron/cron/tx.proto diff --git a/proto/feeburner/genesis.proto b/proto/neutron/feeburner/genesis.proto similarity index 83% rename from proto/feeburner/genesis.proto rename to proto/neutron/feeburner/genesis.proto index 9513a4fe4..9959a4be9 100644 --- a/proto/feeburner/genesis.proto +++ b/proto/neutron/feeburner/genesis.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package neutron.feeburner; import "gogoproto/gogo.proto"; -import "feeburner/params.proto"; -import "feeburner/total_burned_neutrons_amount.proto"; +import "neutron/feeburner/params.proto"; +import "neutron/feeburner/total_burned_neutrons_amount.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/neutron-org/neutron/x/feeburner/types"; diff --git a/proto/feeburner/params.proto b/proto/neutron/feeburner/params.proto similarity index 100% rename from proto/feeburner/params.proto rename to proto/neutron/feeburner/params.proto diff --git a/proto/feeburner/query.proto b/proto/neutron/feeburner/query.proto similarity index 94% rename from proto/feeburner/query.proto rename to proto/neutron/feeburner/query.proto index 5cf2e30b7..c0cce05ba 100644 --- a/proto/feeburner/query.proto +++ b/proto/neutron/feeburner/query.proto @@ -4,8 +4,8 @@ package neutron.feeburner; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "feeburner/params.proto"; -import "feeburner/total_burned_neutrons_amount.proto"; +import "neutron/feeburner/params.proto"; +import "neutron/feeburner/total_burned_neutrons_amount.proto"; // this line is used by starport scaffolding # 1 option go_package = "github.com/neutron-org/neutron/x/feeburner/types"; diff --git a/proto/feeburner/total_burned_neutrons_amount.proto b/proto/neutron/feeburner/total_burned_neutrons_amount.proto similarity index 100% rename from proto/feeburner/total_burned_neutrons_amount.proto rename to proto/neutron/feeburner/total_burned_neutrons_amount.proto diff --git a/proto/feerefunder/fee.proto b/proto/neutron/feerefunder/fee.proto similarity index 100% rename from proto/feerefunder/fee.proto rename to proto/neutron/feerefunder/fee.proto diff --git a/proto/feerefunder/genesis.proto b/proto/neutron/feerefunder/genesis.proto similarity index 88% rename from proto/feerefunder/genesis.proto rename to proto/neutron/feerefunder/genesis.proto index d7507ed0d..44c4d2cd5 100644 --- a/proto/feerefunder/genesis.proto +++ b/proto/neutron/feerefunder/genesis.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package neutron.feerefunder; import "gogoproto/gogo.proto"; -import "feerefunder/params.proto"; -import "feerefunder/fee.proto"; +import "neutron/feerefunder/params.proto"; +import "neutron/feerefunder/fee.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/neutron-org/neutron/x/feerefunder/types"; diff --git a/proto/feerefunder/params.proto b/proto/neutron/feerefunder/params.proto similarity index 89% rename from proto/feerefunder/params.proto rename to proto/neutron/feerefunder/params.proto index 1d8f20c4e..247fb2c98 100644 --- a/proto/feerefunder/params.proto +++ b/proto/neutron/feerefunder/params.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neutron.feerefunder; import "gogoproto/gogo.proto"; -import "feerefunder/fee.proto"; +import "neutron/feerefunder/fee.proto"; option go_package = "github.com/neutron-org/neutron/x/feerefunder/types"; diff --git a/proto/feerefunder/query.proto b/proto/neutron/feerefunder/query.proto similarity index 93% rename from proto/feerefunder/query.proto rename to proto/neutron/feerefunder/query.proto index 1eaf5a06c..246c05c96 100644 --- a/proto/feerefunder/query.proto +++ b/proto/neutron/feerefunder/query.proto @@ -4,8 +4,8 @@ package neutron.feerefunder; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "feerefunder/params.proto"; -import "feerefunder/genesis.proto"; +import "neutron/feerefunder/params.proto"; +import "neutron/feerefunder/genesis.proto"; // this line is used by starport scaffolding # 1 option go_package = "github.com/neutron-org/neutron/x/feerefunder/types"; diff --git a/proto/interchainqueries/genesis.proto b/proto/neutron/interchainqueries/genesis.proto similarity index 97% rename from proto/interchainqueries/genesis.proto rename to proto/neutron/interchainqueries/genesis.proto index 5a3ac4aef..134a052be 100644 --- a/proto/interchainqueries/genesis.proto +++ b/proto/neutron/interchainqueries/genesis.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neutron.interchainqueries; import "gogoproto/gogo.proto"; -import "interchainqueries/params.proto"; +import "neutron/interchainqueries/params.proto"; import "cosmos/base/v1beta1/coin.proto"; import "ibc/core/client/v1/client.proto"; diff --git a/proto/interchainqueries/params.proto b/proto/neutron/interchainqueries/params.proto similarity index 100% rename from proto/interchainqueries/params.proto rename to proto/neutron/interchainqueries/params.proto diff --git a/proto/interchainqueries/query.proto b/proto/neutron/interchainqueries/query.proto similarity index 94% rename from proto/interchainqueries/query.proto rename to proto/neutron/interchainqueries/query.proto index a5cb0ce2a..21247a41a 100644 --- a/proto/interchainqueries/query.proto +++ b/proto/neutron/interchainqueries/query.proto @@ -4,9 +4,9 @@ package neutron.interchainqueries; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "interchainqueries/params.proto"; -import "interchainqueries/genesis.proto"; -import "interchainqueries/tx.proto"; +import "neutron/interchainqueries/params.proto"; +import "neutron/interchainqueries/genesis.proto"; +import "neutron/interchainqueries/tx.proto"; option go_package = "github.com/neutron-org/neutron/x/interchainqueries/types"; diff --git a/proto/interchainqueries/tx.proto b/proto/neutron/interchainqueries/tx.proto similarity index 98% rename from proto/interchainqueries/tx.proto rename to proto/neutron/interchainqueries/tx.proto index 43379be21..1385c2dc8 100644 --- a/proto/interchainqueries/tx.proto +++ b/proto/neutron/interchainqueries/tx.proto @@ -4,7 +4,7 @@ package neutron.interchainqueries; import "tendermint/crypto/proof.proto"; import "tendermint/abci/types.proto"; import "google/protobuf/any.proto"; -import "interchainqueries/genesis.proto"; +import "neutron/interchainqueries/genesis.proto"; option go_package = "github.com/neutron-org/neutron/x/interchainqueries/types"; diff --git a/proto/interchaintxs/v1/genesis.proto b/proto/neutron/interchaintxs/v1/genesis.proto similarity index 86% rename from proto/interchaintxs/v1/genesis.proto rename to proto/neutron/interchaintxs/v1/genesis.proto index e22c29d5a..0376f482d 100644 --- a/proto/interchaintxs/v1/genesis.proto +++ b/proto/neutron/interchaintxs/v1/genesis.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neutron.interchaintxs; import "gogoproto/gogo.proto"; -import "interchaintxs/v1/params.proto"; +import "neutron/interchaintxs/v1/params.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; diff --git a/proto/interchaintxs/v1/params.proto b/proto/neutron/interchaintxs/v1/params.proto similarity index 100% rename from proto/interchaintxs/v1/params.proto rename to proto/neutron/interchaintxs/v1/params.proto diff --git a/proto/interchaintxs/v1/query.proto b/proto/neutron/interchaintxs/v1/query.proto similarity index 97% rename from proto/interchaintxs/v1/query.proto rename to proto/neutron/interchaintxs/v1/query.proto index 7f377a83e..ee32847e8 100644 --- a/proto/interchaintxs/v1/query.proto +++ b/proto/neutron/interchaintxs/v1/query.proto @@ -4,7 +4,7 @@ package neutron.interchaintxs; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "interchaintxs/v1/params.proto"; +import "neutron/interchaintxs/v1/params.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; diff --git a/proto/interchaintxs/v1/tx.proto b/proto/neutron/interchaintxs/v1/tx.proto similarity index 98% rename from proto/interchaintxs/v1/tx.proto rename to proto/neutron/interchaintxs/v1/tx.proto index 81a80d96b..c871accd2 100644 --- a/proto/interchaintxs/v1/tx.proto +++ b/proto/neutron/interchaintxs/v1/tx.proto @@ -8,7 +8,7 @@ import "gogoproto/gogo.proto"; import "google/api/http.proto"; import "google/api/annotations.proto"; import "google/protobuf/any.proto"; -import "feerefunder/fee.proto"; +import "neutron/feerefunder/fee.proto"; // Msg defines the Msg service. service Msg { diff --git a/proto/transfer/v1/query.proto b/proto/neutron/transfer/v1/query.proto similarity index 100% rename from proto/transfer/v1/query.proto rename to proto/neutron/transfer/v1/query.proto diff --git a/proto/transfer/v1/tx.proto b/proto/neutron/transfer/v1/tx.proto similarity index 97% rename from proto/transfer/v1/tx.proto rename to proto/neutron/transfer/v1/tx.proto index 3fff161d7..b5f8f471a 100644 --- a/proto/transfer/v1/tx.proto +++ b/proto/neutron/transfer/v1/tx.proto @@ -7,7 +7,7 @@ option go_package = "github.com/neutron-org/neutron/x/transfer/types"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "ibc/core/client/v1/client.proto"; -import "feerefunder/fee.proto"; +import "neutron/feerefunder/fee.proto"; // Msg defines the ibc/transfer Msg service. service Msg { diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh new file mode 100755 index 000000000..d3158031f --- /dev/null +++ b/scripts/protocgen.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +set -eo pipefail + +protoc_install_proto_gen_doc() { + echo "Installing protobuf protoc-gen-doc plugin" + (go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest 2> /dev/null) +} + +echo "Generating gogo proto code" +cd proto +proto_dirs=$(find ./ -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 + echo $file + if grep "option go_package" $file &> /dev/null ; then + buf generate --template buf.gen.gogo.yml $file + fi + done +done + +#protoc_install_proto_gen_doc +# +#echo "Generating proto docs" +#buf generate --template buf.gen.doc.yml + +cd .. + +# move proto files to the right places +cp -r github.com/neutron-org/neutron/x/* x/ +rm -rf github.com diff --git a/tests/e2e/interchain_security_test.go b/tests/e2e/interchain_security_test.go index 49cf36852..41726178d 100644 --- a/tests/e2e/interchain_security_test.go +++ b/tests/e2e/interchain_security_test.go @@ -3,11 +3,11 @@ package e2e_test import ( "testing" - appProvider "github.com/cosmos/interchain-security/app/provider" - icssimapp "github.com/cosmos/interchain-security/testutil/ibc_testing" + appProvider "github.com/cosmos/interchain-security/v3/app/provider" + icssimapp "github.com/cosmos/interchain-security/v3/testutil/ibc_testing" "github.com/stretchr/testify/suite" - e2e "github.com/cosmos/interchain-security/tests/integration" + e2e "github.com/cosmos/interchain-security/v3/tests/integration" appConsumer "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" diff --git a/testutil/chain.go b/testutil/chain.go index 53cadef0d..e2d8154c5 100644 --- a/testutil/chain.go +++ b/testutil/chain.go @@ -3,16 +3,16 @@ package testutil import ( "testing" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + tmtypes "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - "github.com/cosmos/ibc-go/v4/testing/mock" - legacyibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/cosmos/ibc-go/v7/testing/mock" + legacyibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" "github.com/stretchr/testify/require" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmtypes "github.com/tendermint/tendermint/types" "github.com/neutron-org/neutron/app/params" ) diff --git a/testutil/consumer/test_helpers.go b/testutil/consumer/test_helpers.go index e2d43b158..1d61e9d4d 100644 --- a/testutil/consumer/test_helpers.go +++ b/testutil/consumer/test_helpers.go @@ -4,18 +4,18 @@ import ( "encoding/json" "time" + types1 "github.com/cometbft/cometbft/abci/types" + tmtypes "github.com/cometbft/cometbft/types" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - ibccommitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - ccvconsumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" - ccvprovidertypes "github.com/cosmos/interchain-security/x/ccv/provider/types" - "github.com/cosmos/interchain-security/x/ccv/types" - types1 "github.com/tendermint/tendermint/abci/types" - tmtypes "github.com/tendermint/tendermint/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibccommitmenttypes "github.com/cosmos/ibc-go/v7/modules/core/23-commitment/types" + ibctmtypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + ccvprovidertypes "github.com/cosmos/interchain-security/v3/x/ccv/provider/types" + "github.com/cosmos/interchain-security/v3/x/ccv/types" "github.com/cosmos/cosmos-sdk/testutil/network" diff --git a/testutil/contractmanager/keeper/contractmanager.go b/testutil/contractmanager/keeper/contractmanager.go index ee11ae449..f8ab1cdfb 100644 --- a/testutil/contractmanager/keeper/contractmanager.go +++ b/testutil/contractmanager/keeper/contractmanager.go @@ -3,6 +3,9 @@ package keeper import ( "testing" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -10,9 +13,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/x/contractmanager/keeper" "github.com/neutron-org/neutron/x/contractmanager/types" diff --git a/testutil/contractmanager/network/network.go b/testutil/contractmanager/network/network.go index 0643f8e0a..f3eb57ecd 100644 --- a/testutil/contractmanager/network/network.go +++ b/testutil/contractmanager/network/network.go @@ -2,16 +2,19 @@ package network import ( "fmt" + "github.com/stretchr/testify/require" "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" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" genutil "github.com/cosmos/cosmos-sdk/x/genutil" @@ -19,8 +22,6 @@ import ( staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/neutron-org/neutron/app/params" - tmrand "github.com/tendermint/tendermint/libs/rand" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil/consumer" @@ -43,7 +44,8 @@ func New(t *testing.T, configs ...network.Config) *network.Network { } else { cfg = configs[0] } - net := network.New(t, cfg) + net, err := network.New(t, t.TempDir(), cfg) + require.NoError(t, err) t.Cleanup(net.Cleanup) return net } @@ -56,31 +58,33 @@ func DefaultConfig() network.Config { app.ModuleBasics[stakingtypes.ModuleName] = staking.AppModuleBasic{} 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 { - err := consumer.ModifyConsumerGenesis(val) + AppConstructor: func(val network.ValidatorI) servertypes.Application { + err := consumer.ModifyConsumerGenesis(val.(network.Validator)) if err != nil { panic(err) } return app.New( - 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, app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, + sims.EmptyAppOptions{}, nil, - baseapp.SetPruning(storetypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), - baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), + 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, // Some changes are introduced to make the tests run as if neutron is a standalone chain. // This will only work if NumValidators is set to 1. NumValidators: 1, @@ -89,7 +93,7 @@ func DefaultConfig() network.Config { AccountTokens: sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction), StakingTokens: sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction), BondedTokens: sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction), - PruningStrategy: storetypes.PruningOptionNothing, + PruningStrategy: pruningtypes.PruningOptionNothing, CleanupDir: true, SigningAlgo: string(hd.Secp256k1Type), KeyringOptions: []keyring.Option{}, diff --git a/testutil/cron/keeper/cron.go b/testutil/cron/keeper/cron.go index 7206a15c7..ac34c73c8 100644 --- a/testutil/cron/keeper/cron.go +++ b/testutil/cron/keeper/cron.go @@ -3,6 +3,9 @@ package keeper import ( "testing" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -12,9 +15,6 @@ import ( "github.com/neutron-org/neutron/x/cron/keeper" "github.com/neutron-org/neutron/x/cron/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" ) func CronKeeper(t testing.TB, wasmMsgServer types.WasmMsgServer, accountKeeper types.AccountKeeper) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/cron/network/network.go b/testutil/cron/network/network.go index 98b7cd5bf..45354ba7d 100644 --- a/testutil/cron/network/network.go +++ b/testutil/cron/network/network.go @@ -2,6 +2,8 @@ package network import ( "fmt" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" + "github.com/stretchr/testify/require" "testing" "time" @@ -11,21 +13,20 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/neutron-org/neutron/testutil/consumer" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/neutron-org/neutron/app/params" "github.com/neutron-org/neutron/app" + 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" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - tmrand "github.com/tendermint/tendermint/libs/rand" - tmdb "github.com/tendermint/tm-db" ) type ( @@ -45,7 +46,8 @@ func New(t *testing.T, configs ...network.Config) *network.Network { } else { cfg = configs[0] } - net := network.New(t, cfg) + net, err := network.New(t, t.TempDir(), cfg) + require.NoError(t, err) t.Cleanup(net.Cleanup) return net } @@ -58,31 +60,33 @@ func DefaultConfig() network.Config { app.ModuleBasics[stakingtypes.ModuleName] = staking.AppModuleBasic{} 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 { - err := consumer.ModifyConsumerGenesis(val) + AppConstructor: func(val network.ValidatorI) servertypes.Application { + err := consumer.ModifyConsumerGenesis(val.(network.Validator)) if err != nil { panic(err) } return app.New( - 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, app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, + sims.EmptyAppOptions{}, nil, - baseapp.SetPruning(storetypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), - baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), + 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, // Some changes are introduced to make the tests run as if neutron is a standalone chain. // This will only work if NumValidators is set to 1. NumValidators: 1, @@ -91,7 +95,7 @@ func DefaultConfig() network.Config { AccountTokens: sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction), StakingTokens: sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction), BondedTokens: sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction), - PruningStrategy: storetypes.PruningOptionNothing, + PruningStrategy: pruningtypes.PruningOptionNothing, CleanupDir: true, SigningAlgo: string(hd.Secp256k1Type), KeyringOptions: []keyring.Option{}, diff --git a/testutil/feeburner/keeper/feeburner.go b/testutil/feeburner/keeper/feeburner.go index 6c594421a..2305deb8b 100644 --- a/testutil/feeburner/keeper/feeburner.go +++ b/testutil/feeburner/keeper/feeburner.go @@ -3,6 +3,9 @@ package keeper import ( "testing" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -12,9 +15,6 @@ import ( "github.com/neutron-org/neutron/x/feeburner/keeper" "github.com/neutron-org/neutron/x/feeburner/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" ) func FeeburnerKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/feerefunder/keeper/fee.go b/testutil/feerefunder/keeper/fee.go index 972627ee4..ca7b769a8 100644 --- a/testutil/feerefunder/keeper/fee.go +++ b/testutil/feerefunder/keeper/fee.go @@ -3,6 +3,9 @@ package keeper import ( "testing" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -10,9 +13,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/x/feerefunder/keeper" "github.com/neutron-org/neutron/x/feerefunder/types" diff --git a/testutil/interchainqueries/keeper/interchainqeries.go b/testutil/interchainqueries/keeper/interchainqeries.go index 4f1faa119..6ad93d4aa 100644 --- a/testutil/interchainqueries/keeper/interchainqeries.go +++ b/testutil/interchainqueries/keeper/interchainqeries.go @@ -3,8 +3,11 @@ package keeper import ( "testing" - ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper" + ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -12,9 +15,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/x/interchainqueries/keeper" "github.com/neutron-org/neutron/x/interchainqueries/types" diff --git a/testutil/interchainqueries/network/network.go b/testutil/interchainqueries/network/network.go index 949f363de..cb666dda5 100644 --- a/testutil/interchainqueries/network/network.go +++ b/testutil/interchainqueries/network/network.go @@ -2,16 +2,19 @@ package network import ( "fmt" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" + "github.com/stretchr/testify/require" "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" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" genutil "github.com/cosmos/cosmos-sdk/x/genutil" @@ -19,8 +22,6 @@ import ( staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/neutron-org/neutron/app/params" - tmrand "github.com/tendermint/tendermint/libs/rand" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil/consumer" @@ -43,7 +44,8 @@ func New(t *testing.T, configs ...network.Config) *network.Network { } else { cfg = configs[0] } - net := network.New(t, cfg) + net, err := network.New(t, t.TempDir(), cfg) + require.NoError(t, err) t.Cleanup(net.Cleanup) return net } @@ -51,36 +53,38 @@ 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 { - // app doesn't have this modules anymore, but we need them for test setup, which uses gentx and MsgCreateValidator + // app doesn't have these modules anymore, but we need them for test setup, which uses gentx and MsgCreateValidator app.ModuleBasics[genutiltypes.ModuleName] = genutil.AppModuleBasic{} app.ModuleBasics[stakingtypes.ModuleName] = staking.AppModuleBasic{} 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 { - err := consumer.ModifyConsumerGenesis(val) + AppConstructor: func(val network.ValidatorI) servertypes.Application { + err := consumer.ModifyConsumerGenesis(val.(network.Validator)) if err != nil { panic(err) } return app.New( - 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, app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, + sims.EmptyAppOptions{}, nil, - baseapp.SetPruning(storetypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), - baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), + 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.Str(6), + ChainID: chainID, // Some changes are introduced to make the tests run as if neutron is a standalone chain. // This will only work if NumValidators is set to 1. NumValidators: 1, @@ -89,7 +93,7 @@ func DefaultConfig() network.Config { AccountTokens: sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction), StakingTokens: sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction), BondedTokens: sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction), - PruningStrategy: storetypes.PruningOptionNothing, + PruningStrategy: pruningtypes.PruningOptionNothing, CleanupDir: true, SigningAlgo: string(hd.Secp256k1Type), KeyringOptions: []keyring.Option{}, diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 42acb7246..b6c6ce657 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -3,6 +3,9 @@ package keeper import ( "testing" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -10,15 +13,12 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/x/interchaintxs/keeper" "github.com/neutron-org/neutron/x/interchaintxs/types" ) -func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper, capabilityKeeper types.ScopedKeeper) (*keeper.Keeper, sdk.Context) { +func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper) (*keeper.Keeper, sdk.Context) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) @@ -44,7 +44,6 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper paramsSubspace, channelKeeper, icaControllerKeeper, - capabilityKeeper, managerKeeper, refunderKeeper, ) diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index 957b770c0..54856f3c1 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -2,16 +2,19 @@ package network import ( "fmt" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" + "github.com/stretchr/testify/require" "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" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" genutil "github.com/cosmos/cosmos-sdk/x/genutil" @@ -19,8 +22,6 @@ import ( staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/neutron-org/neutron/app/params" - tmrand "github.com/tendermint/tendermint/libs/rand" - tmdb "github.com/tendermint/tm-db" "github.com/neutron-org/neutron/testutil/consumer" @@ -44,7 +45,8 @@ func New(t *testing.T, configs ...network.Config) *network.Network { } else { cfg = configs[0] } - net := network.New(t, cfg) + net, err := network.New(t, t.TempDir(), cfg) + require.NoError(t, err) t.Cleanup(net.Cleanup) return net } @@ -52,36 +54,38 @@ 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 { - // app doesn't have this modules anymore, but we need them for test setup, which uses gentx and MsgCreateValidator + // app doesn't have these modules anymore, but we need them for test setup, which uses gentx and MsgCreateValidator app.ModuleBasics[genutiltypes.ModuleName] = genutil.AppModuleBasic{} app.ModuleBasics[stakingtypes.ModuleName] = staking.AppModuleBasic{} 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 { - err := consumer.ModifyConsumerGenesis(val) + AppConstructor: func(val network.ValidatorI) servertypes.Application { + err := consumer.ModifyConsumerGenesis(val.(network.Validator)) if err != nil { panic(err) } return app.New( - 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, app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, + sims.EmptyAppOptions{}, nil, - baseapp.SetPruning(storetypes.NewPruningOptionsFromString(val.AppConfig.Pruning)), - baseapp.SetMinGasPrices(val.AppConfig.MinGasPrices), + 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.Str(6), + ChainID: chainID, // Some changes are introduced to make the tests run as if neutron is a standalone chain. // This will only work if NumValidators is set to 1. NumValidators: 1, @@ -90,7 +94,7 @@ func DefaultConfig() network.Config { AccountTokens: sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction), StakingTokens: sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction), BondedTokens: sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction), - PruningStrategy: storetypes.PruningOptionNothing, + PruningStrategy: pruningtypes.PruningOptionNothing, CleanupDir: true, SigningAlgo: string(hd.Secp256k1Type), KeyringOptions: []keyring.Option{}, diff --git a/testutil/mocks/feerefunder/types/keepers.go b/testutil/mocks/feerefunder/types/keepers.go index c7deab197..9baacb354 100644 --- a/testutil/mocks/feerefunder/types/keepers.go +++ b/testutil/mocks/feerefunder/types/keepers.go @@ -9,7 +9,7 @@ import ( types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/auth/types" - types1 "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + types1 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" gomock "github.com/golang/mock/gomock" ) diff --git a/testutil/mocks/interchainqueries/keeper/verify.go b/testutil/mocks/interchainqueries/keeper/verify.go index 6184d7bea..6e39b57be 100644 --- a/testutil/mocks/interchainqueries/keeper/verify.go +++ b/testutil/mocks/interchainqueries/keeper/verify.go @@ -9,11 +9,11 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" types0 "github.com/cosmos/cosmos-sdk/types" - keeper "github.com/cosmos/ibc-go/v4/modules/core/02-client/keeper" - exported "github.com/cosmos/ibc-go/v4/modules/core/exported" - types1 "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + keeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper" + exported "github.com/cosmos/ibc-go/v7/modules/core/exported" + tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" gomock "github.com/golang/mock/gomock" - types2 "github.com/neutron-org/neutron/x/interchainqueries/types" + types1 "github.com/neutron-org/neutron/x/interchainqueries/types" ) // MockHeaderVerifier is a mock of HeaderVerifier interface. @@ -40,10 +40,10 @@ func (m *MockHeaderVerifier) EXPECT() *MockHeaderVerifierMockRecorder { } // UnpackHeader mocks base method. -func (m *MockHeaderVerifier) UnpackHeader(any *types.Any) (exported.Header, error) { +func (m *MockHeaderVerifier) UnpackHeader(any *types.Any) (exported.ClientMessage, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UnpackHeader", any) - ret0, _ := ret[0].(exported.Header) + ret0, _ := ret[0].(exported.ClientMessage) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -55,7 +55,7 @@ func (mr *MockHeaderVerifierMockRecorder) UnpackHeader(any interface{}) *gomock. } // VerifyHeaders mocks base method. -func (m *MockHeaderVerifier) VerifyHeaders(ctx types0.Context, cleintkeeper keeper.Keeper, clientID string, header, nextHeader exported.Header) error { +func (m *MockHeaderVerifier) VerifyHeaders(ctx types0.Context, cleintkeeper keeper.Keeper, clientID string, header, nextHeader exported.ClientMessage) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifyHeaders", ctx, cleintkeeper, clientID, header, nextHeader) ret0, _ := ret[0].(error) @@ -92,7 +92,7 @@ func (m *MockTransactionVerifier) EXPECT() *MockTransactionVerifierMockRecorder } // VerifyTransaction mocks base method. -func (m *MockTransactionVerifier) VerifyTransaction(header, nextHeader *types1.Header, tx *types2.TxValue) error { +func (m *MockTransactionVerifier) VerifyTransaction(header, nextHeader *tendermint.Header, tx *types1.TxValue) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifyTransaction", header, nextHeader, tx) ret0, _ := ret[0].(error) diff --git a/testutil/mocks/interchainqueries/types/expected_keepers.go b/testutil/mocks/interchainqueries/types/expected_keepers.go index a2eb06e5a..435a54b05 100644 --- a/testutil/mocks/interchainqueries/types/expected_keepers.go +++ b/testutil/mocks/interchainqueries/types/expected_keepers.go @@ -9,8 +9,8 @@ import ( types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/auth/types" - types1 "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - types2 "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + types1 "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + types2 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" gomock "github.com/golang/mock/gomock" ) diff --git a/testutil/mocks/interchainqueries/types/verify.go b/testutil/mocks/interchainqueries/types/verify.go index 50f43ed14..218f5e094 100644 --- a/testutil/mocks/interchainqueries/types/verify.go +++ b/testutil/mocks/interchainqueries/types/verify.go @@ -9,9 +9,9 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" types0 "github.com/cosmos/cosmos-sdk/types" - keeper "github.com/cosmos/ibc-go/v4/modules/core/02-client/keeper" - exported "github.com/cosmos/ibc-go/v4/modules/core/exported" - types1 "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + keeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper" + exported "github.com/cosmos/ibc-go/v7/modules/core/exported" + types1 "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" gomock "github.com/golang/mock/gomock" types2 "github.com/neutron-org/neutron/x/interchainqueries/types" @@ -41,10 +41,10 @@ func (m *MockHeaderVerifier) EXPECT() *MockHeaderVerifierMockRecorder { } // UnpackHeader mocks base method. -func (m *MockHeaderVerifier) UnpackHeader(any *types.Any) (exported.Header, error) { +func (m *MockHeaderVerifier) UnpackHeader(any *types.Any) (exported.ClientMessage, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UnpackHeader", any) - ret0, _ := ret[0].(exported.Header) + ret0, _ := ret[0].(exported.ClientMessage) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -56,7 +56,7 @@ func (mr *MockHeaderVerifierMockRecorder) UnpackHeader(any interface{}) *gomock. } // VerifyHeaders mocks base method. -func (m *MockHeaderVerifier) VerifyHeaders(ctx types0.Context, cleintkeeper keeper.Keeper, clientID string, header, nextHeader exported.Header) error { +func (m *MockHeaderVerifier) VerifyHeaders(ctx types0.Context, cleintkeeper keeper.Keeper, clientID string, header, nextHeader exported.ClientMessage) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifyHeaders", ctx, cleintkeeper, clientID, header, nextHeader) ret0, _ := ret[0].(error) diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 0945f37c8..0c903226c 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -10,9 +10,9 @@ import ( types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/auth/types" types1 "github.com/cosmos/cosmos-sdk/x/capability/types" - types2 "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - types3 "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - exported "github.com/cosmos/ibc-go/v4/modules/core/exported" + types2 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + types3 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + exported "github.com/cosmos/ibc-go/v7/modules/core/exported" gomock "github.com/golang/mock/gomock" types4 "github.com/neutron-org/neutron/x/contractmanager/types" types5 "github.com/neutron-org/neutron/x/feerefunder/types" @@ -344,58 +344,6 @@ func (mr *MockFeeRefunderKeeperMockRecorder) LockFees(ctx, payer, packetID, fee return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockFees", reflect.TypeOf((*MockFeeRefunderKeeper)(nil).LockFees), ctx, payer, packetID, fee) } -// MockScopedKeeper is a mock of ScopedKeeper interface. -type MockScopedKeeper struct { - ctrl *gomock.Controller - recorder *MockScopedKeeperMockRecorder -} - -// MockScopedKeeperMockRecorder is the mock recorder for MockScopedKeeper. -type MockScopedKeeperMockRecorder struct { - mock *MockScopedKeeper -} - -// NewMockScopedKeeper creates a new mock instance. -func NewMockScopedKeeper(ctrl *gomock.Controller) *MockScopedKeeper { - mock := &MockScopedKeeper{ctrl: ctrl} - mock.recorder = &MockScopedKeeperMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockScopedKeeper) EXPECT() *MockScopedKeeperMockRecorder { - return m.recorder -} - -// ClaimCapability mocks base method. -func (m *MockScopedKeeper) ClaimCapability(ctx types.Context, cap *types1.Capability, name string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClaimCapability", ctx, cap, name) - ret0, _ := ret[0].(error) - return ret0 -} - -// ClaimCapability indicates an expected call of ClaimCapability. -func (mr *MockScopedKeeperMockRecorder) ClaimCapability(ctx, cap, name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimCapability", reflect.TypeOf((*MockScopedKeeper)(nil).ClaimCapability), ctx, cap, name) -} - -// GetCapability mocks base method. -func (m *MockScopedKeeper) GetCapability(ctx types.Context, name string) (*types1.Capability, bool) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetCapability", ctx, name) - ret0, _ := ret[0].(*types1.Capability) - ret1, _ := ret[1].(bool) - return ret0, ret1 -} - -// GetCapability indicates an expected call of GetCapability. -func (mr *MockScopedKeeperMockRecorder) GetCapability(ctx, name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCapability", reflect.TypeOf((*MockScopedKeeper)(nil).GetCapability), ctx, name) -} - // MockChannelKeeper is a mock of ChannelKeeper interface. type MockChannelKeeper struct { ctrl *gomock.Controller diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index 9ebdbe7f8..e7c4dfa3b 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -9,7 +9,7 @@ import ( types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/auth/types" - types1 "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + types1 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" gomock "github.com/golang/mock/gomock" types2 "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -192,6 +192,20 @@ func (m *MockChannelKeeper) EXPECT() *MockChannelKeeperMockRecorder { return m.recorder } +// GetAllChannelsWithPortPrefix mocks base method. +func (m *MockChannelKeeper) GetAllChannelsWithPortPrefix(ctx types.Context, portPrefix string) []types1.IdentifiedChannel { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAllChannelsWithPortPrefix", ctx, portPrefix) + ret0, _ := ret[0].([]types1.IdentifiedChannel) + return ret0 +} + +// GetAllChannelsWithPortPrefix indicates an expected call of GetAllChannelsWithPortPrefix. +func (mr *MockChannelKeeperMockRecorder) GetAllChannelsWithPortPrefix(ctx, portPrefix interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllChannelsWithPortPrefix", reflect.TypeOf((*MockChannelKeeper)(nil).GetAllChannelsWithPortPrefix), ctx, portPrefix) +} + // GetChannel mocks base method. func (m *MockChannelKeeper) GetChannel(ctx types.Context, srcPort, srcChan string) (types1.Channel, bool) { m.ctrl.T.Helper() diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index f3678f9a9..cc536476a 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -8,33 +8,33 @@ import ( "testing" "time" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - "github.com/cosmos/cosmos-sdk/simapp" + dbm "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing" - icssimapp "github.com/cosmos/interchain-security/testutil/ibc_testing" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" + icssimapp "github.com/cosmos/interchain-security/v3/testutil/ibc_testing" "github.com/stretchr/testify/suite" - "github.com/tendermint/tendermint/libs/log" - dbm "github.com/tendermint/tm-db" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" - clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - appProvider "github.com/cosmos/interchain-security/app/provider" - e2e "github.com/cosmos/interchain-security/testutil/integration" - tmtypes "github.com/tendermint/tendermint/types" + tmtypes "github.com/cometbft/cometbft/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + appProvider "github.com/cosmos/interchain-security/v3/app/provider" + e2e "github.com/cosmos/interchain-security/v3/testutil/integration" "github.com/neutron-org/neutron/app" ictxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" - consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" - providertypes "github.com/cosmos/interchain-security/x/ccv/provider/types" - ccv "github.com/cosmos/interchain-security/x/ccv/types" + consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + providertypes "github.com/cosmos/interchain-security/v3/x/ccv/provider/types" + ccv "github.com/cosmos/interchain-security/v3/x/ccv/types" ) var ( @@ -91,6 +91,7 @@ func GetTestConsumerAdditionProp(chain *ibctesting.TestChain) *providertypes.Con time.Now(), consumertypes.DefaultConsumerRedistributeFrac, consumertypes.DefaultBlocksPerDistributionTransmission, + "channel-0", consumertypes.DefaultHistoricalEntries, ccv.DefaultCCVTimeoutPeriod, consumertypes.DefaultTransferTimeoutPeriod, @@ -302,8 +303,8 @@ func (suite *IBCConnectionTestSuite) InstantiateReflectContract(ctx sdk.Context, func NewICAPath(chainA, chainB, chainProvider *ibctesting.TestChain) *ibctesting.Path { path := ibctesting.NewPath(chainA, chainB) - path.EndpointA.ChannelConfig.PortID = icatypes.PortID - path.EndpointB.ChannelConfig.PortID = icatypes.PortID + path.EndpointA.ChannelConfig.PortID = icatypes.HostPortID + path.EndpointB.ChannelConfig.PortID = icatypes.HostPortID path.EndpointA.ChannelConfig.Order = channeltypes.ORDERED path.EndpointB.ChannelConfig.Order = channeltypes.ORDERED path.EndpointA.ChannelConfig.Version = TestVersion @@ -385,7 +386,7 @@ func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage) { 0, encoding, app.GetEnabledProposals(), - simapp.EmptyAppOptions{}, + sims.EmptyAppOptions{}, nil, ) return testApp, app.NewDefaultGenesisState(testApp.AppCodec()) diff --git a/testutil/transfer/keeper/keeper.go b/testutil/transfer/keeper/keeper.go index c9894a58b..d1f306e27 100644 --- a/testutil/transfer/keeper/keeper.go +++ b/testutil/transfer/keeper/keeper.go @@ -5,6 +5,9 @@ import ( capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" @@ -12,11 +15,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" keeper "github.com/neutron-org/neutron/x/transfer/keeper" "github.com/neutron-org/neutron/x/transfer/types" diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index 532b739f2..bdbf085d2 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -8,7 +8,7 @@ import ( sdktypes "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/neutron-org/neutron/x/interchainqueries/types" ) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 066a9e56f..0094cb78b 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -23,7 +23,7 @@ import ( admintypes "github.com/cosmos/admin-module/x/adminmodule/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/neutron-org/neutron/wasmbinding/bindings" icqkeeper "github.com/neutron-org/neutron/x/interchainqueries/keeper" icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 259ec14a4..c714b7508 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -17,7 +17,8 @@ import ( "github.com/CosmWasm/wasmd/x/wasm/keeper" "github.com/CosmWasm/wasmvm/types" sdk "github.com/cosmos/cosmos-sdk/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" + host "github.com/cosmos/ibc-go/v7/modules/core/24-host" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" "github.com/stretchr/testify/require" "github.com/neutron-org/neutron/app" @@ -133,7 +134,7 @@ func (suite *CustomMessengerTestSuite) TestRegisterInterchainQuery() { RegisterInterchainQuery: &bindings.RegisterInterchainQuery{ QueryType: string(icqtypes.InterchainQueryTypeKV), Keys: []*icqtypes.KVKey{ - {Path: host.StoreKey, Key: host.FullClientStateKey(suite.Path.EndpointB.ClientID)}, + {Path: ibchost.StoreKey, Key: host.FullClientStateKey(suite.Path.EndpointB.ClientID)}, }, TransactionsFilter: "{}", ConnectionId: suite.Path.EndpointA.ConnectionID, diff --git a/wasmbinding/test/custom_query_test.go b/wasmbinding/test/custom_query_test.go index 4313cdf31..768a2f7ce 100644 --- a/wasmbinding/test/custom_query_test.go +++ b/wasmbinding/test/custom_query_test.go @@ -13,9 +13,10 @@ import ( "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmvmtypes "github.com/CosmWasm/wasmvm/types" + abci "github.com/cometbft/cometbft/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" - abci "github.com/tendermint/tendermint/abci/types" + host "github.com/cosmos/ibc-go/v7/modules/core/24-host" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" @@ -47,7 +48,7 @@ func (suite *CustomQuerierTestSuite) TestInterchainQueryResult() { registeredQuery := &icqtypes.RegisteredQuery{ Id: lastID, Keys: []*icqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(icqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -58,7 +59,7 @@ func (suite *CustomQuerierTestSuite) TestInterchainQueryResult() { suite.Require().NoError(err) chainBResp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -69,7 +70,7 @@ func (suite *CustomQuerierTestSuite) TestInterchainQueryResult() { Key: chainBResp.Key, Proof: chainBResp.ProofOps, Value: chainBResp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -97,7 +98,7 @@ func (suite *CustomQuerierTestSuite) TestInterchainQueryResult() { Key: chainBResp.Key, Proof: nil, Value: chainBResp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, resp.Result.KvResults) } diff --git a/x/contractmanager/client/cli/query_failure_test.go b/x/contractmanager/client/cli/query_failure_test.go index f14a6d595..a70cfd2a4 100644 --- a/x/contractmanager/client/cli/query_failure_test.go +++ b/x/contractmanager/client/cli/query_failure_test.go @@ -8,11 +8,11 @@ import ( "github.com/neutron-org/neutron/app" + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/x/contractmanager/keeper/keeper.go b/x/contractmanager/keeper/keeper.go index 7997f4946..e41b149aa 100644 --- a/x/contractmanager/keeper/keeper.go +++ b/x/contractmanager/keeper/keeper.go @@ -3,11 +3,11 @@ package keeper import ( "fmt" + "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" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/tendermint/tendermint/libs/log" "github.com/neutron-org/neutron/x/contractmanager/types" ) diff --git a/x/contractmanager/keeper/sudo.go b/x/contractmanager/keeper/sudo.go index 59af64853..2feba728a 100644 --- a/x/contractmanager/keeper/sudo.go +++ b/x/contractmanager/keeper/sudo.go @@ -10,8 +10,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/x/contractmanager/types" ) diff --git a/x/contractmanager/keeper/sudo_test.go b/x/contractmanager/keeper/sudo_test.go index 268459447..b4adc4103 100644 --- a/x/contractmanager/keeper/sudo_test.go +++ b/x/contractmanager/keeper/sudo_test.go @@ -6,7 +6,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index da4a7d804..0d15b740f 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -2,6 +2,7 @@ package contractmanager import ( "context" + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" @@ -11,7 +12,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" @@ -93,6 +94,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // ---------------------------------------------------------------------------- // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} // AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement type AppModule struct { @@ -111,16 +113,16 @@ func NewAppModule( } } -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.Route{} } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} -// Deprecated: use RegisterServices -func (AppModule) QuerierRoute() string { return types.RouterKey } +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} // Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} +func (AppModule) QuerierRoute() string { return types.RouterKey } // 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/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index a2fb5a75c..e78a0b07c 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: contractmanager/genesis.proto +// source: neutron/contractmanager/genesis.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -42,7 +42,7 @@ func (m *Failure) Reset() { *m = Failure{} } func (m *Failure) String() string { return proto.CompactTextString(m) } func (*Failure) ProtoMessage() {} func (*Failure) Descriptor() ([]byte, []int) { - return fileDescriptor_c23af9b9805fb076, []int{0} + return fileDescriptor_cf4a1534315a7490, []int{0} } func (m *Failure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -117,7 +117,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_c23af9b9805fb076, []int{1} + return fileDescriptor_cf4a1534315a7490, []int{1} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -165,31 +165,33 @@ func init() { proto.RegisterType((*GenesisState)(nil), "neutron.contractmanager.GenesisState") } -func init() { proto.RegisterFile("contractmanager/genesis.proto", fileDescriptor_c23af9b9805fb076) } +func init() { + proto.RegisterFile("neutron/contractmanager/genesis.proto", fileDescriptor_cf4a1534315a7490) +} -var fileDescriptor_c23af9b9805fb076 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto +var fileDescriptor_cf4a1534315a7490 = []byte{ + // 335 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x3f, 0x4f, 0x02, 0x31, - 0x18, 0xc6, 0xaf, 0xc7, 0x3f, 0x29, 0xe8, 0xd0, 0x68, 0x3c, 0x89, 0x1c, 0x17, 0x26, 0x16, 0xef, - 0x12, 0x4c, 0xdc, 0x5c, 0x18, 0x34, 0x44, 0x07, 0x82, 0x4e, 0x2e, 0xa4, 0xb4, 0xf5, 0x68, 0x80, - 0xf6, 0xd2, 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f, 0x7c, 0xec, 0x7c, 0x67, 0xb3, + 0xf3, 0x9d, 0xaf, 0x9d, 0xef, 0xbc, 0xdc, 0xc4, 0xdc, 0x4c, 0x97, 0x93, 0x90, 0xc8, 0x45, 0x64, + 0xc9, 0x57, 0x52, 0xc5, 0xfb, 0x39, 0x7a, 0xfb, 0x57, 0x7e, 0x1a, 0x5e, 0x4f, 0xaa, 0x59, 0xf9, + 0xd7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x88, 0x8d, 0x18, 0xf9, 0xfa, 0x01, 0x00, 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { diff --git a/x/contractmanager/types/params.pb.go b/x/contractmanager/types/params.pb.go index d6016d520..a2edd6ade 100644 --- a/x/contractmanager/types/params.pb.go +++ b/x/contractmanager/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: contractmanager/params.proto +// source: neutron/contractmanager/params.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_0201b435690497d1, []int{0} + return fileDescriptor_121b05e48c7a8737, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,20 +63,22 @@ func init() { proto.RegisterType((*Params)(nil), "neutron.contractmanager.Params") } -func init() { proto.RegisterFile("contractmanager/params.proto", fileDescriptor_0201b435690497d1) } +func init() { + proto.RegisterFile("neutron/contractmanager/params.proto", fileDescriptor_121b05e48c7a8737) +} -var fileDescriptor_0201b435690497d1 = []byte{ - // 156 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xce, 0xcf, 0x2b, - 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0x2d, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, - 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcf, 0x4b, 0x2d, 0x2d, 0x29, 0xca, - 0xcf, 0xd3, 0x43, 0x53, 0x25, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa3, 0x0f, 0x62, 0x41, - 0x94, 0x2b, 0xf1, 0x71, 0xb1, 0x05, 0x80, 0xb5, 0x5b, 0xb1, 0xcc, 0x58, 0x20, 0xcf, 0xe0, 0x14, - 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, 0x66, 0xe9, 0x99, 0x25, 0x19, - 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0x3b, 0x74, 0xf3, 0x8b, 0xd2, 0x61, 0x6c, 0xfd, - 0x0a, 0x7d, 0x74, 0x77, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x2d, 0x32, 0x06, 0x04, - 0x00, 0x00, 0xff, 0xff, 0xc6, 0x8f, 0xce, 0x9d, 0xb7, 0x00, 0x00, 0x00, +var fileDescriptor_121b05e48c7a8737 = []byte{ + // 158 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, + 0x4c, 0x4f, 0x2d, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x12, 0x87, 0xaa, 0xd2, 0x43, 0x53, 0x25, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa3, + 0x0f, 0x62, 0x41, 0x94, 0x2b, 0xf1, 0x71, 0xb1, 0x05, 0x80, 0xb5, 0x5b, 0xb1, 0xcc, 0x58, 0x20, + 0xcf, 0xe0, 0x14, 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, 0x66, 0xe9, + 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0x3b, 0x74, 0xf3, 0x8b, 0xd2, + 0x61, 0x6c, 0xfd, 0x0a, 0x0c, 0x77, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x2d, 0x32, + 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x69, 0x27, 0xc9, 0x25, 0xbf, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/contractmanager/types/query.pb.go b/x/contractmanager/types/query.pb.go index 9ae2a4fc6..4e5dd940b 100644 --- a/x/contractmanager/types/query.pb.go +++ b/x/contractmanager/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: contractmanager/query.proto +// source: neutron/contractmanager/query.proto package types @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_bcfc7f6aef8ad109, []int{0} + return fileDescriptor_f9524a427f219917, []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_bcfc7f6aef8ad109, []int{1} + return fileDescriptor_f9524a427f219917, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,7 +122,7 @@ func (m *QueryFailuresRequest) Reset() { *m = QueryFailuresRequest{} } func (m *QueryFailuresRequest) String() string { return proto.CompactTextString(m) } func (*QueryFailuresRequest) ProtoMessage() {} func (*QueryFailuresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bcfc7f6aef8ad109, []int{2} + return fileDescriptor_f9524a427f219917, []int{2} } func (m *QueryFailuresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -174,7 +174,7 @@ func (m *QueryFailuresResponse) Reset() { *m = QueryFailuresResponse{} } func (m *QueryFailuresResponse) String() string { return proto.CompactTextString(m) } func (*QueryFailuresResponse) ProtoMessage() {} func (*QueryFailuresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bcfc7f6aef8ad109, []int{3} + return fileDescriptor_f9524a427f219917, []int{3} } func (m *QueryFailuresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -224,40 +224,42 @@ func init() { proto.RegisterType((*QueryFailuresResponse)(nil), "neutron.contractmanager.QueryFailuresResponse") } -func init() { proto.RegisterFile("contractmanager/query.proto", fileDescriptor_bcfc7f6aef8ad109) } +func init() { + proto.RegisterFile("neutron/contractmanager/query.proto", fileDescriptor_f9524a427f219917) +} -var fileDescriptor_bcfc7f6aef8ad109 = []byte{ - // 477 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0xeb, 0x0d, 0xca, 0xf0, 0x0e, 0x48, 0xa6, 0x88, 0x28, 0x40, 0xda, 0x05, 0x89, 0x0d, - 0x46, 0x6d, 0xad, 0x93, 0xb8, 0x71, 0xa0, 0x87, 0x71, 0x2d, 0x11, 0x27, 0x6e, 0x4e, 0x66, 0x4c, - 0xa4, 0xc5, 0xce, 0x6c, 0x07, 0x6d, 0x42, 0x5c, 0x38, 0x73, 0x40, 0x82, 0x8f, 0x00, 0xdf, 0x65, - 0xc7, 0x49, 0x08, 0x89, 0x13, 0x42, 0x2d, 0x1f, 0x04, 0xd5, 0x76, 0xc6, 0xc8, 0x16, 0xd6, 0x13, - 0xb7, 0xd6, 0x7e, 0xff, 0xff, 0xfb, 0xbd, 0xff, 0x73, 0xe0, 0xad, 0x4c, 0x0a, 0xa3, 0x68, 0x66, - 0x0a, 0x2a, 0x28, 0x67, 0x8a, 0xec, 0x57, 0x4c, 0x1d, 0xe2, 0x52, 0x49, 0x23, 0xd1, 0x4d, 0xc1, - 0x2a, 0xa3, 0xa4, 0xc0, 0x8d, 0xa2, 0xb0, 0xc7, 0x25, 0x97, 0xb6, 0x86, 0xcc, 0x7f, 0xb9, 0xf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e, 0xec, 0xa7, 0x3a, 0xd1, 0xa1, 0xa7, 0xe7, 0x50, 0xae, 0x5f, 0x48, - 0xe9, 0x00, 0x4e, 0x63, 0x8e, 0xbe, 0x2d, 0xc3, 0xcb, 0x16, 0x13, 0xbd, 0x07, 0xb0, 0xeb, 0x32, - 0x44, 0x9b, 0xad, 0x3c, 0x67, 0x17, 0x17, 0x3e, 0x5c, 0xac, 0xd8, 0xf5, 0x8e, 0xd7, 0xdf, 0x7d, - 0xfd, 0xf5, 0x71, 0x69, 0x0d, 0xf5, 0x89, 0x57, 0x91, 0xf3, 0x9f, 0x12, 0xfa, 0x02, 0xe0, 0xb5, - 0x27, 0x6e, 0x27, 0x75, 0x82, 0x68, 0xf8, 0xef, 0x56, 0x8d, 0x25, 0x87, 0x78, 0xd1, 0x72, 0xcf, - 0xb6, 0x6d, 0xd9, 0x86, 0x68, 0xb3, 0x95, 0xad, 0xce, 0x9f, 0xbc, 0xf1, 0xcf, 0xe5, 0x2d, 0xfa, - 0x04, 0xe0, 0xca, 0xff, 0x02, 0xbc, 0x6f, 0x01, 0xef, 0xa2, 0xb5, 0x0b, 0x01, 0xc7, 0x93, 0xa3, - 0x69, 0x04, 0x8e, 0xa7, 0x11, 0xf8, 0x39, 0x8d, 0xc0, 0x87, 0x59, 0xd4, 0x39, 0x9e, 0x45, 0x9d, - 0xef, 0xb3, 0xa8, 0xf3, 0xe2, 0x11, 0xcf, 0xcd, 0xab, 0x2a, 0xc5, 0x99, 0x2c, 0x6a, 0x9b, 0xa1, - 0x54, 0xfc, 0xc4, 0xf2, 0xe0, 0x8c, 0xa9, 0x39, 0x2c, 0x99, 0x4e, 0xbb, 0xf6, 0xeb, 0xdd, 0xfe, - 0x1d, 0x00, 0x00, 0xff, 0xff, 0x09, 0xf1, 0xd1, 0xf5, 0x92, 0x04, 0x00, 0x00, +var fileDescriptor_f9524a427f219917 = []byte{ + // 478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00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, 0x6e, 0x27, 0x4d, 0x82, 0x68, 0x70, 0xb6, 0xd5, 0xdc, 0x92, 0x23, 0x7c, 0x51, 0xb9, + 0x67, 0xdb, 0xb2, 0x6c, 0x03, 0xb4, 0xd1, 0xca, 0xd6, 0xe4, 0x4f, 0xde, 0xfa, 0xeb, 0xf2, 0x0e, + 0x7d, 0x06, 0x70, 0xe9, 0xb2, 0x00, 0x1f, 0x58, 0xc0, 0x55, 0xb4, 0x72, 0x2e, 0xe0, 0x68, 0x7c, + 0x38, 0x89, 0xc1, 0xd1, 0x24, 0x06, 0xbf, 0x26, 0x31, 0xf8, 0x38, 0x8d, 0x83, 0xa3, 0x69, 0x1c, + 0xfc, 0x98, 0xc6, 0xc1, 0xcb, 0xc7, 0xbc, 0x30, 0xaf, 0xeb, 0x0c, 0xe7, 0xb2, 0x6c, 0xda, 0x0c, + 0xa4, 0xe2, 0xc7, 0x2d, 0xf7, 0x4f, 0x35, 0x35, 0x07, 0x15, 0xd3, 0x59, 0xc7, 0xfe, 0xbd, 0x5b, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xbf, 0xad, 0xfd, 0xaa, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -415,7 +417,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "contractmanager/query.proto", + Metadata: "neutron/contractmanager/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/contractmanager/types/query.pb.gw.go b/x/contractmanager/types/query.pb.gw.go index ef0703698..53090c4e2 100644 --- a/x/contractmanager/types/query.pb.gw.go +++ b/x/contractmanager/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: contractmanager/query.proto +// source: neutron/contractmanager/query.proto /* Package types is a reverse proxy. @@ -339,11 +339,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "contractmanager", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "contractmanager", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AddressFailures_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "contractmanager", "failures", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AddressFailures_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "contractmanager", "failures", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Failures_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "contractmanager", "failures"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Failures_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "contractmanager", "failures"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/contractmanager/types/sudo.go b/x/contractmanager/types/sudo.go index 21f57b31e..c0564d82a 100644 --- a/x/contractmanager/types/sudo.go +++ b/x/contractmanager/types/sudo.go @@ -1,8 +1,8 @@ package types import ( - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) const TransferPort = "transfer" diff --git a/x/cron/client/cli/query_schedule_test.go b/x/cron/client/cli/query_schedule_test.go index 6864b8c95..37f946848 100644 --- a/x/cron/client/cli/query_schedule_test.go +++ b/x/cron/client/cli/query_schedule_test.go @@ -5,6 +5,7 @@ import ( "strconv" "testing" + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/neutron-org/neutron/testutil/cron/network" @@ -12,7 +13,6 @@ import ( "github.com/neutron-org/neutron/x/cron/client/cli" "github.com/neutron-org/neutron/x/cron/types" "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index 81c5b41ed..688b14e83 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -2,21 +2,21 @@ package keeper import ( "fmt" + "github.com/armon/go-metrics" "strconv" "time" - "github.com/armon/go-metrics" "github.com/cosmos/cosmos-sdk/telemetry" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/store/prefix" + "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" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/neutron-org/neutron/x/cron/types" - "github.com/tendermint/tendermint/libs/log" ) var ( diff --git a/x/cron/module.go b/x/cron/module.go index d0d4a5667..8b01aca50 100644 --- a/x/cron/module.go +++ b/x/cron/module.go @@ -2,6 +2,7 @@ package cron import ( "context" + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" @@ -12,7 +13,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" @@ -94,6 +95,8 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} + // AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement type AppModule struct { AppModuleBasic @@ -111,16 +114,16 @@ func NewAppModule( } } -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.Route{} } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} -// Deprecated: use RegisterServices -func (AppModule) QuerierRoute() string { return types.RouterKey } +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} // Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} +func (AppModule) QuerierRoute() string { return types.RouterKey } // 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/cron/module_simulation.go b/x/cron/module_simulation.go index f1ed766f3..45f4ace31 100644 --- a/x/cron/module_simulation.go +++ b/x/cron/module_simulation.go @@ -1,10 +1,8 @@ package cron import ( - "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + "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" @@ -16,7 +14,7 @@ import ( // avoid unused import issue var ( _ = cronsimulation.FindAccount - _ = simappparams.StakePerAccount + _ = sims.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -42,11 +40,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP 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/cron/types/genesis.pb.go b/x/cron/types/genesis.pb.go index eeccc651b..8d710d18a 100644 --- a/x/cron/types/genesis.pb.go +++ b/x/cron/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: cron/genesis.proto +// source: neutron/cron/genesis.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -33,7 +33,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_0c58acd1c2bcdf4f, []int{0} + return fileDescriptor_7c41f2dea8ad83c2, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,25 +80,25 @@ func init() { proto.RegisterType((*GenesisState)(nil), "neutron.cron.GenesisState") } -func init() { proto.RegisterFile("cron/genesis.proto", fileDescriptor_0c58acd1c2bcdf4f) } +func init() { proto.RegisterFile("neutron/cron/genesis.proto", fileDescriptor_7c41f2dea8ad83c2) } -var fileDescriptor_0c58acd1c2bcdf4f = []byte{ +var fileDescriptor_7c41f2dea8ad83c2 = []byte{ // 228 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0x2e, 0xca, 0xcf, - 0xd3, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, - 0xc9, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x03, 0xc9, 0x49, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, - 0x83, 0x25, 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00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x06, 0x11, 0xe9, 0xa9, 0x79, 0xa9, 0xc5, 0x99, 0xc5, 0x7a, 0x05, + 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x3c, 0x50, 0x39, 0x3d, 0x90, 0x9c, 0x94, 0x48, 0x7a, 0x7e, 0x7a, + 0x3e, 0x58, 0x42, 0x1f, 0xc4, 0x82, 0xa8, 0x91, 0x92, 0x44, 0xd1, 0x5f, 0x90, 0x58, 0x94, 0x98, + 0x0b, 0xd5, 0x2e, 0x25, 0x8d, 0x22, 0x55, 0x9c, 0x9c, 0x91, 0x9a, 0x52, 0x9a, 0x93, 0x0a, 0x91, + 0x54, 0x6a, 0x61, 0xe4, 0xe2, 0x71, 0x87, 0xd8, 0x16, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0xe4, 0xc0, + 0xc5, 0x03, 0x53, 0xe2, 0x93, 0x59, 0x5c, 0x22, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x6d, 0x24, 0xa6, + 0x87, 0xec, 0x06, 0xbd, 0x60, 0xa8, 0x0a, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0x50, 0x74, + 0x08, 0x19, 0x71, 0xb1, 0x41, 0xec, 0x97, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x12, 0x41, 0xd5, + 0x1b, 0x00, 0x96, 0x83, 0xea, 0x84, 0xaa, 0x74, 0x72, 0x3d, 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, 0xed, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, + 0xa8, 0x39, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0xc4, 0x5b, 0x25, 0x95, 0x05, 0xa9, + 0xc5, 0x49, 0x6c, 0x60, 0x4f, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0x3a, 0xa2, 0x0f, + 0x4e, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/params.pb.go b/x/cron/types/params.pb.go index 54321ca1e..128e63f28 100644 --- a/x/cron/types/params.pb.go +++ b/x/cron/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: cron/params.proto +// source: neutron/cron/params.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_1c8bf79b449ebe44, []int{0} + return fileDescriptor_efa4f5c14a68f6e5, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,22 +81,22 @@ func init() { proto.RegisterType((*Params)(nil), "neutron.cron.Params") } -func init() { proto.RegisterFile("cron/params.proto", fileDescriptor_1c8bf79b449ebe44) } +func init() { proto.RegisterFile("neutron/cron/params.proto", fileDescriptor_efa4f5c14a68f6e5) } -var fileDescriptor_1c8bf79b449ebe44 = []byte{ +var fileDescriptor_efa4f5c14a68f6e5 = []byte{ // 195 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0x2e, 0xca, 0xcf, - 0xd3, 0x2f, 0x48, 0x2c, 0x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x92, 0xcc, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x06, 0x11, 0x05, 0x89, 0x45, 0x89, 0xb9, 0xc5, 0x7a, 0x05, 0x45, + 0xf9, 0x25, 0xf9, 0x42, 0x3c, 0x50, 0x29, 0x3d, 0x90, 0x94, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, + 0x58, 0x42, 0x1f, 0xc4, 0x82, 0xa8, 0x51, 0xf2, 0xe7, 0x62, 0x0b, 0x00, 0xeb, 0x11, 0xd2, 0xe4, + 0x12, 0x28, 0x4e, 0x4d, 0x2e, 0x2d, 0xca, 0x2c, 0xa9, 0x8c, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, + 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0xe2, 0x87, 0x89, 0x3b, 0x42, 0x84, 0x85, 0x44, + 0xb8, 0x58, 0x73, 0x32, 0x73, 0x33, 0x4b, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, + 0x2b, 0x96, 0x19, 0x0b, 0xe4, 0x19, 0x9c, 0x5c, 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, 0x3b, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xea, + 0x32, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0x02, 0xe2, 0x85, 0x92, 0xca, 0x82, 0xd4, 0xe2, + 0x24, 0x36, 0xb0, 0xf3, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x68, 0xd5, 0xf8, 0x81, 0xdf, 0x00, 0x00, 0x00, } diff --git a/x/cron/types/query.pb.go b/x/cron/types/query.pb.go index 8d554a34f..7998c0d71 100644 --- a/x/cron/types/query.pb.go +++ b/x/cron/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: cron/query.proto +// source: neutron/cron/query.proto package types @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_aa4b81a2a4395683, []int{0} + return fileDescriptor_e02f33367c9498fe, []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_aa4b81a2a4395683, []int{1} + return fileDescriptor_e02f33367c9498fe, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -119,7 +119,7 @@ func (m *QueryGetScheduleRequest) Reset() { *m = QueryGetScheduleRequest func (m *QueryGetScheduleRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetScheduleRequest) ProtoMessage() {} func (*QueryGetScheduleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_aa4b81a2a4395683, []int{2} + return fileDescriptor_e02f33367c9498fe, []int{2} } func (m *QueryGetScheduleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -163,7 +163,7 @@ func (m *QueryGetScheduleResponse) Reset() { *m = QueryGetScheduleRespon func (m *QueryGetScheduleResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetScheduleResponse) ProtoMessage() {} func (*QueryGetScheduleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_aa4b81a2a4395683, []int{3} + return fileDescriptor_e02f33367c9498fe, []int{3} } func (m *QueryGetScheduleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -207,7 +207,7 @@ func (m *QuerySchedulesRequest) Reset() { *m = QuerySchedulesRequest{} } func (m *QuerySchedulesRequest) String() string { return proto.CompactTextString(m) } func (*QuerySchedulesRequest) ProtoMessage() {} func (*QuerySchedulesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_aa4b81a2a4395683, []int{4} + return fileDescriptor_e02f33367c9498fe, []int{4} } func (m *QuerySchedulesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -252,7 +252,7 @@ func (m *QuerySchedulesResponse) Reset() { *m = QuerySchedulesResponse{} func (m *QuerySchedulesResponse) String() string { return proto.CompactTextString(m) } func (*QuerySchedulesResponse) ProtoMessage() {} func (*QuerySchedulesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_aa4b81a2a4395683, []int{5} + return fileDescriptor_e02f33367c9498fe, []int{5} } func (m *QuerySchedulesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -304,41 +304,41 @@ func init() { proto.RegisterType((*QuerySchedulesResponse)(nil), "neutron.cron.QuerySchedulesResponse") } -func init() { proto.RegisterFile("cron/query.proto", fileDescriptor_aa4b81a2a4395683) } +func init() { proto.RegisterFile("neutron/cron/query.proto", fileDescriptor_e02f33367c9498fe) } -var fileDescriptor_aa4b81a2a4395683 = []byte{ - // 494 bytes of a gzipped FileDescriptorProto +var fileDescriptor_e02f33367c9498fe = []byte{ + // 493 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0xb3, 0xb1, 0x86, 0xe6, 0xe9, 0x41, 0x5f, 0x63, 0x0c, 0x4b, 0xdd, 0xd6, 0xd5, 0x56, - 0x51, 0x3a, 0x43, 0xe3, 0x45, 0x3c, 0x16, 0xb4, 0x78, 0xab, 0xd1, 0x93, 0x17, 0x99, 0xc4, 0x61, - 0x1b, 0x6c, 0x66, 0xb6, 0x3b, 0xb3, 0xc5, 0x22, 0x82, 0xf8, 0x17, 0x08, 0x9e, 0xfd, 0x7f, 0x7a, - 0x2c, 0x78, 0xf1, 0x24, 0x92, 0x78, 0xf7, 0x5f, 0x90, 0x9d, 0x1f, 0xe9, 0x6e, 0x13, 0x92, 0xdb, - 0x32, 0xf3, 0x7d, 0xdf, 0xef, 0x67, 0xde, 0x7b, 0x0b, 0x37, 0x06, 0x99, 0x14, 0xf4, 0x38, 0xe7, - 0xd9, 0x29, 0x49, 0x33, 0xa9, 0x25, 0x5e, 0x17, 0x3c, 0xd7, 0x99, 0x14, 0xa4, 0xb8, 0x09, 0x5b, - 0x89, 0x4c, 0xa4, 0xb9, 0xa0, 0xc5, 0x97, 0xd5, 0x84, 0xeb, 0x89, 0x94, 0xc9, 0x11, 0xa7, 0x2c, - 0x1d, 0x52, 0x26, 0x84, 0xd4, 0x4c, 0x0f, 0xa5, 0x50, 0xee, 0xf6, 0xd1, 0x40, 0xaa, 0x91, 0x54, - 0xb4, 0xcf, 0x14, 0xb7, 0xd6, 0xf4, 0x64, 0xb7, 0xcf, 0x35, 0xdb, 0xa5, 0x29, 0x4b, 0x86, 0xc2, - 0x88, 0x9d, 0xf6, 0xa6, 0xc9, 0x4f, 0x59, 0xc6, 0x46, 0xbe, 0x7c, 0xcd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x58, 0xe4, 0xe2, 0x23, 0x13, 0xdf, 0xc1, 0x76, 0x75, 0xfc, 0xee, 0x8b, 0xd3, 0x71, + 0x14, 0x9c, 0x8d, 0xa3, 0xe0, 0xef, 0x38, 0x0a, 0xbe, 0x4f, 0xa2, 0xda, 0xd9, 0x24, 0xaa, 0xfd, + 0x9e, 0x44, 0xb5, 0x77, 0x4f, 0x92, 0xa1, 0x3e, 0xc8, 0xfb, 0x64, 0x20, 0x47, 0xbe, 0x77, 0x5b, + 0x66, 0xc9, 0xd4, 0xe7, 0x93, 0x75, 0xd2, 0x27, 0x29, 0x57, 0xfd, 0x86, 0xf9, 0x4c, 0x9f, 0x9e, + 0x07, 0x00, 0x00, 0xff, 0xff, 0x04, 0x51, 0x7a, 0x89, 0x68, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -496,7 +496,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "cron/query.proto", + Metadata: "neutron/cron/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/query.pb.gw.go b/x/cron/types/query.pb.gw.go index 19145fd03..a3ce24432 100644 --- a/x/cron/types/query.pb.gw.go +++ b/x/cron/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: cron/query.proto +// source: neutron/cron/query.proto /* Package types is a reverse proxy. @@ -321,11 +321,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "cron", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "cron", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Schedule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "cron", "schedule", "name"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Schedule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "cron", "schedule", "name"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Schedules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "cron", "schedule"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Schedules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "cron", "schedule"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/cron/types/schedule.pb.go b/x/cron/types/schedule.pb.go index 187fcad1d..f0206d02c 100644 --- a/x/cron/types/schedule.pb.go +++ b/x/cron/types/schedule.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: cron/schedule.proto +// source: neutron/cron/schedule.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -38,7 +38,7 @@ func (m *Schedule) Reset() { *m = Schedule{} } func (m *Schedule) String() string { return proto.CompactTextString(m) } func (*Schedule) ProtoMessage() {} func (*Schedule) Descriptor() ([]byte, []int) { - return fileDescriptor_b6a5569ec6e2056c, []int{0} + return fileDescriptor_49ace1b59de613ef, []int{0} } func (m *Schedule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -106,7 +106,7 @@ func (m *MsgExecuteContract) Reset() { *m = MsgExecuteContract{} } func (m *MsgExecuteContract) String() string { return proto.CompactTextString(m) } func (*MsgExecuteContract) ProtoMessage() {} func (*MsgExecuteContract) Descriptor() ([]byte, []int) { - return fileDescriptor_b6a5569ec6e2056c, []int{1} + return fileDescriptor_49ace1b59de613ef, []int{1} } func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,7 +158,7 @@ func (m *ScheduleCount) Reset() { *m = ScheduleCount{} } func (m *ScheduleCount) String() string { return proto.CompactTextString(m) } func (*ScheduleCount) ProtoMessage() {} func (*ScheduleCount) Descriptor() ([]byte, []int) { - return fileDescriptor_b6a5569ec6e2056c, []int{2} + return fileDescriptor_49ace1b59de613ef, []int{2} } func (m *ScheduleCount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -200,29 +200,30 @@ func init() { proto.RegisterType((*ScheduleCount)(nil), "neutron.cron.ScheduleCount") } -func init() { proto.RegisterFile("cron/schedule.proto", fileDescriptor_b6a5569ec6e2056c) } - -var fileDescriptor_b6a5569ec6e2056c = []byte{ - // 304 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4b, 0xc3, 0x30, - 0x14, 0xc7, 0x1b, 0xd7, 0x8d, 0x2d, 0x2a, 0x68, 0x36, 0xa4, 0xec, 0x10, 0xcb, 0x40, 0x18, 0x88, - 0x29, 0xe8, 0xcd, 0x63, 0xc7, 0xc0, 0x8b, 0x97, 0x7a, 0xf3, 0x32, 0xba, 0x2c, 0xa4, 0x85, 0x35, - 0x29, 0x49, 0x0a, 0xf3, 0x5b, 0xf8, 0x19, 0xfc, 0x34, 0x3b, 0xee, 0xe8, 0x49, 0xa4, 0xfd, 0x22, - 0xd2, 0x34, 0x13, 0xc1, 0xdb, 0xef, 0xcf, 0xff, 0xfd, 0xf3, 0xde, 0xcb, 0x83, 0x63, 0xaa, 0xa4, - 0x88, 0x34, 0xcd, 0xd8, 0xa6, 0xda, 0x32, 0x52, 0x2a, 0x69, 0x24, 0x3a, 0x13, 0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8a, 0x1f, 0x39, 0xda, 0x45, 0xf6, 0x06, 0xe6, 0xad, 0x64, 0x7a, 0x3d, 0xb0, - 0xbf, 0xfb, 0xf0, 0x13, 0x00, 0x00, 0xff, 0xff, 0x56, 0x9a, 0x42, 0xbf, 0x98, 0x01, 0x00, 0x00, +func init() { proto.RegisterFile("neutron/cron/schedule.proto", fileDescriptor_49ace1b59de613ef) } + +var fileDescriptor_49ace1b59de613ef = []byte{ + // 305 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xc1, 0x4a, 0xc3, 0x30, + 0x18, 0xc7, 0x1b, 0xd7, 0x8d, 0x2d, 0x2a, 0x68, 0x1c, 0x52, 0x26, 0xc4, 0x52, 0x10, 0x0a, 0x62, + 0x0a, 0x7a, 0xf3, 0xd8, 0x31, 0xf0, 0xe2, 0xa5, 0xde, 0xbc, 0x8c, 0x2e, 0x0b, 0x69, 0x61, 0x6d, + 0x4a, 0x93, 0xc2, 0x7c, 0x0b, 0x9f, 0xc1, 0xa7, 0xd9, 0x71, 0x47, 0x4f, 0x22, 0xed, 0x8b, 0x48, + 0xd2, 0x4c, 0x04, 0x2f, 0xe1, 0xf7, 0xe7, 0xff, 0xfd, 0xf3, 0x7d, 0x5f, 0x02, 0xaf, 0x4a, 0xd6, + 0xa8, 0x5a, 0x94, 0x11, 0xd5, 0x87, 0xa4, 0x19, 0x5b, 0x37, 0x1b, 0x46, 0xaa, 0x5a, 0x28, 0x81, + 0x4e, 0xac, 0x49, 0xb4, 0x39, 0x9b, 0x72, 0xc1, 0x85, 0x31, 0x22, 0x4d, 0x7d, 0x4d, 0xf0, 0x01, + 0xe0, 0xf8, 0xc5, 0xc6, 0x10, 0x82, 0x6e, 0x99, 0x16, 0xcc, 0x03, 0x3e, 0x08, 0x27, 0x89, 0x61, + 0x74, 0x09, 0x47, 0x15, 0xab, 0x73, 0xb1, 0xf6, 0x8e, 0x7c, 0x10, 0xba, 0x89, 0x55, 0xe8, 0x11, + 0xba, 0x85, 0xe4, 0xd2, 0x1b, 0xf8, 0x83, 0xf0, 0xf8, 0xde, 0x27, 0x7f, 0x7b, 0x91, 0x67, 0xc9, + 0x17, 0x5b, 0x46, 0x1b, 0xc5, 0xe6, 0xa2, 0x54, 0x75, 0x4a, 0x55, 0xec, 0xee, 0xbe, 0xae, 0x9d, + 0xc4, 0x64, 0x10, 0x81, 0x17, 0x9b, 0x54, 0xaa, 0x25, 0xeb, 0x6b, 0x96, 0x19, 0xcb, 0x79, 0xa6, + 0x3c, 0xd7, 0x34, 0x38, 0xd7, 0x96, 0x4d, 0x3f, 0x19, 0x23, 0x88, 0x21, 0xfa, 0x7f, 0x23, 0x9a, + 0xc1, 0x31, 0xb5, 0x6c, 0x27, 0xfe, 0xd5, 0xe8, 0x0c, 0x0e, 0x0a, 0xc9, 0xcd, 0xc8, 0x93, 0x44, + 0x63, 0x70, 0x03, 0x4f, 0x0f, 0x7b, 0xce, 0x45, 0x53, 0x2a, 0x34, 0x85, 0x43, 0xaa, 0xc1, 0x64, + 0x87, 0x49, 0x2f, 0xe2, 0xc5, 0xae, 0xc5, 0x60, 0xdf, 0x62, 0xf0, 0xdd, 0x62, 0xf0, 0xde, 0x61, + 0x67, 0xdf, 0x61, 0xe7, 0xb3, 0xc3, 0xce, 0xeb, 0x2d, 0xcf, 0x55, 0xd6, 0xac, 0x08, 0x15, 0x45, + 0x64, 0x97, 0xbd, 0x13, 0x35, 0x3f, 0x70, 0xb4, 0xed, 0xff, 0x40, 0xbd, 0x55, 0x4c, 0xae, 0x46, + 0xe6, 0x75, 0x1f, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0xba, 0x75, 0xe4, 0xb4, 0xa0, 0x01, 0x00, + 0x00, } func (m *Schedule) Marshal() (dAtA []byte, err error) { diff --git a/x/cron/types/tx.pb.go b/x/cron/types/tx.pb.go index 09f13e1c6..9a342b79f 100644 --- a/x/cron/types/tx.pb.go +++ b/x/cron/types/tx.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: cron/tx.proto +// source: neutron/cron/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" math "math" ) @@ -23,18 +23,18 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -func init() { proto.RegisterFile("cron/tx.proto", fileDescriptor_389b00cea0e301f3) } +func init() { proto.RegisterFile("neutron/cron/tx.proto", fileDescriptor_c9e0a673aba8d6fd) } -var fileDescriptor_389b00cea0e301f3 = []byte{ +var fileDescriptor_c9e0a673aba8d6fd = []byte{ // 120 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x2e, 0xca, 0xcf, - 0xd3, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xc9, 0x4b, 0x2d, 0x2d, 0x29, - 0xca, 0xcf, 0xd3, 0x03, 0x09, 0x1b, 0xb1, 0x72, 0x31, 0xfb, 0x16, 0xa7, 0x3b, 0xb9, 0x9e, 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, 0x76, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, - 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x54, 0xa7, 0x6e, 0x7e, 0x51, 0x3a, 0x8c, 0xad, 0x5f, 0xa1, 0x0f, - 0x31, 0xbe, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0x85, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, - 0xe7, 0xee, 0x4e, 0x1d, 0x73, 0x00, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x06, 0x11, 0x25, 0x15, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, + 0x3c, 0x50, 0x61, 0x3d, 0x90, 0xb0, 0x11, 0x2b, 0x17, 0xb3, 0x6f, 0x71, 0xba, 0x93, 0xeb, 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, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, + 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x75, 0xea, 0xe6, 0x17, 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0x50, + 0xe3, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x56, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xf4, 0x79, 0x03, 0xf3, 0x7b, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -76,5 +76,5 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, - Metadata: "cron/tx.proto", + Metadata: "neutron/cron/tx.proto", } diff --git a/x/feeburner/keeper/keeper.go b/x/feeburner/keeper/keeper.go index e706c94b8..3832749fa 100644 --- a/x/feeburner/keeper/keeper.go +++ b/x/feeburner/keeper/keeper.go @@ -6,12 +6,12 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "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" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" - "github.com/tendermint/tendermint/libs/log" + consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" "github.com/neutron-org/neutron/x/feeburner/types" ) @@ -82,7 +82,7 @@ func (k Keeper) GetTotalBurnedNeutronsAmount(ctx sdk.Context) types.TotalBurnedN } // BurnAndDistribute is an important part of tokenomics. It does few things: -// 1. Burns NTRN fee coins distributed to consumertypes.ConsumerRedistributeName in ICS (https://github.com/cosmos/interchain-security/blob/v0.2.0/x/ccv/consumer/keeper/distribution.go#L17) +// 1. Burns NTRN fee coins distributed to consumertypes.ConsumerRedistributeName in ICS (https://github.com/cosmos/interchain-security/v3/blob/v0.2.0/x/ccv/consumer/keeper/distribution.go#L17) // 2. Updates total amount of burned NTRN coins // 3. Sends non-NTRN fee tokens to reserve contract address // Panics if no `consumertypes.ConsumerRedistributeName` module found OR could not burn NTRN tokens diff --git a/x/feeburner/keeper/keeper_test.go b/x/feeburner/keeper/keeper_test.go index 67b2f3bcb..a77c9288f 100644 --- a/x/feeburner/keeper/keeper_test.go +++ b/x/feeburner/keeper/keeper_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" sdk "github.com/cosmos/cosmos-sdk/types" - consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" + consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" diff --git a/x/feeburner/module.go b/x/feeburner/module.go index 68b2017ab..6095ec72e 100644 --- a/x/feeburner/module.go +++ b/x/feeburner/module.go @@ -2,6 +2,7 @@ package feeburner import ( "context" + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" @@ -11,7 +12,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" @@ -91,6 +92,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // ---------------------------------------------------------------------------- // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} // AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement type AppModule struct { @@ -109,16 +111,16 @@ func NewAppModule( } } -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.Route{} } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} -// Deprecated: use RegisterServices -func (AppModule) QuerierRoute() string { return types.RouterKey } +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} // Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} +func (AppModule) QuerierRoute() string { return types.RouterKey } // 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/feeburner/module_simulation.go b/x/feeburner/module_simulation.go index fbee35f86..7eefd95cb 100644 --- a/x/feeburner/module_simulation.go +++ b/x/feeburner/module_simulation.go @@ -1,10 +1,8 @@ package feeburner import ( - "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + "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" @@ -18,7 +16,7 @@ import ( var ( _ = sample.AccAddress _ = feeburnersimulation.FindAccount - _ = simappparams.StakePerAccount + _ = sims.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -45,11 +43,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP 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/feeburner/types/genesis.pb.go b/x/feeburner/types/genesis.pb.go index d01d89c0e..24bdfb280 100644 --- a/x/feeburner/types/genesis.pb.go +++ b/x/feeburner/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feeburner/genesis.proto +// source: neutron/feeburner/genesis.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -33,7 +33,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_6bcf9b99915c37ac, []int{0} + return fileDescriptor_bdeb93808577407e, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,26 +80,26 @@ func init() { proto.RegisterType((*GenesisState)(nil), "neutron.feeburner.GenesisState") } -func init() { proto.RegisterFile("feeburner/genesis.proto", fileDescriptor_6bcf9b99915c37ac) } +func init() { proto.RegisterFile("neutron/feeburner/genesis.proto", fileDescriptor_bdeb93808577407e) } -var fileDescriptor_6bcf9b99915c37ac = []byte{ - // 249 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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0x96, 0x63, 0xb8, - 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x83, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, - 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x95, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x85, 0x3e, - 0x52, 0x38, 0x55, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x43, 0xc4, 0x18, 0x10, 0x00, 0x00, 0xff, - 0xff, 0x5c, 0xd8, 0x06, 0x42, 0x9b, 0x01, 0x00, 0x00, +var fileDescriptor_bdeb93808577407e = []byte{ + // 251 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x4b, 0x4d, 0x4d, 0x2a, 0x2d, 0xca, 0x4b, 0x2d, 0xd2, 0x4f, 0x4f, + 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x84, 0x2a, 0xd0, + 0x83, 0x2b, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xea, 0x83, 0x58, 0x10, 0x85, 0x52, + 0x72, 0x98, 0x26, 0x15, 0x24, 0x16, 0x25, 0xe6, 0x42, 0x0d, 0x92, 0x32, 0xc1, 0x94, 0x2f, 0xc9, + 0x2f, 0x49, 0xcc, 0x89, 0x07, 0x73, 0x52, 0xe2, 0xa1, 0xd2, 0xc5, 0xf1, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x10, 0x5d, 0x4a, 0x7b, 0x18, 0xb9, 0x78, 0xdc, 0x21, 0x0e, 0x0a, 0x2e, 0x49, 0x2c, + 0x49, 0x15, 0x32, 0xe7, 0x62, 0x83, 0x18, 0x2b, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa9, + 0x87, 0xe1, 0x40, 0xbd, 0x00, 0xb0, 0x02, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0xca, + 0x85, 0x8a, 0xb9, 0x64, 0xf0, 0xd9, 0x27, 0xc1, 0x04, 0x36, 0x4e, 0x07, 0x8b, 0x71, 0x21, 0x20, + 0x6d, 0x4e, 0x60, 0x5d, 0x7e, 0x50, 0x4d, 0x8e, 0x60, 0x3d, 0x50, 0x1b, 0x24, 0x4b, 0x70, 0x2a, + 0xf0, 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, 0x83, 0xf4, 0xcc, 0x92, + 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x95, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, + 0x7e, 0x05, 0x72, 0x38, 0x55, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x43, 0xc4, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0xeb, 0x01, 0xdc, 0x99, 0xb3, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/feeburner/types/params.pb.go b/x/feeburner/types/params.pb.go index 69ae7617b..10dc2a26b 100644 --- a/x/feeburner/types/params.pb.go +++ b/x/feeburner/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feeburner/params.proto +// source: neutron/feeburner/params.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -37,7 +37,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_ccaaf97f3dcc64c0, []int{0} + return fileDescriptor_be38a6978544057e, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,25 +91,25 @@ func init() { proto.RegisterType((*Params)(nil), "neutron.feeburner.Params") } -func init() { proto.RegisterFile("feeburner/params.proto", fileDescriptor_ccaaf97f3dcc64c0) } +func init() { proto.RegisterFile("neutron/feeburner/params.proto", fileDescriptor_be38a6978544057e) } -var fileDescriptor_ccaaf97f3dcc64c0 = []byte{ - // 226 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x4b, 0x4d, 0x4d, - 0x2a, 0x2d, 0xca, 0x4b, 0x2d, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0xcc, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x83, 0xcb, 0x4b, 0x89, - 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x65, 0xf5, 0x41, 0x2c, 0x88, 0x42, 0xa5, 0x76, 0x46, 0x2e, 0xb6, - 0x00, 0xb0, 0x4e, 0x21, 0x65, 0x2e, 0x5e, 0xa8, 0xae, 0xf8, 0x94, 0xd4, 0xbc, 0xfc, 0x5c, 0x09, - 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x1e, 0xa8, 0xa0, 0x0b, 0x48, 0x4c, 0x48, 0x9d, 0x8b, 0xbf, - 0x28, 0xb5, 0x38, 0xb5, 0xa8, 0x2c, 0x35, 0x3e, 0x31, 0x25, 0xa5, 0x28, 0xb5, 0xb8, 0x58, 0x82, - 0x09, 0xac, 0x8c, 0x0f, 0x2a, 0xec, 0x08, 0x11, 0x15, 0xd2, 0xe4, 0x12, 0x28, 0x29, 0x4a, 0x4d, - 0x2c, 0x2e, 0x2d, 0xaa, 0x84, 0xab, 0x64, 0x06, 0xab, 0xe4, 0x87, 0x89, 0x43, 0x95, 0x5a, 0xb1, - 0xcc, 0x58, 0x20, 0xcf, 0xe0, 0xe4, 0x75, 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, 0x06, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0xc7, 0xe8, - 0xe6, 0x17, 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0xfa, 0x88, 0x50, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, - 0x62, 0x03, 0x7b, 0xce, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x3d, 0x02, 0xb1, 0x1f, 0x01, - 0x00, 0x00, +var fileDescriptor_be38a6978544057e = []byte{ + // 228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x4b, 0x4d, 0x4d, 0x2a, 0x2d, 0xca, 0x4b, 0x2d, 0xd2, 0x2f, 0x48, + 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x84, 0xca, 0xeb, 0xc1, + 0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xb2, 0xfa, 0x20, 0x16, 0x44, 0xa1, 0x52, 0x3b, + 0x23, 0x17, 0x5b, 0x00, 0x58, 0xa7, 0x90, 0x32, 0x17, 0x2f, 0x54, 0x57, 0x7c, 0x4a, 0x6a, 0x5e, + 0x7e, 0xae, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x0f, 0x54, 0xd0, 0x05, 0x24, 0x26, 0xa4, + 0xce, 0xc5, 0x5f, 0x94, 0x5a, 0x9c, 0x5a, 0x54, 0x96, 0x1a, 0x9f, 0x98, 0x92, 0x52, 0x94, 0x5a, + 0x5c, 0x2c, 0xc1, 0x04, 0x56, 0xc6, 0x07, 0x15, 0x76, 0x84, 0x88, 0x0a, 0x69, 0x72, 0x09, 0x94, + 0x14, 0xa5, 0x26, 0x16, 0x97, 0x16, 0x55, 0xc2, 0x55, 0x32, 0x83, 0x55, 0xf2, 0xc3, 0xc4, 0xa1, + 0x4a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 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, 0x83, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, + 0xa8, 0x63, 0x74, 0xf3, 0x8b, 0xd2, 0x61, 0x6c, 0xfd, 0x0a, 0xa4, 0x50, 0x28, 0xa9, 0x2c, 0x48, + 0x2d, 0x4e, 0x62, 0x03, 0x7b, 0xce, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x89, 0x9d, 0x54, + 0x27, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/feeburner/types/query.pb.go b/x/feeburner/types/query.pb.go index c52404616..dc3110aa2 100644 --- a/x/feeburner/types/query.pb.go +++ b/x/feeburner/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feeburner/query.proto +// source: neutron/feeburner/query.proto package types @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_c8567953574c9090, []int{0} + return fileDescriptor_f540485c4b79b2ac, []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_c8567953574c9090, []int{1} + return fileDescriptor_f540485c4b79b2ac, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,7 +122,7 @@ func (m *QueryTotalBurnedNeutronsAmountRequest) Reset() { *m = QueryTota func (m *QueryTotalBurnedNeutronsAmountRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalBurnedNeutronsAmountRequest) ProtoMessage() {} func (*QueryTotalBurnedNeutronsAmountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8567953574c9090, []int{2} + return fileDescriptor_f540485c4b79b2ac, []int{2} } func (m *QueryTotalBurnedNeutronsAmountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -163,7 +163,7 @@ func (m *QueryTotalBurnedNeutronsAmountResponse) Reset() { func (m *QueryTotalBurnedNeutronsAmountResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalBurnedNeutronsAmountResponse) ProtoMessage() {} func (*QueryTotalBurnedNeutronsAmountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8567953574c9090, []int{3} + return fileDescriptor_f540485c4b79b2ac, []int{3} } func (m *QueryTotalBurnedNeutronsAmountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -206,36 +206,36 @@ func init() { proto.RegisterType((*QueryTotalBurnedNeutronsAmountResponse)(nil), "neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse") } -func init() { proto.RegisterFile("feeburner/query.proto", fileDescriptor_c8567953574c9090) } - -var fileDescriptor_c8567953574c9090 = []byte{ - // 407 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x6f, 0xda, 0x30, - 0x1c, 0xc5, 0x13, 0xb4, 0x71, 0xf0, 0x4e, 0xf3, 0xd8, 0xb4, 0x64, 0x28, 0xdb, 0x22, 0xc1, 0xa6, - 0x89, 0xc5, 0x83, 0x1d, 0xd8, 0x8e, 0xe3, 0xb8, 0x03, 0xda, 0x50, 0x4f, 0xbd, 0x20, 0x87, 0xba, - 0x69, 0x24, 0xe2, 0x7f, 0x88, 0x9d, 0xaa, 0xf4, 0xd8, 0x4f, 0x50, 0xa9, 0xe7, 0x7e, 0x1f, 0x7a, - 0x2a, 0x52, 0x2f, 0x3d, 0x55, 0x15, 0xf4, 0x83, 0x54, 0x38, 0x06, 0xda, 0x42, 0x40, 0xea, 0x2d, - 0xf1, 0xff, 0xf9, 0xbd, 0xdf, 0xb3, 0x8d, 0xde, 0xee, 0x33, 0xe6, 0xa7, 0x09, 0x67, 0x09, 0x19, - 0xa4, 0x2c, 0x19, 0x7a, 0x71, 0x02, 0x12, 0xf0, 0x6b, 0xce, 0x52, 0x99, 0x00, 0xf7, 0x16, 0x63, - 0xbb, 0x14, 0x40, 0x00, 0x6a, 0x4a, 0x66, 0x5f, 0x99, 0xd0, 0x2e, 0x07, 0x00, 0x41, 0x9f, 0x11, - 0x1a, 0x87, 0x84, 0x72, 0x0e, 0x92, 0xca, 0x10, 0xb8, 0xd0, 0xd3, 0x6f, 0x3d, 0x10, 0x11, 0x08, - 0xe2, 0x53, 0xc1, 0x32, 0x7f, 0x72, 0x58, 0xf7, 0x99, 0xa4, 0x75, 0x12, 0xd3, 0x20, 0xe4, 0x4a, - 0xac, 0xb5, 0xef, 0x96, 0x24, 0x31, 0x4d, 0x68, 0x34, 0xf7, 0xa8, 0x2d, 0xd7, 0x25, 0x48, 0xda, - 0xef, 0xaa, 0x9f, 0xbd, 0xae, 0x26, 0x14, 0x5d, 0x1a, 0x41, 0xca, 0x65, 0xa6, 0x76, 0x4b, 0x08, - 0xff, 0x9f, 0xe5, 0xfc, 0x53, 0x16, 0x1d, 0x36, 0x48, 0x99, 0x90, 0x6e, 0x1b, 0xbd, 0x79, 0xb4, - 0x2a, 0x62, 0xe0, 0x82, 0xe1, 0x26, 0x2a, 0x66, 0x51, 0xef, 0xcd, 0x4f, 0xe6, 0xd7, 0x57, 0x0d, - 0xcb, 0x5b, 0xa9, 0xed, 0x65, 0x5b, 0x5a, 0x2f, 0x46, 0x37, 0x1f, 0x8d, 0x8e, 0x96, 0xbb, 0x5f, - 0x50, 0x45, 0xf9, 0xed, 0xcc, 0x80, 0x5a, 0x8a, 0xa7, 0xad, 0x71, 0xfe, 0x28, 0x9a, 0x79, 0xf0, - 0xb9, 0x89, 0xaa, 0xdb, 0x94, 0x1a, 0x46, 0xa0, 0xf2, 0xa6, 0x7e, 0x1a, 0xb1, 0xb6, 0x06, 0x31, - 0xd7, 0x5b, 0x53, 0x5b, 0x32, 0x4f, 0xd0, 0xb8, 0x2c, 0xa0, 0x97, 0x8a, 0x0f, 0x1f, 0xa3, 0x62, - 0x56, 0x15, 0x57, 0xd6, 0x44, 0xac, 0x9e, 0xa9, 0x5d, 0xdd, 0x26, 0xcb, 0x7a, 0xb9, 0x9f, 0x4f, - 0xae, 0xee, 0xce, 0x0a, 0x1f, 0xb0, 0x45, 0xb4, 0x9e, 0x3c, 0xbd, 0x68, 0x7c, 0x61, 0x22, 0x2b, - 0xb7, 0x04, 0xfe, 0x95, 0x17, 0xb4, 0xed, 0xf4, 0xed, 0xdf, 0xcf, 0xd8, 0xa9, 0xa9, 0x9b, 0x8a, - 0xba, 0x8e, 0xc9, 0x1a, 0xea, 0x4d, 0xd7, 0xd4, 0xfa, 0x3b, 0x9a, 0x38, 0xe6, 0x78, 0xe2, 0x98, - 0xb7, 0x13, 0xc7, 0x3c, 0x9d, 0x3a, 0xc6, 0x78, 0xea, 0x18, 0xd7, 0x53, 0xc7, 0xd8, 0xfd, 0x11, - 0x84, 0xf2, 0x20, 0xf5, 0xbd, 0x1e, 0x44, 0x73, 0xd3, 0xef, 0x90, 0x04, 0x8b, 0x80, 0xa3, 0x87, - 0x11, 0xc3, 0x98, 0x09, 0xbf, 0xa8, 0xde, 0xf4, 0xcf, 0xfb, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, - 0x4a, 0x4d, 0x46, 0xa5, 0x03, 0x00, 0x00, +func init() { proto.RegisterFile("neutron/feeburner/query.proto", fileDescriptor_f540485c4b79b2ac) } + +var fileDescriptor_f540485c4b79b2ac = []byte{ + // 405 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x31, 0x4f, 0xdb, 0x40, + 0x1c, 0xc5, 0xed, 0xa8, 0xcd, 0x70, 0x9d, 0x7a, 0xcd, 0x50, 0xbb, 0xa9, 0xdb, 0x5a, 0x4a, 0x5a, + 0x55, 0xad, 0xaf, 0x49, 0x2b, 0xa5, 0x8c, 0x64, 0x64, 0x88, 0x20, 0x62, 0x62, 0x89, 0xce, 0xe1, + 0x30, 0x96, 0xe2, 0xfb, 0x3b, 0xbe, 0x33, 0x22, 0x8c, 0x7c, 0x02, 0x24, 0x66, 0xbe, 0x4f, 0x98, + 0x88, 0xc4, 0xc2, 0x84, 0x50, 0xc2, 0x07, 0x41, 0x39, 0x5f, 0x22, 0x90, 0x63, 0x22, 0xd8, 0x6c, + 0xbf, 0x77, 0xef, 0xfd, 0xfe, 0x7f, 0x1f, 0xfa, 0xcc, 0x59, 0x2a, 0x13, 0xe0, 0xe4, 0x80, 0x31, + 0x3f, 0x4d, 0x38, 0x4b, 0xc8, 0x30, 0x65, 0xc9, 0xc8, 0x8b, 0x13, 0x90, 0x80, 0xdf, 0x6b, 0xd9, + 0x5b, 0xca, 0x76, 0x25, 0x80, 0x00, 0x94, 0x4a, 0xe6, 0x4f, 0x99, 0xd1, 0xae, 0x06, 0x00, 0xc1, + 0x80, 0x11, 0x1a, 0x87, 0x84, 0x72, 0x0e, 0x92, 0xca, 0x10, 0xb8, 0xd0, 0xea, 0xcf, 0x3e, 0x88, + 0x08, 0x04, 0xf1, 0xa9, 0x60, 0x59, 0x3e, 0x39, 0x6a, 0xf8, 0x4c, 0xd2, 0x06, 0x89, 0x69, 0x10, + 0x72, 0x65, 0xd6, 0x5e, 0x27, 0x4f, 0x14, 0xd3, 0x84, 0x46, 0x8b, 0xac, 0x7f, 0x79, 0x5d, 0x82, + 0xa4, 0x83, 0x9e, 0x7a, 0xd9, 0xef, 0x69, 0x59, 0xf4, 0x68, 0x04, 0x29, 0x97, 0xd9, 0x29, 0xb7, + 0x82, 0xf0, 0xce, 0xbc, 0x77, 0x5b, 0x45, 0x75, 0xd9, 0x30, 0x65, 0x42, 0xba, 0x1d, 0xf4, 0xe1, + 0xc9, 0x57, 0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, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x35, 0xd5, + 0x1b, 0xbd, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -355,7 +355,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "feeburner/query.proto", + Metadata: "neutron/feeburner/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/feeburner/types/query.pb.gw.go b/x/feeburner/types/query.pb.gw.go index 5ae660741..0daa7f562 100644 --- a/x/feeburner/types/query.pb.gw.go +++ b/x/feeburner/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: feeburner/query.proto +// source: neutron/feeburner/query.proto /* Package types is a reverse proxy. @@ -206,9 +206,9 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "feeburner", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "feeburner", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalBurnedNeutronsAmount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "feeburner", "total_burned_neutrons_amount"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_TotalBurnedNeutronsAmount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "feeburner", "total_burned_neutrons_amount"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/feeburner/types/total_burned_neutrons_amount.pb.go b/x/feeburner/types/total_burned_neutrons_amount.pb.go index 9ec2519ad..0b562a8e4 100644 --- a/x/feeburner/types/total_burned_neutrons_amount.pb.go +++ b/x/feeburner/types/total_burned_neutrons_amount.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feeburner/total_burned_neutrons_amount.proto +// source: neutron/feeburner/total_burned_neutrons_amount.proto package types import ( fmt "fmt" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -33,7 +33,7 @@ func (m *TotalBurnedNeutronsAmount) Reset() { *m = TotalBurnedNeutronsAm func (m *TotalBurnedNeutronsAmount) String() string { return proto.CompactTextString(m) } func (*TotalBurnedNeutronsAmount) ProtoMessage() {} func (*TotalBurnedNeutronsAmount) Descriptor() ([]byte, []int) { - return fileDescriptor_3a29e81c9c2bc4df, []int{0} + return fileDescriptor_dfe0eb8ae8e764c8, []int{0} } func (m *TotalBurnedNeutronsAmount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,27 +74,27 @@ func init() { } func init() { - proto.RegisterFile("feeburner/total_burned_neutrons_amount.proto", fileDescriptor_3a29e81c9c2bc4df) + proto.RegisterFile("neutron/feeburner/total_burned_neutrons_amount.proto", fileDescriptor_dfe0eb8ae8e764c8) } -var fileDescriptor_3a29e81c9c2bc4df = []byte{ - // 245 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x4b, 0x4d, 0x4d, - 0x2a, 0x2d, 0xca, 0x4b, 0x2d, 0xd2, 0x2f, 0xc9, 0x2f, 0x49, 0xcc, 0x89, 0x07, 0x73, 0x52, 0xe2, - 0xf3, 0x52, 0x4b, 0x4b, 0x8a, 0xf2, 0xf3, 0x8a, 0xe3, 0x13, 0x73, 0xf3, 0x4b, 0xf3, 0x4a, 0xf4, - 0x0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 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xb4, 0xe9, - 0x66, 0x2c, 0x01, 0x00, 0x00, +var fileDescriptor_dfe0eb8ae8e764c8 = []byte{ + // 247 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0xc9, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x4b, 0x4d, 0x4d, 0x2a, 0x2d, 0xca, 0x4b, 0x2d, 0xd2, 0x2f, 0xc9, + 0x2f, 0x49, 0xcc, 0x89, 0x07, 0x73, 0x52, 0xe2, 0xa1, 0xd2, 0xc5, 0xf1, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x82, 0x50, 0x61, 0x3d, 0xb8, 0x2e, 0x29, + 0xb9, 0xe4, 0xfc, 0xe2, 0xdc, 0xfc, 0x62, 0xfd, 0xa4, 0xc4, 0xe2, 0x54, 0xfd, 0x32, 0xc3, 0xa4, + 0xd4, 0x92, 0x44, 0x43, 0xfd, 0xe4, 0xfc, 0xcc, 0x3c, 0x88, 0x16, 0x29, 0x91, 0xf4, 0xfc, 0xf4, + 0x7c, 0x30, 0x53, 0x1f, 0xc4, 0x82, 0x88, 0x2a, 0xc5, 0x73, 0x49, 0x86, 0x80, 0xac, 0x73, 0x02, + 0xdb, 0xe6, 0x07, 0xb5, 0xcc, 0x11, 0x6c, 0x97, 0x90, 0x13, 0x17, 0x0b, 0xc8, 0x00, 0x09, 0x46, + 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x49, 0x3d, 0x88, 0x0d, 0x7a, 0x20, 0x1b, 0xf4, 0xa0, 0x36, 0xe8, + 0x39, 0xe7, 0x67, 0xe6, 0x39, 0x09, 0x9f, 0xb8, 0x27, 0xcf, 0xf0, 0xe9, 0x9e, 0x3c, 0x77, 0x65, + 0x62, 0x6e, 0x8e, 0x95, 0x12, 0x48, 0x93, 0x52, 0x10, 0x58, 0xaf, 0x93, 0xd7, 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, 0x19, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, + 0xe7, 0xe7, 0xea, 0x43, 0xbd, 0xa3, 0x9b, 0x5f, 0x94, 0x0e, 0x63, 0xeb, 0x57, 0x20, 0x07, 0x49, + 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xcd, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, + 0xfe, 0xd6, 0xe6, 0x34, 0x01, 0x00, 0x00, } func (m *TotalBurnedNeutronsAmount) Marshal() (dAtA []byte, err error) { diff --git a/x/feerefunder/keeper/keeper.go b/x/feerefunder/keeper/keeper.go index 6be1b191e..3ad840c36 100644 --- a/x/feerefunder/keeper/keeper.go +++ b/x/feerefunder/keeper/keeper.go @@ -4,15 +4,14 @@ import ( "fmt" "strconv" + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - "github.com/tendermint/tendermint/libs/log" - + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/x/feerefunder/types" ) diff --git a/x/feerefunder/keeper/keeper_test.go b/x/feerefunder/keeper/keeper_test.go index d2d0f272c..c7db58d39 100644 --- a/x/feerefunder/keeper/keeper_test.go +++ b/x/feerefunder/keeper/keeper_test.go @@ -20,7 +20,7 @@ import ( "github.com/neutron-org/neutron/x/feerefunder/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) const ( diff --git a/x/feerefunder/module.go b/x/feerefunder/module.go index 297c54858..d70e2ac79 100644 --- a/x/feerefunder/module.go +++ b/x/feerefunder/module.go @@ -2,6 +2,7 @@ package feerefunder import ( "context" + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" @@ -11,7 +12,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" @@ -93,6 +94,8 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} + // AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement type AppModule struct { AppModuleBasic @@ -116,16 +119,16 @@ func NewAppModule( } } -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.Route{} } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} -// Deprecated: use RegisterServices -func (AppModule) QuerierRoute() string { return types.RouterKey } +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} // Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} +func (AppModule) QuerierRoute() string { return types.RouterKey } // 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/feerefunder/types/codec.go b/x/feerefunder/types/codec.go index 20e5abd4d..4cf72fc56 100644 --- a/x/feerefunder/types/codec.go +++ b/x/feerefunder/types/codec.go @@ -3,9 +3,6 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - - // this line is used by starport scaffolding # 1 - "github.com/cosmos/cosmos-sdk/types/msgservice" ) func RegisterCodec(_ *codec.LegacyAmino) { @@ -15,7 +12,7 @@ func RegisterCodec(_ *codec.LegacyAmino) { func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { // this line is used by starport scaffolding # 3 - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) + //msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } var ( diff --git a/x/feerefunder/types/expected_keepers.go b/x/feerefunder/types/expected_keepers.go index 7ed2f900a..fa8099e10 100644 --- a/x/feerefunder/types/expected_keepers.go +++ b/x/feerefunder/types/expected_keepers.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) diff --git a/x/feerefunder/types/fee.pb.go b/x/feerefunder/types/fee.pb.go index 77720d234..deabfddac 100644 --- a/x/feerefunder/types/fee.pb.go +++ b/x/feerefunder/types/fee.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feerefunder/fee.proto +// source: neutron/feerefunder/fee.proto package types @@ -7,8 +7,8 @@ import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -39,7 +39,7 @@ func (m *Fee) Reset() { *m = Fee{} } func (m *Fee) String() string { return proto.CompactTextString(m) } func (*Fee) ProtoMessage() {} func (*Fee) Descriptor() ([]byte, []int) { - return fileDescriptor_0c6cd4ef4b890305, []int{0} + return fileDescriptor_08c389f5f82f1076, []int{0} } func (m *Fee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -99,7 +99,7 @@ func (m *PacketID) Reset() { *m = PacketID{} } func (m *PacketID) String() string { return proto.CompactTextString(m) } func (*PacketID) ProtoMessage() {} func (*PacketID) Descriptor() ([]byte, []int) { - return fileDescriptor_0c6cd4ef4b890305, []int{1} + return fileDescriptor_08c389f5f82f1076, []int{1} } func (m *PacketID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -154,34 +154,34 @@ func init() { proto.RegisterType((*PacketID)(nil), "neutron.feerefunder.PacketID") } -func init() { proto.RegisterFile("feerefunder/fee.proto", fileDescriptor_0c6cd4ef4b890305) } +func init() { proto.RegisterFile("neutron/feerefunder/fee.proto", fileDescriptor_08c389f5f82f1076) } -var fileDescriptor_0c6cd4ef4b890305 = []byte{ +var fileDescriptor_08c389f5f82f1076 = []byte{ // 380 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x6b, 0xe2, 0x40, - 0x18, 0xc6, 0x33, 0xba, 0xf8, 0x67, 0x84, 0x5d, 0xc8, 0xee, 0xb2, 0xae, 0xb0, 0x51, 0x72, 0xca, - 0xc5, 0x0c, 0xba, 0xb7, 0x3d, 0xea, 0x22, 0x08, 0x3d, 0x14, 0x8f, 0x3d, 0x54, 0x92, 0xc9, 0x9b, - 0x18, 0x62, 0x66, 0x6c, 0x32, 0x91, 0x7a, 0xed, 0x27, 0xe8, 0xe7, 0xe8, 0x27, 0xf1, 0xe8, 0xb1, - 0x27, 0x5b, 0xf4, 0x1b, 0xf4, 0x5e, 0x28, 0x93, 0x8c, 0x25, 0x37, 0xf1, 0x34, 0xef, 0x1f, 0x9e, - 0xe7, 0xf7, 0x0c, 0xbc, 0xf8, 0xa7, 0x0f, 0x90, 0x80, 0x9f, 0x31, 0x0f, 0x12, 0xe2, 0x03, 0xd8, - 0xab, 0x84, 0x0b, 0xae, 0x7f, 0x67, 0x90, 0x89, 0x84, 0x33, 0xbb, 0xb4, 0xee, 0x18, 0x94, 0xa7, - 0x31, 0x4f, 0x89, 0xeb, 0xa4, 0x40, 0xd6, 0x03, 0x17, 0x84, 0x33, 0x20, 0x94, 0x87, 0xac, 0x10, - 0x75, 0x7e, 0x04, 0x3c, 0xe0, 0x79, 0x49, 0x64, 0x55, 0x4c, 0xcd, 0xf7, 0x0a, 0xae, 0x4e, 0x00, - 0xf4, 0x0d, 0x6e, 0x24, 0x40, 0xd7, 0x73, 0x1f, 0xa0, 0x8d, 0x7a, 0x55, 0xab, 0x35, 0xfc, 0x6d, - 0x17, 0x86, 0xb6, 0x34, 0xb4, 0x95, 0xa1, 0x3d, 0xe6, 0x21, 0x1b, 0x8d, 0xb7, 0xfb, 0xae, 0xf6, - 0xb6, 0xef, 0x7e, 0xdb, 0x38, 0xf1, 0xf2, 0x9f, 0x79, 0x12, 0x9a, 0x4f, 0x2f, 0x5d, 0x2b, 0x08, - 0xc5, 0x22, 0x73, 0x6d, 0xca, 0x63, 0xa2, 0x02, 0x15, 0x4f, 0x3f, 0xf5, 0x22, 0x22, 0x36, 0x2b, - 0x48, 0x73, 0x8f, 0x74, 0x56, 0x97, 0x32, 0x89, 0x5e, 0xe3, 0xba, 0x43, 0xa3, 0x9c, 0x5c, 0x39, - 0x47, 0x1e, 0x29, 0xf2, 0xd7, 0x82, 0xac, 0x74, 0x97, 0x81, 0x6b, 0x0e, 0x8d, 0x24, 0xf7, 0x01, - 0xe1, 0x96, 0x08, 0x63, 0xe0, 0x99, 0xc8, 0xe1, 0xd5, 0x73, 0xf0, 0x89, 0x82, 0xeb, 0x05, 0xbc, - 0xa4, 0xbd, 0x2c, 0x00, 0x56, 0xca, 0x09, 0x80, 0x79, 0x8b, 0x1b, 0xd7, 0x0e, 0x8d, 0x40, 0x4c, - 0xff, 0xeb, 0x7f, 0x30, 0xa6, 0x0b, 0x87, 0x31, 0x58, 0xce, 0x43, 0xaf, 0x8d, 0x7a, 0xc8, 0x6a, - 0xce, 0x9a, 0x6a, 0x32, 0xf5, 0xf4, 0x5f, 0xb8, 0xbe, 0xe2, 0x89, 0x90, 0xbb, 0x4a, 0xbe, 0xab, - 0xc9, 0x76, 0xea, 0xe9, 0x1d, 0xdc, 0x48, 0xe1, 0x2e, 0x03, 0x46, 0xe5, 0x27, 0x90, 0xf5, 0x65, - 0xf6, 0xd9, 0x8f, 0xae, 0xb6, 0x07, 0x03, 0xed, 0x0e, 0x06, 0x7a, 0x3d, 0x18, 0xe8, 0xf1, 0x68, - 0x68, 0xbb, 0xa3, 0xa1, 0x3d, 0x1f, 0x0d, 0xed, 0x66, 0x58, 0xca, 0xab, 0xee, 0xa9, 0xcf, 0x93, - 0xe0, 0x54, 0x93, 0x7b, 0x52, 0x3e, 0xbe, 0x3c, 0xbf, 0x5b, 0xcb, 0x8f, 0xe6, 0xef, 0x47, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x63, 0x01, 0x6f, 0xe2, 0x98, 0x02, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x6a, 0xea, 0x40, + 0x14, 0xc6, 0x33, 0x7a, 0xf1, 0xcf, 0x08, 0xf7, 0x42, 0xee, 0x85, 0x6b, 0x05, 0xa3, 0x64, 0x95, + 0x8d, 0x19, 0xb4, 0xbb, 0x2e, 0xb5, 0x08, 0x42, 0x17, 0xc5, 0x65, 0x17, 0x95, 0x64, 0x72, 0x8c, + 0x21, 0x66, 0xc6, 0x26, 0x13, 0xa9, 0xdb, 0x3e, 0x41, 0x9f, 0xa3, 0x4f, 0xe2, 0xd2, 0x65, 0x57, + 0xb6, 0xe8, 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 0x05, 0x1f, 0x2a, 0xb8, 0x9e, 0xc3, + 0x8f, 0xbc, 0xe7, 0x15, 0xc0, 0xca, 0x39, 0x04, 0x30, 0xef, 0x71, 0xe5, 0xd6, 0xa1, 0x21, 0x88, + 0xd1, 0xb5, 0xde, 0xc4, 0x98, 0xce, 0x1c, 0xc6, 0x60, 0x3e, 0x09, 0xbc, 0x3a, 0x6a, 0x23, 0xab, + 0x3a, 0xae, 0xaa, 0xcd, 0xc8, 0xd3, 0xff, 0xe3, 0xf2, 0x82, 0xc7, 0x42, 0x6a, 0x85, 0x4c, 0x2b, + 0xc9, 0xe7, 0xc8, 0xd3, 0x1b, 0xb8, 0x92, 0xc0, 0x43, 0x0a, 0x8c, 0xca, 0x9f, 0x40, 0xd6, 0xaf, + 0xf1, 0xf7, 0xbb, 0x7f, 0xb3, 0xde, 0x19, 0x68, 0xb3, 0x33, 0xd0, 0xfb, 0xce, 0x40, 0xcf, 0x7b, + 0x43, 0xdb, 0xec, 0x0d, 0xed, 0x75, 0x6f, 0x68, 0x77, 0xbd, 0xa3, 0xbe, 0xea, 0x9e, 0x3a, 0x3c, + 0xf6, 0x0f, 0x33, 0x79, 0xfc, 0x71, 0x7c, 0x59, 0x7f, 0xb7, 0x94, 0x1d, 0xcd, 0xe5, 0x57, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x73, 0x51, 0x88, 0xb3, 0xa0, 0x02, 0x00, 0x00, } func (m *Fee) Marshal() (dAtA []byte, err error) { diff --git a/x/feerefunder/types/genesis.go b/x/feerefunder/types/genesis.go index f96ea4e8a..6ba34ee3e 100644 --- a/x/feerefunder/types/genesis.go +++ b/x/feerefunder/types/genesis.go @@ -6,7 +6,7 @@ import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" + host "github.com/cosmos/ibc-go/v7/modules/core/24-host" ) // DefaultGenesis returns the default genesis state diff --git a/x/feerefunder/types/genesis.pb.go b/x/feerefunder/types/genesis.pb.go index b0bdde789..49ec297e9 100644 --- a/x/feerefunder/types/genesis.pb.go +++ b/x/feerefunder/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feerefunder/genesis.proto +// source: neutron/feerefunder/genesis.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -33,7 +33,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_582fc3ebaf316c40, []int{0} + return fileDescriptor_43aedfe31f06653d, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ func (m *FeeInfo) Reset() { *m = FeeInfo{} } func (m *FeeInfo) String() string { return proto.CompactTextString(m) } func (*FeeInfo) ProtoMessage() {} func (*FeeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_582fc3ebaf316c40, []int{1} + return fileDescriptor_43aedfe31f06653d, []int{1} } func (m *FeeInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -141,30 +141,30 @@ func init() { proto.RegisterType((*FeeInfo)(nil), "neutron.feerefunder.FeeInfo") } -func init() { proto.RegisterFile("feerefunder/genesis.proto", fileDescriptor_582fc3ebaf316c40) } +func init() { proto.RegisterFile("neutron/feerefunder/genesis.proto", fileDescriptor_43aedfe31f06653d) } -var fileDescriptor_582fc3ebaf316c40 = []byte{ - // 312 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x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 0xbc, 0xe7, 0x76, 0xa4, 0x8d, 0xff, 0x27, 0xe1, 0x12, 0x94, 0xa9, 0xd1, 0x1c, - 0xdb, 0x81, 0xdc, 0xe2, 0x66, 0x12, 0xce, 0xde, 0x40, 0x4f, 0xe2, 0x39, 0xad, 0x99, 0x82, 0x67, - 0x3b, 0x0a, 0x96, 0xaa, 0xd1, 0xdd, 0x26, 0xc3, 0x52, 0xa3, 0x39, 0xb9, 0xc4, 0x75, 0x0e, 0x40, - 0xeb, 0x86, 0xa5, 0xbb, 0xea, 0x39, 0xac, 0x94, 0x0e, 0x1f, 0x57, 0x39, 0x43, 0xeb, 0x9c, 0xa1, - 0xdf, 0x9c, 0xa1, 0xcf, 0x82, 0x79, 0xeb, 0x82, 0x79, 0xdf, 0x05, 0xf3, 0x5e, 0x06, 0x51, 0xac, - 0x5f, 0xb3, 0xa9, 0x3f, 0x93, 0x8b, 0xc0, 0x19, 0x5d, 0x48, 0x15, 0x6d, 0xde, 0xc1, 0x7b, 0x50, - 0x3d, 0xba, 0x5e, 0x26, 0x90, 0x4e, 0x1b, 0xe6, 0xee, 0x57, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xe4, 0xe1, 0xac, 0xa1, 0xf0, 0x01, 0x00, 0x00, +var fileDescriptor_43aedfe31f06653d = []byte{ + // 313 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xc1, 0x4a, 0xf3, 0x40, + 0x10, 0xc7, 0xb3, 0xed, 0xf7, 0x55, 0xbb, 0xf5, 0xb4, 0xf6, 0x10, 0xaa, 0x5d, 0x6b, 0x4f, 0xbd, + 0x98, 0x48, 0x3d, 0x79, 0x52, 0x8a, 0x28, 0x01, 0x0f, 0x52, 0x6f, 0x5e, 0x4a, 0xda, 0xcc, 0xc6, + 0x20, 0xdd, 0x0d, 0x9b, 0x0d, 0xd8, 0x57, 0xf0, 0x24, 0xf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xb8, 0x4d, 0xed, 0xba, 0xbb, 0xe2, 0x59, 0xad, 0x42, 0x27, 0xf7, 0xeb, 0x82, 0xa2, 0x4d, + 0x41, 0xd1, 0x77, 0x41, 0xd1, 0x7b, 0x49, 0x9d, 0x4d, 0x49, 0x9d, 0xcf, 0x92, 0x3a, 0x4f, 0xe3, + 0x38, 0x51, 0xcf, 0xf9, 0xdc, 0x5b, 0x88, 0xa5, 0x6f, 0x17, 0x9d, 0x09, 0x19, 0x6f, 0x6b, 0xff, + 0xf5, 0xcf, 0xd3, 0xd5, 0x2a, 0x85, 0x6c, 0xde, 0xd2, 0x7f, 0xbf, 0xf8, 0x09, 0x00, 0x00, 0xff, + 0xff, 0x64, 0x48, 0xa9, 0x7f, 0x08, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/feerefunder/types/params.pb.go b/x/feerefunder/types/params.pb.go index a10f2141a..1055a3794 100644 --- a/x/feerefunder/types/params.pb.go +++ b/x/feerefunder/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feerefunder/params.proto +// source: neutron/feerefunder/params.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_b29edda2b6ec7f73, []int{0} + return fileDescriptor_2dae67276ca81c89, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -71,23 +71,23 @@ func init() { proto.RegisterType((*Params)(nil), "neutron.feerefunder.Params") } -func init() { proto.RegisterFile("feerefunder/params.proto", fileDescriptor_b29edda2b6ec7f73) } +func init() { proto.RegisterFile("neutron/feerefunder/params.proto", fileDescriptor_2dae67276ca81c89) } -var fileDescriptor_b29edda2b6ec7f73 = []byte{ - // 202 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0x4b, 0x4d, 0x2d, - 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xce, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x43, 0x52, - 0x21, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd7, 0x07, 0xb1, 0x20, 0x4a, 0xa5, 0x44, 0x91, - 0x0d, 0x49, 0x4b, 0x4d, 0x85, 0x08, 0x2b, 0xb9, 0x73, 0xb1, 0x05, 0x80, 0x4d, 0x14, 0x32, 0xe7, - 0x62, 0xcf, 0xcd, 0xcc, 0x8b, 0x4f, 0x4b, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x92, - 0xd0, 0xc3, 0x62, 0xba, 0x9e, 0x5b, 0x6a, 0xaa, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x6c, - 0xb9, 0x99, 0x79, 0x6e, 0xa9, 0xa9, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0xf9, 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, 0x51, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, - 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x44, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0x42, 0x1f, - 0xd9, 0x69, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xd7, 0x19, 0x03, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xd5, 0x9f, 0x23, 0x0b, 0xfb, 0x00, 0x00, 0x00, +var fileDescriptor_2dae67276ca81c89 = []byte{ + // 204 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x4b, 0x4d, 0x2d, 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, + 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xaa, + 0xd0, 0x43, 0x52, 0x21, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd7, 0x07, 0xb1, 0x20, 0x4a, + 0xa5, 0x64, 0xb1, 0x19, 0x96, 0x96, 0x9a, 0x0a, 0x91, 0x56, 0x72, 0xe7, 0x62, 0x0b, 0x00, 0x9b, + 0x2c, 0x64, 0xce, 0xc5, 0x9e, 0x9b, 0x99, 0x17, 0x9f, 0x96, 0x9a, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, + 0xc1, 0x6d, 0x24, 0xa1, 0x87, 0xc5, 0x16, 0x3d, 0xb7, 0xd4, 0x54, 0x27, 0x96, 0x13, 0xf7, 0xe4, + 0x19, 0x82, 0xd8, 0x72, 0x33, 0xf3, 0xdc, 0x52, 0x53, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, + 0xf2, 0x39, 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, 0xa3, 0xf4, 0xcc, 0x92, + 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x89, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, + 0x7e, 0x05, 0x8a, 0xd3, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xae, 0x33, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xdb, 0x4c, 0x34, 0x0f, 0x0b, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/feerefunder/types/query.pb.go b/x/feerefunder/types/query.pb.go index 9ca6a6f87..30a8b3b16 100644 --- a/x/feerefunder/types/query.pb.go +++ b/x/feerefunder/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feerefunder/query.proto +// source: neutron/feerefunder/query.proto package types @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_1975d512c0efffc5, []int{0} + return fileDescriptor_c20b5686ec46d4e6, []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_1975d512c0efffc5, []int{1} + return fileDescriptor_c20b5686ec46d4e6, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -123,7 +123,7 @@ func (m *FeeInfoRequest) Reset() { *m = FeeInfoRequest{} } func (m *FeeInfoRequest) String() string { return proto.CompactTextString(m) } func (*FeeInfoRequest) ProtoMessage() {} func (*FeeInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1975d512c0efffc5, []int{2} + return fileDescriptor_c20b5686ec46d4e6, []int{2} } func (m *FeeInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -181,7 +181,7 @@ func (m *FeeInfoResponse) Reset() { *m = FeeInfoResponse{} } func (m *FeeInfoResponse) String() string { return proto.CompactTextString(m) } func (*FeeInfoResponse) ProtoMessage() {} func (*FeeInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1975d512c0efffc5, []int{3} + return fileDescriptor_c20b5686ec46d4e6, []int{3} } func (m *FeeInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -224,38 +224,38 @@ func init() { proto.RegisterType((*FeeInfoResponse)(nil), "neutron.feerefunder.FeeInfoResponse") } -func init() { proto.RegisterFile("feerefunder/query.proto", fileDescriptor_1975d512c0efffc5) } - -var fileDescriptor_1975d512c0efffc5 = []byte{ - // 438 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x6f, 0xd3, 0x30, - 0x14, 0xc6, 0xeb, 0x32, 0xda, 0xcd, 0x48, 0x20, 0x79, 0x93, 0x56, 0x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3, 0x80, 0x7c, 0x5f, 0x04, 0x9d, 0x8b, 0x45, 0xd0, 0xf9, 0xbd, 0x08, - 0x3a, 0x1f, 0x27, 0xb2, 0xb0, 0xc7, 0x55, 0x12, 0xa5, 0x38, 0x6b, 0x8d, 0xfa, 0x7c, 0x25, 0xcc, - 0x9e, 0x95, 0x60, 0x92, 0x9e, 0xfb, 0x1b, 0x5f, 0xfd, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x8f, - 0xfe, 0x45, 0x52, 0x03, 0x00, 0x00, +func init() { proto.RegisterFile("neutron/feerefunder/query.proto", fileDescriptor_c20b5686ec46d4e6) } + +var fileDescriptor_c20b5686ec46d4e6 = []byte{ + // 439 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xb1, 0x6f, 0xd4, 0x30, + 0x14, 0xc6, 0xcf, 0x47, 0xb9, 0x6b, 0x8d, 0x04, 0x92, 0x5b, 0x89, 0x2a, 0x94, 0xf4, 0x08, 0xa0, + 0x3b, 0x90, 0x1a, 0xab, 0xc7, 0x80, 0x58, 0x3b, 0x20, 0x1d, 0x62, 0x28, 0x19, 0x59, 0x2a, 0x27, + 0x79, 0x71, 0x23, 0xf5, 0xfc, 0x52, 0xdb, 0x41, 0x74, 0x85, 0x95, 0x01, 0x89, 0x95, 0x3f, 0xa8, + 0x63, 0x25, 0x16, 0x26, 0x84, 0xee, 0xf8, 0x43, 0x50, 0x1c, 0xb7, 0xa2, 0x22, 0x6d, 0x37, 0xdb, + 0xef, 0xfb, 0xbe, 0xf7, 0x7b, 0x2f, 0xa1, 0xdb, 0x0a, 0x6a, 0xab, 0x51, 0xf1, 0x02, 0x40, 0x43, + 0x51, 0xab, 0x1c, 0x34, 0x3f, 0xae, 0x41, 0x9f, 0xc4, 0x95, 0x46, 0x8b, 0x6c, 0xdd, 0x0b, 0xe2, + 0x7f, 0x04, 0xc1, 0x86, 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x54, 0x05, 0x7a, 0xea, 0xad, + 0x4e, 0xea, 0x73, 0xdf, 0xb0, 0x68, 0x0f, 0xd3, 0xef, 0x7d, 0x7a, 0xdb, 0x2d, 0x81, 0x7d, 0x21, + 0x74, 0xd0, 0x0e, 0xc5, 0xc6, 0x9d, 0xde, 0xff, 0x37, 0x18, 0x4c, 0x6e, 0x16, 0xb6, 0x80, 0x11, + 0xff, 0xf4, 0xe3, 0xcf, 0xb7, 0xfe, 0x33, 0x36, 0xe6, 0xde, 0xb1, 0x83, 0x5a, 0xf2, 0xab, 0xbf, + 0x2d, 0xfb, 0x4c, 0xe8, 0xd0, 0xd3, 0xb2, 0xc7, 0xd7, 0xce, 0xe2, 0x59, 0x9e, 0x5c, 0x2f, 0xf2, + 0x1c, 0x3b, 0x8e, 0x63, 0xcc, 0x9e, 0xde, 0xc8, 0xd1, 0xec, 0x72, 0xef, 0xed, 0xe9, 0x22, 0x24, + 0x67, 0x8b, 0x90, 0xfc, 0x5e, 0x84, 0xe4, 0xeb, 0x32, 0xec, 0x9d, 0x2d, 0xc3, 0xde, 0xcf, 0x65, + 0xd8, 0x7b, 0x3f, 0x95, 0xa5, 0x3d, 0xac, 0xd3, 0x38, 0xc3, 0x79, 0x67, 0xd4, 0xc7, 0x4b, 0x61, + 0xf6, 0xa4, 0x02, 0x93, 0x0e, 0xdc, 0xdf, 0xf8, 0xe2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, + 0xca, 0xf3, 0x58, 0x6a, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -373,7 +373,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "feerefunder/query.proto", + Metadata: "neutron/feerefunder/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/feerefunder/types/query.pb.gw.go b/x/feerefunder/types/query.pb.gw.go index 0814e7d0c..5dce6d4e1 100644 --- a/x/feerefunder/types/query.pb.gw.go +++ b/x/feerefunder/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: feerefunder/query.proto +// source: neutron/feerefunder/query.proto /* Package types is a reverse proxy. @@ -224,9 +224,9 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron-org", "neutron", "feerefunder", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron-org", "neutron", "feerefunder", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_FeeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron-org", "neutron", "feerefunder", "info"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_FeeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron-org", "neutron", "feerefunder", "info"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/feerefunder/types/tx.pb.go b/x/feerefunder/types/tx.pb.go index a35ac2337..9c51b8cd6 100644 --- a/x/feerefunder/types/tx.pb.go +++ b/x/feerefunder/types/tx.pb.go @@ -1,86 +1,86 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: feerefunder/tx.proto - +// // Code generated by protoc-gen-gogo. DO NOT EDIT. +// // source: feerefunder/tx.proto package types -import ( - context "context" - fmt "fmt" - math "math" - - _ "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("feerefunder/tx.proto", fileDescriptor_af2a0269bf094340) } - -var fileDescriptor_af2a0269bf094340 = []byte{ - // 174 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4b, 0x4d, 0x2d, - 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x92, 0xcb, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xcb, 0x2f, 0x4a, 0xd7, 0x83, 0x32, 0xf5, - 0x90, 0x14, 0x4a, 0xc9, 0x25, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0xea, - 0x97, 0x19, 0x26, 0xa5, 0x96, 0x24, 0x1a, 0xea, 0x27, 0xe7, 0x67, 0xe6, 0x41, 0xf4, 0x4b, 0x89, - 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x44, 0xd4, 0x88, 0x95, 0x8b, 0xd9, 0xb7, - 0x38, 0xdd, 0xc9, 0xe7, 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, 0x8c, 0xd2, - 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xa1, 0xd6, 0xea, 0xe6, 0x17, 0xa5, - 0xc3, 0xd8, 0xfa, 0x15, 0xfa, 0x28, 0xae, 0xad, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x9b, 0x6d, - 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x8f, 0xb3, 0x6d, 0xc9, 0x00, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -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. -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 struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutronorg.neutron.feerefunder.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "feerefunder/tx.proto", -} +//import ( +// context "context" +// fmt "fmt" +// math "math" +// +// _ "github.com/cosmos/cosmos-sdk/types" +// _ "github.com/gogo/protobuf/gogoproto" +// grpc1 "github.com/gogo/protobuf/grpc" +// proto "github.com/gogo/protobuf/proto" +// grpc "google.golang.org/grpc" +//) +// +//// Reference imports to suppress errors if they are not otherwise used. +//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. +//// A compilation error at this line likely means your copy of the +//// proto package needs to be updated. +//const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// +//func init() { proto.RegisterFile("feerefunder/tx.proto", fileDescriptor_af2a0269bf094340) } +// +//var fileDescriptor_af2a0269bf094340 = []byte{ +// // 174 bytes of a gzipped FileDescriptorProto +// 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4b, 0x4d, 0x2d, +// 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, +// 0x17, 0x92, 0xcb, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xcb, 0x2f, 0x4a, 0xd7, 0x83, 0x32, 0xf5, +// 0x90, 0x14, 0x4a, 0xc9, 0x25, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0xea, +// 0x97, 0x19, 0x26, 0xa5, 0x96, 0x24, 0x1a, 0xea, 0x27, 0xe7, 0x67, 0xe6, 0x41, 0xf4, 0x4b, 0x89, +// 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x44, 0xd4, 0x88, 0x95, 0x8b, 0xd9, 0xb7, +// 0x38, 0xdd, 0xc9, 0xe7, 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, 0x8c, 0xd2, +// 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xa1, 0xd6, 0xea, 0xe6, 0x17, 0xa5, +// 0xc3, 0xd8, 0xfa, 0x15, 0xfa, 0x28, 0xae, 0xad, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x9b, 0x6d, +// 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x8f, 0xb3, 0x6d, 0xc9, 0x00, 0x00, 0x00, +//} +// +//// Reference imports to suppress errors if they are not otherwise used. +//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. +//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 struct { +// cc grpc1.ClientConn +//} +// +//func NewMsgClient(cc grpc1.ClientConn) MsgClient { +// return &msgClient{cc} +//} +// +//// MsgServer is the server API for Msg service. +//type MsgServer interface { +//} +// +//// UnimplementedMsgServer can be embedded to have forward compatible implementations. +//type UnimplementedMsgServer struct { +//} +// +//func RegisterMsgServer(s grpc1.Server, srv MsgServer) { +// s.RegisterService(&_Msg_serviceDesc, srv) +//} +// +//var _Msg_serviceDesc = grpc.ServiceDesc{ +// ServiceName: "neutronorg.neutron.feerefunder.Msg", +// HandlerType: (*MsgServer)(nil), +// Methods: []grpc.MethodDesc{}, +// Streams: []grpc.StreamDesc{}, +// Metadata: "feerefunder/tx.proto", +//} diff --git a/x/ibc-hooks/hooks.go b/x/ibc-hooks/hooks.go index 8b6d4d0a9..3487aad96 100644 --- a/x/ibc-hooks/hooks.go +++ b/x/ibc-hooks/hooks.go @@ -6,8 +6,8 @@ import ( capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" // ibc-go - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" ) type Hooks interface{} diff --git a/x/ibc-hooks/ibc_middleware_test.go b/x/ibc-hooks/ibc_middleware_test.go index 85393024c..a1257fa45 100644 --- a/x/ibc-hooks/ibc_middleware_test.go +++ b/x/ibc-hooks/ibc_middleware_test.go @@ -9,7 +9,7 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" - ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing" + ibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" "github.com/stretchr/testify/suite" "github.com/neutron-org/neutron/app/params" @@ -17,9 +17,9 @@ import ( "github.com/neutron-org/neutron/x/ibc-hooks/testutils" "github.com/neutron-org/neutron/x/ibc-hooks/utils" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) type HooksTestSuite struct { @@ -75,13 +75,13 @@ func (suite *HooksTestSuite) TestOnRecvPacketHooks() { suite.ChainA.SenderAccount.GetAddress().String(), receiver, clienttypes.NewHeight(1, 110), - 0) + 0, "") _, err := suite.ChainA.SendMsgs(transferMsg) suite.Require().NoError(err) // message committed tc.malleate(&status) - data := transfertypes.NewFungibleTokenPacketData(trace.GetFullDenomPath(), amount.String(), suite.ChainA.SenderAccount.GetAddress().String(), receiver) + data := transfertypes.NewFungibleTokenPacketData(trace.GetFullDenomPath(), amount.String(), suite.ChainA.SenderAccount.GetAddress().String(), receiver, "") packet := channeltypes.NewPacket(data.GetBytes(), seq, suite.TransferPath.EndpointA.ChannelConfig.PortID, suite.TransferPath.EndpointA.ChannelID, suite.TransferPath.EndpointB.ChannelConfig.PortID, suite.TransferPath.EndpointB.ChannelID, clienttypes.NewHeight(1, 100), 0) ack := suite.GetNeutronZoneApp(suite.ChainB).HooksTransferIBCModule. @@ -142,9 +142,10 @@ func (suite *HooksTestSuite) receivePacketWithSequence(receiver, memo string, pr packet := suite.makeMockPacket(receiver, memo, prevSequence) - err := suite.GetNeutronZoneApp(suite.ChainB).HooksICS4Wrapper.SendPacket( - suite.ChainB.GetContext(), channelCap, packet) + seq_id, err := suite.GetNeutronZoneApp(suite.ChainB).HooksICS4Wrapper.SendPacket( + suite.ChainB.GetContext(), channelCap, suite.TransferPath.EndpointA.ChannelConfig.PortID, suite.TransferPath.EndpointA.ChannelID, packet.TimeoutHeight, packet.TimeoutTimestamp, packet.Data) suite.Require().NoError(err, "IBC send failed. Expected success. %s", err) + suite.Require().Equal(prevSequence+1, seq_id) // Update both clients err = suite.TransferPath.EndpointB.UpdateClient() diff --git a/x/ibc-hooks/ibc_module.go b/x/ibc-hooks/ibc_module.go index b60193fda..4145d70b7 100644 --- a/x/ibc-hooks/ibc_module.go +++ b/x/ibc-hooks/ibc_module.go @@ -4,11 +4,12 @@ import ( // external libraries sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" // ibc-go - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" ) var _ porttypes.Middleware = &IBCMiddleware{} @@ -235,11 +236,9 @@ func (im IBCMiddleware) OnTimeoutPacket( // SendPacket implements the ICS4 Wrapper interface func (im IBCMiddleware) SendPacket( - ctx sdk.Context, - chanCap *capabilitytypes.Capability, - packet ibcexported.PacketI, -) error { - return im.ICS4Middleware.SendPacket(ctx, chanCap, packet) + ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, +) (sequence uint64, err error) { + return im.ICS4Middleware.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data) } // WriteAcknowledgement implements the ICS4 Wrapper interface diff --git a/x/ibc-hooks/ics4_middleware.go b/x/ibc-hooks/ics4_middleware.go index 19ef100f6..c3e249302 100644 --- a/x/ibc-hooks/ics4_middleware.go +++ b/x/ibc-hooks/ics4_middleware.go @@ -3,45 +3,58 @@ package ibchooks import ( // external libraries sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + "github.com/neutron-org/neutron/x/ibc-hooks/types" // ibc-go - porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" ) var _ porttypes.ICS4Wrapper = &ICS4Middleware{} type ICS4Middleware struct { - channel porttypes.ICS4Wrapper + channelKeeper types.ChannelKeeper + channel porttypes.ICS4Wrapper // Hooks Hooks Hooks } -func NewICS4Middleware(channel porttypes.ICS4Wrapper, hooks Hooks) ICS4Middleware { +func NewICS4Middleware(channelKeeper types.ChannelKeeper, channel porttypes.ICS4Wrapper, hooks Hooks) ICS4Middleware { return ICS4Middleware{ - channel: channel, - Hooks: hooks, + channelKeeper: channelKeeper, + channel: channel, + Hooks: hooks, } } -func (i ICS4Middleware) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error { +func (i ICS4Middleware) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte) (sequence uint64, err error) { + channel, found := i.channelKeeper.GetChannel(ctx, sourcePort, sourceChannel) + if !found { + return 0, sdkerrors.Wrap(channeltypes.ErrChannelNotFound, sourceChannel) + } + + packet := channeltypes.NewPacket(data, sequence, sourcePort, sourceChannel, + channel.Counterparty.PortId, channel.Counterparty.ChannelId, timeoutHeight, timeoutTimestamp) if hook, ok := i.Hooks.(SendPacketOverrideHooks); ok { - return hook.SendPacketOverride(i, ctx, channelCap, packet) + return 0, hook.SendPacketOverride(i, ctx, channelCap, packet) } if hook, ok := i.Hooks.(SendPacketBeforeHooks); ok { hook.SendPacketBeforeHook(ctx, channelCap, packet) } - err := i.channel.SendPacket(ctx, channelCap, packet) + sequence, err = i.channel.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data) if hook, ok := i.Hooks.(SendPacketAfterHooks); ok { hook.SendPacketAfterHook(ctx, channelCap, packet, err) } - return err + return sequence, err } func (i ICS4Middleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement) error { diff --git a/x/ibc-hooks/sdkmodule.go b/x/ibc-hooks/sdkmodule.go index f2be6ecec..73e73b3cd 100644 --- a/x/ibc-hooks/sdkmodule.go +++ b/x/ibc-hooks/sdkmodule.go @@ -1,9 +1,8 @@ package ibchooks import ( + "cosmossdk.io/core/appmodule" "encoding/json" - "fmt" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/types/module" @@ -16,8 +15,8 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + abci "github.com/cometbft/cometbft/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" - abci "github.com/tendermint/tendermint/abci/types" ) var ( @@ -68,6 +67,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { } // ___________________________________________________________________________ +var _ appmodule.AppModule = AppModule{} // AppModule implements an application module for the ibc-hooks module. type AppModule struct { @@ -89,22 +89,20 @@ func (AppModule) Name() string { return types.ModuleName } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} + // RegisterInvariants registers the ibc-hooks module invariants. func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} -// Route returns the message routing key for the ibc-hooks module. -func (AppModule) Route() sdk.Route { return sdk.Route{} } - // QuerierRoute returns the module's querier route name. func (AppModule) QuerierRoute() string { - return "" -} - -// LegacyQuerierHandler returns the x/ibc-hooks module's sdk.Querier. -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return func(sdk.Context, []string, abci.RequestQuery) ([]byte, error) { - return nil, fmt.Errorf("legacy querier not supported for the x/%s module", types.ModuleName) - } + return types.RouteKey } // RegisterServices registers a gRPC query service to respond to the diff --git a/x/ibc-hooks/testutils/testing_hooks.go b/x/ibc-hooks/testutils/testing_hooks.go index a5cda30f5..05ff2f3f5 100644 --- a/x/ibc-hooks/testutils/testing_hooks.go +++ b/x/ibc-hooks/testutils/testing_hooks.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" // ibc-go - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" ibchooks "github.com/neutron-org/neutron/x/ibc-hooks" ) diff --git a/x/ibc-hooks/types/expected_keepers.go b/x/ibc-hooks/types/expected_keepers.go index 308853fc7..11d6072cf 100644 --- a/x/ibc-hooks/types/expected_keepers.go +++ b/x/ibc-hooks/types/expected_keepers.go @@ -3,6 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) type AccountKeeper interface { @@ -11,3 +12,8 @@ type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI SetAccount(ctx sdk.Context, acc authtypes.AccountI) } + +// ChannelKeeper defines the expected IBC channel keeper +type ChannelKeeper interface { + GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) +} diff --git a/x/ibc-hooks/types/keys.go b/x/ibc-hooks/types/keys.go index 9a3e7ded1..861b1d241 100644 --- a/x/ibc-hooks/types/keys.go +++ b/x/ibc-hooks/types/keys.go @@ -2,6 +2,7 @@ package types const ( ModuleName = "ibchooks" + RouteKey = ModuleName StoreKey = "hooks-for-ibc" // not using the module name because of collisions with key "ibc" IBCCallbackKey = "ibc_callback" SenderPrefix = "ibc-wasm-hook-intermediary" diff --git a/x/ibc-hooks/utils/utils.go b/x/ibc-hooks/utils/utils.go index aaaa81d0c..c092af4db 100644 --- a/x/ibc-hooks/utils/utils.go +++ b/x/ibc-hooks/utils/utils.go @@ -8,9 +8,9 @@ import ( "github.com/neutron-org/neutron/x/ibc-hooks/types" sdk "github.com/cosmos/cosmos-sdk/types" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" ) // NewEmitErrorAcknowledgement creates a new error acknowledgement after having emitted an event with the diff --git a/x/ibc-hooks/wasm_hook.go b/x/ibc-hooks/wasm_hook.go index a3a115bc9..8c7185408 100644 --- a/x/ibc-hooks/wasm_hook.go +++ b/x/ibc-hooks/wasm_hook.go @@ -10,9 +10,9 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" sdk "github.com/cosmos/cosmos-sdk/types" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" "github.com/neutron-org/neutron/x/ibc-hooks/types" ) @@ -23,11 +23,11 @@ type ContractAck struct { } type WasmHooks struct { - ContractKeeper *wasmkeeper.PermissionedKeeper + ContractKeeper *wasmkeeper.Keeper bech32PrefixAccAddr string } -func NewWasmHooks(contractKeeper *wasmkeeper.PermissionedKeeper, bech32PrefixAccAddr string) WasmHooks { +func NewWasmHooks(contractKeeper *wasmkeeper.Keeper, bech32PrefixAccAddr string) WasmHooks { return WasmHooks{ ContractKeeper: contractKeeper, bech32PrefixAccAddr: bech32PrefixAccAddr, diff --git a/x/interchainqueries/keeper/grpc_query.go b/x/interchainqueries/keeper/grpc_query.go index 6e93d1b9c..bef7174fb 100644 --- a/x/interchainqueries/keeper/grpc_query.go +++ b/x/interchainqueries/keeper/grpc_query.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" querytypes "github.com/cosmos/cosmos-sdk/types/query" - contypes "github.com/cosmos/ibc-go/v4/modules/core/03-connection/types" - tndtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + contypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" + tndtypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/gogo/protobuf/proto" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/x/interchainqueries/keeper/grpc_query_test.go b/x/interchainqueries/keeper/grpc_query_test.go index 96fa4da01..ee3eb7a5c 100644 --- a/x/interchainqueries/keeper/grpc_query_test.go +++ b/x/interchainqueries/keeper/grpc_query_test.go @@ -4,13 +4,14 @@ import ( "fmt" wasmKeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + host "github.com/cosmos/ibc-go/v7/modules/core/24-host" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" "github.com/neutron-org/neutron/x/interchainqueries/keeper" iqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" ) @@ -480,7 +481,7 @@ func (suite *KeeperTestSuite) TestQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -500,7 +501,7 @@ func (suite *KeeperTestSuite) TestQueryResult() { suite.Require().NoError(err) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -515,7 +516,7 @@ func (suite *KeeperTestSuite) TestQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here diff --git a/x/interchainqueries/keeper/keeper.go b/x/interchainqueries/keeper/keeper.go index 782590d07..13e59d7b5 100644 --- a/x/interchainqueries/keeper/keeper.go +++ b/x/interchainqueries/keeper/keeper.go @@ -4,16 +4,16 @@ import ( "fmt" "time" + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper" - tendermintLightClientTypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - "github.com/tendermint/tendermint/libs/log" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" + tendermintLightClientTypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/neutron-org/neutron/x/interchainqueries/types" ) diff --git a/x/interchainqueries/keeper/keeper_test.go b/x/interchainqueries/keeper/keeper_test.go index c23ec40d0..6edfcc4f9 100644 --- a/x/interchainqueries/keeper/keeper_test.go +++ b/x/interchainqueries/keeper/keeper_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "encoding/hex" "fmt" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,9 +13,9 @@ import ( "github.com/neutron-org/neutron/app/params" wasmKeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" - abci "github.com/tendermint/tendermint/abci/types" + abci "github.com/cometbft/cometbft/abci/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + host "github.com/cosmos/ibc-go/v7/modules/core/24-host" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" @@ -618,7 +619,7 @@ func (suite *KeeperTestSuite) TestRemoveInterchainQuery() { clientKey := host.FullClientStateKey(suite.Path.EndpointB.ClientID) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -632,7 +633,7 @@ func (suite *KeeperTestSuite) TestRemoveInterchainQuery() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, Block: nil, Height: 1, @@ -763,7 +764,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { // now we don't care what is really under the value, we just need to be sure that we can verify KV proofs clientKey := host.FullClientStateKey(suite.Path.EndpointB.ClientID) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -778,7 +779,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -796,7 +797,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -812,7 +813,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -827,7 +828,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here @@ -846,7 +847,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -862,7 +863,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -877,12 +878,12 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }, { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here @@ -915,7 +916,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -930,7 +931,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here @@ -949,7 +950,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -965,7 +966,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -980,7 +981,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: nil, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here @@ -1000,7 +1001,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1015,7 +1016,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: []byte("non-registered key"), Prove: true, @@ -1030,7 +1031,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -1049,7 +1050,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1065,7 +1066,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -1100,7 +1101,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1117,7 +1118,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { // now we don't care what is really under the value, we just need to be sure that we can verify KV proofs resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -1132,7 +1133,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here @@ -1151,7 +1152,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1167,7 +1168,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height, Data: clientKey, Prove: true, @@ -1182,7 +1183,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -1200,7 +1201,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1216,7 +1217,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.Path.EndpointA.UpdateClient()) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -1231,7 +1232,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: []byte("some evil data"), - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -1250,7 +1251,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1269,7 +1270,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.GetNeutronZoneApp(suite.ChainA).InterchainQueriesKeeper.UpdateLastRemoteHeight(ctx, res.Id, ibcclienttypes.NewHeight(suite.ChainA.LastHeader.GetHeight().GetRevisionNumber(), 9999))) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -1284,7 +1285,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -1303,7 +1304,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: clientKey}, + {Path: ibchost.StoreKey, Key: clientKey}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1325,7 +1326,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { suite.NoError(suite.GetNeutronZoneApp(suite.ChainA).InterchainQueriesKeeper.UpdateLastRemoteHeight(ctx, res.Id, ibcclienttypes.NewHeight(suite.ChainA.LastHeader.GetHeight().GetRevisionNumber()+1, 1))) resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: clientKey, Prove: true, @@ -1340,7 +1341,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, and we don't have access to it here Block: nil, @@ -1362,7 +1363,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ - {Path: host.StoreKey, Key: keyWithSpecialBytes}, + {Path: ibchost.StoreKey, Key: keyWithSpecialBytes}, }, QueryType: string(iqtypes.InterchainQueryTypeKV), UpdatePeriod: 1, @@ -1379,7 +1380,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { // now we don't care what is really under the value, we just need to be sure that we can verify KV proofs resp := suite.ChainB.App.Query(abci.RequestQuery{ - Path: fmt.Sprintf("store/%s/key", host.StoreKey), + Path: fmt.Sprintf("store/%s/key", ibchost.StoreKey), Height: suite.ChainB.LastHeader.Header.Height - 1, Data: keyWithSpecialBytes, Prove: true, @@ -1394,7 +1395,7 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { Key: resp.Key, Proof: resp.ProofOps, Value: resp.Value, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, // we don't have tests to test transactions proofs verification since it's a tendermint layer, // and we don't have access to it here diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 938690101..8e1bbe9fe 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -4,17 +4,18 @@ import ( "bytes" "context" "fmt" + tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "net/url" "strconv" "time" - ics23 "github.com/confio/ics23/go" "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - ibcconnectiontypes "github.com/cosmos/ibc-go/v4/modules/core/03-connection/types" - ibccommitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" + ibccommitmenttypes "github.com/cosmos/ibc-go/v7/modules/core/23-commitment/types" + ics23 "github.com/cosmos/ics23/go" "github.com/neutron-org/neutron/x/interchainqueries/types" ) @@ -192,12 +193,18 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit "error", err, "query", query, "message", msg) return nil, sdkerrors.Wrapf(ibcclienttypes.ErrConsensusStateNotFound, "failed to get consensus state: %v", err) } - - consensusState, err := ibcclienttypes.UnpackConsensusState(resp.ConsensusState) + consensusStateI, err := ibcclienttypes.UnpackConsensusState(resp.ConsensusState) if err != nil { ctx.Logger().Error("SubmitQueryResult: failed to UnpackConsensusState", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(types.ErrProtoUnmarshal, "failed to unpack consesus state: %v", err) + return nil, fmt.Errorf("failed marshal: %s, %w", consensusStateI.String(), err) + } + + consensusState, ok := consensusStateI.(*tendermint.ConsensusState) + if !ok { + ctx.Logger().Error("SubmitQueryResult: failed to cast exported.ConsensusState to *tendermint.ConsensusState", + "error", err, "query", query, "message", msg) + return nil, sdkerrors.Wrapf(sdkerrors.ErrUnpackAny, "failed to cast interface exported.ConsensusState to type *tendermint.ConsensusState") } clientState, err := k.GetClientState(ctx, msg.ClientId) diff --git a/x/interchainqueries/keeper/process_block_results.go b/x/interchainqueries/keeper/process_block_results.go index 9f65cc104..822f498b8 100644 --- a/x/interchainqueries/keeper/process_block_results.go +++ b/x/interchainqueries/keeper/process_block_results.go @@ -5,16 +5,16 @@ import ( "encoding/hex" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - clientkeeper "github.com/cosmos/ibc-go/v4/modules/core/02-client/keeper" + clientkeeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/crypto/merkle" + tmtypes "github.com/cometbft/cometbft/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" - tendermintLightClientTypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - abci "github.com/tendermint/tendermint/abci/types" - "github.com/tendermint/tendermint/crypto/merkle" - tmtypes "github.com/tendermint/tendermint/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + "github.com/cosmos/ibc-go/v7/modules/core/exported" + tendermintLightClientTypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/neutron-org/neutron/x/interchainqueries/types" ) @@ -60,7 +60,7 @@ type Verifier struct{} // VerifyHeaders verify that headers are valid tendermint headers, checks them on validity by trying call ibcClient.UpdateClient(header) // to update light client's consensus state and checks that they are sequential (tl;dr header.Height + 1 == nextHeader.Height) -func (v Verifier) VerifyHeaders(ctx sdk.Context, clientKeeper clientkeeper.Keeper, clientID string, header exported.Header, nextHeader exported.Header) error { +func (v Verifier) VerifyHeaders(ctx sdk.Context, clientKeeper clientkeeper.Keeper, clientID string, header exported.ClientMessage, nextHeader exported.ClientMessage) error { // this IBC handler updates the consensus state and the state root from a provided header. // But more importantly in the current situation, it checks that header is valid. // Honestly we need only to verify headers, but since the check functions are private, and we don't want to duplicate the code, @@ -90,8 +90,8 @@ func (v Verifier) VerifyHeaders(ctx sdk.Context, clientKeeper clientkeeper.Keepe return nil } -func (v Verifier) UnpackHeader(any *codectypes.Any) (exported.Header, error) { - return ibcclienttypes.UnpackHeader(any) +func (v Verifier) UnpackHeader(any *codectypes.Any) (exported.ClientMessage, error) { + return ibcclienttypes.UnpackClientMessage(any) } // ProcessBlock verifies headers and transaction in the block, and then passes the tx query result to diff --git a/x/interchainqueries/keeper/process_block_results_test.go b/x/interchainqueries/keeper/process_block_results_test.go index 666cd51d0..99a8dde41 100644 --- a/x/interchainqueries/keeper/process_block_results_test.go +++ b/x/interchainqueries/keeper/process_block_results_test.go @@ -5,27 +5,27 @@ import ( "testing" "time" - ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper" + ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" "github.com/golang/mock/gomock" icqtestkeeper "github.com/neutron-org/neutron/testutil/interchainqueries/keeper" mock_types "github.com/neutron-org/neutron/testutil/mocks/interchainqueries/types" "github.com/CosmWasm/wasmd/x/wasm/keeper" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/crypto/tmhash" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + tmprotoversion "github.com/cometbft/cometbft/proto/tendermint/version" + tmtypes "github.com/cometbft/cometbft/types" + tmversion "github.com/cometbft/cometbft/version" "github.com/cosmos/cosmos-sdk/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + "github.com/cosmos/ibc-go/v7/modules/core/exported" + ibctmtypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" + ibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" "github.com/stretchr/testify/require" - abci "github.com/tendermint/tendermint/abci/types" - "github.com/tendermint/tendermint/crypto/tmhash" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmprotoversion "github.com/tendermint/tendermint/proto/tendermint/version" - tmtypes "github.com/tendermint/tendermint/types" - tmversion "github.com/tendermint/tendermint/version" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - clientkeeper "github.com/cosmos/ibc-go/v4/modules/core/02-client/keeper" + clientkeeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper" "github.com/neutron-org/neutron/testutil" iqkeeper "github.com/neutron-org/neutron/x/interchainqueries/keeper" iqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" @@ -131,7 +131,7 @@ func CommitBlock(coord *ibctesting.Coordinator, chains ...*ibctesting.TestChain) // UpdateClient updates the IBC client associated with the endpoint. func UpdateClient(endpoint *ibctesting.Endpoint) (err error) { - var header exported.Header + var header exported.ClientMessage // ensure counterparty has committed state CommitBlock(endpoint.Chain.Coordinator, endpoint.Counterparty.Chain) @@ -161,17 +161,18 @@ func UpdateClient(endpoint *ibctesting.Endpoint) (err error) { func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { tests := []struct { - name string - run func() error - expectedError error + name string + run func() error + expectedErrorMsg string }{ { "valid headers", func() error { - suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) + //suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) + suite.Require().NoError(suite.Path.EndpointA.UpdateClient()) clientID := suite.Path.EndpointA.ClientID - + CommitBlock(suite.Coordinator, suite.ChainB) header, err := suite.Path.EndpointA.Chain.ConstructUpdateTMClientHeader(suite.Path.EndpointA.Counterparty.Chain, suite.Path.EndpointB.ClientID) suite.Require().NoError(err) @@ -181,7 +182,7 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { return iqkeeper.Verifier{}.VerifyHeaders(suite.ChainA.GetContext(), suite.GetNeutronZoneApp(suite.ChainA).IBCKeeper.ClientKeeper, clientID, header, nextHeader) }, - nil, + "", }, { "headers are not sequential", @@ -189,6 +190,7 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) clientID := suite.Path.EndpointA.ClientID + CommitBlock(suite.Coordinator, suite.ChainB) header, err := suite.Path.EndpointA.Chain.ConstructUpdateTMClientHeader(suite.Path.EndpointA.Counterparty.Chain, suite.Path.EndpointB.ClientID) suite.Require().NoError(err) @@ -202,7 +204,7 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { return iqkeeper.Verifier{}.VerifyHeaders(suite.ChainA.GetContext(), suite.GetNeutronZoneApp(suite.ChainA).IBCKeeper.ClientKeeper, clientID, header, nextHeader) }, - iqtypes.ErrInvalidHeader, + "block.NextBlockHeader is not next for the block.Header", }, { "header has some malicious field", @@ -210,6 +212,8 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) clientID := suite.Path.EndpointA.ClientID + CommitBlock(suite.Coordinator, suite.ChainB) + CommitBlock(suite.Coordinator, suite.ChainB) header, err := suite.Path.EndpointA.Chain.ConstructUpdateTMClientHeader(suite.Path.EndpointA.Counterparty.Chain, suite.Path.EndpointB.ClientID) suite.Require().NoError(err) @@ -223,7 +227,7 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { return iqkeeper.Verifier{}.VerifyHeaders(suite.ChainA.GetContext(), suite.GetNeutronZoneApp(suite.ChainA).IBCKeeper.ClientKeeper, clientID, header, nextHeader) }, - iqtypes.ErrInvalidHeader, + "invalid header: untrustedHeader.ValidateBasic failed: commit signs block", }, { "headers from the past (when client on chain A has the most recent consensus state and relayer try to submit old headers from chain B)", @@ -231,6 +235,7 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) clientID := suite.Path.EndpointA.ClientID + CommitBlock(suite.Coordinator, suite.ChainB) oldHeader := *suite.ChainB.LastHeader CommitBlock(suite.Coordinator, suite.ChainB) @@ -239,7 +244,6 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { for i := 0; i < 30; i++ { suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) } - headerWithTrustedHeight, err := suite.Path.EndpointA.Chain.ConstructUpdateTMClientHeaderWithTrustedHeight(suite.Path.EndpointA.Counterparty.Chain, suite.Path.EndpointB.ClientID, ibcclienttypes.Height{ RevisionNumber: 0, RevisionHeight: 29, @@ -254,7 +258,7 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { return iqkeeper.Verifier{}.VerifyHeaders(suite.ChainA.GetContext(), suite.GetNeutronZoneApp(suite.ChainA).IBCKeeper.ClientKeeper, clientID, &oldHeader, &oldNextHeader) }, - nil, + "", }, } @@ -277,8 +281,9 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { suite.Require().NoError(err) err = tt.run() - if tt.expectedError != nil { - suite.Require().ErrorIs(err, tt.expectedError) + if tt.expectedErrorMsg != "" { + //suite.Require().ErrorAs(err, tt.expectedError) + suite.Require().ErrorContains(err, tt.expectedErrorMsg) } else { suite.Require().NoError(err) } @@ -332,52 +337,52 @@ func TestSudoHasAddress(t *testing.T) { err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.ErrorContains(t, err, "failed to unpack block header") - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) hv.EXPECT().UnpackHeader(packedNextHeader).Return(nil, fmt.Errorf("failed to unpack packedHeader")) err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.ErrorContains(t, err, "failed to unpack next block header") - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) - hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.Header(&nextHeader), nil) - hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.Header(&header), exported.Header(&nextHeader)).Return(fmt.Errorf("failed to verify headers")) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) + hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.ClientMessage(&nextHeader), nil) + hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.ClientMessage(&header), exported.ClientMessage(&nextHeader)).Return(fmt.Errorf("failed to verify headers")) err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.ErrorContains(t, err, "failed to verify headers") - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) - hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.Header(&nextHeader), nil) - hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.Header(&header), exported.Header(&nextHeader)).Return(nil) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) + hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.ClientMessage(&nextHeader), nil) + hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.ClientMessage(&header), exported.ClientMessage(&nextHeader)).Return(nil) tv.EXPECT().VerifyTransaction(&header, &nextHeader, &tx).Return(fmt.Errorf("failed to verify transaction")) err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.ErrorContains(t, err, "failed to verifyTransaction") - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) - hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.Header(&nextHeader), nil) - hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.Header(&header), exported.Header(&nextHeader)).Return(nil) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) + hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.ClientMessage(&nextHeader), nil) + hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.ClientMessage(&header), exported.ClientMessage(&nextHeader)).Return(nil) tv.EXPECT().VerifyTransaction(&header, &nextHeader, &tx).Return(nil) cm.EXPECT().SudoTxQueryResult(ctx, address, uint64(1), ibcclienttypes.NewHeight(1, uint64(header.Header.Height)), tx.GetData()).Return(nil, fmt.Errorf("contract error")) err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.ErrorContains(t, err, "rejected transaction query result") // all error flows passed, time to success - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) - hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.Header(&nextHeader), nil) - hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.Header(&header), exported.Header(&nextHeader)).Return(nil) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) + hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.ClientMessage(&nextHeader), nil) + hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.ClientMessage(&header), exported.ClientMessage(&nextHeader)).Return(nil) tv.EXPECT().VerifyTransaction(&header, &nextHeader, &tx).Return(nil) cm.EXPECT().SudoTxQueryResult(ctx, address, uint64(1), ibcclienttypes.NewHeight(1, uint64(header.Header.Height)), tx.GetData()).Return(nil, nil) err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.NoError(t, err) // no functions calls after VerifyHeaders means we try to process tx second time - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) - hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.Header(&nextHeader), nil) - hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.Header(&header), exported.Header(&nextHeader)).Return(nil) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) + hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.ClientMessage(&nextHeader), nil) + hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.ClientMessage(&header), exported.ClientMessage(&nextHeader)).Return(nil) err = k.ProcessBlock(ctx, address, 1, "tendermint-07", &block) require.NoError(t, err) // same tx + another queryID - hv.EXPECT().UnpackHeader(packedHeader).Return(exported.Header(&header), nil) - hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.Header(&nextHeader), nil) - hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.Header(&header), exported.Header(&nextHeader)).Return(nil) + hv.EXPECT().UnpackHeader(packedHeader).Return(exported.ClientMessage(&header), nil) + hv.EXPECT().UnpackHeader(packedNextHeader).Return(exported.ClientMessage(&nextHeader), nil) + hv.EXPECT().VerifyHeaders(ctx, clientkeeper.Keeper{}, "tendermint-07", exported.ClientMessage(&header), exported.ClientMessage(&nextHeader)).Return(nil) tv.EXPECT().VerifyTransaction(&header, &nextHeader, &tx).Return(nil) cm.EXPECT().SudoTxQueryResult(ctx, address, uint64(2), ibcclienttypes.NewHeight(1, uint64(header.Header.Height)), tx.GetData()).Return(nil, nil) err = k.ProcessBlock(ctx, address, 2, "tendermint-07", &block) diff --git a/x/interchainqueries/module.go b/x/interchainqueries/module.go index 39d1d31da..6e3aed28d 100644 --- a/x/interchainqueries/module.go +++ b/x/interchainqueries/module.go @@ -2,9 +2,11 @@ package interchainqueries import ( "context" + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + 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" @@ -13,7 +15,6 @@ import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" "github.com/neutron-org/neutron/x/interchainqueries/client/cli" "github.com/neutron-org/neutron/x/interchainqueries/keeper" @@ -95,6 +96,8 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} + // AppModule implements the AppModule interface for the capability module. type AppModule struct { AppModuleBasic @@ -118,24 +121,22 @@ func NewAppModule( } } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} + // Name returns the capability module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the capability module's message routing key. -func (am AppModule) Route() sdk.Route { - return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) -} - // QuerierRoute returns the capability module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the capability module's Querier. -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) { diff --git a/x/interchainqueries/module_simulation.go b/x/interchainqueries/module_simulation.go index 5227d3ed7..55cef2305 100644 --- a/x/interchainqueries/module_simulation.go +++ b/x/interchainqueries/module_simulation.go @@ -1,10 +1,8 @@ package interchainqueries import ( - "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + "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" @@ -19,7 +17,7 @@ import ( var ( _ = sample.AccAddress _ = interchainqueriessimulation.FindAccount - _ = simappparams.StakePerAccount + _ = sims.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -41,11 +39,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP 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/interchainqueries/types/expected_keepers.go b/x/interchainqueries/types/expected_keepers.go index 0378303dc..d0cb0332f 100644 --- a/x/interchainqueries/types/expected_keepers.go +++ b/x/interchainqueries/types/expected_keepers.go @@ -3,8 +3,8 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) diff --git a/x/interchainqueries/types/genesis.pb.go b/x/interchainqueries/types/genesis.pb.go index fd404b253..4a20abcae 100644 --- a/x/interchainqueries/types/genesis.pb.go +++ b/x/interchainqueries/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchainqueries/genesis.proto +// source: neutron/interchainqueries/genesis.proto package types @@ -7,9 +7,9 @@ import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types1 "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + types "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" io "io" math "math" math_bits "math/bits" @@ -57,7 +57,7 @@ func (m *RegisteredQuery) Reset() { *m = RegisteredQuery{} } func (m *RegisteredQuery) String() string { return proto.CompactTextString(m) } func (*RegisteredQuery) ProtoMessage() {} func (*RegisteredQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_68e6c14f58b92f58, []int{0} + return fileDescriptor_ed312d37df0260a6, []int{0} } func (m *RegisteredQuery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -182,7 +182,7 @@ func (m *KVKey) Reset() { *m = KVKey{} } func (m *KVKey) String() string { return proto.CompactTextString(m) } func (*KVKey) ProtoMessage() {} func (*KVKey) Descriptor() ([]byte, []int) { - return fileDescriptor_68e6c14f58b92f58, []int{1} + return fileDescriptor_ed312d37df0260a6, []int{1} } func (m *KVKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,7 +235,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_68e6c14f58b92f58, []int{2} + return fileDescriptor_ed312d37df0260a6, []int{2} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -284,50 +284,52 @@ func init() { proto.RegisterType((*GenesisState)(nil), "neutron.interchainqueries.GenesisState") } -func init() { proto.RegisterFile("interchainqueries/genesis.proto", fileDescriptor_68e6c14f58b92f58) } +func init() { + proto.RegisterFile("neutron/interchainqueries/genesis.proto", fileDescriptor_ed312d37df0260a6) +} -var fileDescriptor_68e6c14f58b92f58 = []byte{ - // 632 bytes of a gzipped FileDescriptorProto +var fileDescriptor_ed312d37df0260a6 = []byte{ + // 636 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x8e, 0xd3, 0xb4, 0x25, 0x9b, 0xb4, 0xc0, 0xd2, 0x83, 0x5b, 0x09, 0x27, 0xa4, 0x42, 0x8a, - 0x90, 0x6a, 0x37, 0x85, 0x03, 0x37, 0x44, 0x91, 0xf8, 0x2b, 0x87, 0xe2, 0x56, 0x48, 0x70, 0xb1, - 0xfc, 0x33, 0x38, 0xab, 0x26, 0x5e, 0xb3, 0x3b, 0x2e, 0xf8, 0x2d, 0x78, 0x8e, 0x3e, 0x49, 0x8f, - 0x3d, 0x72, 0x02, 0xd4, 0x3e, 0x07, 0x12, 0xf2, 0xac, 0x43, 0x0b, 0x2d, 0x3d, 0x79, 0xfc, 0xcd, - 0x37, 0xdf, 0xee, 0xce, 0x7c, 0xc3, 0x7a, 0x22, 0x43, 0x50, 0xf1, 0x38, 0x14, 0xd9, 0xa7, 0x02, - 0x94, 0x00, 0xed, 0xa5, 0x90, 0x81, 0x16, 0xda, 0xcd, 0x95, 0x44, 0xc9, 0x57, 0x33, 0x28, 0x50, - 0xc9, 0xcc, 0xbd, 0x44, 0x5c, 0x5b, 0x49, 0x65, 0x2a, 0x89,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, 0x13, 0xaf, 0xd9, 0x1d, 0x17, 0xfc, 0x16, 0x3c, 0x47, 0x9f, 0xa4, 0xc7, + 0x1e, 0x39, 0x01, 0x6a, 0x9f, 0x03, 0x09, 0x79, 0xd6, 0xa1, 0x05, 0xda, 0x9e, 0x3c, 0xfe, 0xe6, + 0x9b, 0x6f, 0x77, 0x67, 0xbe, 0x61, 0xf7, 0x53, 0xc8, 0x51, 0xc9, 0xd4, 0x13, 0x29, 0x82, 0x8a, + 0xc6, 0xa1, 0x48, 0x3f, 0xe5, 0xa0, 0x04, 0x68, 0x2f, 0x81, 0x14, 0xb4, 0xd0, 0x6e, 0xa6, 0x24, + 0x4a, 0xbe, 0x5a, 0x11, 0xdd, 0xff, 0x88, 0x9d, 0x95, 0x44, 0x26, 0x92, 0x58, 0x5e, 0x19, 0x99, + 0x82, 0xce, 0xbd, 0xcb, 0x95, 0xb3, 0x50, 0x85, 0xd3, 0x4a, 0xb8, 0xe3, 0x44, 0x52, 0x4f, 0xa5, + 0xf6, 0x46, 0xa1, 0x06, 0xef, 0x60, 0x38, 0x02, 0x0c, 0x87, 0x5e, 0x24, 0x45, 0x5a, 0xe5, 0xbb, + 0x62, 0x14, 0x79, 0x91, 0x54, 0xe0, 0x45, 0x13, 0x01, 0x29, 0x7a, 0x07, 0xc3, 0x2a, 0x32, 0x84, + 0xfe, 0xaf, 0x06, 0xbb, 0xee, 0x43, 0x22, 0x34, 0x82, 0x82, 0xf8, 0x6d, 0x0e, 0xaa, 0xe0, 0xcb, + 0xac, 0x2e, 0x62, 0xdb, 0xea, 0x59, 0x83, 0x86, 0x5f, 0x17, 0x31, 0x5f, 0x61, 0xf3, 0xf2, 0x73, + 0x0a, 0xca, 0xae, 0xf7, 0xac, 0x41, 0xd3, 0x37, 0x3f, 0xfc, 0x36, 0x63, 0xe5, 0x95, 0x8a, 0x00, + 0x8b, 0x0c, 0xec, 0x39, 0x4a, 0x35, 0x09, 0xd9, 0x2b, 0x32, 0xe0, 0x8f, 0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xcf, 0x4d, 0xa0, 0x3a, 0x62, 0x5d, 0xaa, + 0x64, 0x16, 0x7b, 0x5f, 0x2e, 0xd8, 0x7b, 0x9a, 0xcb, 0x68, 0x81, 0xd6, 0xf6, 0xe1, 0xef, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x56, 0x73, 0xa5, 0xa5, 0x7b, 0x04, 0x00, 0x00, } func (m *RegisteredQuery) Marshal() (dAtA []byte, err error) { diff --git a/x/interchainqueries/types/params.pb.go b/x/interchainqueries/types/params.pb.go index 07060f9b2..7236536fd 100644 --- a/x/interchainqueries/types/params.pb.go +++ b/x/interchainqueries/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchainqueries/params.proto +// source: neutron/interchainqueries/params.proto package types @@ -7,8 +7,8 @@ import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -41,7 +41,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_1421c1e223ed164f, []int{0} + return fileDescriptor_752a5f3346da64b1, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -95,31 +95,33 @@ func init() { proto.RegisterType((*Params)(nil), "neutron.interchainqueries.Params") } -func init() { proto.RegisterFile("interchainqueries/params.proto", fileDescriptor_1421c1e223ed164f) } +func init() { + proto.RegisterFile("neutron/interchainqueries/params.proto", fileDescriptor_752a5f3346da64b1) +} -var fileDescriptor_1421c1e223ed164f = []byte{ - // 322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02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- 0x95, 0x94, 0x5e, 0x81, 0xc8, 0x26, 0xc3, 0xf5, 0x67, 0xd7, 0x79, 0xff, 0xea, 0xf6, 0x53, 0x81, - 0xb3, 0x22, 0xa6, 0x09, 0x48, 0x56, 0x35, 0xb4, 0x9f, 0x81, 0x9e, 0x3e, 0x31, 0x5c, 0xe5, 0x5c, - 0x9b, 0x80, 0x0e, 0x8e, 0x8c, 0xe1, 0xda, 0x0a, 0xfc, 0xb1, 0x77, 0x8a, 0xcb, 0xd0, 0x4a, 0x15, - 0x97, 0xb0, 0x88, 0xe6, 0xe1, 0x5c, 0x48, 0x81, 0xad, 0x9a, 0x69, 0x79, 0x82, 0xcb, 0xbb, 0x12, - 0x06, 0x96, 0xdd, 0x94, 0xe8, 0xb2, 0xfe, 0xfa, 0xd6, 0x75, 0x26, 0xc1, 0x7a, 0x4b, 0xdc, 0xcd, - 0x96, 0xb8, 0xdf, 0x5b, 0xe2, 0xbe, 0xec, 0x88, 0xb3, 0xd9, 0x11, 0xe7, 0x63, 0x47, 0x9c, 0xc7, - 0x8b, 0x7f, 0x65, 0xaa, 0xfb, 0x0e, 0x40, 0xa5, 0x7f, 0x33, 0x5b, 0xb2, 0xfd, 0x57, 0x31, 0x15, - 0xe3, 0x86, 0x39, 0xe2, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x70, 0x42, 0xb7, 0x7c, 0xb7, 0x01, - 0x00, 0x00, +var fileDescriptor_752a5f3346da64b1 = []byte{ + // 328 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xb1, 0x4f, 0xfa, 0x40, + 0x14, 0xc7, 0xdb, 0x1f, 0x84, 0xa1, 0x3f, 0x5d, 0x2a, 0x31, 0xc0, 0x70, 0x10, 0x07, 0xc3, 0xc2, + 0x1d, 0xc8, 0x62, 0x1c, 0xd1, 0xd1, 0x41, 0xab, 0x93, 0x4b, 0xd3, 0x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86, 0xab, 0x9c, 0x6b, 0x13, 0xd0, 0xc1, 0x9e, 0x31, 0x5c, 0x58, 0x81, 0x3f, 0xf6, + 0x0e, 0x71, 0x19, 0x5a, 0xa9, 0xe2, 0x12, 0x16, 0xd1, 0x3c, 0x9c, 0x0b, 0x29, 0xb0, 0x55, 0x33, + 0x2d, 0x0f, 0x70, 0x79, 0x5d, 0xc2, 0xc0, 0xb2, 0xcb, 0x12, 0x9d, 0xd5, 0x9f, 0x9e, 0xbb, 0xce, + 0x24, 0x58, 0x6f, 0x89, 0xbb, 0xd9, 0x12, 0xf7, 0x63, 0x4b, 0xdc, 0xc7, 0x1d, 0x71, 0x36, 0x3b, + 0xe2, 0xbc, 0xee, 0x88, 0x73, 0x77, 0xfa, 0xa3, 0x4c, 0x75, 0xdf, 0x01, 0xa8, 0xf4, 0x7b, 0x66, + 0xcb, 0x3f, 0x5e, 0xc5, 0x54, 0x8c, 0x1b, 0xe6, 0x88, 0xe3, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xeb, 0xcd, 0x47, 0x31, 0xbf, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/interchainqueries/types/query.pb.go b/x/interchainqueries/types/query.pb.go index 79143d3f2..39aca701b 100644 --- a/x/interchainqueries/types/query.pb.go +++ b/x/interchainqueries/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchainqueries/query.proto +// source: neutron/interchainqueries/query.proto package types @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_eb803bedd4e52c75, []int{0} + return fileDescriptor_2254be23ba3ff3b4, []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_eb803bedd4e52c75, []int{1} + return fileDescriptor_2254be23ba3ff3b4, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -123,7 +123,7 @@ func (m *QueryRegisteredQueriesRequest) Reset() { *m = QueryRegisteredQu func (m *QueryRegisteredQueriesRequest) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredQueriesRequest) ProtoMessage() {} func (*QueryRegisteredQueriesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{2} + return fileDescriptor_2254be23ba3ff3b4, []int{2} } func (m *QueryRegisteredQueriesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -183,7 +183,7 @@ func (m *QueryRegisteredQueriesResponse) Reset() { *m = QueryRegisteredQ func (m *QueryRegisteredQueriesResponse) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredQueriesResponse) ProtoMessage() {} func (*QueryRegisteredQueriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{3} + return fileDescriptor_2254be23ba3ff3b4, []int{3} } func (m *QueryRegisteredQueriesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,7 +234,7 @@ func (m *QueryRegisteredQueryRequest) Reset() { *m = QueryRegisteredQuer func (m *QueryRegisteredQueryRequest) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredQueryRequest) ProtoMessage() {} func (*QueryRegisteredQueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{4} + return fileDescriptor_2254be23ba3ff3b4, []int{4} } func (m *QueryRegisteredQueryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -278,7 +278,7 @@ func (m *QueryRegisteredQueryResponse) Reset() { *m = QueryRegisteredQue func (m *QueryRegisteredQueryResponse) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredQueryResponse) ProtoMessage() {} func (*QueryRegisteredQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{5} + return fileDescriptor_2254be23ba3ff3b4, []int{5} } func (m *QueryRegisteredQueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -322,7 +322,7 @@ func (m *QueryRegisteredQueryResultRequest) Reset() { *m = QueryRegister func (m *QueryRegisteredQueryResultRequest) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredQueryResultRequest) ProtoMessage() {} func (*QueryRegisteredQueryResultRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{6} + return fileDescriptor_2254be23ba3ff3b4, []int{6} } func (m *QueryRegisteredQueryResultRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -366,7 +366,7 @@ func (m *QueryRegisteredQueryResultResponse) Reset() { *m = QueryRegiste func (m *QueryRegisteredQueryResultResponse) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredQueryResultResponse) ProtoMessage() {} func (*QueryRegisteredQueryResultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{7} + return fileDescriptor_2254be23ba3ff3b4, []int{7} } func (m *QueryRegisteredQueryResultResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -412,7 +412,7 @@ func (m *Transaction) Reset() { *m = Transaction{} } func (m *Transaction) String() string { return proto.CompactTextString(m) } func (*Transaction) ProtoMessage() {} func (*Transaction) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{8} + return fileDescriptor_2254be23ba3ff3b4, []int{8} } func (m *Transaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -470,7 +470,7 @@ func (m *QueryLastRemoteHeight) Reset() { *m = QueryLastRemoteHeight{} } func (m *QueryLastRemoteHeight) String() string { return proto.CompactTextString(m) } func (*QueryLastRemoteHeight) ProtoMessage() {} func (*QueryLastRemoteHeight) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{9} + return fileDescriptor_2254be23ba3ff3b4, []int{9} } func (m *QueryLastRemoteHeight) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -514,7 +514,7 @@ func (m *QueryLastRemoteHeightResponse) Reset() { *m = QueryLastRemoteHe func (m *QueryLastRemoteHeightResponse) String() string { return proto.CompactTextString(m) } func (*QueryLastRemoteHeightResponse) ProtoMessage() {} func (*QueryLastRemoteHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eb803bedd4e52c75, []int{10} + return fileDescriptor_2254be23ba3ff3b4, []int{10} } func (m *QueryLastRemoteHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -564,58 +564,59 @@ func init() { proto.RegisterType((*QueryLastRemoteHeightResponse)(nil), "neutron.interchainqueries.QueryLastRemoteHeightResponse") } -func init() { proto.RegisterFile("interchainqueries/query.proto", fileDescriptor_eb803bedd4e52c75) } - -var fileDescriptor_eb803bedd4e52c75 = []byte{ - // 753 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4f, 0x4f, 0x13, 0x4f, - 0x18, 0xee, 0x94, 0xfe, 0xca, 0x8f, 0xb7, 0x28, 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ea, 0x86, 0xcf, 0xc2, 0xff, 0x22, 0x51, 0xe8, 0x69, 0x78, 0xab, 0x09, - 0x7b, 0x54, 0xac, 0x0f, 0x8a, 0x46, 0x15, 0xe6, 0xba, 0x23, 0x95, 0x07, 0x2f, 0x61, 0xb2, 0xc3, - 0x83, 0x9a, 0x6a, 0x8c, 0x21, 0x1c, 0xb0, 0x27, 0xda, 0xb5, 0xd7, 0x8c, 0x3d, 0x58, 0xea, 0x51, - 0xb6, 0x7a, 0xcc, 0xaf, 0x40, 0xbb, 0x08, 0x46, 0x3f, 0xbc, 0x22, 0xbf, 0x07, 0x49, 0x5f, 0xec, - 0x28, 0xca, 0x2b, 0x7d, 0x28, 0xb7, 0xe2, 0x15, 0xca, 0x38, 0x80, 0xd4, 0x0b, 0x9f, 0x78, 0x01, - 0x11, 0xcd, 0x87, 0x6f, 0x42, 0xbc, 0xc1, 0x24, 0xee, 0x16, 0xc3, 0x3e, 0x2e, 0x51, 0xd7, 0x29, - 0x71, 0x71, 0x75, 0x09, 0x5b, 0xad, 0x30, 0x86, 0x44, 0x91, 0x70, 0x22, 0x9a, 0x73, 0xdc, 0x16, - 0xdf, 0xc6, 0x2e, 0xdc, 0x16, 0x15, 0x9e, 0x93, 0x80, 0xdb, 0xb4, 0xcc, 0x38, 0x7d, 0x26, 0x83, - 0x23, 0x4d, 0x8f, 0xa2, 0x4d, 0x6f, 0xec, 0xa8, 0x91, 0xea, 0x44, 0x37, 0x94, 0x36, 0xa9, 0xa0, - 0x56, 0x2a, 0x5b, 0xef, 0x47, 0xe1, 0x3f, 0x81, 0xc4, 0x1f, 0x11, 0x24, 0xe5, 0xbc, 0xe2, 0xcc, - 0x20, 0x1b, 0xda, 0x1e, 0x0a, 0xcd, 0xbc, 0x6a, 0xb8, 0xe4, 0x62, 0xac, 0xbd, 0xfb, 0xf9, 0xf7, - 0x53, 0x7c, 0x19, 0x2f, 0x59, 0x0a, 0x67, 0xf5, 0x7a, 0xdc, 0xf0, 0x77, 0x04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init() { + proto.RegisterFile("neutron/interchainqueries/query.proto", fileDescriptor_2254be23ba3ff3b4) +} + +var fileDescriptor_2254be23ba3ff3b4 = []byte{ + // 752 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0xcf, 0x4f, 0x13, 0x41, + 0x14, 0xc7, 0x3b, 0xa5, 0x16, 0x79, 0x45, 0x81, 0x11, 0x0d, 0x54, 0xac, 0xb0, 0x44, 0x28, 0x98, + 0xee, 0xf2, 0x23, 0x4a, 0x4d, 0x10, 0x13, 0x0e, 0x2a, 0x89, 0x07, 0xd8, 0xa8, 0x07, 0x2f, 0xcd, + 0xb4, 0x9d, 0x6c, 0x37, 0xa1, 0x33, 0x65, 0x77, 0xaa, 0xec, 0xd5, 0x9b, 0x37, 0xa3, 0xff, 0x82, + 0x7f, 0x80, 0x37, 0x0f, 0x1e, 0xbc, 0x12, 0x4f, 0x24, 0x5e, 0x3c, 0x19, 0x03, 0xfe, 0x21, 0x66, + 0x67, 0xa6, 0xbf, 0x7f, 0x51, 0x4e, 0xed, 0xee, 0xbe, 0xef, 0xbc, 0xcf, 0xfb, 0xbe, 0xf7, 0x76, + 0xe1, 0x1e, 0xa3, 0x55, 0xe1, 0x71, 0x66, 0xb9, 0x4c, 0x50, 0xaf, 0x50, 0x22, 0x2e, 0x3b, 0xaa, + 0x52, 0xcf, 0xa5, 0xbe, 0x15, 0xfe, 0x06, 0x66, 0xc5, 0xe3, 0x82, 0xe3, 0x59, 0x1d, 0x66, 0x76, + 0x84, 0x25, 0xa7, 0x1d, 0xee, 0x70, 0x19, 0x65, 0x85, 0xff, 0x94, 0x20, 0x39, 0xe7, 0x70, 0xee, + 0x1c, 0x52, 0x8b, 0x54, 0x5c, 0x8b, 0x30, 0xc6, 0x05, 0x11, 0x2e, 0x67, 0xbe, 0x7e, 0xba, 0x5a, + 0xe0, 0x7e, 0x99, 0xfb, 0x56, 0x9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, 0x94, 0xaa, 0x79, 0xb3, 0xc0, 0xcb, 0xb5, + 0xd3, 0x32, 0xdc, 0x73, 0xea, 0x27, 0x1f, 0x77, 0xfb, 0xba, 0x07, 0x15, 0xea, 0xe7, 0xe3, 0xf2, + 0x0b, 0xbf, 0xf9, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x14, 0x88, 0x83, 0x3c, 0xfa, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -841,7 +842,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "interchainqueries/query.proto", + Metadata: "neutron/interchainqueries/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/interchainqueries/types/query.pb.gw.go b/x/interchainqueries/types/query.pb.gw.go index 975e2a127..8cbfcdc6f 100644 --- a/x/interchainqueries/types/query.pb.gw.go +++ b/x/interchainqueries/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: interchainqueries/query.proto +// source: neutron/interchainqueries/query.proto /* Package types is a reverse proxy. @@ -461,15 +461,15 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RegisteredQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "registered_queries"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RegisteredQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "registered_queries"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RegisteredQuery_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "registered_query"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RegisteredQuery_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "registered_query"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "query_result"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_QueryResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "query_result"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LastRemoteHeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "remote_height"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LastRemoteHeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchainqueries", "remote_height"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/interchainqueries/types/tx.go b/x/interchainqueries/types/tx.go index 1051ee649..715c82879 100644 --- a/x/interchainqueries/types/tx.go +++ b/x/interchainqueries/types/tx.go @@ -1,12 +1,12 @@ package types import ( + "github.com/cosmos/ibc-go/v7/modules/core/exported" "strings" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/ibc-go/v4/modules/core/exported" ) const ( @@ -123,7 +123,7 @@ func (msg MsgRegisterInterchainQuery) GetSigners() []sdk.AccAddress { // UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces func (msg MsgSubmitQueryResult) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { - var header exported.Header + var header exported.ClientMessage if err := unpacker.UnpackAny(msg.Result.GetBlock().GetHeader(), &header); err != nil { return err } diff --git a/x/interchainqueries/types/tx.pb.go b/x/interchainqueries/types/tx.pb.go index 444bf8976..e3cd4d3bd 100644 --- a/x/interchainqueries/types/tx.pb.go +++ b/x/interchainqueries/types/tx.pb.go @@ -1,16 +1,16 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchainqueries/tx.proto +// source: neutron/interchainqueries/tx.proto package types import ( context "context" fmt "fmt" + types1 "github.com/cometbft/cometbft/abci/types" + crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" types "github.com/cosmos/cosmos-sdk/codec/types" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - types1 "github.com/tendermint/tendermint/abci/types" - crypto "github.com/tendermint/tendermint/proto/tendermint/crypto" + 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" @@ -50,7 +50,7 @@ func (m *MsgRegisterInterchainQuery) Reset() { *m = MsgRegisterInterchai func (m *MsgRegisterInterchainQuery) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainQuery) ProtoMessage() {} func (*MsgRegisterInterchainQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{0} + return fileDescriptor_d4793837a316491e, []int{0} } func (m *MsgRegisterInterchainQuery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ func (m *MsgRegisterInterchainQueryResponse) Reset() { *m = MsgRegisterI func (m *MsgRegisterInterchainQueryResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainQueryResponse) ProtoMessage() {} func (*MsgRegisterInterchainQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{1} + return fileDescriptor_d4793837a316491e, []int{1} } func (m *MsgRegisterInterchainQueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -178,7 +178,7 @@ func (m *MsgSubmitQueryResult) Reset() { *m = MsgSubmitQueryResult{} } func (m *MsgSubmitQueryResult) String() string { return proto.CompactTextString(m) } func (*MsgSubmitQueryResult) ProtoMessage() {} func (*MsgSubmitQueryResult) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{2} + return fileDescriptor_d4793837a316491e, []int{2} } func (m *MsgSubmitQueryResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -247,7 +247,7 @@ func (m *QueryResult) Reset() { *m = QueryResult{} } func (m *QueryResult) String() string { return proto.CompactTextString(m) } func (*QueryResult) ProtoMessage() {} func (*QueryResult) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{3} + return fileDescriptor_d4793837a316491e, []int{3} } func (m *QueryResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,7 +327,7 @@ func (m *StorageValue) Reset() { *m = StorageValue{} } func (m *StorageValue) String() string { return proto.CompactTextString(m) } func (*StorageValue) ProtoMessage() {} func (*StorageValue) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{4} + return fileDescriptor_d4793837a316491e, []int{4} } func (m *StorageValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -398,7 +398,7 @@ func (m *Block) Reset() { *m = Block{} } func (m *Block) String() string { return proto.CompactTextString(m) } func (*Block) ProtoMessage() {} func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{5} + return fileDescriptor_d4793837a316491e, []int{5} } func (m *Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -464,7 +464,7 @@ func (m *TxValue) Reset() { *m = TxValue{} } func (m *TxValue) String() string { return proto.CompactTextString(m) } func (*TxValue) ProtoMessage() {} func (*TxValue) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{6} + return fileDescriptor_d4793837a316491e, []int{6} } func (m *TxValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,7 +528,7 @@ func (m *MsgSubmitQueryResultResponse) Reset() { *m = MsgSubmitQueryResu func (m *MsgSubmitQueryResultResponse) String() string { return proto.CompactTextString(m) } func (*MsgSubmitQueryResultResponse) ProtoMessage() {} func (*MsgSubmitQueryResultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{7} + return fileDescriptor_d4793837a316491e, []int{7} } func (m *MsgSubmitQueryResultResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -566,7 +566,7 @@ func (m *MsgRemoveInterchainQueryRequest) Reset() { *m = MsgRemoveInterc func (m *MsgRemoveInterchainQueryRequest) String() string { return proto.CompactTextString(m) } func (*MsgRemoveInterchainQueryRequest) ProtoMessage() {} func (*MsgRemoveInterchainQueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{8} + return fileDescriptor_d4793837a316491e, []int{8} } func (m *MsgRemoveInterchainQueryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -616,7 +616,7 @@ func (m *MsgRemoveInterchainQueryResponse) Reset() { *m = MsgRemoveInter func (m *MsgRemoveInterchainQueryResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveInterchainQueryResponse) ProtoMessage() {} func (*MsgRemoveInterchainQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{9} + return fileDescriptor_d4793837a316491e, []int{9} } func (m *MsgRemoveInterchainQueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -657,7 +657,7 @@ func (m *MsgUpdateInterchainQueryRequest) Reset() { *m = MsgUpdateInterc func (m *MsgUpdateInterchainQueryRequest) String() string { return proto.CompactTextString(m) } func (*MsgUpdateInterchainQueryRequest) ProtoMessage() {} func (*MsgUpdateInterchainQueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{10} + return fileDescriptor_d4793837a316491e, []int{10} } func (m *MsgUpdateInterchainQueryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -728,7 +728,7 @@ func (m *MsgUpdateInterchainQueryResponse) Reset() { *m = MsgUpdateInter func (m *MsgUpdateInterchainQueryResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateInterchainQueryResponse) ProtoMessage() {} func (*MsgUpdateInterchainQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3f1f36ccf3a8e51d, []int{11} + return fileDescriptor_d4793837a316491e, []int{11} } func (m *MsgUpdateInterchainQueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -772,71 +772,73 @@ func init() { proto.RegisterType((*MsgUpdateInterchainQueryResponse)(nil), "neutron.interchainqueries.MsgUpdateInterchainQueryResponse") } -func init() { proto.RegisterFile("interchainqueries/tx.proto", fileDescriptor_3f1f36ccf3a8e51d) } +func init() { + proto.RegisterFile("neutron/interchainqueries/tx.proto", fileDescriptor_d4793837a316491e) +} -var fileDescriptor_3f1f36ccf3a8e51d = []byte{ - // 973 bytes of a gzipped FileDescriptorProto +var fileDescriptor_d4793837a316491e = []byte{ + // 975 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x8f, 0x1c, 0x3b, 0x7f, 0x5e, 0x9c, 0xa4, 0x5d, 0x52, 0xea, 0x38, 0xd4, 0xcd, 0x88, 0x01, - 0x32, 0x4c, 0x91, 0x86, 0x50, 0x0a, 0x43, 0x87, 0x42, 0x0b, 0xd3, 0x21, 0x93, 0xc9, 0x10, 0xb6,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x3f, 0x57, 0xa0, 0x79, 0x24, 0x02, 0x8a, 0x01, 0x13, - 0x12, 0x93, 0x83, 0x31, 0xfc, 0x87, 0x14, 0x93, 0x8c, 0xdc, 0x03, 0xc8, 0xfd, 0x32, 0x27, 0x7f, - 0xaf, 0x61, 0xec, 0x1a, 0x7b, 0xab, 0x74, 0x55, 0x69, 0xda, 0x59, 0x8c, 0xe4, 0x21, 0x54, 0x7b, - 0x98, 0x89, 0x46, 0x65, 0x77, 0x71, 0x6f, 0x6d, 0x7f, 0xd7, 0x9a, 0x59, 0x9f, 0x75, 0xf8, 0xea, - 0x10, 0x33, 0xaa, 0xd0, 0xc4, 0x86, 0xb7, 0x64, 0xe2, 0x72, 0xe1, 0x7a, 0x92, 0x45, 0x5c, 0x38, - 0x27, 0x2c, 0x94, 0x98, 0x34, 0x16, 0x55, 0x74, 0x52, 0x36, 0x3d, 0x57, 0x16, 0xf2, 0x2e, 0xac, - 0x7b, 0x11, 0xe7, 0xa8, 0x94, 0x0e, 0xf3, 0x1b, 0x55, 0x05, 0xad, 0x5f, 0x2a, 0x0f, 0xfc, 0x1c, - 0x94, 0xc6, 0xbe, 0x2b, 0xd1, 0x89, 0x31, 0x61, 0x91, 0xdf, 0xa8, 0xed, 0x1a, 0x7b, 0x55, 0x5a, - 0xd7, 0xca, 0x63, 0xa5, 0x23, 0x6f, 0xc3, 0x92, 0x50, 0x9d, 0x6c, 0x2c, 0xa9, 0x10, 0x85, 0x64, - 0x3e, 0x04, 0x73, 0x76, 0x17, 0x28, 0x8a, 0x38, 0xe2, 0x02, 0xc9, 0x06, 0x54, 0x98, 0xaf, 0xba, - 0x50, 0xa5, 0x15, 0xe6, 0x9b, 0xbf, 0x1a, 0xb0, 0x75, 0x24, 0x82, 0x17, 0x69, 0xe7, 0x94, 0xc9, - 0x11, 0x34, 0x0d, 0x25, 0xd9, 0x86, 0x15, 0xdd, 0xb6, 0x31, 0x7c, 0x59, 0xc9, 0x07, 0xe5, 0x0c, - 0x2a,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, 0x49, 0xbb, 0x96, 0x17, 0x9d, 0xda, 0xc5, 0x03, 0x1f, 0x45, + 0x49, 0x30, 0xfa, 0x6d, 0x0f, 0xa7, 0xfd, 0xc7, 0xcb, 0xff, 0x8f, 0x75, 0x17, 0x14, 0xed, 0x7e, + 0xf2, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xab, 0xbc, 0xc1, 0x0d, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1024,7 +1026,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "interchainqueries/tx.proto", + Metadata: "neutron/interchainqueries/tx.proto", } func (m *MsgRegisterInterchainQuery) Marshal() (dAtA []byte, err error) { diff --git a/x/interchainqueries/types/tx_test.go b/x/interchainqueries/types/tx_test.go index cfd6cf797..eea4e096d 100644 --- a/x/interchainqueries/types/tx_test.go +++ b/x/interchainqueries/types/tx_test.go @@ -5,12 +5,12 @@ import ( "strconv" "testing" + "github.com/cometbft/cometbft/proto/tendermint/crypto" sdktypes "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/proto/tendermint/crypto" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" iqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" ) @@ -241,7 +241,7 @@ func TestMsgSubmitQueryResultValidate(t *testing.T) { }, }}, Value: []byte{10}, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, Block: nil, Height: 100, @@ -298,7 +298,7 @@ func TestMsgSubmitQueryResultValidate(t *testing.T) { }, }}, Value: []byte{10}, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, Block: nil, Height: 100, @@ -326,7 +326,7 @@ func TestMsgSubmitQueryResultValidate(t *testing.T) { }, }}, Value: []byte{10}, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, Block: nil, Height: 100, @@ -354,7 +354,7 @@ func TestMsgSubmitQueryResultValidate(t *testing.T) { }, }}, Value: []byte{10}, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, Block: nil, Height: 100, @@ -663,7 +663,7 @@ func TestMsgSubmitQueryResultGetSigners(t *testing.T) { }, }}, Value: []byte{10}, - StoragePrefix: host.StoreKey, + StoragePrefix: ibchost.StoreKey, }}, Block: nil, Height: 100, diff --git a/x/interchainqueries/types/verify.go b/x/interchainqueries/types/verify.go index e9b22a9a3..759a2842d 100644 --- a/x/interchainqueries/types/verify.go +++ b/x/interchainqueries/types/verify.go @@ -3,14 +3,14 @@ package types import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" - clientkeeper "github.com/cosmos/ibc-go/v4/modules/core/02-client/keeper" - "github.com/cosmos/ibc-go/v4/modules/core/exported" - tendermintLightClientTypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + clientkeeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper" + "github.com/cosmos/ibc-go/v7/modules/core/exported" + tendermintLightClientTypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" ) type HeaderVerifier interface { - VerifyHeaders(ctx sdk.Context, cleintkeeper clientkeeper.Keeper, clientID string, header exported.Header, nextHeader exported.Header) error - UnpackHeader(any *codectypes.Any) (exported.Header, error) + VerifyHeaders(ctx sdk.Context, cleintkeeper clientkeeper.Keeper, clientID string, header exported.ClientMessage, nextHeader exported.ClientMessage) error + UnpackHeader(any *codectypes.Any) (exported.ClientMessage, error) } type TransactionVerifier interface { diff --git a/x/interchaintxs/genesis_test.go b/x/interchaintxs/genesis_test.go index ac0503ed3..2bdd38d7b 100644 --- a/x/interchaintxs/genesis_test.go +++ b/x/interchaintxs/genesis_test.go @@ -16,7 +16,7 @@ func TestGenesis(t *testing.T) { Params: types.DefaultParams(), } - k, ctx := keepertest.InterchainTxsKeeper(t, nil, nil, nil, nil, nil) + k, ctx := keepertest.InterchainTxsKeeper(t, nil, nil, nil, nil) interchaintxs.InitGenesis(ctx, *k, genesisState) got := interchaintxs.ExportGenesis(ctx, *k) require.NotNil(t, got) diff --git a/x/interchaintxs/ibc_module.go b/x/interchaintxs/ibc_module.go index 4bb39efc5..9e7bec32c 100644 --- a/x/interchaintxs/ibc_module.go +++ b/x/interchaintxs/ibc_module.go @@ -5,10 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" "github.com/neutron-org/neutron/x/interchaintxs/keeper" ) @@ -32,14 +31,14 @@ func (im IBCModule) OnChanOpenInit( ctx sdk.Context, _ channeltypes.Order, _ []string, - portID string, - channelID string, - chanCap *capabilitytypes.Capability, + _ string, + _ string, + _ *capabilitytypes.Capability, _ channeltypes.Counterparty, version string, ) (string, error) { // FIXME: always returning plain version is probably a bad idea! - return version, im.keeper.ClaimCapability(ctx, chanCap, host.ChannelCapabilityPath(portID, channelID)) + return version, nil } // OnChanOpenTry implements the IBCModule interface. We don't need to implement this handler. diff --git a/x/interchaintxs/keeper/grpc_query_interchainaccount.go b/x/interchaintxs/keeper/grpc_query_interchainaccount.go index 3c2c411a8..c9136d325 100644 --- a/x/interchaintxs/keeper/grpc_query_interchainaccount.go +++ b/x/interchaintxs/keeper/grpc_query_interchainaccount.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" "github.com/neutron-org/neutron/x/interchaintxs/types" ) diff --git a/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go b/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go index 9b141d7b2..a277189e5 100644 --- a/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go +++ b/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - types2 "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" + types2 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" @@ -20,7 +20,7 @@ func TestKeeper_InterchainAccountAddress(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) - keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, icaKeeper, nil, nil) + keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, icaKeeper, nil) wctx := sdk.WrapSDKContext(ctx) resp, err := keeper.InterchainAccountAddress(wctx, nil) @@ -35,7 +35,7 @@ func TestKeeper_InterchainAccountAddress(t *testing.T) { require.ErrorContains(t, err, "failed to create ica owner") require.Nil(t, resp) - portID := fmt.Sprintf("%s%s.%s", types2.PortPrefix, testutil.TestOwnerAddress, "test1") + portID := fmt.Sprintf("%s%s.%s", types2.ControllerPortPrefix, testutil.TestOwnerAddress, "test1") icaKeeper.EXPECT().GetInterchainAccountAddress(ctx, "connection-0", portID).Return("", false) resp, err = keeper.InterchainAccountAddress(wctx, &types.QueryInterchainAccountAddressRequest{ OwnerAddress: testutil.TestOwnerAddress, @@ -45,7 +45,7 @@ func TestKeeper_InterchainAccountAddress(t *testing.T) { require.ErrorContains(t, err, "no interchain account found for portID") require.Nil(t, resp) - portID = fmt.Sprintf("%s%s.%s", types2.PortPrefix, testutil.TestOwnerAddress, "test1") + portID = fmt.Sprintf("%s%s.%s", types2.ControllerPortPrefix, testutil.TestOwnerAddress, "test1") icaKeeper.EXPECT().GetInterchainAccountAddress(ctx, "connection-0", portID).Return("neutron1interchainaccountaddress", true) resp, err = keeper.InterchainAccountAddress(wctx, &types.QueryInterchainAccountAddressRequest{ OwnerAddress: testutil.TestOwnerAddress, diff --git a/x/interchaintxs/keeper/grpc_query_params_test.go b/x/interchaintxs/keeper/grpc_query_params_test.go index b53d7918b..e69f18e15 100644 --- a/x/interchaintxs/keeper/grpc_query_params_test.go +++ b/x/interchaintxs/keeper/grpc_query_params_test.go @@ -11,7 +11,7 @@ import ( ) func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil, nil) + keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() keeper.SetParams(ctx, params) diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 7644b0447..818ca7cd1 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 8781189c1..437d0ac4b 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -5,8 +5,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" @@ -24,7 +24,7 @@ func TestHandleAcknowledgement(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil, nil) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) errACK := channeltypes.Acknowledgement{ @@ -41,7 +41,7 @@ func TestHandleAcknowledgement(t *testing.T) { require.NoError(t, err) p := channeltypes.Packet{ Sequence: 100, - SourcePort: icatypes.PortPrefix + testutil.TestOwnerAddress + ".ica0", + SourcePort: icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0", SourceChannel: "channel-0", } contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) @@ -118,14 +118,14 @@ func TestHandleTimeout(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil, nil) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" relayerAddress := sdk.MustAccAddressFromBech32(relayerBech32) p := channeltypes.Packet{ Sequence: 100, - SourcePort: icatypes.PortPrefix + testutil.TestOwnerAddress + ".ica0", + SourcePort: icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0", SourceChannel: "channel-0", } @@ -167,8 +167,8 @@ func TestHandleChanOpenAck(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, cmKeeper, nil, nil, nil, nil) - portID := icatypes.PortPrefix + testutil.TestOwnerAddress + ".ica0" + icak, ctx := testkeeper.InterchainTxsKeeper(t, cmKeeper, nil, nil, nil) + portID := icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0" contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) channelID := "channel-0" counterpartyChannelID := "channel-1" diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index b69dffc2d..1bfd04518 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -3,12 +3,11 @@ package keeper import ( "fmt" + "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" - capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/tendermint/tendermint/libs/log" "github.com/neutron-org/neutron/x/interchaintxs/types" ) @@ -27,7 +26,6 @@ type ( storeKey storetypes.StoreKey memKey storetypes.StoreKey paramstore paramtypes.Subspace - scopedKeeper types.ScopedKeeper channelKeeper types.ChannelKeeper feeKeeper types.FeeRefunderKeeper icaControllerKeeper types.ICAControllerKeeper @@ -42,7 +40,6 @@ func NewKeeper( paramstore paramtypes.Subspace, channelKeeper types.ChannelKeeper, icaControllerKeeper types.ICAControllerKeeper, - scopedKeeper types.ScopedKeeper, contractManagerKeeper types.ContractManagerKeeper, feeKeeper types.FeeRefunderKeeper, ) *Keeper { @@ -58,7 +55,6 @@ func NewKeeper( paramstore: paramstore, channelKeeper: channelKeeper, icaControllerKeeper: icaControllerKeeper, - scopedKeeper: scopedKeeper, contractManagerKeeper: contractManagerKeeper, feeKeeper: feeKeeper, } @@ -67,8 +63,3 @@ func NewKeeper( func (k *Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } - -// ClaimCapability claims the channel capability passed via the OnOpenChanInit callback -func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error { - return k.scopedKeeper.ClaimCapability(ctx, cap, name) -} diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index f21c2d66b..381021364 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -11,10 +11,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" - + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" ictxtypes "github.com/neutron-org/neutron/x/interchaintxs/types" ) @@ -112,12 +110,6 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic return nil, sdkerrors.Wrapf(icatypes.ErrActiveChannelNotFound, "failed to GetActiveChannelID for port %s", portID) } - chanCap, found := k.scopedKeeper.GetCapability(ctx, host.ChannelCapabilityPath(portID, channelID)) - if !found { - k.Logger(ctx).Debug("SubmitTx: failed to GetCapability", "connection_id", msg.ConnectionId, "port_id", portID, "channel_id", channelID) - return nil, sdkerrors.Wrap(channeltypes.ErrChannelCapabilityNotFound, "failed to GetCapability") - } - data, err := SerializeCosmosTx(k.Codec, msg.Msgs) if err != nil { k.Logger(ctx).Debug("SubmitTx: failed to SerializeCosmosTx", "error", err, "connection_id", msg.ConnectionId, "port_id", portID, "channel_id", channelID) @@ -143,7 +135,8 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic } timeoutTimestamp := ctx.BlockTime().Add(time.Duration(msg.Timeout) * time.Second).UnixNano() - _, err = k.icaControllerKeeper.SendTx(ctx, chanCap, msg.ConnectionId, portID, packetData, uint64(timeoutTimestamp)) + // TODO: keeper's SendTx deprecated, replace it with MsgServer SendTx + _, err = k.icaControllerKeeper.SendTx(ctx, nil, msg.ConnectionId, portID, packetData, uint64(timeoutTimestamp)) if err != nil { // usually we use DEBUG level for such errors, but in this case we have checked full input before running SendTX, so error here may be critical k.Logger(ctx).Error("SubmitTx", "error", err, "connection_id", msg.ConnectionId, "port_id", portID, "channel_id", channelID) diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index e28b1e5f2..16f81930e 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -6,10 +6,7 @@ import ( "time" "github.com/cosmos/cosmos-sdk/codec" - types2 "github.com/cosmos/cosmos-sdk/x/capability/types" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - host "github.com/cosmos/ibc-go/v4/modules/core/24-host" - + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/keeper" @@ -30,7 +27,7 @@ func TestRegisterInterchainAccount(t *testing.T) { defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, cmKeeper, nil, icaKeeper, nil, nil) + icak, ctx := testkeeper.InterchainTxsKeeper(t, cmKeeper, nil, icaKeeper, nil) goCtx := sdk.WrapSDKContext(ctx) msgRegAcc := types.MsgRegisterInterchainAccount{ @@ -68,10 +65,9 @@ func TestSubmitTx(t *testing.T) { defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) - capabilityKeeper := mock_types.NewMockScopedKeeper(ctrl) refundKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) channelKeeper := mock_types.NewMockChannelKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, cmKeeper, refundKeeper, icaKeeper, channelKeeper, capabilityKeeper) + icak, ctx := testkeeper.InterchainTxsKeeper(t, cmKeeper, refundKeeper, icaKeeper, channelKeeper) goCtx := sdk.WrapSDKContext(ctx) cosmosMsg := codectypes.Any{ @@ -126,15 +122,6 @@ func TestSubmitTx(t *testing.T) { activeChannel := "channel-0" cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - capabilityKeeper.EXPECT().GetCapability(ctx, host.ChannelCapabilityPath(portID, activeChannel)).Return(nil, false) - resp, err = icak.SubmitTx(goCtx, &submitMsg) - require.Nil(t, resp) - require.ErrorContains(t, err, "failed to GetCapability") - - capability := types2.Capability{Index: 1} - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - capabilityKeeper.EXPECT().GetCapability(ctx, host.ChannelCapabilityPath(portID, activeChannel)).Return(&capability, true) currCodec := icak.Codec icak.Codec = &codec.AminoCodec{} resp, err = icak.SubmitTx(goCtx, &submitMsg) @@ -144,7 +131,6 @@ func TestSubmitTx(t *testing.T) { cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - capabilityKeeper.EXPECT().GetCapability(ctx, host.ChannelCapabilityPath(portID, activeChannel)).Return(&capability, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(uint64(0), false) resp, err = icak.SubmitTx(goCtx, &submitMsg) require.Nil(t, resp) @@ -153,7 +139,6 @@ func TestSubmitTx(t *testing.T) { sequence := uint64(100) cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - capabilityKeeper.EXPECT().GetCapability(ctx, host.ChannelCapabilityPath(portID, activeChannel)).Return(&capability, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(sequence, true) refundKeeper.EXPECT().LockFees(ctx, contractAddress, feerefundertypes.NewPacketID(portID, activeChannel, sequence), submitMsg.Fee).Return(fmt.Errorf("failed to lock fees")) resp, err = icak.SubmitTx(goCtx, &submitMsg) @@ -171,20 +156,18 @@ func TestSubmitTx(t *testing.T) { timeoutTimestamp := ctx.BlockTime().Add(time.Duration(submitMsg.Timeout) * time.Second).UnixNano() cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - capabilityKeeper.EXPECT().GetCapability(ctx, host.ChannelCapabilityPath(portID, activeChannel)).Return(&capability, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(sequence, true) refundKeeper.EXPECT().LockFees(ctx, contractAddress, feerefundertypes.NewPacketID(portID, activeChannel, sequence), submitMsg.Fee).Return(nil) - icaKeeper.EXPECT().SendTx(ctx, &capability, "connection-0", portID, packetData, uint64(timeoutTimestamp)).Return(uint64(0), fmt.Errorf("faile to send tx")) + icaKeeper.EXPECT().SendTx(ctx, nil, "connection-0", portID, packetData, uint64(timeoutTimestamp)).Return(uint64(0), fmt.Errorf("faile to send tx")) resp, err = icak.SubmitTx(goCtx, &submitMsg) require.Nil(t, resp) require.ErrorContains(t, err, "failed to SendTx") cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - capabilityKeeper.EXPECT().GetCapability(ctx, host.ChannelCapabilityPath(portID, activeChannel)).Return(&capability, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(sequence, true) refundKeeper.EXPECT().LockFees(ctx, contractAddress, feerefundertypes.NewPacketID(portID, activeChannel, sequence), submitMsg.Fee).Return(nil) - icaKeeper.EXPECT().SendTx(ctx, &capability, "connection-0", portID, packetData, uint64(timeoutTimestamp)).Return(uint64(0), nil) + icaKeeper.EXPECT().SendTx(ctx, nil, "connection-0", portID, packetData, uint64(timeoutTimestamp)).Return(uint64(0), nil) resp, err = icak.SubmitTx(goCtx, &submitMsg) require.Equal(t, types.MsgSubmitTxResponse{ SequenceId: sequence, diff --git a/x/interchaintxs/keeper/params_test.go b/x/interchaintxs/keeper/params_test.go index 03e79aa2b..672a637b4 100644 --- a/x/interchaintxs/keeper/params_test.go +++ b/x/interchaintxs/keeper/params_test.go @@ -10,7 +10,7 @@ import ( ) func TestGetParams(t *testing.T) { - k, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil, nil) + k, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil) params := types.DefaultParams() k.SetParams(ctx, params) diff --git a/x/interchaintxs/module.go b/x/interchaintxs/module.go index 1a1cf4146..7eaf0e894 100644 --- a/x/interchaintxs/module.go +++ b/x/interchaintxs/module.go @@ -1,9 +1,11 @@ package interchaintxs import ( + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + 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" @@ -12,7 +14,6 @@ import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - abci "github.com/tendermint/tendermint/abci/types" "github.com/neutron-org/neutron/x/interchaintxs/client/cli" "github.com/neutron-org/neutron/x/interchaintxs/keeper" @@ -91,6 +92,8 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} + // AppModule implements the AppModule interface for the capability module. type AppModule struct { AppModuleBasic @@ -114,24 +117,22 @@ func NewAppModule( } } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} + // Name returns the capability module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Deprecated: Route returns the capability module's message routing key. -func (am AppModule) Route() sdk.Route { - return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) -} - // QuerierRoute returns the capability module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the capability module's Querier. -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) { diff --git a/x/interchaintxs/module_simulation.go b/x/interchaintxs/module_simulation.go index 978d8a4c6..be6fb51e8 100644 --- a/x/interchaintxs/module_simulation.go +++ b/x/interchaintxs/module_simulation.go @@ -1,10 +1,8 @@ package interchaintxs import ( - "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" + "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" @@ -17,7 +15,7 @@ import ( // avoid unused import issue var ( _ = interchaintxssimulation.FindAccount - _ = simappparams.StakePerAccount + _ = sims.StakePerAccount _ = simulation.MsgEntryKind _ = baseapp.Paramspace ) @@ -39,11 +37,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP 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/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 7bcd82021..654852a7f 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -4,9 +4,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" @@ -46,11 +46,6 @@ type FeeRefunderKeeper interface { DistributeTimeoutFee(ctx sdk.Context, receiver sdk.AccAddress, packetID feerefundertypes.PacketID) } -type ScopedKeeper interface { - ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error - GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool) -} - // ChannelKeeper defines the expected IBC channel keeper type ChannelKeeper interface { GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) diff --git a/x/interchaintxs/types/genesis.pb.go b/x/interchaintxs/types/genesis.pb.go index 6c355be85..dc6f22312 100644 --- a/x/interchaintxs/types/genesis.pb.go +++ b/x/interchaintxs/types/genesis.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchaintxs/v1/genesis.proto +// source: neutron/interchaintxs/v1/genesis.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -32,7 +32,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_8a4d50b91f9582a1, []int{0} + return fileDescriptor_d16558b72a810826, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,23 +72,25 @@ func init() { proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.GenesisState") } -func init() { proto.RegisterFile("interchaintxs/v1/genesis.proto", fileDescriptor_8a4d50b91f9582a1) } +func init() { + proto.RegisterFile("neutron/interchaintxs/v1/genesis.proto", fileDescriptor_d16558b72a810826) +} -var fileDescriptor_8a4d50b91f9582a1 = []byte{ - // 199 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0xcc, 0x2b, 0x49, - 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, - 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcd, 0x4b, 0x2d, 0x2d, - 0x29, 0xca, 0xcf, 0xd3, 0x43, 0x51, 0x27, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa1, 0x0f, - 0x62, 0x41, 0x14, 0x4b, 0xc9, 0x62, 0x18, 0x56, 0x90, 0x58, 0x94, 0x98, 0x0b, 0x35, 0x4b, 0xc9, - 0x9b, 0x8b, 0xc7, 0x1d, 0x62, 0x78, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, 0x35, 0x17, 0x1b, 0x44, - 0x5e, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x56, 0x0f, 0xab, 0x65, 0x7a, 0x01, 0x60, 0x45, - 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0xb5, 0x38, 0xf9, 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, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, - 0xae, 0x3e, 0xd4, 0x40, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0x42, 0x1f, 0xd5, 0x99, 0x25, - 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x37, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd0, - 0x2f, 0xc7, 0x38, 0x11, 0x01, 0x00, 0x00, +var fileDescriptor_d16558b72a810826 = []byte{ + // 201 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, + 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x12, 0x85, 0xaa, 0xd3, 0x43, 0x51, 0x27, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, + 0x56, 0xa1, 0x0f, 0x62, 0x41, 0x14, 0x4b, 0xa9, 0xe2, 0x34, 0xb4, 0x20, 0xb1, 0x28, 0x31, 0x17, + 0x6a, 0xa6, 0x92, 0x37, 0x17, 0x8f, 0x3b, 0xc4, 0x92, 0xe0, 0x92, 0xc4, 0x92, 0x54, 0x21, 0x6b, + 0x2e, 0x36, 0x88, 0xbc, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0xac, 0x1e, 0x56, 0x4b, 0xf5, + 0x02, 0xc0, 0x8a, 0x9c, 0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0x6a, 0x71, 0xf2, 0x3b, 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, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, + 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x81, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0x9a, + 0x33, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x6e, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, + 0xff, 0xa2, 0x39, 0x02, 0x0f, 0x21, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/params.pb.go b/x/interchaintxs/types/params.pb.go index 8cf2c89f8..e43702998 100644 --- a/x/interchaintxs/types/params.pb.go +++ b/x/interchaintxs/types/params.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchaintxs/v1/params.proto +// source: neutron/interchaintxs/v1/params.proto package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -32,7 +32,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_9d5df0577c2bc16b, []int{0} + return fileDescriptor_52b0ced89d3fa9c6, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,24 +72,26 @@ func init() { proto.RegisterType((*Params)(nil), "neutron.interchaintxs.Params") } -func init() { proto.RegisterFile("interchaintxs/v1/params.proto", fileDescriptor_9d5df0577c2bc16b) } +func init() { + proto.RegisterFile("neutron/interchaintxs/v1/params.proto", fileDescriptor_52b0ced89d3fa9c6) +} -var fileDescriptor_9d5df0577c2bc16b = []byte{ - // 209 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0xcc, 0x2b, 0x49, - 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0x48, 0x2c, - 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcd, 0x4b, 0x2d, 0x2d, 0x29, - 0xca, 0xcf, 0xd3, 0x43, 0x51, 0x26, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa1, 0x0f, 0x62, - 0x41, 0x14, 0x2b, 0x79, 0x71, 0xb1, 0x05, 0x80, 0x35, 0x0b, 0x59, 0x71, 0x49, 0xe5, 0x16, 0xa7, - 0xc7, 0x17, 0x97, 0x26, 0xe5, 0x66, 0x96, 0xc4, 0x97, 0x54, 0xc4, 0xe7, 0x26, 0x56, 0xc4, 0xe7, - 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x16, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x04, 0x89, 0xe5, - 0x16, 0xa7, 0x07, 0x83, 0x15, 0x84, 0x54, 0xf8, 0x26, 0x56, 0xf8, 0x42, 0x65, 0xad, 0x58, 0x66, - 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x3b, 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, - 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0xeb, 0x74, 0xf3, - 0x8b, 0xd2, 0x61, 0x6c, 0xfd, 0x0a, 0x7d, 0x54, 0x2f, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, - 0x81, 0x9d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x80, 0x0d, 0xa7, 0x86, 0xf0, 0x00, 0x00, - 0x00, +var fileDescriptor_52b0ced89d3fa9c6 = []byte{ + // 211 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, + 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x12, 0x85, 0x2a, 0xd3, 0x43, 0x51, 0x26, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, + 0xa1, 0x0f, 0x62, 0x41, 0x14, 0x2b, 0x79, 0x71, 0xb1, 0x05, 0x80, 0x35, 0x0b, 0x59, 0x71, 0x49, + 0xe5, 0x16, 0xa7, 0xc7, 0x17, 0x97, 0x26, 0xe5, 0x66, 0x96, 0xc4, 0x97, 0x54, 0xc4, 0xe7, 0x26, + 0x56, 0xc4, 0xe7, 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x16, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0xb0, + 0x04, 0x89, 0xe5, 0x16, 0xa7, 0x07, 0x83, 0x15, 0x84, 0x54, 0xf8, 0x26, 0x56, 0xf8, 0x42, 0x65, + 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x3b, 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, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, + 0xeb, 0x74, 0xf3, 0x8b, 0xd2, 0x61, 0x6c, 0xfd, 0x0a, 0x34, 0x2f, 0x95, 0x54, 0x16, 0xa4, 0x16, + 0x27, 0xb1, 0x81, 0x9d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, 0xb1, 0xdd, 0xe6, 0xf8, + 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/query.pb.go b/x/interchaintxs/types/query.pb.go index 624fecc7c..0695f6c26 100644 --- a/x/interchaintxs/types/query.pb.go +++ b/x/interchaintxs/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchaintxs/v1/query.proto +// source: neutron/interchaintxs/v1/query.proto package types @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_85130b102faab7ea, []int{0} + return fileDescriptor_6130c5f6c54e2428, []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_85130b102faab7ea, []int{1} + return fileDescriptor_6130c5f6c54e2428, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ func (m *QueryInterchainAccountAddressRequest) Reset() { *m = QueryInter func (m *QueryInterchainAccountAddressRequest) String() string { return proto.CompactTextString(m) } func (*QueryInterchainAccountAddressRequest) ProtoMessage() {} func (*QueryInterchainAccountAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_85130b102faab7ea, []int{2} + return fileDescriptor_6130c5f6c54e2428, []int{2} } func (m *QueryInterchainAccountAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,7 +168,7 @@ func (m *QueryInterchainAccountAddressResponse) Reset() { *m = QueryInte func (m *QueryInterchainAccountAddressResponse) String() string { return proto.CompactTextString(m) } func (*QueryInterchainAccountAddressResponse) ProtoMessage() {} func (*QueryInterchainAccountAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_85130b102faab7ea, []int{3} + return fileDescriptor_6130c5f6c54e2428, []int{3} } func (m *QueryInterchainAccountAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -211,37 +211,40 @@ func init() { proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressResponse") } -func init() { proto.RegisterFile("interchaintxs/v1/query.proto", fileDescriptor_85130b102faab7ea) } - -var fileDescriptor_85130b102faab7ea = []byte{ - // 432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x31, 0x8f, 0xd3, 0x30, - 0x1c, 0xc5, 0x93, 0x03, 0x2a, 0x30, 0xb0, 0xf8, 0xee, 0xa4, 0x28, 0xba, 0x4b, 0x51, 0x00, 0x09, - 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 0x89, 0x52, 0x18, 0x90, 0x3a, 0xe3, - 0x05, 0xc8, 0x7c, 0xf5, 0x4d, 0xc6, 0xa4, 0xf9, 0xc4, 0xf5, 0xa4, 0x60, 0x2a, 0x69, 0x99, 0xf7, - 0xfd, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x20, 0xbf, 0xa3, 0xcd, 0x95, 0x03, 0x00, 0x00, +func init() { + proto.RegisterFile("neutron/interchaintxs/v1/query.proto", fileDescriptor_6130c5f6c54e2428) +} + +var fileDescriptor_6130c5f6c54e2428 = []byte{ + // 434 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x31, 0x6f, 0xd3, 0x40, + 0x1c, 0xc5, 0xed, 0x02, 0x11, 0x1c, 0xb0, 0x5c, 0x5b, 0xc9, 0xb2, 0xc0, 0x41, 0xa6, 0x95, 0xa0, + 0x12, 0x3e, 0x25, 0x30, 0xd1, 0x2e, 0xed, 0x96, 0x05, 0x81, 0x47, 0x96, 0xe8, 0x6c, 0x9f, 0xdc, + 0x93, 0xc8, 0xfd, 0xdd, 0xbb, 0x73, 0x69, 0x77, 0x06, 0x46, 0x36, 0xd6, 0x7c, 0x02, 0x3e, 0x47, + 0xc6, 0x8c, 0x4c, 0x08, 0x25, 0x0b, 0x1f, 0x03, 0xf9, 0xee, 0x42, 0x94, 0x10, 0x13, 0xd4, 0xcd, + 0x7a, 0xfe, 0xfd, 0xdf, 0x7b, 0xf7, 0xbf, 0x43, 0x07, 0x82, 0xd5, 0x5a, 0x82, 0x20, 0x5c, 0x68, + 0x26, 0xf3, 0x73, 0xca, 0x85, 0xbe, 0x52, 0xe4, 0xb2, 0x47, 0x2e, 0x6a, 0x26, 0xaf, 0x93, 0x4a, + 0x82, 0x06, 0xbc, 0xef, 0xa8, 0x64, 0x85, 0x0a, 0xf7, 0x4a, 0x28, 0xc1, 0x10, 0xa4, 0x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x31, 0x43, 0x87, 0x5b, 0xfa, 0xba, 0xb5, 0x9c, 0xa0, 0x70, 0x43, 0x97, 0xd5, 0xf6, + 0x01, 0x6f, 0x71, 0xe9, 0x7f, 0xda, 0x41, 0x77, 0x4c, 0x0e, 0xa6, 0xa8, 0x63, 0x37, 0x87, 0x9f, + 0xb7, 0x2c, 0xf6, 0xef, 0xab, 0x0a, 0x8f, 0xfe, 0x07, 0xb5, 0x45, 0x63, 0x0f, 0x7f, 0xf5, 0x51, + 0xd0, 0x76, 0x1e, 0x7c, 0xfc, 0x2f, 0xab, 0x2d, 0xb7, 0x16, 0x9e, 0xdc, 0x6c, 0x78, 0xd1, 0xec, + 0xec, 0xcd, 0x64, 0x16, 0xf9, 0xd3, 0x59, 0xe4, 0xff, 0x9c, 0x45, 0xfe, 0x97, 0x79, 0xe4, 0x4d, + 0xe7, 0x91, 0xf7, 0x7d, 0x1e, 0x79, 0xef, 0x5f, 0x95, 0x5c, 0x9f, 0xd7, 0x59, 0x92, 0xc3, 0x88, + 0xb8, 0x8c, 0x17, 0x20, 0xcb, 0xc5, 0x37, 0xb9, 0x5a, 0x7b, 0xe2, 0xfa, 0xba, 0x62, 0x2a, 0xeb, + 0x98, 0xf7, 0xfd, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x28, 0xcd, 0x3d, 0xa5, 0x03, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -359,7 +362,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "interchaintxs/v1/query.proto", + Metadata: "neutron/interchaintxs/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 6fc83d648..41bf28b30 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: interchaintxs/v1/tx.proto +// source: neutron/interchaintxs/v1/tx.proto package types @@ -8,9 +8,9 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" types1 "github.com/neutron-org/neutron/x/feerefunder/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" @@ -43,7 +43,7 @@ func (m *MsgRegisterInterchainAccount) Reset() { *m = MsgRegisterInterch func (m *MsgRegisterInterchainAccount) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainAccount) ProtoMessage() {} func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_ecd987b66c8800e1, []int{0} + return fileDescriptor_50f087790e59c806, []int{0} } func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,7 +81,7 @@ func (m *MsgRegisterInterchainAccountResponse) Reset() { *m = MsgRegiste func (m *MsgRegisterInterchainAccountResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainAccountResponse) ProtoMessage() {} func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ecd987b66c8800e1, []int{1} + return fileDescriptor_50f087790e59c806, []int{1} } func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +130,7 @@ func (m *MsgSubmitTx) Reset() { *m = MsgSubmitTx{} } func (m *MsgSubmitTx) String() string { return proto.CompactTextString(m) } func (*MsgSubmitTx) ProtoMessage() {} func (*MsgSubmitTx) Descriptor() ([]byte, []int) { - return fileDescriptor_ecd987b66c8800e1, []int{2} + return fileDescriptor_50f087790e59c806, []int{2} } func (m *MsgSubmitTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -171,7 +171,7 @@ func (m *MsgSubmitTxResponse) Reset() { *m = MsgSubmitTxResponse{} } func (m *MsgSubmitTxResponse) String() string { return proto.CompactTextString(m) } func (*MsgSubmitTxResponse) ProtoMessage() {} func (*MsgSubmitTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ecd987b66c8800e1, []int{3} + return fileDescriptor_50f087790e59c806, []int{3} } func (m *MsgSubmitTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -221,46 +221,46 @@ func init() { proto.RegisterType((*MsgSubmitTxResponse)(nil), "neutron.interchaintxs.v1.MsgSubmitTxResponse") } -func init() { proto.RegisterFile("interchaintxs/v1/tx.proto", fileDescriptor_ecd987b66c8800e1) } +func init() { proto.RegisterFile("neutron/interchaintxs/v1/tx.proto", fileDescriptor_50f087790e59c806) } -var fileDescriptor_ecd987b66c8800e1 = []byte{ - // 572 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbd, 0x6e, 0xdb, 0x3c, - 0x14, 0x95, 0x62, 0x7f, 0x49, 0x3e, 0x3a, 0x5d, 0x98, 0x04, 0x90, 0x0d, 0x43, 0x72, 0xd5, 0x1f, - 0x78, 0x09, 0xd5, 0xb8, 0x45, 0x87, 0x00, 0x2d, 0x60, 0x0f, 0x05, 0x3c, 0xb8, 0x28, 0xd4, 0x4c, - 0x5d, 0x0c, 0x59, 0xba, 0xa2, 0x05, 0x58, 0xa4, 0x2b, 0x52, 0x81, 0x3d, 0x76, 0xeb, 0xd8, 0xa5, - 0x63, 0x81, 0x3c, 0x4e, 0xc6, 0x8c, 0x9d, 0x8c, 0xc0, 0x5e, 0x3a, 0xe7, 0x09, 0x0a, 0x49, 0x96, - 0xff, 0x10, 0x1b, 0x41, 0x37, 0xde, 0xc3,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xe9, 0xc6, 0xed, 0x3b, 0x8c, 0xc1, 0x60, 0x6e, 0x4b, 0x5e, 0x36, 0xbe, 0xed, 0xa1, - 0x42, 0x47, 0x50, 0xfc, 0x53, 0x45, 0xe5, 0xed, 0x09, 0x7c, 0x4b, 0xb6, 0x7d, 0x55, 0x64, 0xd7, - 0xbb, 0x56, 0xde, 0xff, 0xdb, 0xb9, 0x45, 0x1e, 0x14, 0xdc, 0x43, 0x87, 0x8b, 0x34, 0xbc, 0xd8, - 0xa9, 0x96, 0xd3, 0x2a, 0x67, 0x8f, 0xa2, 0x2d, 0xef, 0x68, 0x7d, 0xbc, 0x99, 0xea, 0xea, 0xed, - 0x54, 0x57, 0xef, 0xa6, 0xba, 0xfa, 0x63, 0xa6, 0x2b, 0xb7, 0x33, 0x5d, 0xf9, 0x3d, 0xd3, 0x95, - 0x2f, 0x6f, 0x68, 0x20, 0xfb, 0x71, 0x8f, 0xb8, 0x3c, 0xb4, 0xe6, 0xa2, 0x67, 0x3c, 0xa2, 0xf9, - 0xda, 0x1a, 0x59, 0xeb, 0x3f, 0x22, 0x39, 0x1e, 0x82, 0xe8, 0xed, 0xa7, 0x19, 0x79, 0xfd, 0x37, - 0x00, 0x00, 0xff, 0xff, 0x2f, 0xf6, 0x21, 0x72, 0xa6, 0x04, 0x00, 0x00, +var fileDescriptor_50f087790e59c806 = []byte{ + // 576 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbd, 0x6f, 0xda, 0x4e, + 0x18, 0xb6, 0x03, 0xbf, 0x24, 0xbf, 0x23, 0x5d, 0x2e, 0x89, 0x64, 0x10, 0xb5, 0x89, 0xfb, 0x21, + 0x96, 0x9c, 0x1b, 0x5a, 0x75, 0x88, 0xd4, 0x4a, 0x30, 0x54, 0x62, 0xa0, 0xaa, 0xdc, 0x4c, 0x5d, + 0x90, 0xb1, 0x5f, 0x0e, 0x4b, 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x65, + 0x37, 0xc8, 0x07, 0x80, 0x56, 0xf1, 0x7a, 0x6a, 0x28, 0x76, 0x0c, 0x5d, 0xf1, 0xf1, 0x13, 0x3a, + 0x5c, 0xb1, 0x27, 0xb7, 0x0d, 0x1b, 0xa8, 0x24, 0xe0, 0x6b, 0x04, 0xcc, 0x85, 0x78, 0x1a, 0x35, + 0xb9, 0x10, 0xe5, 0xa5, 0xb6, 0x17, 0xab, 0x71, 0x07, 0x0e, 0x63, 0x30, 0xcc, 0x6c, 0xc9, 0xd3, + 0xc6, 0xb7, 0x1d, 0x54, 0xe8, 0x08, 0x8a, 0x7f, 0xaa, 0xa8, 0xbc, 0x79, 0x03, 0xdf, 0x92, 0x4d, + 0x5f, 0x17, 0xd9, 0xf6, 0xae, 0x95, 0xf7, 0xff, 0x76, 0x6e, 0xb1, 0x0f, 0x0a, 0xee, 0xa1, 0xfd, + 0xc5, 0x36, 0xbc, 0xd8, 0xca, 0x96, 0xc3, 0x2a, 0xa7, 0x8f, 0x82, 0x2d, 0xef, 0x68, 0x7d, 0xbc, + 0x9e, 0xe9, 0xea, 0xcd, 0x4c, 0x57, 0x6f, 0x67, 0xba, 0xfa, 0x63, 0xae, 0x2b, 0x37, 0x73, 0x5d, + 0xf9, 0x3d, 0xd7, 0x95, 0x2f, 0x6f, 0xa8, 0x2f, 0x07, 0x51, 0x8f, 0xb8, 0x3c, 0xb0, 0x32, 0xd2, + 0x53, 0x1e, 0xd2, 0x3c, 0xb6, 0xc6, 0x6b, 0x3f, 0x24, 0x39, 0x19, 0x81, 0xe8, 0xed, 0x26, 0x3b, + 0xf2, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x30, 0x09, 0xc8, 0x02, 0xb6, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -376,7 +376,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "interchaintxs/v1/tx.proto", + Metadata: "neutron/interchaintxs/v1/tx.proto", } func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/types.go b/x/interchaintxs/types/types.go index 4289764cb..789663d42 100644 --- a/x/interchaintxs/types/types.go +++ b/x/interchaintxs/types/types.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" ) const Delimiter = "." @@ -33,7 +33,7 @@ func NewICAOwnerFromAddress(address sdk.AccAddress, interchainAccountID string) } func ICAOwnerFromPort(port string) (ICAOwner, error) { - splitOwner := strings.SplitN(strings.TrimPrefix(port, icatypes.PortPrefix), Delimiter, 2) + splitOwner := strings.SplitN(strings.TrimPrefix(port, icatypes.ControllerPortPrefix), Delimiter, 2) if len(splitOwner) < 2 { return ICAOwner{}, sdkerrors.Wrap(ErrInvalidICAOwner, "invalid ICA interchainAccountID format") } diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index 0d19b52e3..357e089a4 100644 --- a/x/tokenfactory/client/cli/tx.go +++ b/x/tokenfactory/client/cli/tx.go @@ -47,14 +47,17 @@ func NewCreateDenomCmd() *cobra.Command { return err } - txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) + txf, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) + if err != nil { + return err + } msg := types.NewMsgCreateDenom( clientCtx.GetFromAddress().String(), args[0], ) - return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf.WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever), msg) }, } @@ -74,7 +77,10 @@ func NewMintCmd() *cobra.Command { return err } - txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) + txf, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) + if err != nil { + return err + } amount, err := sdk.ParseCoinNormalized(args[0]) if err != nil { @@ -86,7 +92,7 @@ func NewMintCmd() *cobra.Command { amount, ) - return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf.WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever), msg) }, } @@ -106,7 +112,10 @@ func NewBurnCmd() *cobra.Command { return err } - txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) + txf, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) + if err != nil { + return err + } amount, err := sdk.ParseCoinNormalized(args[0]) if err != nil { @@ -118,7 +127,7 @@ func NewBurnCmd() *cobra.Command { amount, ) - return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf.WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever), msg) }, } @@ -172,7 +181,10 @@ func NewChangeAdminCmd() *cobra.Command { return err } - txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) + txf, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) + if err != nil { + return err + } msg := types.NewMsgChangeAdmin( clientCtx.GetFromAddress().String(), @@ -180,7 +192,7 @@ func NewChangeAdminCmd() *cobra.Command { args[1], ) - return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf.WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever), msg) }, } diff --git a/x/tokenfactory/keeper/genesis_test.go b/x/tokenfactory/keeper/genesis_test.go index 93794be30..707214167 100644 --- a/x/tokenfactory/keeper/genesis_test.go +++ b/x/tokenfactory/keeper/genesis_test.go @@ -1,8 +1,8 @@ package keeper_test import ( + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" "github.com/neutron-org/neutron/x/tokenfactory/types" ) diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 949fd633e..0b391112f 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -2,8 +2,9 @@ package keeper import ( "fmt" + 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" "github.com/cosmos/cosmos-sdk/store/prefix" @@ -18,7 +19,7 @@ import ( type ( Keeper struct { cdc codec.Codec - storeKey sdk.StoreKey + storeKey storetypes.StoreKey paramSpace paramtypes.Subspace @@ -30,7 +31,7 @@ type ( // NewKeeper returns a new instance of the x/tokenfactory keeper func NewKeeper( cdc codec.Codec, - storeKey sdk.StoreKey, + storeKey storetypes.StoreKey, paramSpace paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index d09828399..ba3ca75e9 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "testing" + "github.com/cometbft/cometbft/crypto/ed25519" "github.com/cosmos/cosmos-sdk/baseapp" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/stretchr/testify/suite" - "github.com/tendermint/tendermint/crypto/ed25519" sdktypes "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/app/params" diff --git a/x/tokenfactory/module.go b/x/tokenfactory/module.go index 80c70e132..dec552765 100644 --- a/x/tokenfactory/module.go +++ b/x/tokenfactory/module.go @@ -2,6 +2,7 @@ package tokenfactory import ( "context" + "cosmossdk.io/core/appmodule" "encoding/json" "fmt" @@ -9,7 +10,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" @@ -91,6 +92,8 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { // AppModule // ---------------------------------------------------------------------------- +var _ appmodule.AppModule = AppModule{} + // AppModule implements the AppModule interface for the capability module. type AppModule struct { AppModuleBasic @@ -110,24 +113,22 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, accountKeeper types.Acc } } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} + // Name returns the capability module's name. func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Route returns the capability module's message routing key. -func (am AppModule) Route() sdk.Route { - return sdk.Route{} -} - // QuerierRoute returns the capability module's query routing key. func (AppModule) QuerierRoute() string { return types.QuerierRoute } -// LegacyQuerierHandler returns the capability module's Querier. -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) { diff --git a/x/tokenfactory/types/authorityMetadata.pb.go b/x/tokenfactory/types/authorityMetadata.pb.go index e32f8e654..5f0c39198 100644 --- a/x/tokenfactory/types/authorityMetadata.pb.go +++ b/x/tokenfactory/types/authorityMetadata.pb.go @@ -6,8 +6,8 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/tokenfactory/types/genesis.pb.go b/x/tokenfactory/types/genesis.pb.go index 341cbc9cc..e3471a9ef 100644 --- a/x/tokenfactory/types/genesis.pb.go +++ b/x/tokenfactory/types/genesis.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 5f8b77986..3ca6e158d 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -8,8 +8,8 @@ import ( _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index c7f7e3a15..bc94c2473 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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" diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 88f656b0d..2cfb3a2cd 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -361,11 +361,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "tokenfactory", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "tokenfactory", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index da2fdd106..aea490b5a 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "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" diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index ddc4eb51a..7f057db2c 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/types" diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 274450540..a42453fd2 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -5,8 +5,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/golang/mock/gomock" "github.com/neutron-org/neutron/testutil" mock_types "github.com/neutron-org/neutron/testutil/mocks/transfer/types" diff --git a/x/transfer/keeper/keeper.go b/x/transfer/keeper/keeper.go index 6f89d8959..090cb68fc 100644 --- a/x/transfer/keeper/keeper.go +++ b/x/transfer/keeper/keeper.go @@ -2,16 +2,17 @@ package transfer import ( "context" + storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" - + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" wrappedtypes "github.com/neutron-org/neutron/x/transfer/types" ) @@ -49,7 +50,7 @@ func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes } } - transferMsg := types.NewMsgTransfer(msg.SourcePort, msg.SourceChannel, msg.Token, msg.Sender, msg.Receiver, msg.TimeoutHeight, msg.TimeoutTimestamp) + transferMsg := types.NewMsgTransfer(msg.SourcePort, msg.SourceChannel, msg.Token, msg.Sender, msg.Receiver, msg.TimeoutHeight, msg.TimeoutTimestamp, msg.Memo) transferMsg.Memo = msg.Memo if _, err := k.Keeper.Transfer(goCtx, transferMsg); err != nil { return nil, err @@ -63,8 +64,8 @@ func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes // NewKeeper creates a new IBC transfer Keeper(KeeperTransferWrapper) instance func NewKeeper( - cdc codec.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, - ics4Wrapper types.ICS4Wrapper, channelKeeper wrappedtypes.ChannelKeeper, portKeeper types.PortKeeper, + cdc codec.BinaryCodec, key storetypes.StoreKey, paramSpace paramtypes.Subspace, + ics4Wrapper porttypes.ICS4Wrapper, channelKeeper wrappedtypes.ChannelKeeper, portKeeper types.PortKeeper, authKeeper types.AccountKeeper, bankKeeper types.BankKeeper, scopedKeeper capabilitykeeper.ScopedKeeper, feeKeeper wrappedtypes.FeeRefunderKeeper, contractManagerKeeper wrappedtypes.ContractManagerKeeper, diff --git a/x/transfer/keeper/keeper_test.go b/x/transfer/keeper/keeper_test.go index af274adee..63d623fa6 100644 --- a/x/transfer/keeper/keeper_test.go +++ b/x/transfer/keeper/keeper_test.go @@ -5,8 +5,8 @@ import ( sdktypes "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/errors" - clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/stretchr/testify/suite" "github.com/neutron-org/neutron/app/params" diff --git a/x/transfer/module.go b/x/transfer/module.go index f32722e2c..3de6ee665 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -1,6 +1,7 @@ package transfer import ( + "cosmossdk.io/core/appmodule" "fmt" "github.com/cosmos/cosmos-sdk/codec" @@ -8,10 +9,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" wrapkeeper "github.com/neutron-org/neutron/x/transfer/keeper" @@ -68,6 +69,8 @@ func (im IBCModule) OnTimeoutPacket( return im.HandleTimeout(ctx, packet, relayer) } +var _ appmodule.AppModule = AppModule{} + type AppModule struct { transfer.AppModule keeper wrapkeeper.KeeperTransferWrapper @@ -81,10 +84,21 @@ func NewAppModule(k wrapkeeper.KeeperTransferWrapper) AppModule { } } +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() { // marker +} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() { // marker +} + // RegisterServices registers module services. func (am AppModule) RegisterServices(cfg module.Configurator) { neutrontypes.RegisterMsgServer(cfg.MsgServer(), am.keeper) types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + + cfg.MsgServer().RegisterService(&neutrontypes.MsgServiceDescOrig, am.keeper) + } type AppModuleBasic struct { @@ -115,11 +129,6 @@ func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// Deprecated: Route returns the capability module's message routing key. -func (am AppModule) Route() sdk.Route { - return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper)) -} - func NewHandler(k wrapkeeper.KeeperTransferWrapper) sdk.Handler { return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { ctx = ctx.WithEventManager(sdk.NewEventManager()) diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index 1234a78d2..e74aa2c42 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" - channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -27,6 +27,7 @@ type FeeRefunderKeeper interface { type ChannelKeeper interface { GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) + GetAllChannelsWithPortPrefix(ctx sdk.Context, portPrefix string) []channeltypes.IdentifiedChannel } // AccountKeeper defines the contract required for account APIs. diff --git a/x/transfer/types/query.pb.go b/x/transfer/types/query.pb.go index 906bea66f..a5eca1746 100644 --- a/x/transfer/types/query.pb.go +++ b/x/transfer/types/query.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: transfer/v1/query.proto +// source: neutron/transfer/v1/query.proto package types import ( context "context" fmt "fmt" - types "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - 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/cosmos/ibc-go/v7/modules/apps/transfer/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -27,33 +27,33 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -func init() { proto.RegisterFile("transfer/v1/query.proto", fileDescriptor_3f47107eac5604ce) } +func init() { proto.RegisterFile("neutron/transfer/v1/query.proto", fileDescriptor_560cfedb574fdf6b) } -var fileDescriptor_3f47107eac5604ce = []byte{ - // 364 bytes of a gzipped FileDescriptorProto +var fileDescriptor_560cfedb574fdf6b = []byte{ + // 365 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x4a, 0xc3, 0x30, - 0x1c, 0xc7, 0x57, 0x61, 0x03, 0xe3, 0x45, 0x72, 0x11, 0xc6, 0xc8, 0x61, 0xec, 0xa0, 0x53, 0x13, - 0xbb, 0x4d, 0x1f, 0x40, 0x3c, 0xe8, 0x4d, 0xc5, 0x93, 0x17, 0x49, 0x6b, 0x6c, 0x0b, 0x5b, 0x92, - 0x25, 0xe9, 0x70, 0xc8, 0x2e, 0x3e, 0x81, 0xb0, 0x57, 0xf0, 0x20, 0xe2, 0x83, 0x78, 0x1c, 0x78, - 0xf1, 0x28, 0x9b, 0x0f, 0x22, 0x4d, 0x5b, 0xa7, 0xe0, 0x9f, 0xf5, 0x56, 0xe8, 0xf7, 0x93, 0xef, - 0xe7, 0xf7, 0x4b, 0x0b, 0xd6, 0x8c, 0xa2, 0x5c, 0x5f, 0x31, 0x45, 0x06, 0x2e, 0xe9, 0xc7, 0x4c, - 0x0d, 0xb1, 0x54, 0xc2, 0x08, 0xb8, 0xca, 0x59, 0x6c, 0x94, 0xe0, 0x38, 0x0f, 0x54, 0xd7, 0x23, - 0xcf, 0x27, 0x54, 0xca, 0x6e, 0xe4, 0x53, 0x13, 0x09, 0xae, 0xc9, 0x2f, 0x6c, 0xb5, 0x16, 0x08, - 0x11, 0x74, 0x19, 0xa1, 0x32, 0x22, 0x94, 0x73, 0x61, 0xd2, 0x7c, 0xfa, 0xb6, 0x75, 0x5f, 0x06, - 0xe5, 0x93, 0x24, 0x0d, 0x9f, 0x1c, 0x00, 0x0e, 0x18, 0x17, 0xbd, 0x33, 0x45, 0x7d, 0x06, 0x3b, - 0x38, 0xf2, 0x7c, 0xfc, 0xb5, 0xe1, 0xb3, 0x1c, 0x0f, 0x5c, 0x6c, 0x99, 0x79, 0xfc, 0x94, 0xf5, - 0x63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xb4, 0x09, 0x37, 0x48, 0x36, 0xd6, 0xf7, 0x71, 0x2e, 0x13, 0xe2, 0xc2, 0x24, 0x88, 0x26, + 0x37, 0x21, 0xd5, 0xe1, 0x08, 0x3e, 0x38, 0x60, 0x65, 0x7e, 0x92, 0x86, 0xc5, 0x9a, 0x75, 0x2e, + 0xbc, 0x57, 0x14, 0xcb, 0x8c, 0x9b, 0xd6, 0xb8, 0x01, 0xeb, 0xff, 0x1b, 0xc3, 0xb1, 0x03, 0x2a, + 0xc7, 0x54, 0xd1, 0x9e, 0x86, 0x3b, 0x0b, 0xd4, 0xa5, 0xd1, 0x5c, 0xd0, 0x2d, 0x40, 0x64, 0x6e, + 0x0d, 0xeb, 0x86, 0x60, 0xed, 0x67, 0x37, 0x99, 0xaa, 0x3c, 0x3a, 0x60, 0xd9, 0x4e, 0x76, 0x48, + 0x75, 0x08, 0xdb, 0x8b, 0xee, 0x21, 0x49, 0xe7, 0x6e, 0x9d, 0x62, 0x50, 0xa6, 0xd7, 0xb2, 0x7a, + 0x5b, 0xb0, 0xf9, 0xd7, 0xea, 0x92, 0x4b, 0x4e, 0x2e, 0xdb, 0xae, 0x70, 0xb4, 0x7f, 0xf4, 0x3c, + 0x45, 0xce, 0x64, 0x8a, 0x9c, 0xb7, 0x29, 0x72, 0xee, 0x66, 0xa8, 0x34, 0x99, 0xa1, 0xd2, 0xeb, + 0x0c, 0x95, 0xce, 0x49, 0x10, 0x99, 0x30, 0xf6, 0xb0, 0x2f, 0x7a, 0x24, 0xfb, 0x4b, 0xb6, 0x85, + 0x0a, 0xf2, 0x67, 0x72, 0x3d, 0x3f, 0xdc, 0x0c, 0x25, 0xd3, 0x5e, 0xc5, 0x7e, 0xf8, 0xed, 0x8f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x7c, 0x55, 0x6a, 0x27, 0x75, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -249,5 +249,5 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "transfer/v1/query.proto", + Metadata: "neutron/transfer/v1/query.proto", } diff --git a/x/transfer/types/query.pb.gw.go b/x/transfer/types/query.pb.gw.go index b9ae00346..d30aa10d5 100644 --- a/x/transfer/types/query.pb.gw.go +++ b/x/transfer/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: transfer/v1/query.proto +// source: neutron/transfer/v1/query.proto /* Package types is a reverse proxy. @@ -13,7 +13,7 @@ import ( "io" "net/http" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" + types_0 "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -35,7 +35,7 @@ var _ = descriptor.ForMessage var _ = metadata.Join func request_Query_DenomTrace_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryDenomTraceRequest + var protoReq types_0.QueryDenomTraceRequest var metadata runtime.ServerMetadata var ( @@ -62,7 +62,7 @@ func request_Query_DenomTrace_0(ctx context.Context, marshaler runtime.Marshaler } func local_request_Query_DenomTrace_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryDenomTraceRequest + var protoReq types_0.QueryDenomTraceRequest var metadata runtime.ServerMetadata var ( @@ -93,7 +93,7 @@ var ( ) func request_Query_DenomTraces_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryDenomTracesRequest + var protoReq types_0.QueryDenomTracesRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -109,7 +109,7 @@ func request_Query_DenomTraces_0(ctx context.Context, marshaler runtime.Marshale } func local_request_Query_DenomTraces_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryDenomTracesRequest + var protoReq types_0.QueryDenomTracesRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -125,7 +125,7 @@ func local_request_Query_DenomTraces_0(ctx context.Context, marshaler runtime.Ma } func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryParamsRequest + var protoReq types_0.QueryParamsRequest var metadata runtime.ServerMetadata msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -134,7 +134,7 @@ func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, cl } func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryParamsRequest + var protoReq types_0.QueryParamsRequest var metadata runtime.ServerMetadata msg, err := server.Params(ctx, &protoReq) @@ -143,7 +143,7 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } func request_Query_DenomHash_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryDenomHashRequest + var protoReq types_0.QueryDenomHashRequest var metadata runtime.ServerMetadata var ( @@ -170,7 +170,7 @@ func request_Query_DenomHash_0(ctx context.Context, marshaler runtime.Marshaler, } func local_request_Query_DenomHash_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq types.QueryDenomHashRequest + var protoReq types_0.QueryDenomHashRequest var metadata runtime.ServerMetadata var ( @@ -419,13 +419,13 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_DenomTrace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"ibc", "apps", "transfer", "v1", "denom_traces", "hash"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DenomTrace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"ibc", "apps", "transfer", "v1", "denom_traces", "hash"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomTraces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ibc", "apps", "transfer", "v1", "denom_traces"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DenomTraces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ibc", "apps", "transfer", "v1", "denom_traces"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ibc", "apps", "transfer", "v1", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ibc", "apps", "transfer", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomHash_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"ibc", "apps", "transfer", "v1", "denom_hashes", "trace"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DenomHash_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"ibc", "apps", "transfer", "v1", "denom_hashes", "trace"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/transfer/types/query.pb.gw.go_old b/x/transfer/types/query.pb.gw.go_old index b9ae00346..6427cd9d6 100644 --- a/x/transfer/types/query.pb.gw.go_old +++ b/x/transfer/types/query.pb.gw.go_old @@ -13,7 +13,7 @@ import ( "io" "net/http" - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" "github.com/grpc-ecosystem/grpc-gateway/runtime" diff --git a/x/transfer/types/tx.go b/x/transfer/types/tx.go index 51d532cf1..4ac120890 100644 --- a/x/transfer/types/tx.go +++ b/x/transfer/types/tx.go @@ -1,7 +1,10 @@ package types import ( - "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" + "context" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" + "google.golang.org/grpc" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -11,7 +14,7 @@ func (msg *MsgTransfer) ValidateBasic() error { return err } - sdkMsg := types.NewMsgTransfer(msg.SourcePort, msg.SourceChannel, msg.Token, msg.Sender, msg.Receiver, msg.TimeoutHeight, msg.TimeoutTimestamp) + sdkMsg := types.NewMsgTransfer(msg.SourcePort, msg.SourceChannel, msg.Token, msg.Sender, msg.Receiver, msg.TimeoutHeight, msg.TimeoutTimestamp, msg.Memo) return sdkMsg.ValidateBasic() } @@ -20,14 +23,56 @@ func (msg *MsgTransfer) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{fromAddress} } -func (msg *MsgTransfer) Route() string { - return types.RouterKey -} - -func (msg *MsgTransfer) Type() string { - return types.TypeMsgTransfer +func Msg_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(types.MsgTransfer) + if err := dec(in); err != nil { + return nil, err + } + conv := &MsgTransfer{ + SourcePort: in.SourcePort, + SourceChannel: in.SourceChannel, + Token: in.Token, + Sender: in.Sender, + Receiver: in.Receiver, + TimeoutHeight: in.TimeoutHeight, + TimeoutTimestamp: in.TimeoutTimestamp, + Memo: in.Memo, + Fee: feerefundertypes.Fee{}, + } + if interceptor == nil { + return srv.(MsgServer).Transfer(ctx, conv) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/neutron.transfer.Msg/Transfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + reqT := req.(*types.MsgTransfer) + convReq := &MsgTransfer{ + SourcePort: reqT.SourcePort, + SourceChannel: reqT.SourceChannel, + Token: reqT.Token, + Sender: reqT.Sender, + Receiver: reqT.Receiver, + TimeoutHeight: reqT.TimeoutHeight, + TimeoutTimestamp: reqT.TimeoutTimestamp, + Memo: reqT.Memo, + Fee: feerefundertypes.Fee{}, + } + return srv.(MsgServer).Transfer(ctx, convReq) + } + return interceptor(ctx, conv, info, handler) } -func (msg MsgTransfer) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) +var MsgServiceDescOrig = grpc.ServiceDesc{ + ServiceName: "ibc.applications.transfer.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Transfer", + Handler: Msg_Transfer_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ibc/applications/transfer/v1/tx.proto", } diff --git a/x/transfer/types/tx.pb.go b/x/transfer/types/tx.pb.go index 43f441351..8d2769294 100644 --- a/x/transfer/types/tx.pb.go +++ b/x/transfer/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: transfer/v1/tx.proto +// source: neutron/transfer/v1/tx.proto package types @@ -7,10 +7,10 @@ import ( context "context" fmt "fmt" types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + types1 "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" types2 "github.com/neutron-org/neutron/x/feerefunder/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -56,7 +56,7 @@ func (m *MsgTransfer) Reset() { *m = MsgTransfer{} } func (m *MsgTransfer) String() string { return proto.CompactTextString(m) } func (*MsgTransfer) ProtoMessage() {} func (*MsgTransfer) Descriptor() ([]byte, []int) { - return fileDescriptor_9d59058d805d54b2, []int{0} + return fileDescriptor_c44193c4a9c18e30, []int{0} } func (m *MsgTransfer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -98,7 +98,7 @@ func (m *MsgTransferResponse) Reset() { *m = MsgTransferResponse{} } func (m *MsgTransferResponse) String() string { return proto.CompactTextString(m) } func (*MsgTransferResponse) ProtoMessage() {} func (*MsgTransferResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d59058d805d54b2, []int{1} + return fileDescriptor_c44193c4a9c18e30, []int{1} } func (m *MsgTransferResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,44 +146,45 @@ func init() { proto.RegisterType((*MsgTransferResponse)(nil), "neutron.transfer.MsgTransferResponse") } -func init() { proto.RegisterFile("transfer/v1/tx.proto", fileDescriptor_9d59058d805d54b2) } +func init() { proto.RegisterFile("neutron/transfer/v1/tx.proto", fileDescriptor_c44193c4a9c18e30) } -var fileDescriptor_9d59058d805d54b2 = []byte{ - // 543 bytes of a gzipped FileDescriptorProto +var fileDescriptor_c44193c4a9c18e30 = []byte{ + // 545 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0xc1, 0x6a, 0xdb, 0x40, - 0x10, 0x95, 0x6a, 0x27, 0x71, 0xd6, 0x24, 0xa4, 0xdb, 0x24, 0x6c, 0x4c, 0x23, 0x05, 0x41, 0x21, + 0x10, 0x95, 0x6a, 0x27, 0x71, 0xd6, 0x24, 0xa4, 0xdb, 0x36, 0x6c, 0x4c, 0x22, 0x05, 0x41, 0x21, 0x97, 0xee, 0xd6, 0x29, 0xa5, 0x90, 0x53, 0x71, 0xa0, 0xd4, 0x87, 0x80, 0x11, 0x81, 0x42, 0x2f, 0xae, 0x24, 0x8f, 0x65, 0x51, 0x6b, 0xd7, 0xdd, 0x5d, 0x99, 0xe4, 0x0f, 0x7a, 0xec, 0x27, 0xe4, - 0x73, 0x72, 0xcc, 0xb1, 0x27, 0x53, 0xec, 0x4b, 0x8f, 0xc5, 0x5f, 0x50, 0x24, 0xad, 0x5c, 0xbb, - 0x87, 0x9e, 0x34, 0x33, 0xef, 0xed, 0xbe, 0x7d, 0x33, 0x23, 0x74, 0xa8, 0x65, 0xc0, 0xd5, 0x10, - 0x24, 0x9b, 0xb6, 0x99, 0xbe, 0xa5, 0x13, 0x29, 0xb4, 0xc0, 0x07, 0x1c, 0x32, 0x2d, 0x05, 0xa7, - 0x15, 0xda, 0x3a, 0x8c, 0x45, 0x2c, 0x0a, 0x90, 0xe5, 0x51, 0xc9, 0x6b, 0x39, 0x91, 0x50, 0xa9, - 0x50, 0x2c, 0x0c, 0x14, 0xb0, 0x69, 0x3b, 0x04, 0x1d, 0xb4, 0x59, 0x24, 0x12, 0x6e, 0x70, 0x37, - 0x09, 0x23, 0x16, 0x09, 0x09, 0x2c, 0x1a, 0x27, 0xc0, 0x75, 0x2e, 0x52, 0x46, 0x86, 0x70, 0x34, - 0x04, 0x90, 0x30, 0xcc, 0xf8, 0x00, 0x24, 0x1b, 0x02, 0x94, 0x65, 0xef, 0x77, 0x0d, 0x35, 0xaf, - 0x55, 0x7c, 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c1, 0x15, 0x60, 0x17, 0x35, + 0x15, 0x7c, 0xcb, 0x80, 0x47, 0xd0, 0x4f, 0x06, 0xc5, 0xe6, 0xeb, 0x3e, 0xaa, 0x42, 0xdd, 0x01, + 0x26, 0x68, 0x67, 0x63, 0xb5, 0x7e, 0xe5, 0x9e, 0x7f, 0x42, 0xb5, 0x2b, 0x15, 0xe3, 0x1e, 0x6a, + 0xac, 0xee, 0xe8, 0x84, 0xfe, 0x7b, 0xe0, 0x74, 0xad, 0x68, 0xeb, 0xe5, 0x7f, 0xe1, 0xaa, 0xa7, + 0x4e, 0xf7, 0x7e, 0xee, 0xd8, 0x0f, 0x73, 0xc7, 0xfe, 0x35, 0x77, 0xec, 0x1f, 0x0b, 0xc7, 0x7a, + 0x58, 0x38, 0xd6, 0xcf, 0x85, 0x63, 0x7d, 0x66, 0x71, 0xa2, 0x47, 0x59, 0x48, 0x23, 0x91, 0x32, + 0xf3, 0xd4, 0x2b, 0x21, 0xe3, 0xca, 0x66, 0x37, 0x8f, 0xbf, 0x9d, 0xbe, 0x9d, 0x80, 0x0a, 0xb7, + 0x8b, 0x7b, 0x7f, 0xf3, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xdd, 0x3b, 0xd6, 0x97, 0x03, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -265,7 +266,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "transfer/v1/tx.proto", + Metadata: "neutron/transfer/v1/tx.proto", } func (m *MsgTransfer) Marshal() (dAtA []byte, err error) { diff --git a/x/transfer/types/tx_test.go b/x/transfer/types/tx_test.go index 9cf46a2cc..d6737e814 100644 --- a/x/transfer/types/tx_test.go +++ b/x/transfer/types/tx_test.go @@ -5,7 +5,7 @@ import ( sdktypes "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/stretchr/testify/require" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" From c3afeb719aa234024450cbedab2b519d0ebcae1f Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 5 Jul 2023 17:59:43 +0300 Subject: [PATCH 002/307] upda dependencies --- app/app.go | 29 +-- go.mod | 14 +- go.sum | 687 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 676 insertions(+), 54 deletions(-) diff --git a/app/app.go b/app/app.go index e598a714a..2b406364e 100644 --- a/app/app.go +++ b/app/app.go @@ -411,7 +411,7 @@ func New( appCodec, keys[banktypes.StoreKey], app.AccountKeeper, - BlockedAddresses(), + app.BlockedAddrs(), authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) @@ -1023,11 +1023,6 @@ func (app *App) AppCodec() codec.Codec { return app.appCodec } -// InterfaceRegistry returns an InterfaceRegistry -func (app *App) InterfaceRegistry() types.InterfaceRegistry { - return app.interfaceRegistry -} - // GetKey returns the KVStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. @@ -1084,15 +1079,6 @@ func (app *App) RegisterTendermintService(clientCtx client.Context) { tmservice.RegisterTendermintService(clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, app.Query) } -// GetMaccPerms returns a copy of the module account permissions -func GetMaccPerms() map[string][]string { - dupMaccPerms := make(map[string][]string) - for k, v := range maccPerms { - dupMaccPerms[k] = v - } - return dupMaccPerms -} - // initParamsKeeper init params keeper and its subspaces func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper { paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) @@ -1187,16 +1173,3 @@ func (app *App) GetTestEvidenceKeeper() e2e.TestEvidenceKeeper { func (app *App) RegisterNodeService(clientCtx client.Context) { nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter()) } - -// BlockedAddresses returns all the app's blocked account addresses. -func BlockedAddresses() map[string]bool { - modAccAddrs := make(map[string]bool) - for acc := range GetMaccPerms() { - modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true - } - - // allow the following addresses to receive funds - delete(modAccAddrs, authtypes.NewModuleAddress(govtypes.ModuleName).String()) - - return modAccAddrs -} diff --git a/go.mod b/go.mod index 86b4cc516..77d9127cd 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/cosmos/cosmos-proto v1.0.0-beta.2 github.com/cosmos/cosmos-sdk v0.47.3 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-go/v7 v7.1.0 + github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.0.0-rc2 github.com/gogo/protobuf v1.3.3 @@ -24,7 +24,6 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.15.1 - github.com/rakyll/statik v0.1.7 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f @@ -85,7 +84,6 @@ require ( github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect - github.com/go-playground/locales v0.14.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/golang/glog v1.1.1 // indirect @@ -142,6 +140,7 @@ require ( github.com/prometheus/client_model v0.4.0 // indirect github.com/prometheus/common v0.44.0 // indirect github.com/prometheus/procfs v0.10.1 // indirect + github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rs/cors v1.8.3 // indirect github.com/rs/zerolog v1.29.1 // indirect @@ -182,14 +181,9 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d - github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1 - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f - //github.com/cosmos/cosmos-sdk => ../cosmos-sdk - //github.com/cosmos/interchain-security => github.com/cosmos/interchain-security v1.0.1-0.20230612141232-8cd0ca920812 - // google.golang.org/grpc => google.golang.org/grpc v1.33.2 + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 - // github.com/CosmWasm/wasmd v0.31.0 => github.com/neutron-org/wasmd v0.31.1-neutron-fixes.0.20230426103416-67da724a1eaf - //github.com/cosmos/admin-module => github.com/Ethernal-Tech/admin-module v0.0.0-20221102105340-e693f4d379c3 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 ) diff --git a/go.sum b/go.sum index 4b35dacd3..acffa4f7c 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,10 @@ +4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a/go.mod h1:wfdC5ZjKSPr7CybKEcgJhUOgeAQW1+7WcyK8OvUilfo= 4d63.com/gochecknoglobals v0.1.0 h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0= 4d63.com/gochecknoglobals v0.1.0/go.mod h1:wfdC5ZjKSPr7CybKEcgJhUOgeAQW1+7WcyK8OvUilfo= +bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 h1:SC+c6A1qTFstO9qmB86mPV2IpYme/2ZoEQ0hrP+wo+Q= +bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= +bitbucket.org/creachadair/shell v0.0.6 h1:reJflDbKqnlnqb4Oo2pQ1/BqmY/eCWcNGHrIUO8qIzc= +bitbucket.org/creachadair/shell v0.0.6/go.mod h1:8Qqi/cYk7vPnsOePHroKXDJYmb5x7ENhtiFtfZq8K+M= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= @@ -16,6 +21,7 @@ cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6 cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.60.0/go.mod h1:yw2G51M9IfRboUH61Us8GqCeF1PzPblB823Mn2q2eAU= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= @@ -31,6 +37,7 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= @@ -200,6 +207,8 @@ cloud.google.com/go/eventarc v1.11.0 h1:fsJmNeqvqtk74FsaVDU6cH79lyZNCYP8Rrv7EhaB cloud.google.com/go/eventarc v1.11.0/go.mod h1:PyUjsUKPWoRBCHeOxZd/lbOOjahV41icXyUY5kSTvVY= cloud.google.com/go/filestore v1.6.0 h1:ckTEXN5towyTMu4q0uQ1Mde/JwTHur0gXs8oaIZnKfw= cloud.google.com/go/filestore v1.6.0/go.mod h1:di5unNuss/qfZTw2U9nhFqo8/ZDSc466dre85Kydllg= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= cloud.google.com/go/firestore v1.9.0 h1:IBlRyxgGySXu5VuW0RgGFlTtLukSnNkpDiEOMkQkmpA= cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= @@ -310,6 +319,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/pubsub v1.5.0/go.mod h1:ZEwJccE3z93Z2HWvstpri00jOg7oO4UZDtKhwDwqF0w= cloud.google.com/go/pubsub v1.30.0 h1:vCge8m7aUKBJYOgrZp7EsNDf6QMd2CAlXZqWTn3yq6s= cloud.google.com/go/pubsub v1.30.0/go.mod h1:qWi1OPS0B+b5L+Sg6Gmc9zD1Y+HaM0MdUr7LsupY1P4= cloud.google.com/go/pubsublite v1.7.0 h1:cb9fsrtpINtETHiJ3ECeaVzrfIVhcGjhhJEjybHXHao= @@ -365,6 +375,7 @@ cloud.google.com/go/servicedirectory v1.9.0 h1:SJwk0XX2e26o25ObYUORXx6torSFiYgsG cloud.google.com/go/servicedirectory v1.9.0/go.mod h1:29je5JjiygNYlmsGz8k6o+OZ8vd4f//bQLtvzkPPT/s= cloud.google.com/go/shell v1.6.0 h1:wT0Uw7ib7+AgZST9eCDygwTJn4+bHMDtZo5fh7kGWDU= cloud.google.com/go/shell v1.6.0/go.mod h1:oHO8QACS90luWgxP3N9iZVuEiSF84zNyLytb+qE2f9A= +cloud.google.com/go/spanner v1.7.0/go.mod h1:sd3K2gZ9Fd0vMPLXzeCrF6fq4i63Q7aTLW/lBIfBkIk= cloud.google.com/go/spanner v1.45.0 h1:7VdjZ8zj4sHbDw55atp5dfY6kn1j9sam9DRNpPQhqR4= cloud.google.com/go/spanner v1.45.0/go.mod h1:FIws5LowYz8YAE1J8fOS7DJup8ff7xJeetWEo5REA2M= cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= @@ -426,6 +437,8 @@ cloud.google.com/go/workflows v1.10.0 h1:FfGp9w0cYnaKZJhUOMqCOJCYT/WlvYBfTQhFWV3 cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= collectd.org v0.3.0 h1:iNBHGw1VvPJxH2B6RiFWFZ+vsjo1lCdRszBeOuwGi00= collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= +contrib.go.opencensus.io/exporter/stackdriver v0.13.4 h1:ksUxwH3OD5sxkjzEqGxNTl+Xjsmu3BnC/300MhSVTSc= +contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc= 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= @@ -438,14 +451,11 @@ cosmossdk.io/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0= cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4= cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= -cosmossdk.io/simapp v0.0.0-20230224204036-a6adb0821462 h1:g8muUHnXL8vhld2Sjilyhb1UQObc+x9GVuDK43TYZns= -cosmossdk.io/simapp v0.0.0-20230224204036-a6adb0821462/go.mod h1:4Dd3NLoLYoN90kZ0uyHoTHzVVk9+J0v4HhZRBNTAq2c= -cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff h1:P1ialzTepD1oxdNPYc5N8Eggq3RdejZq3cJs8YYMs9Y= -cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff/go.mod h1:AKzx6Mb544LjJ9RHmGFHjY9rEOLiUAi8I0F727TR0dY= 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 h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0-beta.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= 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= @@ -457,19 +467,43 @@ github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMb github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/Abirdcfly/dupword v0.0.7 h1:z14n0yytA3wNO2gpCD/jVtp/acEXPGmYu0esewpBt6Q= github.com/Abirdcfly/dupword v0.0.7/go.mod h1:K/4M1kj+Zh39d2aotRwypvasonOyAMH1c/IZJzE0dmk= +github.com/Antonboom/errname v0.1.4/go.mod h1:jRXo3m0E0EuCnK3wbsSVH3X55Z4iTDLl6ZfCxwFj4TM= github.com/Antonboom/errname v0.1.7 h1:mBBDKvEYwPl4WFFNwec1CZO096G6vzK9vvDQzAwkako= github.com/Antonboom/errname v0.1.7/go.mod h1:g0ONh16msHIPgJSGsecu1G/dcF2hlYR/0SddnIAGavU= github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= +github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4= +github.com/Azure/azure-pipeline-go v0.2.2 h1:6oiIS9yaG6XCCzhgAgKFfIWyo4LLCiDhZot6ltoThhY= +github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 h1:qoVeMsc9/fh/yhxVaA0obYjVH/oI/ihrOoMwsLS9KSA= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 h1:Px2UA+2RvSSvv+RvJNuUB6n7rs5Wsel4dXLe90Um2n4= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= +github.com/Azure/azure-storage-blob-go v0.7.0 h1:MuueVOYkufCxJw5YZzF842DY2MBsp+hLuh2apKY0mck= +github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4= +github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/Azure/go-autorest/autorest v0.9.0 h1:MRvx8gncNaXJqOoLmhNjUAKh33JJF8LyxPhomEtOsjs= +github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= +github.com/Azure/go-autorest/autorest/adal v0.8.0 h1:CxTzQrySOxDnKpLjFJeZAS5Qrv/qFPkgLjx5bOAi//I= +github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= +github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= +github.com/Azure/go-autorest/autorest/date v0.2.0 h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM= +github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= +github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.3.0 h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc= +github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= +github.com/Azure/go-autorest/logger v0.1.0 h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY= +github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= +github.com/Azure/go-autorest/tracing v0.5.0 h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k= +github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= @@ -482,6 +516,8 @@ github.com/DATA-DOG/go-sqlmock v1.3.3 h1:CWUqKXe0s8A2z6qCgkP4Kru7wC11YoAnoupUKFD github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= +github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= @@ -492,16 +528,25 @@ github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Masterminds/goutils v1.1.0 h1:zukEsf/1JZwCMgHiK3GZftabmxiCw4apj3a28RPBiVg= +github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/sprig v2.15.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= +github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= +github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= +github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= +github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/OpenPeeDeeP/depguard v1.0.1/go.mod h1:xsIw86fROiiwelg+jB2uM9PiKihMMmUx/1V+TNhjQvM= github.com/OpenPeeDeeP/depguard v1.1.1 h1:TSUznLjvp/4IUP+OQ0t/4jF4QUyxIcVX8YnghZdunyA= github.com/OpenPeeDeeP/depguard v1.1.1/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I= @@ -512,14 +557,20 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWso github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= +github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= +github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= +github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c3fqvvgKm5o= 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.52 h1:PLSK6pwn8mYdaoaCZEMsXBpBotr4HHn9abU0yMQt0NI= +github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6 h1:1d9pzdbkth4D9AX6ndKSl7of3UTV0RYl3z64U2dXMGo= github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= +github.com/adlio/schema v1.1.13/go.mod h1:L5Z7tw+7lRK1Fnpi/LT/ooCP1elkXn0krMWBQHUhEDE= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= github.com/aead/siphash v1.0.1 h1:FwHfE/T45KPKYuuSAKyyvE+oPWcaQ+CUmFW0bPlM+kg= @@ -548,31 +599,48 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/andybalholm/brotli v1.0.0 h1:7UCwP93aiSfvWpapti8g88vVVGp2qqtGyePsSuDafo4= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/aokoli/goutils v1.0.1 h1:7fpzNGoJ3VA8qcrm++XEE1QUe0mIwNeLa02Nwq7RDkg= +github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db h1:nxAtV4VajJDhKysp2kdcJZsq8Ss1xSA0vZTkVHHJd0E= github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0 h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847 h1:rtI0fD4oG/8eVokGVPYJEW1F88p1ZNgXiEIs9thEE4A= +github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= +github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw= github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/ashanbrown/forbidigo v1.2.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI= github.com/ashanbrown/forbidigo v1.3.0 h1:VkYIwb/xxdireGAdJNZoo24O4lmnEWkactplBlWTShc= github.com/ashanbrown/forbidigo v1.3.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI= +github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde/go.mod h1:oG9Dnez7/ESBqc4EdrdNlryeo7d0KcW1ftXHm7nU/UU= github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/aws/aws-lambda-go v1.13.3 h1:SuCy7H3NLyp+1Mrfp+m80jcbi9KYWAs9/BXwppwRDzY= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.23.20/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.36.30/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= 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= @@ -610,6 +678,11 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA= +github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/bketelsen/crypt v0.0.4 h1:w/jqZtC9YD4DS/Vp9GhWfWcCpuAL58oTnLoI8vE9YHU= +github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/bkielbasa/cyclop v1.2.0 h1:7Jmnh0yL2DjKfw28p86YTd/B4lRGcNuu12sKE35sM7A= github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= @@ -624,9 +697,12 @@ github.com/breml/bidichk v0.2.3 h1:qe6ggxpTfA8E75hdjWPZ581sY3a2lnl0IRxLQFelECI= github.com/breml/bidichk v0.2.3/go.mod h1:8u2C6DnAy0g2cEq+k/A2+tr9O1s+vHGxWn0LTc70T2A= github.com/breml/errchkjson v0.3.0 h1:YdDqhfqMT+I1vIxPSas44P+9Z9HzJwCeAzjB8PxP1xw= github.com/breml/errchkjson v0.3.0/go.mod h1:9Cogkyv9gcT8HREpzi3TiqBxCqDzo8awa92zSDFcofU= +github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= +github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c= github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= github.com/btcsuite/btcd/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= @@ -677,6 +753,7 @@ github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInq github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g= github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk= @@ -684,12 +761,17 @@ github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charithe/durationcheck v0.0.8/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= github.com/charithe/durationcheck v0.0.9 h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk= github.com/charithe/durationcheck v0.0.9/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= +github.com/chavacava/garif v0.0.0-20210405164556-e8a0a408d6af/go.mod h1:Qjyv4H3//PWVzTeCezG2b9IRn6myJxJSr4TD/xo6ojU= github.com/chavacava/garif v0.0.0-20220630083739-93517212f375 h1:E7LT642ysztPWE0dfz43cWOvMiF42DyTRC+eZIaO4yI= github.com/chavacava/garif v0.0.0-20220630083739-93517212f375/go.mod h1:4m1Rv7xfuwWPNKXlThldNuJvutYM6J95wNuuVmn55To= +github.com/checkpoint-restore/go-criu/v5 v5.0.0 h1:TW8f/UvntYoVDMN1K2HlT82qH1rb0sOjpGw3m6Ym+i4= +github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M= github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -701,6 +783,8 @@ github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObk 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/cilium/ebpf v0.6.2 h1:iHsfF/t4aW4heW2YKfeHrVPGdtYTL4C4KocpM8KTSnI= +github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3 h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA= @@ -713,6 +797,7 @@ github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY= github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= +github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U= github.com/cloudflare/cloudflare-go v0.14.0 h1:gFqGlGl/5f9UGXAaKapCGUfaTCgRKKnzu2VvzMZlOFA= github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= @@ -726,6 +811,7 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195 h1:58f1tJ1ra+zFINPlwLWvQsR9CzAKt2e+EWV2yX9oXQ4= github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= @@ -746,6 +832,8 @@ github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/coinbase/kryptology v1.8.0 h1:Aoq4gdTsJhSU3lNWsD5BWmFSz2pE0GlmrljaOxepdYY= github.com/coinbase/kryptology v1.8.0/go.mod h1:RYXOAPdzOGUe3qlSFkMGn58i3xUA8hmxYHksuq+8ciI= +github.com/coinbase/rosetta-sdk-go v0.6.10/go.mod h1:J/JFMsfcePrjJZkwQFLh+hJErkAmdm9Iyy3D5Y0LfXo= +github.com/coinbase/rosetta-sdk-go v0.7.0/go.mod h1:7nD3oBPIiHqhRprqvMgPoGxe/nyq3yftRmpsy29coWE= 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/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= @@ -754,6 +842,10 @@ github.com/cometbft/cometbft v0.37.2 h1:XB0yyHGT0lwmJlFmM4+rsRnczPlHoAKFX6K8Zgc2 github.com/cometbft/cometbft v0.37.2/go.mod h1:Y2MMMN//O5K4YKd8ze4r9jmk4Y7h0ajqILXbH5JQFVs= 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.0.0-20200817220745-f173e6211efb/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/confio/ics23/go v0.6.3/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/confio/ics23/go v0.6.6/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/confio/ics23/go v0.7.0/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= 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= @@ -762,14 +854,22 @@ github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSM github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= github.com/consensys/gnark-crypto v0.5.3 h1:4xLFGZR3NWEH2zy+YzvzHicpToQR8FXFbfLNvpGB+rE= github.com/consensys/gnark-crypto v0.5.3/go.mod h1:hOdPlWQV1gDLp7faZVeg8Y0iEPFaOUnCc4XeCCk96p0= +github.com/containerd/console v1.0.2 h1:Pi6D+aZXM+oUw1czuKgH5IJ+y0jhYcwBJfx5/Ghn9dE= +github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= github.com/containerd/containerd v1.6.8 h1:h4dOFDwzHmqFEP754PgfgTeVXFnLiRc6kiqC7tplDJs= github.com/containerd/containerd v1.6.8/go.mod h1:By6p5KqPK0/7/CgO/A6t/Gz+CUYUu2zf1hUaaymVXB0= +github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= +github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/containerd/typeurl v1.0.2 h1:Chlt8zIieDbzQFzXzAeBEF92KhExuE4p9p92/QmY7aY= github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= +github.com/coreos/bbolt v1.3.2 h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.13+incompatible h1:8F3hqu9fGYLBifCmRCJsicFqDx/D68Rt3q1JMazcgBQ= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -777,16 +877,27 @@ github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmf github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7 h1:u9SHYsPQNyt5tgDm3YN7+9dYrpK96E5wFilTFWIDZOM= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a h1:W8b4lQ4tFF21aspRGoBuCNV6V2fFJBF+pm1J6OY8Lys= +github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf h1:CAKfRE2YtTUIjjh1bkBtyYFaUT/WmOqsJjgtihT0vMI= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU= 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-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32/go.mod h1:kwMlEC4wWvB48zAShGKVqboJL6w4zCLesaNQ3YLU2BQ= 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.44.2/go.mod h1:fwQJdw+aECatpTvQTo1tSfHEsxACdZYU80QCZUPnHr4= +github.com/cosmos/cosmos-sdk v0.44.3/go.mod h1:bA3+VenaR/l/vDiYzaiwbWvRPWHMBX2jG0ygiFtiBp0= +github.com/cosmos/cosmos-sdk v0.45.1/go.mod h1:XXS/asyCqWNWkx2rW6pSuen+EVcpAFxq6khrhnZgHaQ= +github.com/cosmos/cosmos-sdk v0.45.2-0.20220901181011-06d4a64bf808/go.mod h1:XXS/asyCqWNWkx2rW6pSuen+EVcpAFxq6khrhnZgHaQ= github.com/cosmos/cosmos-sdk v0.47.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM= github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk= github.com/cosmos/cosmos-sdk/db v1.0.0-beta.1.0.20220726092710-f848e4300a8a h1:2humuGPw3O5riJVFq/E2FRjF57UrO97W1qJcGVmK+6k= @@ -799,27 +910,36 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ 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.15.0-rc3.0.20201009144442-230e9bdf52cd/go.mod h1:3xOIaNNX19p0QrX0VqWa6voPRoJRGGYtny+DH8NEPvE= +github.com/cosmos/iavl v0.15.0-rc5/go.mod h1:WqoPL9yPTQ85QBMT45OOUzPxG/U/JcJoN7uMjgxke/I= +github.com/cosmos/iavl v0.15.3/go.mod h1:OLjQiAQ4fGD2KDZooyJG9yz+p2ao2IAYSbke8mVvSA4= +github.com/cosmos/iavl v0.17.1/go.mod h1:7aisPZK8yCpQdy3PMvKeO+bhq1NwDjUwjzxwwROUxFk= +github.com/cosmos/iavl v0.17.3/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-go/v7 v7.0.1 h1:NIBNRWjlOoFvFQu1ZlgwkaSeHO5avf4C1YQiWegt8jw= -github.com/cosmos/ibc-go/v7 v7.0.1/go.mod h1:vEaapV6nuLPQlS+g8IKmxMo6auPi0i7HMv1PhViht/E= -github.com/cosmos/ibc-go/v7 v7.1.0 h1:SCLgs7tqVnzdIDO5MRLgovAnc696vTTKl+8qsTu8IMM= -github.com/cosmos/ibc-go/v7 v7.1.0/go.mod h1:7MptlWeIyqmDiuJeRAFqBvXKY8Hybd+rF8vMSmGd2zg= +github.com/cosmos/ibc-go v1.2.2 h1:bs6TZ8Es1kycIu2AHlRZ9dzJ+mveqlLN/0sjWtRH88o= +github.com/cosmos/ibc-go v1.2.2/go.mod h1:XmYjsRFOs6Q9Cz+CSsX21icNoH27vQKb3squgnCOCbs= +github.com/cosmos/ibc-go/v3 v3.0.0 h1:XUNplHVS51Q2gMnTFsFsH9QJ7flsovMamnltKbEgPQ4= +github.com/cosmos/ibc-go/v3 v3.0.0/go.mod h1:Mb+1NXiPOLd+CPFlOC6BKeAUaxXlhuWenMmRiUiSmwY= +github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= +github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= 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/interchain-security v1.0.1-0.20230612141232-8cd0ca920812 h1:r5sBvbEKLVUNcVpL9jUEC/scgYFhVHAgvc/havsyKuU= -github.com/cosmos/interchain-security v1.0.1-0.20230612141232-8cd0ca920812/go.mod h1:U+0tyC7GQKg4s16Aj2KORdINXkCfm3b3h2ZO85r9bt0= github.com/cosmos/interchain-security/v3 v3.0.0-rc2 h1:bCPsPX8pDRizqRV1i+9gX9RYAeKRBCmVd3C7NC3weTE= github.com/cosmos/interchain-security/v3 v3.0.0-rc2/go.mod h1:HKHw9u4xMm5QJV76A03ORAXB2zisgpcunXZSca8TBdg= 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.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= github.com/cosmos/ledger-cosmos-go v0.12.1/go.mod h1:dhO6kj+Y+AHIOgAe4L9HL/6NDdyyth4q238I9yFpD2g= +github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI= +github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI= 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 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= 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.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= @@ -835,16 +955,23 @@ github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDU github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c h1:/ovYnF02fwL0kvspmy9AuyKg1JhdTRUgPw4nUxd9oZM= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= +github.com/cyphar/filepath-securejoin v0.2.2 h1:jCwT2GTP+PY5nBz3c/YL5PAIbusElVrPujOBSCj8xRg= +github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= +github.com/daixiang0/gci v0.2.9/go.mod h1:+4dZ7TISfSmqfAGv59ePaHfNzgGtIkHAhhdKggP1JAc= github.com/daixiang0/gci v0.8.1 h1:T4xpSC+hmsi4CSyuYfIJdMZAr9o7xZmHpQVygMghGZ4= github.com/daixiang0/gci v0.8.1/go.mod h1:EpVfrztufwVgQRXjnX4zuNinEpLj5OmMjtu/+MB0V0c= +github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= +github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= github.com/dave/jennifer v1.2.0 h1:S15ZkFMRoJ36mGAQgWL1tnr0NQJh9rZ8qatseX/VbBc= github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= +github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4= github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= @@ -860,8 +987,12 @@ github.com/deepmap/oapi-codegen v1.8.2 h1:SegyeYGcdi0jLLrpbCMoJxnUUn8GBXHsvr4rbz github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= github.com/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= +github.com/denis-tingajkin/go-header v0.4.2 h1:jEeSF4sdv8/3cT/WY8AgDHUoItNSoEZ7qg9dX7pc218= +github.com/denis-tingajkin/go-header v0.4.2/go.mod h1:eLRHAVXzE5atsKAnNRDB90WHCFFnBUn4RN0nRcs1LJA= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.1/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= +github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= 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= @@ -877,6 +1008,7 @@ github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WA github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954 h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 h1:Izz0+t1Z5nI16/II7vuEo/nHjodOg0p7+OiDpjX5t1E= github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= @@ -889,8 +1021,10 @@ github.com/docker/docker v20.10.19+incompatible h1:lzEmjivyNHFHMNAFLXORMBXyGIhw/ github.com/docker/docker v20.10.19+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48 h1:iZOop7pqsg+56twTopWgwCGxdB5SI2yDO8Ti7eTRliQ= github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7 h1:tYwu/z8Y0NkkzGEh3z21mSWggMg4LwLRFucLS7TjARg= @@ -899,8 +1033,11 @@ github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:Htrtb github.com/dustin/go-humanize v1.0.0/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 v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= 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/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813 h1:NgO45/5mBLRVfiXerEFzH6ikcZ7DNRPS639xFg3ENzU= +github.com/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= github.com/eapache/go-resiliency v1.1.0 h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= @@ -909,10 +1046,13 @@ github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/eclipse/paho.mqtt.golang v1.2.0 h1:1F8mhG9+aO5/xpdtFkW4SxOJB67ukuDC3t2y2qayIX0= github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= +github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25 h1:2vLKys4RBU4pn2T/hjXMbvwTr1Cvy5THHrQkbeY9HRk= +github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25/go.mod h1:hTr8+TLQmkUkgcuh3mcr5fjrT9c64ZzsBCdCEC6UppY= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -922,25 +1062,36 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/go-control-plane v0.11.0 h1:jtLewhRR2vMRNnq2ZZUoCjUlgut+Y0+sDDWPOfwOi1o= github.com/envoyproxy/go-control-plane v0.11.0/go.mod h1:VnHyVMpzcLvCFt9yUz1UnCwHLhwx1WguiVDV7pTG/tI= +github.com/envoyproxy/protoc-gen-validate v0.0.14/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= github.com/envoyproxy/protoc-gen-validate v0.10.0 h1:oIfnZFdC0YhpNNEX+SuIqko4cqqVZeN9IGTrhZje83Y= github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= +github.com/esimonov/ifshort v1.0.2/go.mod h1:yZqNJUrNn20K8Q9n2CrjTKYyVEmX209Hgu+M1LBpeZE= github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= +github.com/ethereum/go-ethereum v1.9.25/go.mod h1:vMkFiYLHI4tgPw4k2j4MHKoovchFE8plZ0M9VMk4/oM= github.com/ethereum/go-ethereum v1.10.17 h1:XEcumY+qSr1cZQaWsQs5Kck3FHB0V2RiMHPdTBJ+oT8= 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-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= 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-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= 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.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= +github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= @@ -950,6 +1101,7 @@ github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW 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-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90 h1:WXb3TSNmHp2vHoCroCIB1foO/yQ36swABL8aOVeDpgg= @@ -960,12 +1112,17 @@ github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db h1:gb2Z18BhTPJPpLQW github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8 h1:a9ENSRDFBUPkJ5lCgVZh26+ZbGyoVJG7yb5SSzF5H54= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= 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.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fullstorydev/grpcurl v1.6.0 h1:p8BB6VZF8O7w6MxGr3KJ9E6EVKaswCevSALK6FBtMzA= +github.com/fullstorydev/grpcurl v1.6.0/go.mod h1:ZQ+ayqbKMJNhzLmbpCiurTVlaK2M/3nqZCxaQ2Ze/sM= +github.com/fzipp/gocyclo v0.3.1/go.mod h1:DJHO6AUmbdqj2ET4Z9iArSuwWgYDRryYt2wASxc7x3E= github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI= @@ -981,8 +1138,8 @@ github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= -github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= +github.com/gin-gonic/gin v1.7.0 h1:jGB9xAJQ12AIGNB4HguylppmDK1Am9ppF7XnGXXJuoU= +github.com/gin-gonic/gin v1.7.0/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd h1:r04MMPyLHj/QwZuMJ5+7tJcBr1AQjpiAK/rZWRrQT7o= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31 h1:gclg6gY70GLy3PbkQ1AERPfmLMMagS60DKF78eWwLn8= @@ -990,6 +1147,7 @@ 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-chi/chi/v5 v5.0.7 h1:rDTPXLDHGATaeHvVlLcR4Qe0zftYethFucbjVQ1PxU8= github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-critic/go-critic v0.5.6/go.mod h1:cVjj0DfqewQVIlIAGexPCaGaZDAqGE29PYDDADIVNEo= github.com/go-critic/go-critic v0.6.5 h1:fDaR/5GWURljXwF8Eh31T2GZNz9X4jeboS912mWF8Uo= github.com/go-critic/go-critic v0.6.5/go.mod h1:ezfP/Lh7MA6dBNn4c6ab5ALv3sKnZVLx37tr00uuaOY= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= @@ -1022,6 +1180,8 @@ 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 h1:2lOsA72HgjxAuMlKpFiCbHTvu44PIVkZ5hqm3RSdI/E= github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= +github.com/go-ole/go-ole v1.2.5 h1:t4MGB5xEDZvXI+0rMjjsfBsD7yAgp/s9ZDkL1JndXwY= +github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= @@ -1036,27 +1196,41 @@ github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/j github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= -github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= +github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= +github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= +github.com/go-redis/redis v6.15.8+incompatible h1:BKZuG6mCnRj5AOaWJXoCgf6rqTYnYJLe4en2hxT7r9o= +github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= +github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= +github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-toolsmith/astcast v1.0.0 h1:JojxlmI6STnFVG9yOImLeGREv8W2ocNUM+iOhR6jE7g= github.com/go-toolsmith/astcast v1.0.0/go.mod h1:mt2OdQTeAQcY4DQgPSArJjHCcOwlX+Wl/kwN+LbLGQ4= +github.com/go-toolsmith/astcopy v1.0.0/go.mod h1:vrgyG+5Bxrnz4MZWPF+pI4R8h3qKRjjyvV/DSez4WVQ= github.com/go-toolsmith/astcopy v1.0.2 h1:YnWf5Rnh1hUudj11kei53kI57quN/VH6Hp1n+erozn0= github.com/go-toolsmith/astcopy v1.0.2/go.mod h1:4TcEdbElGc9twQEYpVo/aieIXfHhiuLh4aLAck6dO7Y= +github.com/go-toolsmith/astequal v1.0.0/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= github.com/go-toolsmith/astequal v1.0.3 h1:+LVdyRatFS+XO78SGV4I3TCEA0AC7fKEGma+fH+674o= github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= github.com/go-toolsmith/astfmt v1.0.0 h1:A0vDDXt+vsvLEdbMFJAUBI/uTbRw1ffOPnxsILnFL6k= github.com/go-toolsmith/astfmt v1.0.0/go.mod h1:cnWmsOAuq4jJY6Ct5YWlVLmcmLMn1JUPuQIHCY7CJDw= +github.com/go-toolsmith/astinfo v0.0.0-20180906194353-9809ff7efb21 h1:wP6mXeB2V/d1P1K7bZ5vDUO3YqEzcvOREOxZPEu3gVI= +github.com/go-toolsmith/astinfo v0.0.0-20180906194353-9809ff7efb21/go.mod h1:dDStQCHtmZpYOmjRP/8gHHnCCch3Zz3oEgCdZVdtweU= github.com/go-toolsmith/astp v1.0.0 h1:alXE75TXgcmupDsMK1fRAy0YUzLzqPVvBKoyWV+KPXg= github.com/go-toolsmith/astp v1.0.0/go.mod h1:RSyrtpVlfTFGDYRbrjyWP1pYu//tSFcvdYrA8meBmLI= +github.com/go-toolsmith/pkgload v1.0.0 h1:4DFWWMXVfbcN5So1sBNW9+yeiMqLFGl1wFLTL5R0Tgg= +github.com/go-toolsmith/pkgload v1.0.0/go.mod h1:5eFArkbO80v7Z0kdngIxsRXRMTaX4Ilcwuh3clNrQJc= github.com/go-toolsmith/strparse v1.0.0 h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4= github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= +github.com/go-toolsmith/typep v1.0.0/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= github.com/go-toolsmith/typep v1.0.2 h1:8xdsa1+FSIH/RhEkgnD1j2CJOy5mNllW1Q9tRiYwvlk= github.com/go-toolsmith/typep v1.0.2/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b h1:khEcpUM4yFcxg4/FHQWkvVRmgijNXRfzkIDHh23ggEo= @@ -1071,8 +1245,6 @@ github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= -github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4 h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA= @@ -1082,6 +1254,8 @@ github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14j github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= github.com/gofrs/uuid v4.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= @@ -1096,6 +1270,7 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/glog v1.1.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= github.com/golang/glog v1.1.1/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-20190129154638-5b532d6fd5ef/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= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -1111,6 +1286,7 @@ github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71 github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -1132,6 +1308,8 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= @@ -1139,10 +1317,13 @@ github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5 github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= +github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613/go.mod h1:SyvUF2NxV+sN8upjjeVYr5W7tyxaT1JVtvhKhOn2ii8= github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= +github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 h1:amWTbTGqOZ71ruzrdA+Nx5WA3tV1N0goTspwmKCQvBY= github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2/go.mod h1:9wOXstvyDRshQ9LggQuzBCGysxs3b6Uo/1MvYCR2NMs= +github.com/golangci/golangci-lint v1.42.1/go.mod h1:MuInrVlgg2jq4do6XI1jbkErbVHVbwdrLLtGv6p2wPI= github.com/golangci/golangci-lint v1.50.1 h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY= github.com/golangci/golangci-lint v1.50.1/go.mod h1:AQjHBopYS//oB8xs0y0M/dtxdKHkdhl0RvmjUct0/4w= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= @@ -1152,6 +1333,7 @@ github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29M github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= github.com/golangci/misspell v0.3.5 h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo= github.com/golangci/misspell v0.3.5/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= +github.com/golangci/revgrep v0.0.0-20210208091834-cd28932614b5/go.mod h1:LK+zW4MpyytAWQRz0M4xnzEk50lSvqDQKfx304apFkY= github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6 h1:DIPQnGy2Gv2FSA4B/hh8Q7xx3B7AIDk3DAMeHclH1vQ= github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= @@ -1160,6 +1342,9 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg= +github.com/google/certificate-transparency-go v1.1.1 h1:6JHXZhXEvilMcTjR4MGZn5KV0IRkcFl4CJx5iHVhjFE= +github.com/google/certificate-transparency-go v1.1.1/go.mod h1:FDKqPvSXawb2ecErVRrD+nfy23RCzyl7eqVCEmlT1Zs= github.com/google/flatbuffers v1.11.0 h1:O7CEyB8Cb3/DmtxODGtLHcEvpr81Jm5qLg/hsHnxA2A= github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= @@ -1198,6 +1383,7 @@ github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200507031123-427632fa3b1c/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= @@ -1212,6 +1398,9 @@ github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/trillian v1.3.11 h1:pPzJPkK06mvXId1LHEAJxIegGgHzzp/FUnycPYfoCMI= +github.com/google/trillian v1.3.11/go.mod h1:0tPraVHrSDkA3BO6vKX67zgLXs6SsOAbHEivX+9mPgw= +github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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= @@ -1238,10 +1427,16 @@ github.com/googleapis/go-type-adapters v1.0.0 h1:9XdMn+d/G57qq1s8dNc5IesGCXHf6V2 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 h1:tlyzajkF3030q6M8SvmJSemC9DTHL/xaMa18b65+JM4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gookit/color v1.4.2 h1:tXy44JFSFkKnELV6WaMo/lLfu/meqITX3iAV52do7lk= +github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= +github.com/gordonklaus/ineffassign v0.0.0-20210225214923-2e10b2664254/go.mod h1:M9mZEtGIsR1oDaZagNPNG9iq9n2HrhZ17dsXk73V3Lw= github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 h1:PVRE9d4AQKmbelZ7emNig1+NT27DUmKZn5qXxfio54U= github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75 h1:f0n1xnMSmBLzVfsMMvriDyA75NB/oBgILX2GcHXIQzY= +github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= @@ -1251,29 +1446,48 @@ github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= +github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= +github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= +github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= +github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= +github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= +github.com/gostaticanalysis/forcetypeassert v0.0.0-20200621232751-01d4955beaa5/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gotestyourself/gotestyourself v2.2.0+incompatible h1:AQwinXlbQR2HvPjQZOmDhRqsv5mZf+Jb1RnSLxcqZcI= github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= +github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= github.com/graph-gophers/graphql-go v1.3.0 h1:Eb9x/q6MFpCLz7jBCiP/WTxjSDrYLR1QY41SORZyNJ0= github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= +github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= +github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.2.1/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= 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.0/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.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= +github.com/grpc-ecosystem/grpc-gateway v1.14.7/go.mod h1:oYZKL012gGh6LMyg/xA7Q2yq6j8bu0wa+9w14EEthWU= 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.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= @@ -1285,11 +1499,17 @@ github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is= github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= +github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/api v1.20.0 h1:9IHTjNVSZ7MIwjlW3N3a7iGiykCMDpxZu8jsxFJh0yc= github.com/hashicorp/consul/api v1.20.0/go.mod h1:nR64eD44KQ59Of/ECwt2vUmIK2DKsDzAwTmwmLl8Wpo= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.3.0 h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/consul/sdk v0.8.0 h1:OJtKBtEjboEZvG6AOUdh4Z1Zbyu0WcxQ0qatRrZHTVU= +github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -1301,6 +1521,8 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= 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-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM= github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= @@ -1309,6 +1531,7 @@ github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjh github.com/hashicorp/go-msgpack v0.5.3 h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-retryablehttp v0.5.3 h1:QlWt0KvWT0lq8MFppF9tsJGF+ynG7ztc2KIPhzRGk7s= @@ -1333,6 +1556,7 @@ github.com/hashicorp/go.net v0.0.1 h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgj github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= @@ -1341,17 +1565,27 @@ github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0 h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= +github.com/hashicorp/mdns v1.0.4 h1:sY0CMhFmjIPDMlTB+HfymFHCaYLhgifZ0QhjaYKD/UQ= +github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= github.com/hashicorp/memberlist v0.1.3 h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/memberlist v0.3.0 h1:8+567mCcFDnS5ADl7lrpxPMWiFCElyUEeW0gtj34fMA= +github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= +github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY= github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= +github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87/go.mod h1:XGsKKeXxeRr95aEOgipvluMPlgjr7dGlk9ZTWOjcUcg= 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 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= +github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/holiman/uint256 v1.2.0 h1:gpSYcPLWGv4sG43I2mVLiDZCNDh/EpGjSk8tmtxitHM= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= @@ -1360,20 +1594,29 @@ github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3 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/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo= +github.com/huandu/xstrings v1.2.0 h1:yPeWdRnmynF7p+lLYz0H2tthW9lqhMJrQV/U7yy4wX0= +github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/hudl/fargo v1.4.0 h1:ZDDILMbB37UlAVLlWcJ2Iz1XuahZZTDZfdCKeclfq2s= github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= +github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204 h1:+EYBkW+dbi3F/atB+LSQZSWh7+HNrV3A/N0y6DSoy9k= github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150 h1:vlNjIqmUZ9CMAWsbURYl3a6wZbw7q5RHVvlXTNS/Bs8= github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6jq8pNA= github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= +github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= +github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639 h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= +github.com/improbable-eng/grpc-web v0.14.1/go.mod h1:zEjGHa8DAlkoOXmswrNvhUGEYQA9UI7DhrGeHR1DMGU= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= @@ -1381,6 +1624,7 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/flux v0.65.1 h1:77BcVUCzvN5HMm8+j9PRBQ4iZcu98Dl4Y9rf+J5vhnc= github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY= +github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/influxdata/influxdb v1.8.3 h1:WEypI1BQFTT4teLM+1qkEcvUi0dAvopAI/ir0vAiBg8= github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= github.com/influxdata/influxdb-client-go/v2 v2.4.0 h1:HGBfZYStlx3Kqvsv1h2pJixbCl/jhnFtxpKFAv9Tu5k= @@ -1404,6 +1648,7 @@ github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368 h1:+TUUmaF github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= github.com/informalsystems/tm-load-test v1.3.0 h1:FGjKy7vBw6mXNakt+wmNWKggQZRsKkEYpaFk/zR64VA= github.com/informalsystems/tm-load-test v1.3.0/go.mod h1:OQ5AQ9TbT5hKWBNIwsMjn6Bf4O0U4b1kRc+0qZlQJKw= +github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= @@ -1419,8 +1664,11 @@ github.com/jgautheron/goconst v1.5.1 h1:HxVbL1MhydKs8R8n/HE5NPvzfaYmQJA3o879lE4+ github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f h1:BNuUg9k2EiJmlMwjoef3e8vZLHplbVw6DrjGFjLL+Yo= github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f/go.mod h1:qr2b5kx4HbFS7/g4uYO5qv9ei8303JMsC7ESbYiqr2Q= +github.com/jhump/protoreflect v1.6.1/go.mod h1:RZQ/lnuN+zqeRVpQigTwO6o0AJUkxbnSnpuG7toUTG4= +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.0/go.mod h1:TOQpc2SLx6huPfoFGK3UOnEG+u02D3C1GeosjupAKCA= 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= @@ -1432,8 +1680,12 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGw github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +github.com/jmoiron/sqlx v1.2.0 h1:41Ip0zITnmWNR/vHV+S4m+VoUivnWY5E4OJfLZjCJMA= +github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jonboulle/clockwork v0.2.0 h1:J2SLSdy7HgElq8ekSl2Mxh6vrRNFxqbXGenYH2I02Vs= +github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/jrick/logrotate v1.0.0 h1:lQ1bL/n9mBNeIXoTUoYRlK4dHuNJVofX9oWqBtPnSzI= @@ -1443,6 +1695,7 @@ github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= @@ -1452,20 +1705,30 @@ github.com/jsternberg/zap-logfmt v1.0.0 h1:0Dz2s/eturmdUS34GM82JwNEdQ9hPoJgqptcE github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/juju/ratelimit v1.0.1 h1:+7AIFJVQ0EQgq/K9+0Krm7m530Du7tIz0METWzN0RgY= +github.com/juju/ratelimit v1.0.1/go.mod h1:qapgC/Gy+xNh9UxzV13HGGl/6UXNN+ct+vwSgWNm/qk= +github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/julz/importas v0.0.0-20210419104244-841f0c0fe66d/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5 h1:PJr+ZMXIecYc1Ey2zucXdR73SMBtgjPgwa31099IMv0= 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 h1:2jNeR4YUziVtswNP9sEFAI913cVrzH85T+8Q6LpYbT0= github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= +github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM= +github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= +github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/karalabe/usb v0.0.2 h1:M6QQBNxF+CQ8OFvxrT90BA0qBOXymndZnk5q235mFc4= github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d h1:Z+RDyXzjKE0i2sTjZ/b1uxiGtPhFy34Ou/Tk0qwN0kM= +github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/errcheck v1.6.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/errcheck v1.6.2 h1:uGQ9xI8/pgc9iOoCe7kWQgRE6SBTrCGmTSf0LrEtY7c= github.com/kisielk/errcheck v1.6.2/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= @@ -1474,8 +1737,12 @@ github.com/kkHAIKE/contextcheck v1.1.3 h1:l4pNvrb8JSwRd51ojtcOxOeHJzHek+MtOyXbaR github.com/kkHAIKE/contextcheck v1.1.3/go.mod h1:PG/cwd6c0705/LM0KTr1acO2gORUxkSVWyLJOFW5qoo= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 h1:FOOIBWrEkLgmlgGfMuZT83xIwfPDxEI2OHu6xUmJMFE= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/kkdai/bstream v1.0.0 h1:Se5gHwgp2VT2uHfDrkbbgbgEvV9cimLELwrPJctSjg8= +github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.10.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= 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= @@ -1489,6 +1756,7 @@ github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH6 github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8= @@ -1496,6 +1764,7 @@ github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -1504,8 +1773,10 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kulti/thelper v0.4.0/go.mod h1:vMu2Cizjy/grP+jmsvOFDx1kYP6+PD1lqg4Yu5exl2U= github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= +github.com/kunwardeep/paralleltest v1.0.2/go.mod h1:ZPqNm1fVHPllh5LPVujzbVz1JN2GhLxSfY+oqUsvG30= github.com/kunwardeep/paralleltest v1.0.6 h1:FCKYMF1OF2+RveWlABsdnmsvJrei5aoyZoaGS+Ugg8g= github.com/kunwardeep/paralleltest v1.0.6/go.mod h1:Y0Y0XISdZM5IKm3TREQMZ6iteqn1YuwCsJO/0kL9Zes= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -1516,8 +1787,10 @@ github.com/labstack/echo/v4 v4.2.1 h1:LF5Iq7t/jrtUuSutNuiEWtB5eiHfZ5gSe2pcu5exjQ github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= +github.com/ldez/gomoddirectives v0.2.2/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= +github.com/ldez/tagliatelle v0.2.0/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= github.com/ldez/tagliatelle v0.3.1 h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM= github.com/ldez/tagliatelle v0.3.1/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= @@ -1527,9 +1800,16 @@ github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/leonklingele/grouper v1.1.0 h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg= github.com/leonklingele/grouper v1.1.0/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= +github.com/letsencrypt/pkcs11key/v4 v4.0.0 h1:qLc/OznH7xMr5ARJgkZCCWk+EomQkiNTOoOF5LAgagc= +github.com/letsencrypt/pkcs11key/v4 v4.0.0/go.mod h1:EFUvBDay26dErnNb70Nd0/VW3tJiIbETBPTl9ATXQag= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= 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 h1:143Bb8f8DuGWck/xpNUOckBVYfFbBTnLevfRZ1aVVqo= @@ -1538,13 +1818,19 @@ github.com/lightstep/lightstep-tracer-go v0.18.1 h1:vi1F1IQ8N7hNWytK9DpJsUfQhGuN github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.8.0 h1:H4L/LhP7GOMf1j17oQAElHgVlbEje2h14A8Tz9cM2BE= github.com/linxGnu/grocksdb v1.8.0/go.mod h1:09CeBborffXhXdNpEcOeZrLKEnRtrZFEpFdPNI9Zjjg= +github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e h1:9MlwzLdW7QSDrhDjFlsEYmxpFyIoXmYRon3dt0io31k= +github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77 h1:6xiz3+ZczT3M4+I+JLpcPGG1bQKm8067HktB17EDWEE= 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= +github.com/lyft/protoc-gen-star v0.5.3 h1:zSGLzsUew8RT+ZKPHc3jnf8XLaVyHzTcAFBzHtCNR20= +github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/lyft/protoc-gen-validate v0.0.13 h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.5/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= @@ -1554,6 +1840,7 @@ github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYt github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= +github.com/maratori/testpackage v1.0.1/go.mod h1:ddKdw+XG0Phzhx8BFDTKgpWP4i7MpApTE5fXSKAqwDU= github.com/maratori/testpackage v1.1.0 h1:GJY4wlzQhuBusMF1oahQCBtUV/AQ/k69IZ68vxaac2Q= github.com/maratori/testpackage v1.1.0/go.mod h1:PeAhzU8qkCwdGEMTEupsHJNlQu2gZopMC6RjbhmHeDc= github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 h1:pWxk9e//NbPwfxat7RXkts09K+dEBJWakUWwICVqYbA= @@ -1561,17 +1848,26 @@ github.com/matoous/godox v0.0.0-20210227103229-6504466cf951/go.mod h1:1BELzlh859 github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd h1:HvFwW+cm9bCbZ/+vuGNq7CRWXql8c0y8nGeYpqmpvmk= github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 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-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= +github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d h1:oNAwILwmgWKFpuU+dXvI6dl9jG2mAWAZLX3r9s0PPiw= +github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 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= @@ -1580,32 +1876,52 @@ github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D 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= +github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.11.0 h1:LDdKkqtYlom37fkvqs8rMPFKAMe8+SgjbwZ6ex1/A/Q= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104 h1:d8RFOZ2IiFtFWBcKEHAFYJcPTf0wY5q0exFNJZVWa1U= github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= +github.com/mattn/goveralls v0.0.2 h1:7eJB6EqsPhRVxvwEXGnqdO2sJI0PTsrWoTMXEk9/OQc= +github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= +github.com/mgechev/dots v0.0.0-20190921121421-c36f7dcfbb81 h1:QASJXOGm2RZ5Ardbc86qNFvby9AqkLDibfChMtAg5QM= +github.com/mgechev/dots v0.0.0-20190921121421-c36f7dcfbb81/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= +github.com/mgechev/revive v1.1.1/go.mod h1:PKqk4L74K6wVNwY2b6fr+9Qqr/3hIsHVfZCJdbvozrY= github.com/mgechev/revive v1.2.4 h1:+2Hd/S8oO2H0Ikq2+egtNwQsVhAeELHjxjIUFX5ajLI= github.com/mgechev/revive v1.2.4/go.mod h1:iAWlQishqCuj4yhV24FTnKSXGpbAA+0SckXB8GQMX/Q= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= +github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= +github.com/miekg/pkcs11 v1.0.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= +github.com/miekg/pkcs11 v1.0.3 h1:iMwmD7I5225wv84WxIG/bmxz9AXjWvTWIbM/TYHvWtw= +github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= +github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/cli v1.1.0 h1:tEElEatulEHDeedTxwckzyYMA5c86fbmNIUL1hBIiTg= +github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= +github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= +github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= @@ -1615,14 +1931,20 @@ github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWe github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.1 h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE= +github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/moby/buildkit v0.10.4 h1:FvC+buO8isGpUFZ1abdSLdGHZVqg9sqI4BbFL8tlzP4= github.com/moby/buildkit v0.10.4/go.mod h1:Yajz9vt1Zw5q9Pp4pdb3TCSUXJBIroIQGQ3TTs/sLug= +github.com/moby/sys/mountinfo v0.4.1 h1:1O+1cHA1aujwEwwVMa2Xm2l+gIpUHyd3+D+d7LZh1kM= +github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A= github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae h1:O4SWKdcHVCvYqyDV+9CJA1fcDN2L11Bule0iFy3YlAI= github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -1634,10 +1956,18 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5 h1:8Q0qkMVC/MmWkpIdlvZgcv2o2jrlF6zqVOh7W5YHdMA= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/moricho/tparallel v0.2.1 h1:95FytivzT6rYzdJLdtfn6m1bfFJylOJK41+lgv/EHf4= github.com/moricho/tparallel v0.2.1/go.mod h1:fXEIZxG2vdfl0ZF8b42f5a78EhjjD5mX8qUplsoSU4k= github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1 h1:29NKShH4TWd3lxCDUhS4Xe16EWMA753dtIxYtwddklU= +github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1/go.mod h1:FIczTrinKo8VaLxe6PWTPEXRXDIHz2QAwiaBaP5/4a8= +github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5 h1:0KqC6/sLy7fDpBdybhVkkv4Yz+PmB7c9Dz9z3dLW804= +github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= +github.com/mrunalp/fileutils v0.5.0 h1:NKzVxiH7eSk+OQ4M+ZYW1K6h27RUV3MI6NUTsHhU6Z4= +github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae h1:VeRdUYdCw49yizlSbMEn2SZ+gT+3IUKx8BqxyQdz+BY= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= @@ -1645,8 +1975,12 @@ github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ib github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= +github.com/mwitkow/go-proto-validators v0.2.0 h1:F6LFfmgVnfULfaRsQWBbe7F7ocuHCr9+7m+GAeDzNbQ= +github.com/mwitkow/go-proto-validators v0.2.0/go.mod h1:ZfA1hW+UH/2ZHOWvQ3HnQaU0DtnpXu850MZiy+YUgcc= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76 h1:0xuRacu/Zr+jX+KyLLPPktbwXqyOvnOPUQmMLzX1jxU= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= +github.com/nakabonne/nestif v0.3.0/go.mod h1:dI314BppzXjJ4HsCnbo7XzrJHPszZsjnk5wEBSYHI2c= github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks= @@ -1672,16 +2006,25 @@ github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA= github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= +github.com/neilotoole/errgroup v0.1.5/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neilotoole/errgroup v0.1.6 h1:PODGqPXdT5BC/zCYIMoTrwV+ujKcW+gBXM6Ye9Ve3R8= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f h1:YFXRHpaaRNK7stry4s6MM40IlulY/MSQTAvTbgodMDk= github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f/go.mod h1:ZwQ3cw0rxF+DzonD2a5lisdcFEu64Db+0TPnHgMIvN0= +github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= +github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1 h1:VmQ1zVjrFguFYFDJrsJ8biPqZvWXrq1ydQKQMVp+w2Q= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1/go.mod h1:oB4CvQbYYn/g+q7c/rKQ33V4APW+kGdo5RkdFBovyxw= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nishanths/exhaustive v0.2.3/go.mod h1:bhIX678Nx8inLM9PbpvK1yv6oGtoP8BfaIeMzgBNKvc= github.com/nishanths/exhaustive v0.8.3 h1:pw5O09vwg8ZaditDp/nQRqVnrMczSJDxRDJMowvhsrM= github.com/nishanths/exhaustive v0.8.3/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg= +github.com/nishanths/predeclared v0.0.0-20190419143655-18a43bb90ffc/go.mod h1:62PewwiQTlm/7Rj+cxVYqZvDIUc+JjZq6GHAC1fsObQ= +github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso= +github.com/nishanths/predeclared v0.2.1/go.mod h1:HvkGJcA3naj4lOwnFXFDkFxVtSqQMB9sbB1usJ+xjQE= github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= @@ -1694,28 +2037,44 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= 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.10.3/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/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= 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/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= +github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= +github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= +github.com/opencontainers/runc v1.0.3/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc= +github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= +github.com/opencontainers/selinux v1.8.2 h1:c4ca10UMgRcvZ6h0K4HtS15UaVSBEaE+iln2LVpAuGc= +github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo= @@ -1734,6 +2093,14 @@ github.com/openzipkin/zipkin-go v0.2.5 h1:UwtQQx2pyPIgWYHRg+epgdx1/HnBQTgN3/oIYE github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= +github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= +github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= +github.com/otiai10/curr v1.0.0 h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI= +github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= +github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= +github.com/otiai10/mint v1.3.2 h1:VYWnrP5fXmz1MXvjuUvcBrXSjGE6xjON+axB/UrpO3E= +github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0 h1:Yyk5ov0ZPKBXtVEeIWtc4J2XVrHuNoIK+0F2BUJgtsc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0/go.mod h1:UMGTHYEmJ1dRq8LDZ7VTAYO4nqM3GD1UGC3RJEUxEz0= github.com/pact-foundation/pact-go v1.0.4 h1:OYkFijGHoZAYbOIb1LWXrwKQbMMRUv1oQ89blD2Mh2Q= @@ -1743,9 +2110,12 @@ github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0Mw github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/paulbellamy/ratecounter v0.2.0 h1:2L/RhJq+HA8gBQImDXtLPrDXK5qAj6ozWVK/zFXVJGs= github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= +github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= 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.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= 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.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= @@ -1754,6 +2124,8 @@ github.com/performancecopilot/speed v3.0.0+incompatible h1:2WnRzIquHa5QxaJKShDkL github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/performancecopilot/speed/v4 v4.0.0 h1:VxEDCmdkfbQYDlcr/GC9YoN9PQ6p8ulk9xVsepYy9ZY= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= +github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 h1:oYW+YCJ1pachXTQmzR3rNLYGGz4g/UgFcjb28p/viDM= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= @@ -1778,10 +2150,12 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pkg/profile v1.6.0 h1:hUDfIISABYI59DyeB3OTay/HxSRwTQ8rB/H83k6r5dM= github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= +github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pkg/sftp v1.13.1 h1:I2qBYMChEhIjOgazfJmV3/mZM256btk6wkCDRmW7JYs= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5 h1:tFwafIEMf0B7NlcxV/zJ6leBIa81D3hgGSgsE5hCkOQ= github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= +github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3 h1:hUmXhbljNFtrH5hzV9kiRoddZ5nfPTq3K0Sb2hYYiqE= @@ -1790,16 +2164,22 @@ github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4 h1:RHHRCZeaNy github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4/go.mod h1:RdR1j20Aj5pB6+fw6Y9Ur7lMHpegTEjY1vc19hEZL40= github.com/pointlander/peg v1.0.1 h1:mgA/GQE8TeS9MdkU6Xn6iEzBmQUQCNuWD7rHCK6Mjs0= github.com/pointlander/peg v1.0.1/go.mod h1:5hsGDQR2oZI4QoWz0/Kdg3VSVEC31iJw/b7WjqCBGRI= +github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= github.com/polyfloyd/go-errorlint v1.0.5 h1:AHB5JRCjlmelh9RrLxT9sgzpalIwwq4hqE8EkwIwKdY= github.com/polyfloyd/go-errorlint v1.0.5/go.mod h1:APVvOesVSAnne5SClsPxPdfvZTVDojXh1/G3qb5wjGI= github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.8.0/go.mod h1:O9VU6huf47PktckDQfMTX0Y8tY0/7TSWwj+ITvv0TnM= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.15.1 h1:8tXpTmJbyH5lydzFPoxSIJ0J46jdh3tylbvM1xCv0LI= github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= @@ -1812,26 +2192,48 @@ github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUo github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.14.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.29.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/pseudomuto/protoc-gen-doc v1.3.2 h1:61vWZuxYa8D7Rn4h+2dgoTNqnluBmJya2MgbqO32z6g= +github.com/pseudomuto/protoc-gen-doc v1.3.2/go.mod h1:y5+P6n3iGrbKG+9O04V5ld71in3v/bX88wUwgt+U8EA= +github.com/pseudomuto/protokit v0.2.0 h1:hlnBDcy3YEDXH7kc9gV+NLaN0cDzhDvD1s7Y6FZ8RpM= +github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= +github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c h1:JoUA0uz9U0FVFq5p4LjEq4C0VgQ0El320s3Ms0V4eww= +github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= +github.com/quasilyte/go-ruleguard v0.3.1-0.20210203134552-1b5a410e1cc8/go.mod h1:KsAh3x0e7Fkpgs+Q9pNLS5XpFSvYCEVl5gP9Pp1xp30= +github.com/quasilyte/go-ruleguard v0.3.4/go.mod h1:57FZgMnoo6jqxkYKmVj5Fc8vOt0rVzoE/UNAmFFIPqA= github.com/quasilyte/go-ruleguard v0.3.18 h1:sd+abO1PEI9fkYennwzHn9kl3nqP6M5vE7FiOzZ+5CE= github.com/quasilyte/go-ruleguard v0.3.18/go.mod h1:lOIzcYlgxrQ2sGJ735EHXmf/e9MJ516j16K/Ifcttvs= +github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/dsl v0.3.2 h1:ULi3SLXvDUgb0u2IM5xU6er9KeWBSaUh1NlDjCgLHU8= +github.com/quasilyte/go-ruleguard/dsl v0.3.2/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= +github.com/quasilyte/go-ruleguard/rules v0.0.0-20210203162857-b223e0831f88 h1:PeTrJiH/dSeruL/Z9Db39NRMwI/yoA3oHCdCkg+Wh8A= +github.com/quasilyte/go-ruleguard/rules v0.0.0-20210203162857-b223e0831f88/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= github.com/quasilyte/gogrep v0.0.0-20220828223005-86e4605de09f h1:6Gtn2i04RD0gVyYf2/IUMTIs+qYleBt4zxDqkLTcu4U= github.com/quasilyte/gogrep v0.0.0-20220828223005-86e4605de09f/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf68pVdQ3bCFZMDmnt9yqcMBro1pC7F+IPYMY= @@ -1841,8 +2243,11 @@ github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8 github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/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/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= @@ -1855,13 +2260,19 @@ github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6So github.com/rogpeppe/fastuuid v1.2.0 h1:Ppwyp6VYCF1nvBTXL3trRso7mXMlRrw9ooo375wvi2s= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= 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/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= 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/xhandler v0.0.0-20160618193221-ed27b6fd6521 h1:3hxavr+IHMsQBrYUPQM5v0CgENFktkkbg1sfpgM3h20= +github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo= github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= @@ -1869,18 +2280,23 @@ github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoLtnBZ7/TEhXAbg= github.com/ryancurrah/gomodguard v1.2.4 h1:CpMSDKan0LtNGGhPrvupAoLeObRFjND8/tU1rEOtBp4= github.com/ryancurrah/gomodguard v1.2.4/go.mod h1:+Kem4VjWwvFpUJRJSwa16s1tBJe+vbv02+naTow2f6M= github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f h1:UFr9zpz4xgTnIE5yIMtWAMngCdZ9p/+q6lTbgelo80M= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= +github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= github.com/sagikazarmark/crypt v0.10.0 h1:96E1qrToLBU6fGzo+PRRz7KGOc9FkYFiPnR3/zf8Smg= github.com/sagikazarmark/crypt v0.10.0/go.mod h1:gwTNHQVoOS3xp9Xvz5LLR+1AauC5M6880z5NWzdhOyQ= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= +github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10= +github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= @@ -1891,6 +2307,9 @@ github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/seccomp/libseccomp-golang v0.9.1 h1:NJjM5DNFOs0s3kYE1WUOr6G8V97sdt46rlXTMfXGWBo= +github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= +github.com/securego/gosec/v2 v2.8.1/go.mod h1:pUmsq6+VyFEElJMUX+QB3p3LWNHXg1R3xh2ssVJPs8Q= github.com/securego/gosec/v2 v2.13.1 h1:7mU32qn2dyC81MH9L2kefnQyRMUarfDER3iQyMHcjYM= github.com/securego/gosec/v2 v2.13.1/go.mod h1:EO1sImBMBWFjOTFzMWfTRrZW6M15gm60ljzrmy/wtHo= github.com/segmentio/fasthash v1.0.3 h1:EI9+KE1EwvMLBWwjpRDc+fEM+prwxDYbslddQGtrmhM= @@ -1903,14 +2322,23 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= 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 v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/shirou/gopsutil/v3 v3.21.7 h1:PnTqQamUjwEDSgn+nBGu0qSDV/CfvyiR/gwTH3i7HTU= +github.com/shirou/gopsutil/v3 v3.21.7/go.mod h1:RGl11Y7XMTQPmHh8F0ayC6haKNBgH4PXMJuTAcMOlz4= +github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e h1:MZM7FHLqUHYI0Y/mQAt3d2aYa0SiNms/hFqC9qJYolM= +github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= +github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041 h1:llrF3Fs4018ePo4+G/HV/uQUqEI1HMDjCeOf2V6puPc= +github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/sivchari/containedctx v1.0.2 h1:0hLQKpgC53OVF1VT7CeoFHk9YKstur1XOgfYIc1yrHI= @@ -1939,13 +2367,21 @@ 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.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= +github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= 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.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 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.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= +github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= +github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= 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= @@ -1956,14 +2392,25 @@ 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.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= +github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= +github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= 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.1.0/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= 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 h1:Gb2Tyox57NRNuZ2d3rmvB3pcmbu7O1RS3m8WRx7ilrg= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= +github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570 h1:gIlAHnH1vJb5vwEjIp5kBj/eu99p/bl0Ay2goiPe5xE= +github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= +github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3 h1:njlZPzLwU639dk2kqnCPPv+wNjq7Xb6EfUxe/oX0/NM= +github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f h1:NJdZ+YJ9Vf2t286L20IjFK0SxGpobF1xIp5ZQlxWetk= github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f/go.mod h1:DJNSVK8NCYHM+aZHCFkcAqPwjzwHYAjhjSMlhAGtJ3c= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= @@ -1975,9 +2422,12 @@ github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e h1:mOtuXaRAbVZsxAH github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v0.0.0-20170130113145-4d4bfba8f1d1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= @@ -1991,30 +2441,56 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o 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.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= 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/gocapability v0.0.0-20200815063812-42c35b437635 h1:kdXcSzyDtseVEc4yCz2qF8ZrQvIDBJLl4S1c3GCXmoI= +github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= 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/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= github.com/tdakkota/asciicheck v0.1.1 h1:PKzG7JUTUmVspQTDqtkX9eSiLGossXTybutHwTXuO0A= github.com/tdakkota/asciicheck v0.1.1/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= 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/btcd v0.1.1 h1:0VcxPfflS2zZ3RiOAHkBiFUcPvbtRj5O7zHmcJWHV7s= +github.com/tendermint/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U= +github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 h1:hqAk8riJvK4RMWx1aInLzndwxKalgi5rTqgfXxOxbEI= +github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk= 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/spm v0.1.9 h1:O1DJF4evS8wgk5SZqRcO29irNNtKQmTpvQ0xFzUiczI= +github.com/tendermint/spm v0.1.9/go.mod h1:iHgfQ5YOI6ONc9E7ugGQolVdfSMHpeXfZ/OpXuN/42Q= +github.com/tendermint/tendermint v0.34.0-rc4/go.mod h1:yotsojf2C1QBOw4dZrTcxbyxmPUrT4hNuOQWX9XUwB4= +github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX6mjJTgbLHTwi17VDVg= +github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ= +github.com/tendermint/tendermint v0.34.13/go.mod h1:6RVVRBqwtKhA+H59APKumO+B7Nye4QXSFc6+TYxAxCI= +github.com/tendermint/tendermint v0.34.14 h1:GCXmlS8Bqd2Ix3TQCpwYLUNHe+Y+QyJsm5YE+S/FkPo= +github.com/tendermint/tendermint v0.34.14/go.mod h1:FrwVm3TvsVicI9Z7FlucHV6Znfd5KBc/Lpp69cCwtk0= +github.com/tendermint/tm-db v0.6.2/go.mod h1:GYtQ67SUvATOcoY8/+x6ylk8Qo02BQyLrAs+yAcLvGI= +github.com/tendermint/tm-db v0.6.3/go.mod h1:lfA1dL9/Y/Y8wwyPp2NMLyn5P5Ptr/gvDFNWtrCWSf8= +github.com/tendermint/tm-db v0.6.4 h1:3N2jlnYQkXNQclQwd/eKV/NzlqPlfK21cpRRIx80XXQ= +github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8/BmWlMBw= +github.com/tetafro/godot v1.4.9/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= 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.6.7/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI= 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/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= github.com/tidwall/sjson v1.2.4 h1:cuiLzLnaMeBhRmEv00Lpk3tkYrcxpmbU81tAY4Dw0tc= github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp19pSNM= +github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= github.com/timonwong/loggercheck v0.9.3 h1:ecACo9fNiHxX4/Bc02rW2+kaJIAMAes7qJ7JKxt0EZI= @@ -2023,12 +2499,23 @@ github.com/tinylib/msgp v1.0.2 h1:DfdQrzQa7Yh2es9SuLkixqxuXS2SxsdYn0KbdrOGWD8= github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/tklauser/go-sysconf v0.3.5 h1:uu3Xl4nkLzQfXNsWn15rPc/HQCJKObbt1dKJeWp3vU4= github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= +github.com/tklauser/go-sysconf v0.3.7 h1:HT7h4+536gjqeq1ZIJPgOl1rg1XFatQGVZWp7Py53eg= +github.com/tklauser/go-sysconf v0.3.7/go.mod h1:JZIdXh4RmBvZDBZ41ld2bGxRV3n4daiiqA3skYhAoQ4= github.com/tklauser/numcpus v0.2.2 h1:oyhllyrScuYI6g+h/zUvNXNp1wy7x8qQy3t/piefldA= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= +github.com/tklauser/numcpus v0.2.3 h1:nQ0QYpiritP6ViFhrKYsiv6VVxOpum2Gks5GhnJbS/8= +github.com/tklauser/numcpus v0.2.3/go.mod h1:vpEPS/JC+oZGGQ/My/vJnNsvMDQL6PwOqt8dsCw5j+E= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8 h1:ndzgwNDnKIqyCvHTXaCqh9KlOWKvBry6nuXMJmonVsE= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966 h1:j6JEOq5QWFker+d7mFQYOhjTZonQ7YkLTHm56dbn+yM= +github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tomarrell/wrapcheck/v2 v2.3.0/go.mod h1:aF5rnkdtqNWP/gC7vPUO5pKsB0Oac2FDTQP4F+dpZMU= github.com/tomarrell/wrapcheck/v2 v2.7.0 h1:J/F8DbSKJC83bAvC6FoZaRjZiZ/iKoueSdrEkmGeacA= github.com/tomarrell/wrapcheck/v2 v2.7.0/go.mod h1:ao7l5p0aOlUNJKI0qVwB4Yjlqutd0IvAB9Rdwyilxvg= +github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce h1:fb190+cK2Xz/dvi9Hv8eCYJYvIGUTN2/KLq1pT6CjEc= +github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce/go.mod h1:o8v6yHRoik09Xen7gje4m9ERNah1d1PPsVq1VEx9vE4= +github.com/tommy-muehle/go-mnd/v2 v2.4.0/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= 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/tv42/httpunix v0.0.0-20150427012821-b75d8614f926 h1:G3dpKMzFDjgEh2q1Z7zUUtKa8ViPtH+ocF0bE0g00O8= @@ -2036,6 +2523,7 @@ github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqri github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= github.com/tyler-smith/go-bip39 v1.0.2 h1:+t3w+KwLXO6154GNJY+qUtIxLTmFjfUmpguQT1OlOT8= github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= @@ -2047,6 +2535,7 @@ 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.0.3 h1:5ylVWm8wsNwH5aWo9438pwvsK0QiqVuUrt9bn7S/iLA= github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= +github.com/ultraware/whitespace v0.0.4/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= @@ -2054,21 +2543,39 @@ github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= +github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= github.com/uudashr/gocognit v1.0.6 h1:2Cgi6MweCsdB6kpcVQp7EW4U23iBFQWfTXiWlyp842Y= github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.16.0 h1:9zAqOYLl8Tuy3E5R6ckzGDJ1g8+pw15oQp2iL9Jl6gQ= +github.com/valyala/fasthttp v1.16.0/go.mod h1:YOKImeEosDdBPnxc0gy7INqi3m1zK6A+xl6TwOBhHCA= github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= +github.com/valyala/quicktemplate v1.6.3 h1:O7EuMwuH7Q94U2CXD6sOX8AYHqQqWtmIk690IhmpkKA= +github.com/valyala/quicktemplate v1.6.3/go.mod h1:fwPzK2fHuYEODzJ9pkw0ipCPNHZ2tD5KW4lOuSdPKzY= +github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a h1:0R4NLDRDZX6JcmhJgXi5E4b8Wg84ihbmUKp/GvSPEzc= +github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= github.com/vektra/mockery/v2 v2.14.0 h1:KZ1p5Hrn8tiY+LErRMr14HHle6khxo+JKOXLBW/yfqs= github.com/vektra/mockery/v2 v2.14.0/go.mod h1:bnD1T8tExSgPD1ripLkDbr60JA9VtQeu12P3wgLZd7M= +github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8 h1:EVObHAr8DqpoJCVv6KYTle8FEImKhtkfcZetNqxDoJQ= +github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= +github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0= +github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df h1:OviZH7qLw/7ZovXvuNyL3XQl8UFofeikI1NW1Gypu7k= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= +github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI= github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= +github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc= +github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/willf/bitset v1.1.3 h1:ekJIKh6+YbUIVt9DfNbkR5d6aFcFTLDRyJNAACURBg8= github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= +github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208 h1:1cngl9mPEoITZG8s8cVcUy5CeIBYhEESkOB7m6Gmkrk= +github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= @@ -2077,14 +2584,23 @@ github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5 github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6 h1:YdYsPAZ2pC6Tow/nPZOPQ96O3hm/ToAkGsPLzedXERk= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= +github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= +github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= github.com/ybbus/jsonrpc v2.1.2+incompatible h1:V4mkE9qhbDQ92/MLMIhlhMSbz8jNXdagC3xBR5NDwaQ= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= +github.com/yeya24/promlinter v0.1.0/go.mod h1:rs5vtZzeBHqqMwXqFScncpCF6u06lezhZepno9AB1Oc= github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= +github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA= +github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= +github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M= +github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= +github.com/yudai/pp v2.0.1+incompatible h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI= +github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -2092,27 +2608,42 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13 h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.0/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= gitlab.com/bosi/decorder v0.2.3 h1:gX4/RgK16ijY8V+BRQHAySfQAb354T7/xQpDB2n10P0= gitlab.com/bosi/decorder v0.2.3/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= +go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= 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 h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c h1:/RwRVN9EdXAVtdHxP7Ndn/tfmM9/goiwU0QTnLBgS4w= +go.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c/go.mod h1:xCI7ZzBfRuGgBXyXO6yfWfDmlWd35khcWpUa4L0xI/k= +go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= +go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/api/v3 v3.5.9 h1:4wSsluwyTbGGmyjJktOf3wFQoTBIURXHnq9n/G/JQHs= go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= +go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/pkg/v3 v3.5.9 h1:oidDC4+YEuSIQbsR94rY9gur91UPL6DnxDCIYd2IGsE= go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= +go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= +go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= go.etcd.io/etcd/client/v2 v2.305.7 h1:AELPkjNR3/igjbO7CjyF1fPuVPjrblliiKj+Y6xSGOU= go.etcd.io/etcd/client/v2 v2.305.7/go.mod h1:GQGT5Z3TBuAQGvgPfhR7VPySu/SudxmEkRq9BgzFU6s= go.etcd.io/etcd/client/v3 v3.5.9 h1:r5xghnU7CwbUxD/fbUtRyJGaYNfDun8sp/gTr1hew6E= go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= go.etcd.io/gofail v0.1.0 h1:XItAMIhOojXFQMgrxjnd2EIIHun/d5qL0Pf7FzVTkFg= go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= +go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403 h1:rKyWXYDfrVOpMFBion4Pmx5sJbQreQNXycHvm4KwJSg= +go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403/go.mod h1:jHoPAGnDrCy6kaI2tAze5Prf0Nr0w/oNkROt2lw3n3o= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -2142,6 +2673,7 @@ go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= @@ -2150,10 +2682,12 @@ go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9E go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -2162,18 +2696,25 @@ golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/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-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= @@ -2185,6 +2726,7 @@ golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= @@ -2217,15 +2759,19 @@ golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mobile v0.0.0-20200801112145-973feb4309de h1:OVJ6QQUBAesB8CZijKDSsXX7xYVtUhrkY0gwMfbi4p4= +golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -2233,6 +2779,7 @@ golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -2244,12 +2791,15 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -2263,10 +2813,12 @@ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= @@ -2278,9 +2830,14 @@ golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -2308,10 +2865,12 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= @@ -2328,6 +2887,7 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJ 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= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -2358,15 +2918,21 @@ golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2376,6 +2942,7 @@ golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2388,31 +2955,40 @@ golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/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-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/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= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -2420,15 +2996,20 @@ golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +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-20210903071746-97244b99971b/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-20211007075335-d3039528d8ac/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-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a/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= @@ -2473,6 +3054,7 @@ golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/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/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= @@ -2480,12 +3062,17 @@ golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 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-20190110163146-51295c7ec13a/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= +golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190322203728-c1a832b0ad89/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= @@ -2494,21 +3081,29 @@ golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190916130336-e45ffcd953cc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117220505-0cba7a3a9ee9/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -2518,19 +3113,46 @@ golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapK golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200414032229-332987a829c3/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200422022333-3d57cf2e726e/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200426102838-f3a5411a4c3b/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200624225443-88f3c62a19ff/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200625211823-6506e20df31f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200626171337-aa94e735be7f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200630154851-b2d8b0336632/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200706234117-b22de6825cf7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200812195022-5ae4c3c160a0/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200831203904-5a2aa26beb65/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 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-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201114224030-61ea331ec02b/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201118003311-bd56c0adb394/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201230224404-63754364767c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210104081019-d8d6ddbec6ee/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -2567,6 +3189,7 @@ google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEt google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.10.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= @@ -2584,6 +3207,7 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= @@ -2592,7 +3216,9 @@ google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6 google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -2618,12 +3244,15 @@ google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.2/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/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 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-20181107211654-5fc9ac540362/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -2633,6 +3262,7 @@ google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98 google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= @@ -2655,11 +3285,15 @@ google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200626011028-ee7919e894b5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200707001353-8e8330bf89df/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -2688,7 +3322,11 @@ google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -2739,8 +3377,10 @@ google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1: google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= 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= @@ -2748,11 +3388,13 @@ google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ij google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.0/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= @@ -2771,6 +3413,8 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= @@ -2794,6 +3438,7 @@ google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= @@ -2806,18 +3451,24 @@ gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLks 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= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/cheggaaa/pb.v1 v1.0.27 h1:kJdccidYzt3CaHD1crCFTS1hxyhSi059NhOFUf03YFo= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/cheggaaa/pb.v1 v1.0.28 h1:n1tBJnnK2r7g9OW2btFH91V92STTUevLXYFb8gy9EMk= +gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3 h1:m8OOJ4ccYHnx2f4gQwpno8nAX5OGOh7RLaaz0pj3Ogs= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= @@ -2838,6 +3489,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.6/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= @@ -2859,14 +3511,17 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= +honnef.co/go/tools v0.2.1/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY= honnef.co/go/tools v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA= honnef.co/go/tools v0.3.3/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= +mvdan.cc/gofumpt v0.1.1/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48= mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM= mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= +mvdan.cc/unparam v0.0.0-20210104141923-aac4ce9116a7/go.mod h1:hBpJkZE8H/sb+VRFvw2+rBpHNsTBcvSpk61hr8mzXZE= mvdan.cc/unparam v0.0.0-20220706161116-678bad134442 h1:seuXWbRB1qPrS3NQnHmFKLJLtskWyueeIzmLXghMGgk= mvdan.cc/unparam v0.0.0-20220706161116-678bad134442/go.mod h1:F/Cxw/6mVrNKqrR2YjFf5CaW0Bw4RL8RfbEf4GRggJk= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= From bfe2f2407a089429827818344f5b36f1525e4d4f Mon Sep 17 00:00:00 2001 From: swelf Date: Mon, 24 Jul 2023 11:53:16 +0300 Subject: [PATCH 003/307] pob integrated --- app/ante_handler.go | 11 +++ app/app.go | 78 +++++++++++++++++-- app/proposals_allowlist_test.go | 1 + cmd/neutrond/root.go | 13 +++- go.mod | 3 +- go.sum | 24 ++++++ network/init-neutrond.sh | 9 +++ tests/e2e/interchain_security_test.go | 2 +- testutil/contractmanager/network/network.go | 2 +- testutil/cron/network/network.go | 2 +- testutil/interchainqueries/network/network.go | 2 +- testutil/interchaintxs/network/network.go | 2 +- testutil/test_helpers.go | 43 +++++----- 13 files changed, 160 insertions(+), 32 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index c0dcf5151..f9e43aacd 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -12,6 +12,9 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" + "github.com/skip-mev/pob/mempool" + ante2 "github.com/skip-mev/pob/x/builder/ante" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -23,6 +26,9 @@ type HandlerOptions struct { ConsumerKeeper ibcconsumerkeeper.Keeper WasmConfig *wasmTypes.WasmConfig TXCounterStoreKey storetypes.StoreKey + buildKeeper builderkeeper.Keeper + txEncoder sdk.TxEncoder + mempool *mempool.AuctionMempool } func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, error) { @@ -65,6 +71,11 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler), ante.NewIncrementSequenceDecorator(options.AccountKeeper), ibcante.NewRedundantRelayDecorator(options.IBCKeeper), + ante2.NewBuilderDecorator( + options.buildKeeper, + options.txEncoder, + options.mempool, + ), } // Don't delete it even if IDE tells you so. diff --git a/app/app.go b/app/app.go index 2b406364e..4537857eb 100644 --- a/app/app.go +++ b/app/app.go @@ -8,6 +8,12 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/neutron-org/neutron/docs" + proposalhandler "github.com/skip-mev/pob/abci" + "github.com/skip-mev/pob/mempool" + "github.com/skip-mev/pob/x/builder" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" + rewardsaddressprovider "github.com/skip-mev/pob/x/builder/rewards_address_provider" + buildertypes "github.com/skip-mev/pob/x/builder/types" "io" "io/fs" "net/http" @@ -223,11 +229,13 @@ var ( ), ibchooks.AppModuleBasic{}, router.AppModuleBasic{}, + builder.AppModuleBasic{}, ) // module account permissions maccPerms = map[string][]string{ authtypes.FeeCollectorName: nil, + buildertypes.ModuleName: nil, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, icatypes.ModuleName: nil, wasm.ModuleName: {authtypes.Burner}, @@ -278,10 +286,12 @@ type App struct { memKeys map[string]*storetypes.MemoryStoreKey // keepers - AccountKeeper authkeeper.AccountKeeper - AdminmoduleKeeper adminmodulemodulekeeper.Keeper - AuthzKeeper authzkeeper.Keeper - BankKeeper bankkeeper.BaseKeeper + AccountKeeper authkeeper.AccountKeeper + AdminmoduleKeeper adminmodulemodulekeeper.Keeper + AuthzKeeper authzkeeper.Keeper + BankKeeper bankkeeper.BaseKeeper + // BuilderKeeper is the keeper that handles processing auction transactions + BuilderKeeper builderkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper SlashingKeeper slashingkeeper.Keeper CrisisKeeper crisiskeeper.Keeper @@ -325,11 +335,15 @@ type App struct { // sm is the simulation manager sm *module.SimulationManager + + // Custom checkTx handler + checkTxHandler proposalhandler.CheckTx } // New returns a reference to an initialized blockchain app func New( logger log.Logger, + chainID string, db dbm.DB, traceStore io.Writer, loadLatest bool, @@ -346,10 +360,16 @@ func New( legacyAmino := encodingConfig.Amino interfaceRegistry := encodingConfig.InterfaceRegistry + config := mempool.NewDefaultAuctionFactory(encodingConfig.TxConfig.TxDecoder()) + // 0 - unlimited amount of txs + maxTx := 0 + mempool := mempool.NewAuctionMempool(encodingConfig.TxConfig.TxDecoder(), encodingConfig.TxConfig.TxEncoder(), maxTx, config) + bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) bApp.SetInterfaceRegistry(interfaceRegistry) + bApp.SetMempool(mempool) keys := sdk.NewKVStoreKeys( authzkeeper.StoreKey, authtypes.StoreKey, banktypes.StoreKey, slashingtypes.StoreKey, @@ -358,7 +378,7 @@ func New( icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasm.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmodulemoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, - crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, + crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, buildertypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, feetypes.MemStoreKey) @@ -565,6 +585,16 @@ func New( ) app.TokenFactoryKeeper = &tokenFactoryKeeper + app.BuilderKeeper = builderkeeper.NewKeeperWithRewardsAddressProvider( + appCodec, + keys[buildertypes.StoreKey], + app.AccountKeeper, + app.BankKeeper, + // 25% of rewards should be sent to the redistribute address + rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName)), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + wasmDir := filepath.Join(homePath, "wasm") wasmConfig, err := wasm.ReadWasmConfig(appOpts) if err != nil { @@ -722,6 +752,7 @@ func New( ibcHooksModule, tokenfactory.NewAppModule(appCodec, *app.TokenFactoryKeeper, app.AccountKeeper, app.BankKeeper), cronModule, + builder.NewAppModule(appCodec, app.BuilderKeeper), crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them ) @@ -730,6 +761,7 @@ func New( // CanWithdrawInvariant invariant. // NOTE: staking module is required if HistoricalEntries param > 0 app.mm.SetOrderBeginBlockers( + buildertypes.ModuleName, upgradetypes.ModuleName, capabilitytypes.ModuleName, slashingtypes.ModuleName, @@ -759,6 +791,7 @@ func New( ) app.mm.SetOrderEndBlockers( + buildertypes.ModuleName, crisistypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, @@ -793,6 +826,7 @@ func New( // so that other modules that want to create or claim capabilities afterwards in InitChain // can do so safely. app.mm.SetOrderInitGenesis( + buildertypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, ibctransfertypes.ModuleName, @@ -872,6 +906,8 @@ func New( WasmConfig: &wasmConfig, TXCounterStoreKey: keys[wasm.StoreKey], ConsumerKeeper: app.ConsumerKeeper, + buildKeeper: app.BuilderKeeper, + mempool: mempool, }, app.Logger(), ) @@ -882,6 +918,25 @@ func New( app.SetAnteHandler(anteHandler) app.SetEndBlocker(app.EndBlocker) + handler := proposalhandler.NewProposalHandler( + mempool, + bApp.Logger(), + anteHandler, + encodingConfig.TxConfig.TxEncoder(), + encodingConfig.TxConfig.TxDecoder(), + ) + app.SetPrepareProposal(handler.PrepareProposalHandler()) + app.SetProcessProposal(handler.ProcessProposalHandler()) + + checkTxHandler := proposalhandler.NewCheckTxHandler( + app.BaseApp, + encodingConfig.TxConfig.TxDecoder(), + mempool, + anteHandler, + chainID, + ) + app.SetCheckTx(checkTxHandler.CheckTx()) + // must be before Loading version // requires the snapshot store to be created and registered as a BaseAppOption // see cmd/wasmd/root.go: 206 - 214 approx @@ -953,6 +1008,19 @@ func (app *App) setupUpgradeHandlers() { } } +// CheckTx will check the transaction with the provided checkTxHandler. We override the default +// handler so that we can verify bid transactions before they are inserted into the mempool. +// With the POB CheckTx, we can verify the bid transaction and all of the bundled transactions +// before inserting the bid transaction into the mempool. +func (app *App) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx { + return app.checkTxHandler(req) +} + +// SetCheckTx sets the checkTxHandler for the app. +func (app *App) SetCheckTx(handler proposalhandler.CheckTx) { + app.checkTxHandler = handler +} + // Name returns the name of the App func (app *App) Name() string { return app.BaseApp.Name() } diff --git a/app/proposals_allowlist_test.go b/app/proposals_allowlist_test.go index f2e1f7681..0f87fcc36 100644 --- a/app/proposals_allowlist_test.go +++ b/app/proposals_allowlist_test.go @@ -30,6 +30,7 @@ func SetupTestingAppConsumer() (ibctesting.TestingApp, map[string]json.RawMessag encoding := app.MakeEncodingConfig() testApp := app.New( log.NewNopLogger(), + "test-1", db, nil, true, diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 679e4fc79..f5d21de4c 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -230,7 +230,7 @@ func (ac appCreator) newApp( enabledWasmProposals := app.GetEnabledProposals() logger.Info("Enabled wasm proposals", "proposals", enabledWasmProposals) - return app.New(logger, db, traceStore, true, skipUpgradeHeights, + return app.New(logger, chainID, db, traceStore, true, skipUpgradeHeights, cast.ToString(appOpts.Get(flags.FlagHome)), cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), ac.encCfg, @@ -265,10 +265,21 @@ func (ac appCreator) appExport( return servertypes.ExportedApp{}, errors.New("application home is not set") } + chainID := cast.ToString(appOpts.Get(flags.FlagChainID)) + if chainID == "" { + appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homePath, "config", "genesis.json")) + if err != nil { + panic(err) + } + + chainID = appGenesis.ChainID + } + loadLatest := height == -1 var emptyWasmOpts []wasm.Option interchainapp = app.New( logger, + chainID, db, traceStore, loadLatest, diff --git a/go.mod b/go.mod index 77d9127cd..0809c7734 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 - github.com/cosmos/interchain-security/v3 v3.0.0-rc2 + github.com/cosmos/interchain-security/v3 v3.0.0 github.com/gogo/protobuf v1.3.3 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.3 @@ -145,6 +145,7 @@ require ( github.com/rs/cors v1.8.3 // indirect github.com/rs/zerolog v1.29.1 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/skip-mev/pob v1.0.3 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect diff --git a/go.sum b/go.sum index acffa4f7c..b01f6f704 100644 --- a/go.sum +++ b/go.sum @@ -927,6 +927,10 @@ github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZD github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/interchain-security/v3 v3.0.0-rc2 h1:bCPsPX8pDRizqRV1i+9gX9RYAeKRBCmVd3C7NC3weTE= github.com/cosmos/interchain-security/v3 v3.0.0-rc2/go.mod h1:HKHw9u4xMm5QJV76A03ORAXB2zisgpcunXZSca8TBdg= +github.com/cosmos/interchain-security/v3 v3.0.0 h1:ZEk1ltSWF/w6fpFk6eBH2PeyJ1dLFTZWyAdKPnO0unA= +github.com/cosmos/interchain-security/v3 v3.0.0/go.mod h1:HKHw9u4xMm5QJV76A03ORAXB2zisgpcunXZSca8TBdg= +github.com/cosmos/interchain-security/v3 v3.1.0 h1:EKDJCIKIDLG45tvKwfoANrRPgqvqfUt/f1TNKx3b7Uo= +github.com/cosmos/interchain-security/v3 v3.1.0/go.mod h1:2fILBgypEZcwR3BSzKDw+EsYtMKv9Z6cYXfouh4xTYU= 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.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= @@ -1014,6 +1018,8 @@ github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwu github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= +github.com/docker/cli v20.10.17+incompatible h1:eO2KS7ZFeov5UJeaDmIs1NFEDRf32PaqRpvoEkKBy5M= +github.com/docker/cli v20.10.17+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= @@ -1398,6 +1404,8 @@ github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/trillian v1.3.11 h1:pPzJPkK06mvXId1LHEAJxIegGgHzzp/FUnycPYfoCMI= github.com/google/trillian v1.3.11/go.mod h1:0tPraVHrSDkA3BO6vKX67zgLXs6SsOAbHEivX+9mPgw= github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -2071,6 +2079,8 @@ github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04s github.com/opencontainers/runc v1.0.3/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +github.com/opencontainers/runc v1.1.5 h1:L44KXEpKmfWDcS02aeGm8QNTFXTo2D+8MYGDIJ/GDEs= +github.com/opencontainers/runc v1.1.5/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc= github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/opencontainers/selinux v1.8.2 h1:c4ca10UMgRcvZ6h0K4HtS15UaVSBEaE+iln2LVpAuGc= @@ -2093,6 +2103,8 @@ github.com/openzipkin/zipkin-go v0.2.5 h1:UwtQQx2pyPIgWYHRg+epgdx1/HnBQTgN3/oIYE github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/ory/dockertest/v3 v3.10.0 h1:4K3z2VMe8Woe++invjaTB7VRyQXQy5UY+loujO4aNE4= +github.com/ory/dockertest/v3 v3.10.0/go.mod h1:nr57ZbRWMqfsdGdFNLHz5jjNdDb7VVFnzAeW1n5N1Lg= github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= @@ -2349,6 +2361,8 @@ github.com/sivchari/tenv v1.7.0 h1:d4laZMBK6jpe5PWepxlV9S+LC0yXqvYHiq8E6ceoVVE= github.com/sivchari/tenv v1.7.0/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= +github.com/skip-mev/pob v1.0.3 h1:cipN/WUU+xfYbcfUQ4EefSvl3ItocsKgRn3tOtRF2OE= +github.com/skip-mev/pob v1.0.3/go.mod h1:PMs/dqcWOQruSN6zLExU0TzlBfBmGA8iTy+FJhxn0T8= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= @@ -2578,6 +2592,12 @@ github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208 h1:1cngl9mPEoITZG8s8 github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= +github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= +github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= @@ -2775,6 +2795,8 @@ golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -3165,6 +3187,8 @@ golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= +golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index b0e43bcf5..978872cbd 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -604,6 +604,12 @@ function set_genesis_param() { sed -i -e "s/\"$param_name\":.*/\"$param_name\": $param_value/g" "$GENESIS_PATH" } +function convert_bech32_base64_esc() { + $BINARY keys parse $1 --output json | jq .bytes | xxd -r -p | base64 | sed -e 's/\//\\\//g' +} +DAO_CONTRACT_ADDRESS_B64=$(convert_bech32_base64_esc "$DAO_CONTRACT_ADDRESS") +echo $DAO_CONTRACT_ADDRESS_B64 + set_genesis_param admins "[\"$DAO_CONTRACT_ADDRESS\"]" # admin module set_genesis_param treasury_address "\"$DAO_CONTRACT_ADDRESS\"" # feeburner set_genesis_param fee_collector_address "\"$DAO_CONTRACT_ADDRESS\"" # tokenfactory @@ -615,6 +621,9 @@ set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing +set_genesis_param proposer_fee "\"0.25\"" # builder(POB) +set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) + if ! jq -e . "$GENESIS_PATH" >/dev/null 2>&1; then echo "genesis appears to become incorrect json" >&2 exit 1 diff --git a/tests/e2e/interchain_security_test.go b/tests/e2e/interchain_security_test.go index 41726178d..2ba3e4f8b 100644 --- a/tests/e2e/interchain_security_test.go +++ b/tests/e2e/interchain_security_test.go @@ -18,7 +18,7 @@ func TestCCVTestSuite(t *testing.T) { // Pass in concrete app types that implement the interfaces defined in /testutil/e2e/interfaces.go ccvSuite := e2e.NewCCVTestSuite[*appProvider.App, *appConsumer.App]( // Pass in ibctesting.AppIniters for provider and consumer. - icssimapp.ProviderAppIniter, testutil.SetupTestingApp, + icssimapp.ProviderAppIniter, testutil.SetupTestingApp("test-1"), // TODO: These three tests just don't work in IS, so skip them for now []string{"TestSendRewardsRetries", "TestRewardsDistribution", "TestEndBlockRD"}) diff --git a/testutil/contractmanager/network/network.go b/testutil/contractmanager/network/network.go index f3eb57ecd..a833bc317 100644 --- a/testutil/contractmanager/network/network.go +++ b/testutil/contractmanager/network/network.go @@ -72,7 +72,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, app.GetEnabledProposals(), sims.EmptyAppOptions{}, diff --git a/testutil/cron/network/network.go b/testutil/cron/network/network.go index 45354ba7d..a5a9a34fc 100644 --- a/testutil/cron/network/network.go +++ b/testutil/cron/network/network.go @@ -74,7 +74,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, app.GetEnabledProposals(), sims.EmptyAppOptions{}, diff --git a/testutil/interchainqueries/network/network.go b/testutil/interchainqueries/network/network.go index cb666dda5..b19569eed 100644 --- a/testutil/interchainqueries/network/network.go +++ b/testutil/interchainqueries/network/network.go @@ -72,7 +72,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, app.GetEnabledProposals(), sims.EmptyAppOptions{}, diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index 54856f3c1..af5e0099c 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -73,7 +73,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, app.GetEnabledProposals(), sims.EmptyAppOptions{}, diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index cc536476a..7873fe0f6 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -57,7 +57,7 @@ var ( ) func init() { - ibctesting.DefaultTestingAppInit = SetupTestingApp + ibctesting.DefaultTestingAppInit = SetupTestingApp("test-1") app.GetDefaultConfig() } @@ -263,11 +263,11 @@ func NewProviderConsumerCoordinator(t *testing.T) *ibctesting.Coordinator { chainID = ibctesting.GetChainID(2) coordinator.Chains[chainID] = NewTestChainWithValSet(t, coordinator, - SetupTestingApp, chainID, providerChain.Vals, providerChain.Signers) + SetupTestingApp(chainID), chainID, providerChain.Vals, providerChain.Signers) chainID = ibctesting.GetChainID(3) coordinator.Chains[chainID] = NewTestChainWithValSet(t, coordinator, - SetupTestingApp, chainID, providerChain.Vals, providerChain.Signers) + SetupTestingApp(chainID), chainID, providerChain.Vals, providerChain.Signers) return coordinator } @@ -373,23 +373,26 @@ func RegisterInterchainAccount(endpoint *ibctesting.Endpoint, owner string) erro } // SetupTestingApp initializes the IBC-go testing application -func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage) { - encoding := app.MakeEncodingConfig() - db := dbm.NewMemDB() - testApp := app.New( - log.NewNopLogger(), - db, - nil, - true, - map[int64]bool{}, - app.DefaultNodeHome, - 0, - encoding, - app.GetEnabledProposals(), - sims.EmptyAppOptions{}, - nil, - ) - return testApp, app.NewDefaultGenesisState(testApp.AppCodec()) +func SetupTestingApp(chainID string) func() (ibctesting.TestingApp, map[string]json.RawMessage) { + return func() (ibctesting.TestingApp, map[string]json.RawMessage) { + encoding := app.MakeEncodingConfig() + db := dbm.NewMemDB() + testApp := app.New( + log.NewNopLogger(), + chainID, + db, + nil, + true, + map[int64]bool{}, + app.DefaultNodeHome, + 0, + encoding, + app.GetEnabledProposals(), + sims.EmptyAppOptions{}, + nil, + ) + return testApp, app.NewDefaultGenesisState(testApp.AppCodec()) + } } func NewTransferPath(chainA, chainB, chainProvider *ibctesting.TestChain) *ibctesting.Path { From c5cb446ff4057fb9124cda234f287e85d5abf488 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 27 Jul 2023 10:47:46 +0300 Subject: [PATCH 004/307] migrations --- app/app.go | 12 +- app/proposals_allowlisting.go | 29 ++- app/upgrades/sdk47/constants.go | 15 ++ app/upgrades/sdk47/upgrades.go | 187 ++++++++++++++++++ app/upgrades/types.go | 15 +- app/upgrades/v0.4.4/upgrades.go | 4 +- app/upgrades/v3/upgrades.go | 3 + go.mod | 2 +- .../contractmanager/keeper/contractmanager.go | 8 - testutil/cron/keeper/cron.go | 8 - testutil/feeburner/keeper/feeburner.go | 8 - testutil/feerefunder/keeper/fee.go | 10 +- .../keeper/interchainqeries.go | 8 - .../interchaintxs/keeper/interchaintxs.go | 8 - x/contractmanager/keeper/keeper.go | 9 - x/contractmanager/keeper/params.go | 11 +- x/contractmanager/types/keys.go | 6 +- x/cron/keeper/keeper.go | 9 - x/cron/keeper/params.go | 18 +- x/cron/types/keys.go | 2 + x/feeburner/keeper/keeper.go | 15 +- x/feeburner/keeper/params.go | 18 +- x/feeburner/types/keys.go | 8 + x/feerefunder/keeper/keeper.go | 7 - x/feerefunder/keeper/params.go | 18 +- x/feerefunder/types/keys.go | 6 +- x/interchainqueries/keeper/keeper.go | 9 - x/interchainqueries/keeper/msg_server.go | 1 - x/interchainqueries/keeper/params.go | 18 +- x/interchainqueries/types/keys.go | 3 + x/interchaintxs/keeper/keeper.go | 10 - x/interchaintxs/keeper/msg_server_test.go | 17 +- x/interchaintxs/keeper/params.go | 18 +- x/interchaintxs/types/keys.go | 8 + x/tokenfactory/keeper/keeper.go | 11 +- x/tokenfactory/keeper/params.go | 19 +- x/tokenfactory/types/keys.go | 6 +- 37 files changed, 387 insertions(+), 177 deletions(-) create mode 100644 app/upgrades/sdk47/constants.go create mode 100644 app/upgrades/sdk47/upgrades.go diff --git a/app/app.go b/app/app.go index 4537857eb..f25401598 100644 --- a/app/app.go +++ b/app/app.go @@ -495,18 +495,16 @@ func New( appCodec, keys[contractmanagermoduletypes.StoreKey], keys[contractmanagermoduletypes.MemStoreKey], - app.GetSubspace(contractmanagermoduletypes.ModuleName), &app.WasmKeeper, ) - app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.GetSubspace(feetypes.ModuleName), app.IBCKeeper.ChannelKeeper, app.BankKeeper) + app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper) feeModule := feerefunder.NewAppModule(appCodec, *app.FeeKeeper, app.AccountKeeper, app.BankKeeper) app.FeeBurnerKeeper = feeburnerkeeper.NewKeeper( appCodec, keys[feeburnertypes.StoreKey], keys[feeburnertypes.MemStoreKey], - app.GetSubspace(feeburnertypes.ModuleName), app.AccountKeeper, app.BankKeeper, ) @@ -579,7 +577,6 @@ func New( tokenFactoryKeeper := tokenfactorykeeper.NewKeeper( appCodec, app.keys[tokenfactorytypes.StoreKey], - app.GetSubspace(tokenfactorytypes.ModuleName), app.AccountKeeper, app.BankKeeper.WithMintCoinsRestriction(tokenfactorytypes.NewTokenFactoryDenomMintCoinsRestriction()), ) @@ -626,7 +623,6 @@ func New( appCodec, keys[interchainqueriesmoduletypes.StoreKey], keys[interchainqueriesmoduletypes.MemStoreKey], - app.GetSubspace(interchainqueriesmoduletypes.ModuleName), app.IBCKeeper, app.BankKeeper, app.ContractManagerKeeper, @@ -637,14 +633,13 @@ func New( appCodec, keys[interchaintxstypes.StoreKey], memKeys[interchaintxstypes.MemStoreKey], - app.GetSubspace(interchaintxstypes.ModuleName), app.IBCKeeper.ChannelKeeper, app.ICAControllerKeeper, app.ContractManagerKeeper, app.FeeKeeper, ) - app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.GetSubspace(crontypes.ModuleName), app.AccountKeeper) + app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper) wasmOpts = append(wasmbinding.RegisterCustomPlugins(&app.InterchainTxsKeeper, &app.InterchainQueriesKeeper, app.TransferKeeper, &app.AdminmoduleKeeper, app.FeeBurnerKeeper, app.FeeKeeper, &app.BankKeeper, app.TokenFactoryKeeper, &app.CronKeeper), wasmOpts...) app.WasmKeeper = wasm.NewKeeper( @@ -1002,7 +997,10 @@ func (app *App) setupUpgradeHandlers() { TokenFactoryKeeper: app.TokenFactoryKeeper, SlashingKeeper: app.SlashingKeeper, ParamsKeeper: app.ParamsKeeper, + CapabilityKeeper: app.CapabilityKeeper, }, + app, + app.AppCodec(), ), ) } diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 38a86ed9d..acde4db9a 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -9,13 +9,6 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" packetforwardmiddlewaretypes "github.com/strangelove-ventures/packet-forward-middleware/v7/router/types" - - crontypes "github.com/neutron-org/neutron/x/cron/types" - feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" - feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" - interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" - interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" - tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" ) func IsConsumerProposalAllowlisted(content govtypes.Content) bool { @@ -62,22 +55,22 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ //{Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, //{Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, // feerefunder - {Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, + //{Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, // interchaintxs - {Subspace: interchaintxstypes.ModuleName, Key: string(interchaintxstypes.KeyMsgSubmitTxMaxMessages)}: {}, + //{Subspace: interchaintxstypes.ModuleName, Key: string(interchaintxstypes.KeyMsgSubmitTxMaxMessages)}: {}, // interchainqueries - {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQuerySubmitTimeout)}: {}, - {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQueryDeposit)}: {}, - {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyTxQueryRemovalLimit)}: {}, + //{Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQuerySubmitTimeout)}: {}, + //{Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQueryDeposit)}: {}, + //{Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyTxQueryRemovalLimit)}: {}, // feeburner - {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyTreasuryAddress)}: {}, - {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyNeutronDenom)}: {}, + //{Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyTreasuryAddress)}: {}, + //{Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyNeutronDenom)}: {}, // tokenfactory - {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, - {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, + //{Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, + //{Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, // cron - {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, - {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, + //{Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, + //{Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } diff --git a/app/upgrades/sdk47/constants.go b/app/upgrades/sdk47/constants.go new file mode 100644 index 000000000..d92b1e06f --- /dev/null +++ b/app/upgrades/sdk47/constants.go @@ -0,0 +1,15 @@ +package sdk47 + +import ( + "github.com/neutron-org/neutron/app/upgrades" +) + +const ( + // UpgradeName defines the on-chain upgrades name. + UpgradeName = "cosmos-sdk47" +) + +var Upgrade = upgrades.Upgrade{ + UpgradeName: UpgradeName, + CreateUpgradeHandler: CreateUpgradeHandler, +} diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go new file mode 100644 index 000000000..b962ec819 --- /dev/null +++ b/app/upgrades/sdk47/upgrades.go @@ -0,0 +1,187 @@ +package sdk47 + +import ( + "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/codec" + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/bech32" + "github.com/cosmos/cosmos-sdk/types/module" + capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" + "github.com/neutron-org/neutron/app/upgrades" + crontypes "github.com/neutron-org/neutron/x/cron/types" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" + icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" + interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" + tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" +) + +func CreateUpgradeHandler( + mm *module.Manager, + configurator module.Configurator, + keepers *upgrades.UpgradeKeepers, + storeKeys upgrades.StoreKeys, + codec codec.Codec, +) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + ctx.Logger().Info("Starting module migrations...") + vm, err := mm.RunMigrations(ctx, configurator, vm) + if err != nil { + return vm, err + } + + ctx.Logger().Info("Migrating channel capability...") + // https://github.com/cosmos/ibc-go/blob/v7.0.1/docs/migrations/v5-to-v6.md#upgrade-proposal + if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, interchaintxstypes.ModuleName); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating cron module parameters...") + if err := migrateCronParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(crontypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating feerefunder module parameters...") + if err := migrateFeeRefunderParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(feerefundertypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating tokenfactory module parameters...") + if err := migrateTokenFactoryParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating feeburner module parameters...") + if err := migrateFeeburnerParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(feeburnertypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating interchainqueries module parameters...") + if err := migrateInterchainQueriesParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(icqtypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating interchaintxs module parameters...") + if err := migrateInterchainTxsParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(interchaintxstypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Setting pob params...") + treasury := keepers.FeeBurnerKeeper.GetParams(ctx).TreasuryAddress + _, data, err := bech32.DecodeAndConvert(treasury) + if err != nil { + return nil, err + } + + builderParams := buildertypes.Params{ + MaxBundleSize: 2, + EscrowAccountAddress: data, + ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, + MinBidIncrement: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, + FrontRunningProtection: true, + ProposerFee: math.LegacyNewDecWithPrec(25, 2), + } + err = keepers.BuilderKeeper.SetParams(ctx, builderParams) + if err != nil { + return nil, err + } + + ctx.Logger().Info("Upgrade complete") + return vm, nil + } +} + +func migrateCronParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams crontypes.Params + subspace, _ := paramsKeepers.GetSubspace(crontypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(crontypes.ParamsKey, bz) + return nil +} + +func migrateFeeRefunderParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams feerefundertypes.Params + subspace, _ := paramsKeepers.GetSubspace(crontypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(feerefundertypes.ParamsKey, bz) + return nil +} + +func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams tokenfactorytypes.Params + subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(tokenfactorytypes.ParamsKey, bz) + return nil +} + +func migrateFeeburnerParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams feeburnertypes.Params + subspace, _ := paramsKeepers.GetSubspace(feeburnertypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(feeburnertypes.ParamsKey, bz) + return nil +} + +func migrateInterchainQueriesParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams icqtypes.Params + subspace, _ := paramsKeepers.GetSubspace(icqtypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(icqtypes.ParamsKey, bz) + return nil +} + +func migrateInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams interchaintxstypes.Params + subspace, _ := paramsKeepers.GetSubspace(interchaintxstypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(interchaintxstypes.ParamsKey, bz) + return nil +} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index ca17adff5..d940d9d3c 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -1,16 +1,19 @@ package upgrades import ( + "github.com/cosmos/cosmos-sdk/codec" store "github.com/cosmos/cosmos-sdk/store/types" + storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" + capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" + paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" icqkeeper "github.com/neutron-org/neutron/x/interchainqueries/keeper" tokenfactorykeeper "github.com/neutron-org/neutron/x/tokenfactory/keeper" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" ) // Upgrade defines a struct containing necessary fields that a SoftwareUpgradeProposal @@ -22,7 +25,7 @@ type Upgrade struct { UpgradeName string // CreateUpgradeHandler defines the function that creates an upgrade handler - CreateUpgradeHandler func(*module.Manager, module.Configurator, *UpgradeKeepers) upgradetypes.UpgradeHandler + CreateUpgradeHandler func(*module.Manager, module.Configurator, *UpgradeKeepers, StoreKeys, codec.Codec) upgradetypes.UpgradeHandler // Store upgrades, should be used for any new modules introduced, new modules deleted, or store names renamed. StoreUpgrades store.StoreUpgrades @@ -36,4 +39,10 @@ type UpgradeKeepers struct { FeeBurnerKeeper *feeburnerkeeper.Keeper SlashingKeeper slashingkeeper.Keeper ParamsKeeper paramskeeper.Keeper + CapabilityKeeper *capabilitykeeper.Keeper + BuilderKeeper builderkeeper.Keeper +} + +type StoreKeys interface { + GetKey(string) *storetypes.KVStoreKey } diff --git a/app/upgrades/v0.4.4/upgrades.go b/app/upgrades/v0.4.4/upgrades.go index c791065b7..79f28f4ab 100644 --- a/app/upgrades/v0.4.4/upgrades.go +++ b/app/upgrades/v0.4.4/upgrades.go @@ -2,7 +2,7 @@ package v044 import ( "errors" - + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" @@ -17,6 +17,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *upgrades.UpgradeKeepers, + _ upgrades.StoreKeys, + _ codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("Starting module migrations...") diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index e1ce1f21a..384b5685e 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -1,6 +1,7 @@ package v3 import ( + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" @@ -15,6 +16,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *upgrades.UpgradeKeepers, + _ upgrades.StoreKeys, + _ codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("Starting module migrations...") diff --git a/go.mod b/go.mod index 0809c7734..1011548d1 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 - github.com/cosmos/interchain-security/v3 v3.0.0 + github.com/cosmos/interchain-security/v3 v3.1.0 github.com/gogo/protobuf v1.3.3 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.3 diff --git a/testutil/contractmanager/keeper/contractmanager.go b/testutil/contractmanager/keeper/contractmanager.go index f8ab1cdfb..ad84a455e 100644 --- a/testutil/contractmanager/keeper/contractmanager.go +++ b/testutil/contractmanager/keeper/contractmanager.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" "github.com/neutron-org/neutron/x/contractmanager/keeper" @@ -31,17 +30,10 @@ func ContractManagerKeeper(t testing.TB, wasmKeeper types.WasmKeeper) (*keeper.K registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "ContractManagerParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, wasmKeeper, ) diff --git a/testutil/cron/keeper/cron.go b/testutil/cron/keeper/cron.go index ac34c73c8..afa4cad93 100644 --- a/testutil/cron/keeper/cron.go +++ b/testutil/cron/keeper/cron.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/neutron-org/neutron/x/cron/keeper" "github.com/neutron-org/neutron/x/cron/types" "github.com/stretchr/testify/require" @@ -30,17 +29,10 @@ func CronKeeper(t testing.TB, wasmMsgServer types.WasmMsgServer, accountKeeper t registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "CronParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, accountKeeper, ) k.WasmMsgServer = wasmMsgServer diff --git a/testutil/feeburner/keeper/feeburner.go b/testutil/feeburner/keeper/feeburner.go index 2305deb8b..dbf9daab6 100644 --- a/testutil/feeburner/keeper/feeburner.go +++ b/testutil/feeburner/keeper/feeburner.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/neutron-org/neutron/x/feeburner/keeper" "github.com/neutron-org/neutron/x/feeburner/types" "github.com/stretchr/testify/require" @@ -34,17 +33,10 @@ func FeeburnerKeeperWithDeps(t testing.TB, accountKeeper types.AccountKeeper, ba registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "FeeburnerParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, accountKeeper, bankkeeper, ) diff --git a/testutil/feerefunder/keeper/fee.go b/testutil/feerefunder/keeper/fee.go index ca7b769a8..9af103f50 100644 --- a/testutil/feerefunder/keeper/fee.go +++ b/testutil/feerefunder/keeper/fee.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" "github.com/neutron-org/neutron/x/feerefunder/keeper" @@ -30,18 +29,11 @@ func FeeKeeper(t testing.TB, channelKeeper types.ChannelKeeper, bankKeeper types registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "FeeParams", - ) + k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, channelKeeper, bankKeeper, ) diff --git a/testutil/interchainqueries/keeper/interchainqeries.go b/testutil/interchainqueries/keeper/interchainqeries.go index 6ad93d4aa..afec6b78d 100644 --- a/testutil/interchainqueries/keeper/interchainqeries.go +++ b/testutil/interchainqueries/keeper/interchainqeries.go @@ -13,7 +13,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" "github.com/neutron-org/neutron/x/interchainqueries/keeper" @@ -39,17 +38,10 @@ func InterchainQueriesKeeper( registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "InterchainQueriesParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, ibcKeeper, // TODO: do a real ibc keeper nil, // TODO: do a real wasm keeper contractManager, diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index b6c6ce657..2aedcc8c5 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/stretchr/testify/require" "github.com/neutron-org/neutron/x/interchaintxs/keeper" @@ -31,17 +30,10 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "InterchainTxsParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, channelKeeper, icaControllerKeeper, managerKeeper, diff --git a/x/contractmanager/keeper/keeper.go b/x/contractmanager/keeper/keeper.go index e41b149aa..31014162d 100644 --- a/x/contractmanager/keeper/keeper.go +++ b/x/contractmanager/keeper/keeper.go @@ -7,8 +7,6 @@ import ( "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/neutron-org/neutron/x/contractmanager/types" ) @@ -17,7 +15,6 @@ type ( cdc codec.BinaryCodec storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace wasmKeeper types.WasmKeeper } ) @@ -26,19 +23,13 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, wasmKeeper types.WasmKeeper, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, - paramstore: ps, wasmKeeper: wasmKeeper, } } diff --git a/x/contractmanager/keeper/params.go b/x/contractmanager/keeper/params.go index fb48d5018..b2e6f7687 100644 --- a/x/contractmanager/keeper/params.go +++ b/x/contractmanager/keeper/params.go @@ -12,6 +12,13 @@ func (k Keeper) GetParams(_ sdk.Context) types.Params { } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/contractmanager/types/keys.go b/x/contractmanager/types/keys.go index 450274611..62447d845 100644 --- a/x/contractmanager/types/keys.go +++ b/x/contractmanager/types/keys.go @@ -18,9 +18,13 @@ const ( const ( prefixContractFailures = iota + 1 + prefixParamsKey ) -var ContractFailuresKey = []byte{prefixContractFailures} +var ( + ContractFailuresKey = []byte{prefixContractFailures} + ParamsKey = []byte{prefixParamsKey} +) // GetFailureKeyPrefix returns the store key for the failures of the specific address func GetFailureKeyPrefix( diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index 688b14e83..96243dc74 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -15,7 +15,6 @@ import ( "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/neutron-org/neutron/x/cron/types" ) @@ -33,7 +32,6 @@ type ( cdc codec.BinaryCodec storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace accountKeeper types.AccountKeeper WasmMsgServer types.WasmMsgServer } @@ -43,19 +41,12 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, accountKeeper types.AccountKeeper, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, - paramstore: ps, accountKeeper: accountKeeper, } } diff --git a/x/cron/keeper/params.go b/x/cron/keeper/params.go index d04211c1b..870979a43 100644 --- a/x/cron/keeper/params.go +++ b/x/cron/keeper/params.go @@ -7,12 +7,24 @@ import ( // GetParams get all parameters as types.Params func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramstore.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + k.cdc.MustUnmarshal(bz, ¶ms) return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/cron/types/keys.go b/x/cron/types/keys.go index e9608a032..95bb9a676 100644 --- a/x/cron/types/keys.go +++ b/x/cron/types/keys.go @@ -17,11 +17,13 @@ const ( const ( prefixScheduleKey = iota + 1 prefixScheduleCountKey + prefixParamsKey ) var ( ScheduleKey = []byte{prefixScheduleKey} ScheduleCountKey = []byte{prefixScheduleCountKey} + ParamsKey = []byte{prefixParamsKey} ) func GetScheduleKey(name string) []byte { diff --git a/x/feeburner/keeper/keeper.go b/x/feeburner/keeper/keeper.go index 3832749fa..205edd433 100644 --- a/x/feeburner/keeper/keeper.go +++ b/x/feeburner/keeper/keeper.go @@ -10,7 +10,6 @@ import ( "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" consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" "github.com/neutron-org/neutron/x/feeburner/types" @@ -18,10 +17,9 @@ import ( type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace + cdc codec.BinaryCodec + storeKey storetypes.StoreKey + memKey storetypes.StoreKey accountKeeper types.AccountKeeper bankKeeper types.BankKeeper @@ -34,21 +32,14 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, - accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, - paramstore: ps, accountKeeper: accountKeeper, bankKeeper: bankKeeper, } diff --git a/x/feeburner/keeper/params.go b/x/feeburner/keeper/params.go index 886dd528f..a0f442f2a 100644 --- a/x/feeburner/keeper/params.go +++ b/x/feeburner/keeper/params.go @@ -7,12 +7,24 @@ import ( // GetParams get all parameters as types.Params func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramstore.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + k.cdc.MustUnmarshal(bz, ¶ms) return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/feeburner/types/keys.go b/x/feeburner/types/keys.go index 26284b44c..c790fca9d 100644 --- a/x/feeburner/types/keys.go +++ b/x/feeburner/types/keys.go @@ -14,6 +14,14 @@ const ( MemStoreKey = "mem_feeburner" ) +const ( + prefixParamsKey = iota + 1 +) + +var ( + ParamsKey = []byte{prefixParamsKey} +) + func KeyPrefix(p string) []byte { return []byte(p) } diff --git a/x/feerefunder/keeper/keeper.go b/x/feerefunder/keeper/keeper.go index 3ad840c36..22fdfc765 100644 --- a/x/feerefunder/keeper/keeper.go +++ b/x/feerefunder/keeper/keeper.go @@ -30,20 +30,13 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, channelKeeper types.ChannelKeeper, bankKeeper types.BankKeeper, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, - paramstore: ps, channelKeeper: channelKeeper, bankKeeper: bankKeeper, } diff --git a/x/feerefunder/keeper/params.go b/x/feerefunder/keeper/params.go index 2a8b2f3d2..ce942596e 100644 --- a/x/feerefunder/keeper/params.go +++ b/x/feerefunder/keeper/params.go @@ -8,12 +8,24 @@ import ( // GetParams get all parameters as types.Params func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramstore.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + k.cdc.MustUnmarshal(bz, ¶ms) return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/feerefunder/types/keys.go b/x/feerefunder/types/keys.go index b7bb93643..9c99c59b1 100644 --- a/x/feerefunder/types/keys.go +++ b/x/feerefunder/types/keys.go @@ -18,11 +18,15 @@ const ( const ( prefixFeeKey = iota + 1 + prefixParamsKey Separator = ";" ) -var FeeKey = []byte{prefixFeeKey} +var ( + FeeKey = []byte{prefixFeeKey} + ParamsKey = []byte{prefixParamsKey} +) func GetFeePacketKey(packet PacketID) []byte { return append(append(FeeKey, []byte(packet.ChannelId+Separator+packet.PortId+Separator)...), sdk.Uint64ToBigEndian(packet.Sequence)...) diff --git a/x/interchainqueries/keeper/keeper.go b/x/interchainqueries/keeper/keeper.go index 13e59d7b5..43e0bd703 100644 --- a/x/interchainqueries/keeper/keeper.go +++ b/x/interchainqueries/keeper/keeper.go @@ -10,7 +10,6 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" tendermintLightClientTypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" @@ -27,7 +26,6 @@ type ( cdc codec.BinaryCodec storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace ibcKeeper *ibckeeper.Keeper bank types.BankKeeper contractManagerKeeper types.ContractManagerKeeper @@ -40,23 +38,16 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, ibcKeeper *ibckeeper.Keeper, bank types.BankKeeper, contractManagerKeeper types.ContractManagerKeeper, headerVerifier types.HeaderVerifier, transactionVerifier types.TransactionVerifier, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, - paramstore: ps, ibcKeeper: ibcKeeper, bank: bank, contractManagerKeeper: contractManagerKeeper, diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 8e1bbe9fe..8b2254077 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -229,7 +229,6 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit } path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, url.PathEscape(string(result.Key))) - // identify what kind proofs (non-existence proof always has *ics23.CommitmentProof_Nonexist as the first item) we got // and call corresponding method to verify it switch proof.GetProofs()[0].GetProof().(type) { diff --git a/x/interchainqueries/keeper/params.go b/x/interchainqueries/keeper/params.go index b13dac043..e8953b273 100644 --- a/x/interchainqueries/keeper/params.go +++ b/x/interchainqueries/keeper/params.go @@ -8,12 +8,24 @@ import ( // GetParams get all parameters as types.Params func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramstore.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + k.cdc.MustUnmarshal(bz, ¶ms) return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/interchainqueries/types/keys.go b/x/interchainqueries/types/keys.go index 734527d13..7e422b472 100644 --- a/x/interchainqueries/types/keys.go +++ b/x/interchainqueries/types/keys.go @@ -26,6 +26,7 @@ const ( prefixRegisteredQueryResult prefixSubmittedTx prefixTxQueryToRemove + prefixParamsKey ) var ( @@ -37,6 +38,8 @@ var ( SubmittedTxKey = []byte{prefixSubmittedTx} // TxQueryToRemoveKey is the store key for TX queries marked to be removed. TxQueryToRemoveKey = []byte{prefixTxQueryToRemove} + // ParamsKey is the store key for the module params + ParamsKey = []byte{prefixParamsKey} // LastRegisteredQueryIDKey is the store key for last registered query ID. LastRegisteredQueryIDKey = []byte{0x64} ) diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 1bfd04518..a1032c24c 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -7,8 +7,6 @@ import ( "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/neutron-org/neutron/x/interchaintxs/types" ) @@ -25,7 +23,6 @@ type ( Codec codec.BinaryCodec storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace channelKeeper types.ChannelKeeper feeKeeper types.FeeRefunderKeeper icaControllerKeeper types.ICAControllerKeeper @@ -37,22 +34,15 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - paramstore paramtypes.Subspace, channelKeeper types.ChannelKeeper, icaControllerKeeper types.ICAControllerKeeper, contractManagerKeeper types.ContractManagerKeeper, feeKeeper types.FeeRefunderKeeper, ) *Keeper { - // set KeyTable if it has not already been set - if !paramstore.HasKeyTable() { - paramstore = paramstore.WithKeyTable(types.ParamKeyTable()) - } - return &Keeper{ Codec: cdc, storeKey: storeKey, memKey: memKey, - paramstore: paramstore, channelKeeper: channelKeeper, icaControllerKeeper: icaControllerKeeper, contractManagerKeeper: contractManagerKeeper, diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index 16f81930e..49f89fed2 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -5,7 +5,6 @@ import ( "testing" "time" - "github.com/cosmos/cosmos-sdk/codec" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/keeper" @@ -120,14 +119,14 @@ func TestSubmitTx(t *testing.T) { require.ErrorContains(t, err, "failed to GetActiveChannelID for port") activeChannel := "channel-0" - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - currCodec := icak.Codec - icak.Codec = &codec.AminoCodec{} - resp, err = icak.SubmitTx(goCtx, &submitMsg) - icak.Codec = currCodec - require.Nil(t, resp) - require.ErrorContains(t, err, "only ProtoCodec is supported for receiving messages on the host chain") + //cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + //icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) + //currCodec := icak.Codec + //icak.Codec = &codec.AminoCodec{} + //resp, err = icak.SubmitTx(goCtx, &submitMsg) + //icak.Codec = currCodec + //require.Nil(t, resp) + //require.ErrorContains(t, err, "only ProtoCodec is supported for receiving messages on the host chain") cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) diff --git a/x/interchaintxs/keeper/params.go b/x/interchaintxs/keeper/params.go index b466d5fb4..2a443a632 100644 --- a/x/interchaintxs/keeper/params.go +++ b/x/interchaintxs/keeper/params.go @@ -8,12 +8,24 @@ import ( // GetParams get all parameters as types.Params func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramstore.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + k.Codec.MustUnmarshal(bz, ¶ms) return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.Codec.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index 9f0ce51cc..e7f0284ca 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -16,3 +16,11 @@ const ( // MemStoreKey defines the in-memory store key MemStoreKey = "mem_interchaintxs" ) + +const ( + prefixParamsKey = iota + 1 +) + +var ( + ParamsKey = []byte{prefixParamsKey} +) diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 0b391112f..433d178bc 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -32,19 +32,12 @@ type ( func NewKeeper( cdc codec.Codec, storeKey storetypes.StoreKey, - paramSpace paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, ) Keeper { - if !paramSpace.HasKeyTable() { - paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable()) - } - return Keeper{ - cdc: cdc, - storeKey: storeKey, - paramSpace: paramSpace, - + cdc: cdc, + storeKey: storeKey, accountKeeper: accountKeeper, bankKeeper: bankKeeper, } diff --git a/x/tokenfactory/keeper/params.go b/x/tokenfactory/keeper/params.go index 5e907456d..b8cb99841 100644 --- a/x/tokenfactory/keeper/params.go +++ b/x/tokenfactory/keeper/params.go @@ -8,11 +8,24 @@ import ( // GetParams returns the total set params. func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramSpace.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + + k.cdc.MustUnmarshal(bz, ¶ms) return params } // SetParams sets the total set of params. -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramSpace.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.ParamsKey, bz) + return nil } diff --git a/x/tokenfactory/types/keys.go b/x/tokenfactory/types/keys.go index fac4a6e39..303966f66 100644 --- a/x/tokenfactory/types/keys.go +++ b/x/tokenfactory/types/keys.go @@ -22,13 +22,17 @@ const ( ) // KeySeparator is used to combine parts of the keys in the store -const KeySeparator = "|" +const ( + KeySeparator = "|" + prefixParamsKey = iota + 1 +) var ( DenomAuthorityMetadataKey = "authoritymetadata" DenomsPrefixKey = "denoms" CreatorPrefixKey = "creator" AdminPrefixKey = "admin" + ParamsKey = []byte{prefixParamsKey} ) // GetDenomPrefixStore returns the store prefix where all the data associated with a specific denom From 3b0907280056ac3fe1636060a9fc3d5285c176f4 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 27 Jul 2023 11:48:32 +0300 Subject: [PATCH 005/307] merged global fee(but disabled) --- app/ante_handler.go | 7 +- app/app.go | 14 +- app/proposals_allowlisting.go | 2 +- app/upgrades/nextupgrade/constants.go | 2 +- app/upgrades/nextupgrade/upgrades.go | 5 +- app/upgrades/nextupgrade/upgrades_test.go | 4 +- cmd/neutrond/config.go | 2 +- cmd/neutrond/root.go | 11 +- go.mod | 8 +- go.sum | 1514 ++++----------------- 10 files changed, 262 insertions(+), 1307 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index 1f70faf12..eefe35963 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -16,8 +16,6 @@ import ( "github.com/skip-mev/pob/mempool" ante2 "github.com/skip-mev/pob/x/builder/ante" builderkeeper "github.com/skip-mev/pob/x/builder/keeper" - - globalfeeante "github.com/cosmos/gaia/v8/x/globalfee/ante" ) // maxBypassMinFeeMsgGasUsage is the maximum gas usage per message @@ -38,6 +36,9 @@ type HandlerOptions struct { buildKeeper builderkeeper.Keeper txEncoder sdk.TxEncoder mempool *mempool.AuctionMempool + + // globalFee + GlobalFeeSubspace paramtypes.Subspace } func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, error) { @@ -78,7 +79,7 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, // We are providing options.GlobalFeeSubspace because we do not have staking module // In this case you should be sure that you implemented upgrade to set default global fee param and it SHOULD contain at least one record // otherwise you will get panic - globalfeeante.NewFeeDecorator(options.BypassMinFeeMsgTypes, options.GlobalFeeSubspace, options.GlobalFeeSubspace, maxBypassMinFeeMsgGasUsage), + //globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), // SetPubKeyDecorator must be called before all signature verification decorators diff --git a/app/app.go b/app/app.go index f4001f5fe..0102f5de5 100644 --- a/app/app.go +++ b/app/app.go @@ -6,6 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/neutron-org/neutron/docs" proposalhandler "github.com/skip-mev/pob/abci" @@ -82,7 +83,7 @@ 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" - "github.com/cosmos/gaia/v8/x/globalfee" + "github.com/cosmos/gaia/v11/x/globalfee" 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" @@ -94,7 +95,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v7/modules/core" ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client" - ibcchanneltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" @@ -117,7 +118,6 @@ import ( govclient "github.com/cosmos/cosmos-sdk/x/gov/client" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - gaiaappparams "github.com/cosmos/gaia/v8/app/params" appparams "github.com/neutron-org/neutron/app/params" "github.com/neutron-org/neutron/wasmbinding" "github.com/neutron-org/neutron/x/contractmanager" @@ -899,11 +899,6 @@ func New( app.SetInitChainer(app.InitChainer) app.SetBeginBlocker(app.BeginBlocker) - bypassMinFeeMsgTypes := cast.ToStringSlice(appOpts.Get(gaiaappparams.BypassMinFeeMsgTypesKey)) - if bypassMinFeeMsgTypes == nil { - bypassMinFeeMsgTypes = GetDefaultBypassFeeMessages() - } - anteHandler, err := NewAnteHandler( HandlerOptions{ HandlerOptions: ante.HandlerOptions{ @@ -919,8 +914,7 @@ func New( ConsumerKeeper: app.ConsumerKeeper, buildKeeper: app.BuilderKeeper, mempool: mempool, - BypassMinFeeMsgTypes: bypassMinFeeMsgTypes, - GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), + GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), }, app.Logger(), ) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 4166daf6a..26022eac5 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -5,11 +5,11 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" packetforwardmiddlewaretypes "github.com/strangelove-ventures/packet-forward-middleware/v7/router/types" - globalfeetypes "github.com/cosmos/gaia/v8/x/globalfee/types" ) func IsConsumerProposalAllowlisted(content govtypes.Content) bool { diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index 3d6563ad1..11ddc35b9 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -3,7 +3,7 @@ package nextupgrade import ( store "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/gaia/v8/x/globalfee" + "github.com/cosmos/gaia/v11/x/globalfee" "github.com/neutron-org/neutron/app/upgrades" ) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index e16bc7b8a..7db80ca43 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,11 +2,12 @@ package nextupgrade import ( "errors" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - "github.com/cosmos/gaia/v8/x/globalfee/types" + "github.com/cosmos/gaia/v11/x/globalfee/types" "github.com/neutron-org/neutron/app/upgrades" ) @@ -14,6 +15,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *upgrades.UpgradeKeepers, + _ upgrades.StoreKeys, + _ codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("Starting module migrations...") diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index e925acd88..464d5293e 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - "github.com/cosmos/gaia/v8/x/globalfee" - globalfeetypes "github.com/cosmos/gaia/v8/x/globalfee/types" + "github.com/cosmos/gaia/v11/x/globalfee" + globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" "github.com/neutron-org/neutron/app/upgrades/nextupgrade" "github.com/neutron-org/neutron/testutil" "github.com/stretchr/testify/suite" diff --git a/cmd/neutrond/config.go b/cmd/neutrond/config.go index 0e60ac360..f755c5596 100644 --- a/cmd/neutrond/config.go +++ b/cmd/neutrond/config.go @@ -8,12 +8,12 @@ import ( "path/filepath" "text/template" + tmcli "github.com/cometbft/cometbft/libs/cli" "github.com/cosmos/cosmos-sdk/client" scconfig "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" "github.com/spf13/viper" - tmcli "github.com/tendermint/tendermint/libs/cli" ) // This code is copied from the Juno implementation: https://github.com/CosmosContracts/juno/pull/601/files diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 123787054..401939e8b 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -2,10 +2,10 @@ package main import ( "errors" + "fmt" "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" 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" @@ -38,7 +38,7 @@ import ( "os" "path/filepath" - gaiaparams "github.com/cosmos/gaia/v8/app/params" + tmcfg "github.com/cometbft/cometbft/config" "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/app/params" ) @@ -86,7 +86,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { } customTemplate, customNeutronConfig := initAppConfig() - return server.InterceptConfigsPreRunHandler(cmd, customTemplate, customNeutronConfig) + return server.InterceptConfigsPreRunHandler(cmd, customTemplate, customNeutronConfig, tmcfg.DefaultConfig()) }, } @@ -98,10 +98,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { func initAppConfig() (string, interface{}) { srvCfg := serverconfig.DefaultConfig() - return gaiaparams.CustomConfigTemplate(), gaiaparams.CustomAppConfig{ - Config: *srvCfg, - BypassMinFeeMsgTypes: app.GetDefaultBypassFeeMessages(), - } + return serverconfig.DefaultConfigTemplate, srvCfg } func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { diff --git a/go.mod b/go.mod index 1011548d1..04a45b9f1 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.20 require ( cosmossdk.io/core v0.5.1 + cosmossdk.io/math v1.0.1 github.com/CosmWasm/wasmd v0.40.0 github.com/CosmWasm/wasmvm v1.2.4 github.com/armon/go-metrics v0.4.1 @@ -12,6 +13,7 @@ require ( github.com/cosmos/admin-module v0.0.0-20220204080909-475a98e03f31 github.com/cosmos/cosmos-proto v1.0.0-beta.2 github.com/cosmos/cosmos-sdk v0.47.3 + github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 @@ -24,8 +26,10 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.15.1 + github.com/skip-mev/pob v1.0.3 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 + github.com/spf13/viper v1.16.0 github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f github.com/stretchr/testify v1.8.4 google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc @@ -43,7 +47,6 @@ require ( cosmossdk.io/depinject v1.0.0-alpha.3 // indirect cosmossdk.io/errors v1.0.0-beta.7 // indirect cosmossdk.io/log v1.1.0 // indirect - cosmossdk.io/math v1.0.1 // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -145,11 +148,9 @@ require ( github.com/rs/cors v1.8.3 // indirect github.com/rs/zerolog v1.29.1 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/skip-mev/pob v1.0.3 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.16.0 // indirect github.com/subosito/gotenv v1.4.2 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect @@ -184,6 +185,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d + github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 diff --git a/go.sum b/go.sum index b01f6f704..8d4917698 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,4 @@ -4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a/go.mod h1:wfdC5ZjKSPr7CybKEcgJhUOgeAQW1+7WcyK8OvUilfo= -4d63.com/gochecknoglobals v0.1.0 h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0= 4d63.com/gochecknoglobals v0.1.0/go.mod h1:wfdC5ZjKSPr7CybKEcgJhUOgeAQW1+7WcyK8OvUilfo= -bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 h1:SC+c6A1qTFstO9qmB86mPV2IpYme/2ZoEQ0hrP+wo+Q= -bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= -bitbucket.org/creachadair/shell v0.0.6 h1:reJflDbKqnlnqb4Oo2pQ1/BqmY/eCWcNGHrIUO8qIzc= bitbucket.org/creachadair/shell v0.0.6/go.mod h1:8Qqi/cYk7vPnsOePHroKXDJYmb5x7ENhtiFtfZq8K+M= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= @@ -45,54 +40,22 @@ cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34h cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= -cloud.google.com/go/accessapproval v1.6.0 h1:x0cEHro/JFPd7eS4BlEWNTMecIj2HdXjOVB5BtvwER0= -cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E= -cloud.google.com/go/accesscontextmanager v1.7.0 h1:MG60JgnEoawHJrbWw0jGdv6HLNSf6gQvYRiXpuzqgEA= -cloud.google.com/go/accesscontextmanager v1.7.0/go.mod h1:CEGLewx8dwa33aDAZQujl7Dx+uYhS0eay198wB/VumQ= 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/aiplatform v1.37.0 h1:zTw+suCVchgZyO+k847wjzdVjWmrAuehxdvcZvJwfGg= -cloud.google.com/go/aiplatform v1.37.0/go.mod h1:IU2Cv29Lv9oCn/9LkFiiuKfwrRTq+QQMbW+hPCxJGZw= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= -cloud.google.com/go/analytics v0.19.0 h1:LqAo3tAh2FU9+w/r7vc3hBjU23Kv7GhO/PDIW7kIYgM= -cloud.google.com/go/analytics v0.19.0/go.mod h1:k8liqf5/HCnOUkbawNtrWWc+UAzyDlW89doe8TtoDsE= -cloud.google.com/go/apigateway v1.5.0 h1:ZI9mVO7x3E9RK/BURm2p1aw9YTBSCQe3klmyP1WxWEg= -cloud.google.com/go/apigateway v1.5.0/go.mod h1:GpnZR3Q4rR7LVu5951qfXPJCHquZt02jf7xQx7kpqN8= -cloud.google.com/go/apigeeconnect v1.5.0 h1:sWOmgDyAsi1AZ48XRHcATC0tsi9SkPT7DA/+VCfkaeA= -cloud.google.com/go/apigeeconnect v1.5.0/go.mod h1:KFaCqvBRU6idyhSNyn3vlHXc8VMDJdRmwDF6JyFRqZ8= -cloud.google.com/go/apigeeregistry v0.6.0 h1:E43RdhhCxdlV+I161gUY2rI4eOaMzHTA5kNkvRsFXvc= -cloud.google.com/go/apigeeregistry v0.6.0/go.mod h1:BFNzW7yQVLZ3yj0TKcwzb8n25CFBri51GVGOEUcgQsc= -cloud.google.com/go/appengine v1.7.1 h1:aBGDKmRIaRRoWJ2tAoN0oVSHoWLhtO9aj/NvUyP4aYs= -cloud.google.com/go/appengine v1.7.1/go.mod h1:IHLToyb/3fKutRysUlFO0BPt5j7RiQ45nrzEJmKTo6E= cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= -cloud.google.com/go/area120 v0.7.1 h1:ugckkFh4XkHJMPhTIx0CyvdoBxmOpMe8rNs4Ok8GAag= -cloud.google.com/go/area120 v0.7.1/go.mod h1:j84i4E1RboTWjKtZVWXPqvK5VHQFJRF2c1Nm69pWm9k= cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= -cloud.google.com/go/artifactregistry v1.13.0 h1:o1Q80vqEB6Qp8WLEH3b8FBLNUCrGQ4k5RFj0sn/sgO8= -cloud.google.com/go/artifactregistry v1.13.0/go.mod h1:uy/LNfoOIivepGhooAUpL1i30Hgee3Cu0l4VTWHUC08= cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= -cloud.google.com/go/asset v1.13.0 h1:YAsssO08BqZ6mncbb6FPlj9h6ACS7bJQUOlzciSfbNk= -cloud.google.com/go/asset v1.13.0/go.mod h1:WQAMyYek/b7NBpYq/K4KJWcRqzoalEsxz/t/dTk4THw= cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= -cloud.google.com/go/assuredworkloads v1.10.0 h1:VLGnVFta+N4WM+ASHbhc14ZOItOabDLH1MSoDv+Xuag= -cloud.google.com/go/assuredworkloads v1.10.0/go.mod h1:kwdUQuXcedVdsIaKgKTp9t0UJkE5+PAVNhdQm4ZVq2E= cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= -cloud.google.com/go/automl v1.12.0 h1:50VugllC+U4IGl3tDNcZaWvApHBTrn/TvyHDJ0wM+Uw= -cloud.google.com/go/automl v1.12.0/go.mod h1:tWDcHDp86aMIuHmyvjuKeeHEGq76lD7ZqfGLN6B0NuU= -cloud.google.com/go/baremetalsolution v0.5.0 h1:2AipdYXL0VxMboelTTw8c1UJ7gYu35LZYUbuRv9Q28s= -cloud.google.com/go/baremetalsolution v0.5.0/go.mod h1:dXGxEkmR9BMwxhzBhV0AioD0ULBmuLZI8CdwalUxuss= -cloud.google.com/go/batch v0.7.0 h1:YbMt0E6BtqeD5FvSv1d56jbVsWEzlGm55lYte+M6Mzs= -cloud.google.com/go/batch v0.7.0/go.mod h1:vLZN95s6teRUqRQ4s3RLDsH8PvboqBK+rn1oevL159g= -cloud.google.com/go/beyondcorp v0.5.0 h1:UkY2BTZkEUAVrgqnSdOJ4p3y9ZRBPEe1LkjgC8Bj/Pc= -cloud.google.com/go/beyondcorp v0.5.0/go.mod h1:uFqj9X+dSfrheVp7ssLTaRHd2EHqSL4QZmH4e8WXGGU= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -100,30 +63,13 @@ cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUM cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= -cloud.google.com/go/bigquery v1.50.0 h1:RscMV6LbnAmhAzD893Lv9nXXy2WCaJmbxYPWDLbGqNQ= -cloud.google.com/go/bigquery v1.50.0/go.mod h1:YrleYEh2pSEbgTBZYMJ5SuSr0ML3ypjRB1zgf7pvQLU= -cloud.google.com/go/bigtable v1.2.0 h1:F4cCmA4nuV84V5zYQ3MKY+M1Cw1avHDuf3S/LcZPA9c= cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= -cloud.google.com/go/billing v1.13.0 h1:JYj28UYF5w6VBAh0gQYlgHJ/OD1oA+JgW29YZQU+UHM= -cloud.google.com/go/billing v1.13.0/go.mod h1:7kB2W9Xf98hP9Sr12KfECgfGclsH3CQR0R08tnRlRbc= cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= -cloud.google.com/go/binaryauthorization v1.5.0 h1:d3pMDBCCNivxt5a4eaV7FwL7cSH0H7RrEnFrTb1QKWs= -cloud.google.com/go/binaryauthorization v1.5.0/go.mod h1:OSe4OU1nN/VswXKRBmciKpo9LulY41gch5c68htf3/Q= -cloud.google.com/go/certificatemanager v1.6.0 h1:5C5UWeSt8Jkgp7OWn2rCkLmYurar/vIWIoSQ2+LaTOc= -cloud.google.com/go/certificatemanager v1.6.0/go.mod h1:3Hh64rCKjRAX8dXgRAyOcY5vQ/fE1sh8o+Mdd6KPgY8= -cloud.google.com/go/channel v1.12.0 h1:GpcQY5UJKeOekYgsX3QXbzzAc/kRGtBq43fTmyKe6Uw= -cloud.google.com/go/channel v1.12.0/go.mod h1:VkxCGKASi4Cq7TbXxlaBezonAYpp1GCnKMY6tnMQnLU= -cloud.google.com/go/cloudbuild v1.9.0 h1:GHQCjV4WlPPVU/j3Rlpc8vNIDwThhd1U9qSY/NPZdko= -cloud.google.com/go/cloudbuild v1.9.0/go.mod h1:qK1d7s4QlO0VwfYn5YuClDGg2hfmLZEb4wQGAbIgL1s= -cloud.google.com/go/clouddms v1.5.0 h1:E7v4TpDGUyEm1C/4KIrpVSOCTm0P6vWdHT0I4mostRA= -cloud.google.com/go/clouddms v1.5.0/go.mod h1:QSxQnhikCLUw13iAbffF2CZxAER3xDGNHjsTAkQJcQA= cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= -cloud.google.com/go/cloudtasks v1.10.0 h1:uK5k6abf4yligFgYFnG0ni8msai/dSv6mDmiBulU0hU= -cloud.google.com/go/cloudtasks v1.10.0/go.mod h1:NDSoTLkZ3+vExFEWu2UJV1arUyzVDAiZtdWcsUyNwBs= cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= @@ -135,253 +81,101 @@ cloud.google.com/go/compute v1.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbC cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= 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/contactcenterinsights v1.6.0 h1:jXIpfcH/VYSE1SYcPzO0n1VVb+sAamiLOgCw45JbOQk= -cloud.google.com/go/contactcenterinsights v1.6.0/go.mod h1:IIDlT6CLcDoyv79kDv8iWxMSTZhLxSCofVV5W6YFM/w= -cloud.google.com/go/container v1.15.0 h1:NKlY/wCDapfVZlbVVaeuu2UZZED5Dy1z4Zx1KhEzm8c= -cloud.google.com/go/container v1.15.0/go.mod h1:ft+9S0WGjAyjDggg5S06DXj+fHJICWg8L7isCQe9pQA= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= -cloud.google.com/go/containeranalysis v0.9.0 h1:EQ4FFxNaEAg8PqQCO7bVQfWz9NVwZCUKaM1b3ycfx3U= -cloud.google.com/go/containeranalysis v0.9.0/go.mod h1:orbOANbwk5Ejoom+s+DUCTTJ7IBdBQJDcSylAx/on9s= cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= -cloud.google.com/go/datacatalog v1.13.0 h1:4H5IJiyUE0X6ShQBqgFFZvGGcrwGVndTwUSLP4c52gw= -cloud.google.com/go/datacatalog v1.13.0/go.mod h1:E4Rj9a5ZtAxcQJlEBTLgMTphfP11/lNaAshpoBgemX8= cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= -cloud.google.com/go/dataflow v0.8.0 h1:eYyD9o/8Nm6EttsKZaEGD84xC17bNgSKCu0ZxwqUbpg= -cloud.google.com/go/dataflow v0.8.0/go.mod h1:Rcf5YgTKPtQyYz8bLYhFoIV/vP39eL7fWNcSOyFfLJE= cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= -cloud.google.com/go/dataform v0.7.0 h1:Dyk+fufup1FR6cbHjFpMuP4SfPiF3LI3JtoIIALoq48= -cloud.google.com/go/dataform v0.7.0/go.mod h1:7NulqnVozfHvWUBpMDfKMUESr+85aJsC/2O0o3jWPDE= -cloud.google.com/go/datafusion v1.6.0 h1:sZjRnS3TWkGsu1LjYPFD/fHeMLZNXDK6PDHi2s2s/bk= -cloud.google.com/go/datafusion v1.6.0/go.mod h1:WBsMF8F1RhSXvVM8rCV3AeyWVxcC2xY6vith3iw3S+8= cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= -cloud.google.com/go/datalabeling v0.7.0 h1:ch4qA2yvddGRUrlfwrNJCr79qLqhS9QBwofPHfFlDIk= -cloud.google.com/go/datalabeling v0.7.0/go.mod h1:WPQb1y08RJbmpM3ww0CSUAGweL0SxByuW2E+FU+wXcM= -cloud.google.com/go/dataplex v1.6.0 h1:RvoZ5T7gySwm1CHzAw7yY1QwwqaGswunmqEssPxU/AM= -cloud.google.com/go/dataplex v1.6.0/go.mod h1:bMsomC/aEJOSpHXdFKFGQ1b0TDPIeL28nJObeO1ppRs= -cloud.google.com/go/dataproc v1.12.0 h1:W47qHL3W4BPkAIbk4SWmIERwsWBaNnWm0P2sdx3YgGU= -cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4= cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= -cloud.google.com/go/dataqna v0.7.0 h1:yFzi/YU4YAdjyo7pXkBE2FeHbgz5OQQBVDdbErEHmVQ= -cloud.google.com/go/dataqna v0.7.0/go.mod h1:Lx9OcIIeqCrw1a6KdO3/5KMP1wAmTc0slZWwP12Qq3c= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/datastore v1.11.0 h1:iF6I/HaLs3Ado8uRKMvZRvF/ZLkWaWE9i8AiHzbC774= -cloud.google.com/go/datastore v1.11.0/go.mod h1:TvGxBIHCS50u8jzG+AW/ppf87v1of8nwzFNgEZU1D3c= cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= -cloud.google.com/go/datastream v1.7.0 h1:BBCBTnWMDwwEzQQmipUXxATa7Cm7CA/gKjKcR2w35T0= -cloud.google.com/go/datastream v1.7.0/go.mod h1:uxVRMm2elUSPuh65IbZpzJNMbuzkcvu5CjMqVIUHrww= -cloud.google.com/go/deploy v1.8.0 h1:otshdKEbmsi1ELYeCKNYppwV0UH5xD05drSdBm7ouTk= -cloud.google.com/go/deploy v1.8.0/go.mod h1:z3myEJnA/2wnB4sgjqdMfgxCA0EqC3RBTNcVPs93mtQ= cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= -cloud.google.com/go/dialogflow v1.32.0 h1:uVlKKzp6G/VtSW0E7IH1Y5o0H48/UOCmqksG2riYCwQ= -cloud.google.com/go/dialogflow v1.32.0/go.mod h1:jG9TRJl8CKrDhMEcvfcfFkkpp8ZhgPz3sBGmAUYJ2qE= -cloud.google.com/go/dlp v1.9.0 h1:1JoJqezlgu6NWCroBxr4rOZnwNFILXr4cB9dMaSKO4A= -cloud.google.com/go/dlp v1.9.0/go.mod h1:qdgmqgTyReTz5/YNSSuueR8pl7hO0o9bQ39ZhtgkWp4= cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= -cloud.google.com/go/documentai v1.18.0 h1:KM3Xh0QQyyEdC8Gs2vhZfU+rt6OCPF0dwVwxKgLmWfI= -cloud.google.com/go/documentai v1.18.0/go.mod h1:F6CK6iUH8J81FehpskRmhLq/3VlwQvb7TvwOceQ2tbs= cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= -cloud.google.com/go/domains v0.8.0 h1:2ti/o9tlWL4N+wIuWUNH+LbfgpwxPr8J1sv9RHA4bYQ= -cloud.google.com/go/domains v0.8.0/go.mod h1:M9i3MMDzGFXsydri9/vW+EWz9sWb4I6WyHqdlAk0idE= cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= -cloud.google.com/go/edgecontainer v1.0.0 h1:O0YVE5v+O0Q/ODXYsQHmHb+sYM8KNjGZw2pjX2Ws41c= -cloud.google.com/go/edgecontainer v1.0.0/go.mod h1:cttArqZpBB2q58W/upSG++ooo6EsblxDIolxa3jSjbY= -cloud.google.com/go/errorreporting v0.3.0 h1:kj1XEWMu8P0qlLhm3FwcaFsUvXChV/OraZwA70trRR0= -cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= -cloud.google.com/go/essentialcontacts v1.5.0 h1:gIzEhCoOT7bi+6QZqZIzX1Erj4SswMPIteNvYVlu+pM= -cloud.google.com/go/essentialcontacts v1.5.0/go.mod h1:ay29Z4zODTuwliK7SnX8E86aUF2CTzdNtvv42niCX0M= -cloud.google.com/go/eventarc v1.11.0 h1:fsJmNeqvqtk74FsaVDU6cH79lyZNCYP8Rrv7EhaB/PU= -cloud.google.com/go/eventarc v1.11.0/go.mod h1:PyUjsUKPWoRBCHeOxZd/lbOOjahV41icXyUY5kSTvVY= -cloud.google.com/go/filestore v1.6.0 h1:ckTEXN5towyTMu4q0uQ1Mde/JwTHur0gXs8oaIZnKfw= -cloud.google.com/go/filestore v1.6.0/go.mod h1:di5unNuss/qfZTw2U9nhFqo8/ZDSc466dre85Kydllg= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= -cloud.google.com/go/firestore v1.9.0 h1:IBlRyxgGySXu5VuW0RgGFlTtLukSnNkpDiEOMkQkmpA= -cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= -cloud.google.com/go/functions v1.13.0 h1:pPDqtsXG2g9HeOQLoquLbmvmb82Y4Ezdo1GXuotFoWg= -cloud.google.com/go/functions v1.13.0/go.mod h1:EU4O007sQm6Ef/PwRsI8N2umygGqPBS/IZQKBQBcJ3c= cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= -cloud.google.com/go/gaming v1.9.0 h1:7vEhFnZmd931Mo7sZ6pJy7uQPDxF7m7v8xtBheG08tc= -cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0= -cloud.google.com/go/gkebackup v0.4.0 h1:za3QZvw6ujR0uyqkhomKKKNoXDyqYGPJies3voUK8DA= -cloud.google.com/go/gkebackup v0.4.0/go.mod h1:byAyBGUwYGEEww7xsbnUTBHIYcOPy/PgUWUtOeRm9Vg= cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= -cloud.google.com/go/gkeconnect v0.7.0 h1:gXYKciHS/Lgq0GJ5Kc9SzPA35NGc3yqu6SkjonpEr2Q= -cloud.google.com/go/gkeconnect v0.7.0/go.mod h1:SNfmVqPkaEi3bF/B3CNZOAYPYdg7sU+obZ+QTky2Myw= cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= -cloud.google.com/go/gkehub v0.12.0 h1:TqCSPsEBQ6oZSJgEYZ3XT8x2gUadbvfwI32YB0kuHCs= -cloud.google.com/go/gkehub v0.12.0/go.mod h1:djiIwwzTTBrF5NaXCGv3mf7klpEMcST17VBTVVDcuaw= -cloud.google.com/go/gkemulticloud v0.5.0 h1:8I84Q4vl02rJRsFiinBxl7WCozfdLlUVBQuSrqr9Wtk= -cloud.google.com/go/gkemulticloud v0.5.0/go.mod h1:W0JDkiyi3Tqh0TJr//y19wyb1yf8llHVto2Htf2Ja3Y= -cloud.google.com/go/grafeas v0.2.0 h1:CYjC+xzdPvbV65gi6Dr4YowKcmLo045pm18L0DhdELM= cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= -cloud.google.com/go/gsuiteaddons v1.5.0 h1:1mvhXqJzV0Vg5Fa95QwckljODJJfDFXV4pn+iL50zzA= -cloud.google.com/go/gsuiteaddons v1.5.0/go.mod h1:TFCClYLd64Eaa12sFVmUyG62tk4mdIsI7pAnSXRkcFo= 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 v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= -cloud.google.com/go/iap v1.7.1 h1:PxVHFuMxmSZyfntKXHXhd8bo82WJ+LcATenq7HLdVnU= -cloud.google.com/go/iap v1.7.1/go.mod h1:WapEwPc7ZxGt2jFGB/C/bm+hP0Y6NXzOYGjpPnmMS74= -cloud.google.com/go/ids v1.3.0 h1:fodnCDtOXuMmS8LTC2y3h8t24U8F3eKWfhi+3LY6Qf0= -cloud.google.com/go/ids v1.3.0/go.mod h1:JBdTYwANikFKaDP6LtW5JAi4gubs57SVNQjemdt6xV4= -cloud.google.com/go/iot v1.6.0 h1:39W5BFSarRNZfVG0eXI5LYux+OVQT8GkgpHCnrZL2vM= -cloud.google.com/go/iot v1.6.0/go.mod h1:IqdAsmE2cTYYNO1Fvjfzo9po179rAtJeVGUvkLN3rLE= -cloud.google.com/go/kms v1.10.1 h1:7hm1bRqGCA1GBRQUrp831TwJ9TWhP+tvLuP497CQS2g= -cloud.google.com/go/kms v1.10.1/go.mod h1:rIWk/TryCkR59GMC3YtHtXeLzd634lBbKenvyySAyYI= 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/language v1.9.0 h1:7Ulo2mDk9huBoBi8zCE3ONOoBrL6UXfAI71CLQ9GEIM= -cloud.google.com/go/language v1.9.0/go.mod h1:Ns15WooPM5Ad/5no/0n81yUetis74g3zrbeJBE+ptUY= cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= -cloud.google.com/go/lifesciences v0.8.0 h1:uWrMjWTsGjLZpCTWEAzYvyXj+7fhiZST45u9AgasasI= -cloud.google.com/go/lifesciences v0.8.0/go.mod h1:lFxiEOMqII6XggGbOnKiyZ7IBwoIqA84ClvoezaA/bo= -cloud.google.com/go/logging v1.7.0 h1:CJYxlNNNNAMkHp9em/YEXcfJg+rPDg7YfwoRpMU+t5I= -cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M= cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= -cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= -cloud.google.com/go/managedidentities v1.5.0 h1:ZRQ4k21/jAhrHBVKl/AY7SjgzeJwG1iZa+mJ82P+VNg= -cloud.google.com/go/managedidentities v1.5.0/go.mod h1:+dWcZ0JlUmpuxpIDfyP5pP5y0bLdRwOS4Lp7gMni/LA= -cloud.google.com/go/maps v0.7.0 h1:mv9YaczD4oZBZkM5XJl6fXQ984IkJNHPwkc8MUsdkBo= -cloud.google.com/go/maps v0.7.0/go.mod h1:3GnvVl3cqeSvgMcpRlQidXsPYuDGQ8naBis7MVzpXsY= cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= -cloud.google.com/go/mediatranslation v0.7.0 h1:anPxH+/WWt8Yc3EdoEJhPMBRF7EhIdz426A+tuoA0OU= -cloud.google.com/go/mediatranslation v0.7.0/go.mod h1:LCnB/gZr90ONOIQLgSXagp8XUW1ODs2UmUMvcgMfI2I= cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= -cloud.google.com/go/memcache v1.9.0 h1:8/VEmWCpnETCrBwS3z4MhT+tIdKgR1Z4Tr2tvYH32rg= -cloud.google.com/go/memcache v1.9.0/go.mod h1:8oEyzXCu+zo9RzlEaEjHl4KkgjlNDaXbCQeQWlzNFJM= cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= -cloud.google.com/go/metastore v1.10.0 h1:QCFhZVe2289KDBQ7WxaHV2rAmPrmRAdLC6gbjUd3HPo= -cloud.google.com/go/metastore v1.10.0/go.mod h1:fPEnH3g4JJAk+gMRnrAnoqyv2lpUCqJPWOodSaf45Eo= -cloud.google.com/go/monitoring v1.13.0 h1:2qsrgXGVoRXpP7otZ14eE1I568zAa92sJSDPyOJvwjM= -cloud.google.com/go/monitoring v1.13.0/go.mod h1:k2yMBAB1H9JT/QETjNkgdCGD9bPF712XiLTVr+cBrpw= cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= -cloud.google.com/go/networkconnectivity v1.11.0 h1:ZD6b4Pk1jEtp/cx9nx0ZYcL3BKqDa+KixNDZ6Bjs1B8= -cloud.google.com/go/networkconnectivity v1.11.0/go.mod h1:iWmDD4QF16VCDLXUqvyspJjIEtBR/4zq5hwnY2X3scM= -cloud.google.com/go/networkmanagement v1.6.0 h1:8KWEUNGcpSX9WwZXq7FtciuNGPdPdPN/ruDm769yAEM= -cloud.google.com/go/networkmanagement v1.6.0/go.mod h1:5pKPqyXjB/sgtvB5xqOemumoQNB7y95Q7S+4rjSOPYY= cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= -cloud.google.com/go/networksecurity v0.8.0 h1:sOc42Ig1K2LiKlzG71GUVloeSJ0J3mffEBYmvu+P0eo= -cloud.google.com/go/networksecurity v0.8.0/go.mod h1:B78DkqsxFG5zRSVuwYFRZ9Xz8IcQ5iECsNrPn74hKHU= cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= -cloud.google.com/go/notebooks v1.8.0 h1:Kg2K3K7CbSXYJHZ1aGQpf1xi5x2GUvQWf2sFVuiZh8M= -cloud.google.com/go/notebooks v1.8.0/go.mod h1:Lq6dYKOYOWUCTvw5t2q1gp1lAp0zxAxRycayS0iJcqQ= -cloud.google.com/go/optimization v1.3.1 h1:dj8O4VOJRB4CUwZXdmwNViH1OtI0WtWL867/lnYH248= -cloud.google.com/go/optimization v1.3.1/go.mod h1:IvUSefKiwd1a5p0RgHDbWCIbDFgKuEdB+fPPuP0IDLI= -cloud.google.com/go/orchestration v1.6.0 h1:Vw+CEXo8M/FZ1rb4EjcLv0gJqqw89b7+g+C/EmniTb8= -cloud.google.com/go/orchestration v1.6.0/go.mod h1:M62Bevp7pkxStDfFfTuCOaXgaaqRAga1yKyoMtEoWPQ= -cloud.google.com/go/orgpolicy v1.10.0 h1:XDriMWug7sd0kYT1QKofRpRHzjad0bK8Q8uA9q+XrU4= -cloud.google.com/go/orgpolicy v1.10.0/go.mod h1:w1fo8b7rRqlXlIJbVhOMPrwVljyuW5mqssvBtU18ONc= cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= -cloud.google.com/go/osconfig v1.11.0 h1:PkSQx4OHit5xz2bNyr11KGcaFccL5oqglFPdTboyqwQ= -cloud.google.com/go/osconfig v1.11.0/go.mod h1:aDICxrur2ogRd9zY5ytBLV89KEgT2MKB2L/n6x1ooPw= cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= -cloud.google.com/go/oslogin v1.9.0 h1:whP7vhpmc+ufZa90eVpkfbgzJRK/Xomjz+XCD4aGwWw= -cloud.google.com/go/oslogin v1.9.0/go.mod h1:HNavntnH8nzrn8JCTT5fj18FuJLFJc4NaZJtBnQtKFs= cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= -cloud.google.com/go/phishingprotection v0.7.0 h1:l6tDkT7qAEV49MNEJkEJTB6vOO/onbSOcNtAT09HPuA= -cloud.google.com/go/phishingprotection v0.7.0/go.mod h1:8qJI4QKHoda/sb/7/YmMQ2omRLSLYSu9bU0EKCNI+Lk= -cloud.google.com/go/policytroubleshooter v1.6.0 h1:yKAGC4p9O61ttZUswaq9GAn1SZnEzTd0vUYXD7ZBT7Y= -cloud.google.com/go/policytroubleshooter v1.6.0/go.mod h1:zYqaPTsmfvpjm5ULxAyD/lINQxJ0DDsnWOP/GZ7xzBc= cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= -cloud.google.com/go/privatecatalog v0.8.0 h1:EPEJ1DpEGXLDnmc7mnCAqFmkwUJbIsaLAiLHVOkkwtc= -cloud.google.com/go/privatecatalog v0.8.0/go.mod h1:nQ6pfaegeDAq/Q5lrfCQzQLhubPiZhSaNhIgfJlnIXs= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= cloud.google.com/go/pubsub v1.5.0/go.mod h1:ZEwJccE3z93Z2HWvstpri00jOg7oO4UZDtKhwDwqF0w= -cloud.google.com/go/pubsub v1.30.0 h1:vCge8m7aUKBJYOgrZp7EsNDf6QMd2CAlXZqWTn3yq6s= -cloud.google.com/go/pubsub v1.30.0/go.mod h1:qWi1OPS0B+b5L+Sg6Gmc9zD1Y+HaM0MdUr7LsupY1P4= -cloud.google.com/go/pubsublite v1.7.0 h1:cb9fsrtpINtETHiJ3ECeaVzrfIVhcGjhhJEjybHXHao= -cloud.google.com/go/pubsublite v1.7.0/go.mod h1:8hVMwRXfDfvGm3fahVbtDbiLePT3gpoiJYJY+vxWxVM= -cloud.google.com/go/recaptchaenterprise v1.3.1 h1:u6EznTGzIdsyOsvm+Xkw0aSuKFXQlyjGE9a4exk6iNQ= cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= -cloud.google.com/go/recaptchaenterprise/v2 v2.7.0 h1:6iOCujSNJ0YS7oNymI64hXsjGq60T4FK1zdLugxbzvU= -cloud.google.com/go/recaptchaenterprise/v2 v2.7.0/go.mod h1:19wVj/fs5RtYtynAPJdDTb69oW0vNHYDBTbB4NvMD9c= cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= -cloud.google.com/go/recommendationengine v0.7.0 h1:VibRFCwWXrFebEWKHfZAt2kta6pS7Tlimsnms0fjv7k= -cloud.google.com/go/recommendationengine v0.7.0/go.mod h1:1reUcE3GIu6MeBz/h5xZJqNLuuVjNg1lmWMPyjatzac= cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= -cloud.google.com/go/recommender v1.9.0 h1:ZnFRY5R6zOVk2IDS1Jbv5Bw+DExCI5rFumsTnMXiu/A= -cloud.google.com/go/recommender v1.9.0/go.mod h1:PnSsnZY7q+VL1uax2JWkt/UegHssxjUVVCrX52CuEmQ= cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= -cloud.google.com/go/redis v1.11.0 h1:JoAd3SkeDt3rLFAAxEvw6wV4t+8y4ZzfZcZmddqphQ8= -cloud.google.com/go/redis v1.11.0/go.mod h1:/X6eicana+BWcUda5PpwZC48o37SiFVTFSs0fWAJ7uQ= -cloud.google.com/go/resourcemanager v1.7.0 h1:NRM0p+RJkaQF9Ee9JMnUV9BQ2QBIOq/v8M+Pbv/wmCs= -cloud.google.com/go/resourcemanager v1.7.0/go.mod h1:HlD3m6+bwhzj9XCouqmeiGuni95NTrExfhoSrkC/3EI= -cloud.google.com/go/resourcesettings v1.5.0 h1:8Dua37kQt27CCWHm4h/Q1XqCF6ByD7Ouu49xg95qJzI= -cloud.google.com/go/resourcesettings v1.5.0/go.mod h1:+xJF7QSG6undsQDfsCJyqWXyBwUoJLhetkRMDRnIoXA= cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= -cloud.google.com/go/retail v1.12.0 h1:1Dda2OpFNzIb4qWgFZjYlpP7sxX3aLeypKG6A3H4Yys= -cloud.google.com/go/retail v1.12.0/go.mod h1:UMkelN/0Z8XvKymXFbD4EhFJlYKRx1FGhQkVPU5kF14= -cloud.google.com/go/run v0.9.0 h1:ydJQo+k+MShYnBfhaRHSZYeD/SQKZzZLAROyfpeD9zw= -cloud.google.com/go/run v0.9.0/go.mod h1:Wwu+/vvg8Y+JUApMwEDfVfhetv30hCG4ZwDR/IXl2Qg= cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= -cloud.google.com/go/scheduler v1.9.0 h1:NpQAHtx3sulByTLe2dMwWmah8PWgeoieFPpJpArwFV0= -cloud.google.com/go/scheduler v1.9.0/go.mod h1:yexg5t+KSmqu+njTIh3b7oYPheFtBWGcbVUYF1GGMIc= cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= -cloud.google.com/go/secretmanager v1.10.0 h1:pu03bha7ukxF8otyPKTFdDz+rr9sE3YauS5PliDXK60= -cloud.google.com/go/secretmanager v1.10.0/go.mod h1:MfnrdvKMPNra9aZtQFvBcvRU54hbPD8/HayQdlUgJpU= cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= -cloud.google.com/go/security v1.13.0 h1:PYvDxopRQBfYAXKAuDpFCKBvDOWPWzp9k/H5nB3ud3o= -cloud.google.com/go/security v1.13.0/go.mod h1:Q1Nvxl1PAgmeW0y3HTt54JYIvUdtcpYKVfIB8AOMZ+0= cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= -cloud.google.com/go/securitycenter v1.19.0 h1:AF3c2s3awNTMoBtMX3oCUoOMmGlYxGOeuXSYHNBkf14= -cloud.google.com/go/securitycenter v1.19.0/go.mod h1:LVLmSg8ZkkyaNy4u7HCIshAngSQ8EcIRREP3xBnyfag= cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= -cloud.google.com/go/servicedirectory v1.9.0 h1:SJwk0XX2e26o25ObYUORXx6torSFiYgsGkWSkZgkoSU= -cloud.google.com/go/servicedirectory v1.9.0/go.mod h1:29je5JjiygNYlmsGz8k6o+OZ8vd4f//bQLtvzkPPT/s= -cloud.google.com/go/shell v1.6.0 h1:wT0Uw7ib7+AgZST9eCDygwTJn4+bHMDtZo5fh7kGWDU= -cloud.google.com/go/shell v1.6.0/go.mod h1:oHO8QACS90luWgxP3N9iZVuEiSF84zNyLytb+qE2f9A= cloud.google.com/go/spanner v1.7.0/go.mod h1:sd3K2gZ9Fd0vMPLXzeCrF6fq4i63Q7aTLW/lBIfBkIk= -cloud.google.com/go/spanner v1.45.0 h1:7VdjZ8zj4sHbDw55atp5dfY6kn1j9sam9DRNpPQhqR4= -cloud.google.com/go/spanner v1.45.0/go.mod h1:FIws5LowYz8YAE1J8fOS7DJup8ff7xJeetWEo5REA2M= cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= -cloud.google.com/go/speech v1.15.0 h1:JEVoWGNnTF128kNty7T4aG4eqv2z86yiMJPT9Zjp+iw= -cloud.google.com/go/speech v1.15.0/go.mod h1:y6oH7GhqCaZANH7+Oe0BhgIogsNInLlz542tg3VqeYI= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -393,51 +187,18 @@ cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeL cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI= cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= -cloud.google.com/go/storagetransfer v1.8.0 h1:5T+PM+3ECU3EY2y9Brv0Sf3oka8pKmsCfpQ07+91G9o= -cloud.google.com/go/storagetransfer v1.8.0/go.mod h1:JpegsHHU1eXg7lMHkvf+KE5XDJ7EQu0GwNJbbVGanEw= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= -cloud.google.com/go/talent v1.5.0 h1:nI9sVZPjMKiO2q3Uu0KhTDVov3Xrlpt63fghP9XjyEM= -cloud.google.com/go/talent v1.5.0/go.mod h1:G+ODMj9bsasAEJkQSzO2uHQWXHHXUomArjWQQYkqK6c= -cloud.google.com/go/texttospeech v1.6.0 h1:H4g1ULStsbVtalbZGktyzXzw6jP26RjVGYx9RaYjBzc= -cloud.google.com/go/texttospeech v1.6.0/go.mod h1:YmwmFT8pj1aBblQOI3TfKmwibnsfvhIBzPXcW4EBovc= -cloud.google.com/go/tpu v1.5.0 h1:/34T6CbSi+kTv5E19Q9zbU/ix8IviInZpzwz3rsFE+A= -cloud.google.com/go/tpu v1.5.0/go.mod h1:8zVo1rYDFuW2l4yZVY0R0fb/v44xLh3llq7RuV61fPM= -cloud.google.com/go/trace v1.9.0 h1:olxC0QHC59zgJVALtgqfD9tGk0lfeCP5/AGXL3Px/no= -cloud.google.com/go/trace v1.9.0/go.mod h1:lOQqpE5IaWY0Ixg7/r2SjixMuc6lfTFeO4QGM4dQWOk= -cloud.google.com/go/translate v1.7.0 h1:GvLP4oQ4uPdChBmBaUSa/SaZxCdyWELtlAaKzpHsXdA= -cloud.google.com/go/translate v1.7.0/go.mod h1:lMGRudH1pu7I3n3PETiOB2507gf3HnfLV8qlkHZEyos= -cloud.google.com/go/video v1.15.0 h1:upIbnGI0ZgACm58HPjAeBMleW3sl5cT84AbYQ8PWOgM= -cloud.google.com/go/video v1.15.0/go.mod h1:SkgaXwT+lIIAKqWAJfktHT/RbgjSuY6DobxEp0C5yTQ= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= -cloud.google.com/go/videointelligence v1.10.0 h1:Uh5BdoET8XXqXX2uXIahGb+wTKbLkGH7s4GXR58RrG8= -cloud.google.com/go/videointelligence v1.10.0/go.mod h1:LHZngX1liVtUhZvi2uNS0VQuOzNi2TkY1OakiuoUOjU= -cloud.google.com/go/vision v1.2.0 h1:/CsSTkbmO9HC8iQpxbK8ATms3OQaX3YQUeTMGCxlaK4= cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= -cloud.google.com/go/vision/v2 v2.7.0 h1:8C8RXUJoflCI4yVdqhTy9tRyygSHmp60aP363z23HKg= -cloud.google.com/go/vision/v2 v2.7.0/go.mod h1:H89VysHy21avemp6xcf9b9JvZHVehWbET0uT/bcuY/0= -cloud.google.com/go/vmmigration v1.6.0 h1:Azs5WKtfOC8pxvkyrDvt7J0/4DYBch0cVbuFfCCFt5k= -cloud.google.com/go/vmmigration v1.6.0/go.mod h1:bopQ/g4z+8qXzichC7GW1w2MjbErL54rk3/C843CjfY= -cloud.google.com/go/vmwareengine v0.3.0 h1:b0NBu7S294l0gmtrT0nOJneMYgZapr5x9tVWvgDoVEM= -cloud.google.com/go/vmwareengine v0.3.0/go.mod h1:wvoyMvNWdIzxMYSpH/R7y2h5h3WFkx6d+1TIsP39WGY= -cloud.google.com/go/vpcaccess v1.6.0 h1:FOe6CuiQD3BhHJWt7E8QlbBcaIzVRddupwJlp7eqmn4= -cloud.google.com/go/vpcaccess v1.6.0/go.mod h1:wX2ILaNhe7TlVa4vC5xce1bCnqE3AeH27RV31lnmZes= cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= -cloud.google.com/go/webrisk v1.8.0 h1:IY+L2+UwxcVm2zayMAtBhZleecdIFLiC+QJMzgb0kT0= -cloud.google.com/go/webrisk v1.8.0/go.mod h1:oJPDuamzHXgUc+b8SiHRcVInZQuybnvEW72PqTc7sSg= -cloud.google.com/go/websecurityscanner v1.5.0 h1:AHC1xmaNMOZtNqxI9Rmm87IJEyPaRkOxeI0gpAacXGk= -cloud.google.com/go/websecurityscanner v1.5.0/go.mod h1:Y6xdCPy81yi0SQnDY1xdNTNpfY1oAgXUlcfN3B3eSng= 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= -cloud.google.com/go/workflows v1.10.0 h1:FfGp9w0cYnaKZJhUOMqCOJCYT/WlvYBfTQhFWV3sRKI= -cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw= -collectd.org v0.3.0 h1:iNBHGw1VvPJxH2B6RiFWFZ+vsjo1lCdRszBeOuwGi00= collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= -contrib.go.opencensus.io/exporter/stackdriver v0.13.4 h1:ksUxwH3OD5sxkjzEqGxNTl+Xjsmu3BnC/300MhSVTSc= contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc= cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE= cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw= @@ -453,222 +214,122 @@ cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= 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 h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-beta.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= 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 h1:4wDp4BKF7NQqoh73VXpZsB/t1OEhDpz/zEpmdQfbjDk= 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 h1:Ahny8Ud1LjVMMAlt8utUFKhhxJtwBAualvsbc/Sk7cE= git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/Abirdcfly/dupword v0.0.7 h1:z14n0yytA3wNO2gpCD/jVtp/acEXPGmYu0esewpBt6Q= -github.com/Abirdcfly/dupword v0.0.7/go.mod h1:K/4M1kj+Zh39d2aotRwypvasonOyAMH1c/IZJzE0dmk= -github.com/Antonboom/errname v0.1.4/go.mod h1:jRXo3m0E0EuCnK3wbsSVH3X55Z4iTDLl6ZfCxwFj4TM= -github.com/Antonboom/errname v0.1.7 h1:mBBDKvEYwPl4WFFNwec1CZO096G6vzK9vvDQzAwkako= github.com/Antonboom/errname v0.1.7/go.mod h1:g0ONh16msHIPgJSGsecu1G/dcF2hlYR/0SddnIAGavU= -github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= -github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4= -github.com/Azure/azure-pipeline-go v0.2.2 h1:6oiIS9yaG6XCCzhgAgKFfIWyo4LLCiDhZot6ltoThhY= -github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 h1:qoVeMsc9/fh/yhxVaA0obYjVH/oI/ihrOoMwsLS9KSA= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 h1:Px2UA+2RvSSvv+RvJNuUB6n7rs5Wsel4dXLe90Um2n4= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= -github.com/Azure/azure-storage-blob-go v0.7.0 h1:MuueVOYkufCxJw5YZzF842DY2MBsp+hLuh2apKY0mck= -github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest/autorest v0.9.0 h1:MRvx8gncNaXJqOoLmhNjUAKh33JJF8LyxPhomEtOsjs= -github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.8.0 h1:CxTzQrySOxDnKpLjFJeZAS5Qrv/qFPkgLjx5bOAi//I= -github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -github.com/Azure/go-autorest/autorest/date v0.2.0 h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM= -github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= -github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.3.0 h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc= -github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= -github.com/Azure/go-autorest/logger v0.1.0 h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= -github.com/Azure/go-autorest/tracing v0.5.0 h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k= -github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= -github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= +github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/CosmWasm/wasmvm v1.2.4 h1:6OfeZuEcEH/9iqwrg2pkeVtDCkMoj9U6PpKtcrCyVrQ= github.com/CosmWasm/wasmvm v1.2.4/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= -github.com/DATA-DOG/go-sqlmock v1.3.3 h1:CWUqKXe0s8A2z6qCgkP4Kru7wC11YoAnoupUKFDnH08= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= +github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0 h1:+r1rSv4gvYn0wmRjC8X7IAzX8QezqtFV9m0MUHFJgts= -github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0= -github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.2.0/go.mod h1:n/vLeA7V+QY84iYAGwMkkUUp9ooeuftMEvaDrSVch+Q= +github.com/HdrHistogram/hdrhistogram-go v1.1.0/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= -github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Masterminds/goutils v1.1.0 h1:zukEsf/1JZwCMgHiK3GZftabmxiCw4apj3a28RPBiVg= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= -github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Masterminds/sprig v2.15.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= -github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= +github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= -github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/OpenPeeDeeP/depguard v1.0.1/go.mod h1:xsIw86fROiiwelg+jB2uM9PiKihMMmUx/1V+TNhjQvM= -github.com/OpenPeeDeeP/depguard v1.1.1 h1:TSUznLjvp/4IUP+OQ0t/4jF4QUyxIcVX8YnghZdunyA= -github.com/OpenPeeDeeP/depguard v1.1.1/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= -github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I= -github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= -github.com/Shopify/sarama v1.19.0 h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s= +github.com/OpenPeeDeeP/depguard v1.1.0/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= -github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= -github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= -github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c3fqvvgKm5o= 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.52 h1:PLSK6pwn8mYdaoaCZEMsXBpBotr4HHn9abU0yMQt0NI= -github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= -github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6 h1:1d9pzdbkth4D9AX6ndKSl7of3UTV0RYl3z64U2dXMGo= +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/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= -github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= -github.com/adlio/schema v1.1.13/go.mod h1:L5Z7tw+7lRK1Fnpi/LT/ooCP1elkXn0krMWBQHUhEDE= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= -github.com/aead/siphash v1.0.1 h1:FwHfE/T45KPKYuuSAKyyvE+oPWcaQ+CUmFW0bPlM+kg= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= -github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af h1:wVe6/Ea46ZMeNkQjjBW6xcqyQA/j5e0D6GytH95g0gQ= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/alecthomas/kingpin/v2 v2.3.2 h1:H0aULhgmSzN8xQ3nX1uxtdlTHYoPLu5AhHxWrKI6ocU= -github.com/alecthomas/kingpin/v2 v2.3.2/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= -github.com/alecthomas/participle/v2 v2.0.0-alpha7/go.mod h1:NumScqsC42o9x+dGj8/YqsIfhrIQjFEOFovxotbBirA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= -github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= -github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= -github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= +github.com/alingse/asasalint v0.0.10/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= -github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= -github.com/andybalholm/brotli v1.0.0 h1:7UCwP93aiSfvWpapti8g88vVVGp2qqtGyePsSuDafo4= -github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= -github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/aokoli/goutils v1.0.1 h1:7fpzNGoJ3VA8qcrm++XEE1QUe0mIwNeLa02Nwq7RDkg= github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= -github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db h1:nxAtV4VajJDhKysp2kdcJZsq8Ss1xSA0vZTkVHHJd0E= github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.0 h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847 h1:rtI0fD4oG/8eVokGVPYJEW1F88p1ZNgXiEIs9thEE4A= -github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw= github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/ashanbrown/forbidigo v1.2.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI= -github.com/ashanbrown/forbidigo v1.3.0 h1:VkYIwb/xxdireGAdJNZoo24O4lmnEWkactplBlWTShc= github.com/ashanbrown/forbidigo v1.3.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI= -github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde/go.mod h1:oG9Dnez7/ESBqc4EdrdNlryeo7d0KcW1ftXHm7nU/UU= -github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= -github.com/aws/aws-lambda-go v1.13.3 h1:SuCy7H3NLyp+1Mrfp+m80jcbi9KYWAs9/BXwppwRDzY= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.23.20/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.36.30/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= 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 v1.9.1 h1:ZbovGV/qo40nrOJ4q8G33AGICzaPI45FHQWJ9650pF4= github.com/aws/aws-sdk-go-v2 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= -github.com/aws/aws-sdk-go-v2/config v1.1.1 h1:ZAoq32boMzcaTW9bcUacBswAmHTbvlvDJICgHFZuECo= github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= -github.com/aws/aws-sdk-go-v2/credentials v1.1.1 h1:NbvWIM1Mx6sNPTxowHgS2ewXCRp+NGTzUYb/96FZJbY= github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2 h1:EtEU7WRaWliitZh2nmuxEXrN0Cb8EgPUFGIoTMeqbzI= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= -github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1 h1:w/fPGB0t5rWwA43mux4e9ozFSH5zF1moQemlA131PWc= github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2 h1:4AH9fFjUlVktQMznF+YN33aWNXaR4VgDXyP28qokJC0= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= -github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1 h1:cKr6St+CtC3/dl/rEBJvlk7A/IN5D5F02GNkGzfbtVU= github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= -github.com/aws/aws-sdk-go-v2/service/sso v1.1.1 h1:37QubsarExl5ZuCBlnRP+7l1tNwZPBSTqpTBrPH98RU= 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 h1:TJoIfnIFubCX0ACVeJ0w46HEH5MwjwYN4iFhuYIhfIY= 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/aws/smithy-go v1.8.0 h1:AEwwwXQZtUwP5Mz506FeXXrKBe0jA8gVM+1gEcSRooc= github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -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/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= @@ -678,74 +339,43 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA= -github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4 h1:w/jqZtC9YD4DS/Vp9GhWfWcCpuAL58oTnLoI8vE9YHU= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= -github.com/bkielbasa/cyclop v1.2.0 h1:7Jmnh0yL2DjKfw28p86YTd/B4lRGcNuu12sKE35sM7A= github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= -github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= -github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40 h1:y4B3+GPxKlrigF1ha5FFErxK+sr6sWxQovRMzwMhejo= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= -github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/bombsimon/wsl/v3 v3.3.0 h1:Mka/+kRLoQJq7g2rggtgQsjuI/K5Efd87WX96EWFxjM= github.com/bombsimon/wsl/v3 v3.3.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/breml/bidichk v0.2.3 h1:qe6ggxpTfA8E75hdjWPZ581sY3a2lnl0IRxLQFelECI= github.com/breml/bidichk v0.2.3/go.mod h1:8u2C6DnAy0g2cEq+k/A2+tr9O1s+vHGxWn0LTc70T2A= -github.com/breml/errchkjson v0.3.0 h1:YdDqhfqMT+I1vIxPSas44P+9Z9HzJwCeAzjB8PxP1xw= github.com/breml/errchkjson v0.3.0/go.mod h1:9Cogkyv9gcT8HREpzi3TiqBxCqDzo8awa92zSDFcofU= -github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= -github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= -github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c= github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= github.com/btcsuite/btcd/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.2 h1:XLMbX8JQEiwMcYft2EGi8zPUkoa0abKIU6/BJSRsjzQ= -github.com/btcsuite/btcd/btcutil v1.1.2/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= -github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/goleveldb v1.0.0 h1:Tvd0BfvqX9o823q1j2UZ/epQo09eJh6dTcRp79ilIN4= github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/snappy-go v1.0.0 h1:ZxaA6lo2EpxGddsA8JwWOcxlzRybb444sgmeJQMJGQE= github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0 h1:J9B4L7e3oqhXOcm+2IuNApwzQec85lE+QaikUcCs+dk= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/bufbuild/buf v1.7.0 h1:uWRjhIXcrWkzIkA5TqXGyJbF51VW54QJsQZ3nwaes5Q= -github.com/bufbuild/buf v1.7.0/go.mod h1:Go40fMAF46PnPLC7jJgTQhAI95pmC0+VtxFKVC0qLq0= -github.com/bufbuild/connect-go v1.0.0 h1:htSflKUT8y1jxhoPhPYTZMrsY3ipUXjjrbcZR5O2cVo= -github.com/bufbuild/connect-go v1.0.0/go.mod h1:9iNvh/NOsfhNBUH5CtvXeVUskQO1xsrEviH7ZArwZ3I= +github.com/bufbuild/buf v1.3.1/go.mod h1:CTRUb23N+zlm1U8ZIBKz0Sqluk++qQloB2i/MZNZHIs= 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.1.1 h1:QvrO2QF2+/Cx1WA/vETCIYBKtRjc30vesdoPUNo1EbY= github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= -github.com/bwesterb/go-ristretto v1.2.0 h1:xxWOVbN5m8NNKiSDZXE1jtZvZnC6JSJ9cYFADiZcWtw= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/c-bata/go-prompt v0.2.2 h1:uyKRz6Z6DUyj49QVijyM339UJV9yhbr70gESwbNU3e0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= -github.com/casbin/casbin/v2 v2.37.0 h1:/poEwPSovi4bTOcP752/CsTQiRz2xycyVKFG7GUhbDw= github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= @@ -754,9 +384,6 @@ github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8 github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g= -github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= -github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= @@ -764,15 +391,9 @@ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charithe/durationcheck v0.0.8/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= -github.com/charithe/durationcheck v0.0.9 h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk= github.com/charithe/durationcheck v0.0.9/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= -github.com/chavacava/garif v0.0.0-20210405164556-e8a0a408d6af/go.mod h1:Qjyv4H3//PWVzTeCezG2b9IRn6myJxJSr4TD/xo6ojU= -github.com/chavacava/garif v0.0.0-20220630083739-93517212f375 h1:E7LT642ysztPWE0dfz43cWOvMiF42DyTRC+eZIaO4yI= -github.com/chavacava/garif v0.0.0-20220630083739-93517212f375/go.mod h1:4m1Rv7xfuwWPNKXlThldNuJvutYM6J95wNuuVmn55To= -github.com/checkpoint-restore/go-criu/v5 v5.0.0 h1:TW8f/UvntYoVDMN1K2HlT82qH1rb0sOjpGw3m6Ym+i4= -github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M= -github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc= +github.com/chavacava/garif v0.0.0-20220316182200-5cad0b5181d4/go.mod h1:W8EnPSQ8Nv4fUjc/v1/8tHFqhuOJXnRub0dTfuAQktU= +github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= @@ -783,125 +404,63 @@ github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObk 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/cilium/ebpf v0.6.2 h1:iHsfF/t4aW4heW2YKfeHrVPGdtYTL4C4KocpM8KTSnI= -github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY= +github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= -github.com/circonus-labs/circonusllhist v0.1.3 h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= -github.com/clbanning/mxj v1.8.4 h1:HuhwZtbyvyOw+3Z1AowPkU87JkJUSv751ELWaiTpj8I= github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= -github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec h1:EdRZT3IeKQmfCSrgo8SZ8V3MEnskuJP0wCYNpe+aiXo= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= -github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY= -github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= -github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U= -github.com/cloudflare/cloudflare-go v0.14.0 h1:gFqGlGl/5f9UGXAaKapCGUfaTCgRKKnzu2VvzMZlOFA= github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe h1:QQ3GSy+MqSHxm/d8nCtnAiZdYFd45cYZPs8vOOIYKfk= -github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195 h1:58f1tJ1ra+zFINPlwLWvQsR9CzAKt2e+EWV2yX9oXQ4= -github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 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/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= -github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8= -github.com/cockroachdb/errors v1.9.1/go.mod h1:2sxOtL2WIc096WSZqZ5h8fa17rdDq9HZOZLBCor4mBk= -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/pebble v0.0.0-20220817183557-09c6e030a677 h1:qbb/AE938DFhOajUYh9+OXELpSF9KZw2ZivtmW6eX1Q= -github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677/go.mod h1:890yq1fUb9b6dGNwssgeUO5vQV9qfXnCPxAJhBQfXw0= -github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ= -github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/coinbase/kryptology v1.8.0 h1:Aoq4gdTsJhSU3lNWsD5BWmFSz2pE0GlmrljaOxepdYY= github.com/coinbase/kryptology v1.8.0/go.mod h1:RYXOAPdzOGUe3qlSFkMGn58i3xUA8hmxYHksuq+8ciI= -github.com/coinbase/rosetta-sdk-go v0.6.10/go.mod h1:J/JFMsfcePrjJZkwQFLh+hJErkAmdm9Iyy3D5Y0LfXo= -github.com/coinbase/rosetta-sdk-go v0.7.0/go.mod h1:7nD3oBPIiHqhRprqvMgPoGxe/nyq3yftRmpsy29coWE= 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/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= -github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= github.com/cometbft/cometbft v0.37.2 h1:XB0yyHGT0lwmJlFmM4+rsRnczPlHoAKFX6K8Zgc2/Jc= github.com/cometbft/cometbft v0.37.2/go.mod h1:Y2MMMN//O5K4YKd8ze4r9jmk4Y7h0ajqILXbH5JQFVs= 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.0.0-20200817220745-f173e6211efb/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= -github.com/confio/ics23/go v0.6.3/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= -github.com/confio/ics23/go v0.6.6/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= -github.com/confio/ics23/go v0.7.0/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= 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= -github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a h1:AEpwbXTjBGKoqxuQ6QAcBMEuK0+PtajQj0wJkhTnSd0= github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= -github.com/consensys/gnark-crypto v0.5.3 h1:4xLFGZR3NWEH2zy+YzvzHicpToQR8FXFbfLNvpGB+rE= github.com/consensys/gnark-crypto v0.5.3/go.mod h1:hOdPlWQV1gDLp7faZVeg8Y0iEPFaOUnCc4XeCCk96p0= -github.com/containerd/console v1.0.2 h1:Pi6D+aZXM+oUw1czuKgH5IJ+y0jhYcwBJfx5/Ghn9dE= -github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= -github.com/containerd/containerd v1.6.8 h1:h4dOFDwzHmqFEP754PgfgTeVXFnLiRc6kiqC7tplDJs= -github.com/containerd/containerd v1.6.8/go.mod h1:By6p5KqPK0/7/CgO/A6t/Gz+CUYUu2zf1hUaaymVXB0= -github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= +github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= -github.com/containerd/typeurl v1.0.2 h1:Chlt8zIieDbzQFzXzAeBEF92KhExuE4p9p92/QmY7aY= -github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= -github.com/coreos/bbolt v1.3.2 h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible h1:8F3hqu9fGYLBifCmRCJsicFqDx/D68Rt3q1JMazcgBQ= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7 h1:u9SHYsPQNyt5tgDm3YN7+9dYrpK96E5wFilTFWIDZOM= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a h1:W8b4lQ4tFF21aspRGoBuCNV6V2fFJBF+pm1J6OY8Lys= github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= +github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf h1:CAKfRE2YtTUIjjh1bkBtyYFaUT/WmOqsJjgtihT0vMI= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU= 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-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= -github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32/go.mod h1:kwMlEC4wWvB48zAShGKVqboJL6w4zCLesaNQ3YLU2BQ= 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.44.2/go.mod h1:fwQJdw+aECatpTvQTo1tSfHEsxACdZYU80QCZUPnHr4= -github.com/cosmos/cosmos-sdk v0.44.3/go.mod h1:bA3+VenaR/l/vDiYzaiwbWvRPWHMBX2jG0ygiFtiBp0= -github.com/cosmos/cosmos-sdk v0.45.1/go.mod h1:XXS/asyCqWNWkx2rW6pSuen+EVcpAFxq6khrhnZgHaQ= -github.com/cosmos/cosmos-sdk v0.45.2-0.20220901181011-06d4a64bf808/go.mod h1:XXS/asyCqWNWkx2rW6pSuen+EVcpAFxq6khrhnZgHaQ= github.com/cosmos/cosmos-sdk v0.47.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM= github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk= -github.com/cosmos/cosmos-sdk/db v1.0.0-beta.1.0.20220726092710-f848e4300a8a h1:2humuGPw3O5riJVFq/E2FRjF57UrO97W1qJcGVmK+6k= -github.com/cosmos/cosmos-sdk/db v1.0.0-beta.1.0.20220726092710-f848e4300a8a/go.mod h1:c8IO23vgNxueCCJlSI9awQtcxsvc+buzaeThB85qfBU= +github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 h1:mfMLLg6wbQfZCf0IkdvEWiC3AVXkNgX0vaDZFtdYLs0= +github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4/go.mod h1:6zse9gY32FcZtX9/GYqXPGxneRN7+qpPCi/doXzgK5E= 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= @@ -910,92 +469,60 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ 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.15.0-rc3.0.20201009144442-230e9bdf52cd/go.mod h1:3xOIaNNX19p0QrX0VqWa6voPRoJRGGYtny+DH8NEPvE= -github.com/cosmos/iavl v0.15.0-rc5/go.mod h1:WqoPL9yPTQ85QBMT45OOUzPxG/U/JcJoN7uMjgxke/I= -github.com/cosmos/iavl v0.15.3/go.mod h1:OLjQiAQ4fGD2KDZooyJG9yz+p2ao2IAYSbke8mVvSA4= -github.com/cosmos/iavl v0.17.1/go.mod h1:7aisPZK8yCpQdy3PMvKeO+bhq1NwDjUwjzxwwROUxFk= -github.com/cosmos/iavl v0.17.3/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-go v1.2.2 h1:bs6TZ8Es1kycIu2AHlRZ9dzJ+mveqlLN/0sjWtRH88o= -github.com/cosmos/ibc-go v1.2.2/go.mod h1:XmYjsRFOs6Q9Cz+CSsX21icNoH27vQKb3squgnCOCbs= -github.com/cosmos/ibc-go/v3 v3.0.0 h1:XUNplHVS51Q2gMnTFsFsH9QJ7flsovMamnltKbEgPQ4= -github.com/cosmos/ibc-go/v3 v3.0.0/go.mod h1:Mb+1NXiPOLd+CPFlOC6BKeAUaxXlhuWenMmRiUiSmwY= github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= 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/interchain-security/v3 v3.0.0-rc2 h1:bCPsPX8pDRizqRV1i+9gX9RYAeKRBCmVd3C7NC3weTE= -github.com/cosmos/interchain-security/v3 v3.0.0-rc2/go.mod h1:HKHw9u4xMm5QJV76A03ORAXB2zisgpcunXZSca8TBdg= -github.com/cosmos/interchain-security/v3 v3.0.0 h1:ZEk1ltSWF/w6fpFk6eBH2PeyJ1dLFTZWyAdKPnO0unA= -github.com/cosmos/interchain-security/v3 v3.0.0/go.mod h1:HKHw9u4xMm5QJV76A03ORAXB2zisgpcunXZSca8TBdg= github.com/cosmos/interchain-security/v3 v3.1.0 h1:EKDJCIKIDLG45tvKwfoANrRPgqvqfUt/f1TNKx3b7Uo= github.com/cosmos/interchain-security/v3 v3.1.0/go.mod h1:2fILBgypEZcwR3BSzKDw+EsYtMKv9Z6cYXfouh4xTYU= 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.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= github.com/cosmos/ledger-cosmos-go v0.12.1/go.mod h1:dhO6kj+Y+AHIOgAe4L9HL/6NDdyyth4q238I9yFpD2g= -github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI= -github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI= 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 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= 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.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creachadair/atomicfile v0.2.6/go.mod h1:BRq8Une6ckFneYXZQ+kO7p1ZZP3I2fzVzf28JxrIkBc= +github.com/creachadair/command v0.0.0-20220426235536-a748effdf6a1/go.mod h1:bAM+qFQb/KwWyCc9MLC4U1jvn3XyakqP5QRkds5T6cY= +github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk= github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= +github.com/creachadair/tomledit v0.0.22/go.mod h1:cIu/4x5L855oSRejIqr+WRFh+mv9g4fWLiUFaApYn/Y= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= -github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg= github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= -github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= -github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= -github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= -github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c h1:/ovYnF02fwL0kvspmy9AuyKg1JhdTRUgPw4nUxd9oZM= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= -github.com/cyphar/filepath-securejoin v0.2.2 h1:jCwT2GTP+PY5nBz3c/YL5PAIbusElVrPujOBSCj8xRg= -github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= -github.com/daixiang0/gci v0.2.9/go.mod h1:+4dZ7TISfSmqfAGv59ePaHfNzgGtIkHAhhdKggP1JAc= -github.com/daixiang0/gci v0.8.1 h1:T4xpSC+hmsi4CSyuYfIJdMZAr9o7xZmHpQVygMghGZ4= -github.com/daixiang0/gci v0.8.1/go.mod h1:EpVfrztufwVgQRXjnX4zuNinEpLj5OmMjtu/+MB0V0c= -github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= -github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/daixiang0/gci v0.4.2/go.mod h1:d0f+IJhr9loBtIq+ebwhRoTt1LGbPH96ih8bKlsRT9E= github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= -github.com/dave/jennifer v1.2.0 h1:S15ZkFMRoJ36mGAQgWL1tnr0NQJh9rZ8qatseX/VbBc= github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= -github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4= github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= -github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= -github.com/decred/dcrd/lru v1.0.0 h1:Kbsb1SFDsIlaupWPwsPp+dkxiBY1frcS07PCPgotKz8= github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= -github.com/deepmap/oapi-codegen v1.8.2 h1:SegyeYGcdi0jLLrpbCMoJxnUUn8GBXHsvr4rbzjuhfU= github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= -github.com/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= -github.com/denis-tingajkin/go-header v0.4.2 h1:jEeSF4sdv8/3cT/WY8AgDHUoItNSoEZ7qg9dX7pc218= -github.com/denis-tingajkin/go-header v0.4.2/go.mod h1:eLRHAVXzE5atsKAnNRDB90WHCFFnBUn4RN0nRcs1LJA= +github.com/denisenkom/go-mssqldb v0.12.0/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfzrpArPY/aFvc9yU= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/dgraph-io/badger/v2 v2.2007.1/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= @@ -1003,62 +530,39 @@ github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KP github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= -github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8 h1:akOQj8IVgoeFfBTzGOEQakCYshWD6RNo1M5pivFXt70= 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= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954 h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 h1:Izz0+t1Z5nI16/II7vuEo/nHjodOg0p7+OiDpjX5t1E= github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/cli v20.10.17+incompatible h1:eO2KS7ZFeov5UJeaDmIs1NFEDRf32PaqRpvoEkKBy5M= +github.com/docker/cli v20.10.14+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/cli v20.10.17+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.19+incompatible h1:lzEmjivyNHFHMNAFLXORMBXyGIhw/UP4DvJwvyKYq64= -github.com/docker/docker v20.10.19+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v20.10.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v20.10.17+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= -github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= -github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48 h1:iZOop7pqsg+56twTopWgwCGxdB5SI2yDO8Ti7eTRliQ= github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= -github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7 h1:tYwu/z8Y0NkkzGEh3z21mSWggMg4LwLRFucLS7TjARg= 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 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= 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/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813 h1:NgO45/5mBLRVfiXerEFzH6ikcZ7DNRPS639xFg3ENzU= -github.com/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= -github.com/eapache/go-resiliency v1.1.0 h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/eclipse/paho.mqtt.golang v1.2.0 h1:1F8mhG9+aO5/xpdtFkW4SxOJB67ukuDC3t2y2qayIX0= github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= -github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= -github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25 h1:2vLKys4RBU4pn2T/hjXMbvwTr1Cvy5THHrQkbeY9HRk= -github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25/go.mod h1:hTr8+TLQmkUkgcuh3mcr5fjrT9c64ZzsBCdCEC6UppY= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -1070,102 +574,59 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/go-control-plane v0.11.0 h1:jtLewhRR2vMRNnq2ZZUoCjUlgut+Y0+sDDWPOfwOi1o= -github.com/envoyproxy/go-control-plane v0.11.0/go.mod h1:VnHyVMpzcLvCFt9yUz1UnCwHLhwx1WguiVDV7pTG/tI= github.com/envoyproxy/protoc-gen-validate v0.0.14/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= -github.com/envoyproxy/protoc-gen-validate v0.10.0 h1:oIfnZFdC0YhpNNEX+SuIqko4cqqVZeN9IGTrhZje83Y= -github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= -github.com/esimonov/ifshort v1.0.2/go.mod h1:yZqNJUrNn20K8Q9n2CrjTKYyVEmX209Hgu+M1LBpeZE= -github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= -github.com/ethereum/go-ethereum v1.9.25/go.mod h1:vMkFiYLHI4tgPw4k2j4MHKoovchFE8plZ0M9VMk4/oM= -github.com/ethereum/go-ethereum v1.10.17 h1:XEcumY+qSr1cZQaWsQs5Kck3FHB0V2RiMHPdTBJ+oT8= 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-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= -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-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= -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.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -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/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-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= -github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90 h1:WXb3TSNmHp2vHoCroCIB1foO/yQ36swABL8aOVeDpgg= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db h1:gb2Z18BhTPJPpLQWj4T+rfKHYCHxRHCtRxhKKjRidVw= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8 h1:a9ENSRDFBUPkJ5lCgVZh26+ZbGyoVJG7yb5SSzF5H54= +github.com/franela/goblin v0.0.0-20210519012713-85d372ac71e2/go.mod h1:VzmDKDJVZI3aJmnRI9VjAn9nJ8qPPsN1fqzr9dqInIo= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= +github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= +github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= 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.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/fullstorydev/grpcurl v1.6.0 h1:p8BB6VZF8O7w6MxGr3KJ9E6EVKaswCevSALK6FBtMzA= github.com/fullstorydev/grpcurl v1.6.0/go.mod h1:ZQ+ayqbKMJNhzLmbpCiurTVlaK2M/3nqZCxaQ2Ze/sM= -github.com/fzipp/gocyclo v0.3.1/go.mod h1:DJHO6AUmbdqj2ET4Z9iArSuwWgYDRryYt2wASxc7x3E= -github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= -github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI= 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 h1:6awGqF5nG5zkVpMsAih1QH4VgzS8phTxECUWIFo7zko= github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= -github.com/getsentry/sentry-go v0.17.0 h1:UustVWnOoDFHBS7IJUB2QK/nB5pap748ZEp0swnQJak= -github.com/getsentry/sentry-go v0.17.0/go.mod h1:B82dxtBvxG0KaPD8/hfSV+VcHD+Lg/xUS4JuQn1P4cM= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.7.0 h1:jGB9xAJQ12AIGNB4HguylppmDK1Am9ppF7XnGXXJuoU= -github.com/gin-gonic/gin v1.7.0/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= -github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd h1:r04MMPyLHj/QwZuMJ5+7tJcBr1AQjpiAK/rZWRrQT7o= +github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= -github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31 h1:gclg6gY70GLy3PbkQ1AERPfmLMMagS60DKF78eWwLn8= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= -github.com/go-chi/chi/v5 v5.0.7 h1:rDTPXLDHGATaeHvVlLcR4Qe0zftYethFucbjVQ1PxU8= -github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= -github.com/go-critic/go-critic v0.5.6/go.mod h1:cVjj0DfqewQVIlIAGexPCaGaZDAqGE29PYDDADIVNEo= -github.com/go-critic/go-critic v0.6.5 h1:fDaR/5GWURljXwF8Eh31T2GZNz9X4jeboS912mWF8Uo= -github.com/go-critic/go-critic v0.6.5/go.mod h1:ezfP/Lh7MA6dBNn4c6ab5ALv3sKnZVLx37tr00uuaOY= -github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= -github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= -github.com/go-git/go-billy/v5 v5.4.0 h1:Vaw7LaSTRJOUric7pe4vnzBSgyuf2KrLsu2Y4ZpQBDE= -github.com/go-git/go-billy/v5 v5.4.0/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg= -github.com/go-git/go-git/v5 v5.5.2 h1:v8lgZa5k9ylUw+OR/roJHTxR4QItsNFI5nKtAXFuynw= -github.com/go-git/go-git/v5 v5.5.2/go.mod h1:BE5hUJ5yaV2YMxhmaP4l6RBQ08kMxKSPD4BlxtH7OjI= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1 h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0= +github.com/go-critic/go-critic v0.6.3/go.mod h1:c6b3ZP1MQ7o6lPR7Rv3lEf7pYQUmAcx8ABHgdZCQt/k= 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 h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= @@ -1173,110 +634,75 @@ github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgO github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= 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/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.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= -github.com/go-logr/logr v1.2.3/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 h1:2lOsA72HgjxAuMlKpFiCbHTvu44PIVkZ5hqm3RSdI/E= github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= -github.com/go-ole/go-ole v1.2.5 h1:t4MGB5xEDZvXI+0rMjjsfBsD7yAgp/s9ZDkL1JndXwY= -github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= -github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= -github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= -github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= -github.com/go-redis/redis v6.15.8+incompatible h1:BKZuG6mCnRj5AOaWJXoCgf6rqTYnYJLe4en2hxT7r9o= +github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= -github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= -github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= +github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-toolsmith/astcast v1.0.0 h1:JojxlmI6STnFVG9yOImLeGREv8W2ocNUM+iOhR6jE7g= github.com/go-toolsmith/astcast v1.0.0/go.mod h1:mt2OdQTeAQcY4DQgPSArJjHCcOwlX+Wl/kwN+LbLGQ4= github.com/go-toolsmith/astcopy v1.0.0/go.mod h1:vrgyG+5Bxrnz4MZWPF+pI4R8h3qKRjjyvV/DSez4WVQ= -github.com/go-toolsmith/astcopy v1.0.2 h1:YnWf5Rnh1hUudj11kei53kI57quN/VH6Hp1n+erozn0= -github.com/go-toolsmith/astcopy v1.0.2/go.mod h1:4TcEdbElGc9twQEYpVo/aieIXfHhiuLh4aLAck6dO7Y= github.com/go-toolsmith/astequal v1.0.0/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= -github.com/go-toolsmith/astequal v1.0.3 h1:+LVdyRatFS+XO78SGV4I3TCEA0AC7fKEGma+fH+674o= -github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= -github.com/go-toolsmith/astfmt v1.0.0 h1:A0vDDXt+vsvLEdbMFJAUBI/uTbRw1ffOPnxsILnFL6k= +github.com/go-toolsmith/astequal v1.0.1/go.mod h1:4oGA3EZXTVItV/ipGiOx7NWkY5veFfcsOJVS2YxltLw= github.com/go-toolsmith/astfmt v1.0.0/go.mod h1:cnWmsOAuq4jJY6Ct5YWlVLmcmLMn1JUPuQIHCY7CJDw= -github.com/go-toolsmith/astinfo v0.0.0-20180906194353-9809ff7efb21 h1:wP6mXeB2V/d1P1K7bZ5vDUO3YqEzcvOREOxZPEu3gVI= -github.com/go-toolsmith/astinfo v0.0.0-20180906194353-9809ff7efb21/go.mod h1:dDStQCHtmZpYOmjRP/8gHHnCCch3Zz3oEgCdZVdtweU= -github.com/go-toolsmith/astp v1.0.0 h1:alXE75TXgcmupDsMK1fRAy0YUzLzqPVvBKoyWV+KPXg= github.com/go-toolsmith/astp v1.0.0/go.mod h1:RSyrtpVlfTFGDYRbrjyWP1pYu//tSFcvdYrA8meBmLI= -github.com/go-toolsmith/pkgload v1.0.0 h1:4DFWWMXVfbcN5So1sBNW9+yeiMqLFGl1wFLTL5R0Tgg= -github.com/go-toolsmith/pkgload v1.0.0/go.mod h1:5eFArkbO80v7Z0kdngIxsRXRMTaX4Ilcwuh3clNrQJc= -github.com/go-toolsmith/strparse v1.0.0 h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4= +github.com/go-toolsmith/pkgload v1.0.2-0.20220101231613-e814995d17c5/go.mod h1:3NAwwmD4uY/yggRxoEjk/S00MIV3A+H7rrE3i87eYxM= github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= -github.com/go-toolsmith/typep v1.0.0/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= -github.com/go-toolsmith/typep v1.0.2 h1:8xdsa1+FSIH/RhEkgnD1j2CJOy5mNllW1Q9tRiYwvlk= github.com/go-toolsmith/typep v1.0.2/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= -github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b h1:khEcpUM4yFcxg4/FHQWkvVRmgijNXRfzkIDHh23ggEo= github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= -github.com/go-zookeeper/zk v1.0.2 h1:4mx0EYENAdX/B/rbunjlt5+4RTA/a9SMHBRuSKdGxPM= github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= +github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.0.4 h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= 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/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= -github.com/gofrs/uuid v4.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/golang-jwt/jwt/v4 v4.3.0 h1:kHL1vqdqWNfATmA0FNMdmZNMyZI1U6O31X4rlIPoBog= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= +github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= +github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188/go.mod h1:vXjM/+wXQnTPR4KqTKDgJukSZ6amVRtWMPEjE6sQoK8= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= -github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw= 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.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= github.com/golang/glog v1.1.1/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-20190129154638-5b532d6fd5ef/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= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -1315,43 +741,26 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613/go.mod h1:SyvUF2NxV+sN8upjjeVYr5W7tyxaT1JVtvhKhOn2ii8= -github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 h1:amWTbTGqOZ71ruzrdA+Nx5WA3tV1N0goTspwmKCQvBY= -github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2/go.mod h1:9wOXstvyDRshQ9LggQuzBCGysxs3b6Uo/1MvYCR2NMs= -github.com/golangci/golangci-lint v1.42.1/go.mod h1:MuInrVlgg2jq4do6XI1jbkErbVHVbwdrLLtGv6p2wPI= -github.com/golangci/golangci-lint v1.50.1 h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY= -github.com/golangci/golangci-lint v1.50.1/go.mod h1:AQjHBopYS//oB8xs0y0M/dtxdKHkdhl0RvmjUct0/4w= +github.com/golangci/golangci-lint v1.47.0/go.mod h1:3TZhfF5KolbIkXYjUFvER6G9CoxzLEaafr/u/QI1S5A= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= -github.com/golangci/misspell v0.3.5 h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo= github.com/golangci/misspell v0.3.5/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= -github.com/golangci/revgrep v0.0.0-20210208091834-cd28932614b5/go.mod h1:LK+zW4MpyytAWQRz0M4xnzEk50lSvqDQKfx304apFkY= -github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6 h1:DIPQnGy2Gv2FSA4B/hh8Q7xx3B7AIDk3DAMeHclH1vQ= -github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= +github.com/golangci/revgrep v0.0.0-20210930125155-c22e5001d4f2/go.mod h1:LK+zW4MpyytAWQRz0M4xnzEk50lSvqDQKfx304apFkY= github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg= -github.com/google/certificate-transparency-go v1.1.1 h1:6JHXZhXEvilMcTjR4MGZn5KV0IRkcFl4CJx5iHVhjFE= github.com/google/certificate-transparency-go v1.1.1/go.mod h1:FDKqPvSXawb2ecErVRrD+nfy23RCzyl7eqVCEmlT1Zs= -github.com/google/flatbuffers v1.11.0 h1:O7CEyB8Cb3/DmtxODGtLHcEvpr81Jm5qLg/hsHnxA2A= github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -1380,7 +789,6 @@ github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIG github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= -github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -1396,17 +804,14 @@ github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -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 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/trillian v1.3.11 h1:pPzJPkK06mvXId1LHEAJxIegGgHzzp/FUnycPYfoCMI= github.com/google/trillian v1.3.11/go.mod h1:0tPraVHrSDkA3BO6vKX67zgLXs6SsOAbHEivX+9mPgw= github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -1431,21 +836,13 @@ github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqE github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= github.com/googleapis/gax-go/v2 v2.8.0 h1:UBtEZqx1bjXtOQ5BVTkuYghXrr3N4V123VKJK67vJZc= github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= -github.com/googleapis/go-type-adapters v1.0.0 h1:9XdMn+d/G57qq1s8dNc5IesGCXHf6V2HZ2JwRxfA2tA= 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 h1:tlyzajkF3030q6M8SvmJSemC9DTHL/xaMa18b65+JM4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gookit/color v1.4.2 h1:tXy44JFSFkKnELV6WaMo/lLfu/meqITX3iAV52do7lk= -github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= +github.com/gookit/color v1.5.1/go.mod h1:wZFzea4X8qN6vHOSP2apMb4/+w/orMznEzYsIHPaqKM= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= -github.com/gordonklaus/ineffassign v0.0.0-20210225214923-2e10b2664254/go.mod h1:M9mZEtGIsR1oDaZagNPNG9iq9n2HrhZ17dsXk73V3Lw= -github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 h1:PVRE9d4AQKmbelZ7emNig1+NT27DUmKZn5qXxfio54U= github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= -github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75 h1:f0n1xnMSmBLzVfsMMvriDyA75NB/oBgILX2GcHXIQzY= github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= -github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= @@ -1454,8 +851,6 @@ github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= @@ -1464,38 +859,25 @@ github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.m github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= -github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= -github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= -github.com/gostaticanalysis/forcetypeassert v0.0.0-20200621232751-01d4955beaa5/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= -github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= -github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= -github.com/gotestyourself/gotestyourself v2.2.0+incompatible h1:AQwinXlbQR2HvPjQZOmDhRqsv5mZf+Jb1RnSLxcqZcI= +github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= +github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= -github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= -github.com/graph-gophers/graphql-go v1.3.0 h1:Eb9x/q6MFpCLz7jBCiP/WTxjSDrYLR1QY41SORZyNJ0= github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= -github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.1/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= 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.0/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.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= -github.com/grpc-ecosystem/grpc-gateway v1.14.7/go.mod h1:oYZKL012gGh6LMyg/xA7Q2yq6j8bu0wa+9w14EEthWU= 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.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= @@ -1507,21 +889,13 @@ github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is= github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/api v1.10.1/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= -github.com/hashicorp/consul/api v1.20.0 h1:9IHTjNVSZ7MIwjlW3N3a7iGiykCMDpxZu8jsxFJh0yc= -github.com/hashicorp/consul/api v1.20.0/go.mod h1:nR64eD44KQ59Of/ECwt2vUmIK2DKsDzAwTmwmLl8Wpo= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.3.0 h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.8.0 h1:OJtKBtEjboEZvG6AOUdh4Z1Zbyu0WcxQ0qatRrZHTVU= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-bexpr v0.1.10 h1:9kuI5PFotCboP3dkDYFr/wi0gg0QVbSNz5oFRpxn4uE= github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -1530,37 +904,30 @@ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/S 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-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM= github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= 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= -github.com/hashicorp/go-msgpack v0.5.3 h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-retryablehttp v0.5.3 h1:QlWt0KvWT0lq8MFppF9tsJGF+ynG7ztc2KIPhzRGk7s= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= -github.com/hashicorp/go-sockaddr v1.0.0 h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0 h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1 h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -1569,117 +936,71 @@ github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuW github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0 h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= -github.com/hashicorp/mdns v1.0.4 h1:sY0CMhFmjIPDMlTB+HfymFHCaYLhgifZ0QhjaYKD/UQ= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.1.3 h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/memberlist v0.3.0 h1:8+567mCcFDnS5ADl7lrpxPMWiFCElyUEeW0gtj34fMA= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY= -github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= -github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87/go.mod h1:XGsKKeXxeRr95aEOgipvluMPlgjr7dGlk9ZTWOjcUcg= +github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= 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 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= -github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= -github.com/holiman/uint256 v1.2.0 h1:gpSYcPLWGv4sG43I2mVLiDZCNDh/EpGjSk8tmtxitHM= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= -github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= 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/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo= -github.com/huandu/xstrings v1.2.0 h1:yPeWdRnmynF7p+lLYz0H2tthW9lqhMJrQV/U7yy4wX0= github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/hudl/fargo v1.4.0 h1:ZDDILMbB37UlAVLlWcJ2Iz1XuahZZTDZfdCKeclfq2s= github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= -github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= -github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204 h1:+EYBkW+dbi3F/atB+LSQZSWh7+HNrV3A/N0y6DSoy9k= github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= -github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150 h1:vlNjIqmUZ9CMAWsbURYl3a6wZbw7q5RHVvlXTNS/Bs8= github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6jq8pNA= github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= -github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639 h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= +github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= -github.com/improbable-eng/grpc-web v0.14.1/go.mod h1:zEjGHa8DAlkoOXmswrNvhUGEYQA9UI7DhrGeHR1DMGU= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/influxdata/flux v0.65.1 h1:77BcVUCzvN5HMm8+j9PRBQ4iZcu98Dl4Y9rf+J5vhnc= github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY= -github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= -github.com/influxdata/influxdb v1.8.3 h1:WEypI1BQFTT4teLM+1qkEcvUi0dAvopAI/ir0vAiBg8= github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= -github.com/influxdata/influxdb-client-go/v2 v2.4.0 h1:HGBfZYStlx3Kqvsv1h2pJixbCl/jhnFtxpKFAv9Tu5k= github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab h1:HqW4xhhynfjrtEiiSGcQUd6vrK23iMam1FO8rI7mwig= github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385 h1:ED4e5Cc3z5vSN2Tz2GkOHN7vs4Sxe2yds6CXvDnvZFE= github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385/go.mod h1:gHp9y86a/pxhjJ+zMjNXiQAA197Xk9wLxaz+fGG+kWk= github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e/go.mod h1:4kt73NQhadE3daL3WhR5EJ/J2ocX0PZzwxQ0gXJ7oFE= github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= -github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 h1:vilfsDSy7TDxedi9gyBkMvAirat/oRcL0lFdJBf6tdM= github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= -github.com/influxdata/promql/v2 v2.12.0 h1:kXn3p0D7zPw16rOtfDR+wo6aaiH8tSMfhPwONTxrlEc= github.com/influxdata/promql/v2 v2.12.0/go.mod h1:fxOPu+DY0bqCTCECchSRtWfc+0X19ybifQhZoQNF5D8= -github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6 h1:UzJnB7VRL4PSkUJHwsyzseGOmrO/r4yA+AuxGJxiZmA= github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bSgUQ7q5ZLSO+bKBGqJiCBGAl+9DxyW63zLTujjUlOE= -github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9 h1:MHTrDWmQpHq/hkq+7cw9oYAt2PqUw52TZazRA0N7PGE= github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0= -github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368 h1:+TUUmaFa4YD1Q+7bH9o5NCHQGPMqZCYJiNW6lIIS9z4= github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= -github.com/informalsystems/tm-load-test v1.3.0 h1:FGjKy7vBw6mXNakt+wmNWKggQZRsKkEYpaFk/zR64VA= -github.com/informalsystems/tm-load-test v1.3.0/go.mod h1:OQ5AQ9TbT5hKWBNIwsMjn6Bf4O0U4b1kRc+0qZlQJKw= -github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= -github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= -github.com/jdxcode/netrc v0.0.0-20210204082910-926c7f70242a h1:d4+I1YEKVmWZrgkt6jpXBnLgV2ZjO0YxEtLDdfIZfH4= github.com/jdxcode/netrc v0.0.0-20210204082910-926c7f70242a/go.mod h1:Zi/ZFkEqFHTm7qkjyNJjaWH4LQA9LQhGJyF0lTYGpxw= -github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e h1:UvSe12bq+Uj2hWd8aOlwPmoZ+CITRFrdit+sDGfAg8U= github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jgautheron/goconst v1.5.1 h1:HxVbL1MhydKs8R8n/HE5NPvzfaYmQJA3o879lE4+WcM= github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= -github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f h1:BNuUg9k2EiJmlMwjoef3e8vZLHplbVw6DrjGFjLL+Yo= github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f/go.mod h1:qr2b5kx4HbFS7/g4uYO5qv9ei8303JMsC7ESbYiqr2Q= github.com/jhump/protoreflect v1.6.1/go.mod h1:RZQ/lnuN+zqeRVpQigTwO6o0AJUkxbnSnpuG7toUTG4= -github.com/jhump/protoreflect v1.9.0/go.mod h1:7GcYQDdMU/O/BBrl/cX6PNHpXh6cenjd8pneu5yW7Tg= +github.com/jhump/protoreflect v1.11.1-0.20220213155251-0c2aedc66cf4/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= 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.0/go.mod h1:TOQpc2SLx6huPfoFGK3UOnEG+u02D3C1GeosjupAKCA= -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= github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= @@ -1688,15 +1009,11 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGw github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= -github.com/jmoiron/sqlx v1.2.0 h1:41Ip0zITnmWNR/vHV+S4m+VoUivnWY5E4OJfLZjCJMA= github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= -github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.0 h1:J2SLSdy7HgElq8ekSl2Mxh6vrRNFxqbXGenYH2I02Vs= github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= +github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/jrick/logrotate v1.0.0 h1:lQ1bL/n9mBNeIXoTUoYRlK4dHuNJVofX9oWqBtPnSzI= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -1707,156 +1024,96 @@ github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jsternberg/zap-logfmt v1.0.0 h1:0Dz2s/eturmdUS34GM82JwNEdQ9hPoJgqptcEKcbpzY= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/juju/ratelimit v1.0.1 h1:+7AIFJVQ0EQgq/K9+0Krm7m530Du7tIz0METWzN0RgY= github.com/juju/ratelimit v1.0.1/go.mod h1:qapgC/Gy+xNh9UxzV13HGGl/6UXNN+ct+vwSgWNm/qk= -github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/julz/importas v0.0.0-20210419104244-841f0c0fe66d/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= -github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5 h1:PJr+ZMXIecYc1Ey2zucXdR73SMBtgjPgwa31099IMv0= 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 h1:2jNeR4YUziVtswNP9sEFAI913cVrzH85T+8Q6LpYbT0= github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM= github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= -github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= -github.com/karalabe/usb v0.0.2 h1:M6QQBNxF+CQ8OFvxrT90BA0qBOXymndZnk5q235mFc4= github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= -github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= -github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d h1:Z+RDyXzjKE0i2sTjZ/b1uxiGtPhFy34Ou/Tk0qwN0kM= -github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/errcheck v1.6.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/errcheck v1.6.2 h1:uGQ9xI8/pgc9iOoCe7kWQgRE6SBTrCGmTSf0LrEtY7c= -github.com/kisielk/errcheck v1.6.2/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= -github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= +github.com/kisielk/errcheck v1.6.1/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kkHAIKE/contextcheck v1.1.3 h1:l4pNvrb8JSwRd51ojtcOxOeHJzHek+MtOyXbaR0uvmw= -github.com/kkHAIKE/contextcheck v1.1.3/go.mod h1:PG/cwd6c0705/LM0KTr1acO2gORUxkSVWyLJOFW5qoo= -github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 h1:FOOIBWrEkLgmlgGfMuZT83xIwfPDxEI2OHu6xUmJMFE= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/kkdai/bstream v1.0.0 h1:Se5gHwgp2VT2uHfDrkbbgbgEvV9cimLELwrPJctSjg8= -github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.10.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= 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.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= github.com/klauspost/compress v1.16.5/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/crc32 v0.0.0-20161016154125-cb6bfca970f6 h1:KAZ1BW2TCmT6PRihDPpocIy1QTtsAsrx6TneU/4+CMg= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= -github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kulti/thelper v0.4.0/go.mod h1:vMu2Cizjy/grP+jmsvOFDx1kYP6+PD1lqg4Yu5exl2U= -github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= -github.com/kunwardeep/paralleltest v1.0.2/go.mod h1:ZPqNm1fVHPllh5LPVujzbVz1JN2GhLxSfY+oqUsvG30= -github.com/kunwardeep/paralleltest v1.0.6 h1:FCKYMF1OF2+RveWlABsdnmsvJrei5aoyZoaGS+Ugg8g= github.com/kunwardeep/paralleltest v1.0.6/go.mod h1:Y0Y0XISdZM5IKm3TREQMZ6iteqn1YuwCsJO/0kL9Zes= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/kyoh86/exportloopref v0.1.8 h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77LoN/M= github.com/kyoh86/exportloopref v0.1.8/go.mod h1:1tUcJeiioIs7VWe5gcOObrux3lb66+sBqGZrRkMwPgg= -github.com/labstack/echo/v4 v4.2.1 h1:LF5Iq7t/jrtUuSutNuiEWtB5eiHfZ5gSe2pcu5exjQw= github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= -github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/ldez/gomoddirectives v0.2.2/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= -github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= -github.com/ldez/tagliatelle v0.2.0/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= -github.com/ldez/tagliatelle v0.3.1 h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM= github.com/ldez/tagliatelle v0.3.1/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= -github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= -github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/leonklingele/grouper v1.1.0 h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg= github.com/leonklingele/grouper v1.1.0/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= -github.com/letsencrypt/pkcs11key/v4 v4.0.0 h1:qLc/OznH7xMr5ARJgkZCCWk+EomQkiNTOoOF5LAgagc= github.com/letsencrypt/pkcs11key/v4 v4.0.0/go.mod h1:EFUvBDay26dErnNb70Nd0/VW3tJiIbETBPTl9ATXQag= +github.com/lib/pq v0.0.0-20180327071824-d34b9ff171c2/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= 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 h1:143Bb8f8DuGWck/xpNUOckBVYfFbBTnLevfRZ1aVVqo= 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 h1:vi1F1IQ8N7hNWytK9DpJsUfQhGuNSc19z330K6vl4zk= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.8.0 h1:H4L/LhP7GOMf1j17oQAElHgVlbEje2h14A8Tz9cM2BE= github.com/linxGnu/grocksdb v1.8.0/go.mod h1:09CeBborffXhXdNpEcOeZrLKEnRtrZFEpFdPNI9Zjjg= -github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e h1:9MlwzLdW7QSDrhDjFlsEYmxpFyIoXmYRon3dt0io31k= -github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77 h1:6xiz3+ZczT3M4+I+JLpcPGG1bQKm8067HktB17EDWEE= 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= -github.com/lyft/protoc-gen-star v0.5.3 h1:zSGLzsUew8RT+ZKPHc3jnf8XLaVyHzTcAFBzHtCNR20= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= -github.com/lyft/protoc-gen-validate v0.0.13 h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +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 h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= -github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= -github.com/maratori/testpackage v1.0.1/go.mod h1:ddKdw+XG0Phzhx8BFDTKgpWP4i7MpApTE5fXSKAqwDU= -github.com/maratori/testpackage v1.1.0 h1:GJY4wlzQhuBusMF1oahQCBtUV/AQ/k69IZ68vxaac2Q= github.com/maratori/testpackage v1.1.0/go.mod h1:PeAhzU8qkCwdGEMTEupsHJNlQu2gZopMC6RjbhmHeDc= -github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 h1:pWxk9e//NbPwfxat7RXkts09K+dEBJWakUWwICVqYbA= github.com/matoous/godox v0.0.0-20210227103229-6504466cf951/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= -github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd h1:HvFwW+cm9bCbZ/+vuGNq7CRWXql8c0y8nGeYpqmpvmk= +github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -1866,12 +1123,8 @@ github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope 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-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= -github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d h1:oNAwILwmgWKFpuU+dXvI6dl9jG2mAWAZLX3r9s0PPiw= -github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= @@ -1885,33 +1138,23 @@ github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzp 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= github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= -github.com/mattn/go-sqlite3 v1.11.0 h1:LDdKkqtYlom37fkvqs8rMPFKAMe8+SgjbwZ6ex1/A/Q= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= -github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104 h1:d8RFOZ2IiFtFWBcKEHAFYJcPTf0wY5q0exFNJZVWa1U= +github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= -github.com/mattn/goveralls v0.0.2 h1:7eJB6EqsPhRVxvwEXGnqdO2sJI0PTsrWoTMXEk9/OQc= -github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= -github.com/mgechev/dots v0.0.0-20190921121421-c36f7dcfbb81 h1:QASJXOGm2RZ5Ardbc86qNFvby9AqkLDibfChMtAg5QM= -github.com/mgechev/dots v0.0.0-20190921121421-c36f7dcfbb81/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= -github.com/mgechev/revive v1.1.1/go.mod h1:PKqk4L74K6wVNwY2b6fr+9Qqr/3hIsHVfZCJdbvozrY= -github.com/mgechev/revive v1.2.4 h1:+2Hd/S8oO2H0Ikq2+egtNwQsVhAeELHjxjIUFX5ajLI= -github.com/mgechev/revive v1.2.4/go.mod h1:iAWlQishqCuj4yhV24FTnKSXGpbAA+0SckXB8GQMX/Q= +github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= +github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= github.com/miekg/pkcs11 v1.0.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= -github.com/miekg/pkcs11 v1.0.3 h1:iMwmD7I5225wv84WxIG/bmxz9AXjWvTWIbM/TYHvWtw= github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= @@ -1919,42 +1162,31 @@ github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6s github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= -github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/cli v1.1.0 h1:tEElEatulEHDeedTxwckzyYMA5c86fbmNIUL1hBIiTg= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= -github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/gox v0.4.0 h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/mitchellh/reflectwalk v1.0.1 h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE= github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/buildkit v0.10.4 h1:FvC+buO8isGpUFZ1abdSLdGHZVqg9sqI4BbFL8tlzP4= -github.com/moby/buildkit v0.10.4/go.mod h1:Yajz9vt1Zw5q9Pp4pdb3TCSUXJBIroIQGQ3TTs/sLug= -github.com/moby/sys/mountinfo v0.4.1 h1:1O+1cHA1aujwEwwVMa2Xm2l+gIpUHyd3+D+d7LZh1kM= -github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A= -github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae h1:O4SWKdcHVCvYqyDV+9CJA1fcDN2L11Bule0iFy3YlAI= -github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= +github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= +github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc= +github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -1962,21 +1194,13 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5 h1:8Q0qkMVC/MmWkpIdlvZgcv2o2jrlF6zqVOh7W5YHdMA= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= -github.com/moricho/tparallel v0.2.1 h1:95FytivzT6rYzdJLdtfn6m1bfFJylOJK41+lgv/EHf4= github.com/moricho/tparallel v0.2.1/go.mod h1:fXEIZxG2vdfl0ZF8b42f5a78EhjjD5mX8qUplsoSU4k= -github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1 h1:29NKShH4TWd3lxCDUhS4Xe16EWMA753dtIxYtwddklU= github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1/go.mod h1:FIczTrinKo8VaLxe6PWTPEXRXDIHz2QAwiaBaP5/4a8= -github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5 h1:0KqC6/sLy7fDpBdybhVkkv4Yz+PmB7c9Dz9z3dLW804= github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= -github.com/mrunalp/fileutils v0.5.0 h1:NKzVxiH7eSk+OQ4M+ZYW1K6h27RUV3MI6NUTsHhU6Z4= +github.com/mroth/weightedrand v0.4.1/go.mod h1:3p2SIcC8al1YMzGhAIoXD+r9olo/g/cdJgAD905gyNE= github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= -github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae h1:VeRdUYdCw49yizlSbMEn2SZ+gT+3IUKx8BqxyQdz+BY= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= @@ -1984,71 +1208,45 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= -github.com/mwitkow/go-proto-validators v0.2.0 h1:F6LFfmgVnfULfaRsQWBbe7F7ocuHCr9+7m+GAeDzNbQ= github.com/mwitkow/go-proto-validators v0.2.0/go.mod h1:ZfA1hW+UH/2ZHOWvQ3HnQaU0DtnpXu850MZiy+YUgcc= -github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76 h1:0xuRacu/Zr+jX+KyLLPPktbwXqyOvnOPUQmMLzX1jxU= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= -github.com/nakabonne/nestif v0.3.0/go.mod h1:dI314BppzXjJ4HsCnbo7XzrJHPszZsjnk5wEBSYHI2c= -github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= -github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks= github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= -github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416 h1:shk/vn9oCoOTmwcouEdwIeOtOGA/ELRUw/GwvxwfT+0= github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= -github.com/nats-io/jwt v0.3.2 h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/jwt/v2 v2.0.3 h1:i/O6cmIsjpcQyWDYNcq2JyZ3/VTF8SJ4JWluI5OhpvI= +github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q= github.com/nats-io/jwt/v2 v2.0.3/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats-server/v2 v2.5.0 h1:wsnVaaXH9VRSg+A2MVg5Q727/CqxnmPLGFQ3YZYKTQg= github.com/nats-io/nats-server/v2 v2.5.0/go.mod h1:Kj86UtrXAL6LwYRA6H4RqzkHhK0Vcv2ZnKD5WbQ1t3g= github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nats.go v1.12.1 h1:+0ndxwUPz3CmQ2vjbXdkC1fo3FdiOQDim4gl3Mge8Qo= github.com/nats-io/nats.go v1.12.1/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8= +github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s= github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= -github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA= github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= -github.com/neilotoole/errgroup v0.1.5/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neilotoole/errgroup v0.1.6 h1:PODGqPXdT5BC/zCYIMoTrwV+ujKcW+gBXM6Ye9Ve3R8= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f h1:YFXRHpaaRNK7stry4s6MM40IlulY/MSQTAvTbgodMDk= -github.com/neutron-org/admin-module v0.0.0-20230629154156-54b91a541f7f/go.mod h1:ZwQ3cw0rxF+DzonD2a5lisdcFEu64Db+0TPnHgMIvN0= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= -github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1 h1:VmQ1zVjrFguFYFDJrsJ8biPqZvWXrq1ydQKQMVp+w2Q= -github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230628195106-7f39abd759a1/go.mod h1:oB4CvQbYYn/g+q7c/rKQ33V4APW+kGdo5RkdFBovyxw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nishanths/exhaustive v0.2.3/go.mod h1:bhIX678Nx8inLM9PbpvK1yv6oGtoP8BfaIeMzgBNKvc= -github.com/nishanths/exhaustive v0.8.3 h1:pw5O09vwg8ZaditDp/nQRqVnrMczSJDxRDJMowvhsrM= -github.com/nishanths/exhaustive v0.8.3/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg= +github.com/nishanths/exhaustive v0.8.1/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg= github.com/nishanths/predeclared v0.0.0-20190419143655-18a43bb90ffc/go.mod h1:62PewwiQTlm/7Rj+cxVYqZvDIUc+JjZq6GHAC1fsObQ= -github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso= -github.com/nishanths/predeclared v0.2.1/go.mod h1:HvkGJcA3naj4lOwnFXFDkFxVtSqQMB9sbB1usJ+xjQE= -github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= 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 h1:wVfs8F+in6nTBMkA7CbRw+zZMIB7nNM825cM1wuzoTk= +github.com/oasisprotocol/curve25519-voi v0.0.0-20210609091139-0a56a4bca00b/go.mod h1:TLJifjWF6eotcfzDjKZsDqWJ+73Uvj/N85MvVyrvynM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= -github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/oklog/ulid/v2 v2.0.2/go.mod h1:mtBL0Qe/0HAx6/a4Z30qxVIAL1eQDweXq5lxOEiwQ68= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= 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= @@ -2058,140 +1256,103 @@ github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9k github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= 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.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= -github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= -github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= -github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= -github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= -github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= -github.com/opencontainers/runc v1.0.3/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0= -github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.2/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= github.com/opencontainers/runc v1.1.5 h1:L44KXEpKmfWDcS02aeGm8QNTFXTo2D+8MYGDIJ/GDEs= -github.com/opencontainers/runc v1.1.5/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= -github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc= github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/selinux v1.8.2 h1:c4ca10UMgRcvZ6h0K4HtS15UaVSBEaE+iln2LVpAuGc= -github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU= +github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5 h1:ZCnq+JUrvXcDVhX/xRolRBZifmabN1HcS1wrPSvxhrU= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.5 h1:UwtQQx2pyPIgWYHRg+epgdx1/HnBQTgN3/oIYEJTQzU= github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= -github.com/ory/dockertest/v3 v3.10.0 h1:4K3z2VMe8Woe++invjaTB7VRyQXQy5UY+loujO4aNE4= -github.com/ory/dockertest/v3 v3.10.0/go.mod h1:nr57ZbRWMqfsdGdFNLHz5jjNdDb7VVFnzAeW1n5N1Lg= -github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= -github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= +github.com/ory/dockertest/v3 v3.9.1/go.mod h1:42Ir9hmvaAPm0Mgibk6mBPi7SFvTXxEcnztDYOJ//uM= +github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= -github.com/otiai10/curr v1.0.0 h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI= github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= -github.com/otiai10/mint v1.3.2 h1:VYWnrP5fXmz1MXvjuUvcBrXSjGE6xjON+axB/UrpO3E= -github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= +github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0 h1:Yyk5ov0ZPKBXtVEeIWtc4J2XVrHuNoIK+0F2BUJgtsc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0/go.mod h1:UMGTHYEmJ1dRq8LDZ7VTAYO4nqM3GD1UGC3RJEUxEz0= -github.com/pact-foundation/pact-go v1.0.4 h1:OYkFijGHoZAYbOIb1LWXrwKQbMMRUv1oQ89blD2Mh2Q= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/paulbellamy/ratecounter v0.2.0 h1:2L/RhJq+HA8gBQImDXtLPrDXK5qAj6ozWVK/zFXVJGs= github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= -github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= -github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= +github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= 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.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -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.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= +github.com/pelletier/go-toml/v2 v2.0.2/go.mod h1:MovirKjgVRESsAvNZlAjtFwV867yGuwRkXbG66OzopI= 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 h1:2WnRzIquHa5QxaJKShDkLM+sc0JPuwhXzK8OYOyt3Vg= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/performancecopilot/speed/v4 v4.0.0 h1:VxEDCmdkfbQYDlcr/GC9YoN9PQ6p8ulk9xVsepYy9ZY= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= -github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= -github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 h1:oYW+YCJ1pachXTQmzR3rNLYGGz4g/UgFcjb28p/viDM= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761 h1:W04oB3d0J01W5jgYRGKsV8LCM6g9EkCvPkZcmFuy0OE= github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= -github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d h1:CdDQnGF8Nq9ocOS/xlSptM1N3BbrA6/kmaep5ggwaIA= github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d/go.mod h1:3OzsM7FXDQlpCiw2j81fOmAwQLnZnLGXVKUzeKQXIAw= -github.com/philhofer/fwd v1.0.0 h1:UbZqGr5Y38ApvM/V/jEljVxwocdweyH+vmYvRPBnbqQ= 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 h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pjbgf/sha1cd v0.2.3 h1:uKQP/7QOzNtKYH7UTohZLcjF5/55EnTw0jO/Ru4jZwI= -github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +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= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/profile v1.6.0 h1:hUDfIISABYI59DyeB3OTay/HxSRwTQ8rB/H83k6r5dM= github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= -github.com/pkg/sftp v1.13.1 h1:I2qBYMChEhIjOgazfJmV3/mZM256btk6wkCDRmW7JYs= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5 h1:tFwafIEMf0B7NlcxV/zJ6leBIa81D3hgGSgsE5hCkOQ= github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3 h1:hUmXhbljNFtrH5hzV9kiRoddZ5nfPTq3K0Sb2hYYiqE= -github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3/go.mod h1:q5NXNGzqj5uPnVuhGkZfmgHqNUhf15VLi6L9kW0VEc0= -github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4 h1:RHHRCZeaNyBXdYPMjZNH8/XHDBH38TZzw8izrW7dmBE= -github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4/go.mod h1:RdR1j20Aj5pB6+fw6Y9Ur7lMHpegTEjY1vc19hEZL40= -github.com/pointlander/peg v1.0.1 h1:mgA/GQE8TeS9MdkU6Xn6iEzBmQUQCNuWD7rHCK6Mjs0= -github.com/pointlander/peg v1.0.1/go.mod h1:5hsGDQR2oZI4QoWz0/Kdg3VSVEC31iJw/b7WjqCBGRI= -github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= -github.com/polyfloyd/go-errorlint v1.0.5 h1:AHB5JRCjlmelh9RrLxT9sgzpalIwwq4hqE8EkwIwKdY= -github.com/polyfloyd/go-errorlint v1.0.5/go.mod h1:APVvOesVSAnne5SClsPxPdfvZTVDojXh1/G3qb5wjGI= -github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w= +github.com/polyfloyd/go-errorlint v1.0.0/go.mod h1:KZy4xxPJyy88/gldCe5OdW6OQRtNO3EZE7hXzmnebgA= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.8.0/go.mod h1:O9VU6huf47PktckDQfMTX0Y8tY0/7TSWwj+ITvv0TnM= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_golang v1.15.1 h1:8tXpTmJbyH5lydzFPoxSIJ0J46jdh3tylbvM1xCv0LI= github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= @@ -2204,53 +1365,39 @@ github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUo github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.14.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.29.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.30.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= -github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pseudomuto/protoc-gen-doc v1.3.2 h1:61vWZuxYa8D7Rn4h+2dgoTNqnluBmJya2MgbqO32z6g= github.com/pseudomuto/protoc-gen-doc v1.3.2/go.mod h1:y5+P6n3iGrbKG+9O04V5ld71in3v/bX88wUwgt+U8EA= -github.com/pseudomuto/protokit v0.2.0 h1:hlnBDcy3YEDXH7kc9gV+NLaN0cDzhDvD1s7Y6FZ8RpM= github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= -github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c h1:JoUA0uz9U0FVFq5p4LjEq4C0VgQ0El320s3Ms0V4eww= -github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= github.com/quasilyte/go-ruleguard v0.3.1-0.20210203134552-1b5a410e1cc8/go.mod h1:KsAh3x0e7Fkpgs+Q9pNLS5XpFSvYCEVl5gP9Pp1xp30= -github.com/quasilyte/go-ruleguard v0.3.4/go.mod h1:57FZgMnoo6jqxkYKmVj5Fc8vOt0rVzoE/UNAmFFIPqA= -github.com/quasilyte/go-ruleguard v0.3.18 h1:sd+abO1PEI9fkYennwzHn9kl3nqP6M5vE7FiOzZ+5CE= -github.com/quasilyte/go-ruleguard v0.3.18/go.mod h1:lOIzcYlgxrQ2sGJ735EHXmf/e9MJ516j16K/Ifcttvs= +github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.2 h1:ULi3SLXvDUgb0u2IM5xU6er9KeWBSaUh1NlDjCgLHU8= -github.com/quasilyte/go-ruleguard/dsl v0.3.2/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/dsl v0.3.21/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= -github.com/quasilyte/go-ruleguard/rules v0.0.0-20210203162857-b223e0831f88 h1:PeTrJiH/dSeruL/Z9Db39NRMwI/yoA3oHCdCkg+Wh8A= -github.com/quasilyte/go-ruleguard/rules v0.0.0-20210203162857-b223e0831f88/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= -github.com/quasilyte/gogrep v0.0.0-20220828223005-86e4605de09f h1:6Gtn2i04RD0gVyYf2/IUMTIs+qYleBt4zxDqkLTcu4U= -github.com/quasilyte/gogrep v0.0.0-20220828223005-86e4605de09f/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= -github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf68pVdQ3bCFZMDmnt9yqcMBro1pC7F+IPYMY= +github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= +github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5/go.mod h1:wSEyW6O61xRV6zb6My3HxrQ5/8ke7NE2OayqCHa3xRM= github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= -github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= @@ -2258,124 +1405,74 @@ github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqn github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/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/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= -github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= 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 h1:RnWNS9Hlm8BIkjr6wx8li5abe0fr73jljLycdfemTp0= +github.com/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= +github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= +github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= -github.com/rjeczalik/notify v0.9.1 h1:CLCKso/QK1snAlnhNR/CNvNiFU2saUtjV0bx3EwNeCE= github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0 h1:Ppwyp6VYCF1nvBTXL3trRso7mXMlRrw9ooo375wvi2s= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= 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/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= 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/xhandler v0.0.0-20160618193221-ed27b6fd6521 h1:3hxavr+IHMsQBrYUPQM5v0CgENFktkkbg1sfpgM3h20= -github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ= -github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= -github.com/rs/xid v1.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY= +github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo= +github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= -github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= 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 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoLtnBZ7/TEhXAbg= -github.com/ryancurrah/gomodguard v1.2.4 h1:CpMSDKan0LtNGGhPrvupAoLeObRFjND8/tU1rEOtBp4= -github.com/ryancurrah/gomodguard v1.2.4/go.mod h1:+Kem4VjWwvFpUJRJSwa16s1tBJe+vbv02+naTow2f6M= -github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f h1:UFr9zpz4xgTnIE5yIMtWAMngCdZ9p/+q6lTbgelo80M= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= -github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= -github.com/sagikazarmark/crypt v0.10.0 h1:96E1qrToLBU6fGzo+PRRz7KGOc9FkYFiPnR3/zf8Smg= -github.com/sagikazarmark/crypt v0.10.0/go.mod h1:gwTNHQVoOS3xp9Xvz5LLR+1AauC5M6880z5NWzdhOyQ= -github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU= +github.com/sagikazarmark/crypt v0.6.0/go.mod h1:U8+INwJo3nBv1m6A/8OBXAq7Jnpspk5AxSgDyEQcea8= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= -github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10= github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= -github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= -github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= -github.com/sashamelentyev/usestdlibvars v1.20.0 h1:K6CXjqqtSYSsuyRDDC7Sjn6vTMLiSJa4ZmDkiokoqtw= -github.com/sashamelentyev/usestdlibvars v1.20.0/go.mod h1:0GaP+ecfZMXShS0A94CJn6aEuPRILv8h/VuWI9n1ygg= -github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/seccomp/libseccomp-golang v0.9.1 h1:NJjM5DNFOs0s3kYE1WUOr6G8V97sdt46rlXTMfXGWBo= -github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= -github.com/securego/gosec/v2 v2.8.1/go.mod h1:pUmsq6+VyFEElJMUX+QB3p3LWNHXg1R3xh2ssVJPs8Q= -github.com/securego/gosec/v2 v2.13.1 h1:7mU32qn2dyC81MH9L2kefnQyRMUarfDER3iQyMHcjYM= -github.com/securego/gosec/v2 v2.13.1/go.mod h1:EO1sImBMBWFjOTFzMWfTRrZW6M15gm60ljzrmy/wtHo= -github.com/segmentio/fasthash v1.0.3 h1:EI9+KE1EwvMLBWwjpRDc+fEM+prwxDYbslddQGtrmhM= +github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= +github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= +github.com/securego/gosec/v2 v2.12.0/go.mod h1:iTpT+eKTw59bSgklBHlSnH5O2tNygHMDxfvMubA4i7I= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= -github.com/segmentio/kafka-go v0.2.0 h1:HtCSf6B4gN/87yc5qTl7WsxPKQIIGXLPPM1bMCPOsoY= 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/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -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 v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil/v3 v3.21.7 h1:PnTqQamUjwEDSgn+nBGu0qSDV/CfvyiR/gwTH3i7HTU= -github.com/shirou/gopsutil/v3 v3.21.7/go.mod h1:RGl11Y7XMTQPmHh8F0ayC6haKNBgH4PXMJuTAcMOlz4= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e h1:MZM7FHLqUHYI0Y/mQAt3d2aYa0SiNms/hFqC9qJYolM= +github.com/shirou/gopsutil/v3 v3.22.6/go.mod h1:EdIubSnZhbAvBS1yJ7Xi+AShB/hxwLHOMz4MCYz7yMs= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041 h1:llrF3Fs4018ePo4+G/HV/uQUqEI1HMDjCeOf2V6puPc= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/sivchari/containedctx v1.0.2 h1:0hLQKpgC53OVF1VT7CeoFHk9YKstur1XOgfYIc1yrHI= github.com/sivchari/containedctx v1.0.2/go.mod h1:PwZOeqm4/DLoJOqMSIJs3aKqXRX4YO+uXww087KZ7Bw= -github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= -github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= -github.com/sivchari/tenv v1.7.0 h1:d4laZMBK6jpe5PWepxlV9S+LC0yXqvYHiq8E6ceoVVE= -github.com/sivchari/tenv v1.7.0/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= -github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= -github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= +github.com/sivchari/nosnakecase v1.5.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= +github.com/sivchari/tenv v1.6.0/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= github.com/skip-mev/pob v1.0.3 h1:cipN/WUU+xfYbcfUQ4EefSvl3ItocsKgRn3tOtRF2OE= github.com/skip-mev/pob v1.0.3/go.mod h1:PMs/dqcWOQruSN6zLExU0TzlBfBmGA8iTy+FJhxn0T8= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa h1:YJfZp12Z3AFhSBeXOlv4BO55RMwPn2NoQeDsrdWnBtY= github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= -github.com/soheilhy/cmux v0.1.4 h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sonatard/noctx v0.0.1 h1:VC1Qhl6Oxx9vvWo3UDgrGXYCeKCe3Wbw7qAWL6FrmTY= github.com/sonatard/noctx v0.0.1/go.mod h1:9D2D/EoULe8Yy2joDHJj7bv3sZoq9AaSb8B4lqBjiZI= -github.com/sony/gobreaker v0.4.1 h1:oMnRNZXX5j85zso6xCPRNPtmAycat+WcoKbklScLDgQ= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sourcegraph/go-diff v0.6.1 h1:hmA1LzxW0n1c3Q4YbrFgg4P99GSnebYa3x8gr0HZqLQ= github.com/sourcegraph/go-diff v0.6.1/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= @@ -2383,19 +1480,19 @@ github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2 github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= 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.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= 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.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= +github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= +github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM= 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= @@ -2406,37 +1503,22 @@ 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.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= -github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= +github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= 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.1.0/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= -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 h1:Gb2Tyox57NRNuZ2d3rmvB3pcmbu7O1RS3m8WRx7ilrg= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= -github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= -github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570 h1:gIlAHnH1vJb5vwEjIp5kBj/eu99p/bl0Ay2goiPe5xE= -github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= -github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3 h1:njlZPzLwU639dk2kqnCPPv+wNjq7Xb6EfUxe/oX0/NM= -github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f h1:NJdZ+YJ9Vf2t286L20IjFK0SxGpobF1xIp5ZQlxWetk= github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f/go.mod h1:DJNSVK8NCYHM+aZHCFkcAqPwjzwHYAjhjSMlhAGtJ3c= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v1.0.0 h1:kuuDrUJFZL1QYL9hUNuCxNObNzB0bV/ZG5jV3RWAQgo= github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= -github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e h1:mOtuXaRAbVZsxAHVdPR3IjfmN8T1h2iczJLynhLybf8= github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -2450,219 +1532,130 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 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.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= +github.com/subosito/gotenv v1.4.0/go.mod h1:mZd6rFysKEcUhUHXJk0C/08wAgyDBFuwEYL7vWWGaGo= 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/gocapability v0.0.0-20200815063812-42c35b437635 h1:kdXcSzyDtseVEc4yCz2qF8ZrQvIDBJLl4S1c3GCXmoI= +github.com/sylvia7788/contextcheck v1.0.4/go.mod h1:vuPKJMQ7MQ91ZTqfdyreNKwZjyUg6KO+IebVyQDedZQ= github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= 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/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= -github.com/tdakkota/asciicheck v0.1.1 h1:PKzG7JUTUmVspQTDqtkX9eSiLGossXTybutHwTXuO0A= github.com/tdakkota/asciicheck v0.1.1/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= -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/btcd v0.1.1 h1:0VcxPfflS2zZ3RiOAHkBiFUcPvbtRj5O7zHmcJWHV7s= -github.com/tendermint/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U= -github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 h1:hqAk8riJvK4RMWx1aInLzndwxKalgi5rTqgfXxOxbEI= -github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk= 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/spm v0.1.9 h1:O1DJF4evS8wgk5SZqRcO29irNNtKQmTpvQ0xFzUiczI= -github.com/tendermint/spm v0.1.9/go.mod h1:iHgfQ5YOI6ONc9E7ugGQolVdfSMHpeXfZ/OpXuN/42Q= -github.com/tendermint/tendermint v0.34.0-rc4/go.mod h1:yotsojf2C1QBOw4dZrTcxbyxmPUrT4hNuOQWX9XUwB4= -github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX6mjJTgbLHTwi17VDVg= -github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ= -github.com/tendermint/tendermint v0.34.13/go.mod h1:6RVVRBqwtKhA+H59APKumO+B7Nye4QXSFc6+TYxAxCI= -github.com/tendermint/tendermint v0.34.14 h1:GCXmlS8Bqd2Ix3TQCpwYLUNHe+Y+QyJsm5YE+S/FkPo= -github.com/tendermint/tendermint v0.34.14/go.mod h1:FrwVm3TvsVicI9Z7FlucHV6Znfd5KBc/Lpp69cCwtk0= -github.com/tendermint/tm-db v0.6.2/go.mod h1:GYtQ67SUvATOcoY8/+x6ylk8Qo02BQyLrAs+yAcLvGI= -github.com/tendermint/tm-db v0.6.3/go.mod h1:lfA1dL9/Y/Y8wwyPp2NMLyn5P5Ptr/gvDFNWtrCWSf8= -github.com/tendermint/tm-db v0.6.4 h1:3N2jlnYQkXNQclQwd/eKV/NzlqPlfK21cpRRIx80XXQ= -github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8/BmWlMBw= -github.com/tetafro/godot v1.4.9/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= -github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= +github.com/tendermint/tendermint v0.35.9 h1:yUEgfkcNHWSidsU8wHjRDbYPVijV4cHxCclKVITGRAQ= +github.com/tendermint/tendermint v0.35.9/go.mod h1:FYvzUDkmVv1awfFl9V85yl5NKyjxz6XLZGX132+ftAY= +github.com/tendermint/tm-db v0.6.6/go.mod h1:wP8d49A85B7/erz/r4YbKssKw6ylsO/hKtFk7E1aWZI= +github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= +github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= 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.6.7/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI= 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/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= -github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= -github.com/tidwall/sjson v1.2.4 h1:cuiLzLnaMeBhRmEv00Lpk3tkYrcxpmbU81tAY4Dw0tc= github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp19pSNM= -github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= -github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= -github.com/timonwong/loggercheck v0.9.3 h1:ecACo9fNiHxX4/Bc02rW2+kaJIAMAes7qJ7JKxt0EZI= -github.com/timonwong/loggercheck v0.9.3/go.mod h1:wUqnk9yAOIKtGA39l1KLE9Iz0QiTocu/YZoOf+OzFdw= -github.com/tinylib/msgp v1.0.2 h1:DfdQrzQa7Yh2es9SuLkixqxuXS2SxsdYn0KbdrOGWD8= github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= -github.com/tklauser/go-sysconf v0.3.5 h1:uu3Xl4nkLzQfXNsWn15rPc/HQCJKObbt1dKJeWp3vU4= +github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= +github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= -github.com/tklauser/go-sysconf v0.3.7 h1:HT7h4+536gjqeq1ZIJPgOl1rg1XFatQGVZWp7Py53eg= -github.com/tklauser/go-sysconf v0.3.7/go.mod h1:JZIdXh4RmBvZDBZ41ld2bGxRV3n4daiiqA3skYhAoQ4= -github.com/tklauser/numcpus v0.2.2 h1:oyhllyrScuYI6g+h/zUvNXNp1wy7x8qQy3t/piefldA= +github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= -github.com/tklauser/numcpus v0.2.3 h1:nQ0QYpiritP6ViFhrKYsiv6VVxOpum2Gks5GhnJbS/8= -github.com/tklauser/numcpus v0.2.3/go.mod h1:vpEPS/JC+oZGGQ/My/vJnNsvMDQL6PwOqt8dsCw5j+E= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8 h1:ndzgwNDnKIqyCvHTXaCqh9KlOWKvBry6nuXMJmonVsE= +github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966 h1:j6JEOq5QWFker+d7mFQYOhjTZonQ7YkLTHm56dbn+yM= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tomarrell/wrapcheck/v2 v2.3.0/go.mod h1:aF5rnkdtqNWP/gC7vPUO5pKsB0Oac2FDTQP4F+dpZMU= -github.com/tomarrell/wrapcheck/v2 v2.7.0 h1:J/F8DbSKJC83bAvC6FoZaRjZiZ/iKoueSdrEkmGeacA= -github.com/tomarrell/wrapcheck/v2 v2.7.0/go.mod h1:ao7l5p0aOlUNJKI0qVwB4Yjlqutd0IvAB9Rdwyilxvg= -github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce h1:fb190+cK2Xz/dvi9Hv8eCYJYvIGUTN2/KLq1pT6CjEc= +github.com/tomarrell/wrapcheck/v2 v2.6.2/go.mod h1:ao7l5p0aOlUNJKI0qVwB4Yjlqutd0IvAB9Rdwyilxvg= github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce/go.mod h1:o8v6yHRoik09Xen7gje4m9ERNah1d1PPsVq1VEx9vE4= -github.com/tommy-muehle/go-mnd/v2 v2.4.0/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= -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/tv42/httpunix v0.0.0-20150427012821-b75d8614f926 h1:G3dpKMzFDjgEh2q1Z7zUUtKa8ViPtH+ocF0bE0g00O8= +github.com/tommy-muehle/go-mnd/v2 v2.5.0/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/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= -github.com/tyler-smith/go-bip39 v1.0.2 h1:+t3w+KwLXO6154GNJY+qUtIxLTmFjfUmpguQT1OlOT8= github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= -github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= 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.0.3 h1:5ylVWm8wsNwH5aWo9438pwvsK0QiqVuUrt9bn7S/iLA= github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= -github.com/ultraware/whitespace v0.0.4/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= -github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= -github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= -github.com/uudashr/gocognit v1.0.6 h1:2Cgi6MweCsdB6kpcVQp7EW4U23iBFQWfTXiWlyp842Y= github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= -github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.16.0 h1:9zAqOYLl8Tuy3E5R6ckzGDJ1g8+pw15oQp2iL9Jl6gQ= -github.com/valyala/fasthttp v1.16.0/go.mod h1:YOKImeEosDdBPnxc0gy7INqi3m1zK6A+xl6TwOBhHCA= +github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= -github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/quicktemplate v1.6.3 h1:O7EuMwuH7Q94U2CXD6sOX8AYHqQqWtmIk690IhmpkKA= -github.com/valyala/quicktemplate v1.6.3/go.mod h1:fwPzK2fHuYEODzJ9pkw0ipCPNHZ2tD5KW4lOuSdPKzY= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a h1:0R4NLDRDZX6JcmhJgXi5E4b8Wg84ihbmUKp/GvSPEzc= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= -github.com/vektra/mockery/v2 v2.14.0 h1:KZ1p5Hrn8tiY+LErRMr14HHle6khxo+JKOXLBW/yfqs= +github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= +github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/vektra/mockery/v2 v2.14.0/go.mod h1:bnD1T8tExSgPD1ripLkDbr60JA9VtQeu12P3wgLZd7M= -github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8 h1:EVObHAr8DqpoJCVv6KYTle8FEImKhtkfcZetNqxDoJQ= github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= -github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0= github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df h1:OviZH7qLw/7ZovXvuNyL3XQl8UFofeikI1NW1Gypu7k= github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= -github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI= -github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= -github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc= -github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= -github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/willf/bitset v1.1.3 h1:ekJIKh6+YbUIVt9DfNbkR5d6aFcFTLDRyJNAACURBg8= github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208 h1:1cngl9mPEoITZG8s8cVcUy5CeIBYhEESkOB7m6Gmkrk= -github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= -github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= +github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= -github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6 h1:YdYsPAZ2pC6Tow/nPZOPQ96O3hm/ToAkGsPLzedXERk= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= -github.com/ybbus/jsonrpc v2.1.2+incompatible h1:V4mkE9qhbDQ92/MLMIhlhMSbz8jNXdagC3xBR5NDwaQ= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= -github.com/yeya24/promlinter v0.1.0/go.mod h1:rs5vtZzeBHqqMwXqFScncpCF6u06lezhZepno9AB1Oc= -github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= -github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA= github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M= github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= -github.com/yudai/pp v2.0.1+incompatible h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI= github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.13 h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE= +github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= -github.com/zondax/ledger-go v0.14.0/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= -gitlab.com/bosi/decorder v0.2.3 h1:gX4/RgK16ijY8V+BRQHAySfQAb354T7/xQpDB2n10P0= -gitlab.com/bosi/decorder v0.2.3/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +gitlab.com/bosi/decorder v0.2.2/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= +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 h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c h1:/RwRVN9EdXAVtdHxP7Ndn/tfmM9/goiwU0QTnLBgS4w= go.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c/go.mod h1:xCI7ZzBfRuGgBXyXO6yfWfDmlWd35khcWpUa4L0xI/k= go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.9 h1:4wSsluwyTbGGmyjJktOf3wFQoTBIURXHnq9n/G/JQHs= -go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= +go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.9 h1:oidDC4+YEuSIQbsR94rY9gur91UPL6DnxDCIYd2IGsE= -go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= +go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= -go.etcd.io/etcd/client/v2 v2.305.7 h1:AELPkjNR3/igjbO7CjyF1fPuVPjrblliiKj+Y6xSGOU= -go.etcd.io/etcd/client/v2 v2.305.7/go.mod h1:GQGT5Z3TBuAQGvgPfhR7VPySu/SudxmEkRq9BgzFU6s= -go.etcd.io/etcd/client/v3 v3.5.9 h1:r5xghnU7CwbUxD/fbUtRyJGaYNfDun8sp/gTr1hew6E= -go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= -go.etcd.io/gofail v0.1.0 h1:XItAMIhOojXFQMgrxjnd2EIIHun/d5qL0Pf7FzVTkFg= -go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= -go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403 h1:rKyWXYDfrVOpMFBion4Pmx5sJbQreQNXycHvm4KwJSg= +go.etcd.io/etcd/client/v2 v2.305.4/go.mod h1:Ud+VUwIi9/uQHOMA+4ekToJ12lTxlv0zB/+DHwTGEbU= +go.etcd.io/etcd/client/v3 v3.5.0/go.mod h1:AIKXXVX/DQXtfTEqBryiLTUXwON+GuvO6Z7lLS/oTh0= +go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403/go.mod h1:jHoPAGnDrCy6kaI2tAze5Prf0Nr0w/oNkROt2lw3n3o= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -2675,37 +1668,29 @@ 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/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.3 h1:syAz40OyelLZo42+3U68Phisvrx4qh+4wpdZw7eUUdY= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.3/go.mod h1:Dts42MGkzZne2yCru741+bFiTMWkIj/LLRizad7b9tw= -go.opentelemetry.io/otel v1.11.0 h1:kfToEGMDq6TrVrJ9Vht84Y8y9enykSZzDDZglV0kIEk= -go.opentelemetry.io/otel v1.11.0/go.mod h1:H2KtuEphyMvlhZ+F7tg9GRhAOe60moNx61Ex+WmiKkk= -go.opentelemetry.io/otel/trace v1.11.0 h1:20U/Vj42SX+mASlXLmSGBg6jpI1jQtv682lZtTAOVFI= -go.opentelemetry.io/otel/trace v1.11.0/go.mod h1:nyYjis9jy0gytE9LXGU+/m1sHTKbRY0fX0hulNNDP1U= -go.opentelemetry.io/proto/otlp v0.7.0 h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= -go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= +go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= -go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= +go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= +go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -2722,21 +1707,26 @@ golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3 golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210915214749-c084706c2272/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-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= @@ -2746,7 +1736,6 @@ golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= @@ -2757,11 +1746,9 @@ golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMk golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc= golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= -golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk= -golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= @@ -2774,34 +1761,27 @@ golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRu golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mobile v0.0.0-20200801112145-973feb4309de h1:OVJ6QQUBAesB8CZijKDSsXX7xYVtUhrkY0gwMfbi4p4= -golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -2813,7 +1793,6 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -2835,12 +1814,10 @@ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= @@ -2855,11 +1832,13 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -2867,6 +1846,7 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -2887,7 +1867,6 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= @@ -2917,11 +1896,11 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -2977,19 +1956,18 @@ golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/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-20201015000850-e3ed0017c211/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= +golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -3007,36 +1985,42 @@ golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -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-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/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-20210917161153-d61c044b1678/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-20211007075335-d3039528d8ac/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-20211025201205-69cdffdb9359/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-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a/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-20220319134239-a9b59b0215f8/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-20220405210540-1e041c57c461/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/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= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -3044,6 +2028,7 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= @@ -3056,6 +2041,7 @@ golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= +golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.9.0 h1:GRRCnKYhdQrD8kfRAdQ6Zcw1P0OcELxGLKJvtjVMZ28= golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= @@ -3079,15 +2065,14 @@ golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/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/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= -golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 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-20190110163146-51295c7ec13a/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= +golang.org/x/tools v0.0.0-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -3101,6 +2086,7 @@ golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -3112,7 +2098,6 @@ golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -3123,7 +2108,6 @@ golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapK golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117220505-0cba7a3a9ee9/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -3139,12 +2123,10 @@ golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWc golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200414032229-332987a829c3/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200422022333-3d57cf2e726e/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200426102838-f3a5411a4c3b/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= @@ -3153,7 +2135,6 @@ golang.org/x/tools v0.0.0-20200625211823-6506e20df31f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200626171337-aa94e735be7f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200630154851-b2d8b0336632/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200706234117-b22de6825cf7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -3164,31 +2145,34 @@ golang.org/x/tools v0.0.0-20200831203904-5a2aa26beb65/go.mod h1:Cj7w3i3Rnn0Xh82u 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-20201002184944-ecd9fd270d5d/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-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201114224030-61ea331ec02b/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201118003311-bd56c0adb394/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201230224404-63754364767c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210104081019-d8d6ddbec6ee/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= +golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.9-0.20211228192929-ee1ca4ffc4da/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= +golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -3201,12 +2185,9 @@ golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNq gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= -gonum.org/v1/gonum v0.8.2 h1:CCXrcPKiGGotvnN6jfUsKk4rRqm7q09/YbKb5xCEvtM= gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0 h1:OE9mWmgKkjJyEmDAAtGMPjXu+YNeGvK9VTSHY6+Qihc= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b h1:Qh4dB5D/WpoUUp3lSod7qgoyEHbDGPUWjIbnqdqqe1k= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= @@ -3231,7 +2212,6 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= @@ -3252,6 +2232,7 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= @@ -3316,8 +2297,6 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -3345,6 +2324,7 @@ google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -3370,6 +2350,7 @@ google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= @@ -3404,7 +2385,6 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go. google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= 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= @@ -3438,7 +2418,6 @@ google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= @@ -3450,7 +2429,6 @@ google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCD google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= 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= @@ -3462,15 +2440,14 @@ google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 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.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 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= @@ -3480,32 +2457,22 @@ gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/cheggaaa/pb.v1 v1.0.27 h1:kJdccidYzt3CaHD1crCFTS1hxyhSi059NhOFUf03YFo= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/cheggaaa/pb.v1 v1.0.28 h1:n1tBJnnK2r7g9OW2btFH91V92STTUevLXYFb8gy9EMk= gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.3 h1:m8OOJ4ccYHnx2f4gQwpno8nAX5OGOh7RLaaz0pj3Ogs= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.66.6/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= -gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6 h1:a6cXbcDDUkSBlpnkWV1bJ+vv3mOgQEltEJ2rPxroVu0= gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= -gopkg.in/resty.v1 v1.12.0 h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/urfave/cli.v1 v1.20.0 h1:NdAVW6RYxDif9DhDHaAortIu956m2c0v+09AZBPTbE0= gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= -gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -3519,13 +2486,16 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0/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.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= +gotest.tools/v3 v3.2.0/go.mod h1:Mcr9QNxkg0uMvy/YElmo4SpXgJKWgQvYrT7Kw5RzJ1A= gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= -gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= 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= @@ -3535,36 +2505,24 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= -honnef.co/go/tools v0.2.1/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY= -honnef.co/go/tools v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA= -honnef.co/go/tools v0.3.3/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= -mvdan.cc/gofumpt v0.1.1/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48= -mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM= -mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= +honnef.co/go/tools v0.3.2/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= +mvdan.cc/gofumpt v0.3.1/go.mod h1:w3ymliuxvzVx8DAutBnVyDqYb1Niy/yCJt/lk821YCE= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= -mvdan.cc/unparam v0.0.0-20210104141923-aac4ce9116a7/go.mod h1:hBpJkZE8H/sb+VRFvw2+rBpHNsTBcvSpk61hr8mzXZE= -mvdan.cc/unparam v0.0.0-20220706161116-678bad134442 h1:seuXWbRB1qPrS3NQnHmFKLJLtskWyueeIzmLXghMGgk= -mvdan.cc/unparam v0.0.0-20220706161116-678bad134442/go.mod h1:F/Cxw/6mVrNKqrR2YjFf5CaW0Bw4RL8RfbEf4GRggJk= +mvdan.cc/unparam v0.0.0-20211214103731-d0ef000c54e5/go.mod h1:b8RRCBm0eeiWR8cfN88xeq2G5SG3VKGO+5UPWi5FSOY= 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.4.8/go.mod h1:Z5PbWqjvWR1I3UGjvboUuan4fe4ZYEYNLNQLExzCoUs= pgregory.net/rapid v0.6.2 h1:ErW5sL+UKtfBfUTsWHDCoeB+eZKLKMxrSd1VJY6W4bw= pgregory.net/rapid v0.6.2/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= -rsc.io/binaryregexp v0.2.0 h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/pdf v0.1.1 h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= -rsc.io/quote/v3 v3.1.0 h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= From d43c3bceba318b734ca782c65421139c94d741fe Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 28 Jul 2023 16:24:02 +0300 Subject: [PATCH 006/307] updated openapi scheme. updated build scripts --- Dockerfile | 2 +- docs/static/openapi.yml | 3607 ++++++++++++++++++++++++++++---------- go.sum | 628 ------- network/init-neutrond.sh | 2 +- 4 files changed, 2729 insertions(+), 1510 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3862e3254..70ced1522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 FROM golang:1.20-bullseye -RUN apt-get update && apt-get install -y jq +RUN apt-get update && apt-get install -y jq xxd EXPOSE 26656 26657 1317 9090 COPY --from=app . /opt/neutron RUN cd /opt/neutron && make install-test-binary diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 25217cdce..9fdfa7be7 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -4,6 +4,554 @@ info: name: '' description: '' paths: + /cosmos/adminmodule/adminmodule/admins: + get: + summary: Queries a list of admins items. + operationId: CosmosAdminmoduleAdminmoduleAdmins + responses: + '200': + description: A successful response. + schema: + type: object + properties: + admins: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /cosmos/adminmodule/adminmodule/archivedproposals: + get: + summary: Queries a list of archived proposals. + operationId: CosmosAdminmoduleAdminmoduleArchivedProposals + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the + proposal. When + + querying a proposal via gRPC, this field is not + populated until the + + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: >- + abstain is the number of abstain votes on a + proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on + a proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: >- + voting_start_time is the starting time to vote on a + proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + description: >- + Proposal defines the core field members of a governance + proposal. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query /cosmos/auth/v1beta1/account_info/{address}: get: summary: AccountInfo queries account info which is common to all account types. @@ -21944,6 +22492,93 @@ paths: type: boolean tags: - Query + /gaia/globalfee/v1beta1/params: + get: + operationId: GaiaGlobalfeeV1Beta1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + minimum_gas_prices: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a + decimal amount. + + + NOTE: The amount field is an Dec which implements the + custom method + + signatures required by gogoproto. + title: >- + minimum_gas_prices stores the minimum gas price(s) for all + TX on the chain. + + When multiple coins are defined then they are accepted + alternatively. + + The list must be sorted by denoms asc. No duplicate denoms + or zero amount + + values allowed. For more information see + + https://docs.cosmos.network/main/modules/auth#concepts + bypass_min_fee_msg_types: + type: array + items: + type: string + description: >- + bypass_min_fee_msg_types defines a list of message type + urls + + that are free of fee charge. + max_total_bypass_min_fee_msg_gas_usage: + type: string + format: uint64 + description: >- + max_total_bypass_min_fee_msg_gas_usage defines the total + maximum gas usage + + allowed for a transaction containing only messages of + types in bypass_min_fee_msg_types + + to bypass fee charge. + description: Params defines the set of module parameters. + description: |- + QueryMinimumGasPricesResponse is the response type for the + Query/MinimumGasPrices RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connection_id}: get: summary: >- @@ -29070,7 +29705,13 @@ paths: type: string description: >- allowed_clients defines the list of allowed client state - types. + types which can be created + + and interacted with. If a client type is removed from the + allowed clients list, usage + + of this client will be disabled until it is added again to + the list. description: >- QueryClientParamsResponse is the response type for the Query/ClientParams RPC @@ -32367,7 +33008,7 @@ paths: The number of historical info entries to persist in store. This param is a part of the cosmos sdk staking module. In - the case of + the case of a ccv enabled consumer chain, the ccv module acts as the staking module. @@ -32385,10 +33026,31 @@ paths: bottom of the set who can opt out of running the consumer chain without being - punished. For example, a + punished. For + + example, a value of 0.05 means that the validators in the + bottom 5% of the + + set can opt out + reward_denoms: + type: array + items: + type: string + description: >- + Reward denoms. These are the denominations which are + allowed to be sent to - value of 0.05 means that the validators in the bottom 5% - of the set can opt out + the provider as rewards. + provider_reward_denoms: + type: array + items: + type: string + title: >- + Provider-originated reward denoms. These are denoms coming + from the + + provider which are allowed to be used as rewards. e.g. + "uatom" title: Params defines the parameters for CCV consumer module description: >- QueryParamsResponse is response type for the Query/Params RPC @@ -32608,17 +33270,19 @@ paths: type: string description: >- the proposed chain-id of the new consumer chain, - must be different from all other consumer chain ids - of the executing + must be different from all - provider chain. + other consumer chain ids of the executing provider + chain. initial_height: description: >- the proposed initial height of new consumer chain. For a completely new chain, this will be {0,1}. - However, it may be different if this is a chain that - is converting to a consumer chain. + However, it may be + + different if this is a chain that is converting to a + consumer chain. type: object properties: revision_number: @@ -32641,9 +33305,11 @@ paths: format: byte description: >- The hash of the consumer chain genesis state without - the consumer CCV module genesis params. + the consumer CCV + + module genesis params. It is used for off-chain + confirmation of - It is used for off-chain confirmation of genesis.json validity by validators and other parties. binary_hash: @@ -32651,20 +33317,23 @@ paths: format: byte description: >- The hash of the consumer chain binary that should be - run by validators on chain initialization. + run by validators on + + chain initialization. It is used for off-chain + confirmation of binary - It is used for off-chain confirmation of binary validity by validators and other parties. spawn_time: type: string format: date-time description: >- spawn time is the time on the provider chain at - which the consumer chain genesis is finalized and - all validators + which the consumer chain + + genesis is finalized and all validators will be + responsible for starting - will be responsible for starting their consumer - chain validator node. + their consumer chain validator node. unbonding_period: type: string description: >- @@ -32698,11 +33367,14 @@ paths: format: int64 description: >- BlocksPerDistributionTransmission is the number of - blocks between ibc-token-transfers from the consumer - chain to the provider chain. + blocks between - On sending transmission event, + ibc-token-transfers from the consumer chain to the + provider chain. On + + sending transmission event, `consumer_redistribution_fraction` of the + accumulated tokens are sent to the consumer redistribution address. historical_entries: @@ -32713,24 +33385,50 @@ paths: store. This param is a part of the cosmos sdk staking - module. In the case of + module. In the case of a ccv enabled consumer chain, the ccv module acts as the staking module. + distribution_transmission_channel: + type: string + title: >- + The ID of a token transfer channel used for the + Reward Distribution + + sub-protocol. If DistributionTransmissionChannel == + "", a new transfer + + channel is created on top of the same connection as + the CCV channel. + + Note that transfer_channel_id is the ID of the + channel end on the consumer + + chain. it is most relevant for chains performing a + sovereign to consumer + + changeover in order to maintan the existing ibc + transfer channel description: >- ConsumerAdditionProposal is a governance proposal on the - provider chain to spawn a new consumer chain. + provider chain to + + spawn a new consumer chain. If it passes, then all + validators on the provider - If it passes, then all validators on the provider chain - are expected to validate the consumer chain at spawn - time + chain are expected to validate the consumer chain at + spawn time or get - or get slashed. It is recommended that spawn time occurs - after the proposal end time. + slashed. It is recommended that spawn time occurs after + the proposal end + + time. title: proposals waiting for spawn_time to pass description: >- ConsumerAdditionProposals holds pending governance proposals - on the provider chain to spawn a new chain. + on the provider + + chain to spawn a new chain. default: description: An unexpected error response. schema: @@ -32950,228 +33648,234 @@ paths: format: date-time title: >- the time on the provider chain at which all - validators are responsible to stop their consumer - chain validator node + validators are responsible to + + stop their consumer chain validator node description: >- ConsumerRemovalProposal is a governance proposal on the - provider chain to remove (and stop) a consumer chain. + provider chain to + + remove (and stop) a consumer chain. If it passes, all + the consumer chain's - If it passes, all the consumer chain's state is removed - from the provider chain. The outstanding unbonding + state is removed from the provider chain. The + outstanding unbonding operation - operation funds are released. + funds are released. title: proposals waiting for stop_time to pass description: >- ConsumerRemovalProposals holds pending governance proposals on - the provider chain to remove (and stop) a consumer chain. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + the provider - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tags: - - Query - /interchain_security/ccv/provider/consumer_chains: - get: - summary: |- - ConsumerChains queries active consumer chains supported by the provider - chain - operationId: InterchainSecurityCcvProviderV1QueryConsumerChains - responses: - '200': - description: A successful response. - schema: - type: object - properties: - chains: - type: array - items: - type: object - properties: - chain_id: - type: string - client_id: - type: string + chain to remove (and stop) a consumer chain. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/consumer_chains: + get: + summary: |- + ConsumerChains queries active consumer chains supported by the provider + chain + operationId: InterchainSecurityCcvProviderV1QueryConsumerChains + responses: + '200': + description: A successful response. + schema: + type: object + properties: + chains: + type: array + items: + type: object + properties: + chain_id: + type: string + client_id: + type: string default: description: An unexpected error response. schema: @@ -33446,7 +34150,7 @@ paths: store. This param is a part of the cosmos sdk staking module. - In the case of + In the case of a ccv enabled consumer chain, the ccv module acts as the staking module. @@ -33464,10 +34168,31 @@ paths: bottom of the set who can opt out of running the consumer chain without - being punished. For example, a + being punished. For + + example, a value of 0.05 means that the validators in + the bottom 5% of the + + set can opt out + reward_denoms: + type: array + items: + type: string + description: >- + Reward denoms. These are the denominations which are + allowed to be sent to - value of 0.05 means that the validators in the bottom - 5% of the set can opt out + the provider as rewards. + provider_reward_denoms: + type: array + items: + type: string + title: >- + Provider-originated reward denoms. These are denoms + coming from the + + provider which are allowed to be used as rewards. e.g. + "uatom" title: Params defines the parameters for CCV consumer module provider_client_id: type: string @@ -33929,7 +34654,7 @@ paths: format: uint64 title: >- HeightValsetUpdateID defines the genesis information for - the mapping + the mapping of each block height to a valset update id description: >- @@ -34058,9 +34783,7 @@ paths: pools were transmitted to the provider chain preCCV: type: boolean - title: >- - flag indicating whether the consumer CCV module starts in - pre-CCV state + title: flag indicating whether the consumer CCV module starts in title: GenesisState defines the CCV consumer chain genesis state default: description: An unexpected error response. @@ -34256,11 +34979,9 @@ paths: - Query /interchain_security/ccv/provider/pending_consumer_packets: get: - summary: >- + summary: |- QueryThrottledConsumerPacketData returns a list of pending packet data - instances - - (slash packet and vsc matured) for a single consumer chain + instances (slash packet and vsc matured) for a single consumer chain operationId: InterchainSecurityCcvProviderV1QueryThrottledConsumerPacketData responses: '200': @@ -34338,7 +35059,9 @@ paths: consumer chain. title: >- ThrottledPacketDataWrapper contains either SlashPacketData - or VSCMaturedPacketData + or + + VSCMaturedPacketData default: description: An unexpected error response. schema: @@ -34531,137 +35254,343 @@ paths: type: string tags: - Query - /interchain_security/ccv/provider/throttle_state: + /interchain_security/ccv/provider/registered_consumer_reward_denoms: get: - summary: >- - QueryThrottleState returns the main on-chain state relevant to currently - throttled slash packets - operationId: InterchainSecurityCcvProviderV1QueryThrottleState + summary: |- + QueryRegisteredConsumerRewardDenoms returns a list of consumer reward + denoms that are registered + operationId: InterchainSecurityCcvProviderV1QueryRegisteredConsumerRewardDenoms responses: '200': description: A successful response. schema: type: object properties: - slash_meter: - type: string - format: int64 - title: current slash_meter state - slash_meter_allowance: - type: string - format: int64 - description: >- - allowance of voting power units (int) that the slash meter is - given per replenish period - - this also serves as the max value for the meter. - next_replenish_candidate: - type: string - format: date-time - title: >- - next time the slash meter could potentially be replenished, - iff it's not full - packets: + denoms: type: array items: - type: object - properties: - global_entry: - type: object - properties: - recv_time: - type: string - format: date-time - description: >- - Block time that slash packet was received by - provider chain. - - This field is used for store key iteration ordering. - consumer_chain_id: - type: string - description: The consumer that sent a slash packet. - ibc_seq_num: - type: string - format: uint64 - description: >- - The IBC sequence number of the recv packet. - - This field is used in the store key to ensure - uniqueness. - provider_val_cons_addr: - description: >- - The provider's consensus address of the validator - being slashed. - - This field is used to obtain validator power in - HandleThrottleQueues. - - - This field is not used in the store key, but is - persisted in value bytes, see QueueGlobalSlashEntry. - type: object - properties: - address: - type: string - format: byte - title: >- - A validator's consensus address on the provider - chain - description: >- - A persisted queue entry indicating that a slash packet - data instance needs to be handled. - - This type belongs in the "global" queue, to coordinate - slash packet handling times between consumers. - data: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - title: Validator - valset_update_id: - type: string - format: uint64 - title: map to the infraction block height on the provider - infraction: - title: >- - tell if the slashing is for a downtime or a - double-signing infraction - type: string - enum: - - INFRACTION_UNSPECIFIED - - INFRACTION_DOUBLE_SIGN - - INFRACTION_DOWNTIME - default: INFRACTION_UNSPECIFIED - description: >- - Infraction indicates the infraction a validator - commited. - - - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. - - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. - - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. - description: >- - This packet is sent from the consumer chain to the - provider chain - - to request the slashing of a validator as a result of an - infraction - - committed on the consumer chain. - description: >- - A query wrapper type for the global entry and data relevant - to a throttled slash packet. - title: data relevant to currently throttled slash packets + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /interchain_security/ccv/provider/throttle_state: + get: + summary: |- + QueryThrottleState returns the main on-chain state relevant to currently + throttled slash packets + operationId: InterchainSecurityCcvProviderV1QueryThrottleState + responses: + '200': + description: A successful response. + schema: + type: object + properties: + slash_meter: + type: string + format: int64 + title: current slash_meter state + slash_meter_allowance: + type: string + format: int64 + description: >- + allowance of voting power units (int) that the slash meter is + given per + + replenish period this also serves as the max value for the + meter. + next_replenish_candidate: + type: string + format: date-time + title: >- + next time the slash meter could potentially be replenished, + iff it's not + + full + packets: + type: array + items: + type: object + properties: + global_entry: + type: object + properties: + recv_time: + type: string + format: date-time + description: >- + Block time that slash packet was received by + provider chain. + + This field is used for store key iteration ordering. + consumer_chain_id: + type: string + description: The consumer that sent a slash packet. + ibc_seq_num: + type: string + format: uint64 + description: >- + The IBC sequence number of the recv packet. + + This field is used in the store key to ensure + uniqueness. + provider_val_cons_addr: + type: string + format: byte + description: >- + The provider's consensus address of the validator + being slashed. + + This field is used to obtain validator power in + HandleThrottleQueues. + + + This field is not used in the store key, but is + persisted in value bytes, + + see QueueGlobalSlashEntry. + description: >- + A persisted queue entry indicating that a slash packet + data instance needs to + + be handled. This type belongs in the "global" queue, to + coordinate slash + + packet handling times between consumers. + data: + type: object + properties: + validator: + type: object + properties: + address: + type: string + format: byte + title: The first 20 bytes of SHA256(public key) + power: + type: string + format: int64 + description: The voting power + title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; + title: Validator + valset_update_id: + type: string + format: uint64 + title: map to the infraction block height on the provider + infraction: + title: >- + tell if the slashing is for a downtime or a + double-signing infraction + type: string + enum: + - INFRACTION_UNSPECIFIED + - INFRACTION_DOUBLE_SIGN + - INFRACTION_DOWNTIME + default: INFRACTION_UNSPECIFIED + description: >- + Infraction indicates the infraction a validator + commited. + + - INFRACTION_UNSPECIFIED: UNSPECIFIED defines an empty infraction. + - INFRACTION_DOUBLE_SIGN: DOUBLE_SIGN defines a validator that double-signs a block. + - INFRACTION_DOWNTIME: DOWNTIME defines a validator that missed signing too many blocks. + description: >- + This packet is sent from the consumer chain to the + provider chain + + to request the slashing of a validator as a result of an + infraction + + committed on the consumer chain. + description: >- + A query wrapper type for the global entry and data relevant + to a throttled + + slash packet. + title: data relevant to currently throttled slash packets default: description: An unexpected error response. schema: @@ -39149,6 +40078,152 @@ paths: additionalProperties: {} tags: - Query + /pob/builder/v1/bid: + post: + summary: AuctionBid defines a method for sending bids to the x/builder module. + operationId: PobBuilderV1AuctionBid + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgAuctionBidResponse defines the Msg/AuctionBid response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: bidder + description: |- + bidder is the address of the account that is submitting a bid to the + auction. + in: query + required: false + type: string + - name: bid.denom + in: query + required: false + type: string + - name: bid.amount + in: query + required: false + type: string + - name: transactions + description: >- + transactions are the bytes of the transactions that the bidder wants + to + + bundle together. + in: query + required: false + type: array + items: + type: string + format: byte + collectionFormat: multi + tags: + - Msg + /pob/builder/v1/params: + get: + summary: Params queries the parameters of the x/builder module. + operationId: PobBuilderV1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + max_bundle_size: + type: integer + format: int64 + description: >- + max_bundle_size is the maximum number of transactions that + can be bundled + + in a single bundle. + escrow_account_address: + type: string + format: byte + description: >- + escrow_account_address is the address of the account that + will receive a + + portion of the bid proceeds. + reserve_fee: + description: reserve_fee specifies the bid floor for the auction. + type: object + properties: + denom: + type: string + amount: + type: string + min_bid_increment: + description: >- + min_bid_increment specifies the minimum amount that the + next bid must be + + greater than the previous bid. + type: object + properties: + denom: + type: string + amount: + type: string + front_running_protection: + type: boolean + description: >- + front_running_protection specifies whether front running + and sandwich + + attack protection is enabled. + proposer_fee: + type: string + description: >- + proposer_fee defines the portion of the winning bid that + goes to the block + + proposer that proposed the block. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query /ibc/apps/router/v1/params: get: summary: Params queries all parameters of the router module. @@ -39189,6 +40264,670 @@ paths: tags: - Query definitions: + cosmos.adminmodule.adminmodule.MsgAddAdminResponse: + type: object + cosmos.adminmodule.adminmodule.MsgDeleteAdminResponse: + type: object + cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + cosmos.adminmodule.adminmodule.QueryAdminsResponse: + type: object + properties: + admins: + type: array + items: + type: string + cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the proposal. + When + + querying a proposal via gRPC, this field is not populated until + the + + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: >- + no_with_veto is the number of no with veto votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + description: Proposal defines the core field members of a governance proposal. + cosmos.base.v1beta1.Coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + cosmos.gov.v1beta1.Proposal: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: |- + final_tally_result is the final tally result of the proposal. When + querying a proposal via gRPC, this field is not populated until the + proposal's voting period has ended. + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: no_with_veto is the number of no with veto votes on a proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + description: Proposal defines the core field members of a governance proposal. + cosmos.gov.v1beta1.ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + cosmos.gov.v1beta1.TallyResult: + type: object + properties: + 'yes': + type: string + description: yes is the number of yes votes on a proposal. + abstain: + type: string + description: abstain is the number of abstain votes on a proposal. + 'no': + type: string + description: no is the number of no votes on a proposal. + no_with_veto: + type: string + description: no_with_veto is the number of no with veto votes on a proposal. + description: TallyResult defines a standard tally for a governance proposal. + google.protobuf.Any: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a canonical + form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types that + they + + expect it to use in the context of Any. However, for URLs which use + the + + scheme `http`, `https`, or no scheme, one can optionally set up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along with + a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + google.rpc.Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } cosmos.auth.v1beta1.AddressBytesToStringResponse: type: object properties: @@ -40402,329 +42141,6 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - google.protobuf.Any: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a canonical - form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types that - they - - expect it to use in the context of Any. However, for URLs which use - the - - scheme `http`, `https`, or no scheme, one can optionally set up a type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along with - a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - google.rpc.Status: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up - a type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might - be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } cosmos.authz.v1beta1.Grant: type: object properties: @@ -42472,18 +43888,6 @@ definitions: description: |- SendEnabled maps coin denom to a send_enabled status (whether a denom is sendable). - cosmos.base.v1beta1.Coin: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. cosmos.base.tendermint.v1beta1.ABCIQueryResponse: type: object properties: @@ -56355,11 +57759,132 @@ definitions: title: |- QuerySmartContractStateResponse is the response type for the Query/SmartContractState RPC method + cosmos.base.v1beta1.DecCoin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + gaia.globalfee.v1beta1.Params: + type: object + properties: + minimum_gas_prices: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + title: >- + minimum_gas_prices stores the minimum gas price(s) for all TX on the + chain. + + When multiple coins are defined then they are accepted alternatively. + + The list must be sorted by denoms asc. No duplicate denoms or zero + amount + + values allowed. For more information see + + https://docs.cosmos.network/main/modules/auth#concepts + bypass_min_fee_msg_types: + type: array + items: + type: string + description: |- + bypass_min_fee_msg_types defines a list of message type urls + that are free of fee charge. + max_total_bypass_min_fee_msg_gas_usage: + type: string + format: uint64 + description: >- + max_total_bypass_min_fee_msg_gas_usage defines the total maximum gas + usage + + allowed for a transaction containing only messages of types in + bypass_min_fee_msg_types + + to bypass fee charge. + description: Params defines the set of module parameters. + gaia.globalfee.v1beta1.QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + minimum_gas_prices: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + title: >- + minimum_gas_prices stores the minimum gas price(s) for all TX on + the chain. + + When multiple coins are defined then they are accepted + alternatively. + + The list must be sorted by denoms asc. No duplicate denoms or zero + amount + + values allowed. For more information see + + https://docs.cosmos.network/main/modules/auth#concepts + bypass_min_fee_msg_types: + type: array + items: + type: string + description: |- + bypass_min_fee_msg_types defines a list of message type urls + that are free of fee charge. + max_total_bypass_min_fee_msg_gas_usage: + type: string + format: uint64 + description: >- + max_total_bypass_min_fee_msg_gas_usage defines the total maximum + gas usage + + allowed for a transaction containing only messages of types in + bypass_min_fee_msg_types + + to bypass fee charge. + description: Params defines the set of module parameters. + description: |- + QueryMinimumGasPricesResponse is the response type for the + Query/MinimumGasPrices RPC method. ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse: type: object properties: channel_id: type: string + port_id: + type: string title: >- MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount @@ -56665,6 +58190,8 @@ definitions: properties: version: type: string + channel_id: + type: string description: MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. ibc.core.channel.v1.MsgRecvPacketResponse: type: object @@ -58488,7 +60015,14 @@ definitions: type: array items: type: string - description: allowed_clients defines the list of allowed client state types. + description: >- + allowed_clients defines the list of allowed client state types which + can be created + + and interacted with. If a client type is removed from the allowed + clients list, usage + + of this client will be disabled until it is added again to the list. description: Params defines the set of IBC light client parameters. ibc.core.client.v1.QueryClientParamsResponse: type: object @@ -58501,7 +60035,15 @@ definitions: type: array items: type: string - description: allowed_clients defines the list of allowed client state types. + description: >- + allowed_clients defines the list of allowed client state types + which can be created + + and interacted with. If a client type is removed from the allowed + clients list, usage + + of this client will be disabled until it is added again to the + list. description: >- QueryClientParamsResponse is the response type for the Query/ClientParams RPC @@ -60889,7 +62431,7 @@ definitions: description: >- The number of historical info entries to persist in store. - This param is a part of the cosmos sdk staking module. In the case of + This param is a part of the cosmos sdk staking module. In the case of a ccv enabled consumer chain, the ccv module acts as the staking module. @@ -60905,10 +62447,27 @@ definitions: set who can opt out of running the consumer chain without being punished. For - example, a - value of 0.05 means that the validators in the bottom 5% of the set - can opt out + example, a value of 0.05 means that the validators in the bottom 5% of + the + + set can opt out + reward_denoms: + type: array + items: + type: string + description: >- + Reward denoms. These are the denominations which are allowed to be + sent to + + the provider as rewards. + provider_reward_denoms: + type: array + items: + type: string + title: |- + Provider-originated reward denoms. These are denoms coming from the + provider which are allowed to be used as rewards. e.g. "uatom" title: Params defines the parameters for CCV consumer module interchain_security.ccv.consumer.v1.QueryNextFeeDistributionEstimateResponse: type: object @@ -61010,7 +62569,7 @@ definitions: The number of historical info entries to persist in store. This param is a part of the cosmos sdk staking module. In the case - of + of a ccv enabled consumer chain, the ccv module acts as the staking module. @@ -61026,10 +62585,30 @@ definitions: the set who can opt out of running the consumer chain without being punished. - For example, a + For + + example, a value of 0.05 means that the validators in the bottom + 5% of the - value of 0.05 means that the validators in the bottom 5% of the set can opt out + reward_denoms: + type: array + items: + type: string + description: >- + Reward denoms. These are the denominations which are allowed to be + sent to + + the provider as rewards. + provider_reward_denoms: + type: array + items: + type: string + title: >- + Provider-originated reward denoms. These are denoms coming from + the + + provider which are allowed to be used as rewards. e.g. "uatom" title: Params defines the parameters for CCV consumer module description: QueryParamsResponse is response type for the Query/Params RPC method. cosmos.ics23.v1.HashOp: @@ -61952,7 +63531,7 @@ definitions: The number of historical info entries to persist in store. This param is a part of the cosmos sdk staking module. In the case - of + of a ccv enabled consumer chain, the ccv module acts as the staking module. @@ -61968,10 +63547,30 @@ definitions: the set who can opt out of running the consumer chain without being punished. - For example, a + For + + example, a value of 0.05 means that the validators in the bottom + 5% of the - value of 0.05 means that the validators in the bottom 5% of the set can opt out + reward_denoms: + type: array + items: + type: string + description: >- + Reward denoms. These are the denominations which are allowed to be + sent to + + the provider as rewards. + provider_reward_denoms: + type: array + items: + type: string + title: >- + Provider-originated reward denoms. These are denoms coming from + the + + provider which are allowed to be used as rewards. e.g. "uatom" title: Params defines the parameters for CCV consumer module provider_client_id: type: string @@ -62407,10 +64006,8 @@ definitions: valset_update_id: type: string format: uint64 - title: >- - HeightValsetUpdateID defines the genesis information for the - mapping - + title: |- + HeightValsetUpdateID defines the genesis information for the mapping of each block height to a valset update id description: HeightToValsetUpdateId nil on new chain, filled in on restart. outstanding_downtime_slashing: @@ -62522,9 +64119,7 @@ definitions: pools were transmitted to the provider chain preCCV: type: boolean - title: >- - flag indicating whether the consumer CCV module starts in pre-CCV - state + title: flag indicating whether the consumer CCV module starts in title: GenesisState defines the CCV consumer chain genesis state interchain_security.ccv.consumer.v1.HeightToValsetUpdateID: type: object @@ -62536,7 +64131,7 @@ definitions: type: string format: uint64 title: |- - HeightValsetUpdateID defines the genesis information for the mapping + HeightValsetUpdateID defines the genesis information for the mapping of each block height to a valset update id interchain_security.ccv.consumer.v1.LastTransmissionBlockHeight: type: object @@ -62585,13 +64180,12 @@ definitions: type: string description: >- the proposed chain-id of the new consumer chain, must be different - from all other consumer chain ids of the executing + from all - provider chain. + other consumer chain ids of the executing provider chain. initial_height: - description: >- + description: |- the proposed initial height of new consumer chain. - For a completely new chain, this will be {0,1}. However, it may be different if this is a chain that is converting to a consumer chain. type: object @@ -62614,29 +64208,31 @@ definitions: genesis_hash: type: string format: byte - description: >- + description: |- The hash of the consumer chain genesis state without the consumer CCV - module genesis params. - - It is used for off-chain confirmation of genesis.json validity by - validators and other parties. + module genesis params. It is used for off-chain confirmation of + genesis.json validity by validators and other parties. binary_hash: type: string format: byte description: >- The hash of the consumer chain binary that should be run by validators - on chain initialization. + on + + chain initialization. It is used for off-chain confirmation of binary - It is used for off-chain confirmation of binary validity by validators - and other parties. + validity by validators and other parties. spawn_time: type: string format: date-time description: >- spawn time is the time on the provider chain at which the consumer - chain genesis is finalized and all validators + chain - will be responsible for starting their consumer chain validator node. + genesis is finalized and all validators will be responsible for + starting + + their consumer chain validator node. unbonding_period: type: string description: |- @@ -62660,32 +64256,48 @@ definitions: blocks_per_distribution_transmission: type: string format: int64 - description: >- + description: |- BlocksPerDistributionTransmission is the number of blocks between - ibc-token-transfers from the consumer chain to the provider chain. - - On sending transmission event, `consumer_redistribution_fraction` of - the accumulated tokens are sent to the consumer redistribution - address. + ibc-token-transfers from the consumer chain to the provider chain. On + sending transmission event, `consumer_redistribution_fraction` of the + accumulated tokens are sent to the consumer redistribution address. historical_entries: type: string format: int64 description: >- The number of historical info entries to persist in store. - This param is a part of the cosmos sdk staking module. In the case of + This param is a part of the cosmos sdk staking module. In the case of a ccv enabled consumer chain, the ccv module acts as the staking module. + distribution_transmission_channel: + type: string + title: >- + The ID of a token transfer channel used for the Reward Distribution + + sub-protocol. If DistributionTransmissionChannel == "", a new transfer + + channel is created on top of the same connection as the CCV channel. + + Note that transfer_channel_id is the ID of the channel end on the + consumer + + chain. it is most relevant for chains performing a sovereign to + consumer + + changeover in order to maintan the existing ibc transfer channel description: >- ConsumerAdditionProposal is a governance proposal on the provider chain to - spawn a new consumer chain. - If it passes, then all validators on the provider chain are expected to - validate the consumer chain at spawn time + spawn a new consumer chain. If it passes, then all validators on the + provider + + chain are expected to validate the consumer chain at spawn time or get + + slashed. It is recommended that spawn time occurs after the proposal end - or get slashed. It is recommended that spawn time occurs after the - proposal end time. + time. interchain_security.ccv.provider.v1.ConsumerAdditionProposals: type: object properties: @@ -62704,15 +64316,17 @@ definitions: type: string description: >- the proposed chain-id of the new consumer chain, must be - different from all other consumer chain ids of the executing + different from all - provider chain. + other consumer chain ids of the executing provider chain. initial_height: description: >- the proposed initial height of new consumer chain. For a completely new chain, this will be {0,1}. However, it may - be different if this is a chain that is converting to a consumer + be + + different if this is a chain that is converting to a consumer chain. type: object properties: @@ -62736,28 +64350,33 @@ definitions: format: byte description: >- The hash of the consumer chain genesis state without the - consumer CCV module genesis params. + consumer CCV - It is used for off-chain confirmation of genesis.json validity - by validators and other parties. + module genesis params. It is used for off-chain confirmation of + + genesis.json validity by validators and other parties. binary_hash: type: string format: byte description: >- The hash of the consumer chain binary that should be run by - validators on chain initialization. + validators on + + chain initialization. It is used for off-chain confirmation of + binary - It is used for off-chain confirmation of binary validity by - validators and other parties. + validity by validators and other parties. spawn_time: type: string format: date-time description: >- spawn time is the time on the provider chain at which the - consumer chain genesis is finalized and all validators + consumer chain + + genesis is finalized and all validators will be responsible for + starting - will be responsible for starting their consumer chain validator - node. + their consumer chain validator node. unbonding_period: type: string description: |- @@ -62786,12 +64405,16 @@ definitions: format: int64 description: >- BlocksPerDistributionTransmission is the number of blocks - between ibc-token-transfers from the consumer chain to the - provider chain. + between + + ibc-token-transfers from the consumer chain to the provider + chain. On + + sending transmission event, `consumer_redistribution_fraction` + of the - On sending transmission event, - `consumer_redistribution_fraction` of the accumulated tokens are - sent to the consumer redistribution address. + accumulated tokens are sent to the consumer redistribution + address. historical_entries: type: string format: int64 @@ -62799,23 +64422,49 @@ definitions: The number of historical info entries to persist in store. This param is a part of the cosmos sdk staking module. In the - case of + case of a ccv enabled consumer chain, the ccv module acts as the staking module. + distribution_transmission_channel: + type: string + title: >- + The ID of a token transfer channel used for the Reward + Distribution + + sub-protocol. If DistributionTransmissionChannel == "", a new + transfer + + channel is created on top of the same connection as the CCV + channel. + + Note that transfer_channel_id is the ID of the channel end on + the consumer + + chain. it is most relevant for chains performing a sovereign to + consumer + + changeover in order to maintan the existing ibc transfer channel description: >- ConsumerAdditionProposal is a governance proposal on the provider - chain to spawn a new consumer chain. + chain to + + spawn a new consumer chain. If it passes, then all validators on the + provider + + chain are expected to validate the consumer chain at spawn time or + get - If it passes, then all validators on the provider chain are expected - to validate the consumer chain at spawn time + slashed. It is recommended that spawn time occurs after the proposal + end - or get slashed. It is recommended that spawn time occurs after the - proposal end time. + time. title: proposals waiting for spawn_time to pass description: >- ConsumerAdditionProposals holds pending governance proposals on the - provider chain to spawn a new chain. + provider + + chain to spawn a new chain. interchain_security.ccv.provider.v1.ConsumerRemovalProposal: type: object properties: @@ -62833,15 +64482,18 @@ definitions: format: date-time title: >- the time on the provider chain at which all validators are responsible - to stop their consumer chain validator node + to + + stop their consumer chain validator node description: >- ConsumerRemovalProposal is a governance proposal on the provider chain to - remove (and stop) a consumer chain. - If it passes, all the consumer chain's state is removed from the provider - chain. The outstanding unbonding + remove (and stop) a consumer chain. If it passes, all the consumer chain's - operation funds are released. + state is removed from the provider chain. The outstanding unbonding + operation + + funds are released. interchain_security.ccv.provider.v1.ConsumerRemovalProposals: type: object properties: @@ -62864,19 +64516,26 @@ definitions: format: date-time title: >- the time on the provider chain at which all validators are - responsible to stop their consumer chain validator node + responsible to + + stop their consumer chain validator node description: >- ConsumerRemovalProposal is a governance proposal on the provider - chain to remove (and stop) a consumer chain. + chain to - If it passes, all the consumer chain's state is removed from the - provider chain. The outstanding unbonding + remove (and stop) a consumer chain. If it passes, all the consumer + chain's - operation funds are released. + state is removed from the provider chain. The outstanding unbonding + operation + + funds are released. title: proposals waiting for stop_time to pass description: >- ConsumerRemovalProposals holds pending governance proposals on the - provider chain to remove (and stop) a consumer chain. + provider + + chain to remove (and stop) a consumer chain. interchain_security.ccv.provider.v1.GlobalSlashEntry: type: object properties: @@ -62893,38 +64552,35 @@ definitions: type: string format: uint64 description: |- - The IBC sequence number of the recv packet. + The IBC sequence number of the recv packet. This field is used in the store key to ensure uniqueness. provider_val_cons_addr: + type: string + format: byte description: >- - The provider's consensus address of the validator being slashed. + The provider's consensus address of the validator being slashed. This field is used to obtain validator power in HandleThrottleQueues. This field is not used in the store key, but is persisted in value - bytes, see QueueGlobalSlashEntry. - type: object - properties: - address: - type: string - format: byte - title: A validator's consensus address on the provider chain + bytes, + + see QueueGlobalSlashEntry. description: >- A persisted queue entry indicating that a slash packet data instance needs - to be handled. + to - This type belongs in the "global" queue, to coordinate slash packet - handling times between consumers. + be handled. This type belongs in the "global" queue, to coordinate slash + + packet handling times between consumers. interchain_security.ccv.provider.v1.MsgAssignConsumerKeyResponse: type: object - interchain_security.ccv.provider.v1.ProviderConsAddress: + interchain_security.ccv.provider.v1.MsgRegisterConsumerRewardDenomResponse: type: object - properties: - address: - type: string - format: byte - title: A validator's consensus address on the provider chain + description: |- + MsgRegisterConsumerRewardDenomResponse defines the + Msg/RegisterConsumerRewardDenom response type. interchain_security.ccv.provider.v1.QueryConsumerChainStartProposalsResponse: type: object properties: @@ -62946,15 +64602,17 @@ definitions: type: string description: >- the proposed chain-id of the new consumer chain, must be - different from all other consumer chain ids of the executing + different from all - provider chain. + other consumer chain ids of the executing provider chain. initial_height: description: >- the proposed initial height of new consumer chain. For a completely new chain, this will be {0,1}. However, it - may be different if this is a chain that is converting to a + may be + + different if this is a chain that is converting to a consumer chain. type: object properties: @@ -62978,28 +64636,34 @@ definitions: format: byte description: >- The hash of the consumer chain genesis state without the - consumer CCV module genesis params. + consumer CCV - It is used for off-chain confirmation of genesis.json - validity by validators and other parties. + module genesis params. It is used for off-chain confirmation + of + + genesis.json validity by validators and other parties. binary_hash: type: string format: byte description: >- The hash of the consumer chain binary that should be run by - validators on chain initialization. + validators on + + chain initialization. It is used for off-chain confirmation + of binary - It is used for off-chain confirmation of binary validity by - validators and other parties. + validity by validators and other parties. spawn_time: type: string format: date-time description: >- spawn time is the time on the provider chain at which the - consumer chain genesis is finalized and all validators + consumer chain + + genesis is finalized and all validators will be responsible + for starting - will be responsible for starting their consumer chain - validator node. + their consumer chain validator node. unbonding_period: type: string description: >- @@ -63032,12 +64696,16 @@ definitions: format: int64 description: >- BlocksPerDistributionTransmission is the number of blocks - between ibc-token-transfers from the consumer chain to the - provider chain. + between + + ibc-token-transfers from the consumer chain to the provider + chain. On - On sending transmission event, - `consumer_redistribution_fraction` of the accumulated tokens - are sent to the consumer redistribution address. + sending transmission event, + `consumer_redistribution_fraction` of the + + accumulated tokens are sent to the consumer redistribution + address. historical_entries: type: string format: int64 @@ -63045,23 +64713,50 @@ definitions: The number of historical info entries to persist in store. This param is a part of the cosmos sdk staking module. In - the case of + the case of a ccv enabled consumer chain, the ccv module acts as the staking module. + distribution_transmission_channel: + type: string + title: >- + The ID of a token transfer channel used for the Reward + Distribution + + sub-protocol. If DistributionTransmissionChannel == "", a + new transfer + + channel is created on top of the same connection as the CCV + channel. + + Note that transfer_channel_id is the ID of the channel end + on the consumer + + chain. it is most relevant for chains performing a sovereign + to consumer + + changeover in order to maintan the existing ibc transfer + channel description: >- ConsumerAdditionProposal is a governance proposal on the - provider chain to spawn a new consumer chain. + provider chain to + + spawn a new consumer chain. If it passes, then all validators on + the provider - If it passes, then all validators on the provider chain are - expected to validate the consumer chain at spawn time + chain are expected to validate the consumer chain at spawn time + or get - or get slashed. It is recommended that spawn time occurs after - the proposal end time. + slashed. It is recommended that spawn time occurs after the + proposal end + + time. title: proposals waiting for spawn_time to pass description: >- ConsumerAdditionProposals holds pending governance proposals on the - provider chain to spawn a new chain. + provider + + chain to spawn a new chain. interchain_security.ccv.provider.v1.QueryConsumerChainStopProposalsResponse: type: object properties: @@ -63087,19 +64782,26 @@ definitions: format: date-time title: >- the time on the provider chain at which all validators are - responsible to stop their consumer chain validator node + responsible to + + stop their consumer chain validator node description: >- ConsumerRemovalProposal is a governance proposal on the provider - chain to remove (and stop) a consumer chain. + chain to + + remove (and stop) a consumer chain. If it passes, all the + consumer chain's - If it passes, all the consumer chain's state is removed from the - provider chain. The outstanding unbonding + state is removed from the provider chain. The outstanding + unbonding operation - operation funds are released. + funds are released. title: proposals waiting for stop_time to pass description: >- ConsumerRemovalProposals holds pending governance proposals on the - provider chain to remove (and stop) a consumer chain. + provider + + chain to remove (and stop) a consumer chain. interchain_security.ccv.provider.v1.QueryConsumerChainsResponse: type: object properties: @@ -63183,7 +64885,7 @@ definitions: The number of historical info entries to persist in store. This param is a part of the cosmos sdk staking module. In the - case of + case of a ccv enabled consumer chain, the ccv module acts as the staking module. @@ -63199,10 +64901,30 @@ definitions: of the set who can opt out of running the consumer chain without being - punished. For example, a + punished. For + + example, a value of 0.05 means that the validators in the + bottom 5% of the + + set can opt out + reward_denoms: + type: array + items: + type: string + description: >- + Reward denoms. These are the denominations which are allowed + to be sent to + + the provider as rewards. + provider_reward_denoms: + type: array + items: + type: string + title: >- + Provider-originated reward denoms. These are denoms coming + from the - value of 0.05 means that the validators in the bottom 5% of - the set can opt out + provider which are allowed to be used as rewards. e.g. "uatom" title: Params defines the parameters for CCV consumer module provider_client_id: type: string @@ -63646,7 +65368,7 @@ definitions: format: uint64 title: >- HeightValsetUpdateID defines the genesis information for the - mapping + mapping of each block height to a valset update id description: HeightToValsetUpdateId nil on new chain, filled in on restart. @@ -63761,10 +65483,15 @@ definitions: pools were transmitted to the provider chain preCCV: type: boolean - title: >- - flag indicating whether the consumer CCV module starts in pre-CCV - state + title: flag indicating whether the consumer CCV module starts in title: GenesisState defines the CCV consumer chain genesis state + interchain_security.ccv.provider.v1.QueryRegisteredConsumerRewardDenomsResponse: + type: object + properties: + denoms: + type: array + items: + type: string interchain_security.ccv.provider.v1.QueryThrottleStateResponse: type: object properties: @@ -63777,15 +65504,17 @@ definitions: format: int64 description: >- allowance of voting power units (int) that the slash meter is given - per replenish period + per - this also serves as the max value for the meter. + replenish period this also serves as the max value for the meter. next_replenish_candidate: type: string format: date-time title: >- next time the slash meter could potentially be replenished, iff it's - not full + not + + full packets: type: array items: @@ -63807,30 +65536,30 @@ definitions: type: string format: uint64 description: |- - The IBC sequence number of the recv packet. + The IBC sequence number of the recv packet. This field is used in the store key to ensure uniqueness. provider_val_cons_addr: + type: string + format: byte description: >- The provider's consensus address of the validator being - slashed. + slashed. This field is used to obtain validator power in HandleThrottleQueues. This field is not used in the store key, but is persisted in - value bytes, see QueueGlobalSlashEntry. - type: object - properties: - address: - type: string - format: byte - title: A validator's consensus address on the provider chain + value bytes, + + see QueueGlobalSlashEntry. description: >- A persisted queue entry indicating that a slash packet data - instance needs to be handled. + instance needs to + + be handled. This type belongs in the "global" queue, to + coordinate slash - This type belongs in the "global" queue, to coordinate slash packet handling times between consumers. data: type: object @@ -63878,7 +65607,9 @@ definitions: committed on the consumer chain. description: >- A query wrapper type for the global entry and data relevant to a - throttled slash packet. + throttled + + slash packet. title: data relevant to currently throttled slash packets interchain_security.ccv.provider.v1.QueryThrottledConsumerPacketDataResponse: type: object @@ -63950,7 +65681,7 @@ definitions: to notify that a VSC packet reached maturity on the consumer chain. - title: >- + title: |- ThrottledPacketDataWrapper contains either SlashPacketData or VSCMaturedPacketData interchain_security.ccv.provider.v1.QueryValidatorConsumerAddrResponse: @@ -64018,7 +65749,7 @@ definitions: description: |- This packet is sent from the consumer chain to the provider chain to notify that a VSC packet reached maturity on the consumer chain. - title: >- + title: |- ThrottledPacketDataWrapper contains either SlashPacketData or VSCMaturedPacketData interchain_security.ccv.provider.v1.ThrottledSlashPacket: @@ -64040,30 +65771,30 @@ definitions: type: string format: uint64 description: |- - The IBC sequence number of the recv packet. + The IBC sequence number of the recv packet. This field is used in the store key to ensure uniqueness. provider_val_cons_addr: + type: string + format: byte description: >- - The provider's consensus address of the validator being slashed. + The provider's consensus address of the validator being slashed. This field is used to obtain validator power in HandleThrottleQueues. This field is not used in the store key, but is persisted in value - bytes, see QueueGlobalSlashEntry. - type: object - properties: - address: - type: string - format: byte - title: A validator's consensus address on the provider chain + bytes, + + see QueueGlobalSlashEntry. description: >- A persisted queue entry indicating that a slash packet data instance - needs to be handled. + needs to + + be handled. This type belongs in the "global" queue, to coordinate + slash - This type belongs in the "global" queue, to coordinate slash packet - handling times between consumers. + packet handling times between consumers. data: type: object properties: @@ -64104,7 +65835,7 @@ definitions: This packet is sent from the consumer chain to the provider chain to request the slashing of a validator as a result of an infraction committed on the consumer chain. - description: >- + description: |- A query wrapper type for the global entry and data relevant to a throttled slash packet. interchain_security.ccv.v1.ConsumerPacketData: @@ -67419,6 +69150,122 @@ definitions: creation are sent to title: Params holds parameters for the tokenfactory module description: QueryParamsResponse is the response type for the Query/Params RPC method. + pob.builder.v1.MsgAuctionBidResponse: + type: object + description: MsgAuctionBidResponse defines the Msg/AuctionBid response type. + pob.builder.v1.MsgUpdateParamsResponse: + type: object + description: MsgUpdateParamsResponse defines the Msg/UpdateParams response type. + pob.builder.v1.Params: + type: object + properties: + max_bundle_size: + type: integer + format: int64 + description: >- + max_bundle_size is the maximum number of transactions that can be + bundled + + in a single bundle. + escrow_account_address: + type: string + format: byte + description: >- + escrow_account_address is the address of the account that will receive + a + + portion of the bid proceeds. + reserve_fee: + description: reserve_fee specifies the bid floor for the auction. + type: object + properties: + denom: + type: string + amount: + type: string + min_bid_increment: + description: >- + min_bid_increment specifies the minimum amount that the next bid must + be + + greater than the previous bid. + type: object + properties: + denom: + type: string + amount: + type: string + front_running_protection: + type: boolean + description: |- + front_running_protection specifies whether front running and sandwich + attack protection is enabled. + proposer_fee: + type: string + description: >- + proposer_fee defines the portion of the winning bid that goes to the + block + + proposer that proposed the block. + description: Params defines the parameters of the x/builder module. + pob.builder.v1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + max_bundle_size: + type: integer + format: int64 + description: >- + max_bundle_size is the maximum number of transactions that can be + bundled + + in a single bundle. + escrow_account_address: + type: string + format: byte + description: >- + escrow_account_address is the address of the account that will + receive a + + portion of the bid proceeds. + reserve_fee: + description: reserve_fee specifies the bid floor for the auction. + type: object + properties: + denom: + type: string + amount: + type: string + min_bid_increment: + description: >- + min_bid_increment specifies the minimum amount that the next bid + must be + + greater than the previous bid. + type: object + properties: + denom: + type: string + amount: + type: string + front_running_protection: + type: boolean + description: >- + front_running_protection specifies whether front running and + sandwich + + attack protection is enabled. + proposer_fee: + type: string + description: >- + proposer_fee defines the portion of the winning bid that goes to + the block + + proposer that proposed the block. + description: QueryParamsResponse is the response type for the Query/Params RPC method. router.v1.Params: type: object properties: diff --git a/go.sum b/go.sum index 8d4917698..5d3442aab 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -4d63.com/gochecknoglobals v0.1.0/go.mod h1:wfdC5ZjKSPr7CybKEcgJhUOgeAQW1+7WcyK8OvUilfo= -bitbucket.org/creachadair/shell v0.0.6/go.mod h1:8Qqi/cYk7vPnsOePHroKXDJYmb5x7ENhtiFtfZq8K+M= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= @@ -16,7 +14,6 @@ cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6 cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.60.0/go.mod h1:yw2G51M9IfRboUH61Us8GqCeF1PzPblB823Mn2q2eAU= cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= @@ -32,7 +29,6 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= @@ -107,7 +103,6 @@ cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1 cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= -cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= @@ -150,7 +145,6 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/pubsub v1.5.0/go.mod h1:ZEwJccE3z93Z2HWvstpri00jOg7oO4UZDtKhwDwqF0w= cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= @@ -173,7 +167,6 @@ cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyW cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= -cloud.google.com/go/spanner v1.7.0/go.mod h1:sd3K2gZ9Fd0vMPLXzeCrF6fq4i63Q7aTLW/lBIfBkIk= cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= @@ -199,7 +192,6 @@ 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= -contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc= 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= @@ -222,57 +214,32 @@ git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFN git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/Antonboom/errname v0.1.7/go.mod h1:g0ONh16msHIPgJSGsecu1G/dcF2hlYR/0SddnIAGavU= -github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= -github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= -github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/CosmWasm/wasmvm v1.2.4 h1:6OfeZuEcEH/9iqwrg2pkeVtDCkMoj9U6PpKtcrCyVrQ= github.com/CosmWasm/wasmvm v1.2.4/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/GaijinEntertainment/go-exhaustruct/v2 v2.2.0/go.mod h1:n/vLeA7V+QY84iYAGwMkkUUp9ooeuftMEvaDrSVch+Q= -github.com/HdrHistogram/hdrhistogram-go v1.1.0/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= -github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/sprig v2.15.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= -github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/OpenPeeDeeP/depguard v1.1.0/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= 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/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= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= @@ -282,54 +249,35 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= -github.com/alingse/asasalint v0.0.10/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= -github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= -github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/ashanbrown/forbidigo v1.3.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI= -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.23.20/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.36.30/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= 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 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= -github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= 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/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -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= @@ -339,13 +287,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= -github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/bombsimon/wsl/v3 v3.3.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/breml/bidichk v0.2.3/go.mod h1:8u2C6DnAy0g2cEq+k/A2+tr9O1s+vHGxWn0LTc70T2A= -github.com/breml/errchkjson v0.3.0/go.mod h1:9Cogkyv9gcT8HREpzi3TiqBxCqDzo8awa92zSDFcofU= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= @@ -370,30 +313,22 @@ 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/buf v1.3.1/go.mod h1:CTRUb23N+zlm1U8ZIBKz0Sqluk++qQloB2i/MZNZHIs= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= -github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= -github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charithe/durationcheck v0.0.9/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= -github.com/chavacava/garif v0.0.0-20220316182200-5cad0b5181d4/go.mod h1:W8EnPSQ8Nv4fUjc/v1/8tHFqhuOJXnRub0dTfuAQktU= -github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= @@ -404,10 +339,8 @@ github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObk 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/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= 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/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= @@ -420,7 +353,6 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 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/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= @@ -439,20 +371,13 @@ github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/ github.com/consensys/bavard v0.1.8-0.20210915155054-088da2f7f54a/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= github.com/consensys/gnark-crypto v0.5.3/go.mod h1:hOdPlWQV1gDLp7faZVeg8Y0iEPFaOUnCc4XeCCk96p0= -github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= -github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/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.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= @@ -485,27 +410,17 @@ github.com/cosmos/rosetta-sdk-go v0.10.0 h1:E5RhTruuoA7KTIXUcMicL76cffyeoyvNybzU 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.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creachadair/atomicfile v0.2.6/go.mod h1:BRq8Une6ckFneYXZQ+kO7p1ZZP3I2fzVzf28JxrIkBc= -github.com/creachadair/command v0.0.0-20220426235536-a748effdf6a1/go.mod h1:bAM+qFQb/KwWyCc9MLC4U1jvn3XyakqP5QRkds5T6cY= -github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk= github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= -github.com/creachadair/tomledit v0.0.22/go.mod h1:cIu/4x5L855oSRejIqr+WRFh+mv9g4fWLiUFaApYn/Y= 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/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= -github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= -github.com/daixiang0/gci v0.4.2/go.mod h1:d0f+IJhr9loBtIq+ebwhRoTt1LGbPH96ih8bKlsRT9E= github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= -github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -519,11 +434,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3 github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= -github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= -github.com/denisenkom/go-mssqldb v0.12.0/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfzrpArPY/aFvc9yU= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= 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= @@ -539,16 +451,10 @@ github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8 github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/cli v20.10.14+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v20.10.17+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.17+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= @@ -572,46 +478,24 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v0.0.14/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= -github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0= -github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= -github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= -github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= -github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= 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/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= -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/goblin v0.0.0-20210519012713-85d372ac71e2/go.mod h1:VzmDKDJVZI3aJmnRI9VjAn9nJ8qPPsN1fqzr9dqInIo= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= -github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= -github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= 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.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/fullstorydev/grpcurl v1.6.0/go.mod h1:ZQ+ayqbKMJNhzLmbpCiurTVlaK2M/3nqZCxaQ2Ze/sM= -github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= 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= @@ -624,7 +508,6 @@ github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= -github.com/go-critic/go-critic v0.6.3/go.mod h1:c6b3ZP1MQ7o6lPR7Rv3lEf7pYQUmAcx8ABHgdZCQt/k= 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= @@ -634,17 +517,14 @@ github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgO github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= 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/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-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= 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= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= @@ -654,26 +534,10 @@ github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+ github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= -github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-toolsmith/astcast v1.0.0/go.mod h1:mt2OdQTeAQcY4DQgPSArJjHCcOwlX+Wl/kwN+LbLGQ4= -github.com/go-toolsmith/astcopy v1.0.0/go.mod h1:vrgyG+5Bxrnz4MZWPF+pI4R8h3qKRjjyvV/DSez4WVQ= -github.com/go-toolsmith/astequal v1.0.0/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= -github.com/go-toolsmith/astequal v1.0.1/go.mod h1:4oGA3EZXTVItV/ipGiOx7NWkY5veFfcsOJVS2YxltLw= -github.com/go-toolsmith/astfmt v1.0.0/go.mod h1:cnWmsOAuq4jJY6Ct5YWlVLmcmLMn1JUPuQIHCY7CJDw= -github.com/go-toolsmith/astp v1.0.0/go.mod h1:RSyrtpVlfTFGDYRbrjyWP1pYu//tSFcvdYrA8meBmLI= -github.com/go-toolsmith/pkgload v1.0.2-0.20220101231613-e814995d17c5/go.mod h1:3NAwwmD4uY/yggRxoEjk/S00MIV3A+H7rrE3i87eYxM= -github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= -github.com/go-toolsmith/typep v1.0.2/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= -github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= -github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= @@ -684,19 +548,13 @@ github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -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/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= 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/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= -github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188/go.mod h1:vXjM/+wXQnTPR4KqTKDgJukSZ6amVRtWMPEjE6sQoK8= 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= @@ -718,7 +576,6 @@ github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71 github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -740,27 +597,14 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= -github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/golangci-lint v1.47.0/go.mod h1:3TZhfF5KolbIkXYjUFvER6G9CoxzLEaafr/u/QI1S5A= github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= -github.com/golangci/misspell v0.3.5/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= -github.com/golangci/revgrep v0.0.0-20210930125155-c22e5001d4f2/go.mod h1:LK+zW4MpyytAWQRz0M4xnzEk50lSvqDQKfx304apFkY= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg= -github.com/google/certificate-transparency-go v1.1.1/go.mod h1:FDKqPvSXawb2ecErVRrD+nfy23RCzyl7eqVCEmlT1Zs= github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -797,23 +641,18 @@ github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200507031123-427632fa3b1c/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 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.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/trillian v1.3.11/go.mod h1:0tPraVHrSDkA3BO6vKX67zgLXs6SsOAbHEivX+9mPgw= -github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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= @@ -838,11 +677,7 @@ github.com/googleapis/gax-go/v2 v2.8.0 h1:UBtEZqx1bjXtOQ5BVTkuYghXrr3N4V123VKJK6 github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= 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/gookit/color v1.5.1/go.mod h1:wZFzea4X8qN6vHOSP2apMb4/+w/orMznEzYsIHPaqKM= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= -github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= -github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= @@ -855,29 +690,13 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= -github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= -github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= -github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= -github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= -github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= -github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= -github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= -github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= -github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= -github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= -github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= -github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= -github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= 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.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= @@ -890,11 +709,7 @@ github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/b github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/api v1.10.1/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= -github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= -github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -903,20 +718,13 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= 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-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= 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= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= @@ -925,31 +733,21 @@ github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= -github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= -github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= 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/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= @@ -957,21 +755,13 @@ github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3 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/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo= -github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= 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= github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6jq8pNA= github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= @@ -981,7 +771,6 @@ github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7m github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385/go.mod h1:gHp9y86a/pxhjJ+zMjNXiQAA197Xk9wLxaz+fGG+kWk= github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e/go.mod h1:4kt73NQhadE3daL3WhR5EJ/J2ocX0PZzwxQ0gXJ7oFE= github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= @@ -991,17 +780,10 @@ github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bS github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0= github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jdxcode/netrc v0.0.0-20210204082910-926c7f70242a/go.mod h1:Zi/ZFkEqFHTm7qkjyNJjaWH4LQA9LQhGJyF0lTYGpxw= github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= -github.com/jhump/protocompile v0.0.0-20220216033700-d705409f108f/go.mod h1:qr2b5kx4HbFS7/g4uYO5qv9ei8303JMsC7ESbYiqr2Q= -github.com/jhump/protoreflect v1.6.1/go.mod h1:RZQ/lnuN+zqeRVpQigTwO6o0AJUkxbnSnpuG7toUTG4= -github.com/jhump/protoreflect v1.11.1-0.20220213155251-0c2aedc66cf4/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= -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/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= @@ -1009,10 +791,7 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGw github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= -github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= @@ -1020,73 +799,47 @@ github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/juju/ratelimit v1.0.1/go.mod h1:qapgC/Gy+xNh9UxzV13HGGl/6UXNN+ct+vwSgWNm/qk= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= 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/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/errcheck v1.6.1/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= 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.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= -github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= -github.com/kunwardeep/paralleltest v1.0.6/go.mod h1:Y0Y0XISdZM5IKm3TREQMZ6iteqn1YuwCsJO/0kL9Zes= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/kyoh86/exportloopref v0.1.8/go.mod h1:1tUcJeiioIs7VWe5gcOObrux3lb66+sBqGZrRkMwPgg= github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= -github.com/ldez/tagliatelle v0.3.1/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= -github.com/leonklingele/grouper v1.1.0/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= -github.com/letsencrypt/pkcs11key/v4 v4.0.0/go.mod h1:EFUvBDay26dErnNb70Nd0/VW3tJiIbETBPTl9ATXQag= -github.com/lib/pq v0.0.0-20180327071824-d34b9ff171c2/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= @@ -1096,27 +849,17 @@ github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0U github.com/linxGnu/grocksdb v1.8.0 h1:H4L/LhP7GOMf1j17oQAElHgVlbEje2h14A8Tz9cM2BE= github.com/linxGnu/grocksdb v1.8.0/go.mod h1:09CeBborffXhXdNpEcOeZrLKEnRtrZFEpFdPNI9Zjjg= github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= -github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= -github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -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= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maratori/testpackage v1.1.0/go.mod h1:PeAhzU8qkCwdGEMTEupsHJNlQu2gZopMC6RjbhmHeDc= -github.com/matoous/godox v0.0.0-20210227103229-6504466cf951/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= -github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 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= @@ -1127,8 +870,6 @@ github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNx github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 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= @@ -1137,38 +878,22 @@ github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D 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= -github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= -github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= -github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= -github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= -github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= -github.com/miekg/pkcs11 v1.0.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= -github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= -github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= -github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= @@ -1177,124 +902,71 @@ github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0Qu github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= -github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= -github.com/moricho/tparallel v0.2.1/go.mod h1:fXEIZxG2vdfl0ZF8b42f5a78EhjjD5mX8qUplsoSU4k= -github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1/go.mod h1:FIczTrinKo8VaLxe6PWTPEXRXDIHz2QAwiaBaP5/4a8= -github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= -github.com/mroth/weightedrand v0.4.1/go.mod h1:3p2SIcC8al1YMzGhAIoXD+r9olo/g/cdJgAD905gyNE= -github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= -github.com/mwitkow/go-proto-validators v0.2.0/go.mod h1:ZfA1hW+UH/2ZHOWvQ3HnQaU0DtnpXu850MZiy+YUgcc= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= -github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q= -github.com/nats-io/jwt/v2 v2.0.3/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats-server/v2 v2.5.0/go.mod h1:Kj86UtrXAL6LwYRA6H4RqzkHhK0Vcv2ZnKD5WbQ1t3g= github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nats.go v1.12.1/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s= -github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nishanths/exhaustive v0.8.1/go.mod h1:qj+zJJUgJ76tR92+25+03oYUhzF4R7/2Wk7fGTfCHmg= -github.com/nishanths/predeclared v0.0.0-20190419143655-18a43bb90ffc/go.mod h1:62PewwiQTlm/7Rj+cxVYqZvDIUc+JjZq6GHAC1fsObQ= -github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= 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/oasisprotocol/curve25519-voi v0.0.0-20210609091139-0a56a4bca00b/go.mod h1:TLJifjWF6eotcfzDjKZsDqWJ+73Uvj/N85MvVyrvynM= 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= -github.com/oklog/ulid/v2 v2.0.2/go.mod h1:mtBL0Qe/0HAx6/a4Z30qxVIAL1eQDweXq5lxOEiwQ68= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= 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.10.3/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/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= 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.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= -github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= -github.com/opencontainers/runc v1.1.2/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= -github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= github.com/opencontainers/runc v1.1.5 h1:L44KXEpKmfWDcS02aeGm8QNTFXTo2D+8MYGDIJ/GDEs= -github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= -github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= -github.com/ory/dockertest/v3 v3.9.1/go.mod h1:42Ir9hmvaAPm0Mgibk6mBPi7SFvTXxEcnztDYOJ//uM= -github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= -github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= -github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= -github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= -github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0 h1:Yyk5ov0ZPKBXtVEeIWtc4J2XVrHuNoIK+0F2BUJgtsc= github.com/oxyno-zeta/gomock-extra-matcher v1.1.0/go.mod h1:UMGTHYEmJ1dRq8LDZ7VTAYO4nqM3GD1UGC3RJEUxEz0= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= @@ -1302,57 +974,35 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= -github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= 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.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= -github.com/pelletier/go-toml/v2 v2.0.2/go.mod h1:MovirKjgVRESsAvNZlAjtFwV867yGuwRkXbG66OzopI= 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/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= 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= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761 h1:W04oB3d0J01W5jgYRGKsV8LCM6g9EkCvPkZcmFuy0OE= github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= -github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d/go.mod h1:3OzsM7FXDQlpCiw2j81fOmAwQLnZnLGXVKUzeKQXIAw= 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/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= -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= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= -github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polyfloyd/go-errorlint v1.0.0/go.mod h1:KZy4xxPJyy88/gldCe5OdW6OQRtNO3EZE7hXzmnebgA= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_golang v1.15.1 h1:8tXpTmJbyH5lydzFPoxSIJ0J46jdh3tylbvM1xCv0LI= github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= @@ -1371,9 +1021,6 @@ github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt2 github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.30.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= @@ -1382,117 +1029,65 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pseudomuto/protoc-gen-doc v1.3.2/go.mod h1:y5+P6n3iGrbKG+9O04V5ld71in3v/bX88wUwgt+U8EA= -github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= -github.com/quasilyte/go-ruleguard v0.3.1-0.20210203134552-1b5a410e1cc8/go.mod h1:KsAh3x0e7Fkpgs+Q9pNLS5XpFSvYCEVl5gP9Pp1xp30= -github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= -github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.21/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= -github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= -github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5/go.mod h1:wSEyW6O61xRV6zb6My3HxrQ5/8ke7NE2OayqCHa3xRM= -github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= -github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/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/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= 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/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= -github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= -github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 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.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= -github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= 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.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= 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= -github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoLtnBZ7/TEhXAbg= -github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= -github.com/sagikazarmark/crypt v0.6.0/go.mod h1:U8+INwJo3nBv1m6A/8OBXAq7Jnpspk5AxSgDyEQcea8= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= -github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/securego/gosec/v2 v2.12.0/go.mod h1:iTpT+eKTw59bSgklBHlSnH5O2tNygHMDxfvMubA4i7I= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= 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/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -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= -github.com/shirou/gopsutil/v3 v3.22.6/go.mod h1:EdIubSnZhbAvBS1yJ7Xi+AShB/hxwLHOMz4MCYz7yMs= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sivchari/containedctx v1.0.2/go.mod h1:PwZOeqm4/DLoJOqMSIJs3aKqXRX4YO+uXww087KZ7Bw= -github.com/sivchari/nosnakecase v1.5.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= -github.com/sivchari/tenv v1.6.0/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= github.com/skip-mev/pob v1.0.3 h1:cipN/WUU+xfYbcfUQ4EefSvl3ItocsKgRn3tOtRF2OE= github.com/skip-mev/pob v1.0.3/go.mod h1:PMs/dqcWOQruSN6zLExU0TzlBfBmGA8iTy+FJhxn0T8= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sonatard/noctx v0.0.1/go.mod h1:9D2D/EoULe8Yy2joDHJj7bv3sZoq9AaSb8B4lqBjiZI= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sourcegraph/go-diff v0.6.1/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 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.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= 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.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= 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.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= -github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM= 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= @@ -1503,27 +1098,19 @@ 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.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= -github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= 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/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= -github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f h1:NJdZ+YJ9Vf2t286L20IjFK0SxGpobF1xIp5ZQlxWetk= github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f/go.mod h1:DJNSVK8NCYHM+aZHCFkcAqPwjzwHYAjhjSMlhAGtJ3c= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= -github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v0.0.0-20170130113145-4d4bfba8f1d1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= @@ -1532,32 +1119,17 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 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.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= -github.com/subosito/gotenv v1.4.0/go.mod h1:mZd6rFysKEcUhUHXJk0C/08wAgyDBFuwEYL7vWWGaGo= 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/sylvia7788/contextcheck v1.0.4/go.mod h1:vuPKJMQ7MQ91ZTqfdyreNKwZjyUg6KO+IebVyQDedZQ= -github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= 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/tdakkota/asciicheck v0.1.1/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= -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/tendermint v0.35.9 h1:yUEgfkcNHWSidsU8wHjRDbYPVijV4cHxCclKVITGRAQ= -github.com/tendermint/tendermint v0.35.9/go.mod h1:FYvzUDkmVv1awfFl9V85yl5NKyjxz6XLZGX132+ftAY= -github.com/tendermint/tm-db v0.6.6/go.mod h1:wP8d49A85B7/erz/r4YbKssKw6ylsO/hKtFk7E1aWZI= -github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= -github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= -github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= 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= @@ -1565,21 +1137,10 @@ github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vl github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.2.4/go.mod h1:098SZ494YoMWPmMO6ct4dcFnqxwj9r/gF0Etp19pSNM= -github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= 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/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tomarrell/wrapcheck/v2 v2.6.2/go.mod h1:ao7l5p0aOlUNJKI0qVwB4Yjlqutd0IvAB9Rdwyilxvg= -github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce/go.mod h1:o8v6yHRoik09Xen7gje4m9ERNah1d1PPsVq1VEx9vE4= -github.com/tommy-muehle/go-mnd/v2 v2.5.0/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/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= @@ -1591,72 +1152,33 @@ github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0 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.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= -github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= -github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= -github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= -github.com/vektra/mockery/v2 v2.14.0/go.mod h1:bnD1T8tExSgPD1ripLkDbr60JA9VtQeu12P3wgLZd7M= -github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= -github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= -github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= -github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= -github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= -gitlab.com/bosi/decorder v0.2.2/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -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.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c/go.mod h1:xCI7ZzBfRuGgBXyXO6yfWfDmlWd35khcWpUa4L0xI/k= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= -go.etcd.io/etcd/client/v2 v2.305.4/go.mod h1:Ud+VUwIi9/uQHOMA+4ekToJ12lTxlv0zB/+DHwTGEbU= -go.etcd.io/etcd/client/v3 v3.5.0/go.mod h1:AIKXXVX/DQXtfTEqBryiLTUXwON+GuvO6Z7lLS/oTh0= -go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= -go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403/go.mod h1:jHoPAGnDrCy6kaI2tAze5Prf0Nr0w/oNkROt2lw3n3o= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -1673,26 +1195,16 @@ go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= -go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1701,32 +1213,20 @@ golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= -golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210915214749-c084706c2272/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-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= @@ -1746,7 +1246,6 @@ golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMk golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc= golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= -golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -1773,9 +1272,6 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1799,8 +1295,6 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1829,16 +1323,9 @@ golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1846,7 +1333,6 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -1871,7 +1357,6 @@ golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= @@ -1888,7 +1373,6 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJ 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= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1896,7 +1380,6 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1919,21 +1402,15 @@ golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1943,7 +1420,6 @@ golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1961,66 +1437,47 @@ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 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-20200831180312-196b9ba8737a/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= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/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-20210906170528-6f6e22806c34/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-20210917161153-d61c044b1678/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-20211007075335-d3039528d8ac/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-20211025201205-69cdffdb9359/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-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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-20220319134239-a9b59b0215f8/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-20220405210540-1e041c57c461/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/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= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -2028,7 +1485,6 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= @@ -2041,7 +1497,6 @@ golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= -golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.9.0 h1:GRRCnKYhdQrD8kfRAdQ6Zcw1P0OcELxGLKJvtjVMZ28= golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= @@ -2062,38 +1517,26 @@ golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/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/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 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-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= -golang.org/x/tools v0.0.0-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190322203728-c1a832b0ad89/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190916130336-e45ffcd953cc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -2103,13 +1546,11 @@ golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117220505-0cba7a3a9ee9/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -2119,58 +1560,28 @@ golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapK golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200414032229-332987a829c3/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200426102838-f3a5411a4c3b/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200624225443-88f3c62a19ff/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200625211823-6506e20df31f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200626171337-aa94e735be7f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200630154851-b2d8b0336632/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200706234117-b22de6825cf7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200812195022-5ae4c3c160a0/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200831203904-5a2aa26beb65/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 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-20201002184944-ecd9fd270d5d/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-20201028025901-8cd080b735b3/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= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201230224404-63754364767c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= -golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.9-0.20211228192929-ee1ca4ffc4da/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= -golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -2185,7 +1596,6 @@ golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNq gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= -gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= @@ -2194,7 +1604,6 @@ google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEt google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.10.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= @@ -2220,9 +1629,7 @@ google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6 google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -2232,7 +1639,6 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= -google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= @@ -2249,15 +1655,12 @@ google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.2/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/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 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-20181107211654-5fc9ac540362/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -2267,7 +1670,6 @@ google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98 google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= @@ -2290,8 +1692,6 @@ google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200626011028-ee7919e894b5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200707001353-8e8330bf89df/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -2324,13 +1724,8 @@ google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -2350,7 +1745,6 @@ google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= @@ -2382,7 +1776,6 @@ google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1: google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -2392,13 +1785,11 @@ google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ij google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.0/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= @@ -2417,7 +1808,6 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= @@ -2442,7 +1832,6 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 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= @@ -2452,19 +1841,14 @@ gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLks 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= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.6/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= @@ -2480,21 +1864,16 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.6/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0/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.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= -gotest.tools/v3 v3.2.0/go.mod h1:Mcr9QNxkg0uMvy/YElmo4SpXgJKWgQvYrT7Kw5RzJ1A= gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= 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= @@ -2505,15 +1884,9 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= -honnef.co/go/tools v0.3.2/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= -mvdan.cc/gofumpt v0.3.1/go.mod h1:w3ymliuxvzVx8DAutBnVyDqYb1Niy/yCJt/lk821YCE= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= -mvdan.cc/unparam v0.0.0-20211214103731-d0ef000c54e5/go.mod h1:b8RRCBm0eeiWR8cfN88xeq2G5SG3VKGO+5UPWi5FSOY= 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.4.8/go.mod h1:Z5PbWqjvWR1I3UGjvboUuan4fe4ZYEYNLNQLExzCoUs= pgregory.net/rapid v0.6.2 h1:ErW5sL+UKtfBfUTsWHDCoeB+eZKLKMxrSd1VJY6W4bw= pgregory.net/rapid v0.6.2/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= @@ -2522,7 +1895,6 @@ rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 0461891eb..f656840a5 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -10,7 +10,7 @@ THIRD_PARTY_CONTRACTS_DIR=${THIRD_PARTY_CONTRACTS_DIR:-./contracts_thirdparty} # IMPORTANT! minimum_gas_prices should always contain at least one record, otherwise the chain will not start or halt # ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 denom is required by intgration tests (test:tokenomics) -MIN_GAS_PRICES_DEFAULT='[{"denom":"ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2","amount":"0"},{"denom":"untrn","amount":"0"}]' +MIN_GAS_PRICES_DEFAULT='[{"denom":"ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2","amount":"0"},{"denom":"untrn","amount":"0"}],' MIN_GAS_PRICES=${MIN_GAS_PRICES:-"$MIN_GAS_PRICES_DEFAULT"} From 93bd42a36cb4f83db532d24c363b88a37139dd25 Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 28 Jul 2023 17:58:09 +0400 Subject: [PATCH 007/307] feat: migrate & enable global fee to sdk47 --- app/ante_handler.go | 6 ++-- app/app.go | 10 ------ app/genesis.go | 29 ++++++++++++++--- app/proposals_allowlisting.go | 4 ++- app/upgrades/nextupgrade/upgrades.go | 24 ++++++++++++++ app/upgrades/nextupgrade/upgrades_test.go | 21 +++++++++++- network/init-neutrond.sh | 39 ++++++++++++++++------- 7 files changed, 104 insertions(+), 29 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index eefe35963..017f1d6c8 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -9,6 +9,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + globalfeeante "github.com/cosmos/gaia/v11/x/globalfee/ante" ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" @@ -77,9 +78,10 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, ante.NewValidateMemoDecorator(options.AccountKeeper), ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper), // We are providing options.GlobalFeeSubspace because we do not have staking module - // In this case you should be sure that you implemented upgrade to set default global fee param and it SHOULD contain at least one record + // In this case you should be sure that you + // implemented upgrade to set default global fee param with at least one record // otherwise you will get panic - //globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), + globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), // SetPubKeyDecorator must be called before all signature verification decorators diff --git a/app/app.go b/app/app.go index 0102f5de5..988bde751 100644 --- a/app/app.go +++ b/app/app.go @@ -6,7 +6,6 @@ import ( "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/neutron-org/neutron/docs" proposalhandler "github.com/skip-mev/pob/abci" @@ -95,7 +94,6 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v7/modules/core" ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" @@ -978,14 +976,6 @@ func New( return app } -func GetDefaultBypassFeeMessages() []string { - return []string{ - sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), - sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), - sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), - } -} - func (app *App) setupUpgradeStoreLoaders() { upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() if err != nil { diff --git a/app/genesis.go b/app/genesis.go index d23cd26be..9105628e9 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -2,8 +2,12 @@ package app import ( "encoding/json" - "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/neutron-org/neutron/app/params" ) // GenesisState is the genesis state of the blockchain represented here as a map of raw json @@ -20,11 +24,28 @@ func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState { // This ugly hack is required to alter globalfee module genesis state // because in current chain implementation staking module is absent which is required by globalfee module // and we can't use default genesis state for globalfee module. - // If we will not alter globalfee module genesis state, then we will get panic during tests run. + // If we do not alter globalfee module genesis state, then we will get panic during tests run. genesisState := ModuleBasics.DefaultGenesis(cdc) - minGasPrices := json.RawMessage(`{"params":{"minimum_gas_prices":[{"denom": "untrn", "amount": "0"}]}}`) - genesisState["globalfee"] = minGasPrices + globalFeeGenesisState := globalfeetypes.GenesisState{ + Params: globalfeetypes.Params{ + MinimumGasPrices: sdk.DecCoins{ + sdk.NewDecCoinFromDec(sdk.DefaultBondDenom, sdk.MustNewDecFromStr("0")), + sdk.NewDecCoinFromDec(params.DefaultDenom, sdk.MustNewDecFromStr("0")), + }, + BypassMinFeeMsgTypes: []string{ + sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), + sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), + sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), + }, + MaxTotalBypassMinFeeMsgGasUsage: globalfeetypes.DefaultmaxTotalBypassMinFeeMsgGasUsage, + }, + } + globalFeeGenesisStateBytes, err := json.Marshal(globalFeeGenesisState) + if err != nil { + panic("cannot marshal global fee genesis state") + } + genesisState["globalfee"] = globalFeeGenesisStateBytes return genesisState } diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 26022eac5..866910357 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -70,7 +70,9 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ //{Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, //{Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, // globalfee - {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, + {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, + {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)}: {}, + {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, // cron //{Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, //{Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 7db80ca43..80643dc25 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -3,6 +3,8 @@ package nextupgrade import ( "errors" "github.com/cosmos/cosmos-sdk/codec" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" @@ -30,6 +32,15 @@ func CreateUpgradeHandler( if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMinGasPrices) { return vm, errors.New("minimum_gas_prices param not found") } + + if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes) { + return vm, errors.New("bypass_min_fee_msg_types param not found") + } + + if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage) { + return vm, errors.New("max_total_bypass_min_fee_msg_gas_usage param not found") + } + // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin // As of June 22nd, 2023 this is // 0.9untrn,0.026ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,0.25ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349 @@ -44,6 +55,19 @@ func CreateUpgradeHandler( ctx.Logger().Info("Global fees was set successfully") + defaultBypassFeeMessages := []string{ + sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), + sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), + sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), + } + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes, &defaultBypassFeeMessages) + + ctx.Logger().Info("Bypass min fee msg types was set successfully") + + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, types.DefaultmaxTotalBypassMinFeeMsgGasUsage) + + ctx.Logger().Info("Max total bypass min fee msg gas usage set successfully") + ctx.Logger().Info("Upgrade complete") return vm, err } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 464d5293e..bd1d7237e 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,6 +1,8 @@ package nextupgrade_test import ( + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -28,6 +30,8 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { ) suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyMinGasPrices)) + suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)) + suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)) upgrade := upgradetypes.Plan{ Name: nextupgrade.UpgradeName, @@ -37,14 +41,29 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyMinGasPrices)) + suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)) + suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)) var globalMinGasPrices sdk.DecCoins globalFeeSubspace.Get(ctx, globalfeetypes.ParamStoreKeyMinGasPrices, &globalMinGasPrices) - requiredGlobalFees := sdk.DecCoins{ sdk.NewDecCoinFromDec("ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", sdk.MustNewDecFromStr("0.026")), sdk.NewDecCoinFromDec("ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", sdk.MustNewDecFromStr("0.25")), sdk.NewDecCoinFromDec("untrn", sdk.MustNewDecFromStr("0.9")), } suite.Require().Equal(requiredGlobalFees, globalMinGasPrices) + + var actualBypassFeeMessages []string + globalFeeSubspace.Get(ctx, globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes, &actualBypassFeeMessages) + requiredBypassMinFeeMsgTypes := []string{ + sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), + sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), + sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), + } + suite.Require().Equal(requiredBypassMinFeeMsgTypes, actualBypassFeeMessages) + + var actualTotalBypassMinFeeMsgGasUsage uint64 + globalFeeSubspace.Get(ctx, globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, &actualTotalBypassMinFeeMsgGasUsage) + requiredTotalBypassMinFeeMsgGasUsage := uint64(1_000_000) + suite.Require().Equal(requiredTotalBypassMinFeeMsgGasUsage, actualTotalBypassMinFeeMsgGasUsage) } diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 0461891eb..01a52154f 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -13,6 +13,14 @@ THIRD_PARTY_CONTRACTS_DIR=${THIRD_PARTY_CONTRACTS_DIR:-./contracts_thirdparty} MIN_GAS_PRICES_DEFAULT='[{"denom":"ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2","amount":"0"},{"denom":"untrn","amount":"0"}]' MIN_GAS_PRICES=${MIN_GAS_PRICES:-"$MIN_GAS_PRICES_DEFAULT"} +#BYPASS_MIN_FEE_MSG_TYPES_DEFAULT='[\"/ibc.core.channel.v1.Msg/RecvPacket\", \"/ibc.core.channel.v1.Msg/Acknowledgement\", \"/ibc.core.client.v1.Msg/UpdateClient\"]' +#BYPASS_MIN_FEE_MSG_TYPES=${BYPASS_MIN_FEE_MSG_TYPES:-"$BYPASS_MIN_FEE_MSG_TYPES_DEFAULT"} + +BYPASS_MIN_FEE_MSG_TYPES_DEFAULT='["/ibc.core.channel.v1.Msg/RecvPacket", "/ibc.core.channel.v1.Msg/Acknowledgement", "/ibc.core.client.v1.Msg/UpdateClient"]' +BYPASS_MIN_FEE_MSG_TYPES=${BYPASS_MIN_FEE_MSG_TYPES:-"$BYPASS_MIN_FEE_MSG_TYPES_DEFAULT"} + +MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE_DEFAULT=1000000 +MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE=${MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE:-"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE_DEFAULT"} CHAIN_DIR="$BASE_DIR/$CHAINID" GENESIS_PATH="$CHAIN_DIR/config/genesis.json" @@ -610,23 +618,32 @@ function set_genesis_param() { sed -i -e "s;\"$param_name\":.*;\"$param_name\": $param_value;g" "$GENESIS_PATH" } +function set_genesis_param_jq() { + param_path=$1 + param_value=$2 + cat "$GENESIS_PATH" | jq "${param_path} = ${param_value}" > tmp_genesis_file.json && mv tmp_genesis_file.json "$GENESIS_PATH" +} + function convert_bech32_base64_esc() { $BINARY keys parse $1 --output json | jq .bytes | xxd -r -p | base64 | sed -e 's/\//\\\//g' } DAO_CONTRACT_ADDRESS_B64=$(convert_bech32_base64_esc "$DAO_CONTRACT_ADDRESS") echo $DAO_CONTRACT_ADDRESS_B64 -set_genesis_param admins "[\"$DAO_CONTRACT_ADDRESS\"]" # admin module -set_genesis_param treasury_address "\"$DAO_CONTRACT_ADDRESS\"" # feeburner -set_genesis_param fee_collector_address "\"$DAO_CONTRACT_ADDRESS\"" # tokenfactory -set_genesis_param security_address "\"$SECURITY_SUBDAO_CORE_CONTRACT_ADDRESS\"," # cron -set_genesis_param limit 5 # cron -#set_genesis_param allow_messages "[\"*\"]" # interchainaccounts -set_genesis_param signed_blocks_window "\"$SLASHING_SIGNED_BLOCKS_WINDOW\"," # slashing -set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," # slashing -set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing -set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing -set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES" # globalfee +set_genesis_param admins "[\"$DAO_CONTRACT_ADDRESS\"]" # admin module +set_genesis_param treasury_address "\"$DAO_CONTRACT_ADDRESS\"" # feeburner +set_genesis_param fee_collector_address "\"$DAO_CONTRACT_ADDRESS\"" # tokenfactory +set_genesis_param security_address "\"$SECURITY_SUBDAO_CORE_CONTRACT_ADDRESS\"," # cron +set_genesis_param limit 5 # cron +#set_genesis_param allow_messages "[\"*\"]" # interchainaccounts +set_genesis_param signed_blocks_window "\"$SLASHING_SIGNED_BLOCKS_WINDOW\"," # slashing +set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," # slashing +set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing +set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing +set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES," # globalfee +set_genesis_param max_total_bypass_min_fee_msg_gas_usage "\"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE\"" # globalfee + +set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BYPASS_MIN_FEE_MSG_TYPES" # globalfee set_genesis_param proposer_fee "\"0.25\"" # builder(POB) set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) From b76140bf83012385e9db1edd073c717774be1e0c Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 28 Jul 2023 17:59:51 +0400 Subject: [PATCH 008/307] cleanup cat usage --- network/init-neutrond.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 01a52154f..b3e83e83e 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -621,7 +621,7 @@ function set_genesis_param() { function set_genesis_param_jq() { param_path=$1 param_value=$2 - cat "$GENESIS_PATH" | jq "${param_path} = ${param_value}" > tmp_genesis_file.json && mv tmp_genesis_file.json "$GENESIS_PATH" + jq "${param_path} = ${param_value}" > tmp_genesis_file.json < "$GENESIS_PATH" && mv tmp_genesis_file.json "$GENESIS_PATH" } function convert_bech32_base64_esc() { From b003f8a2c7e3c3383cc4b8e97eb73951c87c5ec8 Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 28 Jul 2023 18:22:30 +0400 Subject: [PATCH 009/307] more cleanup --- network/init-neutrond.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index b3e83e83e..e1f983fb8 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -13,9 +13,6 @@ THIRD_PARTY_CONTRACTS_DIR=${THIRD_PARTY_CONTRACTS_DIR:-./contracts_thirdparty} MIN_GAS_PRICES_DEFAULT='[{"denom":"ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2","amount":"0"},{"denom":"untrn","amount":"0"}]' MIN_GAS_PRICES=${MIN_GAS_PRICES:-"$MIN_GAS_PRICES_DEFAULT"} -#BYPASS_MIN_FEE_MSG_TYPES_DEFAULT='[\"/ibc.core.channel.v1.Msg/RecvPacket\", \"/ibc.core.channel.v1.Msg/Acknowledgement\", \"/ibc.core.client.v1.Msg/UpdateClient\"]' -#BYPASS_MIN_FEE_MSG_TYPES=${BYPASS_MIN_FEE_MSG_TYPES:-"$BYPASS_MIN_FEE_MSG_TYPES_DEFAULT"} - BYPASS_MIN_FEE_MSG_TYPES_DEFAULT='["/ibc.core.channel.v1.Msg/RecvPacket", "/ibc.core.channel.v1.Msg/Acknowledgement", "/ibc.core.client.v1.Msg/UpdateClient"]' BYPASS_MIN_FEE_MSG_TYPES=${BYPASS_MIN_FEE_MSG_TYPES:-"$BYPASS_MIN_FEE_MSG_TYPES_DEFAULT"} From 0ea4fc383f470e941e42d67687d360f9aa1a5c95 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 28 Jul 2023 18:08:10 +0300 Subject: [PATCH 010/307] error processing fot SetParams --- app/upgrades/v0.4.4/upgrades.go | 16 ++++++++++++---- app/upgrades/v3/upgrades.go | 19 +++++++++++++++---- .../contractmanager/keeper/contractmanager.go | 3 ++- testutil/cron/keeper/cron.go | 3 ++- testutil/feeburner/keeper/feeburner.go | 3 ++- testutil/feerefunder/keeper/fee.go | 5 +++-- .../keeper/interchainqeries.go | 3 ++- .../interchaintxs/keeper/interchaintxs.go | 3 ++- wasmbinding/test/custom_message_test.go | 3 ++- wasmbinding/test/custom_query_test.go | 5 +++-- x/contractmanager/genesis.go | 5 ++++- .../keeper/grpc_query_params_test.go | 5 +++-- x/contractmanager/keeper/params_test.go | 3 ++- x/cron/genesis.go | 5 ++++- x/cron/keeper/grpc_query_params_test.go | 5 +++-- x/cron/keeper/keeper_test.go | 12 ++++++++---- x/cron/keeper/params_test.go | 3 ++- x/feeburner/genesis.go | 5 ++++- x/feeburner/keeper/grpc_query_params_test.go | 3 ++- x/feeburner/keeper/params_test.go | 3 ++- x/feerefunder/genesis.go | 5 ++++- .../keeper/grpc_query_params_test.go | 3 ++- x/feerefunder/keeper/keeper_test.go | 8 +++++--- x/feerefunder/keeper/params_test.go | 5 ++++- x/interchainqueries/genesis.go | 5 ++++- .../keeper/grpc_query_params_test.go | 3 ++- x/interchainqueries/keeper/keeper_test.go | 18 +++++++++++------- x/interchainqueries/keeper/params_test.go | 3 ++- x/interchaintxs/genesis.go | 5 ++++- .../keeper/grpc_query_params_test.go | 3 ++- x/interchaintxs/keeper/params_test.go | 3 ++- x/tokenfactory/keeper/genesis.go | 5 ++++- x/tokenfactory/keeper/genesis_test.go | 3 ++- x/tokenfactory/keeper/keeper_test.go | 3 ++- 34 files changed, 129 insertions(+), 55 deletions(-) diff --git a/app/upgrades/v0.4.4/upgrades.go b/app/upgrades/v0.4.4/upgrades.go index 79f28f4ab..82b1ca804 100644 --- a/app/upgrades/v0.4.4/upgrades.go +++ b/app/upgrades/v0.4.4/upgrades.go @@ -31,8 +31,10 @@ func CreateUpgradeHandler( oldSlashingParams := keepers.SlashingKeeper.GetParams(ctx) oldSlashingParams.SignedBlocksWindow = int64(36000) - keepers.SlashingKeeper.SetParams(ctx, oldSlashingParams) - + err = keepers.SlashingKeeper.SetParams(ctx, oldSlashingParams) + if err != nil { + return vm, err + } ctx.Logger().Info("Migrating FeeBurner Params...") s, ok := keepers.ParamsKeeper.GetSubspace(feeburnertypes.ModuleName) if !ok { @@ -47,12 +49,18 @@ func CreateUpgradeHandler( feeburnerDefaultParams := feeburnertypes.DefaultParams() feeburnerDefaultParams.TreasuryAddress = reserveAddress feeburnerDefaultParams.NeutronDenom = neutronDenom - keepers.FeeBurnerKeeper.SetParams(ctx, feeburnerDefaultParams) + err = keepers.FeeBurnerKeeper.SetParams(ctx, feeburnerDefaultParams) + if err != nil { + return vm, err + } ctx.Logger().Info("Migrating TokenFactory Params...") tokenfactoryDefaultParams := tokenfactorytypes.DefaultParams() tokenfactoryDefaultParams.FeeCollectorAddress = reserveAddress - keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactoryDefaultParams) + err = keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactoryDefaultParams) + if err != nil { + return vm, err + } ctx.Logger().Info("Upgrade complete") return vm, err diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index 384b5685e..beabd198e 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -23,11 +23,22 @@ func CreateUpgradeHandler( ctx.Logger().Info("Starting module migrations...") // todo: FIXME - keepers.IcqKeeper.SetParams(ctx, icqtypes.DefaultParams()) - keepers.CronKeeper.SetParams(ctx, crontypes.DefaultParams()) - keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.DefaultParams()) + err := keepers.IcqKeeper.SetParams(ctx, icqtypes.DefaultParams()) + if err != nil { + return vm, err + } + + err = keepers.CronKeeper.SetParams(ctx, crontypes.DefaultParams()) + if err != nil { + return vm, err + } + + err = keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.DefaultParams()) + if err != nil { + return vm, err + } - vm, err := mm.RunMigrations(ctx, configurator, vm) + vm, err = mm.RunMigrations(ctx, configurator, vm) if err != nil { return vm, err } diff --git a/testutil/contractmanager/keeper/contractmanager.go b/testutil/contractmanager/keeper/contractmanager.go index ad84a455e..cfeeff451 100644 --- a/testutil/contractmanager/keeper/contractmanager.go +++ b/testutil/contractmanager/keeper/contractmanager.go @@ -40,7 +40,8 @@ func ContractManagerKeeper(t testing.TB, wasmKeeper types.WasmKeeper) (*keeper.K ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.DefaultParams()) + err := k.SetParams(ctx, types.DefaultParams()) + require.NoError(t, err) return k, ctx } diff --git a/testutil/cron/keeper/cron.go b/testutil/cron/keeper/cron.go index afa4cad93..e2fff48dc 100644 --- a/testutil/cron/keeper/cron.go +++ b/testutil/cron/keeper/cron.go @@ -40,7 +40,8 @@ func CronKeeper(t testing.TB, wasmMsgServer types.WasmMsgServer, accountKeeper t ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.DefaultParams()) + err := k.SetParams(ctx, types.DefaultParams()) + require.NoError(t, err) return k, ctx } diff --git a/testutil/feeburner/keeper/feeburner.go b/testutil/feeburner/keeper/feeburner.go index dbf9daab6..bea9b73a1 100644 --- a/testutil/feeburner/keeper/feeburner.go +++ b/testutil/feeburner/keeper/feeburner.go @@ -44,7 +44,8 @@ func FeeburnerKeeperWithDeps(t testing.TB, accountKeeper types.AccountKeeper, ba ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.NewParams(types.DefaultNeutronDenom, "neutron1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfsd2rhm7")) + err := k.SetParams(ctx, types.NewParams(types.DefaultNeutronDenom, "neutron1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfsd2rhm7")) + require.NoError(t, err) return k, ctx } diff --git a/testutil/feerefunder/keeper/fee.go b/testutil/feerefunder/keeper/fee.go index 9af103f50..940732526 100644 --- a/testutil/feerefunder/keeper/fee.go +++ b/testutil/feerefunder/keeper/fee.go @@ -29,7 +29,7 @@ func FeeKeeper(t testing.TB, channelKeeper types.ChannelKeeper, bankKeeper types registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - + k := keeper.NewKeeper( cdc, storeKey, @@ -41,7 +41,8 @@ func FeeKeeper(t testing.TB, channelKeeper types.ChannelKeeper, bankKeeper types ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.DefaultParams()) + err := k.SetParams(ctx, types.DefaultParams()) + require.NoError(t, err) return k, ctx } diff --git a/testutil/interchainqueries/keeper/interchainqeries.go b/testutil/interchainqueries/keeper/interchainqeries.go index afec6b78d..1eeddd187 100644 --- a/testutil/interchainqueries/keeper/interchainqeries.go +++ b/testutil/interchainqueries/keeper/interchainqeries.go @@ -52,7 +52,8 @@ func InterchainQueriesKeeper( ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.DefaultParams()) + err := k.SetParams(ctx, types.DefaultParams()) + require.NoError(t, err) return k, ctx } diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 2aedcc8c5..0df55e792 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -43,7 +43,8 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.DefaultParams()) + err := k.SetParams(ctx, types.DefaultParams()) + require.NoError(t,err) return k, ctx } diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index c714b7508..ada721a6a 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -59,10 +59,11 @@ func (suite *CustomMessengerTestSuite) SetupTest() { suite.messenger.AdminKeeper = &suite.neutron.AdminmoduleKeeper suite.contractOwner = keeper.RandomAccountAddress(suite.T()) - suite.messenger.TokenFactory.SetParams(suite.ctx, tokenfactorytypes.NewParams( + err := suite.messenger.TokenFactory.SetParams(suite.ctx, tokenfactorytypes.NewParams( sdk.NewCoins(sdk.NewInt64Coin(tokenfactorytypes.DefaultNeutronDenom, 10_000_000)), FeeCollectorAddress, )) + suite.Require().NoError(err) } func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccount() { diff --git a/wasmbinding/test/custom_query_test.go b/wasmbinding/test/custom_query_test.go index 5c25598bc..c4b524486 100644 --- a/wasmbinding/test/custom_query_test.go +++ b/wasmbinding/test/custom_query_test.go @@ -249,10 +249,11 @@ func (suite *CustomQuerierTestSuite) TestDenomAdmin() { owner = keeper.RandomAccountAddress(suite.T()) // We don't care what this address is ) - neutron.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.NewParams( + err := neutron.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.NewParams( sdk.NewCoins(sdk.NewInt64Coin(tokenfactorytypes.DefaultNeutronDenom, 10_000_000)), FeeCollectorAddress, )) + suite.Require().NoError(err) // Store code and instantiate reflect contract codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") @@ -262,7 +263,7 @@ func (suite *CustomQuerierTestSuite) TestDenomAdmin() { senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() coinsAmnt := sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(int64(10_000_000)))) bankKeeper := neutron.BankKeeper - err := bankKeeper.SendCoins(ctx, senderAddress, contractAddress, coinsAmnt) + err = bankKeeper.SendCoins(ctx, senderAddress, contractAddress, coinsAmnt) suite.NoError(err) denom, _ := neutron.TokenFactoryKeeper.CreateDenom(ctx, contractAddress.String(), "test") diff --git a/x/contractmanager/genesis.go b/x/contractmanager/genesis.go index 5475be6cd..9786d40d9 100644 --- a/x/contractmanager/genesis.go +++ b/x/contractmanager/genesis.go @@ -14,7 +14,10 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.AddContractFailure(ctx, elem.ChannelId, elem.Address, elem.AckId, elem.AckType) } // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } } // ExportGenesis returns the module's exported genesis diff --git a/x/contractmanager/keeper/grpc_query_params_test.go b/x/contractmanager/keeper/grpc_query_params_test.go index 3abb1b19d..8bc65b586 100644 --- a/x/contractmanager/keeper/grpc_query_params_test.go +++ b/x/contractmanager/keeper/grpc_query_params_test.go @@ -14,8 +14,9 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.ContractManagerKeeper(t, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) - + err := keeper.SetParams(ctx, params) + require.NoError(t, err) + response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) require.Equal(t, &types.QueryParamsResponse{Params: params}, response) diff --git a/x/contractmanager/keeper/params_test.go b/x/contractmanager/keeper/params_test.go index 4d9671e00..4b23f1830 100644 --- a/x/contractmanager/keeper/params_test.go +++ b/x/contractmanager/keeper/params_test.go @@ -13,7 +13,8 @@ func TestGetParams(t *testing.T) { k, ctx := testkeeper.ContractManagerKeeper(t, nil) params := types.DefaultParams() - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + require.NoError(t, err) require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/cron/genesis.go b/x/cron/genesis.go index 5b45b1ecf..84a23b215 100644 --- a/x/cron/genesis.go +++ b/x/cron/genesis.go @@ -16,7 +16,10 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) } } // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } } // ExportGenesis returns the module's exported genesis diff --git a/x/cron/keeper/grpc_query_params_test.go b/x/cron/keeper/grpc_query_params_test.go index a2db2836a..154826fb9 100644 --- a/x/cron/keeper/grpc_query_params_test.go +++ b/x/cron/keeper/grpc_query_params_test.go @@ -14,8 +14,9 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.CronKeeper(t, nil, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) - + err := keeper.SetParams(ctx, params) + require.NoError(t, err) + response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) require.Equal(t, &types.QueryParamsResponse{Params: params}, response) diff --git a/x/cron/keeper/keeper_test.go b/x/cron/keeper/keeper_test.go index 74f900985..6fe16a741 100644 --- a/x/cron/keeper/keeper_test.go +++ b/x/cron/keeper/keeper_test.go @@ -34,10 +34,11 @@ func TestKeeperExecuteReadySchedules(t *testing.T) { k, ctx := testutil_keeper.CronKeeper(t, wasmMsgServer, accountKeeper) ctx = ctx.WithBlockHeight(0) - k.SetParams(ctx, types.Params{ + err = k.SetParams(ctx, types.Params{ SecurityAddress: testutil.TestOwnerAddress, Limit: 2, }) + require.NoError(t, err) schedules := []types.Schedule{ { @@ -169,13 +170,14 @@ func TestAddSchedule(t *testing.T) { k, ctx := testutil_keeper.CronKeeper(t, wasmMsgServer, accountKeeper) ctx = ctx.WithBlockHeight(0) - k.SetParams(ctx, types.Params{ + err := k.SetParams(ctx, types.Params{ SecurityAddress: testutil.TestOwnerAddress, Limit: 2, }) + require.NoError(t, err) // normal add schedule - err := k.AddSchedule(ctx, "a", 7, []types.MsgExecuteContract{ + err = k.AddSchedule(ctx, "a", 7, []types.MsgExecuteContract{ { Contract: "c", Msg: "m", @@ -207,10 +209,12 @@ func TestAddSchedule(t *testing.T) { func TestGetAllSchedules(t *testing.T) { k, ctx := testutil_keeper.CronKeeper(t, nil, nil) - k.SetParams(ctx, types.Params{ + err := k.SetParams(ctx, types.Params{ SecurityAddress: testutil.TestOwnerAddress, Limit: 2, }) + require.NoError(t, err) + expectedSchedules := make([]types.Schedule, 0, 3) for i := range []int{1, 2, 3} { s := types.Schedule{ diff --git a/x/cron/keeper/params_test.go b/x/cron/keeper/params_test.go index 5b1ce5a15..1f5e02c90 100644 --- a/x/cron/keeper/params_test.go +++ b/x/cron/keeper/params_test.go @@ -22,7 +22,8 @@ func TestGetParams(t *testing.T) { Limit: 5, } - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + require.NoError(t, err) require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/feeburner/genesis.go b/x/feeburner/genesis.go index 20662d5a8..3af23ed5d 100644 --- a/x/feeburner/genesis.go +++ b/x/feeburner/genesis.go @@ -9,7 +9,10 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } } // ExportGenesis returns the module's exported genesis diff --git a/x/feeburner/keeper/grpc_query_params_test.go b/x/feeburner/keeper/grpc_query_params_test.go index 5f80b3171..5e519fdba 100644 --- a/x/feeburner/keeper/grpc_query_params_test.go +++ b/x/feeburner/keeper/grpc_query_params_test.go @@ -18,7 +18,8 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.FeeburnerKeeper(t) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) + err := keeper.SetParams(ctx, params) + require.NoError(t, err) response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) diff --git a/x/feeburner/keeper/params_test.go b/x/feeburner/keeper/params_test.go index c3c07465d..e48cb6b1d 100644 --- a/x/feeburner/keeper/params_test.go +++ b/x/feeburner/keeper/params_test.go @@ -17,7 +17,8 @@ func TestGetParams(t *testing.T) { k, ctx := testkeeper.FeeburnerKeeper(t) params := types.DefaultParams() - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + require.NoError(t, err) require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/feerefunder/genesis.go b/x/feerefunder/genesis.go index da7c9af5f..ab40d2deb 100644 --- a/x/feerefunder/genesis.go +++ b/x/feerefunder/genesis.go @@ -10,7 +10,10 @@ import ( // InitGenesis initializes the module's state from a provided genesis state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } for _, info := range genState.FeeInfos { k.StoreFeeInfo(ctx, info) diff --git a/x/feerefunder/keeper/grpc_query_params_test.go b/x/feerefunder/keeper/grpc_query_params_test.go index a4527a0c3..4f185f9ea 100644 --- a/x/feerefunder/keeper/grpc_query_params_test.go +++ b/x/feerefunder/keeper/grpc_query_params_test.go @@ -15,7 +15,8 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.FeeKeeper(t, nil, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) + err := keeper.SetParams(ctx, params) + require.NoError(t, err) response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) diff --git a/x/feerefunder/keeper/keeper_test.go b/x/feerefunder/keeper/keeper_test.go index c7db58d39..512acc7f6 100644 --- a/x/feerefunder/keeper/keeper_test.go +++ b/x/feerefunder/keeper/keeper_test.go @@ -30,13 +30,14 @@ const ( func TestKeeperCheckFees(t *testing.T) { k, ctx := testutil_keeper.FeeKeeper(t, nil, nil) - k.SetParams(ctx, types.Params{ + err := k.SetParams(ctx, types.Params{ MinFee: types.Fee{ RecvFee: nil, AckFee: sdk.NewCoins(sdk.NewCoin("denom1", sdk.NewInt(100)), sdk.NewCoin("denom2", sdk.NewInt(100))), TimeoutFee: sdk.NewCoins(sdk.NewCoin("denom1", sdk.NewInt(100)), sdk.NewCoin("denom2", sdk.NewInt(100))), }, }) + require.NoError(t, err) for _, tc := range []struct { desc string @@ -138,13 +139,14 @@ func TestKeeperLockFees(t *testing.T) { payer := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) - k.SetParams(ctx, types.Params{ + err := k.SetParams(ctx, types.Params{ MinFee: types.Fee{ RecvFee: nil, AckFee: sdk.NewCoins(sdk.NewCoin("denom1", sdk.NewInt(100)), sdk.NewCoin("denom2", sdk.NewInt(100))), TimeoutFee: sdk.NewCoins(sdk.NewCoin("denom1", sdk.NewInt(100)), sdk.NewCoin("denom2", sdk.NewInt(100))), }, }) + require.NoError(t, err) packet := types.PacketID{ ChannelId: "channel-0", @@ -153,7 +155,7 @@ func TestKeeperLockFees(t *testing.T) { } channelKeeper.EXPECT().GetChannel(ctx, packet.PortId, packet.ChannelId).Return(channeltypes.Channel{}, false) - err := k.LockFees(ctx, payer, packet, types.Fee{}) + err = k.LockFees(ctx, payer, packet, types.Fee{}) require.True(t, channeltypes.ErrChannelNotFound.Is(err)) channelKeeper.EXPECT().GetChannel(ctx, packet.PortId, packet.ChannelId).Return(channeltypes.Channel{}, true) diff --git a/x/feerefunder/keeper/params_test.go b/x/feerefunder/keeper/params_test.go index 890d21cb8..357e75a86 100644 --- a/x/feerefunder/keeper/params_test.go +++ b/x/feerefunder/keeper/params_test.go @@ -14,7 +14,10 @@ func TestGetParams(t *testing.T) { k, ctx := testkeeper.FeeKeeper(t, nil, nil) params := types.DefaultParams() - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + if err != nil { + panic(err) + } require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/interchainqueries/genesis.go b/x/interchainqueries/genesis.go index 83f0a6cff..9a89d22c5 100644 --- a/x/interchainqueries/genesis.go +++ b/x/interchainqueries/genesis.go @@ -25,7 +25,10 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) } - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } } // ExportGenesis returns the capability module's exported genesis. diff --git a/x/interchainqueries/keeper/grpc_query_params_test.go b/x/interchainqueries/keeper/grpc_query_params_test.go index 14d651c2f..c111568c8 100644 --- a/x/interchainqueries/keeper/grpc_query_params_test.go +++ b/x/interchainqueries/keeper/grpc_query_params_test.go @@ -14,7 +14,8 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.InterchainQueriesKeeper(t, nil, nil, nil, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) + err := keeper.SetParams(ctx, params) + require.NoError(t, err) response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) diff --git a/x/interchainqueries/keeper/keeper_test.go b/x/interchainqueries/keeper/keeper_test.go index 832f122af..e4f23a4e3 100644 --- a/x/interchainqueries/keeper/keeper_test.go +++ b/x/interchainqueries/keeper/keeper_test.go @@ -1539,12 +1539,13 @@ func (suite *KeeperTestSuite) TestTxQueriesCleanup() { limit := 50 params := iqkeeper.GetParams(ctx) params.TxQueryRemovalLimit = uint64(limit) - iqkeeper.SetParams(ctx, params) + err := iqkeeper.SetParams(ctx, params) + suite.Require().NoError(err) // create a query and add results for it var queryID uint64 = 1 query := iqtypes.RegisteredQuery{Id: queryID, QueryType: string(iqtypes.InterchainQueryTypeTX)} - err := iqkeeper.SaveQuery(ctx, &query) + err = iqkeeper.SaveQuery(ctx, &query) suite.Require().NoError(err) _, err = iqkeeper.GetQueryByID(ctx, queryID) suite.Require().NoError(err) @@ -1586,7 +1587,8 @@ func (suite *KeeperTestSuite) TestTxQueriesCleanup() { limit := 50 params := iqkeeper.GetParams(ctx) params.TxQueryRemovalLimit = uint64(limit) - iqkeeper.SetParams(ctx, params) + err := iqkeeper.SetParams(ctx, params) + suite.Require().NoError(err) limitOverflow := 10 txHashes := suite.buildTxHashes(limit + limitOverflow) @@ -1595,7 +1597,7 @@ func (suite *KeeperTestSuite) TestTxQueriesCleanup() { // create a query and add results for it var queryID1 uint64 = 1 query1 := iqtypes.RegisteredQuery{Id: queryID1, QueryType: string(iqtypes.InterchainQueryTypeTX)} - err := iqkeeper.SaveQuery(ctx, &query1) + err = iqkeeper.SaveQuery(ctx, &query1) suite.Require().NoError(err) _, err = iqkeeper.GetQueryByID(ctx, queryID1) suite.Require().NoError(err) @@ -1648,13 +1650,14 @@ func (suite *KeeperTestSuite) TestTxQueriesCleanup() { // set TxQueryRemovalLimit to a low value params := iqkeeper.GetParams(ctx) params.TxQueryRemovalLimit = 0 - iqkeeper.SetParams(ctx, params) + err := iqkeeper.SetParams(ctx, params) + suite.Require().NoError(err) suite.Require().Equal(uint64(0), iqkeeper.GetParams(ctx).TxQueryRemovalLimit) // create a query and add results for it var queryID uint64 = 1 query := iqtypes.RegisteredQuery{Id: queryID, QueryType: string(iqtypes.InterchainQueryTypeTX)} - err := iqkeeper.SaveQuery(ctx, &query) + err = iqkeeper.SaveQuery(ctx, &query) suite.Require().NoError(err) _, err = iqkeeper.GetQueryByID(ctx, queryID) suite.Require().NoError(err) @@ -1698,7 +1701,8 @@ func (suite *KeeperTestSuite) TestRemoveFreshlyCreatedICQ() { iqkeeper := suite.GetNeutronZoneApp(suite.ChainA).InterchainQueriesKeeper params := iqkeeper.GetParams(ctx) params.QuerySubmitTimeout = 5 - iqkeeper.SetParams(ctx, params) + err := iqkeeper.SetParams(ctx, params) + suite.Require().NoError(err) msgSrv := keeper.NewMsgServerImpl(iqkeeper) resRegister, err := msgSrv.RegisterInterchainQuery(sdk.WrapSDKContext(ctx), &iqtypes.MsgRegisterInterchainQuery{ diff --git a/x/interchainqueries/keeper/params_test.go b/x/interchainqueries/keeper/params_test.go index 0e20f971f..1b9f0af99 100644 --- a/x/interchainqueries/keeper/params_test.go +++ b/x/interchainqueries/keeper/params_test.go @@ -13,7 +13,8 @@ func TestGetParams(t *testing.T) { k, ctx := testkeeper.InterchainQueriesKeeper(t, nil, nil, nil, nil) params := types.DefaultParams() - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + require.NoError(t, err) require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/interchaintxs/genesis.go b/x/interchaintxs/genesis.go index 85201575b..6fb8a4a1c 100644 --- a/x/interchaintxs/genesis.go +++ b/x/interchaintxs/genesis.go @@ -10,7 +10,10 @@ import ( // InitGenesis initializes the capability module's state from a provided genesis // state. func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } } // ExportGenesis returns the capability module's exported genesis. diff --git a/x/interchaintxs/keeper/grpc_query_params_test.go b/x/interchaintxs/keeper/grpc_query_params_test.go index e69f18e15..f10b653cd 100644 --- a/x/interchaintxs/keeper/grpc_query_params_test.go +++ b/x/interchaintxs/keeper/grpc_query_params_test.go @@ -14,7 +14,8 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) + err := keeper.SetParams(ctx, params) + require.NoError(t, err) response, err := keeper.Params(wctx, nil) require.Error(t, err) diff --git a/x/interchaintxs/keeper/params_test.go b/x/interchaintxs/keeper/params_test.go index 672a637b4..02b110989 100644 --- a/x/interchaintxs/keeper/params_test.go +++ b/x/interchaintxs/keeper/params_test.go @@ -13,7 +13,8 @@ func TestGetParams(t *testing.T) { k, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil) params := types.DefaultParams() - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + require.NoError(t, err) require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/tokenfactory/keeper/genesis.go b/x/tokenfactory/keeper/genesis.go index 3c311eedb..b3c950351 100644 --- a/x/tokenfactory/keeper/genesis.go +++ b/x/tokenfactory/keeper/genesis.go @@ -11,7 +11,10 @@ import ( func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { k.CreateModuleAccount(ctx) - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } for _, genDenom := range genState.GetFactoryDenoms() { creator, _, err := types.DeconstructDenom(genDenom.GetDenom()) diff --git a/x/tokenfactory/keeper/genesis_test.go b/x/tokenfactory/keeper/genesis_test.go index 707214167..67a38e6f7 100644 --- a/x/tokenfactory/keeper/genesis_test.go +++ b/x/tokenfactory/keeper/genesis_test.go @@ -40,7 +40,8 @@ func (suite *KeeperTestSuite) TestGenesis() { } } - app.TokenFactoryKeeper.SetParams(context, types.Params{}) + err := app.TokenFactoryKeeper.SetParams(context, types.Params{}) + suite.Require().NoError(err) app.TokenFactoryKeeper.InitGenesis(context, genesisState) exportedGenesis := app.TokenFactoryKeeper.ExportGenesis(context) suite.Require().NotNil(exportedGenesis) diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index 116fa9fd0..4b7ef8397 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -50,10 +50,11 @@ func (suite *KeeperTestSuite) Setup() { suite.queryClient = types.NewQueryClient(suite.QueryHelper) tokeFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper - tokeFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( + err := tokeFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( sdktypes.NewCoins(sdktypes.NewInt64Coin(types.DefaultNeutronDenom, TopUpCoinsAmount)), FeeCollectorAddress, )) + suite.Require().NoError(err) suite.msgServer = keeper.NewMsgServerImpl(*tokeFactoryKeeper) } From 2973f3614fe9d03ed6ffe4f91b4a167cc56d00fa Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 28 Jul 2023 19:20:21 +0400 Subject: [PATCH 011/307] more cleanup --- app/genesis.go | 2 +- ...posals_allowlist_test.go => proposals_allowlisting_test.go} | 0 app/upgrades/types.go | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) rename app/{proposals_allowlist_test.go => proposals_allowlisting_test.go} (100%) diff --git a/app/genesis.go b/app/genesis.go index 9105628e9..41d5e2ab6 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -43,7 +43,7 @@ func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState { } globalFeeGenesisStateBytes, err := json.Marshal(globalFeeGenesisState) if err != nil { - panic("cannot marshal global fee genesis state") + panic("cannot marshal globalfee genesis state for tests") } genesisState["globalfee"] = globalFeeGenesisStateBytes diff --git a/app/proposals_allowlist_test.go b/app/proposals_allowlisting_test.go similarity index 100% rename from app/proposals_allowlist_test.go rename to app/proposals_allowlisting_test.go diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 373c62838..91fe12f10 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -3,7 +3,6 @@ package upgrades import ( "github.com/cosmos/cosmos-sdk/codec" store "github.com/cosmos/cosmos-sdk/store/types" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" @@ -48,5 +47,5 @@ type UpgradeKeepers struct { } type StoreKeys interface { - GetKey(string) *storetypes.KVStoreKey + GetKey(string) *store.KVStoreKey } From 6678a44f904c58bef39f80e7719d8904b3e42aa8 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 26 Jul 2023 15:56:01 +0400 Subject: [PATCH 012/307] set default commit timeout to 1 second --- cmd/neutrond/root.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 401939e8b..bd3199d12 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -37,6 +37,7 @@ import ( "io" "os" "path/filepath" + "time" tmcfg "github.com/cometbft/cometbft/config" "github.com/neutron-org/neutron/app" @@ -86,7 +87,14 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { } customTemplate, customNeutronConfig := initAppConfig() - return server.InterceptConfigsPreRunHandler(cmd, customTemplate, customNeutronConfig, tmcfg.DefaultConfig()) + err = server.InterceptConfigsPreRunHandler(cmd, customTemplate, customNeutronConfig, tmcfg.DefaultConfig()) + if err != nil { + return err + } + + setTimeoutCommit(cmd) + + return nil }, } @@ -95,6 +103,15 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { return rootCmd, encodingConfig } +// setTimeoutCommit sets default `Consensus.TimeoutCommit` to 1 second, if it was set to cosmos sdk default of 5 seconds +func setTimeoutCommit(cmd *cobra.Command) { + serverCtxPtr := server.GetServerContextFromCmd(cmd) + + if serverCtxPtr.Config.Consensus.TimeoutCommit == 5*time.Second { + serverCtxPtr.Config.Consensus.TimeoutCommit = 1 * time.Second + } +} + func initAppConfig() (string, interface{}) { srvCfg := serverconfig.DefaultConfig() From d02aa9d772b4333917c694ca812172a8ad98ba39 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 1 Aug 2023 02:27:15 +0300 Subject: [PATCH 013/307] linter --- app/ante_handler.go | 17 +- app/app.go | 13 +- app/export.go | 2 +- app/proposals_allowlisting.go | 26 +-- app/simulation_test.go | 2 +- app/upgrades/nextupgrade/upgrades.go | 1 + app/upgrades/types.go | 3 +- app/upgrades/v0.4.4/upgrades.go | 1 + cmd/neutrond/consumer.go | 9 +- cmd/neutrond/root.go | 8 +- go.sum | 2 + testutil/consumer/test_helpers.go | 17 +- testutil/contractmanager/network/network.go | 3 +- testutil/cron/network/network.go | 5 +- testutil/interchainqueries/network/network.go | 5 +- .../interchaintxs/keeper/interchaintxs.go | 2 +- testutil/interchaintxs/network/network.go | 5 +- wasmbinding/bindings/msg.go | 12 +- wasmbinding/custom_querier.go | 38 ++-- wasmbinding/message_plugin.go | 114 ++++++------ wasmbinding/queries.go | 6 +- .../keeper/grpc_query_params_test.go | 2 +- x/contractmanager/keeper/keeper.go | 1 - x/contractmanager/module.go | 3 +- x/contractmanager/types/errors.go | 4 +- x/cron/keeper/grpc_query_params_test.go | 2 +- x/cron/keeper/keeper.go | 3 +- x/cron/keeper/keeper_test.go | 2 +- x/cron/module.go | 3 +- x/cron/types/errors.go | 4 +- x/feeburner/keeper/keeper.go | 10 +- x/feeburner/module.go | 3 +- x/feeburner/types/errors.go | 4 +- x/feeburner/types/keys.go | 4 +- x/feerefunder/keeper/grpc_query.go | 4 +- x/feerefunder/keeper/keeper.go | 36 ++-- x/feerefunder/keeper/keeper_test.go | 15 +- x/feerefunder/module.go | 3 +- x/feerefunder/types/codec.go | 3 +- x/feerefunder/types/fee.go | 8 +- x/feerefunder/types/genesis.go | 5 +- x/feerefunder/types/tx.pb.go | 162 +++++++++--------- x/ibc-hooks/ibc_middleware_test.go | 6 +- x/ibc-hooks/ibc_module.go | 2 +- x/ibc-hooks/ics4_middleware.go | 6 +- x/ibc-hooks/sdkmodule.go | 4 +- x/ibc-hooks/types/errors.go | 16 +- x/interchainqueries/handler.go | 4 +- x/interchainqueries/keeper/grpc_query.go | 13 +- x/interchainqueries/keeper/keeper.go | 31 ++-- x/interchainqueries/keeper/keeper_test.go | 3 +- x/interchainqueries/keeper/msg_server.go | 63 +++---- .../keeper/process_block_results.go | 51 +++--- .../keeper/process_block_results_test.go | 2 - x/interchainqueries/module.go | 3 +- x/interchainqueries/types/errors.go | 46 ++--- x/interchainqueries/types/genesis.go | 12 +- .../types/message_remove_interchain_query.go | 8 +- x/interchainqueries/types/registered_query.go | 4 +- x/interchainqueries/types/tx.go | 52 +++--- x/interchainqueries/types/verify.go | 2 +- x/interchaintxs/handler.go | 4 +- .../keeper/grpc_query_interchainaccount.go | 10 +- x/interchaintxs/keeper/ibc_handlers.go | 12 +- x/interchaintxs/keeper/msg_server.go | 30 ++-- x/interchaintxs/keeper/msg_server_test.go | 16 +- x/interchaintxs/module.go | 3 +- x/interchaintxs/types/errors.go | 22 +-- x/interchaintxs/types/keys.go | 4 +- x/interchaintxs/types/tx.go | 8 +- x/interchaintxs/types/types.go | 9 +- x/tokenfactory/keeper/createdenom.go | 19 +- x/tokenfactory/keeper/keeper.go | 9 +- x/tokenfactory/keeper/keeper_test.go | 4 +- x/tokenfactory/module.go | 3 +- x/tokenfactory/types/denoms.go | 9 +- x/tokenfactory/types/errors.go | 24 +-- x/tokenfactory/types/genesis.go | 6 +- x/tokenfactory/types/msgs.go | 25 +-- x/transfer/ibc_handlers.go | 12 +- x/transfer/keeper/keeper.go | 8 +- x/transfer/module.go | 11 +- x/transfer/types/tx.go | 1 + 83 files changed, 607 insertions(+), 542 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index eefe35963..9f9e55bcb 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -1,14 +1,15 @@ package app import ( + "cosmossdk.io/errors" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cometbft/cometbft/libs/log" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + gaiaerrors "github.com/cosmos/gaia/v11/types/errors" ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" @@ -43,22 +44,22 @@ type HandlerOptions struct { func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, error) { if options.AccountKeeper == nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "account keeper is required for AnteHandler") + return nil, errors.Wrap(gaiaerrors.ErrLogic, "account keeper is required for AnteHandler") } if options.BankKeeper == nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler") + return nil, errors.Wrap(gaiaerrors.ErrLogic, "bank keeper is required for AnteHandler") } if options.SignModeHandler == nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder") + return nil, errors.Wrap(gaiaerrors.ErrLogic, "sign mode handler is required for ante builder") } if options.WasmConfig == nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "wasm config is required for ante builder") + return nil, errors.Wrap(gaiaerrors.ErrLogic, "wasm config is required for ante builder") } if options.TXCounterStoreKey == nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "tx counter key is required for ante builder") + return nil, errors.Wrap(gaiaerrors.ErrLogic, "tx counter key is required for ante builder") } if options.GlobalFeeSubspace.Name() == "" { - return nil, sdkerrors.Wrap(sdkerrors.ErrNotFound, "globalfee param store is required for AnteHandler") + return nil, errors.Wrap(gaiaerrors.ErrNotFound, "globalfee param store is required for AnteHandler") } sigGasConsumer := options.SigGasConsumer @@ -79,7 +80,7 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, // We are providing options.GlobalFeeSubspace because we do not have staking module // In this case you should be sure that you implemented upgrade to set default global fee param and it SHOULD contain at least one record // otherwise you will get panic - //globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), + // globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), // SetPubKeyDecorator must be called before all signature verification decorators diff --git a/app/app.go b/app/app.go index 0102f5de5..b98f63ccb 100644 --- a/app/app.go +++ b/app/app.go @@ -2,6 +2,13 @@ package app import ( "fmt" + "io" + "io/fs" + "net/http" + "os" + "path/filepath" + "strings" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/x/genutil" @@ -15,12 +22,6 @@ import ( builderkeeper "github.com/skip-mev/pob/x/builder/keeper" rewardsaddressprovider "github.com/skip-mev/pob/x/builder/rewards_address_provider" buildertypes "github.com/skip-mev/pob/x/builder/types" - "io" - "io/fs" - "net/http" - "os" - "path/filepath" - "strings" "github.com/neutron-org/neutron/app/upgrades" "github.com/neutron-org/neutron/app/upgrades/nextupgrade" diff --git a/app/export.go b/app/export.go index 8d437fdcb..f6f86626f 100644 --- a/app/export.go +++ b/app/export.go @@ -14,7 +14,7 @@ import ( // ExportAppStateAndValidators exports the state of the application for a genesis // file. func (app *App) ExportAppStateAndValidators( - forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, + forZeroHeight bool, jailAllowedAddrs, 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()}) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 26022eac5..ce9c3ed3c 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -53,27 +53,27 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyHostEnabled)}: {}, {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyAllowMessages)}: {}, // cosmwasm - //{Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, - //{Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, + // {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, + // {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, // feerefunder - //{Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, + // {Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, // interchaintxs - //{Subspace: interchaintxstypes.ModuleName, Key: string(interchaintxstypes.KeyMsgSubmitTxMaxMessages)}: {}, + // {Subspace: interchaintxstypes.ModuleName, Key: string(interchaintxstypes.KeyMsgSubmitTxMaxMessages)}: {}, // interchainqueries - //{Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQuerySubmitTimeout)}: {}, - //{Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQueryDeposit)}: {}, - //{Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyTxQueryRemovalLimit)}: {}, + // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQuerySubmitTimeout)}: {}, + // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQueryDeposit)}: {}, + // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyTxQueryRemovalLimit)}: {}, // feeburner - //{Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyTreasuryAddress)}: {}, - //{Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyNeutronDenom)}: {}, + // {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyTreasuryAddress)}: {}, + // {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyNeutronDenom)}: {}, // tokenfactory - //{Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, - //{Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, + // {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, + // {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, // globalfee {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, // cron - //{Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, - //{Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, + // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, + // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } diff --git a/app/simulation_test.go b/app/simulation_test.go index 38200832e..120de63ae 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -4,7 +4,7 @@ package app_test // at the moment latest ibc-go release requires outdated app interface in the `simapp.SimulationOperations` method // -//import ( +// import ( // "github.com/cosmos/cosmos-sdk/server/types" // "github.com/cosmos/ibc-go/v7/testing/simapp" // "os" diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 7db80ca43..e1d25c60b 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,6 +2,7 @@ package nextupgrade import ( "errors" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 373c62838..91fe12f10 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -3,7 +3,6 @@ package upgrades import ( "github.com/cosmos/cosmos-sdk/codec" store "github.com/cosmos/cosmos-sdk/store/types" - storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" @@ -48,5 +47,5 @@ type UpgradeKeepers struct { } type StoreKeys interface { - GetKey(string) *storetypes.KVStoreKey + GetKey(string) *store.KVStoreKey } diff --git a/app/upgrades/v0.4.4/upgrades.go b/app/upgrades/v0.4.4/upgrades.go index 82b1ca804..63beac5c0 100644 --- a/app/upgrades/v0.4.4/upgrades.go +++ b/app/upgrades/v0.4.4/upgrades.go @@ -2,6 +2,7 @@ package v044 import ( "errors" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" diff --git a/cmd/neutrond/consumer.go b/cmd/neutrond/consumer.go index 0db98e88e..8f456110c 100644 --- a/cmd/neutrond/consumer.go +++ b/cmd/neutrond/consumer.go @@ -4,6 +4,8 @@ import ( "encoding/json" "fmt" + "cosmossdk.io/errors" + types1 "github.com/cometbft/cometbft/abci/types" pvm "github.com/cometbft/cometbft/privval" tmtypes "github.com/cometbft/cometbft/types" @@ -11,7 +13,6 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" "github.com/cosmos/cosmos-sdk/server" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" @@ -51,7 +52,7 @@ func AddConsumerSectionCmd(defaultNodeHome string) *cobra.Command { initialValset := []types1.ValidatorUpdate{{PubKey: tmProtoPublicKey, Power: 100}} vals, err := tmtypes.PB2TM.ValidatorUpdates(initialValset) if err != nil { - return sdkerrors.Wrap(err, "could not convert val updates to validator set") + return errors.Wrap(err, "could not convert val updates to validator set") } genesisState.InitialValSet = initialValset @@ -96,13 +97,13 @@ func (x DefaultGenesisIO) AlterConsumerModuleState(cmd *cobra.Command, callback clientCtx := client.GetClientContextFromCmd(cmd) consumerGenStateBz, err := clientCtx.Codec.MarshalJSON(g.ConsumerModuleState) if err != nil { - return sdkerrors.Wrap(err, "marshal consumer genesis state") + return errors.Wrap(err, "marshal consumer genesis state") } g.AppState[ccvconsumertypes.ModuleName] = consumerGenStateBz appStateJSON, err := json.Marshal(g.AppState) if err != nil { - return sdkerrors.Wrap(err, "marshal application genesis state") + return errors.Wrap(err, "marshal application genesis state") } g.GenDoc.AppState = appStateJSON diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 401939e8b..0c380d3f0 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -3,6 +3,10 @@ package main import ( "errors" "fmt" + "io" + "os" + "path/filepath" + "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" dbm "github.com/cometbft/cometbft-db" @@ -34,9 +38,6 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" "github.com/spf13/cobra" - "io" - "os" - "path/filepath" tmcfg "github.com/cometbft/cometbft/config" "github.com/neutron-org/neutron/app" @@ -262,6 +263,7 @@ func (ac appCreator) newApp( baseapp.SetChainID(chainID), ) } + func (ac appCreator) appExport( logger log.Logger, db dbm.DB, diff --git a/go.sum b/go.sum index 5d3442aab..dff626cb7 100644 --- a/go.sum +++ b/go.sum @@ -800,6 +800,7 @@ github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= @@ -912,6 +913,7 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= diff --git a/testutil/consumer/test_helpers.go b/testutil/consumer/test_helpers.go index 1d61e9d4d..14090e8fe 100644 --- a/testutil/consumer/test_helpers.go +++ b/testutil/consumer/test_helpers.go @@ -4,10 +4,11 @@ import ( "encoding/json" "time" + "cosmossdk.io/errors" + types1 "github.com/cometbft/cometbft/abci/types" tmtypes "github.com/cometbft/cometbft/types" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -48,18 +49,18 @@ func ModifyConsumerGenesis(val network.Validator) error { genFile := val.Ctx.Config.GenesisFile() appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile) if err != nil { - return sdkerrors.Wrap(err, "failed to read genesis from the file") + return errors.Wrap(err, "failed to read genesis from the file") } tmProtoPublicKey, err := cryptocodec.ToTmProtoPublicKey(val.PubKey) if err != nil { - return sdkerrors.Wrap(err, "invalid public key") + return errors.Wrap(err, "invalid public key") } initialValset := []types1.ValidatorUpdate{{PubKey: tmProtoPublicKey, Power: 100}} vals, err := tmtypes.PB2TM.ValidatorUpdates(initialValset) if err != nil { - return sdkerrors.Wrap(err, "could not convert val updates to validator set") + return errors.Wrap(err, "could not convert val updates to validator set") } consumerGenesisState := CreateMinimalConsumerTestGenesis() @@ -67,24 +68,24 @@ func ModifyConsumerGenesis(val network.Validator) error { consumerGenesisState.ProviderConsensusState.NextValidatorsHash = tmtypes.NewValidatorSet(vals).Hash() if err := consumerGenesisState.Validate(); err != nil { - return sdkerrors.Wrap(err, "invalid consumer genesis") + return errors.Wrap(err, "invalid consumer genesis") } consumerGenStateBz, err := val.ClientCtx.Codec.MarshalJSON(consumerGenesisState) if err != nil { - return sdkerrors.Wrap(err, "failed to marshal consumer genesis state into JSON") + return errors.Wrap(err, "failed to marshal consumer genesis state into JSON") } appState[ccvconsumertypes.ModuleName] = consumerGenStateBz appStateJSON, err := json.Marshal(appState) if err != nil { - return sdkerrors.Wrap(err, "failed to marshal application genesis state into JSON") + return errors.Wrap(err, "failed to marshal application genesis state into JSON") } genDoc.AppState = appStateJSON err = genutil.ExportGenesisFile(genDoc, genFile) if err != nil { - return sdkerrors.Wrap(err, "failed to export genesis state") + return errors.Wrap(err, "failed to export genesis state") } return nil diff --git a/testutil/contractmanager/network/network.go b/testutil/contractmanager/network/network.go index a833bc317..10ee719d7 100644 --- a/testutil/contractmanager/network/network.go +++ b/testutil/contractmanager/network/network.go @@ -2,10 +2,11 @@ package network import ( "fmt" - "github.com/stretchr/testify/require" "testing" "time" + "github.com/stretchr/testify/require" + tmdb "github.com/cometbft/cometbft-db" tmrand "github.com/cometbft/cometbft/libs/rand" "github.com/cosmos/cosmos-sdk/baseapp" diff --git a/testutil/cron/network/network.go b/testutil/cron/network/network.go index a5a9a34fc..c7c49cb54 100644 --- a/testutil/cron/network/network.go +++ b/testutil/cron/network/network.go @@ -2,11 +2,12 @@ package network import ( "fmt" - pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" - "github.com/stretchr/testify/require" "testing" "time" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" + "github.com/stretchr/testify/require" + "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" staking "github.com/cosmos/cosmos-sdk/x/staking" diff --git a/testutil/interchainqueries/network/network.go b/testutil/interchainqueries/network/network.go index b19569eed..fa00f6254 100644 --- a/testutil/interchainqueries/network/network.go +++ b/testutil/interchainqueries/network/network.go @@ -2,11 +2,12 @@ package network import ( "fmt" - pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" - "github.com/stretchr/testify/require" "testing" "time" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" + "github.com/stretchr/testify/require" + tmdb "github.com/cometbft/cometbft-db" tmrand "github.com/cometbft/cometbft/libs/rand" "github.com/cosmos/cosmos-sdk/baseapp" diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 0df55e792..4fcb31475 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -44,7 +44,7 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper // Initialize params err := k.SetParams(ctx, types.DefaultParams()) - require.NoError(t,err) + require.NoError(t, err) return k, ctx } diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index af5e0099c..75e49dd3f 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -2,11 +2,12 @@ package network import ( "fmt" - pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" - "github.com/stretchr/testify/require" "testing" "time" + pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types" + "github.com/stretchr/testify/require" + tmdb "github.com/cometbft/cometbft-db" tmrand "github.com/cometbft/cometbft/libs/rand" "github.com/cosmos/cosmos-sdk/baseapp" diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index cbc2a401b..8dcccba8f 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -2,10 +2,10 @@ package bindings import ( + "cosmossdk.io/math" cosmostypes "github.com/cosmos/cosmos-sdk/codec/types" paramChange "github.com/cosmos/cosmos-sdk/x/params/types/proposal" - sdk "github.com/cosmos/cosmos-sdk/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" transferwrappertypes "github.com/neutron-org/neutron/x/transfer/types" @@ -200,14 +200,14 @@ type ChangeAdmin struct { } type MintTokens struct { - Denom string `json:"denom"` - Amount sdk.Int `json:"amount"` - MintToAddress string `json:"mint_to_address"` + Denom string `json:"denom"` + Amount math.Int `json:"amount"` + MintToAddress string `json:"mint_to_address"` } type BurnTokens struct { - Denom string `json:"denom"` - Amount sdk.Int `json:"amount"` + Denom string `json:"denom"` + Amount math.Int `json:"amount"` // BurnFromAddress must be set to "" for now. BurnFromAddress string `json:"burn_from_address"` } diff --git a/wasmbinding/custom_querier.go b/wasmbinding/custom_querier.go index 787110205..bf22446a9 100644 --- a/wasmbinding/custom_querier.go +++ b/wasmbinding/custom_querier.go @@ -3,10 +3,10 @@ package wasmbinding import ( "encoding/json" + "cosmossdk.io/errors" + wasmvmtypes "github.com/CosmWasm/wasmvm/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/neutron-org/neutron/wasmbinding/bindings" ) @@ -15,7 +15,7 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag return func(ctx sdk.Context, request json.RawMessage) ([]byte, error) { var contractQuery bindings.NeutronQuery if err := json.Unmarshal(request, &contractQuery); err != nil { - return nil, sdkerrors.Wrapf(err, "failed to unmarshal neutron query: %v", err) + return nil, errors.Wrapf(err, "failed to unmarshal neutron query: %v", err) } switch { @@ -24,12 +24,12 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag response, err := qp.GetInterchainQueryResult(ctx, queryID) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get interchain query result: %v", err) + return nil, errors.Wrapf(err, "failed to get interchain query result: %v", err) } bz, err := json.Marshal(response) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to marshal interchain query result: %v", err) + return nil, errors.Wrapf(err, "failed to marshal interchain query result: %v", err) } return bz, nil @@ -37,60 +37,60 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag interchainAccountAddress, err := qp.GetInterchainAccountAddress(ctx, contractQuery.InterchainAccountAddress) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get interchain account address: %v", err) + return nil, errors.Wrapf(err, "failed to get interchain account address: %v", err) } bz, err := json.Marshal(interchainAccountAddress) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to marshal interchain account query response: %v", err) + return nil, errors.Wrapf(err, "failed to marshal interchain account query response: %v", err) } return bz, nil case contractQuery.RegisteredInterchainQueries != nil: registeredQueries, err := qp.GetRegisteredInterchainQueries(ctx, contractQuery.RegisteredInterchainQueries) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get registered queries: %v", err) + return nil, errors.Wrapf(err, "failed to get registered queries: %v", err) } bz, err := json.Marshal(registeredQueries) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to marshal interchain account query response: %v", err) + return nil, errors.Wrapf(err, "failed to marshal interchain account query response: %v", err) } return bz, nil case contractQuery.RegisteredInterchainQuery != nil: registeredQuery, err := qp.GetRegisteredInterchainQuery(ctx, contractQuery.RegisteredInterchainQuery) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get registered queries: %v", err) + return nil, errors.Wrapf(err, "failed to get registered queries: %v", err) } bz, err := json.Marshal(registeredQuery) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to marshal interchain account query response: %v", err) + return nil, errors.Wrapf(err, "failed to marshal interchain account query response: %v", err) } return bz, nil case contractQuery.TotalBurnedNeutronsAmount != nil: totalBurnedNeutrons, err := qp.GetTotalBurnedNeutronsAmount(ctx, contractQuery.TotalBurnedNeutronsAmount) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get total burned neutrons amount: %v", err) + return nil, errors.Wrapf(err, "failed to get total burned neutrons amount: %v", err) } bz, err := json.Marshal(totalBurnedNeutrons) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to marshal total burned neutrons amount response: %v", err) + return nil, errors.Wrapf(err, "failed to marshal total burned neutrons amount response: %v", err) } return bz, nil case contractQuery.MinIbcFee != nil: minFee, err := qp.GetMinIbcFee(ctx, contractQuery.MinIbcFee) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get min fee: %v", err) + return nil, errors.Wrapf(err, "failed to get min fee: %v", err) } bz, err := json.Marshal(minFee) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to marshal min fee response: %v", err) + return nil, errors.Wrapf(err, "failed to marshal min fee response: %v", err) } return bz, nil @@ -101,7 +101,7 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag fullDenom, err := GetFullDenom(creator, subdenom) if err != nil { - return nil, sdkerrors.Wrap(err, "unable to get full denom") + return nil, errors.Wrap(err, "unable to get full denom") } res := bindings.FullDenomResponse{ @@ -110,7 +110,7 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag bz, err := json.Marshal(res) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to JSON marshal FullDenomResponse response.") + return nil, errors.Wrap(err, "failed to JSON marshal FullDenomResponse response.") } return bz, nil @@ -118,12 +118,12 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag case contractQuery.DenomAdmin != nil: res, err := qp.GetDenomAdmin(ctx, contractQuery.DenomAdmin.Subdenom) if err != nil { - return nil, sdkerrors.Wrap(err, "unable to get denom admin") + return nil, errors.Wrap(err, "unable to get denom admin") } bz, err := json.Marshal(res) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to JSON marshal DenomAdminResponse response.") + return nil, errors.Wrap(err, "failed to JSON marshal DenomAdminResponse response.") } return bz, nil diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 9a176b68e..4fc27b93c 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -4,6 +4,8 @@ import ( "encoding/json" "fmt" + "cosmossdk.io/errors" + crontypes "github.com/neutron-org/neutron/x/cron/types" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -85,7 +87,7 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre "message", string(msg.Custom), "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to decode incoming custom cosmos message") + return nil, nil, errors.Wrap(err, "failed to decode incoming custom cosmos message") } if contractMsg.SubmitTx != nil { @@ -136,7 +138,7 @@ func (m *CustomMessenger) ibcTransfer(ctx sdk.Context, contractAddr sdk.AccAddre ibcTransferMsg.Sender = contractAddr.String() if err := ibcTransferMsg.ValidateBasic(); err != nil { - return nil, nil, sdkerrors.Wrap(err, "failed to validate ibcTransferMsg") + return nil, nil, errors.Wrap(err, "failed to validate ibcTransferMsg") } response, err := m.transferKeeper.Transfer(sdk.WrapSDKContext(ctx), &ibcTransferMsg) @@ -146,7 +148,7 @@ func (m *CustomMessenger) ibcTransfer(ctx sdk.Context, contractAddr sdk.AccAddre "msg", ibcTransferMsg, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to execute IBCTransfer") + return nil, nil, errors.Wrap(err, "failed to execute IBCTransfer") } data, err := json.Marshal(response) @@ -156,7 +158,7 @@ func (m *CustomMessenger) ibcTransfer(ctx sdk.Context, contractAddr sdk.AccAddre "msg", response, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("ibcTransferMsg completed", @@ -174,7 +176,7 @@ func (m *CustomMessenger) updateInterchainQuery(ctx sdk.Context, contractAddr sd "msg", updateQuery, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to update interchain query") + return nil, nil, errors.Wrap(err, "failed to update interchain query") } data, err := json.Marshal(response) @@ -184,7 +186,7 @@ func (m *CustomMessenger) updateInterchainQuery(ctx sdk.Context, contractAddr sd "msg", updateQuery, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("interchain query updated", @@ -204,12 +206,12 @@ func (m *CustomMessenger) performUpdateInterchainQuery(ctx sdk.Context, contract } if err := msg.ValidateBasic(); err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate incoming UpdateInterchainQuery message") + return nil, errors.Wrap(err, "failed to validate incoming UpdateInterchainQuery message") } response, err := m.Icqmsgserver.UpdateInterchainQuery(sdk.WrapSDKContext(ctx), &msg) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to update interchain query") + return nil, errors.Wrap(err, "failed to update interchain query") } return (*bindings.UpdateInterchainQueryResponse)(response), nil @@ -223,7 +225,7 @@ func (m *CustomMessenger) removeInterchainQuery(ctx sdk.Context, contractAddr sd "msg", removeQuery, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to remove interchain query") + return nil, nil, errors.Wrap(err, "failed to remove interchain query") } data, err := json.Marshal(response) @@ -233,7 +235,7 @@ func (m *CustomMessenger) removeInterchainQuery(ctx sdk.Context, contractAddr sd "msg", removeQuery, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("interchain query removed", @@ -250,12 +252,12 @@ func (m *CustomMessenger) performRemoveInterchainQuery(ctx sdk.Context, contract } if err := msg.ValidateBasic(); err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate incoming RemoveInterchainQuery message") + return nil, errors.Wrap(err, "failed to validate incoming RemoveInterchainQuery message") } response, err := m.Icqmsgserver.RemoveInterchainQuery(sdk.WrapSDKContext(ctx), &msg) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to remove interchain query") + return nil, errors.Wrap(err, "failed to remove interchain query") } return (*bindings.RemoveInterchainQueryResponse)(response), nil @@ -270,7 +272,7 @@ func (m *CustomMessenger) submitTx(ctx sdk.Context, contractAddr sdk.AccAddress, "interchain_account_id", submitTx.InterchainAccountId, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to submit interchain transaction") + return nil, nil, errors.Wrap(err, "failed to submit interchain transaction") } data, err := json.Marshal(response) @@ -281,7 +283,7 @@ func (m *CustomMessenger) submitTx(ctx sdk.Context, contractAddr sdk.AccAddress, "interchain_account_id", submitTx.InterchainAccountId, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("interchain transaction submitted", @@ -300,7 +302,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. "creator", contractAddr.String(), "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to submit admin proposal") + return nil, nil, errors.Wrap(err, "failed to submit admin proposal") } data, err := json.Marshal(response) @@ -310,7 +312,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. "creator", contractAddr.String(), "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("submit proposal message submitted", @@ -326,7 +328,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd err := m.validateProposalQty(&proposal) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate proposal quantity") + return nil, errors.Wrap(err, "failed to validate proposal quantity") } if proposal.ParamChangeProposal != nil { p := proposal.ParamChangeProposal @@ -336,7 +338,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd Changes: p.ParamChanges, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on ParameterChangeProposal") + return nil, errors.Wrap(err, "failed to set content on ParameterChangeProposal") } } @@ -352,7 +354,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd }, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") + return nil, errors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") } } @@ -363,7 +365,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd Description: p.Description, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on CancelSoftwareUpgradeProposal") + return nil, errors.Wrap(err, "failed to set content on CancelSoftwareUpgradeProposal") } } @@ -380,7 +382,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd UpgradedClientState: p.UpgradedClientState, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on UpgradeProposal") + return nil, errors.Wrap(err, "failed to set content on UpgradeProposal") } } @@ -393,7 +395,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd SubstituteClientId: p.SubstituteClientId, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on ClientUpdateProposal") + return nil, errors.Wrap(err, "failed to set content on ClientUpdateProposal") } } @@ -405,7 +407,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd CodeIDs: p.CodeIDs, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on PinCodesProposal") + return nil, errors.Wrap(err, "failed to set content on PinCodesProposal") } } @@ -417,7 +419,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd CodeIDs: p.CodeIDs, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on UnpinCodesProposal") + return nil, errors.Wrap(err, "failed to set content on UnpinCodesProposal") } } @@ -430,7 +432,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd Contract: p.Contract, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on UpdateAdminProposal") + return nil, errors.Wrap(err, "failed to set content on UpdateAdminProposal") } } @@ -442,17 +444,17 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd Contract: p.Contract, }) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to set content on ClearAdminProposal") + return nil, errors.Wrap(err, "failed to set content on ClearAdminProposal") } } if err := msg.ValidateBasic(); err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate incoming SubmitAdminProposal message") + return nil, errors.Wrap(err, "failed to validate incoming SubmitAdminProposal message") } response, err := m.Adminserver.SubmitProposal(sdk.WrapSDKContext(ctx), &msg) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to submit proposal") + return nil, errors.Wrap(err, "failed to submit proposal") } return response, nil @@ -462,7 +464,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd func (m *CustomMessenger) createDenom(ctx sdk.Context, contractAddr sdk.AccAddress, createDenom *bindings.CreateDenom) ([]sdk.Event, [][]byte, error) { err := PerformCreateDenom(m.TokenFactory, m.Bank, ctx, contractAddr, createDenom) if err != nil { - return nil, nil, sdkerrors.Wrap(err, "perform create denom") + return nil, nil, errors.Wrap(err, "perform create denom") } return nil, nil, nil } @@ -474,7 +476,7 @@ func PerformCreateDenom(f *tokenfactorykeeper.Keeper, _ *bankkeeper.BaseKeeper, msgCreateDenom := tokenfactorytypes.NewMsgCreateDenom(contractAddr.String(), createDenom.Subdenom) if err := msgCreateDenom.ValidateBasic(); err != nil { - return sdkerrors.Wrap(err, "failed validating MsgCreateDenom") + return errors.Wrap(err, "failed validating MsgCreateDenom") } // Create denom @@ -483,7 +485,7 @@ func PerformCreateDenom(f *tokenfactorykeeper.Keeper, _ *bankkeeper.BaseKeeper, msgCreateDenom, ) if err != nil { - return sdkerrors.Wrap(err, "creating denom") + return errors.Wrap(err, "creating denom") } return nil } @@ -492,7 +494,7 @@ func PerformCreateDenom(f *tokenfactorykeeper.Keeper, _ *bankkeeper.BaseKeeper, func (m *CustomMessenger) mintTokens(ctx sdk.Context, contractAddr sdk.AccAddress, mint *bindings.MintTokens) ([]sdk.Event, [][]byte, error) { err := PerformMint(m.TokenFactory, m.Bank, ctx, contractAddr, mint) if err != nil { - return nil, nil, sdkerrors.Wrap(err, "perform mint") + return nil, nil, errors.Wrap(err, "perform mint") } return nil, nil, nil } @@ -514,12 +516,12 @@ func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk msgServer := tokenfactorykeeper.NewMsgServerImpl(*f) _, err = msgServer.Mint(sdk.WrapSDKContext(ctx), sdkMsg) if err != nil { - return sdkerrors.Wrap(err, "minting coins from message") + return errors.Wrap(err, "minting coins from message") } err = b.SendCoins(ctx, contractAddr, rcpt, sdk.NewCoins(coin)) if err != nil { - return sdkerrors.Wrap(err, "sending newly minted coins from message") + return errors.Wrap(err, "sending newly minted coins from message") } return nil @@ -529,7 +531,7 @@ func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk func (m *CustomMessenger) changeAdmin(ctx sdk.Context, contractAddr sdk.AccAddress, changeAdmin *bindings.ChangeAdmin) ([]sdk.Event, [][]byte, error) { err := ChangeAdmin(m.TokenFactory, ctx, contractAddr, changeAdmin) if err != nil { - return nil, nil, sdkerrors.Wrap(err, "failed to change admin") + return nil, nil, errors.Wrap(err, "failed to change admin") } return nil, nil, nil @@ -550,7 +552,7 @@ func ChangeAdmin(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk msgServer := tokenfactorykeeper.NewMsgServerImpl(*f) _, err = msgServer.ChangeAdmin(sdk.WrapSDKContext(ctx), changeAdminMsg) if err != nil { - return sdkerrors.Wrap(err, "failed changing admin from message") + return errors.Wrap(err, "failed changing admin from message") } return nil } @@ -559,7 +561,7 @@ func ChangeAdmin(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk func (m *CustomMessenger) burnTokens(ctx sdk.Context, contractAddr sdk.AccAddress, burn *bindings.BurnTokens) ([]sdk.Event, [][]byte, error) { err := PerformBurn(m.TokenFactory, ctx, contractAddr, burn) if err != nil { - return nil, nil, sdkerrors.Wrap(err, "perform burn") + return nil, nil, errors.Wrap(err, "perform burn") } return nil, nil, nil @@ -581,7 +583,7 @@ func PerformBurn(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk msgServer := tokenfactorykeeper.NewMsgServerImpl(*f) _, err := msgServer.Burn(sdk.WrapSDKContext(ctx), sdkMsg) if err != nil { - return sdkerrors.Wrap(err, "burning coins from message") + return errors.Wrap(err, "burning coins from message") } return nil @@ -596,7 +598,7 @@ func GetFullDenom(contract, subDenom string) (string, error) { fullDenom, err := tokenfactorytypes.GetTokenDenom(contract, subDenom) if err != nil { - return "", sdkerrors.Wrap(err, "validate sub-denom") + return "", errors.Wrap(err, "validate sub-denom") } return fullDenom, nil @@ -606,12 +608,12 @@ func GetFullDenom(contract, subDenom string) (string, error) { func parseAddress(addr string) (sdk.AccAddress, error) { parsed, err := sdk.AccAddressFromBech32(addr) if err != nil { - return nil, sdkerrors.Wrap(err, "address from bech32") + return nil, errors.Wrap(err, "address from bech32") } err = sdk.VerifyAddressFormat(parsed) if err != nil { - return nil, sdkerrors.Wrap(err, "verify address format") + return nil, errors.Wrap(err, "verify address format") } return parsed, nil @@ -634,12 +636,12 @@ func (m *CustomMessenger) performSubmitTx(ctx sdk.Context, contractAddr sdk.AccA } if err := tx.ValidateBasic(); err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate incoming SubmitTx message") + return nil, errors.Wrap(err, "failed to validate incoming SubmitTx message") } response, err := m.Ictxmsgserver.SubmitTx(sdk.WrapSDKContext(ctx), &tx) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to submit interchain transaction") + return nil, errors.Wrap(err, "failed to submit interchain transaction") } return (*bindings.SubmitTxResponse)(response), nil @@ -654,7 +656,7 @@ func (m *CustomMessenger) registerInterchainAccount(ctx sdk.Context, contractAdd "interchain_account_id", reg.InterchainAccountId, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to register interchain account") + return nil, nil, errors.Wrap(err, "failed to register interchain account") } data, err := json.Marshal(response) @@ -665,7 +667,7 @@ func (m *CustomMessenger) registerInterchainAccount(ctx sdk.Context, contractAdd "interchain_account_id", reg.InterchainAccountId, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("registered interchain account", @@ -683,12 +685,12 @@ func (m *CustomMessenger) performRegisterInterchainAccount(ctx sdk.Context, cont InterchainAccountId: reg.InterchainAccountId, } if err := msg.ValidateBasic(); err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate incoming RegisterInterchainAccount message") + return nil, errors.Wrap(err, "failed to validate incoming RegisterInterchainAccount message") } response, err := m.Ictxmsgserver.RegisterInterchainAccount(sdk.WrapSDKContext(ctx), &msg) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to register interchain account") + return nil, errors.Wrap(err, "failed to register interchain account") } return (*bindings.RegisterInterchainAccountResponse)(response), nil @@ -706,7 +708,7 @@ func (m *CustomMessenger) registerInterchainQuery(ctx sdk.Context, contractAddr "update_period", reg.UpdatePeriod, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "failed to register interchain query") + return nil, nil, errors.Wrap(err, "failed to register interchain query") } data, err := json.Marshal(response) @@ -719,7 +721,7 @@ func (m *CustomMessenger) registerInterchainQuery(ctx sdk.Context, contractAddr "update_period", reg.UpdatePeriod, "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("registered interchain query", @@ -744,12 +746,12 @@ func (m *CustomMessenger) performRegisterInterchainQuery(ctx sdk.Context, contra Sender: contractAddr.String(), } if err := msg.ValidateBasic(); err != nil { - return nil, sdkerrors.Wrap(err, "failed to validate incoming RegisterInterchainQuery message") + return nil, errors.Wrap(err, "failed to validate incoming RegisterInterchainQuery message") } response, err := m.Icqmsgserver.RegisterInterchainQuery(sdk.WrapSDKContext(ctx), &msg) if err != nil { - return nil, sdkerrors.Wrap(err, "failed to register interchain query") + return nil, errors.Wrap(err, "failed to register interchain query") } return (*bindings.RegisterInterchainQueryResponse)(response), nil @@ -798,7 +800,7 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) func (m *CustomMessenger) addSchedule(ctx sdk.Context, contractAddr sdk.AccAddress, addSchedule *bindings.AddSchedule) ([]sdk.Event, [][]byte, error) { if !m.isAdmin(ctx, contractAddr) { - return nil, nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "only admin can add schedule") + return nil, nil, errors.Wrap(sdkerrors.ErrUnauthorized, "only admin can add schedule") } msgs := make([]crontypes.MsgExecuteContract, 0, len(addSchedule.Msgs)) @@ -815,7 +817,7 @@ func (m *CustomMessenger) addSchedule(ctx sdk.Context, contractAddr sdk.AccAddre "from_address", contractAddr.String(), "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } resp := bindings.AddScheduleResponse{} @@ -825,7 +827,7 @@ func (m *CustomMessenger) addSchedule(ctx sdk.Context, contractAddr sdk.AccAddre "from_address", contractAddr.String(), "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("schedule added", @@ -839,7 +841,7 @@ func (m *CustomMessenger) addSchedule(ctx sdk.Context, contractAddr sdk.AccAddre func (m *CustomMessenger) removeSchedule(ctx sdk.Context, contractAddr sdk.AccAddress, removeSchedule *bindings.RemoveSchedule) ([]sdk.Event, [][]byte, error) { params := m.CronKeeper.GetParams(ctx) if !m.isAdmin(ctx, contractAddr) && contractAddr.String() != params.SecurityAddress { - return nil, nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "only admin or security dao can remove schedule") + return nil, nil, errors.Wrap(sdkerrors.ErrUnauthorized, "only admin or security dao can remove schedule") } m.CronKeeper.RemoveSchedule(ctx, removeSchedule.Name) @@ -851,7 +853,7 @@ func (m *CustomMessenger) removeSchedule(ctx sdk.Context, contractAddr sdk.AccAd "from_address", contractAddr.String(), "error", err, ) - return nil, nil, sdkerrors.Wrap(err, "marshal json failed") + return nil, nil, errors.Wrap(err, "marshal json failed") } ctx.Logger().Debug("schedule removed", diff --git a/wasmbinding/queries.go b/wasmbinding/queries.go index 7f49d0029..efea939ca 100644 --- a/wasmbinding/queries.go +++ b/wasmbinding/queries.go @@ -1,8 +1,8 @@ package wasmbinding import ( + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdkquery "github.com/cosmos/cosmos-sdk/types/query" "github.com/neutron-org/neutron/wasmbinding/bindings" @@ -77,7 +77,7 @@ func (qp *QueryPlugin) GetRegisteredInterchainQuery(ctx sdk.Context, req *bindin return nil, err } if grpcResp == nil { - return nil, sdkerrors.Wrapf(types.ErrEmptyResult, "interchain query response empty for query id %d", req.QueryID) + return nil, errors.Wrapf(types.ErrEmptyResult, "interchain query response empty for query id %d", req.QueryID) } query := mapGRPCRegisteredQueryToWasmBindings(*grpcResp) @@ -88,7 +88,7 @@ func (qp *QueryPlugin) GetRegisteredInterchainQuery(ctx sdk.Context, req *bindin func (qp QueryPlugin) GetDenomAdmin(ctx sdk.Context, denom string) (*bindings.DenomAdminResponse, error) { metadata, err := qp.tokenFactoryKeeper.GetAuthorityMetadata(ctx, denom) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get admin for denom: %s", denom) + return nil, errors.Wrapf(err, "failed to get admin for denom: %s", denom) } return &bindings.DenomAdminResponse{Admin: metadata.Admin}, nil diff --git a/x/contractmanager/keeper/grpc_query_params_test.go b/x/contractmanager/keeper/grpc_query_params_test.go index 8bc65b586..31c9598b0 100644 --- a/x/contractmanager/keeper/grpc_query_params_test.go +++ b/x/contractmanager/keeper/grpc_query_params_test.go @@ -16,7 +16,7 @@ func TestParamsQuery(t *testing.T) { params := types.DefaultParams() err := keeper.SetParams(ctx, params) require.NoError(t, err) - + response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) require.Equal(t, &types.QueryParamsResponse{Params: params}, response) diff --git a/x/contractmanager/keeper/keeper.go b/x/contractmanager/keeper/keeper.go index 31014162d..6d9c3569f 100644 --- a/x/contractmanager/keeper/keeper.go +++ b/x/contractmanager/keeper/keeper.go @@ -25,7 +25,6 @@ func NewKeeper( memKey storetypes.StoreKey, wasmKeeper types.WasmKeeper, ) *Keeper { - return &Keeper{ cdc: cdc, storeKey: storeKey, diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index 0d15b740f..cfecf7588 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -2,10 +2,11 @@ package contractmanager import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + // this line is used by starport scaffolding # 1 "github.com/gorilla/mux" diff --git a/x/contractmanager/types/errors.go b/x/contractmanager/types/errors.go index 74c84c6c4..b846d3302 100644 --- a/x/contractmanager/types/errors.go +++ b/x/contractmanager/types/errors.go @@ -3,10 +3,10 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/contractmanager module sentinel errors var ( - ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") + ErrSample = errors.Register(ModuleName, 1100, "sample error") ) diff --git a/x/cron/keeper/grpc_query_params_test.go b/x/cron/keeper/grpc_query_params_test.go index 154826fb9..27193b7d9 100644 --- a/x/cron/keeper/grpc_query_params_test.go +++ b/x/cron/keeper/grpc_query_params_test.go @@ -16,7 +16,7 @@ func TestParamsQuery(t *testing.T) { params := types.DefaultParams() err := keeper.SetParams(ctx, params) require.NoError(t, err) - + response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) require.Equal(t, &types.QueryParamsResponse{Params: params}, response) diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index 96243dc74..f81040e10 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -2,10 +2,11 @@ package keeper import ( "fmt" - "github.com/armon/go-metrics" "strconv" "time" + "github.com/armon/go-metrics" + "github.com/cosmos/cosmos-sdk/telemetry" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" diff --git a/x/cron/keeper/keeper_test.go b/x/cron/keeper/keeper_test.go index 6fe16a741..990c556f4 100644 --- a/x/cron/keeper/keeper_test.go +++ b/x/cron/keeper/keeper_test.go @@ -214,7 +214,7 @@ func TestGetAllSchedules(t *testing.T) { Limit: 2, }) require.NoError(t, err) - + expectedSchedules := make([]types.Schedule, 0, 3) for i := range []int{1, 2, 3} { s := types.Schedule{ diff --git a/x/cron/module.go b/x/cron/module.go index 8b01aca50..0c911b391 100644 --- a/x/cron/module.go +++ b/x/cron/module.go @@ -2,10 +2,11 @@ package cron import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + "github.com/gorilla/mux" // this line is used by starport scaffolding # 1 diff --git a/x/cron/types/errors.go b/x/cron/types/errors.go index 35382cbcd..8bc535d7e 100644 --- a/x/cron/types/errors.go +++ b/x/cron/types/errors.go @@ -3,10 +3,10 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/cron module sentinel errors var ( - ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") + ErrSample = errors.Register(ModuleName, 1100, "sample error") ) diff --git a/x/feeburner/keeper/keeper.go b/x/feeburner/keeper/keeper.go index 205edd433..842baea35 100644 --- a/x/feeburner/keeper/keeper.go +++ b/x/feeburner/keeper/keeper.go @@ -3,7 +3,8 @@ package keeper import ( "fmt" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cometbft/cometbft/libs/log" @@ -35,7 +36,6 @@ func NewKeeper( accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, ) *Keeper { - return &Keeper{ cdc: cdc, storeKey: storeKey, @@ -92,7 +92,7 @@ func (k Keeper) BurnAndDistribute(ctx sdk.Context) { if balance.Denom == params.NeutronDenom { err := k.bankKeeper.BurnCoins(ctx, consumertypes.ConsumerRedistributeName, sdk.Coins{balance}) if err != nil { - panic(sdkerrors.Wrapf(err, "failed to burn NTRN tokens during fee processing")) + panic(errors.Wrapf(err, "failed to burn NTRN tokens during fee processing")) } k.RecordBurnedFees(ctx, balance) @@ -110,7 +110,7 @@ func (k Keeper) BurnAndDistribute(ctx sdk.Context) { // in such case we just burn the tokens err := k.bankKeeper.BurnCoins(ctx, consumertypes.ConsumerRedistributeName, fundsForReserve) if err != nil { - panic(sdkerrors.Wrapf(err, "failed to burn tokens during fee processing")) + panic(errors.Wrapf(err, "failed to burn tokens during fee processing")) } } else { err = k.bankKeeper.SendCoins( @@ -119,7 +119,7 @@ func (k Keeper) BurnAndDistribute(ctx sdk.Context) { fundsForReserve, ) if err != nil { - panic(sdkerrors.Wrapf(err, "failed sending funds to Reserve")) + panic(errors.Wrapf(err, "failed sending funds to Reserve")) } } } diff --git a/x/feeburner/module.go b/x/feeburner/module.go index 6095ec72e..c17a896b7 100644 --- a/x/feeburner/module.go +++ b/x/feeburner/module.go @@ -2,10 +2,11 @@ package feeburner import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + "github.com/gorilla/mux" // this line is used by starport scaffolding # 1 diff --git a/x/feeburner/types/errors.go b/x/feeburner/types/errors.go index 526904dc5..0b7801f3b 100644 --- a/x/feeburner/types/errors.go +++ b/x/feeburner/types/errors.go @@ -3,10 +3,10 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/feeburner module sentinel errors var ( - ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") + ErrSample = errors.Register(ModuleName, 1100, "sample error") ) diff --git a/x/feeburner/types/keys.go b/x/feeburner/types/keys.go index c790fca9d..527a1b6ae 100644 --- a/x/feeburner/types/keys.go +++ b/x/feeburner/types/keys.go @@ -18,9 +18,7 @@ const ( prefixParamsKey = iota + 1 ) -var ( - ParamsKey = []byte{prefixParamsKey} -) +var ParamsKey = []byte{prefixParamsKey} func KeyPrefix(p string) []byte { return []byte(p) diff --git a/x/feerefunder/keeper/grpc_query.go b/x/feerefunder/keeper/grpc_query.go index 5dc634237..5029bbf28 100644 --- a/x/feerefunder/keeper/grpc_query.go +++ b/x/feerefunder/keeper/grpc_query.go @@ -3,6 +3,8 @@ package keeper import ( "context" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -16,7 +18,7 @@ func (k Keeper) FeeInfo(goCtx context.Context, request *types.FeeInfoRequest) (* feeInfo, err := k.GetFeeInfo(ctx, types.NewPacketID(request.PortId, request.ChannelId, request.Sequence)) if err != nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "no fee info found for port_id = %s, channel_id=%s, sequence=%d", request.PortId, request.ChannelId, request.Sequence) + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "no fee info found for port_id = %s, channel_id=%s, sequence=%d", request.PortId, request.ChannelId, request.Sequence) } return &types.FeeInfoResponse{FeeInfo: feeInfo}, nil diff --git a/x/feerefunder/keeper/keeper.go b/x/feerefunder/keeper/keeper.go index 64d90c070..a5196a3b4 100644 --- a/x/feerefunder/keeper/keeper.go +++ b/x/feerefunder/keeper/keeper.go @@ -4,13 +4,14 @@ import ( "fmt" "strconv" + "cosmossdk.io/errors" + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -21,7 +22,6 @@ type ( bankKeeper types.BankKeeper storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace channelKeeper types.ChannelKeeper } ) @@ -50,11 +50,11 @@ func (k Keeper) LockFees(ctx sdk.Context, payer sdk.AccAddress, packetID types.P k.Logger(ctx).Debug("Trying to lock fees", "packetID", packetID, "fee", fee) if _, ok := k.channelKeeper.GetChannel(ctx, packetID.PortId, packetID.ChannelId); !ok { - return sdkerrors.Wrapf(channeltypes.ErrChannelNotFound, "channel with id %s and port %s not found", packetID.ChannelId, packetID.PortId) + return errors.Wrapf(channeltypes.ErrChannelNotFound, "channel with id %s and port %s not found", packetID.ChannelId, packetID.PortId) } if err := k.checkFees(ctx, fee); err != nil { - return sdkerrors.Wrapf(err, "failed to lock fees") + return errors.Wrapf(err, "failed to lock fees") } feeInfo := types.FeeInfo{ @@ -65,7 +65,7 @@ func (k Keeper) LockFees(ctx sdk.Context, payer sdk.AccAddress, packetID types.P k.StoreFeeInfo(ctx, feeInfo) if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, payer, types.ModuleName, fee.Total()); err != nil { - return sdkerrors.Wrapf(err, "failed to send coins during fees locking") + return errors.Wrapf(err, "failed to send coins during fees locking") } ctx.EventManager().EmitEvents(sdk.Events{ @@ -90,19 +90,19 @@ func (k Keeper) DistributeAcknowledgementFee(ctx sdk.Context, receiver sdk.AccAd feeInfo, err := k.GetFeeInfo(ctx, packetID) if err != nil { k.Logger(ctx).Error("no fee info", "error", err) - panic(sdkerrors.Wrapf(err, "no fee info")) + panic(errors.Wrapf(err, "no fee info")) } // try to distribute ack fee if err := k.distributeFee(ctx, receiver, feeInfo.Fee.AckFee); err != nil { k.Logger(ctx).Error("error distributing ack fee", "receiver", receiver, "payer", feeInfo.Payer, "packet", packetID) - panic(sdkerrors.Wrapf(err, "error distributing ack fee: receiver = %s, packetID=%v", receiver, packetID)) + panic(errors.Wrapf(err, "error distributing ack fee: receiver = %s, packetID=%v", receiver, packetID)) } // try to return unused timeout fee if err := k.distributeFee(ctx, sdk.MustAccAddressFromBech32(feeInfo.Payer), feeInfo.Fee.TimeoutFee); err != nil { k.Logger(ctx).Error("error returning unused timeout fee", "receiver", feeInfo.Payer, "packet", packetID) - panic(sdkerrors.Wrapf(err, "error distributing unused timeout fee: receiver = %s, packetID=%v", feeInfo.Payer, packetID)) + panic(errors.Wrapf(err, "error distributing unused timeout fee: receiver = %s, packetID=%v", feeInfo.Payer, packetID)) } ctx.EventManager().EmitEvents(sdk.Events{ @@ -127,19 +127,19 @@ func (k Keeper) DistributeTimeoutFee(ctx sdk.Context, receiver sdk.AccAddress, p feeInfo, err := k.GetFeeInfo(ctx, packetID) if err != nil { k.Logger(ctx).Error("no fee info", "error", err) - panic(sdkerrors.Wrapf(err, "no fee info")) + panic(errors.Wrapf(err, "no fee info")) } // try to distribute timeout fee if err := k.distributeFee(ctx, receiver, feeInfo.Fee.TimeoutFee); err != nil { k.Logger(ctx).Error("error distributing timeout fee", "receiver", receiver, "payer", feeInfo.Payer, "packet", packetID) - panic(sdkerrors.Wrapf(err, "error distributing timeout fee: receiver = %s, packetID=%v", receiver, packetID)) + panic(errors.Wrapf(err, "error distributing timeout fee: receiver = %s, packetID=%v", receiver, packetID)) } // try to return unused ack fee if err := k.distributeFee(ctx, sdk.MustAccAddressFromBech32(feeInfo.Payer), feeInfo.Fee.AckFee); err != nil { k.Logger(ctx).Error("error returning unused ack fee", "receiver", feeInfo.Payer, "packet", packetID) - panic(sdkerrors.Wrapf(err, "error distributing unused ack fee: receiver = %s, packetID=%v", feeInfo.Payer, packetID)) + panic(errors.Wrapf(err, "error distributing unused ack fee: receiver = %s, packetID=%v", feeInfo.Payer, packetID)) } ctx.EventManager().EmitEvents(sdk.Events{ @@ -165,7 +165,7 @@ func (k Keeper) GetFeeInfo(ctx sdk.Context, packetID types.PacketID) (*types.Fee var feeInfo types.FeeInfo bzFeeInfo := store.Get(types.GetFeePacketKey(packetID)) if bzFeeInfo == nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrKeyNotFound, "no fee info for the given channelID = %s, portID = %s and sequence = %d", packetID.ChannelId, packetID.PortId, packetID.Sequence) + return nil, errors.Wrapf(sdkerrors.ErrKeyNotFound, "no fee info for the given channelID = %s, portID = %s and sequence = %d", packetID.ChannelId, packetID.PortId, packetID.Sequence) } k.cdc.MustUnmarshal(bzFeeInfo, &feeInfo) @@ -211,24 +211,24 @@ func (k Keeper) checkFees(ctx sdk.Context, fees types.Fee) error { params := k.GetParams(ctx) if !fees.TimeoutFee.IsAnyGTE(params.MinFee.TimeoutFee) { - return sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "provided timeout fee is less than min governance set timeout fee: %v < %v", fees.TimeoutFee, params.MinFee.TimeoutFee) + return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided timeout fee is less than min governance set timeout fee: %v < %v", fees.TimeoutFee, params.MinFee.TimeoutFee) } if !fees.AckFee.IsAnyGTE(params.MinFee.AckFee) { - return sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "provided ack fee is less than min governance set ack fee: %v < %v", fees.AckFee, params.MinFee.AckFee) + return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided ack fee is less than min governance set ack fee: %v < %v", fees.AckFee, params.MinFee.AckFee) } if allowedCoins(fees.TimeoutFee, params.MinFee.TimeoutFee) { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "timeout fee cannot have coins other than in params") + return errors.Wrapf(sdkerrors.ErrInvalidCoins, "timeout fee cannot have coins other than in params") } if allowedCoins(fees.AckFee, params.MinFee.AckFee) { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "ack fee cannot have coins other than in params") + return errors.Wrapf(sdkerrors.ErrInvalidCoins, "ack fee cannot have coins other than in params") } // we don't allow users to set recv fees, because we can't refund relayers for such messages if !fees.RecvFee.IsZero() { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "recv fee must be zero") + return errors.Wrapf(sdkerrors.ErrInvalidCoins, "recv fee must be zero") } return nil @@ -238,7 +238,7 @@ func (k Keeper) distributeFee(ctx sdk.Context, receiver sdk.AccAddress, fee sdk. err := k.bankKeeper.SendCoinsFromModuleToAccount(ctx, types.ModuleName, receiver, fee) if err != nil { k.Logger(ctx).Error("error distributing fee", "receiver address", receiver, "fee", fee) - return sdkerrors.Wrapf(err, "error distributing fee to a receiver: %s", receiver.String()) + return errors.Wrapf(err, "error distributing fee to a receiver: %s", receiver.String()) } return nil } diff --git a/x/feerefunder/keeper/keeper_test.go b/x/feerefunder/keeper/keeper_test.go index 512acc7f6..cbdfa056c 100644 --- a/x/feerefunder/keeper/keeper_test.go +++ b/x/feerefunder/keeper/keeper_test.go @@ -12,6 +12,7 @@ import ( testutil_keeper "github.com/neutron-org/neutron/testutil/feerefunder/keeper" mock_types "github.com/neutron-org/neutron/testutil/mocks/feerefunder/types" + cosmoserrors "cosmossdk.io/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/pkg/errors" @@ -43,7 +44,7 @@ func TestKeeperCheckFees(t *testing.T) { desc string fees *types.Fee minFees types.Fee - err *sdkerrors.Error + err *cosmoserrors.Error }{ { desc: "SingleProperDenomInsufficient", @@ -223,14 +224,14 @@ func TestDistributeAcknowledgementFee(t *testing.T) { PortId: "transfer", Sequence: 1, } - panicErrorToCatch := sdkerrors.Wrapf(sdkerrors.Wrapf(sdkerrors.ErrKeyNotFound, "no fee info for the given channelID = %s, portID = %s and sequence = %d", invalidPacket.ChannelId, invalidPacket.PortId, invalidPacket.Sequence), "no fee info") + panicErrorToCatch := errors.Wrapf(errors.Wrapf(sdkerrors.ErrKeyNotFound, "no fee info for the given channelID = %s, portID = %s and sequence = %d", invalidPacket.ChannelId, invalidPacket.PortId, invalidPacket.Sequence), "no fee info") assert.PanicsWithError(t, panicErrorToCatch.Error(), func() { k.DistributeAcknowledgementFee(ctx, receiver, invalidPacket) }) - panicErrorToCatch = sdkerrors.Wrapf(sdkerrors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", receiver.String()), "error distributing ack fee: receiver = %s, packetID=%v", receiver, packet) + panicErrorToCatch = errors.Wrapf(errors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", receiver.String()), "error distributing ack fee: receiver = %s, packetID=%v", receiver, packet) bankKeeper.EXPECT().SendCoinsFromModuleToAccount(ctx, types.ModuleName, receiver, validFee.AckFee).Return(fmt.Errorf("bank module error")) assert.PanicsWithError(t, panicErrorToCatch.Error(), func() { k.DistributeAcknowledgementFee(ctx, receiver, packet) }) - panicErrorToCatch = sdkerrors.Wrapf(sdkerrors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", payer.String()), "error distributing unused timeout fee: receiver = %s, packetID=%v", receiver, packet) + panicErrorToCatch = errors.Wrapf(errors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", payer.String()), "error distributing unused timeout fee: receiver = %s, packetID=%v", receiver, packet) bankKeeper.EXPECT().SendCoinsFromModuleToAccount(ctx, types.ModuleName, receiver, validFee.AckFee).Return(nil) bankKeeper.EXPECT().SendCoinsFromModuleToAccount(ctx, types.ModuleName, payer, validFee.TimeoutFee).Return(fmt.Errorf("bank module error")) assert.PanicsWithError(t, panicErrorToCatch.Error(), func() { k.DistributeAcknowledgementFee(ctx, receiver, packet) }) @@ -289,14 +290,14 @@ func TestDistributeTimeoutFee(t *testing.T) { PortId: "transfer", Sequence: 1, } - panicErrorToCatch := sdkerrors.Wrapf(sdkerrors.Wrapf(sdkerrors.ErrKeyNotFound, "no fee info for the given channelID = %s, portID = %s and sequence = %d", invalidPacket.ChannelId, invalidPacket.PortId, invalidPacket.Sequence), "no fee info") + panicErrorToCatch := errors.Wrapf(errors.Wrapf(sdkerrors.ErrKeyNotFound, "no fee info for the given channelID = %s, portID = %s and sequence = %d", invalidPacket.ChannelId, invalidPacket.PortId, invalidPacket.Sequence), "no fee info") assert.PanicsWithError(t, panicErrorToCatch.Error(), func() { k.DistributeTimeoutFee(ctx, receiver, invalidPacket) }) - panicErrorToCatch = sdkerrors.Wrapf(sdkerrors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", receiver.String()), "error distributing timeout fee: receiver = %s, packetID=%v", receiver, packet) + panicErrorToCatch = errors.Wrapf(errors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", receiver.String()), "error distributing timeout fee: receiver = %s, packetID=%v", receiver, packet) bankKeeper.EXPECT().SendCoinsFromModuleToAccount(ctx, types.ModuleName, receiver, validFee.TimeoutFee).Return(fmt.Errorf("bank module error")) assert.PanicsWithError(t, panicErrorToCatch.Error(), func() { k.DistributeTimeoutFee(ctx, receiver, packet) }) - panicErrorToCatch = sdkerrors.Wrapf(sdkerrors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", payer.String()), "error distributing unused ack fee: receiver = %s, packetID=%v", receiver, packet) + panicErrorToCatch = errors.Wrapf(errors.Wrapf(fmt.Errorf("bank module error"), "error distributing fee to a receiver: %s", payer.String()), "error distributing unused ack fee: receiver = %s, packetID=%v", receiver, packet) bankKeeper.EXPECT().SendCoinsFromModuleToAccount(ctx, types.ModuleName, receiver, validFee.TimeoutFee).Return(nil) bankKeeper.EXPECT().SendCoinsFromModuleToAccount(ctx, types.ModuleName, payer, validFee.AckFee).Return(fmt.Errorf("bank module error")) assert.PanicsWithError(t, panicErrorToCatch.Error(), func() { k.DistributeTimeoutFee(ctx, receiver, packet) }) diff --git a/x/feerefunder/module.go b/x/feerefunder/module.go index d70e2ac79..76b93d50a 100644 --- a/x/feerefunder/module.go +++ b/x/feerefunder/module.go @@ -2,10 +2,11 @@ package feerefunder import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + // this line is used by starport scaffolding # 1 "github.com/gorilla/mux" diff --git a/x/feerefunder/types/codec.go b/x/feerefunder/types/codec.go index 4cf72fc56..abaf590aa 100644 --- a/x/feerefunder/types/codec.go +++ b/x/feerefunder/types/codec.go @@ -3,6 +3,7 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" ) func RegisterCodec(_ *codec.LegacyAmino) { @@ -12,7 +13,7 @@ func RegisterCodec(_ *codec.LegacyAmino) { func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { // this line is used by starport scaffolding # 3 - //msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } var ( diff --git a/x/feerefunder/types/fee.go b/x/feerefunder/types/fee.go index fbbd72a6c..a3e09440d 100644 --- a/x/feerefunder/types/fee.go +++ b/x/feerefunder/types/fee.go @@ -3,6 +3,8 @@ package types import ( "strings" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -42,16 +44,16 @@ func (m Fee) Validate() error { } if len(errFees) > 0 { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "contains invalid fees: %s", strings.Join(errFees, " , ")) + return errors.Wrapf(sdkerrors.ErrInvalidCoins, "contains invalid fees: %s", strings.Join(errFees, " , ")) } if !m.RecvFee.IsZero() { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "recv fee must be zero") + return errors.Wrapf(sdkerrors.ErrInvalidCoins, "recv fee must be zero") } // if ack or timeout fees are zero or empty return an error if m.AckFee.IsZero() || m.TimeoutFee.IsZero() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "ack fee or timeout fee is zero") + return errors.Wrap(sdkerrors.ErrInvalidCoins, "ack fee or timeout fee is zero") } return nil diff --git a/x/feerefunder/types/genesis.go b/x/feerefunder/types/genesis.go index 6ba34ee3e..960ad57c4 100644 --- a/x/feerefunder/types/genesis.go +++ b/x/feerefunder/types/genesis.go @@ -2,6 +2,9 @@ package types import ( "fmt" + + "cosmossdk.io/errors" + // this line is used by starport scaffolding # genesis/types/import wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -28,7 +31,7 @@ func (gs GenesisState) Validate() error { } if len(addr) != wasmtypes.ContractAddrLen { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "fee payer address %s is not a contract", info.Payer) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "fee payer address %s is not a contract", info.Payer) } if err := host.PortIdentifierValidator(info.PacketId.PortId); err != nil { diff --git a/x/feerefunder/types/tx.pb.go b/x/feerefunder/types/tx.pb.go index 9c51b8cd6..978495680 100644 --- a/x/feerefunder/types/tx.pb.go +++ b/x/feerefunder/types/tx.pb.go @@ -2,85 +2,85 @@ // // source: feerefunder/tx.proto package types +import ( + context "context" + fmt "fmt" + math "math" + + _ "github.com/cosmos/cosmos-sdk/types" + _ "github.com/gogo/protobuf/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = 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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("feerefunder/tx.proto", fileDescriptor_af2a0269bf094340) } + +var fileDescriptor_af2a0269bf094340 = []byte{ + // 174 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4b, 0x4d, 0x2d, + 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x92, 0xcb, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xcb, 0x2f, 0x4a, 0xd7, 0x83, 0x32, 0xf5, + 0x90, 0x14, 0x4a, 0xc9, 0x25, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0xea, + 0x97, 0x19, 0x26, 0xa5, 0x96, 0x24, 0x1a, 0xea, 0x27, 0xe7, 0x67, 0xe6, 0x41, 0xf4, 0x4b, 0x89, + 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x44, 0xd4, 0x88, 0x95, 0x8b, 0xd9, 0xb7, + 0x38, 0xdd, 0xc9, 0xe7, 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, 0x8c, 0xd2, + 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xa1, 0xd6, 0xea, 0xe6, 0x17, 0xa5, + 0xc3, 0xd8, 0xfa, 0x15, 0xfa, 0x28, 0xae, 0xad, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x9b, 0x6d, + 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x8f, 0xb3, 0x6d, 0xc9, 0x00, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ context.Context + _ 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. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. // -//import ( -// context "context" -// fmt "fmt" -// math "math" -// -// _ "github.com/cosmos/cosmos-sdk/types" -// _ "github.com/gogo/protobuf/gogoproto" -// grpc1 "github.com/gogo/protobuf/grpc" -// proto "github.com/gogo/protobuf/proto" -// grpc "google.golang.org/grpc" -//) -// -//// Reference imports to suppress errors if they are not otherwise used. -//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. -//// A compilation error at this line likely means your copy of the -//// proto package needs to be updated. -//const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// -//func init() { proto.RegisterFile("feerefunder/tx.proto", fileDescriptor_af2a0269bf094340) } -// -//var fileDescriptor_af2a0269bf094340 = []byte{ -// // 174 bytes of a gzipped FileDescriptorProto -// 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4b, 0x4d, 0x2d, -// 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, -// 0x17, 0x92, 0xcb, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xcb, 0x2f, 0x4a, 0xd7, 0x83, 0x32, 0xf5, -// 0x90, 0x14, 0x4a, 0xc9, 0x25, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0xea, -// 0x97, 0x19, 0x26, 0xa5, 0x96, 0x24, 0x1a, 0xea, 0x27, 0xe7, 0x67, 0xe6, 0x41, 0xf4, 0x4b, 0x89, -// 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x44, 0xd4, 0x88, 0x95, 0x8b, 0xd9, 0xb7, -// 0x38, 0xdd, 0xc9, 0xe7, 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, 0x8c, 0xd2, -// 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xa1, 0xd6, 0xea, 0xe6, 0x17, 0xa5, -// 0xc3, 0xd8, 0xfa, 0x15, 0xfa, 0x28, 0xae, 0xad, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x9b, 0x6d, -// 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x8f, 0xb3, 0x6d, 0xc9, 0x00, 0x00, 0x00, -//} -// -//// Reference imports to suppress errors if they are not otherwise used. -//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. -//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 struct { -// cc grpc1.ClientConn -//} -// -//func NewMsgClient(cc grpc1.ClientConn) MsgClient { -// return &msgClient{cc} -//} -// -//// MsgServer is the server API for Msg service. -//type MsgServer interface { -//} -// -//// UnimplementedMsgServer can be embedded to have forward compatible implementations. -//type UnimplementedMsgServer struct { -//} -// -//func RegisterMsgServer(s grpc1.Server, srv MsgServer) { -// s.RegisterService(&_Msg_serviceDesc, srv) -//} -// -//var _Msg_serviceDesc = grpc.ServiceDesc{ -// ServiceName: "neutronorg.neutron.feerefunder.Msg", -// HandlerType: (*MsgServer)(nil), -// Methods: []grpc.MethodDesc{}, -// Streams: []grpc.StreamDesc{}, -// Metadata: "feerefunder/tx.proto", -//} +// 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 struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +// MsgServer is the server API for Msg service. +type MsgServer interface{} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct{} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "neutronorg.neutron.feerefunder.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: "feerefunder/tx.proto", +} diff --git a/x/ibc-hooks/ibc_middleware_test.go b/x/ibc-hooks/ibc_middleware_test.go index 77ae73b7d..9bb9093a4 100644 --- a/x/ibc-hooks/ibc_middleware_test.go +++ b/x/ibc-hooks/ibc_middleware_test.go @@ -6,6 +6,8 @@ import ( "os" "testing" + "cosmossdk.io/math" + wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -33,7 +35,7 @@ func TestIBCHooksTestSuite(t *testing.T) { func (suite *HooksTestSuite) TestOnRecvPacketHooks() { var ( trace transfertypes.DenomTrace - amount sdk.Int + amount math.Int receiver string status testutils.Status ) @@ -334,7 +336,7 @@ func (suite *HooksTestSuite) StoreContractCode(chain *ibctesting.TestChain, addr panic(err) } - codeID, _, err := wasmkeeper.NewDefaultPermissionKeeper(suite.GetNeutronZoneApp(chain).WasmKeeper).Create(chain.GetContext(), addr, wasmCode, &wasmtypes.AccessConfig{Permission: wasmtypes.AccessTypeEverybody, Address: ""}) + codeID, _, err := wasmkeeper.NewDefaultPermissionKeeper(suite.GetNeutronZoneApp(chain).WasmKeeper).Create(chain.GetContext(), addr, wasmCode, &wasmtypes.AccessConfig{Permission: wasmtypes.AccessTypeEverybody}) if err != nil { panic(err) } diff --git a/x/ibc-hooks/ibc_module.go b/x/ibc-hooks/ibc_module.go index 4145d70b7..11ac966cf 100644 --- a/x/ibc-hooks/ibc_module.go +++ b/x/ibc-hooks/ibc_module.go @@ -236,7 +236,7 @@ func (im IBCMiddleware) OnTimeoutPacket( // SendPacket implements the ICS4 Wrapper interface func (im IBCMiddleware) SendPacket( - ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, + ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (sequence uint64, err error) { return im.ICS4Middleware.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data) } diff --git a/x/ibc-hooks/ics4_middleware.go b/x/ibc-hooks/ics4_middleware.go index c3e249302..d866dedd9 100644 --- a/x/ibc-hooks/ics4_middleware.go +++ b/x/ibc-hooks/ics4_middleware.go @@ -1,9 +1,9 @@ package ibchooks import ( + "cosmossdk.io/errors" // external libraries sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/neutron-org/neutron/x/ibc-hooks/types" @@ -32,10 +32,10 @@ func NewICS4Middleware(channelKeeper types.ChannelKeeper, channel porttypes.ICS4 } } -func (i ICS4Middleware) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte) (sequence uint64, err error) { +func (i ICS4Middleware) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte) (sequence uint64, err error) { channel, found := i.channelKeeper.GetChannel(ctx, sourcePort, sourceChannel) if !found { - return 0, sdkerrors.Wrap(channeltypes.ErrChannelNotFound, sourceChannel) + return 0, errors.Wrap(channeltypes.ErrChannelNotFound, sourceChannel) } packet := channeltypes.NewPacket(data, sequence, sourcePort, sourceChannel, diff --git a/x/ibc-hooks/sdkmodule.go b/x/ibc-hooks/sdkmodule.go index 73e73b3cd..6025c665b 100644 --- a/x/ibc-hooks/sdkmodule.go +++ b/x/ibc-hooks/sdkmodule.go @@ -1,8 +1,10 @@ package ibchooks import ( - "cosmossdk.io/core/appmodule" "encoding/json" + + "cosmossdk.io/core/appmodule" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/types/module" diff --git a/x/ibc-hooks/types/errors.go b/x/ibc-hooks/types/errors.go index 9683d397f..3075a14b7 100644 --- a/x/ibc-hooks/types/errors.go +++ b/x/ibc-hooks/types/errors.go @@ -1,15 +1,17 @@ package types -import sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +import ( + "cosmossdk.io/errors" +) var ( ErrBadMetadataFormatMsg = "wasm metadata not properly formatted for: '%v'. %s" ErrBadExecutionMsg = "cannot execute contract: %v" - ErrMsgValidation = sdkerrors.Register("wasm-hooks", 2, "error in wasmhook message validation") - ErrMarshaling = sdkerrors.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet") - ErrInvalidPacket = sdkerrors.Register("wasm-hooks", 4, "invalid packet data") - ErrBadResponse = sdkerrors.Register("wasm-hooks", 5, "cannot create response") - ErrWasmError = sdkerrors.Register("wasm-hooks", 6, "wasm error") - ErrBadSender = sdkerrors.Register("wasm-hooks", 7, "bad sender") + ErrMsgValidation = errors.Register("wasm-hooks", 2, "error in wasmhook message validation") + ErrMarshaling = errors.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet") + ErrInvalidPacket = errors.Register("wasm-hooks", 4, "invalid packet data") + ErrBadResponse = errors.Register("wasm-hooks", 5, "cannot create response") + ErrWasmError = errors.Register("wasm-hooks", 6, "wasm error") + ErrBadSender = errors.Register("wasm-hooks", 7, "bad sender") ) diff --git a/x/interchainqueries/handler.go b/x/interchainqueries/handler.go index 84c8e1cc5..fbe1c03fe 100644 --- a/x/interchainqueries/handler.go +++ b/x/interchainqueries/handler.go @@ -3,6 +3,8 @@ package interchainqueries import ( "fmt" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -28,7 +30,7 @@ func NewHandler(k keeper.Keeper) sdk.Handler { default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) + return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) } } } diff --git a/x/interchainqueries/keeper/grpc_query.go b/x/interchainqueries/keeper/grpc_query.go index bef7174fb..a1f040597 100644 --- a/x/interchainqueries/keeper/grpc_query.go +++ b/x/interchainqueries/keeper/grpc_query.go @@ -3,9 +3,10 @@ package keeper import ( "context" + "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" querytypes "github.com/cosmos/cosmos-sdk/types/query" contypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" tndtypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" @@ -23,7 +24,7 @@ func (k Keeper) RegisteredQuery(goCtx context.Context, request *types.QueryRegis registeredQuery, err := k.GetQueryByID(ctx, request.QueryId) if err != nil { - return nil, sdkerrors.Wrapf(types.ErrInvalidQueryID, "failed to get registered query by query id: %v", err) + return nil, errors.Wrapf(types.ErrInvalidQueryID, "failed to get registered query by query id: %v", err) } return &types.QueryRegisteredQueryResponse{RegisteredQuery: registeredQuery}, nil @@ -78,12 +79,12 @@ func (k Keeper) QueryResult(goCtx context.Context, request *types.QueryRegistere ctx := sdk.UnwrapSDKContext(goCtx) if !k.checkRegisteredQueryExists(ctx, request.QueryId) { - return nil, sdkerrors.Wrapf(types.ErrInvalidQueryID, "query with id %d doesn't exist", request.QueryId) + return nil, errors.Wrapf(types.ErrInvalidQueryID, "query with id %d doesn't exist", request.QueryId) } result, err := k.GetQueryResultByID(ctx, request.QueryId) if err != nil { - return nil, sdkerrors.Wrapf(err, "failed to get query result by query id: %v", err) + return nil, errors.Wrapf(err, "failed to get query result by query id: %v", err) } return &types.QueryRegisteredQueryResultResponse{Result: result}, nil } @@ -92,14 +93,14 @@ func (k Keeper) LastRemoteHeight(goCtx context.Context, request *types.QueryLast req := contypes.QueryConnectionClientStateRequest{ConnectionId: request.ConnectionId} r, err := k.ibcKeeper.ConnectionClientState(goCtx, &req) if err != nil { - return nil, sdkerrors.Wrapf(types.ErrInvalidConnectionID, "connection not found") + return nil, errors.Wrapf(types.ErrInvalidConnectionID, "connection not found") } clientState := r.GetIdentifiedClientState().GetClientState() m := new(tndtypes.ClientState) err = proto.Unmarshal(clientState.Value, m) if err != nil { - return nil, sdkerrors.Wrapf(types.ErrProtoUnmarshal, "can't unmarshal client state") + return nil, errors.Wrapf(types.ErrProtoUnmarshal, "can't unmarshal client state") } return &types.QueryLastRemoteHeightResponse{Height: m.LatestHeight.RevisionHeight}, nil diff --git a/x/interchainqueries/keeper/keeper.go b/x/interchainqueries/keeper/keeper.go index 6c6e08982..731fcdea1 100644 --- a/x/interchainqueries/keeper/keeper.go +++ b/x/interchainqueries/keeper/keeper.go @@ -4,12 +4,13 @@ import ( "fmt" "time" + "cosmossdk.io/errors" + "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" tendermintLightClientTypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" @@ -79,7 +80,7 @@ func (k Keeper) SaveQuery(ctx sdk.Context, query *types.RegisteredQuery) error { store := ctx.KVStore(k.storeKey) bz, err := k.cdc.Marshal(query) if err != nil { - return sdkerrors.Wrapf(types.ErrProtoMarshal, "failed to marshal registered query: %v", err) + return errors.Wrapf(types.ErrProtoMarshal, "failed to marshal registered query: %v", err) } store.Set(types.GetRegisteredQueryByIDKey(query.Id), bz) @@ -93,12 +94,12 @@ func (k Keeper) GetQueryByID(ctx sdk.Context, id uint64) (*types.RegisteredQuery bz := store.Get(types.GetRegisteredQueryByIDKey(id)) if bz == nil { - return nil, sdkerrors.Wrapf(types.ErrInvalidQueryID, "there is no query with id: %v", id) + return nil, errors.Wrapf(types.ErrInvalidQueryID, "there is no query with id: %v", id) } var query types.RegisteredQuery if err := k.cdc.Unmarshal(bz, &query); err != nil { - return nil, sdkerrors.Wrapf(types.ErrProtoUnmarshal, "failed to unmarshal registered query: %v", err) + return nil, errors.Wrapf(types.ErrProtoUnmarshal, "failed to unmarshal registered query: %v", err) } return &query, nil @@ -184,7 +185,7 @@ func (k Keeper) TxQueriesCleanup(ctx sdk.Context) { func (k Keeper) SaveKVQueryResult(ctx sdk.Context, queryID uint64, result *types.QueryResult) error { query, err := k.getRegisteredQueryByID(ctx, queryID) if err != nil { - return sdkerrors.Wrap(err, "failed to get registered query") + return errors.Wrap(err, "failed to get registered query") } return k.saveKVQueryResult(ctx, query, result) @@ -218,7 +219,7 @@ func (k Keeper) GetQueryResultByID(ctx sdk.Context, id uint64) (*types.QueryResu var query types.QueryResult if err := k.cdc.Unmarshal(bz, &query); err != nil { - return nil, sdkerrors.Wrapf(types.ErrProtoUnmarshal, "failed to unmarshal registered query: %v", err) + return nil, errors.Wrapf(types.ErrProtoUnmarshal, "failed to unmarshal registered query: %v", err) } return &query, nil @@ -227,7 +228,7 @@ func (k Keeper) GetQueryResultByID(ctx sdk.Context, id uint64) (*types.QueryResu func (k Keeper) UpdateLastLocalHeight(ctx sdk.Context, queryID, newLocalHeight uint64) error { query, err := k.getRegisteredQueryByID(ctx, queryID) if err != nil { - return sdkerrors.Wrap(err, "failed to get registered query") + return errors.Wrap(err, "failed to get registered query") } query.LastSubmittedResultLocalHeight = newLocalHeight @@ -240,11 +241,11 @@ func (k Keeper) UpdateLastLocalHeight(ctx sdk.Context, queryID, newLocalHeight u func (k Keeper) UpdateLastRemoteHeight(ctx sdk.Context, queryID uint64, newRemoteHeight ibcclienttypes.Height) error { query, err := k.getRegisteredQueryByID(ctx, queryID) if err != nil { - return sdkerrors.Wrap(err, "failed to get registered query") + return errors.Wrap(err, "failed to get registered query") } if err := k.checkLastRemoteHeight(ctx, *query, newRemoteHeight); err != nil { - return sdkerrors.Wrap(types.ErrInvalidHeight, err.Error()) + return errors.Wrap(types.ErrInvalidHeight, err.Error()) } k.updateLastRemoteHeight(ctx, query, newRemoteHeight) return k.SaveQuery(ctx, query) @@ -258,14 +259,14 @@ func (k Keeper) saveKVQueryResult(ctx sdk.Context, query *types.RegisteredQuery, cleanResult := clearQueryResult(result) bz, err := k.cdc.Marshal(&cleanResult) if err != nil { - return sdkerrors.Wrapf(types.ErrProtoMarshal, "failed to marshal result result: %v", err) + return errors.Wrapf(types.ErrProtoMarshal, "failed to marshal result result: %v", err) } store.Set(types.GetRegisteredQueryResultByIDKey(query.Id), bz) k.updateLastRemoteHeight(ctx, query, ibcclienttypes.NewHeight(result.Revision, result.Height)) k.updateLastLocalHeight(ctx, query, uint64(ctx.BlockHeight())) if err := k.SaveQuery(ctx, query); err != nil { - return sdkerrors.Wrapf(err, "failed to save query %d: %v", query.Id, err) + return errors.Wrapf(err, "failed to save query %d: %v", query.Id, err) } k.Logger(ctx).Debug("Successfully saved query result", "result", &result) @@ -297,12 +298,12 @@ func (k Keeper) getRegisteredQueryByID(ctx sdk.Context, queryID uint64) (*types. store := ctx.KVStore(k.storeKey) bz := store.Get(types.GetRegisteredQueryByIDKey(queryID)) if bz == nil { - return nil, sdkerrors.Wrapf(types.ErrInvalidQueryID, "query with ID %d not found", queryID) + return nil, errors.Wrapf(types.ErrInvalidQueryID, "query with ID %d not found", queryID) } var query types.RegisteredQuery if err := k.cdc.Unmarshal(bz, &query); err != nil { - return nil, sdkerrors.Wrapf(types.ErrProtoUnmarshal, "failed to unmarshal registered query: %v", err) + return nil, errors.Wrapf(types.ErrProtoUnmarshal, "failed to unmarshal registered query: %v", err) } return &query, nil } @@ -338,12 +339,12 @@ func (k Keeper) checkRegisteredQueryExists(ctx sdk.Context, id uint64) bool { func (k Keeper) GetClientState(ctx sdk.Context, clientID string) (*tendermintLightClientTypes.ClientState, error) { clientStateResponse, ok := k.ibcKeeper.ClientKeeper.GetClientState(ctx, clientID) if !ok { - return nil, sdkerrors.Wrapf(types.ErrInvalidClientID, "could not find a ClientState with client id: %s", clientID) + return nil, errors.Wrapf(types.ErrInvalidClientID, "could not find a ClientState with client id: %s", clientID) } clientState, ok := clientStateResponse.(*tendermintLightClientTypes.ClientState) if !ok { - return nil, sdkerrors.Wrapf(ibcclienttypes.ErrInvalidClientType, "cannot cast ClientState interface into ClientState type") + return nil, errors.Wrapf(ibcclienttypes.ErrInvalidClientType, "cannot cast ClientState interface into ClientState type") } return clientState, nil diff --git a/x/interchainqueries/keeper/keeper_test.go b/x/interchainqueries/keeper/keeper_test.go index e4f23a4e3..beaca0287 100644 --- a/x/interchainqueries/keeper/keeper_test.go +++ b/x/interchainqueries/keeper/keeper_test.go @@ -3,9 +3,10 @@ package keeper_test import ( "encoding/hex" "fmt" - ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" "testing" + ibchost "github.com/cosmos/ibc-go/v7/modules/core/exported" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/suite" diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 8b2254077..4ce0942a2 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -4,11 +4,14 @@ import ( "bytes" "context" "fmt" - tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "net/url" "strconv" "time" + "cosmossdk.io/errors" + + tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" + "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -39,17 +42,17 @@ func (k msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.Msg senderAddr, err := sdk.AccAddressFromBech32(msg.Sender) if err != nil { k.Logger(ctx).Debug("RegisterInterchainQuery: failed to parse sender address", "sender_address", msg.Sender) - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) + return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } if !k.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { k.Logger(ctx).Debug("RegisterInterchainQuery: contract not found", "sender_address", msg.Sender) - return nil, sdkerrors.Wrapf(types.ErrNotContract, "%s is not a contract address", msg.Sender) + return nil, errors.Wrapf(types.ErrNotContract, "%s is not a contract address", msg.Sender) } if _, err := k.ibcKeeper.ConnectionKeeper.Connection(goCtx, &ibcconnectiontypes.QueryConnectionRequest{ConnectionId: msg.ConnectionId}); err != nil { ctx.Logger().Debug("RegisterInterchainQuery: failed to get connection with ID", "message", msg) - return nil, sdkerrors.Wrapf(types.ErrInvalidConnectionID, "failed to get connection with ID '%s': %v", msg.ConnectionId, err) + return nil, errors.Wrapf(types.ErrInvalidConnectionID, "failed to get connection with ID '%s': %v", msg.ConnectionId, err) } lastID := k.GetLastRegisteredQueryKey(ctx) @@ -74,12 +77,12 @@ func (k msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.Msg if err := k.CollectDeposit(ctx, *registeredQuery); err != nil { ctx.Logger().Debug("RegisterInterchainQuery: failed to collect deposit", "message", &msg, "error", err) - return nil, sdkerrors.Wrapf(err, "failed to collect deposit") + return nil, errors.Wrapf(err, "failed to collect deposit") } if err := k.SaveQuery(ctx, registeredQuery); err != nil { ctx.Logger().Debug("RegisterInterchainQuery: failed to save query", "message", &msg, "error", err) - return nil, sdkerrors.Wrapf(err, "failed to save query: %v", err) + return nil, errors.Wrapf(err, "failed to save query: %v", err) } ctx.EventManager().EmitEvents(getEventsQueryUpdated(registeredQuery)) @@ -95,13 +98,13 @@ func (k msgServer) RemoveInterchainQuery(goCtx context.Context, msg *types.MsgRe if err != nil { ctx.Logger().Debug("RemoveInterchainQuery: failed to GetQueryByID", "error", err, "query_id", msg.QueryId) - return nil, sdkerrors.Wrapf(err, "failed to get query by query id: %v", err) + return nil, errors.Wrapf(err, "failed to get query by query id: %v", err) } if err := query.ValidateRemoval(ctx, msg.GetSender()); err != nil { ctx.Logger().Debug("RemoveInterchainQuery: authorization failed", "error", err, "msg", msg) - return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, err.Error()) + return nil, errors.Wrap(sdkerrors.ErrUnauthorized, err.Error()) } k.RemoveQuery(ctx, query) @@ -118,19 +121,19 @@ func (k msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUp if err != nil { ctx.Logger().Debug("UpdateInterchainQuery: failed to GetQueryByID", "error", err, "query_id", msg.QueryId) - return nil, sdkerrors.Wrapf(err, "failed to get query by query id: %v", err) + return nil, errors.Wrapf(err, "failed to get query by query id: %v", err) } if query.GetOwner() != msg.GetSender() { ctx.Logger().Debug("UpdateInterchainQuery: authorization failed", "msg", msg) - return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "authorization failed") + return nil, errors.Wrap(sdkerrors.ErrUnauthorized, "authorization failed") } if err := k.validateUpdateInterchainQueryParams(query, msg); err != nil { ctx.Logger().Debug("UpdateInterchainQuery: invalid request", "error", err, "query_id", msg.QueryId) - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, errors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) } if msg.GetNewUpdatePeriod() > 0 { query.UpdatePeriod = msg.GetNewUpdatePeriod() @@ -144,7 +147,7 @@ func (k msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUp if err := k.SaveQuery(ctx, query); err != nil { ctx.Logger().Debug("UpdateInterchainQuery: failed to save query", "message", &msg, "error", err) - return nil, sdkerrors.Wrapf(err, "failed to save query by query id: %v", err) + return nil, errors.Wrapf(err, "failed to save query by query id: %v", err) } ctx.EventManager().EmitEvents(getEventsQueryUpdated(query)) @@ -162,25 +165,25 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to GetQueryByID", "error", err, "query_id", msg.QueryId) - return nil, sdkerrors.Wrapf(err, "failed to get query by id: %v", err) + return nil, errors.Wrapf(err, "failed to get query by id: %v", err) } queryOwner, err := sdk.AccAddressFromBech32(query.Owner) if err != nil { ctx.Logger().Error("SubmitQueryResult: failed to decode AccAddressFromBech32", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(err, "failed to decode owner contract address (%s)", query.Owner) + return nil, errors.Wrapf(err, "failed to decode owner contract address (%s)", query.Owner) } if msg.Result.KvResults != nil { if !types.InterchainQueryType(query.QueryType).IsKV() { - return nil, sdkerrors.Wrapf(types.ErrInvalidType, "invalid query result for query type: %s", query.QueryType) + return nil, errors.Wrapf(types.ErrInvalidType, "invalid query result for query type: %s", query.QueryType) } if err := k.checkLastRemoteHeight(ctx, *query, ibcclienttypes.NewHeight(msg.Result.Revision, msg.Result.Height)); err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidHeight, err.Error()) + return nil, errors.Wrap(types.ErrInvalidHeight, err.Error()) } if len(msg.Result.KvResults) != len(query.Keys) { - return nil, sdkerrors.Wrapf(types.ErrInvalidSubmittedResult, "KV keys length from result is not equal to registered query keys length: %v != %v", len(msg.Result.KvResults), len(query.Keys)) + return nil, errors.Wrapf(types.ErrInvalidSubmittedResult, "KV keys length from result is not equal to registered query keys length: %v != %v", len(msg.Result.KvResults), len(query.Keys)) } resp, err := k.ibcKeeper.ConnectionConsensusState(goCtx, &ibcconnectiontypes.QueryConnectionConsensusStateRequest{ @@ -191,7 +194,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to get ConnectionConsensusState", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(ibcclienttypes.ErrConsensusStateNotFound, "failed to get consensus state: %v", err) + return nil, errors.Wrapf(ibcclienttypes.ErrConsensusStateNotFound, "failed to get consensus state: %v", err) } consensusStateI, err := ibcclienttypes.UnpackConsensusState(resp.ConsensusState) if err != nil { @@ -204,7 +207,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if !ok { ctx.Logger().Error("SubmitQueryResult: failed to cast exported.ConsensusState to *tendermint.ConsensusState", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(sdkerrors.ErrUnpackAny, "failed to cast interface exported.ConsensusState to type *tendermint.ConsensusState") + return nil, errors.Wrapf(sdkerrors.ErrUnpackAny, "failed to cast interface exported.ConsensusState to type *tendermint.ConsensusState") } clientState, err := k.GetClientState(ctx, msg.ClientId) @@ -217,15 +220,15 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to ConvertProofs", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(types.ErrInvalidType, "failed to convert crypto.ProofOps to MerkleProof: %v", err) + return nil, errors.Wrapf(types.ErrInvalidType, "failed to convert crypto.ProofOps to MerkleProof: %v", err) } if !bytes.Equal(result.Key, query.Keys[index].Key) { - return nil, sdkerrors.Wrapf(types.ErrInvalidSubmittedResult, "KV key from result is not equal to registered query key: %v != %v", result.Key, query.Keys[index].Key) + return nil, errors.Wrapf(types.ErrInvalidSubmittedResult, "KV key from result is not equal to registered query key: %v != %v", result.Key, query.Keys[index].Key) } if result.StoragePrefix != query.Keys[index].Path { - return nil, sdkerrors.Wrapf(types.ErrInvalidSubmittedResult, "KV path from result is not equal to registered query storage prefix: %v != %v", result.StoragePrefix, query.Keys[index].Path) + return nil, errors.Wrapf(types.ErrInvalidSubmittedResult, "KV path from result is not equal to registered query storage prefix: %v != %v", result.StoragePrefix, query.Keys[index].Path) } path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, url.PathEscape(string(result.Key))) @@ -237,24 +240,24 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if err := proof.VerifyNonMembership(clientState.ProofSpecs, consensusState.GetRoot(), path); err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to VerifyNonMembership", "error", err, "query", query, "message", msg, "path", path) - return nil, sdkerrors.Wrapf(types.ErrInvalidProof, "failed to verify proof: %v", err) + return nil, errors.Wrapf(types.ErrInvalidProof, "failed to verify proof: %v", err) } result.Value = nil case *ics23.CommitmentProof_Exist: if err := proof.VerifyMembership(clientState.ProofSpecs, consensusState.GetRoot(), path, result.Value); err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to VerifyMembership", "error", err, "query", query, "message", msg, "path", path) - return nil, sdkerrors.Wrapf(types.ErrInvalidProof, "failed to verify proof: %v", err) + return nil, errors.Wrapf(types.ErrInvalidProof, "failed to verify proof: %v", err) } default: - return nil, sdkerrors.Wrapf(types.ErrInvalidProof, "unknown proof type %T", proof.GetProofs()[0].GetProof()) + return nil, errors.Wrapf(types.ErrInvalidProof, "unknown proof type %T", proof.GetProofs()[0].GetProof()) } } if err = k.saveKVQueryResult(ctx, query, msg.Result); err != nil { ctx.Logger().Error("SubmitQueryResult: failed to SaveKVQueryResult", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(err, "failed to SaveKVQueryResult: %v", err) + return nil, errors.Wrapf(err, "failed to SaveKVQueryResult: %v", err) } if msg.Result.GetAllowKvCallbacks() { @@ -262,7 +265,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if _, err := k.contractManagerKeeper.SudoKVQueryResult(ctx, queryOwner, query.Id); err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to SudoKVQueryResult", "error", err, "query_id", query.GetId()) - return nil, sdkerrors.Wrapf(err, "contract %s rejected KV query result (query_id: %d)", + return nil, errors.Wrapf(err, "contract %s rejected KV query result (query_id: %d)", queryOwner, query.GetId()) } return &types.MsgSubmitQueryResultResponse{}, nil @@ -271,17 +274,17 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if msg.Result.Block != nil && msg.Result.Block.Tx != nil { if !types.InterchainQueryType(query.QueryType).IsTX() { - return nil, sdkerrors.Wrapf(types.ErrInvalidType, "invalid query result for query type: %s", query.QueryType) + return nil, errors.Wrapf(types.ErrInvalidType, "invalid query result for query type: %s", query.QueryType) } if err := k.ProcessBlock(ctx, queryOwner, msg.QueryId, msg.ClientId, msg.Result.Block); err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to ProcessBlock", "error", err, "query", query, "message", msg) - return nil, sdkerrors.Wrapf(err, "failed to ProcessBlock: %v", err) + return nil, errors.Wrapf(err, "failed to ProcessBlock: %v", err) } if err = k.UpdateLastLocalHeight(ctx, query.Id, uint64(ctx.BlockHeight())); err != nil { - return nil, sdkerrors.Wrapf(err, + return nil, errors.Wrapf(err, "failed to update last local height for a result with id %d: %v", query.Id, err) } } diff --git a/x/interchainqueries/keeper/process_block_results.go b/x/interchainqueries/keeper/process_block_results.go index 02b4a3408..f00e55b7e 100644 --- a/x/interchainqueries/keeper/process_block_results.go +++ b/x/interchainqueries/keeper/process_block_results.go @@ -4,6 +4,8 @@ import ( "bytes" "encoding/hex" + "cosmossdk.io/errors" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" clientkeeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper" @@ -11,7 +13,6 @@ import ( "github.com/cometbft/cometbft/crypto/merkle" tmtypes "github.com/cometbft/cometbft/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" "github.com/cosmos/ibc-go/v7/modules/core/exported" tendermintLightClientTypes "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" @@ -33,24 +34,24 @@ func deterministicResponseDeliverTx(response *abci.ResponseDeliverTx) *abci.Resp // checkHeadersOrder do some basic checks to verify that nextHeader is really next for the header func checkHeadersOrder(header, nextHeader *tendermintLightClientTypes.Header) error { if nextHeader.Header.Height != header.Header.Height+1 { - return sdkerrors.Wrapf(types.ErrInvalidHeader, "nextHeader.Height (%d) is not actually next for a header with height %d", nextHeader.Header.Height, header.Header.Height) + return errors.Wrapf(types.ErrInvalidHeader, "nextHeader.Height (%d) is not actually next for a header with height %d", nextHeader.Header.Height, header.Header.Height) } tmHeader, err := tmtypes.HeaderFromProto(header.Header) if err != nil { - return sdkerrors.Wrapf(types.ErrInvalidHeader, "failed to get tendermint header from proto header: %v", err) + return errors.Wrapf(types.ErrInvalidHeader, "failed to get tendermint header from proto header: %v", err) } tmNextHeader, err := tmtypes.HeaderFromProto(nextHeader.Header) if err != nil { - return sdkerrors.Wrapf(types.ErrInvalidHeader, "failed to get tendermint header from proto header: %v", err) + return errors.Wrapf(types.ErrInvalidHeader, "failed to get tendermint header from proto header: %v", err) } if !bytes.Equal(tmHeader.NextValidatorsHash, tmNextHeader.ValidatorsHash) { - return sdkerrors.Wrapf(types.ErrInvalidHeader, "header.NextValidatorsHash is not equal to nextHeader.ValidatorsHash: %s != %s", tmHeader.NextValidatorsHash.String(), tmNextHeader.ValidatorsHash.String()) + return errors.Wrapf(types.ErrInvalidHeader, "header.NextValidatorsHash is not equal to nextHeader.ValidatorsHash: %s != %s", tmHeader.NextValidatorsHash.String(), tmNextHeader.ValidatorsHash.String()) } if !bytes.Equal(tmHeader.Hash(), tmNextHeader.LastBlockID.Hash) { - return sdkerrors.Wrapf(types.ErrInvalidHeader, "header.Hash() is not equal to nextHeader.LastBlockID.Hash: %s != %s", tmHeader.Hash().String(), tmNextHeader.LastBlockID.Hash.String()) + return errors.Wrapf(types.ErrInvalidHeader, "header.Hash() is not equal to nextHeader.LastBlockID.Hash: %s != %s", tmHeader.Hash().String(), tmNextHeader.LastBlockID.Hash.String()) } return nil @@ -66,25 +67,25 @@ func (v Verifier) VerifyHeaders(ctx sdk.Context, clientKeeper clientkeeper.Keepe // Honestly we need only to verify headers, but since the check functions are private, and we don't want to duplicate the code, // we update consensus state at the same time (because why not?) if err := clientKeeper.UpdateClient(ctx, clientID, header); err != nil { - return sdkerrors.Wrapf(err, "failed to update client: %v", err) + return errors.Wrapf(err, "failed to update client: %v", err) } if err := clientKeeper.UpdateClient(ctx, clientID, nextHeader); err != nil { - return sdkerrors.Wrapf(err, "failed to update client: %v", err) + return errors.Wrapf(err, "failed to update client: %v", err) } tmHeader, ok := header.(*tendermintLightClientTypes.Header) if !ok { - return sdkerrors.Wrapf(types.ErrInvalidType, "failed to cast header to tendermint Header") + return errors.Wrapf(types.ErrInvalidType, "failed to cast header to tendermint Header") } tmNextHeader, ok := nextHeader.(*tendermintLightClientTypes.Header) if !ok { - return sdkerrors.Wrapf(types.ErrInvalidType, "failed to cast header to tendermint Header") + return errors.Wrapf(types.ErrInvalidType, "failed to cast header to tendermint Header") } // do some basic check to verify that tmNextHeader is next for the tmHeader if err := checkHeadersOrder(tmHeader, tmNextHeader); err != nil { - return sdkerrors.Wrapf(types.ErrInvalidHeader, "block.NextBlockHeader is not next for the block.Header: %v", err) + return errors.Wrapf(types.ErrInvalidHeader, "block.NextBlockHeader is not next for the block.Header: %v", err) } return nil @@ -100,30 +101,30 @@ func (k Keeper) ProcessBlock(ctx sdk.Context, queryOwner sdk.AccAddress, queryID header, err := k.headerVerifier.UnpackHeader(block.Header) if err != nil { ctx.Logger().Debug("ProcessBlock: failed to unpack block header", "error", err) - return sdkerrors.Wrapf(types.ErrProtoUnmarshal, "failed to unpack block header: %v", err) + return errors.Wrapf(types.ErrProtoUnmarshal, "failed to unpack block header: %v", err) } nextHeader, err := k.headerVerifier.UnpackHeader(block.NextBlockHeader) if err != nil { ctx.Logger().Debug("ProcessBlock: failed to unpack block header", "error", err) - return sdkerrors.Wrapf(types.ErrProtoUnmarshal, "failed to unpack next block header: %v", err) + return errors.Wrapf(types.ErrProtoUnmarshal, "failed to unpack next block header: %v", err) } if err := k.headerVerifier.VerifyHeaders(ctx, k.ibcKeeper.ClientKeeper, clientID, header, nextHeader); err != nil { ctx.Logger().Debug("ProcessBlock: failed to verify headers", "error", err) - return sdkerrors.Wrapf(types.ErrInvalidHeader, "failed to verify headers: %v", err) + return errors.Wrapf(types.ErrInvalidHeader, "failed to verify headers: %v", err) } tmHeader, ok := header.(*tendermintLightClientTypes.Header) if !ok { ctx.Logger().Debug("ProcessBlock: failed to cast current header to tendermint Header", "query_id", queryID) - return sdkerrors.Wrap(types.ErrInvalidType, "failed to cast current header to tendermint Header") + return errors.Wrap(types.ErrInvalidType, "failed to cast current header to tendermint Header") } tmNextHeader, ok := nextHeader.(*tendermintLightClientTypes.Header) if !ok { ctx.Logger().Debug("ProcessBlock: failed to cast next header to tendermint Header", "query_id", queryID) - return sdkerrors.Wrap(types.ErrInvalidType, "failed to cast next header to tendermint header") + return errors.Wrap(types.ErrInvalidType, "failed to cast next header to tendermint header") } var ( @@ -136,14 +137,14 @@ func (k Keeper) ProcessBlock(ctx sdk.Context, queryOwner sdk.AccAddress, queryID if err = k.transactionVerifier.VerifyTransaction(tmHeader, tmNextHeader, tx); err != nil { ctx.Logger().Debug("ProcessBlock: failed to verifyTransaction", "error", err, "query_id", queryID, "tx_hash", hex.EncodeToString(txHash)) - return sdkerrors.Wrapf(types.ErrInternal, "failed to verifyTransaction %s: %v", hex.EncodeToString(txHash), err) + return errors.Wrapf(types.ErrInternal, "failed to verifyTransaction %s: %v", hex.EncodeToString(txHash), err) } // Let the query owner contract process the query result. if _, err := k.contractManagerKeeper.SudoTxQueryResult(ctx, queryOwner, queryID, ibcclienttypes.NewHeight(tmHeader.TrustedHeight.GetRevisionNumber(), uint64(tmHeader.Header.Height)), txData); err != nil { ctx.Logger().Debug("ProcessBlock: failed to SudoTxQueryResult", "error", err, "query_id", queryID, "tx_hash", hex.EncodeToString(txHash)) - return sdkerrors.Wrapf(err, "contract %s rejected transaction query result (tx_hash: %s)", + return errors.Wrapf(err, "contract %s rejected transaction query result (tx_hash: %s)", queryOwner, hex.EncodeToString(txHash)) } @@ -172,38 +173,38 @@ func (v TransactionVerifier) VerifyTransaction( // verify inclusion proof inclusionProof, err := merkle.ProofFromProto(tx.InclusionProof) if err != nil { - return sdkerrors.Wrapf(types.ErrInvalidType, "failed to convert proto proof to merkle proof: %v", err) + return errors.Wrapf(types.ErrInvalidType, "failed to convert proto proof to merkle proof: %v", err) } if err = inclusionProof.Verify(header.Header.DataHash, tmtypes.Tx(tx.Data).Hash()); err != nil { - return sdkerrors.Wrapf(types.ErrInvalidProof, "failed to verify inclusion proof: %v", err) + return errors.Wrapf(types.ErrInvalidProof, "failed to verify inclusion proof: %v", err) } // verify delivery proof deliveryProof, err := merkle.ProofFromProto(tx.DeliveryProof) if err != nil { - return sdkerrors.Wrapf(types.ErrInvalidType, "failed to convert proto proof to merkle proof: %v", err) + return errors.Wrapf(types.ErrInvalidType, "failed to convert proto proof to merkle proof: %v", err) } responseTx := deterministicResponseDeliverTx(tx.Response) responseTxBz, err := responseTx.Marshal() if err != nil { - return sdkerrors.Wrapf(types.ErrProtoMarshal, "failed to marshal ResponseDeliveryTx: %v", err) + return errors.Wrapf(types.ErrProtoMarshal, "failed to marshal ResponseDeliveryTx: %v", err) } if err = deliveryProof.Verify(nextHeader.Header.LastResultsHash, responseTxBz); err != nil { - return sdkerrors.Wrapf(types.ErrInvalidProof, "failed to verify delivery proof: %v", err) + return errors.Wrapf(types.ErrInvalidProof, "failed to verify delivery proof: %v", err) } // check that transaction was successful if tx.Response.Code != abci.CodeTypeOK { - return sdkerrors.Wrapf(types.ErrInternal, "tx %s is unsuccessful: ResponseDelivery.Code = %d", hex.EncodeToString(tmtypes.Tx(tx.Data).Hash()), tx.Response.Code) + return errors.Wrapf(types.ErrInternal, "tx %s is unsuccessful: ResponseDelivery.Code = %d", hex.EncodeToString(tmtypes.Tx(tx.Data).Hash()), tx.Response.Code) } // check that inclusion proof and delivery proof are for the same transaction if deliveryProof.Index != inclusionProof.Index { - return sdkerrors.Wrapf(types.ErrInvalidProof, "inclusion proof index and delivery proof index are not equal: %d != %d", inclusionProof.Index, deliveryProof.Index) + return errors.Wrapf(types.ErrInvalidProof, "inclusion proof index and delivery proof index are not equal: %d != %d", inclusionProof.Index, deliveryProof.Index) } return nil diff --git a/x/interchainqueries/keeper/process_block_results_test.go b/x/interchainqueries/keeper/process_block_results_test.go index 99a8dde41..8313f6a71 100644 --- a/x/interchainqueries/keeper/process_block_results_test.go +++ b/x/interchainqueries/keeper/process_block_results_test.go @@ -168,7 +168,6 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { { "valid headers", func() error { - //suite.Require().NoError(UpdateClient(suite.Path.EndpointA)) suite.Require().NoError(suite.Path.EndpointA.UpdateClient()) clientID := suite.Path.EndpointA.ClientID @@ -282,7 +281,6 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { err = tt.run() if tt.expectedErrorMsg != "" { - //suite.Require().ErrorAs(err, tt.expectedError) suite.Require().ErrorContains(err, tt.expectedErrorMsg) } else { suite.Require().NoError(err) diff --git a/x/interchainqueries/module.go b/x/interchainqueries/module.go index 6e3aed28d..1a1dc65eb 100644 --- a/x/interchainqueries/module.go +++ b/x/interchainqueries/module.go @@ -2,10 +2,11 @@ package interchainqueries import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/interchainqueries/types/errors.go b/x/interchainqueries/types/errors.go index c35a02d0b..4a3213ccc 100644 --- a/x/interchainqueries/types/errors.go +++ b/x/interchainqueries/types/errors.go @@ -1,31 +1,31 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/interchainqueries module sentinel errors var ( - ErrInvalidQueryID = sdkerrors.Register(ModuleName, 1100, "invalid query id") - ErrEmptyResult = sdkerrors.Register(ModuleName, 1101, "empty result") - ErrInvalidClientID = sdkerrors.Register(ModuleName, 1102, "invalid client id") - ErrInvalidUpdatePeriod = sdkerrors.Register(ModuleName, 1103, "invalid update period") - ErrInvalidConnectionID = sdkerrors.Register(ModuleName, 1104, "invalid connection id") - ErrInvalidQueryType = sdkerrors.Register(ModuleName, 1105, "invalid query type") - ErrInvalidTransactionsFilter = sdkerrors.Register(ModuleName, 1106, "invalid transactions filter") - ErrInvalidSubmittedResult = sdkerrors.Register(ModuleName, 1107, "invalid result") - ErrProtoMarshal = sdkerrors.Register(ModuleName, 1108, "failed to marshal protobuf bytes") - ErrProtoUnmarshal = sdkerrors.Register(ModuleName, 1109, "failed to unmarshal protobuf bytes") - ErrInvalidType = sdkerrors.Register(ModuleName, 1110, "invalid type") - ErrInternal = sdkerrors.Register(ModuleName, 1111, "internal error") - ErrInvalidProof = sdkerrors.Register(ModuleName, 1112, "merkle proof is invalid") - ErrInvalidHeader = sdkerrors.Register(ModuleName, 1113, "header is invalid") - ErrInvalidHeight = sdkerrors.Register(ModuleName, 1114, "height is invalid") - ErrNoQueryResult = sdkerrors.Register(ModuleName, 1115, "no query result") - ErrNotContract = sdkerrors.Register(ModuleName, 1116, "not a contract") - ErrEmptyKeys = sdkerrors.Register(ModuleName, 1117, "keys are empty") - ErrEmptyKeyPath = sdkerrors.Register(ModuleName, 1118, "key path is empty") - ErrEmptyKeyID = sdkerrors.Register(ModuleName, 1119, "key id is empty") - ErrTooManyKVQueryKeys = sdkerrors.Register(ModuleName, 1120, "too many keys") - ErrUnexpectedQueryTypeGenesis = sdkerrors.Register(ModuleName, 1121, "unexpected query type") + ErrInvalidQueryID = errors.Register(ModuleName, 1100, "invalid query id") + ErrEmptyResult = errors.Register(ModuleName, 1101, "empty result") + ErrInvalidClientID = errors.Register(ModuleName, 1102, "invalid client id") + ErrInvalidUpdatePeriod = errors.Register(ModuleName, 1103, "invalid update period") + ErrInvalidConnectionID = errors.Register(ModuleName, 1104, "invalid connection id") + ErrInvalidQueryType = errors.Register(ModuleName, 1105, "invalid query type") + ErrInvalidTransactionsFilter = errors.Register(ModuleName, 1106, "invalid transactions filter") + ErrInvalidSubmittedResult = errors.Register(ModuleName, 1107, "invalid result") + ErrProtoMarshal = errors.Register(ModuleName, 1108, "failed to marshal protobuf bytes") + ErrProtoUnmarshal = errors.Register(ModuleName, 1109, "failed to unmarshal protobuf bytes") + ErrInvalidType = errors.Register(ModuleName, 1110, "invalid type") + ErrInternal = errors.Register(ModuleName, 1111, "internal error") + ErrInvalidProof = errors.Register(ModuleName, 1112, "merkle proof is invalid") + ErrInvalidHeader = errors.Register(ModuleName, 1113, "header is invalid") + ErrInvalidHeight = errors.Register(ModuleName, 1114, "height is invalid") + ErrNoQueryResult = errors.Register(ModuleName, 1115, "no query result") + ErrNotContract = errors.Register(ModuleName, 1116, "not a contract") + ErrEmptyKeys = errors.Register(ModuleName, 1117, "keys are empty") + ErrEmptyKeyPath = errors.Register(ModuleName, 1118, "key path is empty") + ErrEmptyKeyID = errors.Register(ModuleName, 1119, "key id is empty") + ErrTooManyKVQueryKeys = errors.Register(ModuleName, 1120, "too many keys") + ErrUnexpectedQueryTypeGenesis = errors.Register(ModuleName, 1121, "unexpected query type") ) diff --git a/x/interchainqueries/types/genesis.go b/x/interchainqueries/types/genesis.go index 2a57447c4..c00668e58 100644 --- a/x/interchainqueries/types/genesis.go +++ b/x/interchainqueries/types/genesis.go @@ -1,8 +1,8 @@ package types import ( + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // DefaultGenesis returns the default Capability genesis state @@ -23,29 +23,29 @@ func (gs GenesisState) Validate() error { for _, val := range gs.GetRegisteredQueries() { if seenIDs[val.Id] { - return sdkerrors.Wrapf(ErrInvalidQueryID, "duplicate query id: %d", val.Id) + return errors.Wrapf(ErrInvalidQueryID, "duplicate query id: %d", val.Id) } seenIDs[val.Id] = true _, err = sdk.AccAddressFromBech32(val.Owner) if err != nil { - return sdkerrors.Wrapf(err, "Invalid owner address (%s)", err) + return errors.Wrapf(err, "Invalid owner address (%s)", err) } switch val.QueryType { case string(InterchainQueryTypeTX): if err := ValidateTransactionsFilter(val.TransactionsFilter); err != nil { - return sdkerrors.Wrap(ErrInvalidTransactionsFilter, err.Error()) + return errors.Wrap(ErrInvalidTransactionsFilter, err.Error()) } case string(InterchainQueryTypeKV): if len(val.Keys) == 0 { - return sdkerrors.Wrap(ErrEmptyKeys, "keys cannot be empty") + return errors.Wrap(ErrEmptyKeys, "keys cannot be empty") } if err := validateKeys(val.GetKeys()); err != nil { return err } default: - return sdkerrors.Wrapf(ErrUnexpectedQueryTypeGenesis, "Unexpected query type: %s", val.QueryType) + return errors.Wrapf(ErrUnexpectedQueryTypeGenesis, "Unexpected query type: %s", val.QueryType) } } return nil diff --git a/x/interchainqueries/types/message_remove_interchain_query.go b/x/interchainqueries/types/message_remove_interchain_query.go index 1369404f8..d64139663 100644 --- a/x/interchainqueries/types/message_remove_interchain_query.go +++ b/x/interchainqueries/types/message_remove_interchain_query.go @@ -3,6 +3,8 @@ package types import ( "strings" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -26,15 +28,15 @@ func (msg MsgRemoveInterchainQueryRequest) Type() string { func (msg MsgRemoveInterchainQueryRequest) ValidateBasic() error { if msg.GetQueryId() == 0 { - return sdkerrors.Wrap(ErrInvalidQueryID, "query_id cannot be empty or equal to 0") + return errors.Wrap(ErrInvalidQueryID, "query_id cannot be empty or equal to 0") } if strings.TrimSpace(msg.Sender) == "" { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") + return errors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") } if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } return nil diff --git a/x/interchainqueries/types/registered_query.go b/x/interchainqueries/types/registered_query.go index e8b505a4b..87c752a8c 100644 --- a/x/interchainqueries/types/registered_query.go +++ b/x/interchainqueries/types/registered_query.go @@ -3,6 +3,8 @@ package types import ( fmt "fmt" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -10,7 +12,7 @@ import ( func (q *RegisteredQuery) GetOwnerAddress() (creator sdk.AccAddress, err error) { creator, err = sdk.AccAddressFromBech32(q.Owner) if err != nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode owner address: %s", q.Owner) + return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode owner address: %s", q.Owner) } return creator, nil diff --git a/x/interchainqueries/types/tx.go b/x/interchainqueries/types/tx.go index 715c82879..139698e0e 100644 --- a/x/interchainqueries/types/tx.go +++ b/x/interchainqueries/types/tx.go @@ -1,9 +1,11 @@ package types import ( - "github.com/cosmos/ibc-go/v7/modules/core/exported" "strings" + "cosmossdk.io/errors" + "github.com/cosmos/ibc-go/v7/modules/core/exported" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -25,27 +27,27 @@ func (msg MsgSubmitQueryResult) Type() string { func (msg MsgSubmitQueryResult) ValidateBasic() error { if msg.Result == nil { - return sdkerrors.Wrap(ErrEmptyResult, "query result can't be empty") + return errors.Wrap(ErrEmptyResult, "query result can't be empty") } if len(msg.Result.KvResults) == 0 && msg.Result.Block == nil { - return sdkerrors.Wrap(ErrEmptyResult, "query result can't be empty") + return errors.Wrap(ErrEmptyResult, "query result can't be empty") } if msg.QueryId == 0 { - return sdkerrors.Wrap(ErrInvalidQueryID, "query id cannot be equal zero") + return errors.Wrap(ErrInvalidQueryID, "query id cannot be equal zero") } if strings.TrimSpace(msg.Sender) == "" { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") + return errors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") } if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } if strings.TrimSpace(msg.ClientId) == "" { - return sdkerrors.Wrap(ErrInvalidClientID, "client id cannot be empty") + return errors.Wrap(ErrInvalidClientID, "client id cannot be empty") } return nil @@ -73,28 +75,28 @@ func (msg MsgRegisterInterchainQuery) Type() string { func (msg MsgRegisterInterchainQuery) ValidateBasic() error { if msg.UpdatePeriod == 0 { - return sdkerrors.Wrap(ErrInvalidUpdatePeriod, "update period can not be equal to zero") + return errors.Wrap(ErrInvalidUpdatePeriod, "update period can not be equal to zero") } if strings.TrimSpace(msg.Sender) == "" { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") + return errors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") } if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } if strings.TrimSpace(msg.ConnectionId) == "" { - return sdkerrors.Wrap(ErrInvalidConnectionID, "connection id cannot be empty") + return errors.Wrap(ErrInvalidConnectionID, "connection id cannot be empty") } if !InterchainQueryType(msg.QueryType).IsValid() { - return sdkerrors.Wrap(ErrInvalidQueryType, "invalid query type") + return errors.Wrap(ErrInvalidQueryType, "invalid query type") } if InterchainQueryType(msg.QueryType).IsKV() { if len(msg.Keys) == 0 { - return sdkerrors.Wrap(ErrEmptyKeys, "keys cannot be empty") + return errors.Wrap(ErrEmptyKeys, "keys cannot be empty") } if err := validateKeys(msg.GetKeys()); err != nil { return err @@ -103,7 +105,7 @@ func (msg MsgRegisterInterchainQuery) ValidateBasic() error { if InterchainQueryType(msg.QueryType).IsTX() { if err := ValidateTransactionsFilter(msg.TransactionsFilter); err != nil { - return sdkerrors.Wrap(ErrInvalidTransactionsFilter, err.Error()) + return errors.Wrap(ErrInvalidTransactionsFilter, err.Error()) } } return nil @@ -133,21 +135,21 @@ func (msg MsgSubmitQueryResult) UnpackInterfaces(unpacker codectypes.AnyUnpacker func (msg MsgUpdateInterchainQueryRequest) ValidateBasic() error { if msg.GetQueryId() == 0 { - return sdkerrors.Wrap(ErrInvalidQueryID, "query_id cannot be empty or equal to 0") + return errors.Wrap(ErrInvalidQueryID, "query_id cannot be empty or equal to 0") } newKeys := msg.GetNewKeys() newTxFilter := msg.GetNewTransactionsFilter() if len(newKeys) == 0 && newTxFilter == "" && msg.GetNewUpdatePeriod() == 0 { - return sdkerrors.Wrap( + return errors.Wrap( sdkerrors.ErrInvalidRequest, "one of new_keys, new_transactions_filter or new_update_period should be set", ) } if len(newKeys) != 0 && newTxFilter != "" { - return sdkerrors.Wrap( + return errors.Wrap( sdkerrors.ErrInvalidRequest, "either new_keys or new_transactions_filter should be set", ) @@ -161,15 +163,15 @@ func (msg MsgUpdateInterchainQueryRequest) ValidateBasic() error { if newTxFilter != "" { if err := ValidateTransactionsFilter(newTxFilter); err != nil { - return sdkerrors.Wrap(ErrInvalidTransactionsFilter, err.Error()) + return errors.Wrap(ErrInvalidTransactionsFilter, err.Error()) } } if strings.TrimSpace(msg.Sender) == "" { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") + return errors.Wrap(sdkerrors.ErrInvalidAddress, "missing sender address") } if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } return nil } @@ -188,25 +190,25 @@ func (msg MsgUpdateInterchainQueryRequest) GetSigners() []sdk.AccAddress { func validateKeys(keys []*KVKey) error { if uint64(len(keys)) > MaxKVQueryKeysCount { - return sdkerrors.Wrapf(ErrTooManyKVQueryKeys, "keys count cannot be more than %d", MaxKVQueryKeysCount) + return errors.Wrapf(ErrTooManyKVQueryKeys, "keys count cannot be more than %d", MaxKVQueryKeysCount) } duplicates := make(map[string]struct{}) for _, key := range keys { if key == nil { - return sdkerrors.Wrap(sdkerrors.ErrInvalidType, "key cannot be nil") + return errors.Wrap(sdkerrors.ErrInvalidType, "key cannot be nil") } if _, ok := duplicates[key.ToString()]; ok { - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "keys cannot be duplicated") + return errors.Wrap(sdkerrors.ErrInvalidRequest, "keys cannot be duplicated") } if len(key.Path) == 0 { - return sdkerrors.Wrap(ErrEmptyKeyPath, "keys path cannot be empty") + return errors.Wrap(ErrEmptyKeyPath, "keys path cannot be empty") } if len(key.Key) == 0 { - return sdkerrors.Wrap(ErrEmptyKeyID, "keys id cannot be empty") + return errors.Wrap(ErrEmptyKeyID, "keys id cannot be empty") } duplicates[key.ToString()] = struct{}{} diff --git a/x/interchainqueries/types/verify.go b/x/interchainqueries/types/verify.go index 759a2842d..6d831147a 100644 --- a/x/interchainqueries/types/verify.go +++ b/x/interchainqueries/types/verify.go @@ -9,7 +9,7 @@ import ( ) type HeaderVerifier interface { - VerifyHeaders(ctx sdk.Context, cleintkeeper clientkeeper.Keeper, clientID string, header exported.ClientMessage, nextHeader exported.ClientMessage) error + VerifyHeaders(ctx sdk.Context, cleintkeeper clientkeeper.Keeper, clientID string, header, nextHeader exported.ClientMessage) error UnpackHeader(any *codectypes.Any) (exported.ClientMessage, error) } diff --git a/x/interchaintxs/handler.go b/x/interchaintxs/handler.go index b5a3a095f..30a574948 100644 --- a/x/interchaintxs/handler.go +++ b/x/interchaintxs/handler.go @@ -3,6 +3,8 @@ package interchaintxs import ( "fmt" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -26,7 +28,7 @@ func NewHandler(k keeper.Keeper) sdk.Handler { default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) + return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) } } } diff --git a/x/interchaintxs/keeper/grpc_query_interchainaccount.go b/x/interchaintxs/keeper/grpc_query_interchainaccount.go index c9136d325..9670b2ec4 100644 --- a/x/interchaintxs/keeper/grpc_query_interchainaccount.go +++ b/x/interchaintxs/keeper/grpc_query_interchainaccount.go @@ -3,6 +3,8 @@ package keeper import ( "context" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" @@ -12,23 +14,23 @@ import ( func (k Keeper) InterchainAccountAddress(c context.Context, req *types.QueryInterchainAccountAddressRequest) (*types.QueryInterchainAccountAddressResponse, error) { if req == nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid request") + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid request") } ctx := sdk.UnwrapSDKContext(c) icaOwner, err := types.NewICAOwner(req.OwnerAddress, req.InterchainAccountId) if err != nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "failed to create ica owner: %s", err) + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "failed to create ica owner: %s", err) } portID, err := icatypes.NewControllerPortID(icaOwner.String()) if err != nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "failed to get controller portID: %s", err) + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "failed to get controller portID: %s", err) } addr, found := k.icaControllerKeeper.GetInterchainAccountAddress(ctx, req.ConnectionId, portID) if !found { - return nil, sdkerrors.Wrapf(types.ErrInterchainAccountNotFound, "no interchain account found for portID %s", portID) + return nil, errors.Wrapf(types.ErrInterchainAccountNotFound, "no interchain account found for portID %s", portID) } return &types.QueryInterchainAccountAddressResponse{InterchainAccountAddress: addr}, nil diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 818ca7cd1..1b1e865aa 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -4,6 +4,8 @@ import ( "strings" "time" + "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -66,13 +68,13 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack icaOwner, err := types.ICAOwnerFromPort(packet.SourcePort) if err != nil { k.Logger(ctx).Error("HandleAcknowledgement: failed to get ica owner from source port", "error", err) - return sdkerrors.Wrap(err, "failed to get ica owner from port") + return errors.Wrap(err, "failed to get ica owner from port") } var ack channeltypes.Acknowledgement if err := channeltypes.SubModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { k.Logger(ctx).Error("HandleAcknowledgement: cannot unmarshal ICS-27 packet acknowledgement", "error", err) - return sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-27 packet acknowledgement: %v", err) + return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-27 packet acknowledgement: %v", err) } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) @@ -111,7 +113,7 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela k.Logger(ctx).Debug("HandleTimeout") if err != nil { k.Logger(ctx).Error("HandleTimeout: failed to get ica owner from source port", "error", err) - return sdkerrors.Wrap(err, "failed to get ica owner from port") + return errors.Wrap(err, "failed to get ica owner from port") } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) @@ -149,7 +151,7 @@ func (k *Keeper) HandleChanOpenAck( icaOwner, err := types.ICAOwnerFromPort(portID) if err != nil { k.Logger(ctx).Error("HandleChanOpenAck: failed to get ica owner from source port", "error", err) - return sdkerrors.Wrap(err, "failed to get ica owner from port") + return errors.Wrap(err, "failed to get ica owner from port") } _, err = k.contractManagerKeeper.SudoOnChanOpenAck(ctx, icaOwner.GetContract(), contractmanagertypes.OpenAckDetails{ @@ -160,7 +162,7 @@ func (k *Keeper) HandleChanOpenAck( }) if err != nil { k.Logger(ctx).Debug("HandleChanOpenAck: failed to Sudo contract on packet timeout", "error", err) - return sdkerrors.Wrap(err, "failed to Sudo the contract OnChanOpenAck") + return errors.Wrap(err, "failed to Sudo the contract OnChanOpenAck") } return nil diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index 381021364..62d3cfe5a 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -5,6 +5,8 @@ import ( "fmt" "time" + "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -38,12 +40,12 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. senderAddr, err := sdk.AccAddressFromBech32(msg.FromAddress) if err != nil { k.Logger(ctx).Debug("RegisterInterchainAccount: failed to parse sender address", "from_address", msg.FromAddress) - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.FromAddress) + return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.FromAddress) } if !k.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { k.Logger(ctx).Debug("RegisterInterchainAccount: contract not found", "from_address", msg.FromAddress) - return nil, sdkerrors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) + return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } icaOwner := ictxtypes.NewICAOwnerFromAddress(senderAddr, msg.InterchainAccountId) @@ -51,7 +53,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. // FIXME: empty version string doesn't look good if err := k.icaControllerKeeper.RegisterInterchainAccount(ctx, msg.ConnectionId, icaOwner.String(), ""); err != nil { k.Logger(ctx).Debug("RegisterInterchainAccount: failed to create RegisterInterchainAccount:", "error", err, "owner", icaOwner.String(), "msg", &msg) - return nil, sdkerrors.Wrap(err, "failed to RegisterInterchainAccount") + return nil, errors.Wrap(err, "failed to RegisterInterchainAccount") } return &ictxtypes.MsgRegisterInterchainAccountResponse{}, nil @@ -61,11 +63,11 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic defer telemetry.ModuleMeasureSince(ictxtypes.ModuleName, time.Now(), LabelSubmitTx) if msg == nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "nil msg is prohibited") + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "nil msg is prohibited") } if msg.Msgs == nil { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "empty Msgs field is prohibited") + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "empty Msgs field is prohibited") } ctx := sdk.UnwrapSDKContext(goCtx) @@ -74,12 +76,12 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic senderAddr, err := sdk.AccAddressFromBech32(msg.FromAddress) if err != nil { k.Logger(ctx).Debug("SubmitTx: failed to parse sender address", "from_address", msg.FromAddress) - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.FromAddress) + return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.FromAddress) } if !k.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { k.Logger(ctx).Debug("SubmitTx: contract not found", "from_address", msg.FromAddress) - return nil, sdkerrors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) + return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } params := k.GetParams(ctx) @@ -101,19 +103,19 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic portID, err := icatypes.NewControllerPortID(icaOwner.String()) if err != nil { k.Logger(ctx).Error("SubmitTx: failed to create NewControllerPortID:", "error", err, "owner", icaOwner) - return nil, sdkerrors.Wrap(err, "failed to create NewControllerPortID") + return nil, errors.Wrap(err, "failed to create NewControllerPortID") } channelID, found := k.icaControllerKeeper.GetActiveChannelID(ctx, msg.ConnectionId, portID) if !found { k.Logger(ctx).Debug("SubmitTx: failed to GetActiveChannelID", "connection_id", msg.ConnectionId, "port_id", portID) - return nil, sdkerrors.Wrapf(icatypes.ErrActiveChannelNotFound, "failed to GetActiveChannelID for port %s", portID) + return nil, errors.Wrapf(icatypes.ErrActiveChannelNotFound, "failed to GetActiveChannelID for port %s", portID) } data, err := SerializeCosmosTx(k.Codec, msg.Msgs) if err != nil { k.Logger(ctx).Debug("SubmitTx: failed to SerializeCosmosTx", "error", err, "connection_id", msg.ConnectionId, "port_id", portID, "channel_id", channelID) - return nil, sdkerrors.Wrap(err, "failed to SerializeCosmosTx") + return nil, errors.Wrap(err, "failed to SerializeCosmosTx") } packetData := icatypes.InterchainAccountPacketData{ @@ -124,14 +126,14 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic sequence, found := k.channelKeeper.GetNextSequenceSend(ctx, portID, channelID) if !found { - return nil, sdkerrors.Wrapf( + return nil, errors.Wrapf( channeltypes.ErrSequenceSendNotFound, "source port: %s, source channel: %s", portID, channelID, ) } if err := k.feeKeeper.LockFees(ctx, senderAddr, feetypes.NewPacketID(portID, channelID, sequence), msg.Fee); err != nil { - return nil, sdkerrors.Wrapf(err, "failed to lock fees to pay for SubmitTx msg: %s", msg) + return nil, errors.Wrapf(err, "failed to lock fees to pay for SubmitTx msg: %s", msg) } timeoutTimestamp := ctx.BlockTime().Add(time.Duration(msg.Timeout) * time.Second).UnixNano() @@ -140,7 +142,7 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic if err != nil { // usually we use DEBUG level for such errors, but in this case we have checked full input before running SendTX, so error here may be critical k.Logger(ctx).Error("SubmitTx", "error", err, "connection_id", msg.ConnectionId, "port_id", portID, "channel_id", channelID) - return nil, sdkerrors.Wrap(err, "failed to SendTx") + return nil, errors.Wrap(err, "failed to SendTx") } return &ictxtypes.MsgSubmitTxResponse{ @@ -155,7 +157,7 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []*codectypes.Any) (bz []byte, err error) { // only ProtoCodec is supported if _, ok := cdc.(*codec.ProtoCodec); !ok { - return nil, sdkerrors.Wrap(icatypes.ErrInvalidCodec, + return nil, errors.Wrap(icatypes.ErrInvalidCodec, "only ProtoCodec is supported for receiving messages on the host chain") } diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index 49f89fed2..c2f838fc6 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -119,14 +119,14 @@ func TestSubmitTx(t *testing.T) { require.ErrorContains(t, err, "failed to GetActiveChannelID for port") activeChannel := "channel-0" - //cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - //icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) - //currCodec := icak.Codec - //icak.Codec = &codec.AminoCodec{} - //resp, err = icak.SubmitTx(goCtx, &submitMsg) - //icak.Codec = currCodec - //require.Nil(t, resp) - //require.ErrorContains(t, err, "only ProtoCodec is supported for receiving messages on the host chain") + // cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + // icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) + // currCodec := icak.Codec + // icak.Codec = &codec.AminoCodec{} + // resp, err = icak.SubmitTx(goCtx, &submitMsg) + // icak.Codec = currCodec + // require.Nil(t, resp) + // require.ErrorContains(t, err, "only ProtoCodec is supported for receiving messages on the host chain") cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) diff --git a/x/interchaintxs/module.go b/x/interchaintxs/module.go index 7eaf0e894..125ca7bb4 100644 --- a/x/interchaintxs/module.go +++ b/x/interchaintxs/module.go @@ -1,10 +1,11 @@ package interchaintxs import ( - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/interchaintxs/types/errors.go b/x/interchaintxs/types/errors.go index fec162d9f..51b719d08 100644 --- a/x/interchaintxs/types/errors.go +++ b/x/interchaintxs/types/errors.go @@ -1,19 +1,19 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/interchaintxs module sentinel errors var ( - ErrInvalidICAOwner = sdkerrors.Register(ModuleName, 1100, "invalid interchain account interchainAccountID") - ErrInvalidAccountAddress = sdkerrors.Register(ModuleName, 1101, "invalid account address") - ErrInterchainAccountNotFound = sdkerrors.Register(ModuleName, 1102, "interchain account not found") - ErrNotContract = sdkerrors.Register(ModuleName, 1103, "not a contract") - ErrEmptyInterchainAccountID = sdkerrors.Register(ModuleName, 1104, "empty interchain account id") - ErrEmptyConnectionID = sdkerrors.Register(ModuleName, 1105, "empty connection id") - ErrNoMessages = sdkerrors.Register(ModuleName, 1106, "no messages provided") - ErrInvalidTimeout = sdkerrors.Register(ModuleName, 1107, "invalid timeout") - ErrInvalidPayerFee = sdkerrors.Register(ModuleName, 1108, "invalid payer feerefunder") - ErrLongInterchainAccountID = sdkerrors.Register(ModuleName, 1109, "interchain account id is too long") + ErrInvalidICAOwner = errors.Register(ModuleName, 1100, "invalid interchain account interchainAccountID") + ErrInvalidAccountAddress = errors.Register(ModuleName, 1101, "invalid account address") + ErrInterchainAccountNotFound = errors.Register(ModuleName, 1102, "interchain account not found") + ErrNotContract = errors.Register(ModuleName, 1103, "not a contract") + ErrEmptyInterchainAccountID = errors.Register(ModuleName, 1104, "empty interchain account id") + ErrEmptyConnectionID = errors.Register(ModuleName, 1105, "empty connection id") + ErrNoMessages = errors.Register(ModuleName, 1106, "no messages provided") + ErrInvalidTimeout = errors.Register(ModuleName, 1107, "invalid timeout") + ErrInvalidPayerFee = errors.Register(ModuleName, 1108, "invalid payer feerefunder") + ErrLongInterchainAccountID = errors.Register(ModuleName, 1109, "interchain account id is too long") ) diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index e7f0284ca..beaf14ae2 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -21,6 +21,4 @@ const ( prefixParamsKey = iota + 1 ) -var ( - ParamsKey = []byte{prefixParamsKey} -) +var ParamsKey = []byte{prefixParamsKey} diff --git a/x/interchaintxs/types/tx.go b/x/interchaintxs/types/tx.go index e9d7f07e5..4f86dd2ab 100644 --- a/x/interchaintxs/types/tx.go +++ b/x/interchaintxs/types/tx.go @@ -3,6 +3,8 @@ package types import ( "fmt" + "cosmossdk.io/errors" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -24,7 +26,7 @@ func (msg *MsgRegisterInterchainAccount) ValidateBasic() error { } if _, err := sdk.AccAddressFromBech32(msg.FromAddress); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse FromAddress: %s", msg.FromAddress) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse FromAddress: %s", msg.FromAddress) } if len(msg.InterchainAccountId) == 0 { @@ -67,7 +69,7 @@ func (msg MsgSubmitTx) ValidateBasic() error { } if _, err := sdk.AccAddressFromBech32(msg.FromAddress); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse FromAddress: %s", msg.FromAddress) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse FromAddress: %s", msg.FromAddress) } if len(msg.InterchainAccountId) == 0 { @@ -79,7 +81,7 @@ func (msg MsgSubmitTx) ValidateBasic() error { } if msg.Timeout <= 0 { - return sdkerrors.Wrapf(ErrInvalidTimeout, "timeout must be greater than zero") + return errors.Wrapf(ErrInvalidTimeout, "timeout must be greater than zero") } return nil diff --git a/x/interchaintxs/types/types.go b/x/interchaintxs/types/types.go index 789663d42..247c7821d 100644 --- a/x/interchaintxs/types/types.go +++ b/x/interchaintxs/types/types.go @@ -3,8 +3,9 @@ package types import ( "strings" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" ) @@ -22,7 +23,7 @@ func (i ICAOwner) String() string { func NewICAOwner(contractAddressBech32, interchainAccountID string) (ICAOwner, error) { sdkContractAddress, err := sdk.AccAddressFromBech32(contractAddressBech32) if err != nil { - return ICAOwner{}, sdkerrors.Wrapf(ErrInvalidAccountAddress, "failed to decode address from bech32: %v", err) + return ICAOwner{}, errors.Wrapf(ErrInvalidAccountAddress, "failed to decode address from bech32: %v", err) } return ICAOwner{contractAddress: sdkContractAddress, interchainAccountID: interchainAccountID}, nil @@ -35,12 +36,12 @@ func NewICAOwnerFromAddress(address sdk.AccAddress, interchainAccountID string) func ICAOwnerFromPort(port string) (ICAOwner, error) { splitOwner := strings.SplitN(strings.TrimPrefix(port, icatypes.ControllerPortPrefix), Delimiter, 2) if len(splitOwner) < 2 { - return ICAOwner{}, sdkerrors.Wrap(ErrInvalidICAOwner, "invalid ICA interchainAccountID format") + return ICAOwner{}, errors.Wrap(ErrInvalidICAOwner, "invalid ICA interchainAccountID format") } contractAddress, err := sdk.AccAddressFromBech32(splitOwner[0]) if err != nil { - return ICAOwner{}, sdkerrors.Wrapf(ErrInvalidAccountAddress, "failed to decode address from bech32: %v", err) + return ICAOwner{}, errors.Wrapf(ErrInvalidAccountAddress, "failed to decode address from bech32: %v", err) } return ICAOwner{contractAddress: contractAddress, interchainAccountID: splitOwner[1]}, nil diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index b6c018b7e..06ee2a072 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -3,8 +3,9 @@ package keeper import ( "fmt" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -15,17 +16,17 @@ import ( func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr, subdenom string) (newTokenDenom string, err error) { err = k.chargeFeeForDenomCreation(ctx, creatorAddr) if err != nil { - return "", sdkerrors.Wrapf(types.ErrUnableToCharge, "denom fee collection error: %v", err) + return "", errors.Wrapf(types.ErrUnableToCharge, "denom fee collection error: %v", err) } denom, err := k.validateCreateDenom(ctx, creatorAddr, subdenom) if err != nil { - return "", sdkerrors.Wrapf(types.ErrInvalidDenom, "denom validation error: %v", err) + return "", errors.Wrapf(types.ErrInvalidDenom, "denom validation error: %v", err) } err = k.createDenomAfterValidation(ctx, creatorAddr, denom) if err != nil { - return "", sdkerrors.Wrap(err, "create denom after validation error") + return "", errors.Wrap(err, "create denom after validation error") } return denom, nil @@ -49,7 +50,7 @@ func (k Keeper) createDenomAfterValidation(ctx sdk.Context, creatorAddr, denom s } err = k.setAuthorityMetadata(ctx, denom, authorityMetadata) if err != nil { - return sdkerrors.Wrapf(types.ErrInvalidAuthorityMetadata, "unable to set authority metadata: %v", err) + return errors.Wrapf(types.ErrInvalidAuthorityMetadata, "unable to set authority metadata: %v", err) } k.addDenomFromCreator(ctx, creatorAddr, denom) @@ -65,7 +66,7 @@ func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr, subdenom strin denom, err := types.GetTokenDenom(creatorAddr, subdenom) if err != nil { - return "", sdkerrors.Wrapf(types.ErrTokenDenom, "wrong denom token: %v", err) + return "", errors.Wrapf(types.ErrTokenDenom, "wrong denom token: %v", err) } _, found := k.bankKeeper.GetDenomMetaData(ctx, denom) @@ -81,7 +82,7 @@ func (k Keeper) chargeFeeForDenomCreation(ctx sdk.Context, creatorAddr string) ( creationFee := k.GetParams(ctx).DenomCreationFee accAddr, err := sdk.AccAddressFromBech32(creatorAddr) if err != nil { - return sdkerrors.Wrapf(types.ErrUnableToCharge, "wrong creator address: %v", err) + return errors.Wrapf(types.ErrUnableToCharge, "wrong creator address: %v", err) } params := k.GetParams(ctx) @@ -89,7 +90,7 @@ func (k Keeper) chargeFeeForDenomCreation(ctx sdk.Context, creatorAddr string) ( if len(creationFee) > 0 { feeCollectorAddr, err := sdk.AccAddressFromBech32(params.FeeCollectorAddress) if err != nil { - return sdkerrors.Wrapf(types.ErrUnableToCharge, "wrong fee collector address: %v", err) + return errors.Wrapf(types.ErrUnableToCharge, "wrong fee collector address: %v", err) } err = k.bankKeeper.SendCoins( @@ -99,7 +100,7 @@ func (k Keeper) chargeFeeForDenomCreation(ctx sdk.Context, creatorAddr string) ( ) if err != nil { - return sdkerrors.Wrap(err, "unable to send coins to fee collector") + return errors.Wrap(err, "unable to send coins to fee collector") } } diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 433d178bc..74002c57f 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -2,6 +2,7 @@ package keeper import ( "fmt" + storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cometbft/cometbft/libs/log" @@ -13,16 +14,12 @@ import ( "github.com/neutron-org/neutron/x/tokenfactory/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) type ( Keeper struct { - cdc codec.Codec - storeKey storetypes.StoreKey - - paramSpace paramtypes.Subspace - + cdc codec.Codec + storeKey storetypes.StoreKey accountKeeper types.AccountKeeper bankKeeper types.BankKeeper } diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index 4b7ef8397..7d01bbee1 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -3,6 +3,8 @@ package keeper_test import ( "testing" + "cosmossdk.io/math" + "github.com/cometbft/cometbft/crypto/ed25519" "github.com/cosmos/cosmos-sdk/baseapp" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" @@ -78,7 +80,7 @@ func (suite *KeeperTestSuite) TopUpWallet(ctx sdktypes.Context, sender, contract suite.Require().NoError(err) } -func (suite *KeeperTestSuite) WalletBalance(ctx sdktypes.Context, address string) sdktypes.Int { +func (suite *KeeperTestSuite) WalletBalance(ctx sdktypes.Context, address string) math.Int { bankKeeper := suite.GetNeutronZoneApp(suite.ChainA).BankKeeper balance, err := bankKeeper.Balance( sdktypes.WrapSDKContext(ctx), diff --git a/x/tokenfactory/module.go b/x/tokenfactory/module.go index dec552765..db462f23f 100644 --- a/x/tokenfactory/module.go +++ b/x/tokenfactory/module.go @@ -2,10 +2,11 @@ package tokenfactory import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" diff --git a/x/tokenfactory/types/denoms.go b/x/tokenfactory/types/denoms.go index 6e5acdff2..1698c2774 100644 --- a/x/tokenfactory/types/denoms.go +++ b/x/tokenfactory/types/denoms.go @@ -4,8 +4,9 @@ import ( fmt "fmt" "strings" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" ) @@ -48,17 +49,17 @@ func DeconstructDenom(denom string) (creator, subdenom string, err error) { strParts := strings.Split(denom, "/") if len(strParts) < 3 { - return "", "", sdkerrors.Wrapf(ErrInvalidDenom, "not enough parts of denom %s", denom) + return "", "", errors.Wrapf(ErrInvalidDenom, "not enough parts of denom %s", denom) } if strParts[0] != ModuleDenomPrefix { - return "", "", sdkerrors.Wrapf(ErrInvalidDenom, "denom prefix is incorrect. Is: %s. Should be: %s", strParts[0], ModuleDenomPrefix) + return "", "", errors.Wrapf(ErrInvalidDenom, "denom prefix is incorrect. Is: %s. Should be: %s", strParts[0], ModuleDenomPrefix) } creator = strParts[1] _, err = sdk.AccAddressFromBech32(creator) if err != nil { - return "", "", sdkerrors.Wrapf(ErrInvalidDenom, "Invalid creator address (%s)", err) + return "", "", errors.Wrapf(ErrInvalidDenom, "Invalid creator address (%s)", err) } // Handle the case where a denom has a slash in its subdenom. For example, diff --git a/x/tokenfactory/types/errors.go b/x/tokenfactory/types/errors.go index 1a58c989b..ef46d16ca 100644 --- a/x/tokenfactory/types/errors.go +++ b/x/tokenfactory/types/errors.go @@ -5,20 +5,20 @@ package types import ( fmt "fmt" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/tokenfactory module sentinel errors var ( - ErrDenomExists = sdkerrors.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)") - ErrUnauthorized = sdkerrors.Register(ModuleName, 3, "unauthorized account") - ErrInvalidDenom = sdkerrors.Register(ModuleName, 4, "invalid denom") - ErrInvalidCreator = sdkerrors.Register(ModuleName, 5, "invalid creator") - ErrInvalidAuthorityMetadata = sdkerrors.Register(ModuleName, 6, "invalid authority metadata") - ErrInvalidGenesis = sdkerrors.Register(ModuleName, 7, "invalid genesis") - ErrSubdenomTooLong = sdkerrors.Register(ModuleName, 8, fmt.Sprintf("subdenom too long, max length is %d bytes", MaxSubdenomLength)) - ErrCreatorTooLong = sdkerrors.Register(ModuleName, 9, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength)) - ErrDenomDoesNotExist = sdkerrors.Register(ModuleName, 10, "denom does not exist") - ErrUnableToCharge = sdkerrors.Register(ModuleName, 11, "unable to charge for denom creation") - ErrTokenDenom = sdkerrors.Register(ModuleName, 13, "wrong token denom") + ErrDenomExists = errors.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)") + ErrUnauthorized = errors.Register(ModuleName, 3, "unauthorized account") + ErrInvalidDenom = errors.Register(ModuleName, 4, "invalid denom") + ErrInvalidCreator = errors.Register(ModuleName, 5, "invalid creator") + ErrInvalidAuthorityMetadata = errors.Register(ModuleName, 6, "invalid authority metadata") + ErrInvalidGenesis = errors.Register(ModuleName, 7, "invalid genesis") + ErrSubdenomTooLong = errors.Register(ModuleName, 8, fmt.Sprintf("subdenom too long, max length is %d bytes", MaxSubdenomLength)) + ErrCreatorTooLong = errors.Register(ModuleName, 9, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength)) + ErrDenomDoesNotExist = errors.Register(ModuleName, 10, "denom does not exist") + ErrUnableToCharge = errors.Register(ModuleName, 11, "unable to charge for denom creation") + ErrTokenDenom = errors.Register(ModuleName, 13, "wrong token denom") ) diff --git a/x/tokenfactory/types/genesis.go b/x/tokenfactory/types/genesis.go index b1ba181fa..3c4bdb6da 100644 --- a/x/tokenfactory/types/genesis.go +++ b/x/tokenfactory/types/genesis.go @@ -1,8 +1,8 @@ package types import ( + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // this line is used by starport scaffolding # genesis/types/import @@ -30,7 +30,7 @@ func (gs GenesisState) Validate() error { for _, denom := range gs.GetFactoryDenoms() { if seenDenoms[denom.GetDenom()] { - return sdkerrors.Wrapf(ErrInvalidGenesis, "duplicate denom: %s", denom.GetDenom()) + return errors.Wrapf(ErrInvalidGenesis, "duplicate denom: %s", denom.GetDenom()) } seenDenoms[denom.GetDenom()] = true @@ -42,7 +42,7 @@ func (gs GenesisState) Validate() error { if denom.AuthorityMetadata.Admin != "" { _, err = sdk.AccAddressFromBech32(denom.AuthorityMetadata.Admin) if err != nil { - return sdkerrors.Wrapf(ErrInvalidAuthorityMetadata, "Invalid admin address (%s)", err) + return errors.Wrapf(ErrInvalidAuthorityMetadata, "Invalid admin address (%s)", err) } } } diff --git a/x/tokenfactory/types/msgs.go b/x/tokenfactory/types/msgs.go index 026dac1b0..ae0a7e057 100644 --- a/x/tokenfactory/types/msgs.go +++ b/x/tokenfactory/types/msgs.go @@ -1,6 +1,7 @@ package types import ( + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -29,12 +30,12 @@ func (m MsgCreateDenom) Type() string { return TypeMsgCreateDenom } func (m MsgCreateDenom) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } _, err = GetTokenDenom(m.Sender, m.Subdenom) if err != nil { - return sdkerrors.Wrap(ErrInvalidDenom, err.Error()) + return errors.Wrap(ErrInvalidDenom, err.Error()) } return nil @@ -64,11 +65,11 @@ func (m MsgMint) Type() string { return TypeMsgMint } func (m MsgMint) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } if !m.Amount.IsValid() || m.Amount.Amount.Equal(sdk.ZeroInt()) { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) + return errors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) } return nil @@ -98,11 +99,11 @@ func (m MsgBurn) Type() string { return TypeMsgBurn } func (m MsgBurn) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } if !m.Amount.IsValid() || m.Amount.Amount.Equal(sdk.ZeroInt()) { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) + return errors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) } return nil @@ -134,20 +135,20 @@ func (m MsgBurn) GetSigners() []sdk.AccAddress { // func (m MsgForceTransfer) ValidateBasic() error { // _, err := sdk.AccAddressFromBech32(m.Sender) // if err != nil { -// return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) +// return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) // } // _, err = sdk.AccAddressFromBech32(m.TransferFromAddress) // if err != nil { -// return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) +// return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) // } // _, err = sdk.AccAddressFromBech32(m.TransferToAddress) // if err != nil { -// return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) +// return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) // } // if !m.Amount.IsValid() { -// return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) +// return errors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) // } // return nil @@ -178,12 +179,12 @@ func (m MsgChangeAdmin) Type() string { return TypeMsgChangeAdmin } func (m MsgChangeAdmin) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } _, err = sdk.AccAddressFromBech32(m.NewAdmin) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) } _, _, err = DeconstructDenom(m.Denom) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 7f057db2c..d61bf6685 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -3,6 +3,8 @@ package transfer import ( "strings" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" @@ -61,16 +63,16 @@ func (im IBCModule) createCachedContext(ctx sdk.Context) (cacheCtx sdk.Context, func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { var ack channeltypes.Acknowledgement if err := channeltypes.SubModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet acknowledgement: %v", err) + return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet acknowledgement: %v", err) } var data transfertypes.FungibleTokenPacketData if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet data: %s", err.Error()) + return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet data: %s", err.Error()) } senderAddress, err := sdk.AccAddressFromBech32(data.GetSender()) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) @@ -109,12 +111,12 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error { var data transfertypes.FungibleTokenPacketData if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet data: %s", err.Error()) + return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet data: %s", err.Error()) } senderAddress, err := sdk.AccAddressFromBech32(data.GetSender()) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) diff --git a/x/transfer/keeper/keeper.go b/x/transfer/keeper/keeper.go index 090cb68fc..90f672939 100644 --- a/x/transfer/keeper/keeper.go +++ b/x/transfer/keeper/keeper.go @@ -2,6 +2,8 @@ package transfer import ( "context" + + "cosmossdk.io/errors" storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/codec" @@ -31,12 +33,12 @@ func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes senderAddr, err := sdk.AccAddressFromBech32(msg.Sender) if err != nil { k.Logger(ctx).Debug("Transfer: failed to parse sender address", "sender", msg.Sender) - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) + return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } sequence, found := k.channelKeeper.GetNextSequenceSend(ctx, msg.SourcePort, msg.SourceChannel) if !found { - return nil, sdkerrors.Wrapf( + return nil, errors.Wrapf( channeltypes.ErrSequenceSendNotFound, "source port: %s, source channel: %s", msg.SourcePort, msg.SourceChannel, ) @@ -46,7 +48,7 @@ func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes // Because contracts are required to pay fees for the acknowledgements if k.ContractManagerKeeper.HasContractInfo(ctx, senderAddr) { if err := k.FeeKeeper.LockFees(ctx, senderAddr, feetypes.NewPacketID(msg.SourcePort, msg.SourceChannel, sequence), msg.Fee); err != nil { - return nil, sdkerrors.Wrapf(err, "failed to lock fees to pay for transfer msg: %v", msg) + return nil, errors.Wrapf(err, "failed to lock fees to pay for transfer msg: %v", msg) } } diff --git a/x/transfer/module.go b/x/transfer/module.go index 3de6ee665..967fe459e 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -1,9 +1,11 @@ package transfer import ( - "cosmossdk.io/core/appmodule" "fmt" + "cosmossdk.io/core/appmodule" + "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -51,7 +53,7 @@ func (im IBCModule) OnAcknowledgementPacket( ) error { err := im.IBCModule.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer) if err != nil { - return sdkerrors.Wrap(err, "failed to process original OnAcknowledgementPacket") + return errors.Wrap(err, "failed to process original OnAcknowledgementPacket") } return im.HandleAcknowledgement(ctx, packet, acknowledgement, relayer) } @@ -64,7 +66,7 @@ func (im IBCModule) OnTimeoutPacket( ) error { err := im.IBCModule.OnTimeoutPacket(ctx, packet, relayer) if err != nil { - return sdkerrors.Wrap(err, "failed to process original OnTimeoutPacket") + return errors.Wrap(err, "failed to process original OnTimeoutPacket") } return im.HandleTimeout(ctx, packet, relayer) } @@ -98,7 +100,6 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterQueryServer(cfg.QueryServer(), am.keeper) cfg.MsgServer().RegisterService(&neutrontypes.MsgServiceDescOrig, am.keeper) - } type AppModuleBasic struct { @@ -151,7 +152,7 @@ func NewHandler(k wrapkeeper.KeeperTransferWrapper) sdk.Handler { default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) + return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) } } } diff --git a/x/transfer/types/tx.go b/x/transfer/types/tx.go index 4ac120890..eef4df539 100644 --- a/x/transfer/types/tx.go +++ b/x/transfer/types/tx.go @@ -2,6 +2,7 @@ package types import ( "context" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" "google.golang.org/grpc" From 61cd4725cd30f1f33b324d14ffb0f71c632ae599 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 1 Aug 2023 11:50:19 +0300 Subject: [PATCH 014/307] linter fixes --- app/ante_handler.go | 2 +- app/app.go | 39 ++++----- app/simulation_test.go | 4 +- go.mod | 3 +- go.sum | 2 - tests/e2e/interchain_security_test.go | 2 +- .../interchaintxs/keeper/interchaintxs.go | 2 +- testutil/test_helpers.go | 9 +- testutil/transfer/keeper/keeper.go | 2 +- wasmbinding/custom_querier.go | 4 +- wasmbinding/stargate_allowlist.go | 6 +- x/feerefunder/types/codec.go | 5 +- x/feerefunder/types/tx.pb.go | 86 ------------------- x/ibc-hooks/ibc_middleware_test.go | 4 +- x/interchaintxs/ibc_module.go | 2 +- x/transfer/types/tx.go | 6 +- 16 files changed, 42 insertions(+), 136 deletions(-) delete mode 100644 x/feerefunder/types/tx.pb.go diff --git a/app/ante_handler.go b/app/ante_handler.go index 9f9e55bcb..761917ed8 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -80,7 +80,7 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, // We are providing options.GlobalFeeSubspace because we do not have staking module // In this case you should be sure that you implemented upgrade to set default global fee param and it SHOULD contain at least one record // otherwise you will get panic - // globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), + //globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), // SetPubKeyDecorator must be called before all signature verification decorators diff --git a/app/app.go b/app/app.go index fa74861b7..6c9e793a6 100644 --- a/app/app.go +++ b/app/app.go @@ -9,6 +9,8 @@ import ( "path/filepath" "strings" + "github.com/cosmos/interchain-security/v3/testutil/integration" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/x/genutil" @@ -142,7 +144,6 @@ import ( feetypes "github.com/neutron-org/neutron/x/feerefunder/types" - e2e "github.com/cosmos/interchain-security/v3/testutil/e2e" ccvconsumer "github.com/cosmos/interchain-security/v3/x/ccv/consumer" ccvconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" @@ -346,6 +347,22 @@ type App struct { checkTxHandler proposalhandler.CheckTx } +func (app *App) GetTestBankKeeper() integration.TestBankKeeper { + return app.BankKeeper +} + +func (app *App) GetTestAccountKeeper() integration.TestAccountKeeper { + return app.AccountKeeper +} + +func (app *App) GetTestSlashingKeeper() integration.TestSlashingKeeper { + return app.SlashingKeeper +} + +func (app *App) GetTestEvidenceKeeper() integration.TestEvidenceKeeper { + return app.EvidenceKeeper +} + // New returns a reference to an initialized blockchain app func New( logger log.Logger, @@ -1243,26 +1260,6 @@ func (app *App) GetConsumerKeeper() ccvconsumerkeeper.Keeper { return app.ConsumerKeeper } -// GetE2eBankKeeper implements the ConsumerApp interface. -func (app *App) GetE2eBankKeeper() e2e.E2eBankKeeper { - return app.BankKeeper -} - -// GetE2eAccountKeeper implements the ConsumerApp interface. -func (app *App) GetE2eAccountKeeper() e2e.E2eAccountKeeper { - return app.AccountKeeper -} - -// GetE2eSlashingKeeper implements the ConsumerApp interface. -func (app *App) GetE2eSlashingKeeper() e2e.E2eSlashingKeeper { - return app.SlashingKeeper -} - -// GetE2eEvidenceKeeper implements the ConsumerApp interface. -func (app *App) GetE2eEvidenceKeeper() e2e.E2eEvidenceKeeper { - return app.EvidenceKeeper -} - func (app *App) RegisterNodeService(clientCtx client.Context) { nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter()) } diff --git a/app/simulation_test.go b/app/simulation_test.go index 120de63ae..ebd049780 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -22,9 +22,9 @@ package app_test // "github.com/neutron-org/neutron/app" //) // -//func init() { +// func init() { // simapp.GetSimulatorFlags() -//} +// } // //type SimApp interface { // GetBaseApp() *baseapp.BaseApp diff --git a/go.mod b/go.mod index 1962507c3..46f8824f4 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.20 require ( cosmossdk.io/core v0.5.1 + cosmossdk.io/errors v1.0.0-beta.7 cosmossdk.io/math v1.0.1 github.com/CosmWasm/wasmd v0.40.0 github.com/CosmWasm/wasmvm v1.2.4 @@ -45,7 +46,6 @@ require ( cloud.google.com/go/storage v1.29.0 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - cosmossdk.io/errors v1.0.0-beta.7 // indirect cosmossdk.io/log v1.1.0 // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect @@ -154,7 +154,6 @@ require ( github.com/subosito/gotenv v1.4.2 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tendermint/spm v0.1.9 // indirect github.com/tidwall/btree v1.6.0 // indirect github.com/ulikunitz/xz v0.5.11 // indirect github.com/zondax/hid v0.9.1 // indirect diff --git a/go.sum b/go.sum index dff626cb7..5d3442aab 100644 --- a/go.sum +++ b/go.sum @@ -800,7 +800,6 @@ github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= @@ -913,7 +912,6 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= diff --git a/tests/e2e/interchain_security_test.go b/tests/e2e/interchain_security_test.go index 9520de5ad..2ba3e4f8b 100644 --- a/tests/e2e/interchain_security_test.go +++ b/tests/e2e/interchain_security_test.go @@ -7,7 +7,7 @@ import ( icssimapp "github.com/cosmos/interchain-security/v3/testutil/ibc_testing" "github.com/stretchr/testify/suite" - "github.com/cosmos/interchain-security/v3/tests/e2e" + e2e "github.com/cosmos/interchain-security/v3/tests/integration" appConsumer "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index e53be2bb4..55c9b43a9 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -17,7 +17,7 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper) (*keeper.Keeper, sdk.Context, *sdk.KVStoreKey) { +func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper) (*keeper.Keeper, sdk.Context, *storetypes.KVStoreKey) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index 8c432cfce..7873fe0f6 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -27,8 +27,7 @@ import ( tmtypes "github.com/cometbft/cometbft/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" appProvider "github.com/cosmos/interchain-security/v3/app/provider" - e2e "github.com/cosmos/interchain-security/v3/testutil/e2e" - ccvutils "github.com/cosmos/interchain-security/x/ccv/utils" + e2e "github.com/cosmos/interchain-security/v3/testutil/integration" "github.com/neutron-org/neutron/app" ictxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" @@ -123,9 +122,9 @@ func (suite *IBCConnectionTestSuite) SetupTest() { suite.Require().True(len(providerValUpdates) == len(consumerBValUpdates), "initial valset not matching") for i := 0; i < len(providerValUpdates); i++ { - addr1, _ := ccvutils.TMCryptoPublicKeyToConsAddr(providerValUpdates[i].PubKey) - addr2, _ := ccvutils.TMCryptoPublicKeyToConsAddr(consumerAValUpdates[i].PubKey) - addr3, _ := ccvutils.TMCryptoPublicKeyToConsAddr(consumerBValUpdates[i].PubKey) + addr1, _ := ccv.TMCryptoPublicKeyToConsAddr(providerValUpdates[i].PubKey) + addr2, _ := ccv.TMCryptoPublicKeyToConsAddr(consumerAValUpdates[i].PubKey) + addr3, _ := ccv.TMCryptoPublicKeyToConsAddr(consumerBValUpdates[i].PubKey) suite.Require().True(bytes.Equal(addr1, addr2), "validator mismatch") suite.Require().True(bytes.Equal(addr1, addr3), "validator mismatch") } diff --git a/testutil/transfer/keeper/keeper.go b/testutil/transfer/keeper/keeper.go index b257276d9..8f35aa8a6 100644 --- a/testutil/transfer/keeper/keeper.go +++ b/testutil/transfer/keeper/keeper.go @@ -22,7 +22,7 @@ import ( "github.com/neutron-org/neutron/x/transfer/types" ) -func TransferKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, channelKeeper types.ChannelKeeper, authKeeper types.AccountKeeper) (*keeper.KeeperTransferWrapper, sdk.Context, *sdk.KVStoreKey) { +func TransferKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, channelKeeper types.ChannelKeeper, authKeeper types.AccountKeeper) (*keeper.KeeperTransferWrapper, sdk.Context, *storetypes.KVStoreKey) { storeKey := sdk.NewKVStoreKey(transfertypes.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey("mem_" + transfertypes.StoreKey) diff --git a/wasmbinding/custom_querier.go b/wasmbinding/custom_querier.go index bf22446a9..e4d717bc1 100644 --- a/wasmbinding/custom_querier.go +++ b/wasmbinding/custom_querier.go @@ -110,7 +110,7 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag bz, err := json.Marshal(res) if err != nil { - return nil, errors.Wrap(err, "failed to JSON marshal FullDenomResponse response.") + return nil, errors.Wrap(err, "failed to JSON marshal FullDenomResponse response") } return bz, nil @@ -123,7 +123,7 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag bz, err := json.Marshal(res) if err != nil { - return nil, errors.Wrap(err, "failed to JSON marshal DenomAdminResponse response.") + return nil, errors.Wrap(err, "failed to JSON marshal DenomAdminResponse response") } return bz, nil diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index d60eed580..3f8697914 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -4,9 +4,9 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - ibcconnectiontypes "github.com/cosmos/ibc-go/v4/modules/core/03-connection/types" + ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" diff --git a/x/feerefunder/types/codec.go b/x/feerefunder/types/codec.go index abaf590aa..24b7f62e5 100644 --- a/x/feerefunder/types/codec.go +++ b/x/feerefunder/types/codec.go @@ -3,17 +3,14 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" ) func RegisterCodec(_ *codec.LegacyAmino) { // this line is used by starport scaffolding # 2 } -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { +func RegisterInterfaces(_ cdctypes.InterfaceRegistry) { // this line is used by starport scaffolding # 3 - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } var ( diff --git a/x/feerefunder/types/tx.pb.go b/x/feerefunder/types/tx.pb.go deleted file mode 100644 index 978495680..000000000 --- a/x/feerefunder/types/tx.pb.go +++ /dev/null @@ -1,86 +0,0 @@ -// // Code generated by protoc-gen-gogo. DO NOT EDIT. -// // source: feerefunder/tx.proto -package types - -import ( - context "context" - fmt "fmt" - math "math" - - _ "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = 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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("feerefunder/tx.proto", fileDescriptor_af2a0269bf094340) } - -var fileDescriptor_af2a0269bf094340 = []byte{ - // 174 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4b, 0x4d, 0x2d, - 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x92, 0xcb, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xcb, 0x2f, 0x4a, 0xd7, 0x83, 0x32, 0xf5, - 0x90, 0x14, 0x4a, 0xc9, 0x25, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x27, 0x25, 0x16, 0xa7, 0xea, - 0x97, 0x19, 0x26, 0xa5, 0x96, 0x24, 0x1a, 0xea, 0x27, 0xe7, 0x67, 0xe6, 0x41, 0xf4, 0x4b, 0x89, - 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x44, 0xd4, 0x88, 0x95, 0x8b, 0xd9, 0xb7, - 0x38, 0xdd, 0xc9, 0xe7, 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, 0x8c, 0xd2, - 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xa1, 0xd6, 0xea, 0xe6, 0x17, 0xa5, - 0xc3, 0xd8, 0xfa, 0x15, 0xfa, 0x28, 0xae, 0xad, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x9b, 0x6d, - 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x8f, 0xb3, 0x6d, 0xc9, 0x00, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ context.Context - _ 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. -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 struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface{} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct{} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutronorg.neutron.feerefunder.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "feerefunder/tx.proto", -} diff --git a/x/ibc-hooks/ibc_middleware_test.go b/x/ibc-hooks/ibc_middleware_test.go index 9bb9093a4..6a217b1ce 100644 --- a/x/ibc-hooks/ibc_middleware_test.go +++ b/x/ibc-hooks/ibc_middleware_test.go @@ -144,10 +144,10 @@ func (suite *HooksTestSuite) receivePacketWithSequence(receiver, memo string, pr packet := suite.makeMockPacket(receiver, memo, prevSequence) - seq_id, err := suite.GetNeutronZoneApp(suite.ChainB).HooksICS4Wrapper.SendPacket( + seqID, err := suite.GetNeutronZoneApp(suite.ChainB).HooksICS4Wrapper.SendPacket( suite.ChainB.GetContext(), channelCap, suite.TransferPath.EndpointA.ChannelConfig.PortID, suite.TransferPath.EndpointA.ChannelID, packet.TimeoutHeight, packet.TimeoutTimestamp, packet.Data) suite.Require().NoError(err, "IBC send failed. Expected success. %s", err) - suite.Require().Equal(prevSequence+1, seq_id) + suite.Require().Equal(prevSequence+1, seqID) // Update both clients err = suite.TransferPath.EndpointB.UpdateClient() diff --git a/x/interchaintxs/ibc_module.go b/x/interchaintxs/ibc_module.go index 9e7bec32c..b929b8e35 100644 --- a/x/interchaintxs/ibc_module.go +++ b/x/interchaintxs/ibc_module.go @@ -28,7 +28,7 @@ func NewIBCModule(k keeper.Keeper) IBCModule { // OnChanOpenInit implements the IBCModule interface. We don't need to implement this handler. func (im IBCModule) OnChanOpenInit( - ctx sdk.Context, + _ sdk.Context, _ channeltypes.Order, _ []string, _ string, diff --git a/x/transfer/types/tx.go b/x/transfer/types/tx.go index eef4df539..661f74b3f 100644 --- a/x/transfer/types/tx.go +++ b/x/transfer/types/tx.go @@ -24,7 +24,9 @@ func (msg *MsgTransfer) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{fromAddress} } -func Msg_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +// MsgOrigTransferHandler - 1) helps to bind `/neutron.transfer.Msg/Transfer` as a handler for `ibc.applications.transfer.v1.MsgTransfer` +// 2) converts `ibc.applications.transfer.v1.MsgTransfer` into neutron.transfer.MsgTransfer` before processing. +func MsgOrigTransferHandler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(types.MsgTransfer) if err := dec(in); err != nil { return nil, err @@ -71,7 +73,7 @@ var MsgServiceDescOrig = grpc.ServiceDesc{ Methods: []grpc.MethodDesc{ { MethodName: "Transfer", - Handler: Msg_Transfer_Handler, + Handler: MsgOrigTransferHandler, }, }, Streams: []grpc.StreamDesc{}, From 1e18deb6612beea8f8b047fd726e0467e02582ff Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 2 Aug 2023 14:42:57 +0400 Subject: [PATCH 015/307] fix config --- network/init-neutrond.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index e8edbe1d9..56e0de6a6 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -10,7 +10,7 @@ THIRD_PARTY_CONTRACTS_DIR=${THIRD_PARTY_CONTRACTS_DIR:-./contracts_thirdparty} # IMPORTANT! minimum_gas_prices should always contain at least one record, otherwise the chain will not start or halt # ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 denom is required by intgration tests (test:tokenomics) -MIN_GAS_PRICES_DEFAULT='[{"denom":"ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2","amount":"0"},{"denom":"untrn","amount":"0"}],' +MIN_GAS_PRICES_DEFAULT='[{"denom":"ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2","amount":"0"},{"denom":"untrn","amount":"0"}]' MIN_GAS_PRICES=${MIN_GAS_PRICES:-"$MIN_GAS_PRICES_DEFAULT"} BYPASS_MIN_FEE_MSG_TYPES_DEFAULT='["/ibc.core.channel.v1.Msg/RecvPacket", "/ibc.core.channel.v1.Msg/Acknowledgement", "/ibc.core.client.v1.Msg/UpdateClient"]' @@ -639,7 +639,6 @@ set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_D set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES," # globalfee set_genesis_param max_total_bypass_min_fee_msg_gas_usage "\"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE\"" # globalfee - set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BYPASS_MIN_FEE_MSG_TYPES" # globalfee set_genesis_param proposer_fee "\"0.25\"" # builder(POB) From b3c58a0a0ab02fbe3531a02e4316227b7a54ef4c Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 4 Aug 2023 13:13:46 +0400 Subject: [PATCH 016/307] feat: remove timeout_commit cosmos-sdk value of 5s by rewriting function of interceptConfig --- cmd/neutrond/root.go | 33 ++----- cmd/neutrond/util.go | 216 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 223 insertions(+), 26 deletions(-) create mode 100644 cmd/neutrond/util.go diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 7d1cef1f3..3c392db20 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -3,13 +3,10 @@ package main import ( "errors" "fmt" - "io" - "os" - "path/filepath" - "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" 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" @@ -35,14 +32,14 @@ import ( "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/neutron-org/neutron/app" + "github.com/neutron-org/neutron/app/params" "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" "github.com/spf13/cobra" - "time" - - tmcfg "github.com/cometbft/cometbft/config" - "github.com/neutron-org/neutron/app" - "github.com/neutron-org/neutron/app/params" + "io" + "os" + "path/filepath" ) // NewRootCmd creates a new root command for neutrond. It is called once in the @@ -88,14 +85,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { } customTemplate, customNeutronConfig := initAppConfig() - err = server.InterceptConfigsPreRunHandler(cmd, customTemplate, customNeutronConfig, tmcfg.DefaultConfig()) - if err != nil { - return err - } - - setTimeoutCommit(cmd) - - return nil + return InterceptConfigsPreRunHandler(cmd, customTemplate, customNeutronConfig, tmcfg.DefaultConfig()) }, } @@ -104,15 +94,6 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { return rootCmd, encodingConfig } -// setTimeoutCommit sets default `Consensus.TimeoutCommit` to 1 second, if it was set to cosmos sdk default of 5 seconds -func setTimeoutCommit(cmd *cobra.Command) { - serverCtxPtr := server.GetServerContextFromCmd(cmd) - - if serverCtxPtr.Config.Consensus.TimeoutCommit == 5*time.Second { - serverCtxPtr.Config.Consensus.TimeoutCommit = 1 * time.Second - } -} - func initAppConfig() (string, interface{}) { srvCfg := serverconfig.DefaultConfig() diff --git a/cmd/neutrond/util.go b/cmd/neutrond/util.go new file mode 100644 index 000000000..a214bb7d1 --- /dev/null +++ b/cmd/neutrond/util.go @@ -0,0 +1,216 @@ +package main + +import ( + "cosmossdk.io/log" + "fmt" + tmcfg "github.com/cometbft/cometbft/config" + tmcli "github.com/cometbft/cometbft/libs/cli" + tmlog "github.com/cometbft/cometbft/libs/log" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/server" + serverconfig "github.com/cosmos/cosmos-sdk/server/config" + serverlog "github.com/cosmos/cosmos-sdk/server/log" + "github.com/rs/zerolog" + "github.com/spf13/cobra" + "github.com/spf13/pflag" + "github.com/spf13/viper" + "os" + "path" + "path/filepath" + "strings" +) + +// NOTE: The functions below are copy-pasted from cosmos-sdk@v0.47.3 (see https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/server/util.go#L122) +// Reason for this is that we want to remove cosmos-sdk override of commit_timeout to 5s (https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/server/util.go#L239-L241) + +// InterceptConfigsPreRunHandler performs a pre-run function for the root daemon +// application command. It will create a Viper literal and a default server +// Context. The server Tendermint configuration will either be read and parsed +// or created and saved to disk, where the server Context is updated to reflect +// the Tendermint configuration. It takes custom app config template and config +// settings to create a custom Tendermint configuration. If the custom template +// is empty, it uses default-template provided by the server. The Viper literal +// is used to read and parse the application configuration. Command handlers can +// fetch the server Context to get the Tendermint configuration or to get access +// to Viper. +func InterceptConfigsPreRunHandler(cmd *cobra.Command, customAppConfigTemplate string, customAppConfig interface{}, tmConfig *tmcfg.Config) error { + serverCtx := server.NewDefaultContext() + + // Get the executable name and configure the viper instance so that environmental + // variables are checked based off that name. The underscore character is used + // as a separator. + executableName, err := os.Executable() + if err != nil { + return err + } + + basename := path.Base(executableName) + + // configure the viper instance + if err := serverCtx.Viper.BindPFlags(cmd.Flags()); err != nil { + return err + } + if err := serverCtx.Viper.BindPFlags(cmd.PersistentFlags()); err != nil { + return err + } + + serverCtx.Viper.SetEnvPrefix(basename) + serverCtx.Viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_")) + serverCtx.Viper.AutomaticEnv() + + // intercept configuration files, using both Viper instances separately + config, err := interceptConfigs(serverCtx.Viper, customAppConfigTemplate, customAppConfig, tmConfig) + if err != nil { + return err + } + + // return value is a tendermint configuration object + serverCtx.Config = config + if err = bindFlags(basename, cmd, serverCtx.Viper); err != nil { + return err + } + + var opts []log.Option + if serverCtx.Viper.GetString(flags.FlagLogFormat) == tmcfg.LogFormatJSON { + opts = append(opts, log.OutputJSONOption()) + } + + // check and set filter level or keys for the logger if any + logLvlStr := serverCtx.Viper.GetString(flags.FlagLogLevel) + if logLvlStr != "" { + logLvl, err := zerolog.ParseLevel(logLvlStr) + switch { + case err != nil: + // If the log level is not a valid zerolog level, then we try to parse it as a key filter. + filterFunc, err := log.ParseLogLevel(logLvlStr) + if err != nil { + return err + } + + opts = append(opts, log.FilterOption(filterFunc)) + case serverCtx.Viper.GetBool(tmcli.TraceFlag): + // Check if the CometBFT flag for trace logging is set if it is then setup a tracing logger in this app as well. + // Note it overrides log level passed in `log_levels`. + opts = append(opts, log.LevelOption(zerolog.TraceLevel)) + default: + opts = append(opts, log.LevelOption(logLvl)) + } + } + + logger := log.NewLogger(tmlog.NewSyncWriter(os.Stdout), opts...).With(log.ModuleKey, "server") + serverCtx.Logger = serverlog.CometLoggerWrapper{Logger: logger} + + return server.SetCmdServerContext(cmd, serverCtx) +} + +// interceptConfigs parses and updates a Tendermint configuration file or +// creates a new one and saves it. It also parses and saves the application +// configuration file. The Tendermint configuration file is parsed given a root +// Viper object, whereas the application is parsed with the private package-aware +// viperCfg object. +func interceptConfigs(rootViper *viper.Viper, customAppTemplate string, customConfig interface{}, tmConfig *tmcfg.Config) (*tmcfg.Config, error) { + rootDir := rootViper.GetString(flags.FlagHome) + configPath := filepath.Join(rootDir, "config") + tmCfgFile := filepath.Join(configPath, "config.toml") + + conf := tmConfig + + switch _, err := os.Stat(tmCfgFile); { + case os.IsNotExist(err): + tmcfg.EnsureRoot(rootDir) + + if err = conf.ValidateBasic(); err != nil { + return nil, fmt.Errorf("error in config file: %w", err) + } + + defaultCometCfg := tmcfg.DefaultConfig() + if conf.RPC.PprofListenAddress == defaultCometCfg.RPC.PprofListenAddress { + conf.RPC.PprofListenAddress = "localhost:6060" + } + tmcfg.WriteConfigFile(tmCfgFile, conf) + case err != nil: + return nil, err + + default: + rootViper.SetConfigType("toml") + rootViper.SetConfigName("config") + rootViper.AddConfigPath(configPath) + + if err := rootViper.ReadInConfig(); err != nil { + return nil, fmt.Errorf("failed to read in %s: %w", tmCfgFile, err) + } + } + + // Read into the configuration whatever data the viper instance has for it. + // This may come from the configuration file above but also any of the other + // sources viper uses. + if err := rootViper.Unmarshal(conf); err != nil { + return nil, err + } + + conf.SetRoot(rootDir) + + appCfgFilePath := filepath.Join(configPath, "app.toml") + if _, err := os.Stat(appCfgFilePath); os.IsNotExist(err) { + if customAppTemplate != "" { + serverconfig.SetConfigTemplate(customAppTemplate) + + if err = rootViper.Unmarshal(&customConfig); err != nil { + return nil, fmt.Errorf("failed to parse %s: %w", appCfgFilePath, err) + } + + serverconfig.WriteConfigFile(appCfgFilePath, customConfig) + } else { + appConf, err := serverconfig.ParseConfig(rootViper) + if err != nil { + return nil, fmt.Errorf("failed to parse %s: %w", appCfgFilePath, err) + } + + serverconfig.WriteConfigFile(appCfgFilePath, appConf) + } + } + + rootViper.SetConfigType("toml") + rootViper.SetConfigName("app") + rootViper.AddConfigPath(configPath) + + if err := rootViper.MergeInConfig(); err != nil { + return nil, fmt.Errorf("failed to merge configuration: %w", err) + } + + return conf, nil +} + +func bindFlags(basename string, cmd *cobra.Command, v *viper.Viper) (err error) { + defer func() { + if r := recover(); r != nil { + err = fmt.Errorf("bindFlags failed: %v", r) + } + }() + + cmd.Flags().VisitAll(func(f *pflag.Flag) { + // Environment variables can't have dashes in them, so bind them to their equivalent + // keys with underscores, e.g. --favorite-color to STING_FAVORITE_COLOR + err = v.BindEnv(f.Name, fmt.Sprintf("%s_%s", basename, strings.ToUpper(strings.ReplaceAll(f.Name, "-", "_")))) + if err != nil { + panic(err) + } + + err = v.BindPFlag(f.Name, f) + if err != nil { + panic(err) + } + + // Apply the viper config value to the flag when the flag is not set and + // viper has a value. + if !f.Changed && v.IsSet(f.Name) { + val := v.Get(f.Name) + err = cmd.Flags().Set(f.Name, fmt.Sprintf("%v", val)) + if err != nil { + panic(err) + } + } + }) + + return err +} From f8944d8c595a8663988f2ab44f62ed476006f5af Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 7 Aug 2023 15:34:34 +0400 Subject: [PATCH 017/307] cleanup --- app/ante_handler.go | 10 ++-------- app/genesis.go | 1 + app/upgrades/nextupgrade/upgrades_test.go | 3 ++- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index cc6377170..88a1845fe 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -20,12 +20,6 @@ import ( builderkeeper "github.com/skip-mev/pob/x/builder/keeper" ) -// maxBypassMinFeeMsgGasUsage is the maximum gas usage per message -// so that a transaction that contains only message types that can -// bypass the minimum fee can be accepted with a zero fee. -// For details, see gaiafeeante.NewFeeDecorator() -const maxBypassMinFeeMsgGasUsage uint64 = 500_000 // Should be high enough because /ibc.core.client.v1.MsgUpdateClient is the most expensive message - // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC // channel keeper. type HandlerOptions struct { @@ -78,9 +72,9 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, ante.NewTxTimeoutHeightDecorator(), ante.NewValidateMemoDecorator(options.AccountKeeper), ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper), - // We are providing options.GlobalFeeSubspace because we do not have staking module + // We are providing nil as a StakingKeeper arg because we do not have staking module // In this case you should be sure that you - // implemented upgrade to set default global fee param with at least one record + // implemented upgrade to set default `ParamStoreKeyMinGasPrices` global fee param with at least one record // otherwise you will get panic globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), diff --git a/app/genesis.go b/app/genesis.go index 41d5e2ab6..c9434396f 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -2,6 +2,7 @@ package app import ( "encoding/json" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index bd1d7237e..9da7aa2eb 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,9 +1,10 @@ package nextupgrade_test import ( + "testing" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - "testing" sdk "github.com/cosmos/cosmos-sdk/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" From dbb36d4af54f2318134f1601dc96176ce91e47a2 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Mon, 7 Aug 2023 17:54:17 +0300 Subject: [PATCH 018/307] Upgrade PFM to a new repo and the latest version --- app/app.go | 10 ++++++---- app/proposals_allowlisting.go | 2 +- go.mod | 4 +--- go.sum | 7 ++----- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/app/app.go b/app/app.go index 6c9e793a6..fa3519bf5 100644 --- a/app/app.go +++ b/app/app.go @@ -17,7 +17,6 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" - "github.com/neutron-org/neutron/docs" proposalhandler "github.com/skip-mev/pob/abci" "github.com/skip-mev/pob/mempool" "github.com/skip-mev/pob/x/builder" @@ -25,6 +24,8 @@ import ( rewardsaddressprovider "github.com/skip-mev/pob/x/builder/rewards_address_provider" buildertypes "github.com/skip-mev/pob/x/builder/types" + "github.com/neutron-org/neutron/docs" + "github.com/neutron-org/neutron/app/upgrades" "github.com/neutron-org/neutron/app/upgrades/nextupgrade" v044 "github.com/neutron-org/neutron/app/upgrades/v0.4.4" @@ -107,6 +108,7 @@ import ( "github.com/spf13/cast" govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" + cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -151,9 +153,9 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - "github.com/strangelove-ventures/packet-forward-middleware/v7/router" - routerkeeper "github.com/strangelove-ventures/packet-forward-middleware/v7/router/keeper" - routertypes "github.com/strangelove-ventures/packet-forward-middleware/v7/router/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router" + routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" + routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" ) const ( diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index ce9c3ed3c..afff1499f 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -6,10 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - packetforwardmiddlewaretypes "github.com/strangelove-ventures/packet-forward-middleware/v7/router/types" ) func IsConsumerProposalAllowlisted(content govtypes.Content) bool { diff --git a/go.mod b/go.mod index 46f8824f4..f3a9b128d 100644 --- a/go.mod +++ b/go.mod @@ -16,6 +16,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.3 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 @@ -24,14 +25,12 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.15.1 github.com/skip-mev/pob v1.0.3 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 github.com/spf13/viper v1.16.0 - github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f github.com/stretchr/testify v1.8.4 google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc google.golang.org/grpc v1.55.0 @@ -83,7 +82,6 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/ghodss/yaml v1.0.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.6.0 // indirect diff --git a/go.sum b/go.sum index 5d3442aab..7dc5f271d 100644 --- a/go.sum +++ b/go.sum @@ -396,6 +396,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 h1:n+PjYB3JnbKN+sGmX6khST4xMP+D0UdrMNj7O91fuOg= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= @@ -499,7 +501,6 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -699,8 +700,6 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf 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.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= 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= @@ -1101,8 +1100,6 @@ github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DM github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= -github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f h1:NJdZ+YJ9Vf2t286L20IjFK0SxGpobF1xIp5ZQlxWetk= -github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f/go.mod h1:DJNSVK8NCYHM+aZHCFkcAqPwjzwHYAjhjSMlhAGtJ3c= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= From bbd7b398315d1d0a5a563425ff7219b5a827296b Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 8 Aug 2023 12:09:51 +0300 Subject: [PATCH 019/307] wasmd 0.41 --- go.mod | 50 ++++++++++----------- go.sum | 97 +++++++++++++++++++--------------------- testutil/test_helpers.go | 2 +- 3 files changed, 71 insertions(+), 78 deletions(-) diff --git a/go.mod b/go.mod index 46f8824f4..cb6ae7427 100644 --- a/go.mod +++ b/go.mod @@ -4,16 +4,16 @@ go 1.20 require ( cosmossdk.io/core v0.5.1 - cosmossdk.io/errors v1.0.0-beta.7 + cosmossdk.io/errors v1.0.0 cosmossdk.io/math v1.0.1 - github.com/CosmWasm/wasmd v0.40.0 - github.com/CosmWasm/wasmvm v1.2.4 + github.com/CosmWasm/wasmd v0.41.0 + github.com/CosmWasm/wasmvm v1.3.0 github.com/armon/go-metrics v0.4.1 github.com/cometbft/cometbft v0.37.2 github.com/cometbft/cometbft-db v0.8.0 github.com/cosmos/admin-module v0.0.0-20220204080909-475a98e03f31 github.com/cosmos/cosmos-proto v1.0.0-beta.2 - github.com/cosmos/cosmos-sdk v0.47.3 + github.com/cosmos/cosmos-sdk v0.47.4 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-go/v7 v7.2.0 @@ -24,29 +24,28 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 github.com/pkg/errors v0.9.1 - github.com/prometheus/client_golang v1.15.1 + github.com/prometheus/client_golang v1.16.0 github.com/skip-mev/pob v1.0.3 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 github.com/spf13/viper v1.16.0 github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc - google.golang.org/grpc v1.55.0 + google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 + google.golang.org/grpc v1.56.2 gopkg.in/yaml.v2 v2.4.0 ) require ( - cloud.google.com/go v0.110.0 // indirect - cloud.google.com/go/compute v1.19.0 // indirect + cloud.google.com/go v0.110.4 // indirect + cloud.google.com/go/compute v1.20.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v0.13.0 // indirect - cloud.google.com/go/storage v1.29.0 // indirect + cloud.google.com/go/iam v1.1.0 // indirect + cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - cosmossdk.io/log v1.1.0 // indirect + cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -83,7 +82,6 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/ghodss/yaml v1.0.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.6.0 // indirect @@ -96,10 +94,10 @@ require ( github.com/google/go-cmp v0.5.9 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect - github.com/google/s2a-go v0.1.3 // indirect + github.com/google/s2a-go v0.1.4 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.8.0 // indirect + github.com/googleapis/gax-go/v2 v2.11.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect @@ -160,19 +158,19 @@ require ( github.com/zondax/ledger-go v0.14.1 // indirect go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.10.0 // indirect + golang.org/x/crypto v0.11.0 // indirect golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect - golang.org/x/net v0.11.0 // indirect + golang.org/x/net v0.12.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sys v0.9.0 // indirect - golang.org/x/term v0.9.0 // indirect - golang.org/x/text v0.10.0 // indirect + golang.org/x/sys v0.10.0 // indirect + golang.org/x/term v0.10.0 // indirect + golang.org/x/text v0.11.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.122.0 // indirect + google.golang.org/api v0.126.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect - google.golang.org/protobuf v1.30.0 // indirect + google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect + google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.7 // indirect @@ -183,7 +181,7 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d - github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index 5d3442aab..71b2262b1 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,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.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= -cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= +cloud.google.com/go v0.110.4 h1:1JYyxKMN9hd5dR2MYTPWkGUgcoxVVhg0LKNKEo0qvmk= +cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= 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= @@ -73,8 +73,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.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ= -cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= +cloud.google.com/go/compute v1.20.1 h1:6aKEtlUiwEpJzM001l0yFkpXmUVXaN8W+fbkb2AZNbg= +cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= 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= @@ -114,13 +114,12 @@ 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 v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= -cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= +cloud.google.com/go/iam v1.1.0 h1:67gSqaPukx7O8WLLHMa0PNs3EBGd2eE4d+psbO/CO94= +cloud.google.com/go/iam v1.1.0/go.mod h1:nxdHjaKfCr7fNYx/HJMM8LgiMugmveWlkatear5gVyk= 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= cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= -cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= @@ -178,8 +177,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI= -cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= +cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= @@ -198,10 +197,10 @@ 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.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= -cosmossdk.io/errors v1.0.0-beta.7 h1:gypHW76pTQGVnHKo6QBkb4yFOJjC+sUGRc5Al3Odj1w= -cosmossdk.io/errors v1.0.0-beta.7/go.mod h1:mz6FQMJRku4bY7aqS/Gwfcmr/ue91roMEKAmDUDpBfE= -cosmossdk.io/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0= -cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4= +cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= +cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= +cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca h1:msenprh2BLLRwNT7zN56TbBHOGk/7ARQckXHxXyvjoQ= +cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca/go.mod h1:PkIAKXZvaxrTRc++z53XMRvFk8AcGGWYHcMIPzVYX9c= cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw= @@ -222,8 +221,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= -github.com/CosmWasm/wasmvm v1.2.4 h1:6OfeZuEcEH/9iqwrg2pkeVtDCkMoj9U6PpKtcrCyVrQ= -github.com/CosmWasm/wasmvm v1.2.4/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= +github.com/CosmWasm/wasmvm v1.3.0 h1:x12X4bKlUPS7TT9QQP45+fJo2sp30GEbiSSgb9jsec8= +github.com/CosmWasm/wasmvm v1.3.0/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= @@ -382,8 +381,8 @@ 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.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.3 h1:r0hGmZoAzP2D+MaPaFGHwAaTdFQq3pNpHaUp1BsffbM= -github.com/cosmos/cosmos-sdk v0.47.3/go.mod h1:c4OfLdAykA9zsj1CqrxBRqXzVz48I++JSvIMPSPcEmk= +github.com/cosmos/cosmos-sdk v0.47.4 h1:FVUpEprm58nMmBX4xkRdMDaIG5Nr4yy92HZAfGAw9bg= +github.com/cosmos/cosmos-sdk v0.47.4/go.mod h1:R5n+uM7vguVPFap4pgkdvQCT1nVo/OtPwrlAU40rvok= github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 h1:mfMLLg6wbQfZCf0IkdvEWiC3AVXkNgX0vaDZFtdYLs0= github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4/go.mod h1:6zse9gY32FcZtX9/GYqXPGxneRN7+qpPCi/doXzgK5E= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= @@ -499,7 +498,6 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -651,8 +649,8 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 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.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= -github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +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/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= @@ -673,8 +671,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.8.0 h1:UBtEZqx1bjXtOQ5BVTkuYghXrr3N4V123VKJK67vJZc= -github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= +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/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= @@ -699,8 +697,6 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf 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.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= 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= @@ -932,8 +928,7 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= -github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= -github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -1003,8 +998,8 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.15.1 h1:8tXpTmJbyH5lydzFPoxSIJ0J46jdh3tylbvM1xCv0LI= -github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= +github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8= +github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -1228,8 +1223,8 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/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.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= -golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= +golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= +golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= 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= @@ -1340,8 +1335,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU= -golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= +golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= +golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= 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= @@ -1492,14 +1487,14 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc 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.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s= -golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= +golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.9.0 h1:GRRCnKYhdQrD8kfRAdQ6Zcw1P0OcELxGLKJvtjVMZ28= -golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= +golang.org/x/term v0.10.0 h1:3R7pNqamzBraeqj/Tj8qt1aQ2HpmlC+Cx/qL/7hn4/c= +golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1511,8 +1506,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58= -golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= +golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1648,8 +1643,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.122.0 h1:zDobeejm3E7pEG1mNHvdxvjs5XJoCMzyNH+CmwL94Es= -google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= +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/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= @@ -1770,12 +1765,12 @@ 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-20230530153820-e85fd2cbaebc h1:8DyZCyvI8mE1IdLy/60bS+52xfymkE72wv1asokgtao= -google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1:kVKPf/IiYSBWEWtkIn6wZXwWGCnLKcC8oWfZvXjsGnM= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 h1:Au6te5hbKUV8pIYWHqOUZ1pva5qK/rwbIhoXEUB9Lu8= +google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= +google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 h1:s5YSX+ZH5b5vS9rnpGymvIyMpLRJizowqDlOuyjXnTk= +google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1817,8 +1812,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.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc v1.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI= +google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= 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= @@ -1835,8 +1830,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.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/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= 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= @@ -1874,7 +1869,7 @@ 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.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= +gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY= 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= diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index 7873fe0f6..dd5ea39b5 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -286,7 +286,7 @@ func (suite *IBCConnectionTestSuite) StoreReflectCode(ctx sdk.Context, addr sdk. wasmCode, err := os.ReadFile(path) suite.Require().NoError(err) - codeID, _, err := keeper.NewDefaultPermissionKeeper(suite.GetNeutronZoneApp(suite.ChainA).WasmKeeper).Create(ctx, addr, wasmCode, &wasmtypes.AccessConfig{Permission: wasmtypes.AccessTypeEverybody, Address: ""}) + codeID, _, err := keeper.NewDefaultPermissionKeeper(suite.GetNeutronZoneApp(suite.ChainA).WasmKeeper).Create(ctx, addr, wasmCode, &wasmtypes.AccessConfig{Permission: wasmtypes.AccessTypeEverybody}) suite.Require().NoError(err) return codeID From 40e285d31bc964bdce1e1c6689c96fc42b887675 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 9 Aug 2023 16:25:38 +0400 Subject: [PATCH 020/307] feat: add resubmitFailure handler --- app/app.go | 2 +- proto/neutron/contractmanager/genesis.proto | 3 + wasmbinding/bindings/msg.go | 7 ++ wasmbinding/message_plugin.go | 68 ++++++++---- wasmbinding/wasm.go | 4 +- x/contractmanager/keeper/failure.go | 32 +++++- x/contractmanager/types/genesis.pb.go | 109 ++++++++++++++++---- x/interchaintxs/keeper/ibc_handlers.go | 5 +- 8 files changed, 184 insertions(+), 46 deletions(-) diff --git a/app/app.go b/app/app.go index 6c9e793a6..0fcf3fe64 100644 --- a/app/app.go +++ b/app/app.go @@ -665,7 +665,7 @@ func New( ) app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper) - wasmOpts = append(wasmbinding.RegisterCustomPlugins(&app.InterchainTxsKeeper, &app.InterchainQueriesKeeper, app.TransferKeeper, &app.AdminmoduleKeeper, app.FeeBurnerKeeper, app.FeeKeeper, &app.BankKeeper, app.TokenFactoryKeeper, &app.CronKeeper), wasmOpts...) + wasmOpts = append(wasmbinding.RegisterCustomPlugins(&app.InterchainTxsKeeper, &app.InterchainQueriesKeeper, app.TransferKeeper, &app.AdminmoduleKeeper, app.FeeBurnerKeeper, app.FeeKeeper, &app.BankKeeper, app.TokenFactoryKeeper, &app.CronKeeper, &app.ContractManagerKeeper), wasmOpts...) queryPlugins := wasmkeeper.WithQueryPlugins( &wasmkeeper.QueryPlugins{Stargate: wasmkeeper.AcceptListStargateQuerier(wasmbinding.AcceptedStargateQueries(), app.GRPCQueryRouter(), appCodec)}) diff --git a/proto/neutron/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto index 3ac92eb55..fcff1b05a 100644 --- a/proto/neutron/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -3,6 +3,7 @@ package neutron.contractmanager; import "gogoproto/gogo.proto"; import "neutron/contractmanager/params.proto"; +import "ibc/core/channel/v1/channel.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; @@ -20,6 +21,8 @@ message Failure { uint64 ack_id = 4; // Acknowledgement type string ack_type = 5; + // IBC Packet of failure + ibc.core.channel.v1.Packet packet = 6; } // GenesisState defines the contractmanager module's genesis state. diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 8dcccba8f..4d2a35472 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -237,3 +237,10 @@ type MsgExecuteContract struct { // Msg json encoded message to be passed to the contract Msg string `json:"msg,omitempty"` } + +type ResubmitFailure struct { + // TODO + FailureId uint64 `json:"failure_id"` +} + +type ResubmitFailureResponse struct{} diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 4fc27b93c..74301e87c 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -3,6 +3,7 @@ package wasmbinding import ( "encoding/json" "fmt" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" "cosmossdk.io/errors" @@ -46,34 +47,37 @@ func CustomMessageDecorator( bankKeeper *bankkeeper.BaseKeeper, tokenFactoryKeeper *tokenfactorykeeper.Keeper, cronKeeper *cronkeeper.Keeper, + contractmanagerKeeper *contractmanagerkeeper.Keeper, ) func(messenger wasmkeeper.Messenger) wasmkeeper.Messenger { return func(old wasmkeeper.Messenger) wasmkeeper.Messenger { return &CustomMessenger{ - Keeper: *ictx, - Wrapped: old, - Ictxmsgserver: ictxkeeper.NewMsgServerImpl(*ictx), - Icqmsgserver: icqkeeper.NewMsgServerImpl(*icq), - transferKeeper: transferKeeper, - Adminserver: adminmodulekeeper.NewMsgServerImpl(*adminKeeper), - Bank: bankKeeper, - TokenFactory: tokenFactoryKeeper, - CronKeeper: cronKeeper, - AdminKeeper: adminKeeper, + Keeper: *ictx, + Wrapped: old, + Ictxmsgserver: ictxkeeper.NewMsgServerImpl(*ictx), + Icqmsgserver: icqkeeper.NewMsgServerImpl(*icq), + transferKeeper: transferKeeper, + Adminserver: adminmodulekeeper.NewMsgServerImpl(*adminKeeper), + Bank: bankKeeper, + TokenFactory: tokenFactoryKeeper, + CronKeeper: cronKeeper, + AdminKeeper: adminKeeper, + ContractmanagerKeeper: contractmanagerKeeper, } } } type CustomMessenger struct { - Keeper ictxkeeper.Keeper - Wrapped wasmkeeper.Messenger - Ictxmsgserver ictxtypes.MsgServer - Icqmsgserver icqtypes.MsgServer - transferKeeper transferwrapperkeeper.KeeperTransferWrapper - Adminserver admintypes.MsgServer - Bank *bankkeeper.BaseKeeper - TokenFactory *tokenfactorykeeper.Keeper - CronKeeper *cronkeeper.Keeper - AdminKeeper *adminmodulekeeper.Keeper + Keeper ictxkeeper.Keeper + Wrapped wasmkeeper.Messenger + Ictxmsgserver ictxtypes.MsgServer + Icqmsgserver icqtypes.MsgServer + transferKeeper transferwrapperkeeper.KeeperTransferWrapper + Adminserver admintypes.MsgServer + Bank *bankkeeper.BaseKeeper + TokenFactory *tokenfactorykeeper.Keeper + CronKeeper *cronkeeper.Keeper + AdminKeeper *adminmodulekeeper.Keeper + ContractmanagerKeeper *contractmanagerkeeper.Keeper } var _ wasmkeeper.Messenger = (*CustomMessenger)(nil) @@ -863,6 +867,30 @@ func (m *CustomMessenger) removeSchedule(ctx sdk.Context, contractAddr sdk.AccAd return nil, [][]byte{data}, nil } +func (m *CustomMessenger) resubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, resubmitFailure *bindings.ResubmitFailure) ([]sdk.Event, [][]byte, error) { + err := m.ContractmanagerKeeper.ResubmitFailure(ctx, contractAddr, resubmitFailure.FailureId) + + if err != nil { + ctx.Logger().Error("failed to resubmitFailure", + "from_address", contractAddr.String(), + "error", err, + ) + return nil, nil, errors.Wrap(err, "failed to resubmitFailure") + } + + resp := bindings.ResubmitFailureResponse{} + data, err := json.Marshal(&resp) + if err != nil { + ctx.Logger().Error("json.Marshal: failed to marshal remove resubmitFailure response to JSON", + "from_address", contractAddr.String(), + "error", err, + ) + return nil, nil, errors.Wrap(err, "marshal json failed") + } + + return nil, [][]byte{data}, nil +} + func (m *CustomMessenger) isAdmin(ctx sdk.Context, contractAddr sdk.AccAddress) bool { for _, admin := range m.AdminKeeper.GetAdmins(ctx) { if admin == contractAddr.String() { diff --git a/wasmbinding/wasm.go b/wasmbinding/wasm.go index cb7be3872..151fd1c2f 100644 --- a/wasmbinding/wasm.go +++ b/wasmbinding/wasm.go @@ -4,6 +4,7 @@ import ( "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" feerefunderkeeper "github.com/neutron-org/neutron/x/feerefunder/keeper" @@ -27,6 +28,7 @@ func RegisterCustomPlugins( bank *bankkeeper.BaseKeeper, tfk *tokenfactorykeeper.Keeper, cronKeeper *cronkeeper.Keeper, + contractmanagerKeeper *contractmanagerkeeper.Keeper, ) []wasmkeeper.Option { wasmQueryPlugin := NewQueryPlugin(ictxKeeper, icqKeeper, feeBurnerKeeper, feeRefunderKeeper, tfk) @@ -34,7 +36,7 @@ func RegisterCustomPlugins( Custom: CustomQuerier(wasmQueryPlugin), }) messagePluginOpt := wasmkeeper.WithMessageHandlerDecorator( - CustomMessageDecorator(ictxKeeper, icqKeeper, transfer, adminKeeper, bank, tfk, cronKeeper), + CustomMessageDecorator(ictxKeeper, icqKeeper, transfer, adminKeeper, bank, tfk, cronKeeper, contractmanagerKeeper), ) return []wasm.Option{ diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index bf00afa66..a6856881b 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -3,6 +3,7 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/contractmanager/types" ) @@ -43,7 +44,6 @@ func (k Keeper) GetNextFailureIDKey(ctx sdk.Context, address string) uint64 { func (k Keeper) GetAllFailures(ctx sdk.Context) (list []types.Failure) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.ContractFailuresKey) iterator := sdk.KVStorePrefixIterator(store, []byte{}) - defer iterator.Close() for ; iterator.Valid(); iterator.Next() { @@ -54,3 +54,33 @@ func (k Keeper) GetAllFailures(ctx sdk.Context) (list []types.Failure) { return } + +func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failureId uint64) error { + store := ctx.KVStore(k.storeKey) + failureKey := types.GetFailureKey(contractAddr.String(), failureId) + failureBz := store.Get(failureKey) + var failure types.Failure + k.cdc.MustUnmarshal(failureBz, &failure) + + if failure.Address != contractAddr.String() { + return errors.ErrUnauthorized // TODO: can we return this from keeper? + } + + if failure.GetAckType() == "ack" { // response or error + //k.SudoResponse() + } + + if failure.GetAckType() == "error" { + //k.SudoError() + } + + if failure.GetAckType() == "timeout" { + //k.SudoTimeout() + } + + // if success resubmit + // + store.Delete(failureKey) + + return nil +} diff --git a/x/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index e78a0b07c..03e781012 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -7,6 +7,7 @@ import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + types "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" io "io" math "math" math_bits "math/bits" @@ -36,6 +37,8 @@ type Failure struct { AckId uint64 `protobuf:"varint,4,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` // Acknowledgement type AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` + // IBC Packet of failure + Packet *types.Packet `protobuf:"bytes,6,opt,name=packet,proto3" json:"packet,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -106,6 +109,13 @@ func (m *Failure) GetAckType() string { return "" } +func (m *Failure) GetPacket() *types.Packet { + if m != nil { + return m.Packet + } + return nil +} + // GenesisState defines the contractmanager module's genesis state. type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` @@ -170,28 +180,31 @@ func init() { } var fileDescriptor_cf4a1534315a7490 = []byte{ - // 335 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x3f, 0x4f, 0x02, 0x31, - 0x18, 0xc6, 0xaf, 0xc7, 0x3f, 0x29, 0xe8, 0xd0, 0x68, 0x3c, 0x49, 0x3c, 0x2e, 0x44, 0x13, 0x16, - 0xef, 0x12, 0x4c, 0xdc, 0x5c, 0x18, 0x34, 0x44, 0x07, 0x82, 0x4e, 0x2e, 0xa4, 0xb4, 0xf5, 0x68, - 0x80, 0xf6, 0xd2, 0x96, 0x44, 0x76, 0x3f, 0x80, 0xb3, 0x9f, 0x88, 0x91, 0xd1, 0xc9, 0x18, 0xf8, - 0x22, 0xe6, 0xee, 0xca, 0xa2, 0xb9, 0xed, 0xed, 0xd3, 0xe7, 0xfd, 0xe5, 0x7d, 0x1e, 0x78, 0x29, - 0xd8, 0xd2, 0x28, 0x29, 0x22, 0x22, 0x85, 0x51, 0x98, 0x98, 0x05, 0x16, 0x38, 0x66, 0x2a, 0x8a, - 0x99, 0x60, 0x9a, 0xeb, 0x30, 0x51, 0xd2, 0x48, 0x74, 0x6a, 0x6d, 0xe1, 0x1f, 0x5b, 0xeb, 0x38, - 0x96, 0xb1, 0xcc, 0x3c, 0x51, 0x3a, 0xe5, 0xf6, 0xd6, 0x45, 0x11, 0x35, 0xc1, 0x0a, 0x2f, 0x2c, - 0xb4, 0xf3, 0x0e, 0x60, 0xed, 0x0e, 0xf3, 0xf9, 0x52, 0x31, 0x74, 0x0e, 0x21, 0x99, 0x62, 0x21, - 0xd8, 0x7c, 0xcc, 0xa9, 0x07, 0x02, 0xd0, 0xad, 0x8f, 0xea, 0x56, 0x19, 0x50, 0xe4, 0xc1, 0x1a, - 0xa6, 0x54, 0x31, 0xad, 0x3d, 0x37, 0xfb, 0xdb, 0x3f, 0xd1, 0x11, 0x74, 0x39, 0xf5, 0x4a, 0x01, - 0xe8, 0x96, 0x47, 0x2e, 0xa7, 0xe8, 0x04, 0x56, 0x31, 0x99, 0xa5, 0x90, 0x72, 0xa6, 0x55, 0x30, - 0x99, 0x0d, 0x28, 0x3a, 0x83, 0x07, 0xa9, 0x6c, 0x56, 0x09, 0xf3, 0x2a, 0x96, 0x40, 0x66, 0xcf, - 0xab, 0x84, 0x75, 0x3e, 0x01, 0x6c, 0xde, 0xe7, 0x69, 0x9f, 0x0c, 0x36, 0x0c, 0xdd, 0xc2, 0x6a, - 0x7e, 0x67, 0x76, 0x47, 0xa3, 0xd7, 0x0e, 0x0b, 0xd2, 0x87, 0xc3, 0xcc, 0xd6, 0x2f, 0xaf, 0xbf, - 0xdb, 0xce, 0xc8, 0x2e, 0xa1, 0x07, 0x78, 0xf8, 0x9a, 0xa7, 0xd2, 0xe3, 0x39, 0xd7, 0xc6, 0x73, - 0x83, 0x52, 0xb7, 0xd1, 0x0b, 0x0a, 0x29, 0xb6, 0x03, 0x8b, 0x69, 0xee, 0x97, 0x1f, 0xb9, 0x36, - 0xfd, 0xe1, 0x7a, 0xeb, 0x83, 0xcd, 0xd6, 0x07, 0x3f, 0x5b, 0x1f, 0x7c, 0xec, 0x7c, 0x67, 0xb3, - 0xf3, 0x9d, 0xaf, 0x9d, 0xef, 0xbc, 0xdc, 0xc4, 0xdc, 0x4c, 0x97, 0x93, 0x90, 0xc8, 0x45, 0x64, - 0xc9, 0x57, 0x52, 0xc5, 0xfb, 0x39, 0x7a, 0xfb, 0x57, 0x7e, 0x1a, 0x5e, 0x4f, 0xaa, 0x59, 0xf9, - 0xd7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x88, 0x8d, 0x18, 0xf9, 0xfa, 0x01, 0x00, 0x00, + // 384 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0xce, 0xd3, 0x30, + 0x10, 0xc7, 0xe3, 0x7c, 0x6d, 0x4a, 0xdd, 0xc2, 0x60, 0x81, 0x08, 0x45, 0xa4, 0xa1, 0x02, 0x29, + 0x0b, 0xb6, 0xda, 0x4a, 0x6c, 0x2c, 0x1d, 0x40, 0x15, 0x0c, 0x55, 0x60, 0x62, 0xa9, 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, 0x5f, 0x8e, 0x25, 0x47, 0x73, 0xe8, 0x95, 0x94, 0xe5, 0xdc, 0xf8, 0x5e, 0x08, 0xa2, + 0xc1, 0xec, 0x39, 0x16, 0x09, 0xc3, 0xd5, 0xea, 0xb8, 0xdd, 0xf7, 0x30, 0xc5, 0xab, 0x1a, 0x89, + 0x2d, 0x3a, 0xf9, 0x09, 0xe0, 0xf0, 0x43, 0x93, 0xe2, 0x67, 0x43, 0x0d, 0x47, 0xef, 0x2a, 0x4b, + 0xf5, 0xff, 0xf5, 0xf2, 0x83, 0xd9, 0x18, 0xdf, 0x48, 0x15, 0xaf, 0x6a, 0x6c, 0xd1, 0x39, 0xfd, + 0x19, 0x3b, 0xb1, 0x1d, 0x42, 0x1f, 0xe1, 0xc3, 0x6f, 0x4d, 0x14, 0x7a, 0xbd, 0x15, 0xda, 0xf8, + 0x6e, 0x78, 0x17, 0x0d, 0x66, 0xe1, 0x4d, 0x8b, 0x0d, 0xce, 0x6a, 0x86, 0xed, 0xf0, 0x27, 0xa1, + 0xcd, 0x62, 0x75, 0xba, 0x04, 0xe0, 0x7c, 0x09, 0xc0, 0xdf, 0x4b, 0x00, 0x7e, 0x5c, 0x03, 0xe7, + 0x7c, 0x0d, 0x9c, 0xdf, 0xd7, 0xc0, 0xf9, 0xfa, 0x36, 0x13, 0x66, 0xb3, 0x4f, 0x30, 0x93, 0x3b, + 0x62, 0xcd, 0x6f, 0xa4, 0xca, 0xda, 0x9a, 0x7c, 0xbf, 0x77, 0xd4, 0x2a, 0x31, 0x9d, 0x78, 0xf5, + 0xc5, 0xe6, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xef, 0xe6, 0x25, 0xdb, 0x52, 0x02, 0x00, 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { @@ -214,6 +227,18 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Packet != nil { + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } if len(m.AckType) > 0 { i -= len(m.AckType) copy(dAtA[i:], m.AckType) @@ -330,6 +355,10 @@ func (m *Failure) Size() (n int) { if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } + if m.Packet != nil { + l = m.Packet.Size() + n += 1 + l + sovGenesis(uint64(l)) + } return n } @@ -519,6 +548,42 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } m.AckType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Packet == nil { + m.Packet = &types.Packet{} + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 8b851dd69..095dbebd7 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -103,14 +103,17 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events errorText := ack.GetError() + var ackType string if errorText != "" { + ackType = "err" _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, errorText) } else { + ackType = "ack" _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) } if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), "ack") + k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), ackType) k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) From f26a224083e0733792d44509bd479c4d60ada83d Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 9 Aug 2023 17:49:52 +0400 Subject: [PATCH 021/307] add ackResult and errorText to failure and use it to call sudoResponse and sudoTimeout --- proto/neutron/contractmanager/genesis.proto | 6 +- .../interchaintxs/types/expected_keepers.go | 8 +- .../mocks/transfer/types/expected_keepers.go | 8 +- wasmbinding/message_plugin.go | 12 +- x/contractmanager/genesis.go | 2 +- x/contractmanager/keeper/failure.go | 64 +++++-- x/contractmanager/keeper/failure_test.go | 11 +- x/contractmanager/types/errors.go | 3 +- x/contractmanager/types/genesis.pb.go | 161 +++++++++++++++--- x/interchaintxs/keeper/ibc_handlers.go | 19 ++- x/interchaintxs/keeper/ibc_handlers_test.go | 12 +- x/interchaintxs/types/expected_keepers.go | 2 +- x/transfer/ibc_handlers.go | 12 +- x/transfer/ibc_handlers_test.go | 22 +-- x/transfer/types/expected_keepers.go | 2 +- 15 files changed, 254 insertions(+), 90 deletions(-) diff --git a/proto/neutron/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto index fcff1b05a..39edf5918 100644 --- a/proto/neutron/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -21,8 +21,12 @@ message Failure { uint64 ack_id = 4; // Acknowledgement type string ack_type = 5; + // Acknowledgement result + bytes ack_result = 6; + // Error text (empty if no error) + string error_text = 7; // IBC Packet of failure - ibc.core.channel.v1.Packet packet = 6; + ibc.core.channel.v1.Packet packet = 8; } // GenesisState defines the contractmanager module's genesis state. diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 0c903226c..b90511672 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -116,15 +116,15 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, channelID, address string, ackID uint64, ackType string) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types3.Packet, address, ackType string, ackResult []byte, errorText string) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, channelID, address, ackID, ackType) + m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ackResult, errorText) } // AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, channelID, address, ackID, ackType interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ackResult, errorText interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, channelID, address, ackID, ackType) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ackResult, errorText) } // HasContractInfo mocks base method. diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index e7c4dfa3b..b6315235e 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -38,15 +38,15 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, channelID, address string, ackID uint64, ackType string) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types1.Packet, address, ackType string, ackResult []byte, errorText string) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, channelID, address, ackID, ackType) + m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ackResult, errorText) } // AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, channelID, address, ackID, ackType interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ackResult, errorText interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, channelID, address, ackID, ackType) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ackResult, errorText) } // HasContractInfo mocks base method. diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 74301e87c..f57ea9957 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -868,7 +868,17 @@ func (m *CustomMessenger) removeSchedule(ctx sdk.Context, contractAddr sdk.AccAd } func (m *CustomMessenger) resubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, resubmitFailure *bindings.ResubmitFailure) ([]sdk.Event, [][]byte, error) { - err := m.ContractmanagerKeeper.ResubmitFailure(ctx, contractAddr, resubmitFailure.FailureId) + failure, err := m.ContractmanagerKeeper.GetFailure(ctx, contractAddr, resubmitFailure.FailureId) + + if err != nil { + return nil, nil, errors.Wrap(sdkerrors.ErrNotFound, "no failure found to resubmit") + } + + if failure.Address != contractAddr.String() { + return nil, nil, errors.Wrap(sdkerrors.ErrUnauthorized, "only contract can resubmitFailure") + } + + err = m.ContractmanagerKeeper.ResubmitFailure(ctx, contractAddr, failure) if err != nil { ctx.Logger().Error("failed to resubmitFailure", diff --git a/x/contractmanager/genesis.go b/x/contractmanager/genesis.go index 9786d40d9..f3f2c3aee 100644 --- a/x/contractmanager/genesis.go +++ b/x/contractmanager/genesis.go @@ -11,7 +11,7 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // Set all the failure for _, elem := range genState.FailuresList { - k.AddContractFailure(ctx, elem.ChannelId, elem.Address, elem.AckId, elem.AckType) + k.AddContractFailure(ctx, *elem.Packet, elem.Address, elem.AckType, elem.AckResult, elem.ErrorText) } // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index a6856881b..8d7f72b09 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -1,20 +1,25 @@ package keeper import ( + "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/x/contractmanager/types" ) // AddContractFailure adds a specific failure to the store using address as the key -func (k Keeper) AddContractFailure(ctx sdk.Context, channelID, address string, ackID uint64, ackType string) { +func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address string, ackType string, ackResult []byte, errorText string) { failure := types.Failure{ - ChannelId: channelID, + ChannelId: packet.SourceChannel, Address: address, - AckId: ackID, + AckId: packet.Sequence, AckType: ackType, + AckResult: ackResult, + ErrorText: errorText, + Packet: &packet, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) @@ -55,32 +60,55 @@ func (k Keeper) GetAllFailures(ctx sdk.Context) (list []types.Failure) { return } -func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failureId uint64) error { +func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failureId uint64) (*types.Failure, error) { store := ctx.KVStore(k.storeKey) failureKey := types.GetFailureKey(contractAddr.String(), failureId) + failureBz := store.Get(failureKey) + if failureBz == nil { + return nil, errors.Wrapf(sdkerrors.ErrKeyNotFound, "no failure found for contractAddress = %s and failureId = %d", contractAddr.String(), failureId) + } var failure types.Failure k.cdc.MustUnmarshal(failureBz, &failure) - if failure.Address != contractAddr.String() { - return errors.ErrUnauthorized // TODO: can we return this from keeper? - } + return &failure, nil +} - if failure.GetAckType() == "ack" { // response or error - //k.SudoResponse() +// ResubmitFailure tries to call sudo handler for contract with same parameters as initially. +func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failure *types.Failure) error { + if failure.Packet == nil { + return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without packet info failureId = %d", failure.Id) } - if failure.GetAckType() == "error" { - //k.SudoError() + if failure.GetAckType() == "ack" { // response or error + _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.AckResult) + // TODO: handle resp? + if err != nil { + return err // TODO: wrap + } + } else if failure.GetAckType() == "timeout" { + // TODO + _, err := k.SudoTimeout(ctx, contractAddr, *failure.Packet) + if err != nil { + return err // TODO: wrap + } + } else { + return errors.Wrapf(types.IncorrectAckType, "cannot resubmit failure with incorrect ackType = %s", failure.GetAckType()) } - if failure.GetAckType() == "timeout" { - //k.SudoTimeout() - } + // TODO: If submitted failure response or timeout successfully, we can cleanup it? + // Or maybe mark it as processed + // Also maybe cleanup packet and ack data to smaller data to store + // Is it bad be able to call resubmitFailure multiple times? + k.removeFailure(ctx, contractAddr, failure.Id) - // if success resubmit - // - store.Delete(failureKey) + // TODO: maybe return result from sudo call? return nil } + +func (k Keeper) removeFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id uint64) { + store := ctx.KVStore(k.storeKey) + failureKey := types.GetFailureKey(contractAddr.String(), id) + store.Delete(failureKey) +} diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 7ef9c33d2..7c1a30229 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -2,6 +2,9 @@ package keeper_test import ( "crypto/rand" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/neutron-org/neutron/testutil" "strconv" "testing" @@ -29,10 +32,16 @@ func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures acc := sdk.AccAddress(pub.Address()) for c := range items[i] { + p := channeltypes.Packet{ + Sequence: 0, + SourcePort: icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0", // TODO: maybe change + SourceChannel: items[i][c].ChannelId, + } items[i][c].Address = acc.String() items[i][c].Id = uint64(c) - keeper.AddContractFailure(ctx, items[i][c].ChannelId, items[i][c].Address, 0, "") + // TODO + keeper.AddContractFailure(ctx, p, items[i][c].Address, "") } } return items diff --git a/x/contractmanager/types/errors.go b/x/contractmanager/types/errors.go index b846d3302..86734f227 100644 --- a/x/contractmanager/types/errors.go +++ b/x/contractmanager/types/errors.go @@ -8,5 +8,6 @@ import ( // x/contractmanager module sentinel errors var ( - ErrSample = errors.Register(ModuleName, 1100, "sample error") + IncorrectAckType = errors.Register(ModuleName, 1100, "incorrect acknowledgement type") + IncorrectFailureToResubmit = errors.Register(ModuleName, 1101, "incorrect failure to resubmit") ) diff --git a/x/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index 03e781012..9dfb2f2b8 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -37,8 +37,12 @@ type Failure struct { AckId uint64 `protobuf:"varint,4,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` // Acknowledgement type AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` + // Acknowledgement result + AckResult []byte `protobuf:"bytes,6,opt,name=ack_result,json=ackResult,proto3" json:"ack_result,omitempty"` + // Error text (empty if no error) + ErrorText string `protobuf:"bytes,7,opt,name=error_text,json=errorText,proto3" json:"error_text,omitempty"` // IBC Packet of failure - Packet *types.Packet `protobuf:"bytes,6,opt,name=packet,proto3" json:"packet,omitempty"` + Packet *types.Packet `protobuf:"bytes,8,opt,name=packet,proto3" json:"packet,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -109,6 +113,20 @@ func (m *Failure) GetAckType() string { return "" } +func (m *Failure) GetAckResult() []byte { + if m != nil { + return m.AckResult + } + return nil +} + +func (m *Failure) GetErrorText() string { + if m != nil { + return m.ErrorText + } + return "" +} + func (m *Failure) GetPacket() *types.Packet { if m != nil { return m.Packet @@ -180,31 +198,34 @@ func init() { } var fileDescriptor_cf4a1534315a7490 = []byte{ - // 384 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0xce, 0xd3, 0x30, - 0x10, 0xc7, 0xe3, 0x7c, 0x6d, 0x4a, 0xdd, 0xc2, 0x60, 0x81, 0x08, 0x45, 0xa4, 0xa1, 0x02, 0x29, - 0x0b, 0xb6, 0xda, 0x4a, 0x6c, 0x2c, 0x1d, 0x40, 0x15, 0x0c, 0x55, 0x60, 0x62, 0xa9, 0x1c, 0xc7, - 0xa4, 0x56, 0xda, 0x38, 0xb2, 0xdd, 0x8a, 0xbe, 0x05, 0x33, 0x6f, 0xc2, 0x1b, 0x74, 0xec, 0xc8, - 0x84, 0x50, 0xfb, 0x22, 0x28, 0x89, 0xb3, 0xf0, 0xa9, 0xdb, 0xe5, 0xfc, 0xbb, 0x9f, 0x2e, 0xff, - 0x83, 0xaf, 0x0b, 0xbe, 0x37, 0x4a, 0x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 0x0d, 0x47, 0xef, 0x2a, 0x4b, - 0xf5, 0xff, 0xf5, 0xf2, 0x83, 0xd9, 0x18, 0xdf, 0x48, 0x15, 0xaf, 0x6a, 0x6c, 0xd1, 0x39, 0xfd, - 0x19, 0x3b, 0xb1, 0x1d, 0x42, 0x1f, 0xe1, 0xc3, 0x6f, 0x4d, 0x14, 0x7a, 0xbd, 0x15, 0xda, 0xf8, - 0x6e, 0x78, 0x17, 0x0d, 0x66, 0xe1, 0x4d, 0x8b, 0x0d, 0xce, 0x6a, 0x86, 0xed, 0xf0, 0x27, 0xa1, - 0xcd, 0x62, 0x75, 0xba, 0x04, 0xe0, 0x7c, 0x09, 0xc0, 0xdf, 0x4b, 0x00, 0x7e, 0x5c, 0x03, 0xe7, - 0x7c, 0x0d, 0x9c, 0xdf, 0xd7, 0xc0, 0xf9, 0xfa, 0x36, 0x13, 0x66, 0xb3, 0x4f, 0x30, 0x93, 0x3b, - 0x62, 0xcd, 0x6f, 0xa4, 0xca, 0xda, 0x9a, 0x7c, 0xbf, 0x77, 0xd4, 0x2a, 0x31, 0x9d, 0x78, 0xf5, - 0xc5, 0xe6, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xef, 0xe6, 0x25, 0xdb, 0x52, 0x02, 0x00, 0x00, + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x31, 0x8f, 0xd3, 0x30, + 0x14, 0xc7, 0xeb, 0x5e, 0xaf, 0xbd, 0xba, 0x85, 0xc1, 0x02, 0x61, 0x8a, 0xc8, 0x85, 0x13, 0x48, + 0x59, 0xb0, 0x75, 0x3d, 0x89, 0x8d, 0xe5, 0x06, 0xd0, 0x09, 0x86, 0x2a, 0xdc, 0xc4, 0x52, 0x39, + 0x8e, 0xc9, 0x59, 0x49, 0xe3, 0xc8, 0x76, 0x4e, 0xbd, 0x6f, 0xc1, 0xcc, 0x27, 0xba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(dAtA []byte, err error) { @@ -237,6 +258,20 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x42 + } + if len(m.ErrorText) > 0 { + i -= len(m.ErrorText) + copy(dAtA[i:], m.ErrorText) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ErrorText))) + i-- + dAtA[i] = 0x3a + } + if len(m.AckResult) > 0 { + i -= len(m.AckResult) + copy(dAtA[i:], m.AckResult) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckResult))) + i-- dAtA[i] = 0x32 } if len(m.AckType) > 0 { @@ -355,6 +390,14 @@ func (m *Failure) Size() (n int) { if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } + l = len(m.AckResult) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.ErrorText) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } if m.Packet != nil { l = m.Packet.Size() n += 1 + l + sovGenesis(uint64(l)) @@ -549,6 +592,72 @@ func (m *Failure) Unmarshal(dAtA []byte) error { m.AckType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AckResult", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AckResult = append(m.AckResult[:0], dAtA[iNdEx:postIndex]...) + if m.AckResult == nil { + m.AckResult = []byte{} + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorText", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ErrorText = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 095dbebd7..f3252845f 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -27,6 +27,8 @@ func (k *Keeper) outOfGasRecovery( senderAddress sdk.AccAddress, packet channeltypes.Packet, failureAckType string, + ackResult []byte, + errorText string, ) { if r := recover(); r != nil { _, ok := r.(sdk.ErrorOutOfGas) @@ -35,7 +37,7 @@ func (k *Keeper) outOfGasRecovery( } k.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String()) - k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureAckType) + k.contractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureAckType, ackResult, errorText) } } @@ -96,24 +98,23 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack") + defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack", ack.GetResult(), ack.GetError()) k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events errorText := ack.GetError() - var ackType string + var ackResult []byte if errorText != "" { - ackType = "err" _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, errorText) } else { - ackType = "ack" - _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) + ackResult = ack.GetResult() + _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ackResult) } if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), ackType) + k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "ack", ackResult, errorText) k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -139,13 +140,13 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout") + defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout", []byte{}, "") k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), "timeout") + k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "timeout", []byte{}, "") k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index b02a7b6fb..4ec0e8c3d 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -71,7 +71,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -84,7 +84,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -109,7 +109,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -144,7 +144,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, "channel-0", contractAddress.String(), p.GetSequence(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test @@ -194,7 +194,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -207,7 +207,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 7097b0ed4..d6d07d224 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -26,7 +26,7 @@ type BankKeeper interface { type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, channelID, address string, ackID uint64, ackType string) + AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index fe6db47d5..ed916efd6 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -26,6 +26,8 @@ func (im IBCModule) outOfGasRecovery( packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, failureType string, + ackResult []byte, + errorText string, ) { if r := recover(); r != nil { _, ok := r.(sdk.ErrorOutOfGas) @@ -34,7 +36,7 @@ func (im IBCModule) outOfGasRecovery( } im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) - im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureType) + im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureType, ackResult, errorText) // FIXME: add distribution call } } @@ -95,7 +97,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack") + defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack", ack.GetResult(), ack.GetError()) if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) @@ -107,7 +109,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "ack") + im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "ack", ack.GetResult(), ack.GetError()) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -140,11 +142,11 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout") + defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout", []byte{}, "") _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "timeout") + im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "timeout", []byte{}, "") im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 024d17989..b411029e3 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -100,7 +100,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -113,7 +113,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) @@ -127,7 +127,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -141,7 +141,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -179,7 +179,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -193,7 +193,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) @@ -248,7 +248,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, "channel-0", contractAddress.String(), p.GetSequence(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test @@ -342,7 +342,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -354,7 +354,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) @@ -368,7 +368,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -381,7 +381,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") // FIXME: make DistributeTimeoutFee during out of gas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index 3dd233a34..57a5c1cb7 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -11,7 +11,7 @@ import ( // ContractManagerKeeper defines the expected interface needed to add ack information about sudo failure. type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, channelID, address string, ackID uint64, ackType string) + AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) From 31bdf514db20be23bea95eca1af6f13f747e8483 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 9 Aug 2023 18:04:58 +0400 Subject: [PATCH 022/307] fix: ibc handlers tests --- x/interchaintxs/keeper/ibc_handlers_test.go | 12 +++++------ x/transfer/ibc_handlers_test.go | 22 ++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 4ec0e8c3d..8189e86aa 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -71,7 +71,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -84,7 +84,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -109,7 +109,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -144,7 +144,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test @@ -194,7 +194,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -207,7 +207,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index b411029e3..d3caa3475 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -100,7 +100,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -113,7 +113,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) @@ -127,7 +127,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -141,7 +141,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -179,7 +179,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -193,7 +193,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) @@ -248,7 +248,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test @@ -342,7 +342,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -354,7 +354,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) @@ -368,7 +368,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -381,7 +381,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") // FIXME: make DistributeTimeoutFee during out of gas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) From 4079011a95520ca45338baa3f0773f9d9ec1264c Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 9 Aug 2023 18:58:27 +0400 Subject: [PATCH 023/307] fix tests --- x/contractmanager/client/cli/query_failure_test.go | 2 ++ x/contractmanager/genesis_test.go | 7 +++++++ x/contractmanager/keeper/failure_test.go | 11 ++++++++--- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/x/contractmanager/client/cli/query_failure_test.go b/x/contractmanager/client/cli/query_failure_test.go index a70cfd2a4..0541a1834 100644 --- a/x/contractmanager/client/cli/query_failure_test.go +++ b/x/contractmanager/client/cli/query_failure_test.go @@ -3,6 +3,7 @@ package cli_test import ( "crypto/rand" "fmt" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "strconv" "testing" @@ -39,6 +40,7 @@ func networkWithFailureObjects(t *testing.T, n int) (*network.Network, []types.F acc := sdktypes.AccAddress(pub.Address()) failure := types.Failure{ Address: acc.String(), + Packet: &channeltypes.Packet{}, } nullify.Fill(&failure) state.FailuresList = append(state.FailuresList, failure) diff --git a/x/contractmanager/genesis_test.go b/x/contractmanager/genesis_test.go index acf2c55ac..4793c4910 100644 --- a/x/contractmanager/genesis_test.go +++ b/x/contractmanager/genesis_test.go @@ -1,6 +1,7 @@ package contractmanager_test import ( + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "testing" "github.com/stretchr/testify/require" @@ -19,10 +20,16 @@ func TestGenesis(t *testing.T) { { Address: "address1", Id: 1, + Packet: &channeltypes.Packet{ + Sequence: 1, + }, }, { Address: "address1", Id: 2, + Packet: &channeltypes.Packet{ + Sequence: 2, + }, }, }, // this line is used by starport scaffolding # genesis/test/state diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 7c1a30229..988ede0a1 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -5,6 +5,7 @@ import ( icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/testutil" + "github.com/neutron-org/neutron/testutil/contractmanager/nullify" "strconv" "testing" @@ -13,7 +14,6 @@ import ( "github.com/stretchr/testify/require" keepertest "github.com/neutron-org/neutron/testutil/contractmanager/keeper" - "github.com/neutron-org/neutron/testutil/contractmanager/nullify" "github.com/neutron-org/neutron/x/contractmanager/keeper" "github.com/neutron-org/neutron/x/contractmanager/types" ) @@ -39,9 +39,12 @@ func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures } items[i][c].Address = acc.String() items[i][c].Id = uint64(c) + items[i][c].Packet = &p + items[i][c].AckResult = []byte{} + items[i][c].ErrorText = "" // TODO - keeper.AddContractFailure(ctx, p, items[i][c].Address, "") + keeper.AddContractFailure(ctx, p, items[i][c].Address, "", []byte{}, "") } } return items @@ -63,13 +66,15 @@ func flattenFailures(items [][]types.Failure) []types.Failure { func TestGetAllFailures(t *testing.T) { keeper, ctx := keepertest.ContractManagerKeeper(t, nil) - items := createNFailure(keeper, ctx, 10, 4) + items := createNFailure(keeper, ctx, 1, 1) flattenItems := flattenFailures(items) allFailures := keeper.GetAllFailures(ctx) require.ElementsMatch(t, nullify.Fill(flattenItems), + //flattenItems, + //allFailures, nullify.Fill(allFailures), ) } From 11c58fbea613ea64c96bcc4bc1fdb3130b52da41 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 9 Aug 2023 21:35:49 +0400 Subject: [PATCH 024/307] gofumpt --- cmd/neutrond/root.go | 7 ++++--- cmd/neutrond/util.go | 12 +++++++----- wasmbinding/message_plugin.go | 2 +- x/contractmanager/client/cli/query_failure_test.go | 3 ++- x/contractmanager/genesis_test.go | 3 ++- x/contractmanager/keeper/failure.go | 2 +- x/contractmanager/keeper/failure_test.go | 9 +++++---- x/interchainqueries/keeper/process_block_results.go | 2 +- x/interchaintxs/keeper/ibc_handlers_test.go | 2 +- x/interchaintxs/types/expected_keepers.go | 2 +- x/transfer/ibc_handlers_test.go | 2 +- x/transfer/types/expected_keepers.go | 2 +- 12 files changed, 27 insertions(+), 21 deletions(-) diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 3c392db20..e2e25c975 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -3,6 +3,10 @@ package main import ( "errors" "fmt" + "io" + "os" + "path/filepath" + "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" dbm "github.com/cometbft/cometbft-db" @@ -37,9 +41,6 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" "github.com/spf13/cobra" - "io" - "os" - "path/filepath" ) // NewRootCmd creates a new root command for neutrond. It is called once in the diff --git a/cmd/neutrond/util.go b/cmd/neutrond/util.go index a214bb7d1..a699abe57 100644 --- a/cmd/neutrond/util.go +++ b/cmd/neutrond/util.go @@ -1,8 +1,14 @@ package main import ( - "cosmossdk.io/log" "fmt" + "os" + "path" + "path/filepath" + "strings" + + "cosmossdk.io/log" + tmcfg "github.com/cometbft/cometbft/config" tmcli "github.com/cometbft/cometbft/libs/cli" tmlog "github.com/cometbft/cometbft/libs/log" @@ -14,10 +20,6 @@ import ( "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" - "os" - "path" - "path/filepath" - "strings" ) // NOTE: The functions below are copy-pasted from cosmos-sdk@v0.47.3 (see https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/server/util.go#L122) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index f57ea9957..ed40a56c2 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -3,6 +3,7 @@ package wasmbinding import ( "encoding/json" "fmt" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" "cosmossdk.io/errors" @@ -869,7 +870,6 @@ func (m *CustomMessenger) removeSchedule(ctx sdk.Context, contractAddr sdk.AccAd func (m *CustomMessenger) resubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, resubmitFailure *bindings.ResubmitFailure) ([]sdk.Event, [][]byte, error) { failure, err := m.ContractmanagerKeeper.GetFailure(ctx, contractAddr, resubmitFailure.FailureId) - if err != nil { return nil, nil, errors.Wrap(sdkerrors.ErrNotFound, "no failure found to resubmit") } diff --git a/x/contractmanager/client/cli/query_failure_test.go b/x/contractmanager/client/cli/query_failure_test.go index 0541a1834..f76d69a44 100644 --- a/x/contractmanager/client/cli/query_failure_test.go +++ b/x/contractmanager/client/cli/query_failure_test.go @@ -3,10 +3,11 @@ package cli_test import ( "crypto/rand" "fmt" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "strconv" "testing" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/neutron-org/neutron/app" tmcli "github.com/cometbft/cometbft/libs/cli" diff --git a/x/contractmanager/genesis_test.go b/x/contractmanager/genesis_test.go index 4793c4910..ffbb0477e 100644 --- a/x/contractmanager/genesis_test.go +++ b/x/contractmanager/genesis_test.go @@ -1,9 +1,10 @@ package contractmanager_test import ( - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "testing" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/stretchr/testify/require" keepertest "github.com/neutron-org/neutron/testutil/contractmanager/keeper" diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 8d7f72b09..52e858731 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -11,7 +11,7 @@ import ( ) // AddContractFailure adds a specific failure to the store using address as the key -func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address string, ackType string, ackResult []byte, errorText string) { +func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address, ackType string, ackResult []byte, errorText string) { failure := types.Failure{ ChannelId: packet.SourceChannel, Address: address, diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 988ede0a1..ebaad7e85 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -2,12 +2,13 @@ package keeper_test import ( "crypto/rand" + "strconv" + "testing" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/testutil/contractmanager/nullify" - "strconv" - "testing" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" sdk "github.com/cosmos/cosmos-sdk/types" @@ -73,8 +74,8 @@ func TestGetAllFailures(t *testing.T) { require.ElementsMatch(t, nullify.Fill(flattenItems), - //flattenItems, - //allFailures, + // flattenItems, + // allFailures, nullify.Fill(allFailures), ) } diff --git a/x/interchainqueries/keeper/process_block_results.go b/x/interchainqueries/keeper/process_block_results.go index f00e55b7e..0692cb829 100644 --- a/x/interchainqueries/keeper/process_block_results.go +++ b/x/interchainqueries/keeper/process_block_results.go @@ -61,7 +61,7 @@ type Verifier struct{} // VerifyHeaders verify that headers are valid tendermint headers, checks them on validity by trying call ibcClient.UpdateClient(header) // to update light client's consensus state and checks that they are sequential (tl;dr header.Height + 1 == nextHeader.Height) -func (v Verifier) VerifyHeaders(ctx sdk.Context, clientKeeper clientkeeper.Keeper, clientID string, header exported.ClientMessage, nextHeader exported.ClientMessage) error { +func (v Verifier) VerifyHeaders(ctx sdk.Context, clientKeeper clientkeeper.Keeper, clientID string, header, nextHeader exported.ClientMessage) error { // this IBC handler updates the consensus state and the state root from a provided header. // But more importantly in the current situation, it checks that header is valid. // Honestly we need only to verify headers, but since the check functions are private, and we don't want to duplicate the code, diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 8189e86aa..3cad6fc54 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -144,7 +144,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index d6d07d224..480914445 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -26,7 +26,7 @@ type BankKeeper interface { type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) + AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index d3caa3475..c7ce57859 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -248,7 +248,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index 57a5c1cb7..89e980f41 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -11,7 +11,7 @@ import ( // ContractManagerKeeper defines the expected interface needed to add ack information about sudo failure. type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address string, ackType string, ackResult []byte, errorText string) + AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) From 91bbe8225b0a8f89eac8efba021844608eedd516 Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 10 Aug 2023 16:29:42 +0400 Subject: [PATCH 025/307] fix: use acknowledgement type instead of two fields --- proto/neutron/contractmanager/genesis.proto | 17 +- .../interchaintxs/types/expected_keepers.go | 8 +- .../mocks/transfer/types/expected_keepers.go | 8 +- x/contractmanager/genesis.go | 2 +- x/contractmanager/keeper/failure.go | 69 +++--- x/contractmanager/keeper/failure_test.go | 11 +- x/contractmanager/types/errors.go | 1 + x/contractmanager/types/genesis.pb.go | 200 +++++++----------- x/interchaintxs/keeper/ibc_handlers.go | 22 +- x/interchaintxs/keeper/ibc_handlers_test.go | 12 +- x/interchaintxs/types/expected_keepers.go | 2 +- x/transfer/ibc_handlers.go | 13 +- x/transfer/ibc_handlers_test.go | 22 +- x/transfer/types/expected_keepers.go | 2 +- 14 files changed, 171 insertions(+), 218 deletions(-) diff --git a/proto/neutron/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto index 39edf5918..53dd813f4 100644 --- a/proto/neutron/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -10,23 +10,22 @@ option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; // Failure message contains information about ACK failures and can be used to // replay ACK in case of requirement. +// Note that Failure means that sudo handler to cosmwasm contract failed for some reason message Failure { // ChannelId string channel_id = 1; // Address of the failed contract string address = 2; - // id of the failure under specific address + // Id of the failure under specific address uint64 id = 3; - // ACK id to restore - uint64 ack_id = 4; + // Packet sequence id to restore + uint64 sequence_id = 4; // TODO: is renaming ok? // Acknowledgement type string ack_type = 5; - // Acknowledgement result - bytes ack_result = 6; - // Error text (empty if no error) - string error_text = 7; - // IBC Packet of failure - ibc.core.channel.v1.Packet packet = 8; + // IBC Packet + ibc.core.channel.v1.Packet packet = 6; + // Acknowledgement + ibc.core.channel.v1.Acknowledgement ack = 7; } // GenesisState defines the contractmanager module's genesis state. diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index b90511672..389c62b35 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -116,15 +116,15 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types3.Packet, address, ackType string, ackResult []byte, errorText string) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types3.Packet, address, ackType string, ack *types3.Acknowledgement) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ackResult, errorText) + m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ack) } // AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ackResult, errorText interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ack interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ackResult, errorText) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ack) } // HasContractInfo mocks base method. diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index b6315235e..b353586a0 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -38,15 +38,15 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types1.Packet, address, ackType string, ackResult []byte, errorText string) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types1.Packet, address, ackType string, ack *types1.Acknowledgement) { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ackResult, errorText) + m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ack) } // AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ackResult, errorText interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ack interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ackResult, errorText) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ack) } // HasContractInfo mocks base method. diff --git a/x/contractmanager/genesis.go b/x/contractmanager/genesis.go index f3f2c3aee..f0ed5a80b 100644 --- a/x/contractmanager/genesis.go +++ b/x/contractmanager/genesis.go @@ -11,7 +11,7 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // Set all the failure for _, elem := range genState.FailuresList { - k.AddContractFailure(ctx, *elem.Packet, elem.Address, elem.AckType, elem.AckResult, elem.ErrorText) + k.AddContractFailure(ctx, *elem.Packet, elem.Address, elem.AckType, elem.Ack) } // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 52e858731..c3fb68671 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -11,23 +11,22 @@ import ( ) // AddContractFailure adds a specific failure to the store using address as the key -func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address, ackType string, ackResult []byte, errorText string) { +func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address, ackType string, ack *ibcchanneltypes.Acknowledgement) { failure := types.Failure{ - ChannelId: packet.SourceChannel, - Address: address, - AckId: packet.Sequence, - AckType: ackType, - AckResult: ackResult, - ErrorText: errorText, - Packet: &packet, + ChannelId: packet.SourceChannel, + Address: address, + SequenceId: packet.Sequence, + AckType: ackType, + Ack: ack, + Packet: &packet, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) store := ctx.KVStore(k.storeKey) failure.Id = nextFailureID - b := k.cdc.MustMarshal(&failure) - store.Set(types.GetFailureKey(failure.GetAddress(), nextFailureID), b) + bz := k.cdc.MustMarshal(&failure) + store.Set(types.GetFailureKey(failure.GetAddress(), nextFailureID), bz) } func (k Keeper) GetNextFailureIDKey(ctx sdk.Context, address string) uint64 { @@ -60,49 +59,57 @@ func (k Keeper) GetAllFailures(ctx sdk.Context) (list []types.Failure) { return } -func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failureId uint64) (*types.Failure, error) { +func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id uint64) (*types.Failure, error) { store := ctx.KVStore(k.storeKey) - failureKey := types.GetFailureKey(contractAddr.String(), failureId) + key := types.GetFailureKey(contractAddr.String(), id) - failureBz := store.Get(failureKey) - if failureBz == nil { - return nil, errors.Wrapf(sdkerrors.ErrKeyNotFound, "no failure found for contractAddress = %s and failureId = %d", contractAddr.String(), failureId) + bz := store.Get(key) + if bz == nil { + return nil, errors.Wrapf(sdkerrors.ErrKeyNotFound, "no failure found for contractAddress = %s and failureId = %d", contractAddr.String(), id) } - var failure types.Failure - k.cdc.MustUnmarshal(failureBz, &failure) + var res types.Failure + k.cdc.MustUnmarshal(bz, &res) - return &failure, nil + return &res, nil } // ResubmitFailure tries to call sudo handler for contract with same parameters as initially. func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failure *types.Failure) error { if failure.Packet == nil { - return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without packet info failureId = %d", failure.Id) + return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without packet info; failureId = %d", failure.Id) } - if failure.GetAckType() == "ack" { // response or error - _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.AckResult) - // TODO: handle resp? - if err != nil { - return err // TODO: wrap + if failure.GetAckType() == "ack" { + if failure.GetAck() == nil { + return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without acknowledgement; failureId = %d", failure.Id) + } + if failure.GetAck().GetError() == "" { + _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.Ack.GetResult()) + // TODO: handle resp? + if err != nil { + return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack response; failureId = %d; err = %s", failure.Id, err) + } + } else { + _, err := k.SudoError(ctx, contractAddr, *failure.Packet, failure.Ack.GetError()) + // TODO: handle resp? + if err != nil { + return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack error; failureId = %d; err = %s", failure.Id, err) + } } } else if failure.GetAckType() == "timeout" { - // TODO + // TODO: handle resp? _, err := k.SudoTimeout(ctx, contractAddr, *failure.Packet) if err != nil { - return err // TODO: wrap + return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack timeout; failureId = %d; err = %s", failure.Id, err) } } else { return errors.Wrapf(types.IncorrectAckType, "cannot resubmit failure with incorrect ackType = %s", failure.GetAckType()) } - // TODO: If submitted failure response or timeout successfully, we can cleanup it? - // Or maybe mark it as processed - // Also maybe cleanup packet and ack data to smaller data to store - // Is it bad be able to call resubmitFailure multiple times? + // Cleanup failure since we resubmitted it successfully k.removeFailure(ctx, contractAddr, failure.Id) - // TODO: maybe return result from sudo call? + // TODO: maybe return some result from sudo call? return nil } diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index ebaad7e85..ef208f1e0 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -5,9 +5,7 @@ import ( "strconv" "testing" - icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/testutil/contractmanager/nullify" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" @@ -35,17 +33,14 @@ func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures for c := range items[i] { p := channeltypes.Packet{ Sequence: 0, - SourcePort: icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0", // TODO: maybe change + SourcePort: "port-n", SourceChannel: items[i][c].ChannelId, } items[i][c].Address = acc.String() items[i][c].Id = uint64(c) items[i][c].Packet = &p - items[i][c].AckResult = []byte{} - items[i][c].ErrorText = "" - - // TODO - keeper.AddContractFailure(ctx, p, items[i][c].Address, "", []byte{}, "") + items[i][c].Ack = nil + keeper.AddContractFailure(ctx, p, items[i][c].Address, "", nil) } } return items diff --git a/x/contractmanager/types/errors.go b/x/contractmanager/types/errors.go index 86734f227..1d13568a1 100644 --- a/x/contractmanager/types/errors.go +++ b/x/contractmanager/types/errors.go @@ -10,4 +10,5 @@ import ( var ( IncorrectAckType = errors.Register(ModuleName, 1100, "incorrect acknowledgement type") IncorrectFailureToResubmit = errors.Register(ModuleName, 1101, "incorrect failure to resubmit") + FailedToResubmitFailure = errors.Register(ModuleName, 1102, "failed to resubmit acknowledgement") ) diff --git a/x/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index 9dfb2f2b8..d1d447382 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -26,23 +26,22 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Failure message contains information about ACK failures and can be used to // replay ACK in case of requirement. +// Note that Failure means that sudo handler to cosmwasm contract failed for some reason type Failure struct { // ChannelId ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Address of the failed contract Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // id of the failure under specific address + // Id of the failure under specific address Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` - // ACK id to restore - AckId uint64 `protobuf:"varint,4,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` + // Packet sequence id to restore + SequenceId uint64 `protobuf:"varint,4,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` // Acknowledgement type AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` - // Acknowledgement result - AckResult []byte `protobuf:"bytes,6,opt,name=ack_result,json=ackResult,proto3" json:"ack_result,omitempty"` - // Error text (empty if no error) - ErrorText string `protobuf:"bytes,7,opt,name=error_text,json=errorText,proto3" json:"error_text,omitempty"` - // IBC Packet of failure - Packet *types.Packet `protobuf:"bytes,8,opt,name=packet,proto3" json:"packet,omitempty"` + // IBC Packet + Packet *types.Packet `protobuf:"bytes,6,opt,name=packet,proto3" json:"packet,omitempty"` + // Acknowledgement + Ack *types.Acknowledgement `protobuf:"bytes,7,opt,name=ack,proto3" json:"ack,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -99,9 +98,9 @@ func (m *Failure) GetId() uint64 { return 0 } -func (m *Failure) GetAckId() uint64 { +func (m *Failure) GetSequenceId() uint64 { if m != nil { - return m.AckId + return m.SequenceId } return 0 } @@ -113,23 +112,16 @@ func (m *Failure) GetAckType() string { return "" } -func (m *Failure) GetAckResult() []byte { +func (m *Failure) GetPacket() *types.Packet { if m != nil { - return m.AckResult + return m.Packet } return nil } -func (m *Failure) GetErrorText() string { - if m != nil { - return m.ErrorText - } - return "" -} - -func (m *Failure) GetPacket() *types.Packet { +func (m *Failure) GetAck() *types.Acknowledgement { if m != nil { - return m.Packet + return m.Ack } return nil } @@ -198,34 +190,34 @@ func init() { } var fileDescriptor_cf4a1534315a7490 = []byte{ - // 422 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x31, 0x8f, 0xd3, 0x30, - 0x14, 0xc7, 0xeb, 0x5e, 0xaf, 0xbd, 0xba, 0x85, 0xc1, 0x02, 0x61, 0x8a, 0xc8, 0x85, 0x13, 0x48, - 0x59, 0xb0, 0x75, 0x3d, 0x89, 0x8d, 0xe5, 0x06, 0xd0, 0x09, 0x86, 0x2a, 0xdc, 0xc4, 0x52, 0x39, - 0x8e, 0xc9, 0x59, 0x49, 0xe3, 0xc8, 0x76, 0x4e, 0xbd, 0x6f, 0xc1, 0xcc, 0x27, 0xba, 0xf1, 0x46, - 0x26, 0x84, 0xda, 0x0f, 0xc1, 0x8a, 0xec, 0x38, 0x0b, 0xa8, 0xdb, 0xcb, 0xff, 0xfd, 0xdf, 0x2f, - 0x79, 0xff, 0x17, 0xf8, 0xa6, 0x16, 0xad, 0xd5, 0xaa, 0xa6, 0x5c, 0xd5, 0x56, 0x33, 0x6e, 0x37, - 0xac, 0x66, 0x85, 0xd0, 0xb4, 0x10, 0xb5, 0x30, 0xd2, 0x90, 0x46, 0x2b, 0xab, 0xd0, 0xb3, 0x60, - 0x23, 0xff, 0xd8, 0x16, 0x4f, 0x0a, 0x55, 0x28, 0xef, 0xa1, 0xae, 0xea, 0xec, 0x8b, 0xd7, 0x87, - 0xa8, 0x0d, 0xd3, 0x6c, 0x13, 0xa0, 0x8b, 0x57, 0x32, 0xe3, 0x94, 0x2b, 0x2d, 0x28, 0xbf, 0x61, - 0x75, 0x2d, 0x2a, 0x7a, 0x7b, 0xde, 0x97, 0x9d, 0xe5, 0xec, 0x0f, 0x80, 0x93, 0x0f, 0x4c, 0x56, - 0xad, 0x16, 0xe8, 0x25, 0x84, 0xa1, 0xb9, 0x96, 0x39, 0x06, 0x31, 0x48, 0xa6, 0xe9, 0x34, 0x28, - 0x57, 0x39, 0xc2, 0x70, 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 0xef, 0x22, 0xf0, 0xb0, 0x8b, 0xc0, 0xef, 0x5d, - 0x04, 0xbe, 0xef, 0xa3, 0xc1, 0xc3, 0x3e, 0x1a, 0xfc, 0xdc, 0x47, 0x83, 0xaf, 0xef, 0x0a, 0x69, - 0x6f, 0xda, 0x8c, 0x70, 0xb5, 0xa1, 0x81, 0xfc, 0x56, 0xe9, 0xa2, 0xaf, 0xe9, 0xf6, 0xbf, 0x5f, - 0xc2, 0xe5, 0x6d, 0xb2, 0xb1, 0xbf, 0xf7, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x70, - 0x0c, 0x8d, 0x90, 0x02, 0x00, 0x00, + // 417 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x31, 0x6f, 0x13, 0x31, + 0x14, 0xc7, 0xe3, 0x24, 0x24, 0xd4, 0x29, 0x0c, 0x16, 0x12, 0x47, 0x10, 0x97, 0xa3, 0x2a, 0x52, + 0x16, 0x6c, 0x35, 0x95, 0xba, 0x31, 0xd0, 0x01, 0x54, 0xc1, 0x10, 0x1d, 0x4c, 0x2c, 0x91, 0x63, + 0x3f, 0xae, 0xd6, 0x25, 0xf6, 0x61, 0x3b, 0x85, 0x7e, 0x0b, 0x66, 0x3e, 0x51, 0xc7, 0x8e, 0x4c, + 0x08, 0x25, 0x1f, 0x83, 0x05, 0x9d, 0xcf, 0xb7, 0x40, 0xb3, 0xbd, 0x7b, 0xef, 0xf7, 0xff, 0xdf, + 0xbd, 0xff, 0x3b, 0xfc, 0x42, 0xc3, 0xc6, 0x5b, 0xa3, 0x99, 0x30, 0xda, 0x5b, 0x2e, 0xfc, 0x9a, + 0x6b, 0x5e, 0x80, 0x65, 0x05, 0x68, 0x70, 0xca, 0xd1, 0xca, 0x1a, 0x6f, 0xc8, 0xe3, 0x88, 0xd1, + 0x7f, 0xb0, 0xf1, 0xa3, 0x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cf, 0x3d, 0x90, 0x57, 0xf5, 0xdb, 0xeb, + 0x04, 0xc3, 0xfa, 0xa3, 0xd9, 0x84, 0xee, 0xb9, 0x0b, 0x9d, 0x07, 0xec, 0xbc, 0x7f, 0xf3, 0x6b, + 0xd2, 0xc9, 0xa3, 0x88, 0xbc, 0xc3, 0x0f, 0x3e, 0x37, 0x61, 0xba, 0xc5, 0x4a, 0x39, 0x9f, 0x74, + 0xb3, 0xde, 0x74, 0x34, 0xcb, 0xf6, 0xba, 0xc4, 0xe8, 0xa3, 0xcd, 0x61, 0x2b, 0x7e, 0xaf, 0x9c, + 0x3f, 0x9f, 0xdf, 0x6c, 0x53, 0x74, 0xbb, 0x4d, 0xd1, 0xef, 0x6d, 0x8a, 0xbe, 0xef, 0xd2, 0xce, + 0xed, 0x2e, 0xed, 0xfc, 0xdc, 0xa5, 0x9d, 0x4f, 0x67, 0x85, 0xf2, 0x97, 0x9b, 0x25, 0x15, 0x66, + 0xcd, 0xa2, 0xf3, 0x4b, 0x63, 0x8b, 0xb6, 0x66, 0xdf, 0xfe, 0xfb, 0x2d, 0xea, 0xa4, 0xdd, 0x72, + 0x10, 0x6e, 0x7e, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4c, 0x8c, 0x41, 0x94, 0x02, 0x00, + 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { @@ -248,9 +240,9 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Packet != nil { + if m.Ack != nil { { - size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Ack.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -258,19 +250,17 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x42 - } - if len(m.ErrorText) > 0 { - i -= len(m.ErrorText) - copy(dAtA[i:], m.ErrorText) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.ErrorText))) - i-- dAtA[i] = 0x3a } - if len(m.AckResult) > 0 { - i -= len(m.AckResult) - copy(dAtA[i:], m.AckResult) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckResult))) + if m.Packet != nil { + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x32 } @@ -281,8 +271,8 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if m.AckId != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.AckId)) + if m.SequenceId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.SequenceId)) i-- dAtA[i] = 0x20 } @@ -383,25 +373,21 @@ func (m *Failure) Size() (n int) { if m.Id != 0 { n += 1 + sovGenesis(uint64(m.Id)) } - if m.AckId != 0 { - n += 1 + sovGenesis(uint64(m.AckId)) + if m.SequenceId != 0 { + n += 1 + sovGenesis(uint64(m.SequenceId)) } l = len(m.AckType) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } - l = len(m.AckResult) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.ErrorText) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } if m.Packet != nil { l = m.Packet.Size() n += 1 + l + sovGenesis(uint64(l)) } + if m.Ack != nil { + l = m.Ack.Size() + n += 1 + l + sovGenesis(uint64(l)) + } return n } @@ -542,9 +528,9 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AckId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SequenceId", wireType) } - m.AckId = 0 + m.SequenceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenesis @@ -554,7 +540,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AckId |= uint64(b&0x7F) << shift + m.SequenceId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -593,9 +579,9 @@ func (m *Failure) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AckResult", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenesis @@ -605,61 +591,31 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenesis } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenesis } if postIndex > l { return io.ErrUnexpectedEOF } - m.AckResult = append(m.AckResult[:0], dAtA[iNdEx:postIndex]...) - if m.AckResult == nil { - m.AckResult = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorText", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis + if m.Packet == nil { + m.Packet = &types.Packet{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.ErrorText = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -686,10 +642,10 @@ func (m *Failure) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Packet == nil { - m.Packet = &types.Packet{} + if m.Ack == nil { + m.Ack = &types.Acknowledgement{} } - if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Ack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index f3252845f..d0a48f1a7 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -27,8 +27,7 @@ func (k *Keeper) outOfGasRecovery( senderAddress sdk.AccAddress, packet channeltypes.Packet, failureAckType string, - ackResult []byte, - errorText string, + ack *channeltypes.Acknowledgement, ) { if r := recover(); r != nil { _, ok := r.(sdk.ErrorOutOfGas) @@ -37,7 +36,7 @@ func (k *Keeper) outOfGasRecovery( } k.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String()) - k.contractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureAckType, ackResult, errorText) + k.contractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureAckType, ack) } } @@ -98,23 +97,20 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack", ack.GetResult(), ack.GetError()) + defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack", &ack) k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events - errorText := ack.GetError() - var ackResult []byte - if errorText != "" { - _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, errorText) + if ack.GetError() != "" { + _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, ack.GetError()) } else { - ackResult = ack.GetResult() - _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ackResult) + _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) } if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "ack", ackResult, errorText) + k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "ack", &ack) k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -140,13 +136,13 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout", []byte{}, "") + defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout", nil) k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "timeout", []byte{}, "") + k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "timeout", nil) k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 3cad6fc54..ff0a245a7 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -71,7 +71,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &resACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -84,7 +84,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -109,7 +109,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -144,7 +144,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test @@ -194,7 +194,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -207,7 +207,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 480914445..6ef2d2b65 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -26,7 +26,7 @@ type BankKeeper interface { type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) + AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index ed916efd6..f8eb2e9d7 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -26,8 +26,7 @@ func (im IBCModule) outOfGasRecovery( packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, failureType string, - ackResult []byte, - errorText string, + ack *channeltypes.Acknowledgement, ) { if r := recover(); r != nil { _, ok := r.(sdk.ErrorOutOfGas) @@ -36,7 +35,7 @@ func (im IBCModule) outOfGasRecovery( } im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) - im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureType, ackResult, errorText) + im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureType, ack) // FIXME: add distribution call } } @@ -97,7 +96,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack", ack.GetResult(), ack.GetError()) + defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack", &ack) if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) @@ -109,7 +108,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "ack", ack.GetResult(), ack.GetError()) + im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "ack", &ack) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -142,11 +141,11 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout", []byte{}, "") + defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout", nil) _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "timeout", []byte{}, "") + im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "timeout", nil) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index c7ce57859..a0f149de6 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -100,7 +100,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -113,7 +113,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) @@ -127,7 +127,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -141,7 +141,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -179,7 +179,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -193,7 +193,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", errACK.GetResult(), errACK.GetError()) + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) @@ -248,7 +248,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", resACK.GetResult(), resACK.GetError()).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test @@ -342,7 +342,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -354,7 +354,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) @@ -368,7 +368,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -381,7 +381,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", []byte{}, "") + cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) // FIXME: make DistributeTimeoutFee during out of gas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index 89e980f41..f66386941 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -11,7 +11,7 @@ import ( // ContractManagerKeeper defines the expected interface needed to add ack information about sudo failure. type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ackResult []byte, errorText string) + AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) From 9ec118361fc71e22047844208e3e31e25a655851 Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 10 Aug 2023 17:00:54 +0400 Subject: [PATCH 026/307] cleanup --- wasmbinding/test/custom_message_test.go | 8 ++++++++ x/contractmanager/keeper/failure.go | 10 ++++------ x/contractmanager/types/errors.go | 2 -- x/tokenfactory/types/errors.go | 2 -- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index ada721a6a..3e2771aa4 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -593,6 +593,14 @@ func (suite *CustomMessengerTestSuite) TestAddRemoveSchedule() { suite.Equal([][]uint8{expected}, data) } +func (suite *CustomMessengerTestSuite) TestResubmitFailure() { + // TODO +} + +func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract() { + // TODO +} + func (suite *CustomMessengerTestSuite) executeCustomMsg(owner sdk.AccAddress, fullMsg bindings.NeutronMsg) (result [][]byte, msg []byte) { msg, err := json.Marshal(fullMsg) suite.NoError(err) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index c3fb68671..f9b0c22dc 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -79,30 +79,28 @@ func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, fa return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without packet info; failureId = %d", failure.Id) } - if failure.GetAckType() == "ack" { + switch failure.GetAckType() { + case "ack": if failure.GetAck() == nil { return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without acknowledgement; failureId = %d", failure.Id) } if failure.GetAck().GetError() == "" { _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.Ack.GetResult()) - // TODO: handle resp? if err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack response; failureId = %d; err = %s", failure.Id, err) } } else { _, err := k.SudoError(ctx, contractAddr, *failure.Packet, failure.Ack.GetError()) - // TODO: handle resp? if err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack error; failureId = %d; err = %s", failure.Id, err) } } - } else if failure.GetAckType() == "timeout" { - // TODO: handle resp? + case "timeout": _, err := k.SudoTimeout(ctx, contractAddr, *failure.Packet) if err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack timeout; failureId = %d; err = %s", failure.Id, err) } - } else { + default: return errors.Wrapf(types.IncorrectAckType, "cannot resubmit failure with incorrect ackType = %s", failure.GetAckType()) } diff --git a/x/contractmanager/types/errors.go b/x/contractmanager/types/errors.go index 1d13568a1..612d6742f 100644 --- a/x/contractmanager/types/errors.go +++ b/x/contractmanager/types/errors.go @@ -1,7 +1,5 @@ package types -// DONTCOVER - import ( "cosmossdk.io/errors" ) diff --git a/x/tokenfactory/types/errors.go b/x/tokenfactory/types/errors.go index ef46d16ca..1c51fec43 100644 --- a/x/tokenfactory/types/errors.go +++ b/x/tokenfactory/types/errors.go @@ -1,7 +1,5 @@ package types -// DONTCOVER - import ( fmt "fmt" From 4909c38100e833ec4b9d0df15208c91bc484b559 Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 10 Aug 2023 18:07:34 +0400 Subject: [PATCH 027/307] add binding code --- wasmbinding/bindings/msg.go | 4 +++ wasmbinding/message_plugin.go | 3 +++ x/contractmanager/keeper/failure.go | 2 +- x/contractmanager/keeper/failure_test.go | 33 ++++++++++++++++++++---- 4 files changed, 36 insertions(+), 6 deletions(-) diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 4d2a35472..fe8b47db9 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -46,6 +46,10 @@ type NeutronMsg struct { // Cron types AddSchedule *AddSchedule `json:"add_schedule,omitempty"` RemoveSchedule *RemoveSchedule `json:"remove_schedule,omitempty"` + + // Contractmanager types + /// A contract that has failed acknowledgement can resubmit it + ResubmitFailure *ResubmitFailure `json:"resubmit_failure,omitempty"` } // SubmitTx submits interchain transaction on a remote chain. diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index ed40a56c2..883e0b270 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -134,6 +134,9 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre if contractMsg.RemoveSchedule != nil { return m.removeSchedule(ctx, contractAddr, contractMsg.RemoveSchedule) } + if contractMsg.ResubmitFailure != nil { + return m.resubmitFailure(ctx, contractAddr, contractMsg.ResubmitFailure) + } } return m.Wrapped.DispatchMsg(ctx, contractAddr, contractIBCPortID, msg) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index f9b0c22dc..b2c5f6afb 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -16,9 +16,9 @@ func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packe ChannelId: packet.SourceChannel, Address: address, SequenceId: packet.Sequence, + Packet: &packet, AckType: ackType, Ack: ack, - Packet: &packet, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index ef208f1e0..1376c8465 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "crypto/rand" + "github.com/neutron-org/neutron/testutil" "strconv" "testing" @@ -61,16 +62,38 @@ func flattenFailures(items [][]types.Failure) []types.Failure { } func TestGetAllFailures(t *testing.T) { - keeper, ctx := keepertest.ContractManagerKeeper(t, nil) - items := createNFailure(keeper, ctx, 1, 1) + k, ctx := keepertest.ContractManagerKeeper(t, nil) + items := createNFailure(k, ctx, 1, 1) flattenItems := flattenFailures(items) - allFailures := keeper.GetAllFailures(ctx) + allFailures := k.GetAllFailures(ctx) require.ElementsMatch(t, nullify.Fill(flattenItems), - // flattenItems, - // allFailures, nullify.Fill(allFailures), ) } + +func TestAddGetFailure(t *testing.T) { + // test adding and getting failure + contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) + k, ctx := keepertest.ContractManagerKeeper(t, nil) + failureId := k.GetNextFailureIDKey(ctx, contractAddress.String()) + k.AddContractFailure(ctx, channeltypes.Packet{}, contractAddress.String(), "ack", &channeltypes.Acknowledgement{}) + failure, err := k.GetFailure(ctx, contractAddress, failureId) + require.NoError(t, err) + require.Equal(t, failureId, failure.Id) + require.Equal(t, "ack", failure.AckType) + + // non-existent id + _, err = k.GetFailure(ctx, contractAddress, failureId+1) + require.Error(t, err) + + // non-existent contract address + _, err = k.GetFailure(ctx, sdk.MustAccAddressFromBech32("neutron1nseacn2aqezhj3ssatfg778ctcfjuknm8ucc0l"), failureId) + require.Error(t, err) +} + +func TestResubmitFailure(t *testing.T) { + // TODO +} From 65e2e3453a117a5a7914ed1359c01d41e94ac380 Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 10 Aug 2023 18:42:35 +0400 Subject: [PATCH 028/307] chore: add tests --- wasmbinding/test/custom_message_test.go | 95 +++++++++++++++++++++++- x/contractmanager/keeper/failure_test.go | 12 +++ 2 files changed, 104 insertions(+), 3 deletions(-) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 3e2771aa4..bdfe65607 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -3,6 +3,7 @@ package test import ( "encoding/json" "fmt" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "testing" "github.com/stretchr/testify/suite" @@ -57,6 +58,7 @@ func (suite *CustomMessengerTestSuite) SetupTest() { suite.messenger.TokenFactory = suite.neutron.TokenFactoryKeeper suite.messenger.CronKeeper = &suite.neutron.CronKeeper suite.messenger.AdminKeeper = &suite.neutron.AdminmoduleKeeper + suite.messenger.ContractmanagerKeeper = &suite.neutron.ContractManagerKeeper suite.contractOwner = keeper.RandomAccountAddress(suite.T()) err := suite.messenger.TokenFactory.SetParams(suite.ctx, tokenfactorytypes.NewParams( @@ -593,12 +595,99 @@ func (suite *CustomMessengerTestSuite) TestAddRemoveSchedule() { suite.Equal([][]uint8{expected}, data) } -func (suite *CustomMessengerTestSuite) TestResubmitFailure() { - // TODO +func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { + // Store code and instantiate reflect contract + codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + suite.Require().NotEmpty(suite.contractAddress) + + // Add failure + packet := ibcchanneltypes.Packet{} + ack := ibcchanneltypes.Acknowledgement{ + Response: &ibcchanneltypes.Acknowledgement_Result{Result: []byte("Result")}, + } + failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, suite.contractAddress.String(), "ack", &ack) + + // Craft message + msg, err := json.Marshal(bindings.NeutronMsg{ + ResubmitFailure: &bindings.ResubmitFailure{ + FailureId: failureId, + }, + }) + suite.NoError(err) + + // Dispatch + events, data, err := suite.messenger.DispatchMsg(suite.ctx, suite.contractAddress, suite.Path.EndpointA.ChannelConfig.PortID, types.CosmosMsg{ + Custom: msg, + }) + suite.NoError(err) + suite.Nil(events) + expected, err := json.Marshal(&bindings.ResubmitFailureResponse{}) + suite.NoError(err) + suite.Equal([][]uint8{expected}, data) +} + +func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { + // Store code and instantiate reflect contract + codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + suite.Require().NotEmpty(suite.contractAddress) + + // Add failure + packet := ibcchanneltypes.Packet{} + ack := ibcchanneltypes.Acknowledgement{ + Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, + } + failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, suite.contractAddress.String(), "timeout", &ack) + + // Craft message + msg, err := json.Marshal(bindings.NeutronMsg{ + ResubmitFailure: &bindings.ResubmitFailure{ + FailureId: failureId, + }, + }) + suite.NoError(err) + + // Dispatch + events, data, err := suite.messenger.DispatchMsg(suite.ctx, suite.contractAddress, suite.Path.EndpointA.ChannelConfig.PortID, types.CosmosMsg{ + Custom: msg, + }) + suite.NoError(err) + suite.Nil(events) + expected, err := json.Marshal(&bindings.ResubmitFailureResponse{}) + suite.NoError(err) + suite.Equal([][]uint8{expected}, data) } func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract() { - // TODO + // Store code and instantiate reflect contract + codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + suite.Require().NotEmpty(suite.contractAddress) + + // Add failure + packet := ibcchanneltypes.Packet{} + ack := ibcchanneltypes.Acknowledgement{ + Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, + } + failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, testutil.TestOwnerAddress, "timeout", &ack) + + // Craft message + msg, err := json.Marshal(bindings.NeutronMsg{ + ResubmitFailure: &bindings.ResubmitFailure{ + FailureId: failureId, + }, + }) + suite.NoError(err) + + // Dispatch + _, _, err = suite.messenger.DispatchMsg(suite.ctx, suite.contractAddress, suite.Path.EndpointA.ChannelConfig.PortID, types.CosmosMsg{ + Custom: msg, + }) + suite.ErrorContains(err, "no failure found to resubmit: not found") } func (suite *CustomMessengerTestSuite) executeCustomMsg(owner sdk.AccAddress, fullMsg bindings.NeutronMsg) (result [][]byte, msg []byte) { diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 1376c8465..6f85cb277 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -96,4 +96,16 @@ func TestAddGetFailure(t *testing.T) { func TestResubmitFailure(t *testing.T) { // TODO + + // successful resubmit with ack and ack = response + // failed resubmit with ack and ack = response + + // successful resubmit with ack and ack = error + // failed resubmit with ack and ack = error + + // successful resubmit with timeout + // failed resubmit with timeout + + // no Failure.Ack field found for ackType = 'ack' + // no Failure.Packet found } From 92a6e50edb8c4fb9844936cb859065229ac18613 Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 10 Aug 2023 19:10:05 +0400 Subject: [PATCH 029/307] chore: add failure_test --- x/contractmanager/keeper/failure_test.go | 33 +++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 6f85cb277..ea6f6d2f7 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -2,7 +2,10 @@ package keeper_test import ( "crypto/rand" + "encoding/json" + "github.com/golang/mock/gomock" "github.com/neutron-org/neutron/testutil" + mock_types "github.com/neutron-org/neutron/testutil/mocks/contractmanager/types" "strconv" "testing" @@ -95,9 +98,37 @@ func TestAddGetFailure(t *testing.T) { } func TestResubmitFailure(t *testing.T) { - // TODO + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + wk := mock_types.NewMockWasmKeeper(ctrl) + k, ctx := keepertest.ContractManagerKeeper(t, wk) + + // add failure + contractAddr := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) + data := []byte("Result") + packet := channeltypes.Packet{} + ack := channeltypes.Acknowledgement{ + Response: &channeltypes.Acknowledgement_Result{Result: data}, + } + failureId := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, packet, contractAddr.String(), "ack", &ack) // successful resubmit with ack and ack = response + x := types.MessageResponse{} + x.Response.Data = data + x.Response.Request = channeltypes.Packet{} + msg, err := json.Marshal(x) + require.NoError(t, err) + + wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msg) + + failure, err := k.GetFailure(ctx, contractAddr, failureId) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure) + require.NoError(t, err) + // failed resubmit with ack and ack = response // successful resubmit with ack and ack = error From 536191206e6fc84e04fc39fcdcd25ebacf117a02 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 11 Aug 2023 10:22:50 +0300 Subject: [PATCH 030/307] forked cosmos-sdk v0.47 --- go.mod | 15 ++++++++++++--- go.sum | 38 +++++++++++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index cb6ae7427..7b26426f5 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.20 require ( cosmossdk.io/core v0.5.1 cosmossdk.io/errors v1.0.0 + cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca cosmossdk.io/math v1.0.1 github.com/CosmWasm/wasmd v0.41.0 github.com/CosmWasm/wasmvm v1.3.0 @@ -26,9 +27,11 @@ require ( github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 + github.com/rs/zerolog v1.29.1 github.com/skip-mev/pob v1.0.3 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 + github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f github.com/stretchr/testify v1.8.4 @@ -45,7 +48,6 @@ require ( cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -55,12 +57,16 @@ require ( 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 + github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // 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/confio/ics23/go v0.9.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect @@ -82,6 +88,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.21.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.6.0 // indirect @@ -119,6 +126,8 @@ require ( github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/klauspost/compress v1.16.5 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.0 // indirect @@ -143,12 +152,11 @@ require ( github.com/prometheus/procfs v0.10.1 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect github.com/rs/cors v1.8.3 // indirect - github.com/rs/zerolog v1.29.1 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.4.2 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect @@ -183,6 +191,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 71b2262b1..6e321f229 100644 --- a/go.sum +++ b/go.sum @@ -221,6 +221,7 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= +github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= github.com/CosmWasm/wasmvm v1.3.0 h1:x12X4bKlUPS7TT9QQP45+fJo2sp30GEbiSSgb9jsec8= github.com/CosmWasm/wasmvm v1.3.0/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= @@ -286,6 +287,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= @@ -312,7 +315,7 @@ 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.5.1 h1:mixz5lJX4Hiz4FpqFREJHIXLfaLBntfaJv1h+/jS+Qg= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= @@ -356,7 +359,15 @@ github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b80 github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +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/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= 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= @@ -381,8 +392,6 @@ 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.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.4 h1:FVUpEprm58nMmBX4xkRdMDaIG5Nr4yy92HZAfGAw9bg= -github.com/cosmos/cosmos-sdk v0.47.4/go.mod h1:R5n+uM7vguVPFap4pgkdvQCT1nVo/OtPwrlAU40rvok= github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 h1:mfMLLg6wbQfZCf0IkdvEWiC3AVXkNgX0vaDZFtdYLs0= github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4/go.mod h1:6zse9gY32FcZtX9/GYqXPGxneRN7+qpPCi/doXzgK5E= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= @@ -468,6 +477,7 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1 github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -482,6 +492,7 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7 github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0= 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/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= 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= @@ -498,6 +509,8 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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.21.0 h1:c9l5F1nPF30JIppulk4veau90PK6Smu3abgVtVQWon4= +github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -506,6 +519,7 @@ github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= 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= @@ -522,6 +536,7 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= 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-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= 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= @@ -552,6 +567,7 @@ github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFG 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/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= 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= @@ -796,6 +812,7 @@ github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= @@ -825,6 +842,7 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -908,6 +926,7 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= @@ -928,6 +947,9 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= @@ -982,6 +1004,9 @@ github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761/go.mod h1:pxMtw7c github.com/philhofer/fwd v1.0.0/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= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -1040,7 +1065,9 @@ github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRr github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= 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/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= @@ -1054,6 +1081,7 @@ github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= @@ -1150,12 +1178,16 @@ github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0o github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= +github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= +github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= From d0b83b7a5ec8c146dadd82528637779ee2b31cf4 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 15 Aug 2023 13:07:52 +0400 Subject: [PATCH 031/307] refactor known proposals --- go.mod | 10 +-- go.sum | 4 +- wasmbinding/bindings/msg.go | 4 +- wasmbinding/message_plugin.go | 137 ++++++++++++++++++++-------------- 4 files changed, 91 insertions(+), 64 deletions(-) diff --git a/go.mod b/go.mod index 46f8824f4..27a9e8b04 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.20 require ( cosmossdk.io/core v0.5.1 cosmossdk.io/errors v1.0.0-beta.7 + cosmossdk.io/log v1.1.0 cosmossdk.io/math v1.0.1 github.com/CosmWasm/wasmd v0.40.0 github.com/CosmWasm/wasmvm v1.2.4 @@ -24,12 +25,13 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.15.1 + github.com/rs/zerolog v1.29.1 github.com/skip-mev/pob v1.0.3 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 + github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f github.com/stretchr/testify v1.8.4 @@ -46,7 +48,6 @@ require ( cloud.google.com/go/storage v1.29.0 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.3 // indirect - cosmossdk.io/log v1.1.0 // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect @@ -83,7 +84,6 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/ghodss/yaml v1.0.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.6.0 // indirect @@ -146,11 +146,9 @@ require ( github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rs/cors v1.8.3 // indirect - github.com/rs/zerolog v1.29.1 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.4.2 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect @@ -184,7 +182,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230815080844-fd586638657d github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 5d3442aab..6a13cf7a4 100644 --- a/go.sum +++ b/go.sum @@ -499,7 +499,6 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -699,8 +698,6 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf 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.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= 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= @@ -932,6 +929,7 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230815080844-fd586638657d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 8dcccba8f..f39146ae6 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -107,7 +107,9 @@ type ParamChangeProposal struct { } type SoftwareUpgradeProposal struct { - Title string `json:"title"` + // deprecated + Title string `json:"title"` + // deprecated Description string `json:"description"` Plan Plan `json:"plan"` } diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 4fc27b93c..f73246bab 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -295,6 +295,21 @@ func (m *CustomMessenger) submitTx(ctx sdk.Context, contractAddr sdk.AccAddress, } func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) ([]sdk.Event, [][]byte, error) { + var data []byte + if submitAdminProposal.AdminProposal.ParamChangeProposal != nil || submitAdminProposal.AdminProposal.UpgradeProposal != nil || submitAdminProposal.AdminProposal.CancelSoftwareUpgradeProposal != nil { + resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, submitAdminProposal) + data, err = json.Marshal(resp) + if err != nil { + ctx.Logger().Error("json.Marshal: failed to marshal submitAdminProposalLegacy response to JSON", + "from_address", contractAddr.String(), + "creator", contractAddr.String(), + "error", err, + ) + return nil, nil, errors.Wrap(err, "marshal json failed") + } + return nil, [][]byte{data}, nil + } + response, err := m.performSubmitAdminProposal(ctx, contractAddr, submitAdminProposal) if err != nil { ctx.Logger().Debug("performSubmitAdminProposal: failed to submitAdminProposal", @@ -305,7 +320,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. return nil, nil, errors.Wrap(err, "failed to submit admin proposal") } - data, err := json.Marshal(response) + data, err = json.Marshal(response) if err != nil { ctx.Logger().Error("json.Marshal: failed to marshal submitAdminProposal response to JSON", "from_address", contractAddr.String(), @@ -322,17 +337,17 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. return nil, [][]byte{data}, nil } -func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { - msg := admintypes.MsgSubmitProposal{Proposer: contractAddr.String()} +func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalLegacyResponse, error) { proposal := submitAdminProposal.AdminProposal + msg := admintypes.MsgSubmitProposalLegacy{Proposer: contractAddr.String()} err := m.validateProposalQty(&proposal) if err != nil { return nil, errors.Wrap(err, "failed to validate proposal quantity") } - if proposal.ParamChangeProposal != nil { + if submitAdminProposal.AdminProposal.ParamChangeProposal != nil { p := proposal.ParamChangeProposal - err := msg.SetContent(¶mChange.ParameterChangeProposal{ + err = msg.SetContent(¶mChange.ParameterChangeProposal{ Title: p.Title, Description: p.Description, Changes: p.ParamChanges, @@ -340,35 +355,8 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if err != nil { return nil, errors.Wrap(err, "failed to set content on ParameterChangeProposal") } - } - if proposal.SoftwareUpgradeProposal != nil { - p := proposal.SoftwareUpgradeProposal - err := msg.SetContent(&softwareUpgrade.SoftwareUpgradeProposal{ - Title: p.Title, - Description: p.Description, - Plan: softwareUpgrade.Plan{ - Name: p.Plan.Name, - Height: p.Plan.Height, - Info: p.Plan.Info, - }, - }) - if err != nil { - return nil, errors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") - } } - - if proposal.CancelSoftwareUpgradeProposal != nil { - p := proposal.CancelSoftwareUpgradeProposal - err := msg.SetContent(&softwareUpgrade.CancelSoftwareUpgradeProposal{ - Title: p.Title, - Description: p.Description, - }) - if err != nil { - return nil, errors.Wrap(err, "failed to set content on CancelSoftwareUpgradeProposal") - } - } - if proposal.UpgradeProposal != nil { p := proposal.UpgradeProposal err := msg.SetContent(&ibcclienttypes.UpgradeProposal{ @@ -399,13 +387,59 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd } } + if err := msg.ValidateBasic(); err != nil { + return nil, errors.Wrap(err, "failed to validate incoming SubmitAdminProposal message") + } + + response, err := m.Adminserver.SubmitProposalLegacy(sdk.WrapSDKContext(ctx), &msg) + if err != nil { + return nil, errors.Wrap(err, "failed to submit proposal") + } + + return response, nil +} + +func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { + proposal := submitAdminProposal.AdminProposal + var msg *admintypes.MsgSubmitProposal + var sdkMsgs []sdk.Msg + var sdkMsg sdk.Msg + + err := m.validateProposalQty(&proposal) + if err != nil { + return nil, errors.Wrap(err, "failed to validate proposal quantity") + } + + if proposal.SoftwareUpgradeProposal != nil { + p := proposal.SoftwareUpgradeProposal + sdkMsg = &softwareUpgrade.MsgSoftwareUpgrade{ + Plan: softwareUpgrade.Plan{ + Name: p.Plan.Name, + Height: p.Plan.Height, + Info: p.Plan.Info, + }, + } + sdkMsgs = append(sdkMsgs, sdkMsg) + msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) + if err != nil { + return nil, errors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") + } + } + + if proposal.CancelSoftwareUpgradeProposal != nil { + sdkMsg = &softwareUpgrade.MsgCancelUpgrade{} + sdkMsgs = append(sdkMsgs, sdkMsg) + msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) + if err != nil { + return nil, errors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") + } + } + if proposal.PinCodesProposal != nil { p := proposal.PinCodesProposal - err := msg.SetContent(&wasmtypes.PinCodesProposal{ - Title: p.Title, - Description: p.Description, - CodeIDs: p.CodeIDs, - }) + sdkMsg = &wasmtypes.MsgPinCodes{CodeIDs: p.CodeIDs} + sdkMsgs = append(sdkMsgs, sdkMsg) + msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) if err != nil { return nil, errors.Wrap(err, "failed to set content on PinCodesProposal") } @@ -413,11 +447,9 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if proposal.UnpinCodesProposal != nil { p := proposal.UnpinCodesProposal - err := msg.SetContent(&wasmtypes.UnpinCodesProposal{ - Title: p.Title, - Description: p.Description, - CodeIDs: p.CodeIDs, - }) + sdkMsg = &wasmtypes.MsgUnpinCodes{CodeIDs: p.CodeIDs} + sdkMsgs = append(sdkMsgs, sdkMsg) + msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) if err != nil { return nil, errors.Wrap(err, "failed to set content on UnpinCodesProposal") } @@ -425,12 +457,11 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if proposal.UpdateAdminProposal != nil { p := proposal.UpdateAdminProposal - err := msg.SetContent(&wasmtypes.UpdateAdminProposal{ - Title: p.Title, - Description: p.Description, - NewAdmin: p.NewAdmin, - Contract: p.Contract, - }) + sdkMsg = &wasmtypes.MsgUpdateAdmin{ + + NewAdmin: p.NewAdmin, + Contract: p.Contract, + } if err != nil { return nil, errors.Wrap(err, "failed to set content on UpdateAdminProposal") } @@ -438,11 +469,9 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if proposal.ClearAdminProposal != nil { p := proposal.ClearAdminProposal - err := msg.SetContent(&wasmtypes.ClearAdminProposal{ - Title: p.Title, - Description: p.Description, - Contract: p.Contract, - }) + sdkMsg = &wasmtypes.MsgClearAdmin{ + Contract: p.Contract, + } if err != nil { return nil, errors.Wrap(err, "failed to set content on ClearAdminProposal") } @@ -452,7 +481,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd return nil, errors.Wrap(err, "failed to validate incoming SubmitAdminProposal message") } - response, err := m.Adminserver.SubmitProposal(sdk.WrapSDKContext(ctx), &msg) + response, err := m.Adminserver.SubmitProposal(sdk.WrapSDKContext(ctx), msg) if err != nil { return nil, errors.Wrap(err, "failed to submit proposal") } From 0512cef7205ad7f6099ec5ca9655004eb8d8ffd3 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 15 Aug 2023 13:32:23 +0400 Subject: [PATCH 032/307] ref & add new binding --- wasmbinding/bindings/msg.go | 6 +++++ wasmbinding/message_plugin.go | 43 +++++++++++++---------------------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index f39146ae6..de2058fa0 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -98,6 +98,7 @@ type AdminProposal struct { UnpinCodesProposal *UnpinCodesProposal `json:"unpin_codes_proposal,omitempty"` UpdateAdminProposal *UpdateAdminProposal `json:"update_admin_proposal,omitempty"` ClearAdminProposal *ClearAdminProposal `json:"clear_admin_proposal,omitempty"` + ParamChangeNewProposal *ParamChangeNewProposal `json:"param_change_new_proposal,omitempty"` } type ParamChangeProposal struct { @@ -184,6 +185,11 @@ type ClearAdminProposal struct { Contract string `json:"contract,omitempty"` } +type ParamChangeNewProposal struct { + Module string `json:"module,omitempty"` + NewParams string `json:"new_params,omitempty"` +} + // CreateDenom creates a new factory denom, of denomination: // factory/{creating contract address}/{Subdenom} // Subdenom can be of length at most 44 characters, in [0-9a-zA-Z./] diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index f73246bab..b9e8b1d28 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -401,15 +401,16 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { proposal := submitAdminProposal.AdminProposal - var msg *admintypes.MsgSubmitProposal - var sdkMsgs []sdk.Msg - var sdkMsg sdk.Msg err := m.validateProposalQty(&proposal) if err != nil { return nil, errors.Wrap(err, "failed to validate proposal quantity") } + var msg *admintypes.MsgSubmitProposal + var sdkMsgs []sdk.Msg + var sdkMsg sdk.Msg + if proposal.SoftwareUpgradeProposal != nil { p := proposal.SoftwareUpgradeProposal sdkMsg = &softwareUpgrade.MsgSoftwareUpgrade{ @@ -419,40 +420,20 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd Info: p.Plan.Info, }, } - sdkMsgs = append(sdkMsgs, sdkMsg) - msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) - if err != nil { - return nil, errors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") - } } if proposal.CancelSoftwareUpgradeProposal != nil { sdkMsg = &softwareUpgrade.MsgCancelUpgrade{} - sdkMsgs = append(sdkMsgs, sdkMsg) - msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) - if err != nil { - return nil, errors.Wrap(err, "failed to set content on SoftwareUpgradeProposal") - } } if proposal.PinCodesProposal != nil { p := proposal.PinCodesProposal sdkMsg = &wasmtypes.MsgPinCodes{CodeIDs: p.CodeIDs} - sdkMsgs = append(sdkMsgs, sdkMsg) - msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) - if err != nil { - return nil, errors.Wrap(err, "failed to set content on PinCodesProposal") - } } if proposal.UnpinCodesProposal != nil { p := proposal.UnpinCodesProposal sdkMsg = &wasmtypes.MsgUnpinCodes{CodeIDs: p.CodeIDs} - sdkMsgs = append(sdkMsgs, sdkMsg) - msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) - if err != nil { - return nil, errors.Wrap(err, "failed to set content on UnpinCodesProposal") - } } if proposal.UpdateAdminProposal != nil { @@ -462,9 +443,6 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd NewAdmin: p.NewAdmin, Contract: p.Contract, } - if err != nil { - return nil, errors.Wrap(err, "failed to set content on UpdateAdminProposal") - } } if proposal.ClearAdminProposal != nil { @@ -472,11 +450,22 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd sdkMsg = &wasmtypes.MsgClearAdmin{ Contract: p.Contract, } + } + + if proposal.ParamChangeNewProposal != nil { + p := proposal.ParamChangeNewProposal + myJsonString := fmt.Sprintf(`{"authority":"%s", "params": "%s"}`, "neutronaddr", p.NewParams) + sdkMsg = m.AdminKeeper.RegisteredModulesUpdateParams[p.Module].UpdateParamsMsg + err := json.Unmarshal([]byte(myJsonString), sdkMsg) if err != nil { - return nil, errors.Wrap(err, "failed to set content on ClearAdminProposal") + return nil, errors.Wrap(err, "failed to marshal incoming UpdateParams message") + } } + sdkMsgs = append(sdkMsgs, sdkMsg) + msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) + if err := msg.ValidateBasic(); err != nil { return nil, errors.Wrap(err, "failed to validate incoming SubmitAdminProposal message") } From 73025c565117930dafa37108d7bed5064ec36222 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 15 Aug 2023 13:57:36 +0400 Subject: [PATCH 033/307] update admin module --- app/app.go | 16 ++++++++++------ go.mod | 2 +- go.sum | 1 + 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/app.go b/app/app.go index 6c9e793a6..b28dfe161 100644 --- a/app/app.go +++ b/app/app.go @@ -629,18 +629,21 @@ func New( supportedFeatures := "iterator,stargate,staking,neutron,cosmwasm_1_1,cosmwasm_1_2" // register the proposal types - adminRouter := govv1beta1.NewRouter() - adminRouter.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). + adminRouterLegacy := govv1beta1.NewRouter() + adminRouterLegacy.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)). AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(&app.UpgradeKeeper)). AddRoute(ibchost.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) + keeperModules := map[string]adminmodulemodulekeeper.RegisteredModuleUpdateParams{"bank": {UpdateParamsMsg: &banktypes.MsgUpdateParams{}}} app.AdminmoduleKeeper = *adminmodulemodulekeeper.NewKeeper( appCodec, keys[adminmodulemoduletypes.StoreKey], keys[adminmodulemoduletypes.MemStoreKey], - adminRouter, + adminRouterLegacy, + app.MsgServiceRouter(), IsConsumerProposalAllowlisted, + keeperModules, ) adminModule := adminmodulemodule.NewAppModule(appCodec, app.AdminmoduleKeeper) @@ -696,9 +699,10 @@ func New( app.CronKeeper.WasmMsgServer = wasmkeeper.NewMsgServerImpl(&app.WasmKeeper) cronModule := cron.NewAppModule(appCodec, &app.CronKeeper) - if len(enabledProposals) != 0 { - app.AdminmoduleKeeper.Router().AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) - } + // TODO: enabled proposals? + //if len(enabledProposals) != 0 { + // app.AdminmoduleKeeper.Router().AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) + //} transferIBCModule := transferSudo.NewIBCModule(app.TransferKeeper) // receive call order: wasmHooks#OnRecvPacketOverride(transferIbcModule#OnRecvPacket()) ibcHooksMiddleware := ibchooks.NewIBCMiddleware(&transferIBCModule, &app.HooksICS4Wrapper) diff --git a/go.mod b/go.mod index 27a9e8b04..ea11feaec 100644 --- a/go.mod +++ b/go.mod @@ -182,7 +182,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230815080844-fd586638657d + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 6a13cf7a4..7aa9492e0 100644 --- a/go.sum +++ b/go.sum @@ -930,6 +930,7 @@ github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/admin-module v0.0.0-20230815080844-fd586638657d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= From b86ff0546001e45653df40971dad289abe21886d Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 15 Aug 2023 14:52:52 +0400 Subject: [PATCH 034/307] smol upd --- app/app.go | 18 +++++++++--------- wasmbinding/message_plugin.go | 30 +++++++++++++++++++----------- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/app/app.go b/app/app.go index b28dfe161..ba6430bd5 100644 --- a/app/app.go +++ b/app/app.go @@ -421,7 +421,7 @@ func New( app.ParamsKeeper = initParamsKeeper(appCodec, legacyAmino, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey]) // set the BaseApp's parameter store - app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(govtypes.ModuleName).String()) + app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) bApp.SetParamStore(&app.ConsensusParamsKeeper) // add capability keeper and ScopeToModule for ibc module @@ -443,7 +443,7 @@ func New( authtypes.ProtoBaseAccount, maccPerms, sdk.GetConfig().GetBech32AccountAddrPrefix(), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) app.AuthzKeeper = authzkeeper.NewKeeper( @@ -455,7 +455,7 @@ func New( keys[banktypes.StoreKey], app.AccountKeeper, app.BlockedAddrs(), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) app.SlashingKeeper = slashingkeeper.NewKeeper( @@ -463,7 +463,7 @@ func New( legacyAmino, keys[slashingtypes.StoreKey], &app.ConsumerKeeper, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) app.CrisisKeeper = *crisiskeeper.NewKeeper( appCodec, @@ -471,7 +471,7 @@ func New( invCheckPeriod, app.BankKeeper, authtypes.FeeCollectorName, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper) @@ -481,7 +481,7 @@ func New( appCodec, homePath, app.BaseApp, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) // ... other modules keepers @@ -612,7 +612,7 @@ func New( app.BankKeeper, // 25% of rewards should be sent to the redistribute address rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName)), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) wasmDir := filepath.Join(homePath, "wasm") @@ -635,7 +635,7 @@ func New( AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(&app.UpgradeKeeper)). AddRoute(ibchost.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) - keeperModules := map[string]adminmodulemodulekeeper.RegisteredModuleUpdateParams{"bank": {UpdateParamsMsg: &banktypes.MsgUpdateParams{}}} + keeperModules := map[string]adminmodulemodulekeeper.RegisteredModuleUpdateParams{wasm.ModuleName: {UpdateParamsMsg: &wasmtypes.MsgUpdateParams{}}} app.AdminmoduleKeeper = *adminmodulemodulekeeper.NewKeeper( appCodec, keys[adminmodulemoduletypes.StoreKey], @@ -691,7 +691,7 @@ func New( wasmDir, wasmConfig, supportedFeatures, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), wasmOpts..., ) wasmHooks.ContractKeeper = &app.WasmKeeper diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index b9e8b1d28..32aae0ec9 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -5,6 +5,7 @@ import ( "fmt" "cosmossdk.io/errors" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -401,6 +402,7 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { proposal := submitAdminProposal.AdminProposal + authority := authtypes.NewModuleAddress(admintypes.ModuleName).String() err := m.validateProposalQty(&proposal) if err != nil { @@ -414,6 +416,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if proposal.SoftwareUpgradeProposal != nil { p := proposal.SoftwareUpgradeProposal sdkMsg = &softwareUpgrade.MsgSoftwareUpgrade{ + Authority: authority, Plan: softwareUpgrade.Plan{ Name: p.Plan.Name, Height: p.Plan.Height, @@ -423,23 +426,23 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd } if proposal.CancelSoftwareUpgradeProposal != nil { - sdkMsg = &softwareUpgrade.MsgCancelUpgrade{} + sdkMsg = &softwareUpgrade.MsgCancelUpgrade{Authority: authority} } if proposal.PinCodesProposal != nil { p := proposal.PinCodesProposal - sdkMsg = &wasmtypes.MsgPinCodes{CodeIDs: p.CodeIDs} + sdkMsg = &wasmtypes.MsgPinCodes{Authority: authority, CodeIDs: p.CodeIDs} } if proposal.UnpinCodesProposal != nil { p := proposal.UnpinCodesProposal - sdkMsg = &wasmtypes.MsgUnpinCodes{CodeIDs: p.CodeIDs} + sdkMsg = &wasmtypes.MsgUnpinCodes{Authority: authority, CodeIDs: p.CodeIDs} } if proposal.UpdateAdminProposal != nil { p := proposal.UpdateAdminProposal sdkMsg = &wasmtypes.MsgUpdateAdmin{ - + Sender: authority, NewAdmin: p.NewAdmin, Contract: p.Contract, } @@ -448,21 +451,26 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if proposal.ClearAdminProposal != nil { p := proposal.ClearAdminProposal sdkMsg = &wasmtypes.MsgClearAdmin{ + Sender: authority, Contract: p.Contract, } } if proposal.ParamChangeNewProposal != nil { p := proposal.ParamChangeNewProposal - myJsonString := fmt.Sprintf(`{"authority":"%s", "params": "%s"}`, "neutronaddr", p.NewParams) - sdkMsg = m.AdminKeeper.RegisteredModulesUpdateParams[p.Module].UpdateParamsMsg - err := json.Unmarshal([]byte(myJsonString), sdkMsg) - if err != nil { - return nil, errors.Wrap(err, "failed to marshal incoming UpdateParams message") - + myJsonString := fmt.Sprintf(`{"authority":"%s", "params": "%s"}`, authority, p.NewParams) + module, ok := m.AdminKeeper.RegisteredModulesUpdateParams[p.Module] + if ok { + sdkMsg = module.UpdateParamsMsg + err := json.Unmarshal([]byte(myJsonString), sdkMsg) + if err != nil { + return nil, errors.Wrap(err, "failed to marshal incoming UpdateParams message") + + } + } else { + return nil, errors.Wrap(err, "module is not registered to update params") } } - sdkMsgs = append(sdkMsgs, sdkMsg) msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) From bf6aed9fd365f388238e2248bfcb5b79c6b7265c Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 15 Aug 2023 14:57:55 +0400 Subject: [PATCH 035/307] gosum --- go.sum | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go.sum b/go.sum index 7aa9492e0..964084b5f 100644 --- a/go.sum +++ b/go.sum @@ -927,9 +927,7 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= -github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= -github.com/neutron-org/admin-module v0.0.0-20230815080844-fd586638657d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26 h1:Aycti/vu5GFMOYecB1hPuOU4XqUC6TMOhfWITElp1B4= github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= From f5fb999f5d687f0ab5316e5a43dcaca37971bdd2 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 15 Aug 2023 16:06:40 +0400 Subject: [PATCH 036/307] upd module --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ea11feaec..8f4fca84d 100644 --- a/go.mod +++ b/go.mod @@ -182,7 +182,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230815120514-97237f8409d1 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 964084b5f..504b3d374 100644 --- a/go.sum +++ b/go.sum @@ -927,8 +927,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26 h1:Aycti/vu5GFMOYecB1hPuOU4XqUC6TMOhfWITElp1B4= -github.com/neutron-org/admin-module v0.0.0-20230815095050-77591ac62d26/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230815120514-97237f8409d1 h1:beWeivCs5O4uMun+Hc+wM68ZpZTmy5o2Q5JtdbqfhoE= +github.com/neutron-org/admin-module v0.0.0-20230815120514-97237f8409d1/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= From a9235e3eddae5990057dc5902bb2e33e4235b8e3 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 16 Aug 2023 14:13:19 +0400 Subject: [PATCH 037/307] add failures query binding and upgrade for failures state --- app/upgrades/nextupgrade/upgrades.go | 51 ++- app/upgrades/nextupgrade/upgrades_test.go | 99 +++++ app/upgrades/types.go | 6 +- proto/neutron/contractmanager/genesis.proto | 22 +- wasmbinding/bindings/query.go | 14 + wasmbinding/custom_querier.go | 13 + wasmbinding/queries.go | 13 + wasmbinding/query_plugin.go | 25 +- wasmbinding/stargate_allowlist.go | 5 - wasmbinding/test/custom_message_test.go | 7 +- wasmbinding/wasm.go | 2 +- x/contractmanager/keeper/failure.go | 11 +- x/contractmanager/keeper/failure_test.go | 19 +- x/contractmanager/types/genesis.pb.go | 456 ++++++++++++++++---- x/transfer/ibc_handlers.go | 8 +- 15 files changed, 632 insertions(+), 119 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index e1d25c60b..cdb0c372f 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -4,20 +4,60 @@ import ( "errors" "github.com/cosmos/cosmos-sdk/codec" - + "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee/types" "github.com/neutron-org/neutron/app/upgrades" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" ) +func MigrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Codec) error { + ctx.Logger().Info("Migrating failures...") + + // fetch list of all old failures + oldFailuresList := make([]contractmanagertypes.OldFailure, 0) + iteratorStore := prefix.NewStore(ctx.KVStore(storeKeys.GetKey(contractmanagertypes.StoreKey)), contractmanagertypes.ContractFailuresKey) + iterator := sdk.KVStorePrefixIterator(iteratorStore, []byte{}) + + for ; iterator.Valid(); iterator.Next() { + var val contractmanagertypes.OldFailure + cdc.MustUnmarshal(iterator.Value(), &val) + oldFailuresList = append(oldFailuresList, val) + } + + err := iterator.Close() + if err != nil { + return err + } + + // migrate + store := ctx.KVStore(storeKeys.GetKey(contractmanagertypes.StoreKey)) + for _, oldItem := range oldFailuresList { + failure := contractmanagertypes.Failure{ + ChannelId: oldItem.ChannelId, + Address: oldItem.Address, + Id: oldItem.Id, + AckType: oldItem.AckType, + Packet: nil, + Ack: nil, + } + bz := cdc.MustMarshal(&failure) + store.Set(contractmanagertypes.GetFailureKey(failure.Address, failure.Id), bz) + } + + ctx.Logger().Info("Finished migrating failures") + + return nil +} + func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *upgrades.UpgradeKeepers, - _ upgrades.StoreKeys, - _ codec.Codec, + storeKeys upgrades.StoreKeys, + cdc codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("Starting module migrations...") @@ -45,6 +85,11 @@ func CreateUpgradeHandler( ctx.Logger().Info("Global fees was set successfully") + err = MigrateFailures(ctx, storeKeys, cdc) + if err != nil { + ctx.Logger().Error("failed to migrate failures", "err", err) + } + ctx.Logger().Info("Upgrade complete") return vm, err } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 464d5293e..d4665508f 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,8 +1,11 @@ package nextupgrade_test import ( + "fmt" "testing" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" + sdk "github.com/cosmos/cosmos-sdk/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee" @@ -48,3 +51,99 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { } suite.Require().Equal(requiredGlobalFees, globalMinGasPrices) } + +func (suite *UpgradeTestSuite) TestFailuresUpgrade() { + var ( + app = suite.GetNeutronZoneApp(suite.ChainA) + storeKey = app.GetKey(contractmanagertypes.StoreKey) + ctx = suite.ChainA.GetContext() + cdc = app.AppCodec() + ) + + addressOne := testutil.TestOwnerAddress + addressTwo := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" + + store := ctx.KVStore(storeKey) + var i uint64 + for i = 0; i < 4; i++ { + var addr string + if i < 2 { + addr = addressOne + } else { + addr = addressTwo + } + failure := contractmanagertypes.OldFailure{ + ChannelId: fmt.Sprintf("channel-%d", i), + Address: addr, + Id: i % 2, + AckType: "ack", + } + bz := cdc.MustMarshal(&failure) + store.Set(contractmanagertypes.GetFailureKey(failure.Address, failure.Id), bz) + } + + upgrade := upgradetypes.Plan{ + Name: nextupgrade.UpgradeName, + Info: "some text here", + Height: 100, + } + app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) + + // check elements migrated properly + suite.Require().ElementsMatch(app.ContractManagerKeeper.GetAllFailures(ctx), []contractmanagertypes.Failure{ + { + ChannelId: "channel-0", + Address: addressOne, + Id: 0, + AckType: "ack", + Packet: nil, + Ack: nil, + }, + { + ChannelId: "channel-1", + Address: addressOne, + Id: 1, + AckType: "ack", + Packet: nil, + Ack: nil, + }, + { + ChannelId: "channel-2", + Address: addressTwo, + Id: 0, + AckType: "ack", + Packet: nil, + Ack: nil, + }, + { + ChannelId: "channel-3", + Address: addressTwo, + Id: 1, + AckType: "ack", + Packet: nil, + Ack: nil, + }, + }) + + // check getting element works + failure, err := app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 1) + suite.Require().NoError(err) + suite.Require().Equal(failure, &contractmanagertypes.Failure{ + ChannelId: "channel-3", + Address: addressTwo, + Id: 1, + AckType: "ack", + Packet: nil, + Ack: nil, + }) + + // non-existent returns error + _, err = app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 2) + suite.Require().Error(err) + + // check id's is in order + oneKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressOne) + suite.Require().Equal(oneKey, uint64(2)) + twoKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressTwo) + suite.Require().Equal(twoKey, uint64(2)) +} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 91fe12f10..3a6fa1583 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -2,7 +2,7 @@ package upgrades import ( "github.com/cosmos/cosmos-sdk/codec" - store "github.com/cosmos/cosmos-sdk/store/types" + storetypes "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" @@ -29,7 +29,7 @@ type Upgrade struct { CreateUpgradeHandler func(*module.Manager, module.Configurator, *UpgradeKeepers, StoreKeys, codec.Codec) upgradetypes.UpgradeHandler // Store upgrades, should be used for any new modules introduced, new modules deleted, or store names renamed. - StoreUpgrades store.StoreUpgrades + StoreUpgrades storetypes.StoreUpgrades } type UpgradeKeepers struct { @@ -47,5 +47,5 @@ type UpgradeKeepers struct { } type StoreKeys interface { - GetKey(string) *store.KVStoreKey + GetKey(string) *storetypes.KVStoreKey } diff --git a/proto/neutron/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto index 53dd813f4..1f27e02ce 100644 --- a/proto/neutron/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -18,14 +18,12 @@ message Failure { string address = 2; // Id of the failure under specific address uint64 id = 3; - // Packet sequence id to restore - uint64 sequence_id = 4; // TODO: is renaming ok? // Acknowledgement type - string ack_type = 5; + string ack_type = 4; // IBC Packet - ibc.core.channel.v1.Packet packet = 6; + ibc.core.channel.v1.Packet packet = 5; // Acknowledgement - ibc.core.channel.v1.Acknowledgement ack = 7; + ibc.core.channel.v1.Acknowledgement ack = 6; } // GenesisState defines the contractmanager module's genesis state. @@ -35,3 +33,17 @@ message GenesisState { repeated Failure failures_list = 2 [ (gogoproto.nullable) = false ]; // this line is used by starport scaffolding # genesis/proto/state } + +// Deprecated. Used only for migration purposes. +message OldFailure { + // ChannelId + string channel_id = 1; + // Address of the failed contract + string address = 2; + // id of the failure under specific address + uint64 id = 3; + // ACK id to restore + uint64 ack_id = 4; + // Acknowledgement type + string ack_type = 5; +} diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index bdbf085d2..aa0c2d314 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -3,6 +3,8 @@ package bindings import ( "encoding/json" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" sdktypes "github.com/cosmos/cosmos-sdk/types" @@ -32,6 +34,9 @@ type NeutronQuery struct { FullDenom *FullDenom `json:"full_denom,omitempty"` /// Returns the admin of a denom, if the denom is a Token Factory denom. DenomAdmin *DenomAdmin `json:"denom_admin,omitempty"` + // Contractmanager queries + /// Query all failures for address + Failures *Failures `json:"failures,omitempty"` } /* Requests */ @@ -108,6 +113,10 @@ type QueryMinIbcFeeResponse struct { MinFee feerefundertypes.Fee `json:"min_fee"` } +type FailuresResponse struct { + Failures []contractmanagertypes.Failure `json:"failures"` +} + func (rq RegisteredQuery) MarshalJSON() ([]byte, error) { type AliasRQ RegisteredQuery @@ -178,6 +187,11 @@ type DenomAdmin struct { Subdenom string `json:"subdenom"` } +type Failures struct { + Address string `json:"address"` + Pagination *query.PageRequest `json:"pagination,omitempty"` +} + type DenomAdminResponse struct { Admin string `json:"admin"` } diff --git a/wasmbinding/custom_querier.go b/wasmbinding/custom_querier.go index e4d717bc1..385ab69e8 100644 --- a/wasmbinding/custom_querier.go +++ b/wasmbinding/custom_querier.go @@ -128,6 +128,19 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag return bz, nil + case contractQuery.Failures != nil: + res, err := qp.GetFailures(ctx, contractQuery.Failures.Address, contractQuery.Failures.Pagination) + if err != nil { + return nil, errors.Wrap(err, "unable to get denom admin") + } + + bz, err := json.Marshal(res) + if err != nil { + return nil, errors.Wrap(err, "failed to JSON marshal FailuresResponse response") + } + + return bz, nil + default: return nil, wasmvmtypes.UnsupportedRequest{Kind: "unknown neutron query type"} } diff --git a/wasmbinding/queries.go b/wasmbinding/queries.go index efea939ca..ef5930b0d 100644 --- a/wasmbinding/queries.go +++ b/wasmbinding/queries.go @@ -4,6 +4,7 @@ import ( "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkquery "github.com/cosmos/cosmos-sdk/types/query" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" "github.com/neutron-org/neutron/wasmbinding/bindings" "github.com/neutron-org/neutron/x/interchainqueries/types" @@ -104,6 +105,18 @@ func (qp *QueryPlugin) GetMinIbcFee(ctx sdk.Context, _ *bindings.QueryMinIbcFeeR return &bindings.QueryMinIbcFeeResponse{MinFee: fee}, nil } +func (qp *QueryPlugin) GetFailures(ctx sdk.Context, address string, pagination *sdkquery.PageRequest) (*bindings.FailuresResponse, error) { + res, err := qp.contractmanagerKeeper.AddressFailures(ctx, &contractmanagertypes.QueryFailuresRequest{ + Address: address, + Pagination: pagination, + }) + if err != nil { + return nil, errors.Wrapf(err, "failed to get failures for address: %s", address) + } + + return &bindings.FailuresResponse{Failures: res.Failures}, nil +} + func mapGRPCRegisteredQueryToWasmBindings(grpcQuery types.RegisteredQuery) bindings.RegisteredQuery { return bindings.RegisteredQuery{ ID: grpcQuery.GetId(), diff --git a/wasmbinding/query_plugin.go b/wasmbinding/query_plugin.go index 22e9f9de7..1b8e346db 100644 --- a/wasmbinding/query_plugin.go +++ b/wasmbinding/query_plugin.go @@ -1,6 +1,7 @@ package wasmbinding import ( + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" feerefunderkeeper "github.com/neutron-org/neutron/x/feerefunder/keeper" icqkeeper "github.com/neutron-org/neutron/x/interchainqueries/keeper" @@ -10,20 +11,22 @@ import ( ) type QueryPlugin struct { - icaControllerKeeper *icacontrollerkeeper.Keeper - icqKeeper *icqkeeper.Keeper - feeBurnerKeeper *feeburnerkeeper.Keeper - feeRefunderKeeper *feerefunderkeeper.Keeper - tokenFactoryKeeper *tokenfactorykeeper.Keeper + icaControllerKeeper *icacontrollerkeeper.Keeper + icqKeeper *icqkeeper.Keeper + feeBurnerKeeper *feeburnerkeeper.Keeper + feeRefunderKeeper *feerefunderkeeper.Keeper + tokenFactoryKeeper *tokenfactorykeeper.Keeper + contractmanagerKeeper *contractmanagerkeeper.Keeper } // NewQueryPlugin returns a reference to a new QueryPlugin. -func NewQueryPlugin(icaControllerKeeper *icacontrollerkeeper.Keeper, icqKeeper *icqkeeper.Keeper, feeBurnerKeeper *feeburnerkeeper.Keeper, feeRefunderKeeper *feerefunderkeeper.Keeper, tfk *tokenfactorykeeper.Keeper) *QueryPlugin { +func NewQueryPlugin(icaControllerKeeper *icacontrollerkeeper.Keeper, icqKeeper *icqkeeper.Keeper, feeBurnerKeeper *feeburnerkeeper.Keeper, feeRefunderKeeper *feerefunderkeeper.Keeper, tfk *tokenfactorykeeper.Keeper, contractmanagerKeeper *contractmanagerkeeper.Keeper) *QueryPlugin { return &QueryPlugin{ - icaControllerKeeper: icaControllerKeeper, - icqKeeper: icqKeeper, - feeBurnerKeeper: feeBurnerKeeper, - feeRefunderKeeper: feeRefunderKeeper, - tokenFactoryKeeper: tfk, + icaControllerKeeper: icaControllerKeeper, + icqKeeper: icqKeeper, + feeBurnerKeeper: feeBurnerKeeper, + feeRefunderKeeper: feeRefunderKeeper, + tokenFactoryKeeper: tfk, + contractmanagerKeeper: contractmanagerKeeper, } } diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 3f8697914..e054f0008 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -7,7 +7,6 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" @@ -39,10 +38,6 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/cosmos.bank.v1beta1.Query/Params": &banktypes.QueryParamsResponse{}, "/cosmos.bank.v1beta1.Query/SupplyOf": &banktypes.QuerySupplyOfResponse{}, - // contractmanager - "/neutron.contractmanager.Query/AddressFailures": &contractmanagertypes.QueryFailuresResponse{}, - "/neutron.contractmanager.Query/Failures": &contractmanagertypes.QueryFailuresResponse{}, - // interchaintxs "/neutron.interchaintxs.Query/Params": &interchaintxstypes.QueryParamsResponse{}, diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index bdfe65607..a2eaa68ac 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -3,9 +3,10 @@ package test import ( "encoding/json" "fmt" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "testing" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/stretchr/testify/suite" ictxtypes "github.com/neutron-org/neutron/x/interchaintxs/types" @@ -606,13 +607,13 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { ack := ibcchanneltypes.Acknowledgement{ Response: &ibcchanneltypes.Acknowledgement_Result{Result: []byte("Result")}, } - failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) + failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, suite.contractAddress.String(), "ack", &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ ResubmitFailure: &bindings.ResubmitFailure{ - FailureId: failureId, + FailureId: failureID, }, }) suite.NoError(err) diff --git a/wasmbinding/wasm.go b/wasmbinding/wasm.go index 151fd1c2f..cdb9ec5dd 100644 --- a/wasmbinding/wasm.go +++ b/wasmbinding/wasm.go @@ -30,7 +30,7 @@ func RegisterCustomPlugins( cronKeeper *cronkeeper.Keeper, contractmanagerKeeper *contractmanagerkeeper.Keeper, ) []wasmkeeper.Option { - wasmQueryPlugin := NewQueryPlugin(ictxKeeper, icqKeeper, feeBurnerKeeper, feeRefunderKeeper, tfk) + wasmQueryPlugin := NewQueryPlugin(ictxKeeper, icqKeeper, feeBurnerKeeper, feeRefunderKeeper, tfk, contractmanagerKeeper) queryPluginOpt := wasmkeeper.WithQueryPlugins(&wasmkeeper.QueryPlugins{ Custom: CustomQuerier(wasmQueryPlugin), diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index b2c5f6afb..056811fca 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -13,12 +13,11 @@ import ( // AddContractFailure adds a specific failure to the store using address as the key func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address, ackType string, ack *ibcchanneltypes.Acknowledgement) { failure := types.Failure{ - ChannelId: packet.SourceChannel, - Address: address, - SequenceId: packet.Sequence, - Packet: &packet, - AckType: ackType, - Ack: ack, + ChannelId: packet.SourceChannel, + Address: address, + Packet: &packet, + AckType: ackType, + Ack: ack, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index ea6f6d2f7..b1bb7504b 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -3,11 +3,12 @@ package keeper_test import ( "crypto/rand" "encoding/json" + "strconv" + "testing" + "github.com/golang/mock/gomock" "github.com/neutron-org/neutron/testutil" mock_types "github.com/neutron-org/neutron/testutil/mocks/contractmanager/types" - "strconv" - "testing" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/testutil/contractmanager/nullify" @@ -81,19 +82,19 @@ func TestAddGetFailure(t *testing.T) { // test adding and getting failure contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) k, ctx := keepertest.ContractManagerKeeper(t, nil) - failureId := k.GetNextFailureIDKey(ctx, contractAddress.String()) + failureID := k.GetNextFailureIDKey(ctx, contractAddress.String()) k.AddContractFailure(ctx, channeltypes.Packet{}, contractAddress.String(), "ack", &channeltypes.Acknowledgement{}) - failure, err := k.GetFailure(ctx, contractAddress, failureId) + failure, err := k.GetFailure(ctx, contractAddress, failureID) require.NoError(t, err) - require.Equal(t, failureId, failure.Id) + require.Equal(t, failureID, failure.Id) require.Equal(t, "ack", failure.AckType) // non-existent id - _, err = k.GetFailure(ctx, contractAddress, failureId+1) + _, err = k.GetFailure(ctx, contractAddress, failureID+1) require.Error(t, err) // non-existent contract address - _, err = k.GetFailure(ctx, sdk.MustAccAddressFromBech32("neutron1nseacn2aqezhj3ssatfg778ctcfjuknm8ucc0l"), failureId) + _, err = k.GetFailure(ctx, sdk.MustAccAddressFromBech32("neutron1nseacn2aqezhj3ssatfg778ctcfjuknm8ucc0l"), failureID) require.Error(t, err) } @@ -111,7 +112,7 @@ func TestResubmitFailure(t *testing.T) { ack := channeltypes.Acknowledgement{ Response: &channeltypes.Acknowledgement_Result{Result: data}, } - failureId := k.GetNextFailureIDKey(ctx, contractAddr.String()) + failureID := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, packet, contractAddr.String(), "ack", &ack) // successful resubmit with ack and ack = response @@ -124,7 +125,7 @@ func TestResubmitFailure(t *testing.T) { wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msg) - failure, err := k.GetFailure(ctx, contractAddr, failureId) + failure, err := k.GetFailure(ctx, contractAddr, failureID) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure) require.NoError(t, err) diff --git a/x/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index d1d447382..7787a4683 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -34,14 +34,12 @@ type Failure struct { Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // Id of the failure under specific address Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` - // Packet sequence id to restore - SequenceId uint64 `protobuf:"varint,4,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` // Acknowledgement type - AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` + AckType string `protobuf:"bytes,4,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` // IBC Packet - Packet *types.Packet `protobuf:"bytes,6,opt,name=packet,proto3" json:"packet,omitempty"` + Packet *types.Packet `protobuf:"bytes,5,opt,name=packet,proto3" json:"packet,omitempty"` // Acknowledgement - Ack *types.Acknowledgement `protobuf:"bytes,7,opt,name=ack,proto3" json:"ack,omitempty"` + Ack *types.Acknowledgement `protobuf:"bytes,6,opt,name=ack,proto3" json:"ack,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -98,13 +96,6 @@ func (m *Failure) GetId() uint64 { return 0 } -func (m *Failure) GetSequenceId() uint64 { - if m != nil { - return m.SequenceId - } - return 0 -} - func (m *Failure) GetAckType() string { if m != nil { return m.AckType @@ -180,9 +171,92 @@ func (m *GenesisState) GetFailuresList() []Failure { return nil } +// Deprecated. Used only for migration purposes. +type OldFailure struct { + // ChannelId + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + // Address of the failed contract + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // id of the failure under specific address + Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` + // ACK id to restore + AckId uint64 `protobuf:"varint,4,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` + // Acknowledgement type + AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` +} + +func (m *OldFailure) Reset() { *m = OldFailure{} } +func (m *OldFailure) String() string { return proto.CompactTextString(m) } +func (*OldFailure) ProtoMessage() {} +func (*OldFailure) Descriptor() ([]byte, []int) { + return fileDescriptor_cf4a1534315a7490, []int{2} +} +func (m *OldFailure) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OldFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OldFailure.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 *OldFailure) XXX_Merge(src proto.Message) { + xxx_messageInfo_OldFailure.Merge(m, src) +} +func (m *OldFailure) XXX_Size() int { + return m.Size() +} +func (m *OldFailure) XXX_DiscardUnknown() { + xxx_messageInfo_OldFailure.DiscardUnknown(m) +} + +var xxx_messageInfo_OldFailure proto.InternalMessageInfo + +func (m *OldFailure) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +func (m *OldFailure) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *OldFailure) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *OldFailure) GetAckId() uint64 { + if m != nil { + return m.AckId + } + return 0 +} + +func (m *OldFailure) GetAckType() string { + if m != nil { + return m.AckType + } + return "" +} + func init() { proto.RegisterType((*Failure)(nil), "neutron.contractmanager.Failure") proto.RegisterType((*GenesisState)(nil), "neutron.contractmanager.GenesisState") + proto.RegisterType((*OldFailure)(nil), "neutron.contractmanager.OldFailure") } func init() { @@ -190,34 +264,34 @@ func init() { } var fileDescriptor_cf4a1534315a7490 = []byte{ - // 417 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x31, 0x6f, 0x13, 0x31, - 0x14, 0xc7, 0xe3, 0x24, 0x24, 0xd4, 0x29, 0x0c, 0x16, 0x12, 0x47, 0x10, 0x97, 0xa3, 0x2a, 0x52, - 0x16, 0x6c, 0x35, 0x95, 0xba, 0x31, 0xd0, 0x01, 0x54, 0xc1, 0x10, 0x1d, 0x4c, 0x2c, 0x91, 0x63, - 0x3f, 0xae, 0xd6, 0x25, 0xf6, 0x61, 0x3b, 0x85, 0x7e, 0x0b, 0x66, 0x3e, 0x51, 0xc7, 0x8e, 0x4c, - 0x08, 0x25, 0x1f, 0x83, 0x05, 0x9d, 0xcf, 0xb7, 0x40, 0xb3, 0xbd, 0x7b, 0xef, 0xf7, 0xff, 0xdf, - 0xbd, 0xff, 0x3b, 0xfc, 0x42, 0xc3, 0xc6, 0x5b, 0xa3, 0x99, 0x30, 0xda, 0x5b, 0x2e, 0xfc, 0x9a, - 0x6b, 0x5e, 0x80, 0x65, 0x05, 0x68, 0x70, 0xca, 0xd1, 0xca, 0x1a, 0x6f, 0xc8, 0xe3, 0x88, 0xd1, - 0x7f, 0xb0, 0xf1, 0xa3, 0xc2, 0x14, 0x26, 0x30, 0xac, 0xae, 0x1a, 0x7c, 0x7c, 0xbc, 0xcf, 0xb5, - 0xe2, 0x96, 0xaf, 0xa3, 0xe9, 0xf8, 0xb9, 0x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c, 0x7f, 0xf3, 0x6b, - 0xd2, 0xc9, 0xa3, 0x88, 0xbc, 0xc3, 0x0f, 0x3e, 0x37, 0x61, 0xba, 0xc5, 0x4a, 0x39, 0x9f, 0x74, - 0xb3, 0xde, 0x74, 0x34, 0xcb, 0xf6, 0xba, 0xc4, 0xe8, 0xa3, 0xcd, 0x61, 0x2b, 0x7e, 0xaf, 0x9c, - 0x3f, 0x9f, 0xdf, 0x6c, 0x53, 0x74, 0xbb, 0x4d, 0xd1, 0xef, 0x6d, 0x8a, 0xbe, 0xef, 0xd2, 0xce, - 0xed, 0x2e, 0xed, 0xfc, 0xdc, 0xa5, 0x9d, 0x4f, 0x67, 0x85, 0xf2, 0x97, 0x9b, 0x25, 0x15, 0x66, - 0xcd, 0xa2, 0xf3, 0x4b, 0x63, 0x8b, 0xb6, 0x66, 0xdf, 0xfe, 0xfb, 0x2d, 0xea, 0xa4, 0xdd, 0x72, - 0x10, 0x6e, 0x7e, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4c, 0x8c, 0x41, 0x94, 0x02, 0x00, - 0x00, + // 431 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x3f, 0x6f, 0x13, 0x31, + 0x18, 0xc6, 0xe3, 0xfc, 0x2b, 0x75, 0x0a, 0x83, 0x05, 0xc2, 0x04, 0x71, 0x3d, 0xa2, 0x22, 0x65, + 0xc1, 0x56, 0x53, 0xa9, 0x1b, 0x03, 0x1d, 0x40, 0x15, 0x48, 0x44, 0x07, 0x13, 0x4b, 0xe4, 0xd8, + 0xe6, 0x6a, 0xdd, 0xc5, 0x3e, 0xd9, 0x4e, 0xa1, 0x9f, 0x80, 0x95, 0x99, 0x4f, 0xd4, 0xb1, 0x23, + 0x62, 0x40, 0x28, 0xf9, 0x22, 0xe8, 0x1c, 0xdf, 0x10, 0x20, 0x5b, 0xb7, 0xf7, 0x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 0xaf, 0xe2, 0x25, 0x2f, 0xb4, 0xf9, 0x5c, 0x4a, 0x91, 0xcb, 0x85, 0xd4, 0x3e, + 0xab, 0x05, 0xa3, 0xef, 0x00, 0x1e, 0xbc, 0xde, 0xc4, 0xfc, 0xde, 0x33, 0x2f, 0xd1, 0x8b, 0xfa, + 0xf6, 0x3a, 0xa0, 0xd0, 0xdd, 0x60, 0x72, 0x48, 0x76, 0xc4, 0x4e, 0xa6, 0x01, 0x3b, 0xeb, 0x5e, + 0xff, 0x3a, 0x6c, 0x65, 0x51, 0x84, 0xde, 0xc0, 0xbb, 0x9f, 0x36, 0x59, 0xb9, 0x59, 0xa9, 0x9c, + 0xc7, 0xed, 0xb4, 0x33, 0x1e, 0x4c, 0xd2, 0x9d, 0x2e, 0x31, 0xd9, 0x68, 0x73, 0xd0, 0x88, 0xdf, + 0x2a, 0xe7, 0x47, 0x5f, 0x01, 0x84, 0xef, 0x4a, 0x71, 0xeb, 0xe1, 0x3f, 0x80, 0xfd, 0x3a, 0x7c, + 0x25, 0x42, 0xf4, 0xdd, 0xac, 0xc7, 0x78, 0x71, 0xbe, 0x3d, 0x93, 0xde, 0xd6, 0x4c, 0xce, 0xa6, + 0xd7, 0xab, 0x04, 0xdc, 0xac, 0x12, 0xf0, 0x7b, 0x95, 0x80, 0x6f, 0xeb, 0xa4, 0x75, 0xb3, 0x4e, + 0x5a, 0x3f, 0xd6, 0x49, 0xeb, 0xe3, 0x69, 0xae, 0xfc, 0xc5, 0x72, 0x4e, 0xb8, 0x59, 0xd0, 0xd8, + 0xe3, 0x73, 0x63, 0xf3, 0xa6, 0xa6, 0x5f, 0xfe, 0xd9, 0xbf, 0xda, 0xdf, 0xcd, 0xfb, 0x61, 0xb9, + 0x4e, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x84, 0xa9, 0xdf, 0x59, 0xfd, 0x02, 0x00, 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { @@ -250,7 +324,7 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x32 } if m.Packet != nil { { @@ -262,19 +336,14 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(m.AckType) > 0 { i -= len(m.AckType) copy(dAtA[i:], m.AckType) i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckType))) i-- - dAtA[i] = 0x2a - } - if m.SequenceId != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.SequenceId)) - i-- - dAtA[i] = 0x20 + dAtA[i] = 0x22 } if m.Id != 0 { i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) @@ -345,6 +414,60 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *OldFailure) 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 *OldFailure) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OldFailure) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AckType) > 0 { + i -= len(m.AckType) + copy(dAtA[i:], m.AckType) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckType))) + i-- + dAtA[i] = 0x2a + } + if m.AckId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.AckId)) + i-- + dAtA[i] = 0x20 + } + if m.Id != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { offset -= sovGenesis(v) base := offset @@ -373,9 +496,6 @@ func (m *Failure) Size() (n int) { if m.Id != 0 { n += 1 + sovGenesis(uint64(m.Id)) } - if m.SequenceId != 0 { - n += 1 + sovGenesis(uint64(m.SequenceId)) - } l = len(m.AckType) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) @@ -408,6 +528,33 @@ func (m *GenesisState) Size() (n int) { return n } +func (m *OldFailure) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Id != 0 { + n += 1 + sovGenesis(uint64(m.Id)) + } + if m.AckId != 0 { + n += 1 + sovGenesis(uint64(m.AckId)) + } + l = len(m.AckType) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -527,25 +674,6 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } } case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SequenceId", wireType) - } - m.SequenceId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SequenceId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) } @@ -577,7 +705,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } m.AckType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } @@ -613,7 +741,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) } @@ -787,6 +915,190 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } +func (m *OldFailure) 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 ErrIntOverflowGenesis + } + 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: OldFailure: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OldFailure: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AckId", wireType) + } + m.AckId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AckId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AckType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index f8eb2e9d7..642f5da72 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -63,6 +63,9 @@ func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), // and process failed Sudo call if gasMeterIsLimited { gasLeft := gasMeter.Limit() - gasMeter.GasConsumed() + // NOTE: DANGER: remove this. But we will enforce limit, only that it's through param values: + //(https://www.notion.so/hadron/Gas-Errors-Interchain-Txs-2b2f1caacdcd4981950641e0996cac27?pvs=4#73af69a69b8249ae9d2222afcc42b968) + //gasLeft := uint64(100_000) var newLimit uint64 if gasLeft < GasReserve { @@ -72,8 +75,8 @@ func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), } gasMeter = sdk.NewGasMeter(newLimit) + im.keeper.Logger(ctx).Debug("New Gas limit", "gasLimit", newLimit) } - cacheCtx = cacheCtx.WithGasMeter(gasMeter) return cacheCtx, writeFn, gasMeter @@ -95,6 +98,9 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } + // gasMeter := sdk.NewGasMeter(100_000) + // ctx = ctx.WithGasMeter(gasMeter) + cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack", &ack) From 1aa5d973a4ca9460ae3f86271787d6d0ac77bbab Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 16 Aug 2023 19:02:42 +0400 Subject: [PATCH 038/307] plugin errors fix --- go.mod | 2 +- go.sum | 4 ++-- wasmbinding/message_plugin.go | 20 +++++++++++++++++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 8f4fca84d..a0b8f389d 100644 --- a/go.mod +++ b/go.mod @@ -182,7 +182,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230815120514-97237f8409d1 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230816141742-5c3c1b7b898e github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 504b3d374..22b367afd 100644 --- a/go.sum +++ b/go.sum @@ -927,8 +927,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230815120514-97237f8409d1 h1:beWeivCs5O4uMun+Hc+wM68ZpZTmy5o2Q5JtdbqfhoE= -github.com/neutron-org/admin-module v0.0.0-20230815120514-97237f8409d1/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230816141742-5c3c1b7b898e h1:VM84Gg+L8etB2RCyLaR/191Z9/HwsGpaJO1bFJoIUUg= +github.com/neutron-org/admin-module v0.0.0-20230816141742-5c3c1b7b898e/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5 h1:2YQaqP5W3F+5VH0IAA7m8OHjkwONxQDqXUwo5tzKdDU= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230705143547-22c391d461d5/go.mod h1:l699csQZeRKYqF8R9JoYoQ6E0j4PfDM3Ln7EawtUwJE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 32aae0ec9..a51b8c53d 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -297,8 +297,16 @@ func (m *CustomMessenger) submitTx(ctx sdk.Context, contractAddr sdk.AccAddress, func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) ([]sdk.Event, [][]byte, error) { var data []byte - if submitAdminProposal.AdminProposal.ParamChangeProposal != nil || submitAdminProposal.AdminProposal.UpgradeProposal != nil || submitAdminProposal.AdminProposal.CancelSoftwareUpgradeProposal != nil { + if submitAdminProposal.AdminProposal.ParamChangeProposal != nil || submitAdminProposal.AdminProposal.UpgradeProposal != nil || submitAdminProposal.AdminProposal.ClientUpdateProposal != nil { resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, submitAdminProposal) + if err != nil { + ctx.Logger().Debug("performSubmitAdminProposalLegacy: failed to submitAdminProposal", + "from_address", contractAddr.String(), + "creator", contractAddr.String(), + "error", err, + ) + return nil, nil, errors.Wrap(err, "failed to submit admin proposal legacy") + } data, err = json.Marshal(resp) if err != nil { ctx.Logger().Error("json.Marshal: failed to marshal submitAdminProposalLegacy response to JSON", @@ -308,6 +316,11 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. ) return nil, nil, errors.Wrap(err, "marshal json failed") } + + ctx.Logger().Debug("submit proposal legacy submitted", + "from_address", contractAddr.String(), + "creator", contractAddr.String(), + ) return nil, [][]byte{data}, nil } @@ -397,6 +410,11 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont return nil, errors.Wrap(err, "failed to submit proposal") } + ctx.Logger().Debug("submit proposal legacy processed in msg server", + "from_address", contractAddr.String(), + "creator", contractAddr.String(), + ) + return response, nil } From 7e705e153b6e72c20182fbae8d1830aa8175cb4e Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 17 Aug 2023 13:09:05 +0400 Subject: [PATCH 039/307] finish tests; change AddContractFailure to receive pointer of packet --- .../interchaintxs/types/expected_keepers.go | 2 +- .../mocks/transfer/types/expected_keepers.go | 2 +- wasmbinding/bindings/query.go | 1 - wasmbinding/test/custom_message_test.go | 6 +- x/contractmanager/genesis.go | 2 +- x/contractmanager/keeper/failure.go | 4 +- x/contractmanager/keeper/failure_test.go | 139 ++++++++++++++++-- x/interchaintxs/keeper/ibc_handlers.go | 6 +- x/interchaintxs/keeper/ibc_handlers_test.go | 12 +- x/interchaintxs/types/expected_keepers.go | 2 +- x/transfer/ibc_handlers.go | 6 +- x/transfer/ibc_handlers_test.go | 22 +-- x/transfer/types/expected_keepers.go | 2 +- 13 files changed, 157 insertions(+), 49 deletions(-) diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 389c62b35..391c209d8 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -116,7 +116,7 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types3.Packet, address, ackType string, ack *types3.Acknowledgement) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet *types3.Packet, address, ackType string, ack *types3.Acknowledgement) { m.ctrl.T.Helper() m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ack) } diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index b353586a0..cbadbc2c2 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -38,7 +38,7 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet types1.Packet, address, ackType string, ack *types1.Acknowledgement) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet *types1.Packet, address, ackType string, ack *types1.Acknowledgement) { m.ctrl.T.Helper() m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ack) } diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index aa0c2d314..d4593b384 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -2,7 +2,6 @@ package bindings import ( "encoding/json" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index a2eaa68ac..574544761 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -608,7 +608,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { Response: &ibcchanneltypes.Acknowledgement_Result{Result: []byte("Result")}, } failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, suite.contractAddress.String(), "ack", &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), "ack", &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ @@ -641,7 +641,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, } failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, suite.contractAddress.String(), "timeout", &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), "timeout", &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ @@ -674,7 +674,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract( Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, } failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, packet, testutil.TestOwnerAddress, "timeout", &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, testutil.TestOwnerAddress, "timeout", &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ diff --git a/x/contractmanager/genesis.go b/x/contractmanager/genesis.go index f0ed5a80b..35604dfe4 100644 --- a/x/contractmanager/genesis.go +++ b/x/contractmanager/genesis.go @@ -11,7 +11,7 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // Set all the failure for _, elem := range genState.FailuresList { - k.AddContractFailure(ctx, *elem.Packet, elem.Address, elem.AckType, elem.Ack) + k.AddContractFailure(ctx, elem.Packet, elem.Address, elem.AckType, elem.Ack) } // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 056811fca..d5486dba2 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -11,11 +11,11 @@ import ( ) // AddContractFailure adds a specific failure to the store using address as the key -func (k Keeper) AddContractFailure(ctx sdk.Context, packet ibcchanneltypes.Packet, address, ackType string, ack *ibcchanneltypes.Acknowledgement) { +func (k Keeper) AddContractFailure(ctx sdk.Context, packet *ibcchanneltypes.Packet, address, ackType string, ack *ibcchanneltypes.Acknowledgement) { failure := types.Failure{ ChannelId: packet.SourceChannel, Address: address, - Packet: &packet, + Packet: packet, AckType: ackType, Ack: ack, } diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index b1bb7504b..76e93475e 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "crypto/rand" "encoding/json" + "fmt" "strconv" "testing" @@ -45,7 +46,7 @@ func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures items[i][c].Id = uint64(c) items[i][c].Packet = &p items[i][c].Ack = nil - keeper.AddContractFailure(ctx, p, items[i][c].Address, "", nil) + keeper.AddContractFailure(ctx, &p, items[i][c].Address, "", nil) } } return items @@ -83,7 +84,7 @@ func TestAddGetFailure(t *testing.T) { contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) k, ctx := keepertest.ContractManagerKeeper(t, nil) failureID := k.GetNextFailureIDKey(ctx, contractAddress.String()) - k.AddContractFailure(ctx, channeltypes.Packet{}, contractAddress.String(), "ack", &channeltypes.Acknowledgement{}) + k.AddContractFailure(ctx, &channeltypes.Packet{}, contractAddress.String(), "ack", &channeltypes.Acknowledgement{}) failure, err := k.GetFailure(ctx, contractAddress, failureID) require.NoError(t, err) require.Equal(t, failureID, failure.Id) @@ -105,7 +106,7 @@ func TestResubmitFailure(t *testing.T) { wk := mock_types.NewMockWasmKeeper(ctrl) k, ctx := keepertest.ContractManagerKeeper(t, wk) - // add failure + // add ack failure contractAddr := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) data := []byte("Result") packet := channeltypes.Packet{} @@ -113,31 +114,139 @@ func TestResubmitFailure(t *testing.T) { Response: &channeltypes.Acknowledgement_Result{Result: data}, } failureID := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, packet, contractAddr.String(), "ack", &ack) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) - // successful resubmit with ack and ack = response - x := types.MessageResponse{} - x.Response.Data = data - x.Response.Request = channeltypes.Packet{} - msg, err := json.Marshal(x) + // success response + xSuc := types.MessageResponse{} + xSuc.Response.Data = data + xSuc.Response.Request = channeltypes.Packet{} + msgSuc, err := json.Marshal(xSuc) + require.NoError(t, err) + // error response + xErr := types.MessageError{} + xErr.Error.Request = channeltypes.Packet{} + xErr.Error.Details = "error details" + msgErr, err := json.Marshal(xErr) + require.NoError(t, err) + // timeout response + xTimeout := types.MessageTimeout{} + xTimeout.Timeout.Request = channeltypes.Packet{} + msgTimeout, err := json.Marshal(xTimeout) require.NoError(t, err) + // case: successful resubmit with ack and ack = response wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) - wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msg) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return([]byte{}, nil) failure, err := k.GetFailure(ctx, contractAddr, failureID) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure) require.NoError(t, err) + // failure should be deleted + _, err = k.GetFailure(ctx, contractAddr, failureID) + require.ErrorContains(t, err, "key not found") + + // case: failed resubmit with ack and ack = response + failureID2 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + + wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to Sudo")) + + failure2, err := k.GetFailure(ctx, contractAddr, failureID2) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure2) + require.ErrorContains(t, err, "cannot resubmit failure ack response") + // failure is still there + failureAfter2, err := k.GetFailure(ctx, contractAddr, failureID2) + require.NoError(t, err) + require.Equal(t, failureAfter2.Id, failure2.Id) + + // case: successful resubmit with ack and ack = error + // add error failure + ack = channeltypes.Acknowledgement{ + Response: &channeltypes.Acknowledgement_Error{Error: "not able to do IBC tx"}, + } + failureID3 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + + wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return([]byte{}, nil) + + failure3, err := k.GetFailure(ctx, contractAddr, failureID3) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure3) + require.NoError(t, err) + // failure should be deleted + _, err = k.GetFailure(ctx, contractAddr, failureID3) + require.ErrorContains(t, err, "key not found") + + // case: failed resubmit with ack and ack = error + failureID4 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + + wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to Sudo")) + + failure4, err := k.GetFailure(ctx, contractAddr, failureID4) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure4) + require.ErrorContains(t, err, "cannot resubmit failure ack response") + // failure is still there + failureAfter4, err := k.GetFailure(ctx, contractAddr, failureID4) + require.NoError(t, err) + require.Equal(t, failureAfter4.Id, failure4.Id) + + // case: successful resubmit with timeout + // add error failure + ack = channeltypes.Acknowledgement{ + Response: &channeltypes.Acknowledgement_Error{Error: "not able to do IBC tx"}, + } + failureID5 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) + + wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return([]byte{}, nil) + + failure5, err := k.GetFailure(ctx, contractAddr, failureID5) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure5) + require.NoError(t, err) + // failure should be deleted + _, err = k.GetFailure(ctx, contractAddr, failureID5) + require.ErrorContains(t, err, "key not found") - // failed resubmit with ack and ack = response + // case: failed resubmit with timeout + failureID6 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) - // successful resubmit with ack and ack = error - // failed resubmit with ack and ack = error + wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return(nil, fmt.Errorf("failed to Sudo")) - // successful resubmit with timeout - // failed resubmit with timeout + failure6, err := k.GetFailure(ctx, contractAddr, failureID6) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure6) + require.ErrorContains(t, err, "cannot resubmit failure ack response") + // failure is still there + failureAfter6, err := k.GetFailure(ctx, contractAddr, failureID6) + require.NoError(t, err) + require.Equal(t, failureAfter6.Id, failure6.Id) // no Failure.Ack field found for ackType = 'ack' + failureID7 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", nil) + + failure7, err := k.GetFailure(ctx, contractAddr, failureID7) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure7) + require.ErrorContains(t, err, "cannot resubmit failure without acknowledgement") + // no Failure.Packet found + failureID8 := k.GetNextFailureIDKey(ctx, contractAddr.String()) + k.AddContractFailure(ctx, nil, contractAddr.String(), "ack", nil) + + failure8, err := k.GetFailure(ctx, contractAddr, failureID8) + require.NoError(t, err) + err = k.ResubmitFailure(ctx, contractAddr, failure8) + require.ErrorContains(t, err, "cannot resubmit failure without packet info") } diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index d0a48f1a7..9824ca86d 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -36,7 +36,7 @@ func (k *Keeper) outOfGasRecovery( } k.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String()) - k.contractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureAckType, ack) + k.contractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), failureAckType, ack) } } @@ -110,7 +110,7 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "ack", &ack) + k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), "ack", &ack) k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -142,7 +142,7 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, packet, icaOwner.GetContract().String(), "timeout", nil) + k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), "timeout", nil) k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index ff0a245a7..06dbe0e15 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -71,7 +71,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &resACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &resACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -84,7 +84,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -109,7 +109,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -144,7 +144,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, &p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test @@ -194,7 +194,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -207,7 +207,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 6ef2d2b65..10261381e 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -26,7 +26,7 @@ type BankKeeper interface { type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) + AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 642f5da72..fddd135a0 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -35,7 +35,7 @@ func (im IBCModule) outOfGasRecovery( } im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) - im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), failureType, ack) + im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), failureType, ack) // FIXME: add distribution call } } @@ -114,7 +114,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "ack", &ack) + im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), "ack", &ack) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -151,7 +151,7 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, packet, senderAddress.String(), "timeout", nil) + im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), "timeout", nil) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index a0f149de6..7d3553bc6 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -100,7 +100,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &resACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -113,7 +113,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &resACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) @@ -127,7 +127,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -141,7 +141,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -179,7 +179,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -193,7 +193,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) @@ -248,7 +248,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, &p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test @@ -342,7 +342,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -354,7 +354,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) @@ -368,7 +368,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -381,7 +381,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) // FIXME: make DistributeTimeoutFee during out of gas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index f66386941..d2051ec76 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -11,7 +11,7 @@ import ( // ContractManagerKeeper defines the expected interface needed to add ack information about sudo failure. type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) + AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) From a09943391ae53f495ed4c0f266bd31473ca0fd4f Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 17 Aug 2023 13:36:56 +0400 Subject: [PATCH 040/307] remove channel_id from failure (duplicate); fix tests --- app/upgrades/nextupgrade/upgrades.go | 11 +- app/upgrades/nextupgrade/upgrades_test.go | 58 ++++----- proto/neutron/contractmanager/genesis.proto | 12 +- x/contractmanager/genesis_test.go | 2 + x/contractmanager/keeper/failure.go | 12 +- x/contractmanager/keeper/failure_test.go | 29 ++--- x/contractmanager/types/genesis.pb.go | 135 ++++++-------------- 7 files changed, 98 insertions(+), 161 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index cdb0c372f..488caa88c 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -36,12 +36,11 @@ func MigrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Co store := ctx.KVStore(storeKeys.GetKey(contractmanagertypes.StoreKey)) for _, oldItem := range oldFailuresList { failure := contractmanagertypes.Failure{ - ChannelId: oldItem.ChannelId, - Address: oldItem.Address, - Id: oldItem.Id, - AckType: oldItem.AckType, - Packet: nil, - Ack: nil, + Address: oldItem.Address, + Id: oldItem.Id, + AckType: oldItem.AckType, + Packet: nil, + Ack: nil, } bz := cdc.MustMarshal(&failure) store.Set(contractmanagertypes.GetFailureKey(failure.Address, failure.Id), bz) diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index d4665508f..f8e244de9 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,7 +1,6 @@ package nextupgrade_test import ( - "fmt" "testing" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" @@ -73,7 +72,7 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { addr = addressTwo } failure := contractmanagertypes.OldFailure{ - ChannelId: fmt.Sprintf("channel-%d", i), + ChannelId: "channel-0", Address: addr, Id: i % 2, AckType: "ack", @@ -92,36 +91,32 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { // check elements migrated properly suite.Require().ElementsMatch(app.ContractManagerKeeper.GetAllFailures(ctx), []contractmanagertypes.Failure{ { - ChannelId: "channel-0", - Address: addressOne, - Id: 0, - AckType: "ack", - Packet: nil, - Ack: nil, + Address: addressOne, + Id: 0, + AckType: "ack", + Packet: nil, + Ack: nil, }, { - ChannelId: "channel-1", - Address: addressOne, - Id: 1, - AckType: "ack", - Packet: nil, - Ack: nil, + Address: addressOne, + Id: 1, + AckType: "ack", + Packet: nil, + Ack: nil, }, { - ChannelId: "channel-2", - Address: addressTwo, - Id: 0, - AckType: "ack", - Packet: nil, - Ack: nil, + Address: addressTwo, + Id: 0, + AckType: "ack", + Packet: nil, + Ack: nil, }, { - ChannelId: "channel-3", - Address: addressTwo, - Id: 1, - AckType: "ack", - Packet: nil, - Ack: nil, + Address: addressTwo, + Id: 1, + AckType: "ack", + Packet: nil, + Ack: nil, }, }) @@ -129,12 +124,11 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { failure, err := app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 1) suite.Require().NoError(err) suite.Require().Equal(failure, &contractmanagertypes.Failure{ - ChannelId: "channel-3", - Address: addressTwo, - Id: 1, - AckType: "ack", - Packet: nil, - Ack: nil, + Address: addressTwo, + Id: 1, + AckType: "ack", + Packet: nil, + Ack: nil, }) // non-existent returns error diff --git a/proto/neutron/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto index 1f27e02ce..a2960566c 100644 --- a/proto/neutron/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -12,18 +12,16 @@ option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; // replay ACK in case of requirement. // Note that Failure means that sudo handler to cosmwasm contract failed for some reason message Failure { - // ChannelId - string channel_id = 1; // Address of the failed contract - string address = 2; + string address = 1; // Id of the failure under specific address - uint64 id = 3; + uint64 id = 2; // Acknowledgement type - string ack_type = 4; + string ack_type = 3; // IBC Packet - ibc.core.channel.v1.Packet packet = 5; + ibc.core.channel.v1.Packet packet = 4; // Acknowledgement - ibc.core.channel.v1.Acknowledgement ack = 6; + ibc.core.channel.v1.Acknowledgement ack = 5; } // GenesisState defines the contractmanager module's genesis state. diff --git a/x/contractmanager/genesis_test.go b/x/contractmanager/genesis_test.go index ffbb0477e..76899b739 100644 --- a/x/contractmanager/genesis_test.go +++ b/x/contractmanager/genesis_test.go @@ -21,6 +21,7 @@ func TestGenesis(t *testing.T) { { Address: "address1", Id: 1, + AckType: "ack", Packet: &channeltypes.Packet{ Sequence: 1, }, @@ -28,6 +29,7 @@ func TestGenesis(t *testing.T) { { Address: "address1", Id: 2, + AckType: "timeout", Packet: &channeltypes.Packet{ Sequence: 2, }, diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index d5486dba2..d0ee9ebd5 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -13,17 +13,15 @@ import ( // AddContractFailure adds a specific failure to the store using address as the key func (k Keeper) AddContractFailure(ctx sdk.Context, packet *ibcchanneltypes.Packet, address, ackType string, ack *ibcchanneltypes.Acknowledgement) { failure := types.Failure{ - ChannelId: packet.SourceChannel, - Address: address, - Packet: packet, - AckType: ackType, - Ack: ack, + Address: address, + AckType: ackType, + Packet: packet, + Ack: ack, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) + failure.Id = nextFailureID store := ctx.KVStore(k.storeKey) - - failure.Id = nextFailureID bz := k.cdc.MustMarshal(&failure) store.Set(types.GetFailureKey(failure.GetAddress(), nextFailureID), bz) } diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 76e93475e..d0f8abe75 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -38,9 +38,8 @@ func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures for c := range items[i] { p := channeltypes.Packet{ - Sequence: 0, - SourcePort: "port-n", - SourceChannel: items[i][c].ChannelId, + Sequence: 0, + SourcePort: "port-n", } items[i][c].Address = acc.String() items[i][c].Id = uint64(c) @@ -106,13 +105,17 @@ func TestResubmitFailure(t *testing.T) { wk := mock_types.NewMockWasmKeeper(ctrl) k, ctx := keepertest.ContractManagerKeeper(t, wk) - // add ack failure contractAddr := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) data := []byte("Result") - packet := channeltypes.Packet{} ack := channeltypes.Acknowledgement{ Response: &channeltypes.Acknowledgement_Result{Result: data}, } + ackError := channeltypes.Acknowledgement{ + Response: &channeltypes.Acknowledgement_Error{Error: "not able to do IBC tx"}, + } + + // add ack failure + packet := channeltypes.Packet{} failureID := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) @@ -125,7 +128,7 @@ func TestResubmitFailure(t *testing.T) { // error response xErr := types.MessageError{} xErr.Error.Request = channeltypes.Packet{} - xErr.Error.Details = "error details" + xErr.Error.Details = "not able to do IBC tx" msgErr, err := json.Marshal(xErr) require.NoError(t, err) // timeout response @@ -164,11 +167,8 @@ func TestResubmitFailure(t *testing.T) { // case: successful resubmit with ack and ack = error // add error failure - ack = channeltypes.Acknowledgement{ - Response: &channeltypes.Acknowledgement_Error{Error: "not able to do IBC tx"}, - } failureID3 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ackError) wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return([]byte{}, nil) @@ -183,7 +183,7 @@ func TestResubmitFailure(t *testing.T) { // case: failed resubmit with ack and ack = error failureID4 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ackError) wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to Sudo")) @@ -191,7 +191,7 @@ func TestResubmitFailure(t *testing.T) { failure4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure4) - require.ErrorContains(t, err, "cannot resubmit failure ack response") + require.ErrorContains(t, err, "cannot resubmit failure ack error") // failure is still there failureAfter4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) @@ -199,9 +199,6 @@ func TestResubmitFailure(t *testing.T) { // case: successful resubmit with timeout // add error failure - ack = channeltypes.Acknowledgement{ - Response: &channeltypes.Acknowledgement_Error{Error: "not able to do IBC tx"}, - } failureID5 := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) @@ -226,7 +223,7 @@ func TestResubmitFailure(t *testing.T) { failure6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure6) - require.ErrorContains(t, err, "cannot resubmit failure ack response") + require.ErrorContains(t, err, "cannot resubmit failure ack timeout") // failure is still there failureAfter6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) diff --git a/x/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index 7787a4683..29787641f 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -28,18 +28,16 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // replay ACK in case of requirement. // Note that Failure means that sudo handler to cosmwasm contract failed for some reason type Failure struct { - // ChannelId - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Address of the failed contract - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Id of the failure under specific address - Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Acknowledgement type - AckType string `protobuf:"bytes,4,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` + AckType string `protobuf:"bytes,3,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` // IBC Packet - Packet *types.Packet `protobuf:"bytes,5,opt,name=packet,proto3" json:"packet,omitempty"` + Packet *types.Packet `protobuf:"bytes,4,opt,name=packet,proto3" json:"packet,omitempty"` // Acknowledgement - Ack *types.Acknowledgement `protobuf:"bytes,6,opt,name=ack,proto3" json:"ack,omitempty"` + Ack *types.Acknowledgement `protobuf:"bytes,5,opt,name=ack,proto3" json:"ack,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -75,13 +73,6 @@ func (m *Failure) XXX_DiscardUnknown() { var xxx_messageInfo_Failure proto.InternalMessageInfo -func (m *Failure) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - func (m *Failure) GetAddress() string { if m != nil { return m.Address @@ -264,34 +255,35 @@ func init() { } var fileDescriptor_cf4a1534315a7490 = []byte{ - // 431 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x3f, 0x6f, 0x13, 0x31, - 0x18, 0xc6, 0xe3, 0xfc, 0x2b, 0x75, 0x0a, 0x83, 0x05, 0xc2, 0x04, 0x71, 0x3d, 0xa2, 0x22, 0x65, - 0xc1, 0x56, 0x53, 0xa9, 0x1b, 0x03, 0x1d, 0x40, 0x15, 0x48, 0x44, 0x07, 0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 0x5f, 0xfe, 0xd9, 0xbf, 0xda, 0xdf, 0xcd, 0xfb, 0x61, 0xb9, - 0x4e, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x84, 0xa9, 0xdf, 0x59, 0xfd, 0x02, 0x00, 0x00, + // 437 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6e, 0xd3, 0x30, + 0x1c, 0xc7, 0xeb, 0xf4, 0xcf, 0x98, 0x3b, 0x38, 0x58, 0x20, 0x42, 0x11, 0x59, 0xa8, 0x86, 0xd4, + 0x0b, 0xb6, 0xd6, 0x49, 0xbb, 0x71, 0x60, 0x07, 0xd0, 0x04, 0x12, 0x55, 0xe0, 0xc4, 0xa5, 0x72, + 0x6c, 0x93, 0x59, 0x49, 0xec, 0xc8, 0x76, 0x07, 0x7b, 0x02, 0xae, 0x9c, 0x79, 0x15, 0x5e, 0x60, + 0xc7, 0x1d, 0x39, 0x21, 0xd4, 0xbe, 0x08, 0x4a, 0xe2, 0x20, 0xc6, 0xd6, 0xdb, 0xaf, 0xd5, 0xe7, + 0xfb, 0x75, 0x7e, 0x1f, 0x1b, 0x3e, 0x53, 0x62, 0xe5, 0x8c, 0x56, 0x84, 0x69, 0xe5, 0x0c, 0x65, + 0xae, 0xa4, 0x8a, 0x66, 0xc2, 0x90, 0x4c, 0x28, 0x61, 0xa5, 0xc5, 0x95, 0xd1, 0x4e, 0xa3, 0x87, + 0x1e, 0xc3, 0xff, 0x61, 0x93, 0xfb, 0x99, 0xce, 0x74, 0xc3, 0x90, 0x7a, 0x6a, 0xf1, 0xc9, 0xc1, + 0xb6, 0xd6, 0x8a, 0x1a, 0x5a, 0xfa, 0xd2, 0xc9, 0x53, 0x99, 0x32, 0xc2, 0xb4, 0x11, 0x84, 0x9d, + 0x51, 0xa5, 0x44, 0x41, 0xce, 0x0f, 0xbb, 0xb1, 0x45, 0xa6, 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x96, 0x92, 0x7b, 0xc1, 0xbb, 0xfe, 0x9f, 0x53, 0xfe, 0xaf, 0xfc, 0xe0, 0x36, 0xf9, 0xfd, 0xbf, + 0xf2, 0x1f, 0xc0, 0x51, 0x2d, 0x5f, 0xf2, 0xc6, 0xf0, 0x20, 0x19, 0x52, 0x96, 0x9f, 0x5e, 0xbf, + 0x93, 0xe1, 0xb5, 0x3b, 0x39, 0x59, 0x5c, 0xae, 0x23, 0x70, 0xb5, 0x8e, 0xc0, 0xef, 0x75, 0x04, + 0xbe, 0x6d, 0xa2, 0xde, 0xd5, 0x26, 0xea, 0xfd, 0xdc, 0x44, 0xbd, 0x8f, 0xc7, 0x99, 0x74, 0x67, + 0xab, 0x14, 0x33, 0x5d, 0x12, 0xbf, 0xe3, 0x73, 0x6d, 0xb2, 0x6e, 0x26, 0x5f, 0x6e, 0x3c, 0xb0, + 0xba, 0xdf, 0xa6, 0xa3, 0xe6, 0xf5, 0x1c, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x59, 0xd9, 0x03, + 0xb9, 0xde, 0x02, 0x00, 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { @@ -324,7 +316,7 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if m.Packet != nil { { @@ -336,32 +328,25 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } if len(m.AckType) > 0 { i -= len(m.AckType) copy(dAtA[i:], m.AckType) i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckType))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if m.Id != 0 { i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x10 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) i-- - dAtA[i] = 0x12 - } - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.ChannelId))) - i-- dAtA[i] = 0xa } return len(dAtA) - i, nil @@ -485,10 +470,6 @@ func (m *Failure) Size() (n int) { } var l int _ = l - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } l = len(m.Address) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) @@ -591,38 +572,6 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } @@ -654,7 +603,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } @@ -673,7 +622,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { break } } - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) } @@ -705,7 +654,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } m.AckType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } @@ -741,7 +690,7 @@ func (m *Failure) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) } From 1f61b01ee03134fb7156be4706a4cf9deefd0180 Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 17 Aug 2023 18:57:25 +0400 Subject: [PATCH 041/307] cleanup --- wasmbinding/bindings/msg.go | 1 - wasmbinding/bindings/query.go | 8 ++++---- wasmbinding/test/custom_message_test.go | 8 ++++---- x/contractmanager/keeper/failure_test.go | 2 +- x/transfer/ibc_handlers.go | 6 ------ 5 files changed, 9 insertions(+), 16 deletions(-) diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index fe8b47db9..e79e32d25 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -243,7 +243,6 @@ type MsgExecuteContract struct { } type ResubmitFailure struct { - // TODO FailureId uint64 `json:"failure_id"` } diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index aa0c2d314..6bc7c25e7 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -29,13 +29,13 @@ type NeutronQuery struct { // MinIbcFee MinIbcFee *QueryMinIbcFeeRequest `json:"min_ibc_fee,omitempty"` // Token Factory queries - /// Given a subdenom minted by a contract via `NeutronMsg::MintTokens`, - /// returns the full denom as used by `BankMsg::Send`. + // Given a subdenom minted by a contract via `NeutronMsg::MintTokens`, + // returns the full denom as used by `BankMsg::Send`. FullDenom *FullDenom `json:"full_denom,omitempty"` - /// Returns the admin of a denom, if the denom is a Token Factory denom. + // Returns the admin of a denom, if the denom is a Token Factory denom. DenomAdmin *DenomAdmin `json:"denom_admin,omitempty"` // Contractmanager queries - /// Query all failures for address + // Query all failures for address Failures *Failures `json:"failures,omitempty"` } diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 574544761..38f0d3788 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -640,13 +640,13 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { ack := ibcchanneltypes.Acknowledgement{ Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, } - failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) + failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), "timeout", &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ ResubmitFailure: &bindings.ResubmitFailure{ - FailureId: failureId, + FailureId: failureID, }, }) suite.NoError(err) @@ -673,13 +673,13 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract( ack := ibcchanneltypes.Acknowledgement{ Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, } - failureId := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) + failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, testutil.TestOwnerAddress, "timeout", &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ ResubmitFailure: &bindings.ResubmitFailure{ - FailureId: failureId, + FailureId: failureID, }, }) suite.NoError(err) diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index d0f8abe75..4dbb6f2e5 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -67,7 +67,7 @@ func flattenFailures(items [][]types.Failure) []types.Failure { func TestGetAllFailures(t *testing.T) { k, ctx := keepertest.ContractManagerKeeper(t, nil) - items := createNFailure(k, ctx, 1, 1) + items := createNFailure(k, ctx, 10, 4) flattenItems := flattenFailures(items) allFailures := k.GetAllFailures(ctx) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index fddd135a0..e126e2530 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -63,9 +63,6 @@ func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), // and process failed Sudo call if gasMeterIsLimited { gasLeft := gasMeter.Limit() - gasMeter.GasConsumed() - // NOTE: DANGER: remove this. But we will enforce limit, only that it's through param values: - //(https://www.notion.so/hadron/Gas-Errors-Interchain-Txs-2b2f1caacdcd4981950641e0996cac27?pvs=4#73af69a69b8249ae9d2222afcc42b968) - //gasLeft := uint64(100_000) var newLimit uint64 if gasLeft < GasReserve { @@ -98,9 +95,6 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } - // gasMeter := sdk.NewGasMeter(100_000) - // ctx = ctx.WithGasMeter(gasMeter) - cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack", &ack) From bdd37658acc253f6bc152a3c61875dc4bed5ce3c Mon Sep 17 00:00:00 2001 From: nhpd Date: Thu, 17 Aug 2023 21:48:12 +0400 Subject: [PATCH 042/307] refactor migration --- app/upgrades/nextupgrade/upgrades.go | 145 ++++++++++++++------------- app/upgrades/types.go | 6 +- x/contractmanager/keeper/failure.go | 2 - 3 files changed, 81 insertions(+), 72 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 9fed784e7..4424b36df 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -3,10 +3,10 @@ package nextupgrade import ( "errors" - "github.com/cosmos/cosmos-sdk/codec" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" @@ -16,7 +16,83 @@ import ( contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" ) -func MigrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Codec) error { +func CreateUpgradeHandler( + mm *module.Manager, + configurator module.Configurator, + keepers *upgrades.UpgradeKeepers, + storeKeys upgrades.StoreKeys, + cdc codec.Codec, +) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + ctx.Logger().Info("Starting module migrations...") + vm, err := mm.RunMigrations(ctx, configurator, vm) + if err != nil { + return vm, err + } + + err = migrateGlobalFees(ctx, keepers) + if err != nil { + ctx.Logger().Error("failed to migrate GlobalFees", "err", err) + return vm, err + } + + err = migrateFailures(ctx, storeKeys, cdc) + if err != nil { + ctx.Logger().Error("failed to migrate Failures", "err", err) + return vm, err + } + + ctx.Logger().Info("Upgrade complete") + return vm, err + } +} + +func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { + ctx.Logger().Info("Implementing GlobalFee Params...") + + if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMinGasPrices) { + return errors.New("minimum_gas_prices param not found") + } + + if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes) { + return errors.New("bypass_min_fee_msg_types param not found") + } + + if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage) { + return errors.New("max_total_bypass_min_fee_msg_gas_usage param not found") + } + + // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin + // As of June 22nd, 2023 this is + // 0.9untrn,0.026ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,0.25ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349 + requiredGlobalFees := sdk.DecCoins{ + sdk.NewDecCoinFromDec("untrn", sdk.MustNewDecFromStr("0.9")), + sdk.NewDecCoinFromDec("ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", sdk.MustNewDecFromStr("0.026")), + sdk.NewDecCoinFromDec("ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", sdk.MustNewDecFromStr("0.25")), + } + requiredGlobalFees = requiredGlobalFees.Sort() + + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMinGasPrices, &requiredGlobalFees) + + ctx.Logger().Info("Global fees was set successfully") + + defaultBypassFeeMessages := []string{ + sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), + sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), + sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), + } + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes, &defaultBypassFeeMessages) + + ctx.Logger().Info("Bypass min fee msg types was set successfully") + + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, types.DefaultmaxTotalBypassMinFeeMsgGasUsage) + + ctx.Logger().Info("Max total bypass min fee msg gas usage set successfully") + + return nil +} + +func migrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Codec) error { ctx.Logger().Info("Migrating failures...") // fetch list of all old failures @@ -53,68 +129,3 @@ func MigrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Co return nil } - -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, - keepers *upgrades.UpgradeKeepers, - storeKeys upgrades.StoreKeys, - cdc codec.Codec, -) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - ctx.Logger().Info("Starting module migrations...") - vm, err := mm.RunMigrations(ctx, configurator, vm) - if err != nil { - return vm, err - } - - ctx.Logger().Info("Implementing GlobalFee Params...") - - if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMinGasPrices) { - return vm, errors.New("minimum_gas_prices param not found") - } - - if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes) { - return vm, errors.New("bypass_min_fee_msg_types param not found") - } - - if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage) { - return vm, errors.New("max_total_bypass_min_fee_msg_gas_usage param not found") - } - - // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin - // As of June 22nd, 2023 this is - // 0.9untrn,0.026ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,0.25ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349 - requiredGlobalFees := sdk.DecCoins{ - sdk.NewDecCoinFromDec("untrn", sdk.MustNewDecFromStr("0.9")), - sdk.NewDecCoinFromDec("ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", sdk.MustNewDecFromStr("0.026")), - sdk.NewDecCoinFromDec("ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", sdk.MustNewDecFromStr("0.25")), - } - requiredGlobalFees = requiredGlobalFees.Sort() - - keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMinGasPrices, &requiredGlobalFees) - - ctx.Logger().Info("Global fees was set successfully") - - defaultBypassFeeMessages := []string{ - sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), - sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), - sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), - } - keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes, &defaultBypassFeeMessages) - - ctx.Logger().Info("Bypass min fee msg types was set successfully") - - keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, types.DefaultmaxTotalBypassMinFeeMsgGasUsage) - - ctx.Logger().Info("Max total bypass min fee msg gas usage set successfully") - - err = MigrateFailures(ctx, storeKeys, cdc) - if err != nil { - ctx.Logger().Error("failed to migrate failures", "err", err) - } - - ctx.Logger().Info("Upgrade complete") - return vm, err - } -} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 3a6fa1583..91fe12f10 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -2,7 +2,7 @@ package upgrades import ( "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + store "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" @@ -29,7 +29,7 @@ type Upgrade struct { CreateUpgradeHandler func(*module.Manager, module.Configurator, *UpgradeKeepers, StoreKeys, codec.Codec) upgradetypes.UpgradeHandler // Store upgrades, should be used for any new modules introduced, new modules deleted, or store names renamed. - StoreUpgrades storetypes.StoreUpgrades + StoreUpgrades store.StoreUpgrades } type UpgradeKeepers struct { @@ -47,5 +47,5 @@ type UpgradeKeepers struct { } type StoreKeys interface { - GetKey(string) *storetypes.KVStoreKey + GetKey(string) *store.KVStoreKey } diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index d0ee9ebd5..a86b12d1c 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -104,8 +104,6 @@ func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, fa // Cleanup failure since we resubmitted it successfully k.removeFailure(ctx, contractAddr, failure.Id) - // TODO: maybe return some result from sudo call? - return nil } From f267c1d91ffb207b4e5d7435410f9ac7246dacf2 Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 18 Aug 2023 17:31:14 +0400 Subject: [PATCH 043/307] set contractmanager consensus version to 2 --- x/contractmanager/module.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index cfecf7588..0df347b41 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -151,7 +151,9 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { + return 2 +} // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} From 9ba89435a0009db7439d19eee1b08116c5b51eec Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 18 Aug 2023 17:57:28 +0400 Subject: [PATCH 044/307] Migrate rewardDenoms param to include axlr denom --- app/app.go | 17 +++++++------ app/upgrades/nextupgrade/upgrades.go | 30 +++++++++++++++++++++- app/upgrades/nextupgrade/upgrades_test.go | 31 +++++++++++++++++++++++ app/upgrades/types.go | 3 ++- 4 files changed, 71 insertions(+), 10 deletions(-) diff --git a/app/app.go b/app/app.go index ed5fdff20..aaebe1645 100644 --- a/app/app.go +++ b/app/app.go @@ -1025,14 +1025,15 @@ func (app *App) setupUpgradeHandlers() { app.mm, app.configurator, &upgrades.UpgradeKeepers{ - FeeBurnerKeeper: app.FeeBurnerKeeper, - CronKeeper: app.CronKeeper, - IcqKeeper: app.InterchainQueriesKeeper, - TokenFactoryKeeper: app.TokenFactoryKeeper, - SlashingKeeper: app.SlashingKeeper, - ParamsKeeper: app.ParamsKeeper, - CapabilityKeeper: app.CapabilityKeeper, - GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), + FeeBurnerKeeper: app.FeeBurnerKeeper, + CronKeeper: app.CronKeeper, + IcqKeeper: app.InterchainQueriesKeeper, + TokenFactoryKeeper: app.TokenFactoryKeeper, + SlashingKeeper: app.SlashingKeeper, + ParamsKeeper: app.ParamsKeeper, + CapabilityKeeper: app.CapabilityKeeper, + GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), + CcvConsumerSubspace: app.GetSubspace(ccvconsumertypes.ModuleName), }, app, app.AppCodec(), diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 4424b36df..e7b77a77f 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -3,6 +3,8 @@ package nextupgrade import ( "errors" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -42,6 +44,12 @@ func CreateUpgradeHandler( return vm, err } + err = migrateRewardDenoms(ctx, keepers) + if err != nil { + ctx.Logger().Error("failed to migrate reward denoms", "err", err) + return vm, err + } + ctx.Logger().Info("Upgrade complete") return vm, err } @@ -85,7 +93,7 @@ func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error ctx.Logger().Info("Bypass min fee msg types was set successfully") - keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, types.DefaultmaxTotalBypassMinFeeMsgGasUsage) + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, &types.DefaultmaxTotalBypassMinFeeMsgGasUsage) ctx.Logger().Info("Max total bypass min fee msg gas usage set successfully") @@ -129,3 +137,23 @@ func migrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Co return nil } + +func migrateRewardDenoms(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { + ctx.Logger().Info("Migrating reword denoms...") + + if !keepers.CcvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms) { + return errors.New("key_reward_denoms param not found") + } + + var denoms []string + keepers.CcvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denoms) + + // add new denom + denoms = append(denoms, "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349") + + keepers.CcvConsumerSubspace.Set(ctx, ccvconsumertypes.KeyRewardDenoms, &denoms) + + ctx.Logger().Info("Finished migrating reward denoms") + + return nil +} diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 91af6a211..9e4064121 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -3,6 +3,8 @@ package nextupgrade_test import ( "testing" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" @@ -160,3 +162,32 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { twoKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressTwo) suite.Require().Equal(twoKey, uint64(2)) } + +func (suite *UpgradeTestSuite) TestRewardDenomsUpgrade() { + var ( + app = suite.GetNeutronZoneApp(suite.ChainA) + ccvConsumerSubspace = app.GetSubspace(ccvconsumertypes.ModuleName) + ctx = suite.ChainA.GetContext() + ) + + suite.Require().True(ccvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms)) + + var denomsBefore []string + ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denomsBefore) + var empty []string = nil + suite.Require().Equal(denomsBefore, empty) + + upgrade := upgradetypes.Plan{ + Name: nextupgrade.UpgradeName, + Info: "some text here", + Height: 100, + } + app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) + + suite.Require().True(ccvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms)) + + var denoms []string + ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denoms) + requiredDenoms := []string{"ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349"} + suite.Require().Equal(requiredDenoms, denoms) +} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 91fe12f10..23f301405 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -43,7 +43,8 @@ type UpgradeKeepers struct { CapabilityKeeper *capabilitykeeper.Keeper BuilderKeeper builderkeeper.Keeper // subspaces - GlobalFeeSubspace paramtypes.Subspace + GlobalFeeSubspace paramtypes.Subspace + CcvConsumerSubspace paramtypes.Subspace } type StoreKeys interface { From 0fb54fc162b9a3d31d00f6fd0c62bfaa203b0da6 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 18 Aug 2023 17:26:09 +0300 Subject: [PATCH 045/307] ictx + transfer with limited sudo call --- app/upgrades/sdk47/upgrades.go | 10 ++ app/upgrades/types.go | 2 + go.sum | 3 + network/init-neutrond.sh | 2 +- proto/neutron/contractmanager/params.proto | 5 +- proto/neutron/cron/genesis.proto | 6 +- proto/neutron/cron/params.proto | 10 +- proto/neutron/cron/query.proto | 40 +++--- proto/neutron/cron/schedule.proto | 28 ++--- proto/neutron/cron/tx.proto | 3 +- proto/neutron/transfer/v1/tx.proto | 3 +- .../osmosis/tokenfactory/v1beta1/params.proto | 18 +-- .../osmosis/tokenfactory/v1beta1/query.proto | 3 +- .../interchaintxs/types/expected_keepers.go | 14 +++ .../mocks/transfer/types/expected_keepers.go | 23 +++- x/contractmanager/keeper/params.go | 11 +- x/contractmanager/types/params.go | 6 +- x/contractmanager/types/params.pb.go | 52 ++++++-- x/interchaintxs/keeper/ibc_handlers.go | 114 ++++++++--------- x/interchaintxs/keeper/ibc_handlers_test.go | 47 ++++--- x/interchaintxs/types/expected_keepers.go | 1 + x/tokenfactory/types/params.pb.go | 6 +- x/transfer/ibc_handlers.go | 118 ++++++++---------- x/transfer/ibc_handlers_test.go | 71 +++++++---- x/transfer/types/expected_keepers.go | 2 + 25 files changed, 346 insertions(+), 252 deletions(-) diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go index b962ec819..9c92d08f0 100644 --- a/app/upgrades/sdk47/upgrades.go +++ b/app/upgrades/sdk47/upgrades.go @@ -12,6 +12,7 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" "github.com/neutron-org/neutron/app/upgrades" + contractmanagermoduletypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" @@ -91,6 +92,15 @@ func CreateUpgradeHandler( return nil, err } + ctx.Logger().Info("Setting sudo callback limit...") + cmParams := contractmanagermoduletypes.Params{ + SudoCallGasLimit: 1_000_000, + } + err = keepers.ContractManager.SetParams(ctx, cmParams) + if err != nil { + return nil, err + } + ctx.Logger().Info("Upgrade complete") return vm, nil } diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 91fe12f10..de1f24b33 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -8,6 +8,7 @@ import ( paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" icqkeeper "github.com/neutron-org/neutron/x/interchainqueries/keeper" @@ -42,6 +43,7 @@ type UpgradeKeepers struct { ParamsKeeper paramskeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper BuilderKeeper builderkeeper.Keeper + ContractManager contractmanagerkeeper.Keeper // subspaces GlobalFeeSubspace paramtypes.Subspace } diff --git a/go.sum b/go.sum index 71b2262b1..cb32bfa60 100644 --- a/go.sum +++ b/go.sum @@ -796,6 +796,7 @@ github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= @@ -908,6 +909,7 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= @@ -928,6 +930,7 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index f656840a5..f16144a62 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -627,9 +627,9 @@ set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES" # globalfee - set_genesis_param proposer_fee "\"0.25\"" # builder(POB) set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) +set_genesis_param sudo_call_gas_limit "\"1000000\"" # contractmanager if ! jq -e . "$GENESIS_PATH" >/dev/null 2>&1; then echo "genesis appears to become incorrect json" >&2 diff --git a/proto/neutron/contractmanager/params.proto b/proto/neutron/contractmanager/params.proto index 39925ae90..c7f410c0b 100644 --- a/proto/neutron/contractmanager/params.proto +++ b/proto/neutron/contractmanager/params.proto @@ -6,4 +6,7 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; // Params defines the parameters for the module. -message Params { option (gogoproto.goproto_stringer) = false; } +message Params { + option (gogoproto.goproto_stringer) = false; + uint64 sudo_call_gas_limit = 1; +} diff --git a/proto/neutron/cron/genesis.proto b/proto/neutron/cron/genesis.proto index e7e455276..2045b3c66 100644 --- a/proto/neutron/cron/genesis.proto +++ b/proto/neutron/cron/genesis.proto @@ -10,7 +10,7 @@ option go_package = "github.com/neutron-org/neutron/x/cron/types"; // GenesisState defines the cron module's genesis state. message GenesisState { - repeated Schedule scheduleList = 2 [(gogoproto.nullable) = false]; - Params params = 1 [ (gogoproto.nullable) = false ]; - // this line is used by starport scaffolding # genesis/proto/state + repeated Schedule scheduleList = 2 [ (gogoproto.nullable) = false ]; + Params params = 1 [ (gogoproto.nullable) = false ]; + // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/neutron/cron/params.proto b/proto/neutron/cron/params.proto index 7dfad3181..c94db26d5 100644 --- a/proto/neutron/cron/params.proto +++ b/proto/neutron/cron/params.proto @@ -7,9 +7,9 @@ option go_package = "github.com/neutron-org/neutron/x/cron/types"; // Params defines the parameters for the module. message Params { - option (gogoproto.goproto_stringer) = false; - // Security address that can remove schedules - string security_address = 1; - // Limit of schedules executed in one block - uint64 limit = 2; + option (gogoproto.goproto_stringer) = false; + // Security address that can remove schedules + string security_address = 1; + // Limit of schedules executed in one block + uint64 limit = 2; } diff --git a/proto/neutron/cron/query.proto b/proto/neutron/cron/query.proto index 0105437fa..16205fea8 100644 --- a/proto/neutron/cron/query.proto +++ b/proto/neutron/cron/query.proto @@ -13,45 +13,43 @@ option go_package = "github.com/neutron-org/neutron/x/cron/types"; // Query defines the gRPC querier service. service Query { // Queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/neutron/cron/params"; - } + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/neutron/cron/params"; + } - // Queries a Schedule by name. - rpc Schedule(QueryGetScheduleRequest) returns (QueryGetScheduleResponse) { - option (google.api.http).get = "/neutron/cron/schedule/{name}"; - } + // Queries a Schedule by name. + rpc Schedule(QueryGetScheduleRequest) returns (QueryGetScheduleResponse) { + option (google.api.http).get = "/neutron/cron/schedule/{name}"; + } - // Queries a list of Schedule items. - rpc Schedules(QuerySchedulesRequest) returns (QuerySchedulesResponse) { - option (google.api.http).get = "/neutron/cron/schedule"; - } + // Queries a list of Schedule items. + rpc Schedules(QuerySchedulesRequest) returns (QuerySchedulesResponse) { + option (google.api.http).get = "/neutron/cron/schedule"; + } -// this line is used by starport scaffolding # 2 + // this line is used by starport scaffolding # 2 } message QueryParamsRequest {} message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false]; + // params holds all the parameters of this module. + Params params = 1 [ (gogoproto.nullable) = false ]; } -message QueryGetScheduleRequest { - string name = 1; -} +message QueryGetScheduleRequest { string name = 1; } message QueryGetScheduleResponse { - Schedule schedule = 1 [(gogoproto.nullable) = false]; + Schedule schedule = 1 [ (gogoproto.nullable) = false ]; } message QuerySchedulesRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 1; } message QuerySchedulesResponse { - repeated Schedule schedules = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated Schedule schedules = 1 [ (gogoproto.nullable) = false ]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // this line is used by starport scaffolding # 3 diff --git a/proto/neutron/cron/schedule.proto b/proto/neutron/cron/schedule.proto index d4fbd337e..3549a8070 100644 --- a/proto/neutron/cron/schedule.proto +++ b/proto/neutron/cron/schedule.proto @@ -6,24 +6,24 @@ option go_package = "github.com/neutron-org/neutron/x/cron/types"; import "gogoproto/gogo.proto"; message Schedule { - // Name of schedule - string name = 1; - // Period in blocks - uint64 period = 2; - // Msgs that will be executed every period amount of time - repeated MsgExecuteContract msgs = 3 [ (gogoproto.nullable) = false ]; - // Last execution's block height - uint64 last_execute_height = 4; + // Name of schedule + string name = 1; + // Period in blocks + uint64 period = 2; + // Msgs that will be executed every period amount of time + repeated MsgExecuteContract msgs = 3 [ (gogoproto.nullable) = false ]; + // Last execution's block height + uint64 last_execute_height = 4; } message MsgExecuteContract { - // Contract is the address of the smart contract - string contract = 1; - // Msg is json encoded message to be passed to the contract - string msg = 2; + // Contract is the address of the smart contract + string contract = 1; + // Msg is json encoded message to be passed to the contract + string msg = 2; } message ScheduleCount { - // Count is the number of current schedules - int32 count = 1; + // Count is the number of current schedules + int32 count = 1; } diff --git a/proto/neutron/cron/tx.proto b/proto/neutron/cron/tx.proto index 79cf8b235..d83271fca 100644 --- a/proto/neutron/cron/tx.proto +++ b/proto/neutron/cron/tx.proto @@ -7,8 +7,7 @@ option go_package = "github.com/neutron-org/neutron/x/cron/types"; // Msg defines the Msg service. service Msg { -// this line is used by starport scaffolding # proto/tx/rpc + // this line is used by starport scaffolding # proto/tx/rpc } - // this line is used by starport scaffolding # proto/tx/message diff --git a/proto/neutron/transfer/v1/tx.proto b/proto/neutron/transfer/v1/tx.proto index b5f8f471a..08019e389 100644 --- a/proto/neutron/transfer/v1/tx.proto +++ b/proto/neutron/transfer/v1/tx.proto @@ -43,8 +43,7 @@ message MsgTransfer { string memo = 8; - neutron.feerefunder.Fee fee = 9 - [ (gogoproto.nullable) = false ]; + neutron.feerefunder.Fee fee = 9 [ (gogoproto.nullable) = false ]; } // MsgTransferResponse is the modified response type for diff --git a/proto/osmosis/tokenfactory/v1beta1/params.proto b/proto/osmosis/tokenfactory/v1beta1/params.proto index 4bd96f977..40a850b16 100644 --- a/proto/osmosis/tokenfactory/v1beta1/params.proto +++ b/proto/osmosis/tokenfactory/v1beta1/params.proto @@ -9,13 +9,15 @@ import "cosmos/base/v1beta1/coin.proto"; // Params holds parameters for the tokenfactory module message Params { - // DenomCreationFee is the fee required to create a new denom using the tokenfactory module - repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1 [ - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (gogoproto.moretags) = "yaml:\"denom_creation_fee\"", - (gogoproto.nullable) = false - ]; + // DenomCreationFee is the fee required to create a new denom using the + // tokenfactory module + repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1 [ + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.moretags) = "yaml:\"denom_creation_fee\"", + (gogoproto.nullable) = false + ]; - // FeeCollectorAddress is the address where fees collected from denom creation are sent to - string fee_collector_address = 2; + // FeeCollectorAddress is the address where fees collected from denom creation + // are sent to + string fee_collector_address = 2; } diff --git a/proto/osmosis/tokenfactory/v1beta1/query.proto b/proto/osmosis/tokenfactory/v1beta1/query.proto index a4ee8b4d6..e97978408 100644 --- a/proto/osmosis/tokenfactory/v1beta1/query.proto +++ b/proto/osmosis/tokenfactory/v1beta1/query.proto @@ -18,7 +18,8 @@ service Query { rpc DenomAuthorityMetadata(QueryDenomAuthorityMetadataRequest) returns (QueryDenomAuthorityMetadataResponse) { option (google.api.http).get = - "/osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/authority_metadata"; + "/osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/" + "authority_metadata"; } rpc DenomsFromCreator(QueryDenomsFromCreatorRequest) diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 0c903226c..2fd4582de 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -127,6 +127,20 @@ func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, channel return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, channelID, address, ackID, ackType) } +// GetParams mocks base method. +func (m *MockContractManagerKeeper) GetParams(ctx types.Context) types4.Params { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetParams", ctx) + ret0, _ := ret[0].(types4.Params) + return ret0 +} + +// GetParams indicates an expected call of GetParams. +func (mr *MockContractManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockContractManagerKeeper)(nil).GetParams), ctx) +} + // HasContractInfo mocks base method. func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { m.ctrl.T.Helper() diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index e7c4dfa3b..49699d9e2 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -11,7 +11,8 @@ import ( types0 "github.com/cosmos/cosmos-sdk/x/auth/types" types1 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" gomock "github.com/golang/mock/gomock" - types2 "github.com/neutron-org/neutron/x/feerefunder/types" + types2 "github.com/neutron-org/neutron/x/contractmanager/types" + types3 "github.com/neutron-org/neutron/x/feerefunder/types" ) // MockContractManagerKeeper is a mock of ContractManagerKeeper interface. @@ -49,6 +50,20 @@ func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, channel return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, channelID, address, ackID, ackType) } +// GetParams mocks base method. +func (m *MockContractManagerKeeper) GetParams(ctx types.Context) types2.Params { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetParams", ctx) + ret0, _ := ret[0].(types2.Params) + return ret0 +} + +// GetParams indicates an expected call of GetParams. +func (mr *MockContractManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockContractManagerKeeper)(nil).GetParams), ctx) +} + // HasContractInfo mocks base method. func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { m.ctrl.T.Helper() @@ -132,7 +147,7 @@ func (m *MockFeeRefunderKeeper) EXPECT() *MockFeeRefunderKeeperMockRecorder { } // DistributeAcknowledgementFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types2.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types3.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeAcknowledgementFee", ctx, receiver, packetID) } @@ -144,7 +159,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeAcknowledgementFee(ctx, r } // DistributeTimeoutFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types2.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types3.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeTimeoutFee", ctx, receiver, packetID) } @@ -156,7 +171,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeTimeoutFee(ctx, receiver, } // LockFees mocks base method. -func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types2.PacketID, fee types2.Fee) error { +func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types3.PacketID, fee types3.Fee) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockFees", ctx, payer, packetID, fee) ret0, _ := ret[0].(error) diff --git a/x/contractmanager/keeper/params.go b/x/contractmanager/keeper/params.go index b2e6f7687..4aea5124d 100644 --- a/x/contractmanager/keeper/params.go +++ b/x/contractmanager/keeper/params.go @@ -7,8 +7,15 @@ import ( ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(_ sdk.Context) types.Params { - return types.NewParams() +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + + k.cdc.MustUnmarshal(bz, ¶ms) + return params } // SetParams set the params diff --git a/x/contractmanager/types/params.go b/x/contractmanager/types/params.go index 357196ad6..5c77ce196 100644 --- a/x/contractmanager/types/params.go +++ b/x/contractmanager/types/params.go @@ -7,6 +7,8 @@ import ( var _ paramtypes.ParamSet = (*Params)(nil) +const DefaultSudoCallGasLimit = uint64(1_000_000) + // ParamKeyTable the param key table for launch module func ParamKeyTable() paramtypes.KeyTable { return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) @@ -14,7 +16,9 @@ func ParamKeyTable() paramtypes.KeyTable { // NewParams creates a new Params instance func NewParams() Params { - return Params{} + return Params{ + SudoCallGasLimit: DefaultSudoCallGasLimit, + } } // DefaultParams returns a default set of parameters diff --git a/x/contractmanager/types/params.pb.go b/x/contractmanager/types/params.pb.go index a2edd6ade..39cec5b65 100644 --- a/x/contractmanager/types/params.pb.go +++ b/x/contractmanager/types/params.pb.go @@ -25,6 +25,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { + SudoCallGasLimit uint64 `protobuf:"varint,1,opt,name=sudo_call_gas_limit,json=sudoCallGasLimit,proto3" json:"sudo_call_gas_limit,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -59,6 +60,13 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo +func (m *Params) GetSudoCallGasLimit() uint64 { + if m != nil { + return m.SudoCallGasLimit + } + return 0 +} + func init() { proto.RegisterType((*Params)(nil), "neutron.contractmanager.Params") } @@ -68,17 +76,20 @@ func init() { } var fileDescriptor_121b05e48c7a8737 = []byte{ - // 158 bytes of a gzipped FileDescriptorProto + // 201 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0x2d, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xaa, 0xd2, 0x43, 0x53, 0x25, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa3, - 0x0f, 0x62, 0x41, 0x94, 0x2b, 0xf1, 0x71, 0xb1, 0x05, 0x80, 0xb5, 0x5b, 0xb1, 0xcc, 0x58, 0x20, - 0xcf, 0xe0, 0x14, 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, 0x66, 0xe9, - 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0x3b, 0x74, 0xf3, 0x8b, 0xd2, - 0x61, 0x6c, 0xfd, 0x0a, 0x0c, 0x77, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x2d, 0x32, - 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x69, 0x27, 0xc9, 0x25, 0xbf, 0x00, 0x00, 0x00, + 0x0f, 0x62, 0x41, 0x94, 0x2b, 0xd9, 0x72, 0xb1, 0x05, 0x80, 0xb5, 0x0b, 0xe9, 0x72, 0x09, 0x17, + 0x97, 0xa6, 0xe4, 0xc7, 0x27, 0x27, 0xe6, 0xe4, 0xc4, 0xa7, 0x27, 0x16, 0xc7, 0xe7, 0x64, 0xe6, + 0x66, 0x96, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x04, 0x09, 0x80, 0xa4, 0x9c, 0x13, 0x73, 0x72, + 0xdc, 0x13, 0x8b, 0x7d, 0x40, 0xe2, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0x05, 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, 0x59, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, + 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x49, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0x86, + 0x37, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xee, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, + 0xff, 0xc5, 0xbf, 0xd1, 0xee, 0xee, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -101,6 +112,11 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.SudoCallGasLimit != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.SudoCallGasLimit)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -121,6 +137,9 @@ func (m *Params) Size() (n int) { } var l int _ = l + if m.SudoCallGasLimit != 0 { + n += 1 + sovParams(uint64(m.SudoCallGasLimit)) + } return n } @@ -159,6 +178,25 @@ func (m *Params) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SudoCallGasLimit", wireType) + } + m.SudoCallGasLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SudoCallGasLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 8b851dd69..096248786 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -1,7 +1,7 @@ package keeper import ( - "strings" + "fmt" "time" "cosmossdk.io/errors" @@ -21,63 +21,6 @@ const ( GasReserve = 15000 ) -func (k *Keeper) outOfGasRecovery( - ctx sdk.Context, - gasMeter sdk.GasMeter, - senderAddress sdk.AccAddress, - packet channeltypes.Packet, - failureAckType string, -) { - if r := recover(); r != nil { - _, ok := r.(sdk.ErrorOutOfGas) - if !ok || !gasMeter.IsOutOfGas() { - panic(r) - } - - k.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String()) - k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureAckType) - } -} - -// createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. -// If there is an error during Sudo call, we can safely revert changes made in cached context. -func (k *Keeper) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { - gasMeter := ctx.GasMeter() - // determines type of gas meter by its prefix: - // * BasicGasMeter - basic gas meter which is used for processing tx directly in block; - // * InfiniteGasMeter - is used to process txs during simulation calls. We don't need to create a limit for such meter, - // since it's infinite. - gasMeterIsLimited := strings.HasPrefix(ctx.GasMeter().String(), "BasicGasMeter") - - cacheCtx, writeFn := ctx.CacheContext() - - // if gas meter is limited: - // 1. calculate how much free gas left we have for a Sudo call; - // 2. If gasLeft less than reserved gas (GasReserved), we set gas limit for cached context to zero, meaning we can't - // process Sudo call; - // 3. If we have more gas left than reserved gas (GasReserved) for Sudo call, we set gas limit for cached context to - // difference between gas left and reserved gas: (gasLeft - GasReserve); - // - // GasReserve is the amount of gas on the context gas meter we need to reserve in order to add contract failure to keeper - // and process failed Sudo call - if gasMeterIsLimited { - gasLeft := gasMeter.Limit() - gasMeter.GasConsumed() - - var newLimit uint64 - if gasLeft < GasReserve { - newLimit = 0 - } else { - newLimit = gasLeft - GasReserve - } - - gasMeter = sdk.NewGasMeter(newLimit) - } - - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - - return cacheCtx, writeFn, gasMeter -} - // HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call. func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleAcknowledgment) @@ -113,18 +56,16 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), "ack") k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { - ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumed(), "consume from cached context") - + // consume all the gas from the cached context + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") return nil } // HandleTimeout passes the timeout data to the appropriate contract via a Sudo call. // Since all ICA channels are ORDERED, a single timeout shuts down a channel. -// The affected zone should be paused after a timeout. func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleTimeout) @@ -145,12 +86,11 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), "timeout") k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) } else { - ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumed(), "consume from cached context") - + // consume all the gas from the cached context + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") return nil } @@ -187,3 +127,47 @@ func (k *Keeper) HandleChanOpenAck( return nil } + +func (k *Keeper) outOfGasRecovery( + ctx sdk.Context, + gasMeter sdk.GasMeter, + senderAddress sdk.AccAddress, + packet channeltypes.Packet, + failureAckType string, +) { + if r := recover(); r != nil { + _, ok := r.(sdk.ErrorOutOfGas) + if !ok || !gasMeter.IsOutOfGas() { + panic(r) + } + + k.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String()) + k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureAckType) + } +} + +// createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. +// If there is an error during Sudo call, we can safely revert changes made in cached context. +// panics if there is no enough gas for sudoCall + reserve +func (k *Keeper) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { + cacheCtx, writeFn := ctx.CacheContext() + + sudoLimit := k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit + if ctx.GasMeter().GasRemaining() < getGasReserve()+sudoLimit { + panic(sdk.ErrorOutOfGas{Descriptor: fmt.Sprintf("%dgas - reserve for sudo call", sudoLimit)}) + } + + gasMeter := sdk.NewGasMeter(sudoLimit) + + cacheCtx = cacheCtx.WithGasMeter(gasMeter) + + return cacheCtx, writeFn, gasMeter +} + +// TODO: calculate gas reserve in according to failure ack + packet size +// getGasReserve calculates the gas amount required to +// 1) Save failure ack, in case there is OutOfGas error or a regular error during sudoCall +// 2) Distribute ack fees +func getGasReserve() uint64 { + return GasReserve +} diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index b02a7b6fb..21e3d9ce4 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -71,12 +71,14 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 4000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + // response spent only 2990, but we consume all 4000 defined by params + require.Equal(t, uint64(4000), ctx.GasMeter().GasConsumed()) // error during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -84,12 +86,14 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoError error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + // TODO: add test to check gas consumption by AddFailure + require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) // success during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -97,23 +101,28 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror"))) + require.Equal(t, uint64(6000), ctx.GasMeter().GasConsumed()) // out of gas during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") + cachedCtx.GasMeter().ConsumeGas(7001, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + // TODO: add test to check gas consumption by AddFailure + // TODO: consume sudogas even on out of gas from the contract? require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // due to out of gas recovery we consume 0 with a SudoError handler // check we have ReserveGas reserved and @@ -122,32 +131,25 @@ func TestHandleAcknowledgement(t *testing.T) { ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) gasReserved := false cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - if ctx.GasMeter().Limit() == cachedCtx.GasMeter().Limit()+keeper.GasReserve { + if cachedCtx.GasMeter().Limit() == 8000 { gasReserved = true } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoresponse"), ShouldBeWritten) // consumes 3140 gas, 2000 flat write + 30 every byte of key+value }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.True(t, gasReserved) - require.Equal(t, uint64(3140), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(8000), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse"))) - // not enough gas to reserve + not enough to make AddContractFailure failure after panic recover + // not enough gas to reserve, tx aborted ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(keeper.GasReserve - 1)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") - }).Return(nil, nil) - feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, "channel-0", contractAddress.String(), p.GetSequence(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { - ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") - }) - require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(keeper.GasReserve + 9000 - 1)) + cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "9000gas - reserve for sudo call"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } @@ -175,16 +177,17 @@ func TestHandleTimeout(t *testing.T) { gasReserved := false ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - if ctx.GasMeter().Limit() == cachedCtx.GasMeter().Limit()+keeper.GasReserve { + if cachedCtx.GasMeter().Limit() == 4000 { gasReserved = true } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudotimeout"), ShouldBeWritten) // consumes 3110 gas, 2000 flat write + 30 every byte of key+value }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 4000}) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.True(t, gasReserved) - require.Equal(t, uint64(3110), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(4000), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout"))) require.NoError(t, err) @@ -194,9 +197,11 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) + require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) @@ -205,11 +210,13 @@ func TestHandleTimeout(t *testing.T) { cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") + cachedCtx.GasMeter().ConsumeGas(6001, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 7097b0ed4..c663fc168 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -31,6 +31,7 @@ type ContractManagerKeeper interface { SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) SudoOnChanOpenAck(ctx sdk.Context, contractAddress sdk.AccAddress, details contractmanagertypes.OpenAckDetails) ([]byte, error) + GetParams(ctx sdk.Context) (params contractmanagertypes.Params) } type ICAControllerKeeper interface { diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 3ca6e158d..08379c672 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -28,9 +28,11 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params holds parameters for the tokenfactory module type Params struct { - // DenomCreationFee is the fee required to create a new denom using the tokenfactory module + // DenomCreationFee is the fee required to create a new denom using the + // tokenfactory module DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=denom_creation_fee,json=denomCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"denom_creation_fee" yaml:"denom_creation_fee"` - // FeeCollectorAddress is the address where fees collected from denom creation are sent to + // FeeCollectorAddress is the address where fees collected from denom creation + // are sent to FeeCollectorAddress string `protobuf:"bytes,2,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"` } diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index fe6db47d5..d4e96d6e8 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -1,9 +1,8 @@ package transfer import ( - "strings" - "cosmossdk.io/errors" + "fmt" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -19,67 +18,9 @@ const ( GasReserve = 15000 ) -func (im IBCModule) outOfGasRecovery( - ctx sdk.Context, - gasMeter sdk.GasMeter, - senderAddress sdk.AccAddress, - packet channeltypes.Packet, - data transfertypes.FungibleTokenPacketData, - failureType string, -) { - if r := recover(); r != nil { - _, ok := r.(sdk.ErrorOutOfGas) - if !ok || !gasMeter.IsOutOfGas() { - panic(r) - } - - im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) - im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureType) - // FIXME: add distribution call - } -} - -// createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. -// If there is an error during Sudo call, we can safely revert changes made in cached context. -func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { - gasMeter := ctx.GasMeter() - // determines type of gas meter by its prefix: - // * BasicGasMeter - basic gas meter which is used for processing tx directly in block; - // * InfiniteGasMeter - is used to process txs during simulation calls. We don't need to create a limit for such meter, - // since it's infinite. - gasMeterIsLimited := strings.HasPrefix(ctx.GasMeter().String(), "BasicGasMeter") - - cacheCtx, writeFn := ctx.CacheContext() - - // if gas meter is limited: - // 1. calculate how much free gas left we have for a Sudo call; - // 2. If gasLeft less than reserved gas (GasReserved), we set gas limit for cached context to zero, meaning we can't - // process Sudo call; - // 3. If we have more gas left than reserved gas (GasReserved) for Sudo call, we set gas limit for cached context to - // difference between gas left and reserved gas: (gasLeft - GasReserve); - // - // GasReserve is the amount of gas on the context gas meter we need to reserve in order to add contract failure to keeper - // and process failed Sudo call - if gasMeterIsLimited { - gasLeft := gasMeter.Limit() - gasMeter.GasConsumed() - - var newLimit uint64 - if gasLeft < GasReserve { - newLimit = 0 - } else { - newLimit = gasLeft - GasReserve - } - - gasMeter = sdk.NewGasMeter(newLimit) - } - - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - - return cacheCtx, writeFn, gasMeter -} - // HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call. func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { + // TODO: why do ever need whole logic for non contract, why dont exit early var ack channeltypes.Acknowledgement if err := channeltypes.SubModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet acknowledgement: %v", err) @@ -110,16 +51,16 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "ack") im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) } else { - ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumed(), "consume from cached context") im.keeper.Logger(ctx).Debug("acknowledgement received", "Packet data", data, "CheckTx", ctx.IsCheckTx()) // distribute fees only if the sender is a contract if im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + // consume all the gas from the cached context + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") } return nil @@ -147,16 +88,61 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "timeout") im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) } else { - ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) writeFn() } // distribute fee only if the sender is a contract if im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + // consume all the gas from the cached context + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumed(), "consume from cached context") - return nil } + +func (im IBCModule) outOfGasRecovery( + ctx sdk.Context, + gasMeter sdk.GasMeter, + senderAddress sdk.AccAddress, + packet channeltypes.Packet, + data transfertypes.FungibleTokenPacketData, + failureType string, +) { + if r := recover(); r != nil { + _, ok := r.(sdk.ErrorOutOfGas) + if !ok || !gasMeter.IsOutOfGas() { + panic(r) + } + + im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) + im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureType) + // FIXME: add distribution call + } +} + +// createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. +// If there is an error during Sudo call, we can safely revert changes made in cached context. +// panics if there is no enough gas for sudoCall + reserve +func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { + cacheCtx, writeFn := ctx.CacheContext() + + sudoLimit := im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit + if ctx.GasMeter().GasRemaining() < getGasReserve()+sudoLimit { + panic(sdk.ErrorOutOfGas{Descriptor: fmt.Sprintf("%dgas - reserve for sudo call", sudoLimit)}) + } + + gasMeter := sdk.NewGasMeter(sudoLimit) + + cacheCtx = cacheCtx.WithGasMeter(gasMeter) + + return cacheCtx, writeFn, gasMeter +} + +// TODO: calculate gas reserve in according to failure ack + packet size +// getGasReserve calculates the gas amount required to +// 1) Save failure ack, in case there is OutOfGas error or a regular error during sudoCall +// 2) Distribute ack fees +func getGasReserve() uint64 { + return GasReserve +} diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 024d17989..8e8fa3bb4 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -2,6 +2,7 @@ package transfer_test import ( "fmt" + "github.com/neutron-org/neutron/x/contractmanager/types" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,7 +13,6 @@ import ( mock_types "github.com/neutron-org/neutron/testutil/mocks/transfer/types" testkeeper "github.com/neutron-org/neutron/testutil/transfer/keeper" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" - "github.com/neutron-org/neutron/x/interchaintxs/keeper" ictxtypes "github.com/neutron-org/neutron/x/interchaintxs/types" "github.com/neutron-org/neutron/x/transfer" "github.com/stretchr/testify/require" @@ -100,12 +100,13 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 4000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // error during SudoResponse contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -113,13 +114,14 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) // error during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -127,13 +129,14 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // error during SudoError contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -141,13 +144,14 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) // success during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -155,10 +159,12 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoerror_non_contract"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror_non_contract"))) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // success during SudoError contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -166,40 +172,46 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoerror_contract"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 9000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror_contract"))) + require.Equal(t, uint64(9000), ctx.GasMeter().GasConsumed()) // recoverable out of gas during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") + cachedCtx.GasMeter().ConsumeGas(10001, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // recoverable out of gas during SudoError contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") + cachedCtx.GasMeter().ConsumeGas(11001, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 11000}) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // check we have ReserveGas reserved and // check gas consumption from cachedCtx has added to the main ctx @@ -208,50 +220,45 @@ func TestHandleAcknowledgement(t *testing.T) { ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) gasReserved := false cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - if ctx.GasMeter().Limit() == cachedCtx.GasMeter().Limit()+transfer.GasReserve { + if cachedCtx.GasMeter().Limit() == 12000 { gasReserved = true } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoresponse_non_contract_success"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 12000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.True(t, gasReserved) - require.Equal(t, uint64(3770), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse_non_contract_success"))) // contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) gasReserved = false cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - if ctx.GasMeter().Limit() == cachedCtx.GasMeter().Limit()+transfer.GasReserve { + if cachedCtx.GasMeter().Limit() == 13000 { gasReserved = true } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoresponse_contract_success"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 13000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.True(t, gasReserved) - require.Equal(t, uint64(3650), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(13000), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse_contract_success"))) // not enough gas to reserve + not enough to make AddContractFailure failure after panic recover - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(keeper.GasReserve - 1)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") - }).Return(nil, nil) + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, "channel-0", contractAddress.String(), p.GetSequence(), "ack").Do(func(ctx sdk.Context, channelId, address string, ackID uint64, ackType string) { - ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") - }) - require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "14000gas - reserve for sudo call"}, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } @@ -305,16 +312,17 @@ func TestHandleTimeout(t *testing.T) { p.Data = tokenBz gasReserved := false cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - if ctx.GasMeter().Limit() == cachedCtx.GasMeter().Limit()+keeper.GasReserve { + if cachedCtx.GasMeter().Limit() == 5000 { gasReserved = true } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudotimeout_non_contract_success"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.True(t, gasReserved) - require.Equal(t, uint64(3740), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) require.NoError(t, err) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout_non_contract_success"))) @@ -322,18 +330,19 @@ func TestHandleTimeout(t *testing.T) { ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) gasReserved = false cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - if ctx.GasMeter().Limit() == cachedCtx.GasMeter().Limit()+keeper.GasReserve { + if cachedCtx.GasMeter().Limit() == 5000 { gasReserved = true } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudotimeout_contract_success"), ShouldBeWritten) }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.True(t, gasReserved) require.NoError(t, err) - require.Equal(t, uint64(3620), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout_contract_success"))) // error during SudoTimeOut non contract @@ -342,11 +351,13 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // error during SudoTimeOut contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -354,38 +365,44 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) // out of gas during SudoTimeOut non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") + cachedCtx.GasMeter().ConsumeGas(8001, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // out of gas during SudoTimeOut contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") + cachedCtx.GasMeter().ConsumeGas(8001, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) // FIXME: make DistributeTimeoutFee during out of gas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) } diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index 3dd233a34..5d6068a68 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -4,6 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -15,6 +16,7 @@ type ContractManagerKeeper interface { SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) + GetParams(ctx sdk.Context) (params contractmanagertypes.Params) } type FeeRefunderKeeper interface { From e49207cbf6063f16ace6a14d17133c9e2cd4bc76 Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 21 Aug 2023 21:30:30 +0400 Subject: [PATCH 046/307] "ack" and "timeout" to constant; make if statements shorter --- app/upgrades/nextupgrade/upgrades_test.go | 12 +++++------ wasmbinding/test/custom_message_test.go | 4 +++- x/contractmanager/genesis_test.go | 2 +- x/contractmanager/keeper/failure.go | 13 +++++------ x/contractmanager/keeper/failure_test.go | 16 +++++++------- x/contractmanager/types/types.go | 5 +++++ x/interchaintxs/keeper/ibc_handlers.go | 8 +++---- x/interchaintxs/keeper/ibc_handlers_test.go | 12 +++++------ x/transfer/ibc_handlers.go | 10 +++++---- x/transfer/ibc_handlers_test.go | 24 +++++++++++---------- 10 files changed, 57 insertions(+), 49 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 91af6a211..c7c27a807 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -94,7 +94,7 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { ChannelId: "channel-0", Address: addr, Id: i % 2, - AckType: "ack", + AckType: contractmanagertypes.Ack, } bz := cdc.MustMarshal(&failure) store.Set(contractmanagertypes.GetFailureKey(failure.Address, failure.Id), bz) @@ -112,28 +112,28 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { { Address: addressOne, Id: 0, - AckType: "ack", + AckType: contractmanagertypes.Ack, Packet: nil, Ack: nil, }, { Address: addressOne, Id: 1, - AckType: "ack", + AckType: contractmanagertypes.Ack, Packet: nil, Ack: nil, }, { Address: addressTwo, Id: 0, - AckType: "ack", + AckType: contractmanagertypes.Ack, Packet: nil, Ack: nil, }, { Address: addressTwo, Id: 1, - AckType: "ack", + AckType: contractmanagertypes.Ack, Packet: nil, Ack: nil, }, @@ -145,7 +145,7 @@ func (suite *UpgradeTestSuite) TestFailuresUpgrade() { suite.Require().Equal(failure, &contractmanagertypes.Failure{ Address: addressTwo, Id: 1, - AckType: "ack", + AckType: contractmanagertypes.Ack, Packet: nil, Ack: nil, }) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 38f0d3788..fc3a6f6ca 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -5,6 +5,8 @@ import ( "fmt" "testing" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/stretchr/testify/suite" @@ -608,7 +610,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { Response: &ibcchanneltypes.Acknowledgement_Result{Result: []byte("Result")}, } failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), "ack", &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), contractmanagertypes.Ack, &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ diff --git a/x/contractmanager/genesis_test.go b/x/contractmanager/genesis_test.go index 76899b739..feb3ff00a 100644 --- a/x/contractmanager/genesis_test.go +++ b/x/contractmanager/genesis_test.go @@ -21,7 +21,7 @@ func TestGenesis(t *testing.T) { { Address: "address1", Id: 1, - AckType: "ack", + AckType: types.Ack, Packet: &channeltypes.Packet{ Sequence: 1, }, diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index a86b12d1c..f782b4c27 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -77,24 +77,21 @@ func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, fa } switch failure.GetAckType() { - case "ack": + case types.Ack: if failure.GetAck() == nil { return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without acknowledgement; failureId = %d", failure.Id) } if failure.GetAck().GetError() == "" { - _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.Ack.GetResult()) - if err != nil { + if _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.Ack.GetResult()); err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack response; failureId = %d; err = %s", failure.Id, err) } } else { - _, err := k.SudoError(ctx, contractAddr, *failure.Packet, failure.Ack.GetError()) - if err != nil { + if _, err := k.SudoError(ctx, contractAddr, *failure.Packet, failure.Ack.GetError()); err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack error; failureId = %d; err = %s", failure.Id, err) } } - case "timeout": - _, err := k.SudoTimeout(ctx, contractAddr, *failure.Packet) - if err != nil { + case types.Timeout: + if _, err := k.SudoTimeout(ctx, contractAddr, *failure.Packet); err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack timeout; failureId = %d; err = %s", failure.Id, err) } default: diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 4dbb6f2e5..600d16931 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -83,11 +83,11 @@ func TestAddGetFailure(t *testing.T) { contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) k, ctx := keepertest.ContractManagerKeeper(t, nil) failureID := k.GetNextFailureIDKey(ctx, contractAddress.String()) - k.AddContractFailure(ctx, &channeltypes.Packet{}, contractAddress.String(), "ack", &channeltypes.Acknowledgement{}) + k.AddContractFailure(ctx, &channeltypes.Packet{}, contractAddress.String(), types.Ack, &channeltypes.Acknowledgement{}) failure, err := k.GetFailure(ctx, contractAddress, failureID) require.NoError(t, err) require.Equal(t, failureID, failure.Id) - require.Equal(t, "ack", failure.AckType) + require.Equal(t, types.Ack, failure.AckType) // non-existent id _, err = k.GetFailure(ctx, contractAddress, failureID+1) @@ -117,7 +117,7 @@ func TestResubmitFailure(t *testing.T) { // add ack failure packet := channeltypes.Packet{} failureID := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ack) // success response xSuc := types.MessageResponse{} @@ -151,7 +151,7 @@ func TestResubmitFailure(t *testing.T) { // case: failed resubmit with ack and ack = response failureID2 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ack) + k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ack) wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to Sudo")) @@ -168,7 +168,7 @@ func TestResubmitFailure(t *testing.T) { // case: successful resubmit with ack and ack = error // add error failure failureID3 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ackError) + k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ackError) wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return([]byte{}, nil) @@ -183,7 +183,7 @@ func TestResubmitFailure(t *testing.T) { // case: failed resubmit with ack and ack = error failureID4 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", &ackError) + k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ackError) wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to Sudo")) @@ -231,7 +231,7 @@ func TestResubmitFailure(t *testing.T) { // no Failure.Ack field found for ackType = 'ack' failureID7 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "ack", nil) + k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, nil) failure7, err := k.GetFailure(ctx, contractAddr, failureID7) require.NoError(t, err) @@ -240,7 +240,7 @@ func TestResubmitFailure(t *testing.T) { // no Failure.Packet found failureID8 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, nil, contractAddr.String(), "ack", nil) + k.AddContractFailure(ctx, nil, contractAddr.String(), types.Ack, nil) failure8, err := k.GetFailure(ctx, contractAddr, failureID8) require.NoError(t, err) diff --git a/x/contractmanager/types/types.go b/x/contractmanager/types/types.go index ab1254f4c..e7d6010f0 100644 --- a/x/contractmanager/types/types.go +++ b/x/contractmanager/types/types.go @@ -1 +1,6 @@ package types + +const ( + Ack = "ack" + Timeout = "timeout" +) diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 9824ca86d..d7420809f 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -97,7 +97,7 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack", &ack) + defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, contractmanagertypes.Ack, &ack) k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) @@ -110,7 +110,7 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), "ack", &ack) + k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), contractmanagertypes.Ack, &ack) k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -136,13 +136,13 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout", nil) + defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, contractmanagertypes.Timeout, nil) k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) if err != nil { - k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), "timeout", nil) + k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), contractmanagertypes.Timeout, nil) k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 06dbe0e15..d92adf5ab 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -71,7 +71,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &resACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &resACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -84,7 +84,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -109,7 +109,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) @@ -144,7 +144,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, &p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, &p, contractAddress.String(), types.Ack, &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test @@ -194,7 +194,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -207,7 +207,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index e126e2530..221e20624 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -3,6 +3,8 @@ package transfer import ( "strings" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -96,7 +98,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack", &ack) + defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, contractmanagertypes.Ack, &ack) if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) @@ -108,7 +110,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), "ack", &ack) + im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), contractmanagertypes.Ack, &ack) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) @@ -141,11 +143,11 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout", nil) + defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, contractmanagertypes.Timeout, nil) _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) if err != nil { - im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), "timeout", nil) + im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), contractmanagertypes.Timeout, nil) im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) } else { ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events()) diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 7d3553bc6..7e4ff2a5e 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -4,6 +4,8 @@ import ( "fmt" "testing" + "github.com/neutron-org/neutron/x/contractmanager/types" + sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -100,7 +102,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &resACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -113,7 +115,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &resACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) @@ -127,7 +129,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -141,7 +143,7 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -179,7 +181,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) @@ -193,7 +195,7 @@ func TestHandleAcknowledgement(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "ack", &errACK) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) // FIXME: fix distribution during outofgas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) @@ -248,7 +250,7 @@ func TestHandleAcknowledgement(t *testing.T) { cachedCtx.GasMeter().ConsumeGas(1, "Sudo response consumption") }).Return(nil, nil) // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().AddContractFailure(lowGasCtx, &p, contractAddress.String(), "ack", &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { + cmKeeper.EXPECT().AddContractFailure(lowGasCtx, &p, contractAddress.String(), types.Ack, &resACK).Do(func(ctx sdk.Context, packet channeltypes.Packet, address, ackType string, ack channeltypes.Acknowledgement) { ctx.GasMeter().ConsumeGas(keeper.GasReserve, "out of gas") }) require.Panics(t, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test @@ -342,7 +344,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -354,7 +356,7 @@ func TestHandleTimeout(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) @@ -368,7 +370,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) @@ -381,7 +383,7 @@ func TestHandleTimeout(t *testing.T) { store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(cachedCtx.GasMeter().Limit()+1, "out of gas test") }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), "timeout", nil) + cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) // FIXME: make DistributeTimeoutFee during out of gas // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) From b4b27e96e0ba39252ade3f95ac6cdbc3a81be715 Mon Sep 17 00:00:00 2001 From: nhpd Date: Tue, 22 Aug 2023 12:12:46 +0400 Subject: [PATCH 047/307] rewrite contractmanager migration using new migration system --- app/upgrades/nextupgrade/upgrades.go | 46 -- app/upgrades/nextupgrade/upgrades_test.go | 97 +-- proto/neutron/contractmanager/failure.proto | 22 + proto/neutron/contractmanager/genesis.proto | 32 +- proto/neutron/contractmanager/query.proto | 2 +- .../neutron/contractmanager/v1/failure.proto | 18 + x/contractmanager/keeper/failure.go | 1 - x/contractmanager/keeper/migrations.go | 21 + x/contractmanager/migrations/v2/store.go | 58 ++ x/contractmanager/migrations/v2/store_test.go | 108 +++ x/contractmanager/module.go | 5 + x/contractmanager/types/failure.pb.go | 539 ++++++++++++ x/contractmanager/types/genesis.pb.go | 781 +----------------- x/contractmanager/types/query.pb.go | 56 +- x/contractmanager/types/v1/failure.pb.go | 500 +++++++++++ 15 files changed, 1321 insertions(+), 965 deletions(-) create mode 100644 proto/neutron/contractmanager/failure.proto create mode 100644 proto/neutron/contractmanager/v1/failure.proto create mode 100644 x/contractmanager/keeper/migrations.go create mode 100644 x/contractmanager/migrations/v2/store.go create mode 100644 x/contractmanager/migrations/v2/store_test.go create mode 100644 x/contractmanager/types/failure.pb.go create mode 100644 x/contractmanager/types/v1/failure.pb.go diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 4424b36df..ad1c1e387 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -7,13 +7,11 @@ import ( ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee/types" "github.com/neutron-org/neutron/app/upgrades" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" ) func CreateUpgradeHandler( @@ -36,12 +34,6 @@ func CreateUpgradeHandler( return vm, err } - err = migrateFailures(ctx, storeKeys, cdc) - if err != nil { - ctx.Logger().Error("failed to migrate Failures", "err", err) - return vm, err - } - ctx.Logger().Info("Upgrade complete") return vm, err } @@ -91,41 +83,3 @@ func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error return nil } - -func migrateFailures(ctx sdk.Context, storeKeys upgrades.StoreKeys, cdc codec.Codec) error { - ctx.Logger().Info("Migrating failures...") - - // fetch list of all old failures - oldFailuresList := make([]contractmanagertypes.OldFailure, 0) - iteratorStore := prefix.NewStore(ctx.KVStore(storeKeys.GetKey(contractmanagertypes.StoreKey)), contractmanagertypes.ContractFailuresKey) - iterator := sdk.KVStorePrefixIterator(iteratorStore, []byte{}) - - for ; iterator.Valid(); iterator.Next() { - var val contractmanagertypes.OldFailure - cdc.MustUnmarshal(iterator.Value(), &val) - oldFailuresList = append(oldFailuresList, val) - } - - err := iterator.Close() - if err != nil { - return err - } - - // migrate - store := ctx.KVStore(storeKeys.GetKey(contractmanagertypes.StoreKey)) - for _, oldItem := range oldFailuresList { - failure := contractmanagertypes.Failure{ - Address: oldItem.Address, - Id: oldItem.Id, - AckType: oldItem.AckType, - Packet: nil, - Ack: nil, - } - bz := cdc.MustMarshal(&failure) - store.Set(contractmanagertypes.GetFailureKey(failure.Address, failure.Id), bz) - } - - ctx.Logger().Info("Finished migrating failures") - - return nil -} diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index c7c27a807..9e849119d 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -3,14 +3,12 @@ package nextupgrade_test import ( "testing" - ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" - sdk "github.com/cosmos/cosmos-sdk/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/app/upgrades/nextupgrade" "github.com/neutron-org/neutron/testutil" "github.com/stretchr/testify/suite" @@ -69,94 +67,3 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { requiredTotalBypassMinFeeMsgGasUsage := uint64(1_000_000) suite.Require().Equal(requiredTotalBypassMinFeeMsgGasUsage, actualTotalBypassMinFeeMsgGasUsage) } - -func (suite *UpgradeTestSuite) TestFailuresUpgrade() { - var ( - app = suite.GetNeutronZoneApp(suite.ChainA) - storeKey = app.GetKey(contractmanagertypes.StoreKey) - ctx = suite.ChainA.GetContext() - cdc = app.AppCodec() - ) - - addressOne := testutil.TestOwnerAddress - addressTwo := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" - - store := ctx.KVStore(storeKey) - var i uint64 - for i = 0; i < 4; i++ { - var addr string - if i < 2 { - addr = addressOne - } else { - addr = addressTwo - } - failure := contractmanagertypes.OldFailure{ - ChannelId: "channel-0", - Address: addr, - Id: i % 2, - AckType: contractmanagertypes.Ack, - } - bz := cdc.MustMarshal(&failure) - store.Set(contractmanagertypes.GetFailureKey(failure.Address, failure.Id), bz) - } - - upgrade := upgradetypes.Plan{ - Name: nextupgrade.UpgradeName, - Info: "some text here", - Height: 100, - } - app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) - - // check elements migrated properly - suite.Require().ElementsMatch(app.ContractManagerKeeper.GetAllFailures(ctx), []contractmanagertypes.Failure{ - { - Address: addressOne, - Id: 0, - AckType: contractmanagertypes.Ack, - Packet: nil, - Ack: nil, - }, - { - Address: addressOne, - Id: 1, - AckType: contractmanagertypes.Ack, - Packet: nil, - Ack: nil, - }, - { - Address: addressTwo, - Id: 0, - AckType: contractmanagertypes.Ack, - Packet: nil, - Ack: nil, - }, - { - Address: addressTwo, - Id: 1, - AckType: contractmanagertypes.Ack, - Packet: nil, - Ack: nil, - }, - }) - - // check getting element works - failure, err := app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 1) - suite.Require().NoError(err) - suite.Require().Equal(failure, &contractmanagertypes.Failure{ - Address: addressTwo, - Id: 1, - AckType: contractmanagertypes.Ack, - Packet: nil, - Ack: nil, - }) - - // non-existent returns error - _, err = app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 2) - suite.Require().Error(err) - - // check id's is in order - oneKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressOne) - suite.Require().Equal(oneKey, uint64(2)) - twoKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressTwo) - suite.Require().Equal(twoKey, uint64(2)) -} diff --git a/proto/neutron/contractmanager/failure.proto b/proto/neutron/contractmanager/failure.proto new file mode 100644 index 000000000..2ac24a5a6 --- /dev/null +++ b/proto/neutron/contractmanager/failure.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package neutron.contractmanager; + +import "ibc/core/channel/v1/channel.proto"; + +option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; + +// Failure message contains information about ACK failures and can be used to +// replay ACK in case of requirement. +// Note that Failure means that sudo handler to cosmwasm contract failed for some reason +message Failure { + // Address of the failed contract + string address = 1; + // Id of the failure under specific address + uint64 id = 2; + // Acknowledgement type + string ack_type = 3; + // IBC Packet + ibc.core.channel.v1.Packet packet = 4; + // Acknowledgement + ibc.core.channel.v1.Acknowledgement ack = 5; +} diff --git a/proto/neutron/contractmanager/genesis.proto b/proto/neutron/contractmanager/genesis.proto index a2960566c..bcbd3ea87 100644 --- a/proto/neutron/contractmanager/genesis.proto +++ b/proto/neutron/contractmanager/genesis.proto @@ -3,27 +3,11 @@ package neutron.contractmanager; import "gogoproto/gogo.proto"; import "neutron/contractmanager/params.proto"; -import "ibc/core/channel/v1/channel.proto"; +import "neutron/contractmanager/failure.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; -// Failure message contains information about ACK failures and can be used to -// replay ACK in case of requirement. -// Note that Failure means that sudo handler to cosmwasm contract failed for some reason -message Failure { - // Address of the failed contract - string address = 1; - // Id of the failure under specific address - uint64 id = 2; - // Acknowledgement type - string ack_type = 3; - // IBC Packet - ibc.core.channel.v1.Packet packet = 4; - // Acknowledgement - ibc.core.channel.v1.Acknowledgement ack = 5; -} - // GenesisState defines the contractmanager module's genesis state. message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; @@ -31,17 +15,3 @@ message GenesisState { repeated Failure failures_list = 2 [ (gogoproto.nullable) = false ]; // this line is used by starport scaffolding # genesis/proto/state } - -// Deprecated. Used only for migration purposes. -message OldFailure { - // ChannelId - string channel_id = 1; - // Address of the failed contract - string address = 2; - // id of the failure under specific address - uint64 id = 3; - // ACK id to restore - uint64 ack_id = 4; - // Acknowledgement type - string ack_type = 5; -} diff --git a/proto/neutron/contractmanager/query.proto b/proto/neutron/contractmanager/query.proto index b517432e6..8ce870c3e 100644 --- a/proto/neutron/contractmanager/query.proto +++ b/proto/neutron/contractmanager/query.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "neutron/contractmanager/params.proto"; -import "neutron/contractmanager/genesis.proto"; +import "neutron/contractmanager/failure.proto"; // this line is used by starport scaffolding # 1 option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; diff --git a/proto/neutron/contractmanager/v1/failure.proto b/proto/neutron/contractmanager/v1/failure.proto new file mode 100644 index 000000000..a60d8984a --- /dev/null +++ b/proto/neutron/contractmanager/v1/failure.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; +package neutron.contractmanager.v1; + +option go_package = "github.com/neutron-org/neutron/x/contractmanager/types/v1"; + +// Deprecated. Used only for migration purposes. +message Failure { + // ChannelId + string channel_id = 1; + // Address of the failed contract + string address = 2; + // id of the failure under specific address + uint64 id = 3; + // ACK id to restore + uint64 ack_id = 4; + // Acknowledgement type + string ack_type = 5; +} diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index f782b4c27..308decb34 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -6,7 +6,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - "github.com/neutron-org/neutron/x/contractmanager/types" ) diff --git a/x/contractmanager/keeper/migrations.go b/x/contractmanager/keeper/migrations.go new file mode 100644 index 000000000..4e7bfa951 --- /dev/null +++ b/x/contractmanager/keeper/migrations.go @@ -0,0 +1,21 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + v2 "github.com/neutron-org/neutron/x/contractmanager/migrations/v2" +) + +// Migrator is a struct for handling in-place store migrations. +type Migrator struct { + keeper Keeper +} + +// NewMigrator returns a new Migrator. +func NewMigrator(keeper Keeper) Migrator { + return Migrator{keeper: keeper} +} + +// Migrate1to2 migrates from version 1 to 2. +func (m Migrator) Migrate1to2(ctx sdk.Context) error { + return v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc) +} diff --git a/x/contractmanager/migrations/v2/store.go b/x/contractmanager/migrations/v2/store.go new file mode 100644 index 000000000..ca77a5a8d --- /dev/null +++ b/x/contractmanager/migrations/v2/store.go @@ -0,0 +1,58 @@ +package v2 + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/store/prefix" + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/contractmanager/types" + v1 "github.com/neutron-org/neutron/x/contractmanager/types/v1" +) + +// MigrateStore performs in-place store migrations. +// The migration rearranges and adds new fields to the failures +func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error { + if err := migrateFailures(ctx, storeKey, cdc); err != nil { + return err + } + + return nil +} + +func migrateFailures(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error { + ctx.Logger().Info("Migrating failures...") + + // fetch list of all old failures + oldFailuresList := make([]v1.Failure, 0) + iteratorStore := prefix.NewStore(ctx.KVStore(storeKey), types.ContractFailuresKey) + iterator := sdk.KVStorePrefixIterator(iteratorStore, []byte{}) + + for ; iterator.Valid(); iterator.Next() { + var val v1.Failure + cdc.MustUnmarshal(iterator.Value(), &val) + oldFailuresList = append(oldFailuresList, val) + } + + err := iterator.Close() + if err != nil { + return err + } + + // migrate + store := ctx.KVStore(storeKey) + for _, oldItem := range oldFailuresList { + failure := types.Failure{ + Address: oldItem.Address, + Id: oldItem.Id, + AckType: oldItem.AckType, + Packet: nil, + Ack: nil, + } + bz := cdc.MustMarshal(&failure) + store.Set(types.GetFailureKey(failure.Address, failure.Id), bz) + } + + ctx.Logger().Info("Finished migrating failures") + + return nil +} diff --git a/x/contractmanager/migrations/v2/store_test.go b/x/contractmanager/migrations/v2/store_test.go new file mode 100644 index 000000000..6c2edef15 --- /dev/null +++ b/x/contractmanager/migrations/v2/store_test.go @@ -0,0 +1,108 @@ +package v2_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/testutil" + v2 "github.com/neutron-org/neutron/x/contractmanager/migrations/v2" + "github.com/neutron-org/neutron/x/contractmanager/types" + typesv1 "github.com/neutron-org/neutron/x/contractmanager/types/v1" + "github.com/stretchr/testify/suite" +) + +type V2ContractManagerMigrationTestSuite struct { + testutil.IBCConnectionTestSuite +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(V2ContractManagerMigrationTestSuite)) +} + +func (suite *V2ContractManagerMigrationTestSuite) TestFailuresUpgrade() { + var ( + app = suite.GetNeutronZoneApp(suite.ChainA) + storeKey = app.GetKey(types.StoreKey) + ctx = suite.ChainA.GetContext() + cdc = app.AppCodec() + ) + + addressOne := testutil.TestOwnerAddress + addressTwo := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" + + // Write old state + store := ctx.KVStore(storeKey) + var i uint64 + for i = 0; i < 4; i++ { + var addr string + if i < 2 { + addr = addressOne + } else { + addr = addressTwo + } + failure := typesv1.Failure{ + ChannelId: "channel-0", + Address: addr, + Id: i % 2, + AckType: types.Ack, + } + bz := cdc.MustMarshal(&failure) + store.Set(types.GetFailureKey(failure.Address, failure.Id), bz) + } + + // Run migration + suite.NoError(v2.MigrateStore(ctx, storeKey, cdc)) + + // Check elements migrated properly + suite.Require().ElementsMatch(app.ContractManagerKeeper.GetAllFailures(ctx), []types.Failure{ + { + Address: addressOne, + Id: 0, + AckType: types.Ack, + Packet: nil, + Ack: nil, + }, + { + Address: addressOne, + Id: 1, + AckType: types.Ack, + Packet: nil, + Ack: nil, + }, + { + Address: addressTwo, + Id: 0, + AckType: types.Ack, + Packet: nil, + Ack: nil, + }, + { + Address: addressTwo, + Id: 1, + AckType: types.Ack, + Packet: nil, + Ack: nil, + }, + }) + + // Check getting element works + failure, err := app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 1) + suite.Require().NoError(err) + suite.Require().Equal(failure, &types.Failure{ + Address: addressTwo, + Id: 1, + AckType: types.Ack, + Packet: nil, + Ack: nil, + }) + + // Non-existent returns error + _, err = app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 2) + suite.Require().Error(err) + + // Check next id key is correct + oneKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressOne) + suite.Require().Equal(oneKey, uint64(2)) + twoKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressTwo) + suite.Require().Equal(twoKey, uint64(2)) +} diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index 0df347b41..9fde1514c 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -128,6 +128,11 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // 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) + + m := keeper.NewMigrator(am.keeper) + if err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2); err != nil { + panic(fmt.Sprintf("failed to migrate x/contractmanager from version 1 to 2: %v", err)) + } } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) diff --git a/x/contractmanager/types/failure.pb.go b/x/contractmanager/types/failure.pb.go new file mode 100644 index 000000000..abc19b1a4 --- /dev/null +++ b/x/contractmanager/types/failure.pb.go @@ -0,0 +1,539 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: neutron/contractmanager/failure.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + types "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Failure message contains information about ACK failures and can be used to +// replay ACK in case of requirement. +// Note that Failure means that sudo handler to cosmwasm contract failed for some reason +type Failure struct { + // Address of the failed contract + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Id of the failure under specific address + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + // Acknowledgement type + AckType string `protobuf:"bytes,3,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` + // IBC Packet + Packet *types.Packet `protobuf:"bytes,4,opt,name=packet,proto3" json:"packet,omitempty"` + // Acknowledgement + Ack *types.Acknowledgement `protobuf:"bytes,5,opt,name=ack,proto3" json:"ack,omitempty"` +} + +func (m *Failure) Reset() { *m = Failure{} } +func (m *Failure) String() string { return proto.CompactTextString(m) } +func (*Failure) ProtoMessage() {} +func (*Failure) Descriptor() ([]byte, []int) { + return fileDescriptor_fba0c26e85dad46e, []int{0} +} +func (m *Failure) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Failure.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 *Failure) XXX_Merge(src proto.Message) { + xxx_messageInfo_Failure.Merge(m, src) +} +func (m *Failure) XXX_Size() int { + return m.Size() +} +func (m *Failure) XXX_DiscardUnknown() { + xxx_messageInfo_Failure.DiscardUnknown(m) +} + +var xxx_messageInfo_Failure proto.InternalMessageInfo + +func (m *Failure) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Failure) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Failure) GetAckType() string { + if m != nil { + return m.AckType + } + return "" +} + +func (m *Failure) GetPacket() *types.Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *Failure) GetAck() *types.Acknowledgement { + if m != nil { + return m.Ack + } + return nil +} + +func init() { + proto.RegisterType((*Failure)(nil), "neutron.contractmanager.Failure") +} + +func init() { + proto.RegisterFile("neutron/contractmanager/failure.proto", fileDescriptor_fba0c26e85dad46e) +} + +var fileDescriptor_fba0c26e85dad46e = []byte{ + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xb1, 0x4e, 0xeb, 0x30, + 0x14, 0x86, 0xeb, 0xb6, 0xb7, 0xbd, 0x18, 0x89, 0xc1, 0x0b, 0x06, 0x24, 0xab, 0x20, 0x90, 0xba, + 0x60, 0xab, 0x54, 0xea, 0x0e, 0x03, 0x73, 0x15, 0x31, 0xb1, 0x20, 0xe7, 0xe4, 0x90, 0x5a, 0x69, + 0xed, 0xc8, 0x75, 0x0b, 0x7d, 0x0b, 0xde, 0x87, 0x17, 0x60, 0xec, 0xc8, 0x88, 0x9a, 0x17, 0x41, + 0x49, 0x93, 0x05, 0xd8, 0x7e, 0x4b, 0xdf, 0xe7, 0x73, 0xce, 0x4f, 0xaf, 0x2c, 0xae, 0x82, 0x77, + 0x56, 0x81, 0xb3, 0xc1, 0x6b, 0x08, 0x0b, 0x6d, 0x75, 0x8a, 0x5e, 0x3d, 0x6b, 0x33, 0x5f, 0x79, + 0x94, 0xb9, 0x77, 0xc1, 0xb1, 0xe3, 0x1a, 0x93, 0x3f, 0xb0, 0xd3, 0x73, 0x13, 0x83, 0x02, 0xe7, + 0x51, 0xc1, 0x4c, 0x5b, 0x8b, 0x73, 0xb5, 0x1e, 0x35, 0x71, 0xef, 0x5e, 0xbc, 0x13, 0xda, 0xbf, + 0xdf, 0xff, 0xc6, 0x38, 0xed, 0xeb, 0x24, 0xf1, 0xb8, 0x5c, 0x72, 0x32, 0x20, 0xc3, 0x83, 0xa8, + 0x79, 0xb2, 0x23, 0xda, 0x36, 0x09, 0x6f, 0x0f, 0xc8, 0xb0, 0x1b, 0xb5, 0x4d, 0xc2, 0x4e, 0xe8, + 0x7f, 0x0d, 0xd9, 0x53, 0xd8, 0xe4, 0xc8, 0x3b, 0x35, 0x0a, 0xd9, 0xc3, 0x26, 0x47, 0x36, 0xa6, + 0xbd, 0x5c, 0x43, 0x86, 0x81, 0x77, 0x07, 0x64, 0x78, 0x78, 0x73, 0x26, 0x4d, 0x0c, 0xb2, 0x5c, + 0x42, 0x36, 0x93, 0xd7, 0x23, 0x39, 0xad, 0x90, 0xa8, 0x46, 0xd9, 0x84, 0x76, 0x34, 0x64, 0xfc, + 0x5f, 0x65, 0x5c, 0xfe, 0x69, 0xdc, 0x42, 0x66, 0xdd, 0xcb, 0x1c, 0x93, 0x14, 0x17, 0x68, 0x43, + 0x54, 0x0a, 0x77, 0xd3, 0x8f, 0x9d, 0x20, 0xdb, 0x9d, 0x20, 0x5f, 0x3b, 0x41, 0xde, 0x0a, 0xd1, + 0xda, 0x16, 0xa2, 0xf5, 0x59, 0x88, 0xd6, 0xe3, 0x24, 0x35, 0x61, 0xb6, 0x8a, 0x25, 0xb8, 0x85, + 0xaa, 0xeb, 0xb9, 0x76, 0x3e, 0x6d, 0xb2, 0x7a, 0xfd, 0xd5, 0x69, 0x79, 0xcc, 0x32, 0xee, 0x55, + 0xb5, 0x8c, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x40, 0x42, 0xfd, 0x80, 0x7b, 0x01, 0x00, 0x00, +} + +func (m *Failure) 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 *Failure) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Ack != nil { + { + size, err := m.Ack.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFailure(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Packet != nil { + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFailure(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.AckType) > 0 { + i -= len(m.AckType) + copy(dAtA[i:], m.AckType) + i = encodeVarintFailure(dAtA, i, uint64(len(m.AckType))) + i-- + dAtA[i] = 0x1a + } + if m.Id != 0 { + i = encodeVarintFailure(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintFailure(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintFailure(dAtA []byte, offset int, v uint64) int { + offset -= sovFailure(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Failure) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovFailure(uint64(l)) + } + if m.Id != 0 { + n += 1 + sovFailure(uint64(m.Id)) + } + l = len(m.AckType) + if l > 0 { + n += 1 + l + sovFailure(uint64(l)) + } + if m.Packet != nil { + l = m.Packet.Size() + n += 1 + l + sovFailure(uint64(l)) + } + if m.Ack != nil { + l = m.Ack.Size() + n += 1 + l + sovFailure(uint64(l)) + } + return n +} + +func sovFailure(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFailure(x uint64) (n int) { + return sovFailure(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Failure) 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 ErrIntOverflowFailure + } + 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: Failure: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + 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 ErrInvalidLengthFailure + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + 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 ErrInvalidLengthFailure + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AckType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFailure + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Packet == nil { + m.Packet = &types.Packet{} + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFailure + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ack == nil { + m.Ack = &types.Acknowledgement{} + } + if err := m.Ack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFailure(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFailure + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFailure(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, ErrIntOverflowFailure + } + 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, ErrIntOverflowFailure + } + 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, ErrIntOverflowFailure + } + 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, ErrInvalidLengthFailure + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFailure + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFailure + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFailure = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFailure = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFailure = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/contractmanager/types/genesis.pb.go b/x/contractmanager/types/genesis.pb.go index 29787641f..a40d4edc0 100644 --- a/x/contractmanager/types/genesis.pb.go +++ b/x/contractmanager/types/genesis.pb.go @@ -7,7 +7,6 @@ import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" - types "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" io "io" math "math" math_bits "math/bits" @@ -24,90 +23,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// Failure message contains information about ACK failures and can be used to -// replay ACK in case of requirement. -// Note that Failure means that sudo handler to cosmwasm contract failed for some reason -type Failure struct { - // Address of the failed contract - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Id of the failure under specific address - Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - // Acknowledgement type - AckType string `protobuf:"bytes,3,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` - // IBC Packet - Packet *types.Packet `protobuf:"bytes,4,opt,name=packet,proto3" json:"packet,omitempty"` - // Acknowledgement - Ack *types.Acknowledgement `protobuf:"bytes,5,opt,name=ack,proto3" json:"ack,omitempty"` -} - -func (m *Failure) Reset() { *m = Failure{} } -func (m *Failure) String() string { return proto.CompactTextString(m) } -func (*Failure) ProtoMessage() {} -func (*Failure) Descriptor() ([]byte, []int) { - return fileDescriptor_cf4a1534315a7490, []int{0} -} -func (m *Failure) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Failure.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 *Failure) XXX_Merge(src proto.Message) { - xxx_messageInfo_Failure.Merge(m, src) -} -func (m *Failure) XXX_Size() int { - return m.Size() -} -func (m *Failure) XXX_DiscardUnknown() { - xxx_messageInfo_Failure.DiscardUnknown(m) -} - -var xxx_messageInfo_Failure proto.InternalMessageInfo - -func (m *Failure) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Failure) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *Failure) GetAckType() string { - if m != nil { - return m.AckType - } - return "" -} - -func (m *Failure) GetPacket() *types.Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *Failure) GetAck() *types.Acknowledgement { - if m != nil { - return m.Ack - } - return nil -} - // GenesisState defines the contractmanager module's genesis state. type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` @@ -119,7 +34,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_cf4a1534315a7490, []int{1} + return fileDescriptor_cf4a1534315a7490, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -162,92 +77,8 @@ func (m *GenesisState) GetFailuresList() []Failure { return nil } -// Deprecated. Used only for migration purposes. -type OldFailure struct { - // ChannelId - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - // Address of the failed contract - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // id of the failure under specific address - Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` - // ACK id to restore - AckId uint64 `protobuf:"varint,4,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` - // Acknowledgement type - AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` -} - -func (m *OldFailure) Reset() { *m = OldFailure{} } -func (m *OldFailure) String() string { return proto.CompactTextString(m) } -func (*OldFailure) ProtoMessage() {} -func (*OldFailure) Descriptor() ([]byte, []int) { - return fileDescriptor_cf4a1534315a7490, []int{2} -} -func (m *OldFailure) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OldFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OldFailure.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 *OldFailure) XXX_Merge(src proto.Message) { - xxx_messageInfo_OldFailure.Merge(m, src) -} -func (m *OldFailure) XXX_Size() int { - return m.Size() -} -func (m *OldFailure) XXX_DiscardUnknown() { - xxx_messageInfo_OldFailure.DiscardUnknown(m) -} - -var xxx_messageInfo_OldFailure proto.InternalMessageInfo - -func (m *OldFailure) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - -func (m *OldFailure) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *OldFailure) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *OldFailure) GetAckId() uint64 { - if m != nil { - return m.AckId - } - return 0 -} - -func (m *OldFailure) GetAckType() string { - if m != nil { - return m.AckType - } - return "" -} - func init() { - proto.RegisterType((*Failure)(nil), "neutron.contractmanager.Failure") proto.RegisterType((*GenesisState)(nil), "neutron.contractmanager.GenesisState") - proto.RegisterType((*OldFailure)(nil), "neutron.contractmanager.OldFailure") } func init() { @@ -255,101 +86,23 @@ func init() { } var fileDescriptor_cf4a1534315a7490 = []byte{ - // 437 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6e, 0xd3, 0x30, - 0x1c, 0xc7, 0xeb, 0xf4, 0xcf, 0x98, 0x3b, 0x38, 0x58, 0x20, 0x42, 0x11, 0x59, 0xa8, 0x86, 0xd4, - 0x0b, 0xb6, 0xd6, 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x67, - 0xab, 0x14, 0x33, 0x5d, 0x12, 0xbf, 0xe3, 0x73, 0x6d, 0xb2, 0x6e, 0x26, 0x5f, 0x6e, 0x3c, 0xb0, - 0xba, 0xdf, 0xa6, 0xa3, 0xe6, 0xf5, 0x1c, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x59, 0xd9, 0x03, - 0xb9, 0xde, 0x02, 0x00, 0x00, -} - -func (m *Failure) 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 *Failure) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Ack != nil { - { - size, err := m.Ack.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Packet != nil { - { - size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.AckType) > 0 { - i -= len(m.AckType) - copy(dAtA[i:], m.AckType) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckType))) - i-- - dAtA[i] = 0x1a - } - if m.Id != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x10 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + // 249 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, + 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x35, 0x59, 0x37, 0xbf, 0x28, 0x1d, 0xc6, 0xd6, 0xaf, 0xc0, 0xf0, + 0x76, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xd7, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x20, 0x4a, 0xa0, 0xfc, 0x9a, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -399,60 +152,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *OldFailure) 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 *OldFailure) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OldFailure) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AckType) > 0 { - i -= len(m.AckType) - copy(dAtA[i:], m.AckType) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.AckType))) - i-- - dAtA[i] = 0x2a - } - if m.AckId != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.AckId)) - i-- - dAtA[i] = 0x20 - } - if m.Id != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { offset -= sovGenesis(v) base := offset @@ -464,34 +163,6 @@ func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *Failure) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Id != 0 { - n += 1 + sovGenesis(uint64(m.Id)) - } - l = len(m.AckType) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Packet != nil { - l = m.Packet.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Ack != nil { - l = m.Ack.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} - func (m *GenesisState) Size() (n int) { if m == nil { return 0 @@ -509,244 +180,12 @@ func (m *GenesisState) Size() (n int) { return n } -func (m *OldFailure) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Id != 0 { - n += 1 + sovGenesis(uint64(m.Id)) - } - if m.AckId != 0 { - n += 1 + sovGenesis(uint64(m.AckId)) - } - l = len(m.AckType) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} - func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozGenesis(x uint64) (n int) { return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Failure) 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 ErrIntOverflowGenesis - } - 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: Failure: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AckType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Packet == nil { - m.Packet = &types.Packet{} - } - if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Ack == nil { - m.Ack = &types.Acknowledgement{} - } - if err := m.Ack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *GenesisState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -864,190 +303,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } return nil } -func (m *OldFailure) 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 ErrIntOverflowGenesis - } - 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: OldFailure: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OldFailure: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AckId", wireType) - } - m.AckId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AckId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AckType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipGenesis(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/contractmanager/types/query.pb.go b/x/contractmanager/types/query.pb.go index 4e5dd940b..a4eea203d 100644 --- a/x/contractmanager/types/query.pb.go +++ b/x/contractmanager/types/query.pb.go @@ -229,37 +229,37 @@ func init() { } var fileDescriptor_f9524a427f219917 = []byte{ - // 478 bytes of a gzipped FileDescriptorProto + // 475 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x31, 0x6f, 0xd4, 0x30, - 0x14, 0xc7, 0xe3, 0x16, 0x8e, 0xe2, 0x0e, 0x48, 0xe6, 0x10, 0x51, 0x84, 0x72, 0xd7, 0x14, 0x68, + 0x1c, 0xc5, 0xe3, 0x16, 0x8e, 0xe2, 0x0e, 0x48, 0xe6, 0x10, 0xa7, 0x08, 0xe5, 0xda, 0x14, 0x68, 0xa1, 0x9c, 0xad, 0x5e, 0x25, 0x36, 0x06, 0x6e, 0x28, 0xeb, 0x11, 0x31, 0xb1, 0x39, 0xa9, 0x31, 0x91, 0x1a, 0x3b, 0xb5, 0x1d, 0xd4, 0x0a, 0xb1, 0x30, 0x33, 0x20, 0xc1, 0x47, 0x80, 0xef, 0xd2, - 0xb1, 0x12, 0x42, 0x62, 0x42, 0xe8, 0x8e, 0x0f, 0x82, 0xce, 0x76, 0x4a, 0xb9, 0x92, 0xb6, 0x53, - 0xb7, 0xc4, 0xf9, 0xbf, 0xf7, 0xff, 0xbd, 0xff, 0x73, 0xe0, 0xaa, 0x60, 0xb5, 0x51, 0x52, 0x90, - 0x5c, 0x0a, 0xa3, 0x68, 0x6e, 0x4a, 0x2a, 0x28, 0x67, 0x8a, 0xec, 0xd5, 0x4c, 0x1d, 0xe0, 0x4a, - 0x49, 0x23, 0xd1, 0x6d, 0x2f, 0xc2, 0x73, 0xa2, 0xa8, 0xcb, 0x25, 0x97, 0x56, 0x43, 0x66, 0x4f, - 0x4e, 0x1e, 0xdd, 0xe1, 0x52,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, + 0x62, 0x79, 0x70, 0xc6, 0xd4, 0x1c, 0x96, 0x4c, 0xa7, 0x1d, 0xfb, 0xf5, 0x6e, 0xff, 0x09, 0x00, + 0x00, 0xff, 0xff, 0x05, 0x7b, 0x9c, 0xb2, 0xaa, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/contractmanager/types/v1/failure.pb.go b/x/contractmanager/types/v1/failure.pb.go new file mode 100644 index 000000000..df2ffd000 --- /dev/null +++ b/x/contractmanager/types/v1/failure.pb.go @@ -0,0 +1,500 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: neutron/contractmanager/v1/failure.proto + +package v1 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Deprecated. Used only for migration purposes. +type Failure struct { + // ChannelId + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + // Address of the failed contract + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // id of the failure under specific address + Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` + // ACK id to restore + AckId uint64 `protobuf:"varint,4,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` + // Acknowledgement type + AckType string `protobuf:"bytes,5,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` +} + +func (m *Failure) Reset() { *m = Failure{} } +func (m *Failure) String() string { return proto.CompactTextString(m) } +func (*Failure) ProtoMessage() {} +func (*Failure) Descriptor() ([]byte, []int) { + return fileDescriptor_c0f2c436fd0f28b7, []int{0} +} +func (m *Failure) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Failure.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 *Failure) XXX_Merge(src proto.Message) { + xxx_messageInfo_Failure.Merge(m, src) +} +func (m *Failure) XXX_Size() int { + return m.Size() +} +func (m *Failure) XXX_DiscardUnknown() { + xxx_messageInfo_Failure.DiscardUnknown(m) +} + +var xxx_messageInfo_Failure proto.InternalMessageInfo + +func (m *Failure) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +func (m *Failure) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Failure) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Failure) GetAckId() uint64 { + if m != nil { + return m.AckId + } + return 0 +} + +func (m *Failure) GetAckType() string { + if m != nil { + return m.AckType + } + return "" +} + +func init() { + proto.RegisterType((*Failure)(nil), "neutron.contractmanager.v1.Failure") +} + +func init() { + proto.RegisterFile("neutron/contractmanager/v1/failure.proto", fileDescriptor_c0f2c436fd0f28b7) +} + +var fileDescriptor_c0f2c436fd0f28b7 = []byte{ + // 245 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, + 0x4c, 0x4f, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x4f, 0x4b, 0xcc, 0xcc, 0x29, 0x2d, 0x4a, 0xd5, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x82, 0xaa, 0xd4, 0x43, 0x53, 0xa9, 0x57, 0x66, 0xa8, 0xd4, + 0xc2, 0xc8, 0xc5, 0xee, 0x06, 0x51, 0x2d, 0x24, 0xcb, 0xc5, 0x95, 0x9c, 0x91, 0x98, 0x97, 0x97, + 0x9a, 0x13, 0x9f, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0xc4, 0x09, 0x15, 0xf1, 0x4c, + 0x11, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x02, 0xcb, 0xc1, + 0xb8, 0x42, 0x7c, 0x5c, 0x4c, 0x99, 0x29, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x4c, 0x99, + 0x29, 0x42, 0xa2, 0x5c, 0x6c, 0x89, 0xc9, 0xd9, 0x20, 0x43, 0x58, 0xc0, 0x62, 0xac, 0x89, 0xc9, + 0xd9, 0x9e, 0x29, 0x42, 0x92, 0x5c, 0x1c, 0x20, 0xe1, 0x92, 0xca, 0x82, 0x54, 0x09, 0x56, 0xa8, + 0x09, 0xc9, 0xd9, 0x21, 0x95, 0x05, 0xa9, 0x4e, 0xc1, 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, 0x65, 0x99, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, + 0xf5, 0x87, 0x6e, 0x7e, 0x51, 0x3a, 0x8c, 0xad, 0x5f, 0x81, 0xe1, 0x7f, 0x90, 0xf9, 0xc5, 0xfa, + 0x65, 0x86, 0x49, 0x6c, 0x60, 0xef, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x99, 0x53, 0x32, + 0xf9, 0x2a, 0x01, 0x00, 0x00, +} + +func (m *Failure) 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 *Failure) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AckType) > 0 { + i -= len(m.AckType) + copy(dAtA[i:], m.AckType) + i = encodeVarintFailure(dAtA, i, uint64(len(m.AckType))) + i-- + dAtA[i] = 0x2a + } + if m.AckId != 0 { + i = encodeVarintFailure(dAtA, i, uint64(m.AckId)) + i-- + dAtA[i] = 0x20 + } + if m.Id != 0 { + i = encodeVarintFailure(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintFailure(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintFailure(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintFailure(dAtA []byte, offset int, v uint64) int { + offset -= sovFailure(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Failure) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovFailure(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovFailure(uint64(l)) + } + if m.Id != 0 { + n += 1 + sovFailure(uint64(m.Id)) + } + if m.AckId != 0 { + n += 1 + sovFailure(uint64(m.AckId)) + } + l = len(m.AckType) + if l > 0 { + n += 1 + l + sovFailure(uint64(l)) + } + return n +} + +func sovFailure(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFailure(x uint64) (n int) { + return sovFailure(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Failure) 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 ErrIntOverflowFailure + } + 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: Failure: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + 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 ErrInvalidLengthFailure + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + 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 ErrInvalidLengthFailure + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AckId", wireType) + } + m.AckId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AckId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + 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 ErrInvalidLengthFailure + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AckType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFailure(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFailure + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFailure(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, ErrIntOverflowFailure + } + 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, ErrIntOverflowFailure + } + 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, ErrIntOverflowFailure + } + 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, ErrInvalidLengthFailure + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFailure + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFailure + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFailure = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFailure = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFailure = fmt.Errorf("proto: unexpected end of group") +) From 4c25c383a9661a703e5dbbfe9360c4841a3ab22d Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 22 Aug 2023 12:31:28 +0300 Subject: [PATCH 048/307] sudo call and test rework --- network/hermes/config.toml | 12 +-- x/interchaintxs/keeper/ibc_handlers.go | 33 +++--- x/interchaintxs/keeper/ibc_handlers_test.go | 21 ++-- x/transfer/ibc_handlers.go | 51 ++++------ x/transfer/ibc_handlers_test.go | 105 ++++---------------- 5 files changed, 71 insertions(+), 151 deletions(-) diff --git a/network/hermes/config.toml b/network/hermes/config.toml index 680206388..f7f2418cc 100644 --- a/network/hermes/config.toml +++ b/network/hermes/config.toml @@ -93,7 +93,7 @@ port = 3001 id = 'test-1' rpc_addr = 'http://127.0.0.1:26657' grpc_addr = 'http://127.0.0.1:8090' -websocket_addr = 'ws://127.0.0.1:26657/websocket' +event_source = { mode = 'push', url = 'ws://127.0.0.1:26657/websocket', batch_delay = '200ms' } rpc_timeout = '10s' account_prefix = 'neutron' key_name = 'testkey_1' @@ -101,21 +101,21 @@ store_prefix = 'ibc' default_gas = 100000 max_gas = 3000000 gas_price = { price = 0.0025, denom = 'untrn' } -gas_multiplier = 1.1 +gas_multiplier = 1.5 max_msg_num = 30 max_tx_size = 2097152 clock_drift = '5s' max_block_time = '10s' trusting_period = '14days' +ccv_consumer_chain = true trust_threshold = { numerator = '1', denominator = '3' } -unbonding_period = '20days' address_type = { derivation = 'cosmos' } [[chains]] id = 'test-2' rpc_addr = 'http://127.0.0.1:16657' grpc_addr = 'http://127.0.0.1:9090' -websocket_addr = 'ws://127.0.0.1:16657/websocket' +event_source = { mode = 'push', url = 'ws://127.0.0.1:16657/websocket', batch_delay = '200ms' } rpc_timeout = '10s' account_prefix = 'cosmos' key_name = 'testkey_2' @@ -123,11 +123,11 @@ store_prefix = 'ibc' default_gas = 100000 max_gas = 3000000 gas_price = { price = 0.0025, denom = 'uatom' } -gas_multiplier = 1.1 +gas_multiplier = 1.5 max_msg_num = 30 max_tx_size = 2097152 clock_drift = '5s' max_block_time = '10s' trusting_period = '14days' trust_threshold = { numerator = '1', denominator = '3' } -address_type = { derivation = 'cosmos' } +address_type = { derivation = 'cosmos' } \ No newline at end of file diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 096248786..213334e51 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -16,11 +16,6 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -const ( - // GasReserve is the amount of gas on the context gas meter we need to reserve in order to add contract failure to keeper - GasReserve = 15000 -) - // HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call. func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleAcknowledgment) @@ -39,6 +34,9 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) + // consume all the gas from the cached context + // we call the function this place function because we want to consume all the gas even in case of panic in SudoError/SudoResponse + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack") k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) @@ -59,8 +57,6 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack writeFn() } - // consume all the gas from the cached context - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") return nil } @@ -77,6 +73,9 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) + // consume all the gas from the cached context + // we call the function this place function because we want to consume all the gas even in case of panic in SudoTimeout + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout") k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) @@ -89,8 +88,6 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela writeFn() } - // consume all the gas from the cached context - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") return nil } @@ -148,12 +145,16 @@ func (k *Keeper) outOfGasRecovery( // createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. // If there is an error during Sudo call, we can safely revert changes made in cached context. -// panics if there is no enough gas for sudoCall + reserve +// panics if there is no enough gas for sudoCall func (k *Keeper) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { cacheCtx, writeFn := ctx.CacheContext() - + sudoLimit := k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit - if ctx.GasMeter().GasRemaining() < getGasReserve()+sudoLimit { + // NOTE: not sure that we really need this special check and panic + // with this kind of panic its clear what is going on by error text + // with this check, handle flow is not changed, but we get general panic during + // call ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") + if ctx.GasMeter().GasRemaining() < sudoLimit { panic(sdk.ErrorOutOfGas{Descriptor: fmt.Sprintf("%dgas - reserve for sudo call", sudoLimit)}) } @@ -163,11 +164,3 @@ func (k *Keeper) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk. return cacheCtx, writeFn, gasMeter } - -// TODO: calculate gas reserve in according to failure ack + packet size -// getGasReserve calculates the gas amount required to -// 1) Save failure ack, in case there is OutOfGas error or a regular error during sudoCall -// 2) Distribute ack fees -func getGasReserve() uint64 { - return GasReserve -} diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 21e3d9ce4..1096a70b0 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -15,7 +15,6 @@ import ( mock_types "github.com/neutron-org/neutron/testutil/mocks/interchaintxs/types" "github.com/neutron-org/neutron/x/contractmanager/types" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" - "github.com/neutron-org/neutron/x/interchaintxs/keeper" ) var ( @@ -92,7 +91,6 @@ func TestHandleAcknowledgement(t *testing.T) { err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - // TODO: add test to check gas consumption by AddFailure require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) // success during SudoError @@ -114,18 +112,16 @@ func TestHandleAcknowledgement(t *testing.T) { store := cachedCtx.KVStore(storeKey) store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(7001, "out of gas test") - }).Return(nil, fmt.Errorf("SudoError error")) + }) cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - // TODO: add test to check gas consumption by AddFailure - // TODO: consume sudogas even on out of gas from the contract? - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // due to out of gas recovery we consume 0 with a SudoError handler + require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) - // check we have ReserveGas reserved and + // check we have SudoCallGasLimit reserved and // check gas consumption from cachedCtx has added to the main ctx // one of the ways to check it - make the check during SudoResponse call ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -147,10 +143,9 @@ func TestHandleAcknowledgement(t *testing.T) { // not enough gas to reserve, tx aborted ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(keeper.GasReserve + 9000 - 1)) + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(9000 - 1)) cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "9000gas - reserve for sudo call"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } func TestHandleTimeout(t *testing.T) { @@ -216,9 +211,15 @@ func TestHandleTimeout(t *testing.T) { cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(6000), ctx.GasMeter().GasConsumed()) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + + // not enough gas to reserve, tx aborted + ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(9000 - 1)) + cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "9000gas - reserve for sudo call"}, func() { icak.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a panic test } func TestHandleChanOpenAck(t *testing.T) { diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index d4e96d6e8..939c788fa 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -13,14 +13,8 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -const ( - // We need to reserve this amount of gas on the context gas meter in order to add contract failure to keeper - GasReserve = 15000 -) - // HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call. func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { - // TODO: why do ever need whole logic for non contract, why dont exit early var ack channeltypes.Acknowledgement if err := channeltypes.SubModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet acknowledgement: %v", err) @@ -34,10 +28,19 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P if err != nil { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } + if !im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { + return nil + } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) + // consume all the gas from the cached context + // we call the function this place function because we want to consume all the gas even in case of panic in SudoResponse/SudoError + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack") + // distribute fee + im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) } else { @@ -56,13 +59,6 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P im.keeper.Logger(ctx).Debug("acknowledgement received", "Packet data", data, "CheckTx", ctx.IsCheckTx()) - // distribute fees only if the sender is a contract - if im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { - im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - // consume all the gas from the cached context - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - } - return nil } @@ -79,10 +75,19 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r if err != nil { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } + if !im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { + return nil + } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) + // consume all the gas from the cached context + // we call the function this place function because we want to consume all the gas even in case of panic in SudoTimeout + ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout") + // distribute fee + im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) if err != nil { im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "timeout") @@ -91,13 +96,6 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r writeFn() } - // distribute fee only if the sender is a contract - if im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { - im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - // consume all the gas from the cached context - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - } - return nil } @@ -117,18 +115,17 @@ func (im IBCModule) outOfGasRecovery( im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureType) - // FIXME: add distribution call } } // createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. // If there is an error during Sudo call, we can safely revert changes made in cached context. -// panics if there is no enough gas for sudoCall + reserve +// panics if there is no enough gas for sudoCall func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { cacheCtx, writeFn := ctx.CacheContext() sudoLimit := im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit - if ctx.GasMeter().GasRemaining() < getGasReserve()+sudoLimit { + if ctx.GasMeter().GasRemaining() < sudoLimit { panic(sdk.ErrorOutOfGas{Descriptor: fmt.Sprintf("%dgas - reserve for sudo call", sudoLimit)}) } @@ -138,11 +135,3 @@ func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), return cacheCtx, writeFn, gasMeter } - -// TODO: calculate gas reserve in according to failure ack + packet size -// getGasReserve calculates the gas amount required to -// 1) Save failure ack, in case there is OutOfGas error or a regular error during sudoCall -// 2) Distribute ack fees -func getGasReserve() uint64 { - return GasReserve -} diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 8e8fa3bb4..5f82e3789 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -94,14 +94,8 @@ func TestHandleAcknowledgement(t *testing.T) { require.NoError(t, err) p.Data = tokenBz - // error during SudoResponse non contract + //// error during SudoResponse non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 - }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 4000}) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) @@ -125,14 +119,7 @@ func TestHandleAcknowledgement(t *testing.T) { // error during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 - }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) @@ -155,15 +142,9 @@ func TestHandleAcknowledgement(t *testing.T) { // success during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudoerror_non_contract"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror_non_contract"))) require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // success during SudoError contract @@ -182,18 +163,7 @@ func TestHandleAcknowledgement(t *testing.T) { // recoverable out of gas during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(10001, "out of gas test") - }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") - // FIXME: fix distribution during outofgas - // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // recoverable out of gas during SudoError contract @@ -206,38 +176,26 @@ func TestHandleAcknowledgement(t *testing.T) { cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "ack") cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 11000}) // FIXME: fix distribution during outofgas - // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(11000), ctx.GasMeter().GasConsumed()) // check we have ReserveGas reserved and // check gas consumption from cachedCtx has added to the main ctx // one of the ways to check it - make the check during SudoResponse call // non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - gasReserved := false - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - if cachedCtx.GasMeter().Limit() == 12000 { - gasReserved = true - } - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudoresponse_non_contract_success"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 12000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - // feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - require.True(t, gasReserved) require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse_non_contract_success"))) // contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - gasReserved = false + gasReserved := false cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { if cachedCtx.GasMeter().Limit() == 13000 { gasReserved = true @@ -254,12 +212,11 @@ func TestHandleAcknowledgement(t *testing.T) { require.Equal(t, uint64(13000), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse_contract_success"))) - // not enough gas to reserve + not enough to make AddContractFailure failure after panic recover + // not enough gas to reserve SudoCallGasLimit + not enough to make AddContractFailure failure after panic recover lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) - // feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().HasContractInfo(lowGasCtx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "14000gas - reserve for sudo call"}, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } func TestHandleTimeout(t *testing.T) { @@ -299,8 +256,6 @@ func TestHandleTimeout(t *testing.T) { err = txModule.HandleTimeout(ctx, p, relayerAddress) require.ErrorContains(t, err, "failed to decode address from bech32") - // success non contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) token = transfertypes.FungibleTokenPacketData{ Denom: "stake", Amount: "1000", @@ -310,25 +265,17 @@ func TestHandleTimeout(t *testing.T) { tokenBz, err = ictxtypes.ModuleCdc.MarshalJSON(&token) require.NoError(t, err) p.Data = tokenBz - gasReserved := false - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - if cachedCtx.GasMeter().Limit() == 5000 { - gasReserved = true - } - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudotimeout_non_contract_success"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) + + // success non contract + ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.True(t, gasReserved) require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) require.NoError(t, err) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout_non_contract_success"))) // success contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - gasReserved = false + gasReserved := false cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { if cachedCtx.GasMeter().Limit() == 5000 { gasReserved = true @@ -347,16 +294,9 @@ func TestHandleTimeout(t *testing.T) { // error during SudoTimeOut non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // error during SudoTimeOut contract @@ -376,17 +316,9 @@ func TestHandleTimeout(t *testing.T) { // out of gas during SudoTimeOut non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(8001, "out of gas test") - }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) - // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // out of gas during SudoTimeOut contract @@ -398,11 +330,16 @@ func TestHandleTimeout(t *testing.T) { }).Return(nil, fmt.Errorf("SudoTimeout error")) cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) - // FIXME: make DistributeTimeoutFee during out of gas - // cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - // feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(8000), ctx.GasMeter().GasConsumed()) + + // not enough gas to reserve SudoCallGasLimit + not enough to make AddContractFailure failure after panic recover + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) + cmKeeper.EXPECT().HasContractInfo(lowGasCtx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "14000gas - reserve for sudo call"}, func() { txModule.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a test } From 8d5ea40c705ce085c66384e79f3ca21584e52fc8 Mon Sep 17 00:00:00 2001 From: nhpd Date: Tue, 22 Aug 2023 17:07:38 +0400 Subject: [PATCH 049/307] add interchain suite test --- tests/e2e/rewards_test.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/e2e/rewards_test.go diff --git a/tests/e2e/rewards_test.go b/tests/e2e/rewards_test.go new file mode 100644 index 000000000..51b3bcc52 --- /dev/null +++ b/tests/e2e/rewards_test.go @@ -0,0 +1,28 @@ +package e2e + +import ( + "github.com/neutron-org/neutron/testutil" + "github.com/stretchr/testify/suite" + "testing" +) + +type RewardsTestSuite struct { + testutil.IBCConnectionTestSuite +} + +func TestRewards(t *testing.T) { + suite.Run(t, new(RewardsTestSuite)) +} + +func (suite *RewardsTestSuite) TestOnRecvPacketHooks() { + suite.ConfigureTransferChannel() + neutron := suite.GetNeutronZoneApp(suite.ChainA) + + // so we have a connection + suite. + suite.TransferPath.EndpointA.ChannelID + + // we need to make a transaction with non-untrn fees + + // after that check that we transferred fees to the specified address +} From 805576207f819761f2ed424865aba592e8783fd9 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 22 Aug 2023 16:34:31 +0300 Subject: [PATCH 050/307] go mod tidy --- go.sum | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go.sum b/go.sum index ca3af2c87..1f759e18a 100644 --- a/go.sum +++ b/go.sum @@ -807,7 +807,6 @@ github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= @@ -921,7 +920,6 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= @@ -942,6 +940,9 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= +github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= From 3a21f420b626ea5bf098b0620931870d335b21a8 Mon Sep 17 00:00:00 2001 From: nhpd Date: Tue, 22 Aug 2023 20:01:42 +0400 Subject: [PATCH 051/307] cleanup --- app/upgrades/nextupgrade/upgrades.go | 4 ++-- x/contractmanager/module.go | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index ad1c1e387..ebbe74b9b 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -18,8 +18,8 @@ func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *upgrades.UpgradeKeepers, - storeKeys upgrades.StoreKeys, - cdc codec.Codec, + _ upgrades.StoreKeys, + _ codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("Starting module migrations...") diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index 9fde1514c..c9f11ba1b 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -156,9 +156,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { - return 2 -} +func (AppModule) ConsensusVersion() uint64 { return 2 } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} From 28e9186db20f53fa4b609e868850bde51f4f0023 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 23 Aug 2023 11:38:48 +0400 Subject: [PATCH 052/307] wip --- x/tokenfactory/keeper/keeper.go | 44 +- x/tokenfactory/types/authorityMetadata.pb.go | 20 +- x/tokenfactory/types/before_send.go | 25 + x/tokenfactory/types/codec.go | 20 +- x/tokenfactory/types/constants.go | 5 + x/tokenfactory/types/denoms.go | 33 +- x/tokenfactory/types/denoms_test.go | 117 +- x/tokenfactory/types/errors.go | 24 +- x/tokenfactory/types/events.go | 22 +- x/tokenfactory/types/expected_keepers.go | 23 +- x/tokenfactory/types/genesis.go | 6 +- x/tokenfactory/types/genesis.pb.go | 17 +- x/tokenfactory/types/genesis_test.go | 27 +- x/tokenfactory/types/keys.go | 15 +- x/tokenfactory/types/msgs.go | 219 ++- x/tokenfactory/types/msgs_test.go | 450 +++++ x/tokenfactory/types/params.go | 51 +- x/tokenfactory/types/params.pb.go | 103 +- x/tokenfactory/types/query.pb.go | 547 +++++- x/tokenfactory/types/query.pb.gw.go | 141 +- x/tokenfactory/types/tx.pb.go | 1693 ++++++++++++++++-- 21 files changed, 3056 insertions(+), 546 deletions(-) create mode 100644 x/tokenfactory/types/before_send.go create mode 100644 x/tokenfactory/types/constants.go create mode 100644 x/tokenfactory/types/msgs_test.go diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 74002c57f..3724efb0c 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -3,40 +3,50 @@ package keeper import ( "fmt" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cometbft/cometbft/libs/log" - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" + storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/tokenfactory/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) type ( Keeper struct { - cdc codec.Codec - storeKey storetypes.StoreKey - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper + storeKey storetypes.StoreKey + + paramSpace paramtypes.Subspace + + accountKeeper types.AccountKeeper + bankKeeper types.BankKeeper + contractKeeper types.ContractKeeper + + communityPoolKeeper types.CommunityPoolKeeper } ) // NewKeeper returns a new instance of the x/tokenfactory keeper func NewKeeper( - cdc codec.Codec, storeKey storetypes.StoreKey, + paramSpace paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, + communityPoolKeeper types.CommunityPoolKeeper, ) Keeper { + if !paramSpace.HasKeyTable() { + paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable()) + } + return Keeper{ - cdc: cdc, - storeKey: storeKey, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, + storeKey: storeKey, + paramSpace: paramSpace, + + accountKeeper: accountKeeper, + bankKeeper: bankKeeper, + communityPoolKeeper: communityPoolKeeper, } } @@ -63,11 +73,15 @@ func (k Keeper) GetCreatorsPrefixStore(ctx sdk.Context) sdk.KVStore { return prefix.NewStore(store, types.GetCreatorsPrefix()) } +// Set the wasm keeper. +func (k *Keeper) SetContractKeeper(contractKeeper types.ContractKeeper) { + k.contractKeeper = contractKeeper +} + // CreateModuleAccount creates a module account with minting and burning capabilities // This account isn't intended to store any coins, // it purely mints and burns them on behalf of the admin of respective denoms, // and sends to the relevant address. func (k Keeper) CreateModuleAccount(ctx sdk.Context) { - moduleAcc := authtypes.NewEmptyModuleAccount(types.ModuleName, authtypes.Minter, authtypes.Burner) - k.accountKeeper.SetModuleAccount(ctx, moduleAcc) + k.accountKeeper.GetModuleAccount(ctx, types.ModuleName) } diff --git a/x/tokenfactory/types/authorityMetadata.pb.go b/x/tokenfactory/types/authorityMetadata.pb.go index 5f0c39198..546b24ead 100644 --- a/x/tokenfactory/types/authorityMetadata.pb.go +++ b/x/tokenfactory/types/authorityMetadata.pb.go @@ -6,8 +6,8 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" @@ -29,7 +29,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // permission, but is planned to be extended to the future. type DenomAuthorityMetadata struct { // Can be empty for no admin, or a valid osmosis address - Admin string `protobuf:"bytes,1,opt,name=Admin,proto3" json:"Admin,omitempty" yaml:"admin"` + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"` } func (m *DenomAuthorityMetadata) Reset() { *m = DenomAuthorityMetadata{} } @@ -89,14 +89,14 @@ var fileDescriptor_99435de88ae175f7 = []byte{ 0x17, 0x92, 0x81, 0xea, 0xd2, 0x43, 0xd6, 0xa5, 0x07, 0xd5, 0x25, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa8, 0x0f, 0x62, 0x41, 0xf4, 0x48, 0xc9, 0x25, 0x83, 0x35, 0xe9, 0x27, 0x25, 0x16, 0xa7, 0xc2, 0x2d, 0x48, 0xce, 0xcf, 0xcc, 0x83, 0xc8, 0x2b, 0xb9, 0x71, 0x89, 0xb9, 0xa4, 0xe6, - 0xe5, 0xe7, 0x3a, 0xa2, 0xdb, 0x29, 0xa4, 0xc6, 0xc5, 0xea, 0x98, 0x92, 0x9b, 0x99, 0x27, 0xc1, + 0xe5, 0xe7, 0x3a, 0xa2, 0xdb, 0x29, 0xa4, 0xc6, 0xc5, 0x9a, 0x98, 0x92, 0x9b, 0x99, 0x27, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0xe9, 0x24, 0xf0, 0xe9, 0x9e, 0x3c, 0x4f, 0x65, 0x62, 0x6e, 0x8e, 0x95, - 0x52, 0x22, 0x48, 0x58, 0x29, 0x08, 0x22, 0x6d, 0xc5, 0xf2, 0x62, 0x81, 0x3c, 0xa3, 0x93, 0xef, - 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, 0x19, 0xa7, 0x67, 0x96, 0x64, 0x94, - 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xe7, 0xa5, 0x96, 0x96, 0x14, 0xe5, 0xe7, 0xe9, 0xe6, 0x17, - 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0xa8, 0x81, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, - 0x9d, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x08, 0x3a, 0x4a, 0xc1, 0x29, 0x01, 0x00, 0x00, + 0x12, 0x58, 0x58, 0x29, 0x08, 0x22, 0x6d, 0xc5, 0xf2, 0x62, 0x81, 0x3c, 0xa3, 0x53, 0xd0, 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, 0x59, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, + 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x3d, 0xa0, 0x9b, 0x93, 0x98, 0x54, 0x0c, 0xe3, 0xe8, 0x97, + 0x19, 0x9a, 0xeb, 0x57, 0xa0, 0x86, 0x44, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x89, + 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xa0, 0x40, 0xce, 0x2e, 0x01, 0x00, 0x00, } func (this *DenomAuthorityMetadata) Equal(that interface{}) bool { diff --git a/x/tokenfactory/types/before_send.go b/x/tokenfactory/types/before_send.go new file mode 100644 index 000000000..e816a24e5 --- /dev/null +++ b/x/tokenfactory/types/before_send.go @@ -0,0 +1,25 @@ +package types + +import ( + wasmvmtypes "github.com/CosmWasm/wasmvm/types" +) + +type BlockBeforeSendSudoMsg struct { + BlockBeforeSend BlockBeforeSendMsg `json:"block_before_send,omitempty"` +} + +type TrackBeforeSendSudoMsg struct { + TrackBeforeSend TrackBeforeSendMsg `json:"track_before_send"` +} + +type TrackBeforeSendMsg struct { + From string `json:"from"` + To string `json:"to"` + Amount wasmvmtypes.Coin `json:"amount"` +} + +type BlockBeforeSendMsg struct { + From string `json:"from"` + To string `json:"to"` + Amount wasmvmtypes.Coin `json:"amount"` +} diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 7b1c1413b..4945c0f1c 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -4,6 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" + authzcodec "github.com/cosmos/cosmos-sdk/x/authz/codec" // this line is used by starport scaffolding # 1 "github.com/cosmos/cosmos-sdk/types/msgservice" @@ -13,8 +14,9 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgCreateDenom{}, "osmosis/tokenfactory/create-denom", nil) cdc.RegisterConcrete(&MsgMint{}, "osmosis/tokenfactory/mint", nil) cdc.RegisterConcrete(&MsgBurn{}, "osmosis/tokenfactory/burn", nil) - // cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) + cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) cdc.RegisterConcrete(&MsgChangeAdmin{}, "osmosis/tokenfactory/change-admin", nil) + cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -25,8 +27,22 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgBurn{}, // &MsgForceTransfer{}, &MsgChangeAdmin{}, + &MsgSetBeforeSendHook{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } -var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) +var ( + amino = codec.NewLegacyAmino() + ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) +) + +func init() { + RegisterCodec(amino) + // Register all Amino interfaces and concrete types on the authz Amino codec so that this can later be + // used to properly serialize MsgGrant and MsgExec instances + sdk.RegisterLegacyAminoCodec(amino) + RegisterCodec(authzcodec.Amino) + + amino.Seal() +} diff --git a/x/tokenfactory/types/constants.go b/x/tokenfactory/types/constants.go new file mode 100644 index 000000000..7cfe7cd30 --- /dev/null +++ b/x/tokenfactory/types/constants.go @@ -0,0 +1,5 @@ +package types + +var ( + TrackBeforeSendGasLimit = uint64(100_000) +) diff --git a/x/tokenfactory/types/denoms.go b/x/tokenfactory/types/denoms.go index 1698c2774..658399856 100644 --- a/x/tokenfactory/types/denoms.go +++ b/x/tokenfactory/types/denoms.go @@ -1,13 +1,10 @@ package types import ( - fmt "fmt" "strings" - "cosmossdk.io/errors" - + errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" ) const ( @@ -28,7 +25,7 @@ func GetTokenDenom(creator, subdenom string) (string, error) { if len(subdenom) > MaxSubdenomLength { return "", ErrSubdenomTooLong } - if len(subdenom) > MaxCreatorLength { + if len(creator) > MaxCreatorLength { return "", ErrCreatorTooLong } if strings.Contains(creator, "/") { @@ -41,7 +38,7 @@ func GetTokenDenom(creator, subdenom string) (string, error) { // DeconstructDenom takes a token denom string and verifies that it is a valid // denom of the tokenfactory module, and is of the form `factory/{creator}/{subdenom}` // If valid, it returns the creator address and subdenom -func DeconstructDenom(denom string) (creator, subdenom string, err error) { +func DeconstructDenom(denom string) (creator string, subdenom string, err error) { err = sdk.ValidateDenom(denom) if err != nil { return "", "", err @@ -49,17 +46,17 @@ func DeconstructDenom(denom string) (creator, subdenom string, err error) { strParts := strings.Split(denom, "/") if len(strParts) < 3 { - return "", "", errors.Wrapf(ErrInvalidDenom, "not enough parts of denom %s", denom) + return "", "", errorsmod.Wrapf(ErrInvalidDenom, "not enough parts of denom %s", denom) } if strParts[0] != ModuleDenomPrefix { - return "", "", errors.Wrapf(ErrInvalidDenom, "denom prefix is incorrect. Is: %s. Should be: %s", strParts[0], ModuleDenomPrefix) + return "", "", errorsmod.Wrapf(ErrInvalidDenom, "denom prefix is incorrect. Is: %s. Should be: %s", strParts[0], ModuleDenomPrefix) } creator = strParts[1] - _, err = sdk.AccAddressFromBech32(creator) + creatorAddr, err := sdk.AccAddressFromBech32(creator) if err != nil { - return "", "", errors.Wrapf(ErrInvalidDenom, "Invalid creator address (%s)", err) + return "", "", errorsmod.Wrapf(ErrInvalidDenom, "Invalid creator address (%s)", err) } // Handle the case where a denom has a slash in its subdenom. For example, @@ -67,19 +64,5 @@ func DeconstructDenom(denom string) (creator, subdenom string, err error) { // So we have to join [2:] with a "/" as the delimiter to get back the correct subdenom which should be "atomderivative/sikka" subdenom = strings.Join(strParts[2:], "/") - return creator, subdenom, nil -} - -// NewTokenFactoryDenomMintCoinsRestriction creates and returns a BankMintingRestrictionFn that only allows minting of -// valid tokenfactory denoms -func NewTokenFactoryDenomMintCoinsRestriction() bankkeeper.MintingRestrictionFn { - return func(ctx sdk.Context, coinsToMint sdk.Coins) error { - for _, coin := range coinsToMint { - _, _, err := DeconstructDenom(coin.Denom) - if err != nil { - return fmt.Errorf("does not have permission to mint %s", coin.Denom) - } - } - return nil - } + return creatorAddr.String(), subdenom, nil } diff --git a/x/tokenfactory/types/denoms_test.go b/x/tokenfactory/types/denoms_test.go index 1950dca81..d3f21d28b 100644 --- a/x/tokenfactory/types/denoms_test.go +++ b/x/tokenfactory/types/denoms_test.go @@ -5,55 +5,122 @@ import ( "github.com/stretchr/testify/require" - "github.com/neutron-org/neutron/app" - "github.com/neutron-org/neutron/x/tokenfactory/types" + appparams "github.com/osmosis-labs/osmosis/v17/app/params" + "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" ) -func TestDecomposeDenoms(t *testing.T) { - app.GetDefaultConfig() +func TestDeconstructDenom(t *testing.T) { + appparams.SetAddressPrefixes() + for _, tc := range []struct { - desc string - denom string - valid bool + desc string + denom string + expectedSubdenom string + err error }{ { desc: "empty is invalid", denom: "", - valid: false, + err: types.ErrInvalidDenom, }, { - desc: "normal", - denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", - valid: true, + desc: "normal", + denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", + expectedSubdenom: "bitcoin", }, { - desc: "multiple slashes in subdenom", - denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin/1", - valid: true, + desc: "multiple slashes in subdenom", + denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin/1", + expectedSubdenom: "bitcoin/1", }, { - desc: "no subdenom", - denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/", - valid: true, + desc: "no subdenom", + denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/", + expectedSubdenom: "", }, { desc: "incorrect prefix", - denom: "ibc/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", - valid: false, + denom: "ibc/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", + err: types.ErrInvalidDenom, }, { - desc: "subdenom of only slashes", - denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/////", - valid: true, + desc: "subdenom of only slashes", + denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/////", + expectedSubdenom: "////", }, { desc: "too long name", - denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/adsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsf", - valid: false, + denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/adsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsf", + err: types.ErrInvalidDenom, + }, + } { + t.Run(tc.desc, func(t *testing.T) { + expectedCreator := "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44" + creator, subdenom, err := types.DeconstructDenom(tc.denom) + if tc.err != nil { + require.ErrorContains(t, err, tc.err.Error()) + } else { + require.NoError(t, err) + require.Equal(t, expectedCreator, creator) + require.Equal(t, tc.expectedSubdenom, subdenom) + } + }) + } +} + +func TestGetTokenDenom(t *testing.T) { + appparams.SetAddressPrefixes() + for _, tc := range []struct { + desc string + creator string + subdenom string + valid bool + }{ + { + desc: "normal", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", + subdenom: "bitcoin", + valid: true, + }, + { + desc: "multiple slashes in subdenom", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", + subdenom: "bitcoin/1", + valid: true, + }, + { + desc: "no subdenom", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", + subdenom: "", + valid: true, + }, + { + desc: "subdenom of only slashes", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", + subdenom: "/////", + valid: true, + }, + { + desc: "too long name", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", + subdenom: "adsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsf", + valid: false, + }, + { + desc: "subdenom is exactly max length", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", + subdenom: "bitcoinfsadfsdfeadfsafwefsefsefsdfsdafasefsf", + valid: true, + }, + { + desc: "creator is exactly max length", + creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44jhgjhgkhjklhkjhkjhgjhgjgjghelugt", + subdenom: "bitcoin", + valid: true, }, } { t.Run(tc.desc, func(t *testing.T) { - _, _, err := types.DeconstructDenom(tc.denom) + _, err := types.GetTokenDenom(tc.creator, tc.subdenom) if tc.valid { require.NoError(t, err) } else { diff --git a/x/tokenfactory/types/errors.go b/x/tokenfactory/types/errors.go index ef46d16ca..aa78ca24a 100644 --- a/x/tokenfactory/types/errors.go +++ b/x/tokenfactory/types/errors.go @@ -5,20 +5,20 @@ package types import ( fmt "fmt" - "cosmossdk.io/errors" + errorsmod "cosmossdk.io/errors" ) // x/tokenfactory module sentinel errors var ( - ErrDenomExists = errors.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)") - ErrUnauthorized = errors.Register(ModuleName, 3, "unauthorized account") - ErrInvalidDenom = errors.Register(ModuleName, 4, "invalid denom") - ErrInvalidCreator = errors.Register(ModuleName, 5, "invalid creator") - ErrInvalidAuthorityMetadata = errors.Register(ModuleName, 6, "invalid authority metadata") - ErrInvalidGenesis = errors.Register(ModuleName, 7, "invalid genesis") - ErrSubdenomTooLong = errors.Register(ModuleName, 8, fmt.Sprintf("subdenom too long, max length is %d bytes", MaxSubdenomLength)) - ErrCreatorTooLong = errors.Register(ModuleName, 9, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength)) - ErrDenomDoesNotExist = errors.Register(ModuleName, 10, "denom does not exist") - ErrUnableToCharge = errors.Register(ModuleName, 11, "unable to charge for denom creation") - ErrTokenDenom = errors.Register(ModuleName, 13, "wrong token denom") + ErrDenomExists = errorsmod.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)") + ErrUnauthorized = errorsmod.Register(ModuleName, 3, "unauthorized account") + ErrInvalidDenom = errorsmod.Register(ModuleName, 4, "invalid denom") + ErrInvalidCreator = errorsmod.Register(ModuleName, 5, "invalid creator") + ErrInvalidAuthorityMetadata = errorsmod.Register(ModuleName, 6, "invalid authority metadata") + ErrInvalidGenesis = errorsmod.Register(ModuleName, 7, "invalid genesis") + ErrSubdenomTooLong = errorsmod.Register(ModuleName, 8, fmt.Sprintf("subdenom too long, max length is %d bytes", MaxSubdenomLength)) + ErrCreatorTooLong = errorsmod.Register(ModuleName, 9, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength)) + ErrDenomDoesNotExist = errorsmod.Register(ModuleName, 10, "denom does not exist") + ErrBurnFromModuleAccount = errorsmod.Register(ModuleName, 11, "burning from Module Account is not allowed") + ErrTrackBeforeSendOutOfGas = errorsmod.Register(ModuleName, 12, "gas meter hit maximum limit") ) diff --git a/x/tokenfactory/types/events.go b/x/tokenfactory/types/events.go index 08666118b..0ccec062f 100644 --- a/x/tokenfactory/types/events.go +++ b/x/tokenfactory/types/events.go @@ -2,14 +2,16 @@ package types // event types const ( - AttributeAmount = "amount" - AttributeCreator = "creator" - AttributeSubdenom = "subdenom" - AttributeNewTokenDenom = "new_token_denom" //nolint:all - AttributeMintToAddress = "mint_to_address" - AttributeBurnFromAddress = "burn_from_address" - AttributeTransferFromAddress = "transfer_from_address" - AttributeTransferToAddress = "transfer_to_address" - AttributeDenom = "denom" - AttributeNewAdmin = "new_admin" + AttributeAmount = "amount" + AttributeCreator = "creator" + AttributeSubdenom = "subdenom" + AttributeNewTokenDenom = "new_token_denom" + AttributeMintToAddress = "mint_to_address" + AttributeBurnFromAddress = "burn_from_address" + AttributeTransferFromAddress = "transfer_from_address" + AttributeTransferToAddress = "transfer_to_address" + AttributeDenom = "denom" + AttributeNewAdmin = "new_admin" + AttributeDenomMetadata = "denom_metadata" + AttributeBeforeSendHookAddress = "before_send_hook_address" ) diff --git a/x/tokenfactory/types/expected_keepers.go b/x/tokenfactory/types/expected_keepers.go index b2c359711..5c3a1491c 100644 --- a/x/tokenfactory/types/expected_keepers.go +++ b/x/tokenfactory/types/expected_keepers.go @@ -15,22 +15,29 @@ type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error - DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error - UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error - SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error - GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool } type AccountKeeper interface { - GetModuleAddress(name string) sdk.AccAddress - SetModuleAccount(ctx sdk.Context, macc authtypes.ModuleAccountI) GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI + GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI } -// DistrKeeper defines the contract needed to be fulfilled for distribution keeper. -type DistrKeeper interface { +// BankHooks event hooks +type BankHooks interface { + TrackBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) // Must be before any send is executed + BlockBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) error // Must be before any send is executed +} + +// CommunityPoolKeeper defines the contract needed to be fulfilled for community pool interactions. +type CommunityPoolKeeper interface { FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error } + +type ContractKeeper interface { + Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) +} diff --git a/x/tokenfactory/types/genesis.go b/x/tokenfactory/types/genesis.go index 3c4bdb6da..aef9370cc 100644 --- a/x/tokenfactory/types/genesis.go +++ b/x/tokenfactory/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - "cosmossdk.io/errors" + errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -30,7 +30,7 @@ func (gs GenesisState) Validate() error { for _, denom := range gs.GetFactoryDenoms() { if seenDenoms[denom.GetDenom()] { - return errors.Wrapf(ErrInvalidGenesis, "duplicate denom: %s", denom.GetDenom()) + return errorsmod.Wrapf(ErrInvalidGenesis, "duplicate denom: %s", denom.GetDenom()) } seenDenoms[denom.GetDenom()] = true @@ -42,7 +42,7 @@ func (gs GenesisState) Validate() error { if denom.AuthorityMetadata.Admin != "" { _, err = sdk.AccAddressFromBech32(denom.AuthorityMetadata.Admin) if err != nil { - return errors.Wrapf(ErrInvalidAuthorityMetadata, "Invalid admin address (%s)", err) + return errorsmod.Wrapf(ErrInvalidAuthorityMetadata, "Invalid admin address (%s)", err) } } } diff --git a/x/tokenfactory/types/genesis.pb.go b/x/tokenfactory/types/genesis.pb.go index e3471a9ef..2ce6a0384 100644 --- a/x/tokenfactory/types/genesis.pb.go +++ b/x/tokenfactory/types/genesis.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" @@ -77,6 +77,9 @@ func (m *GenesisState) GetFactoryDenoms() []GenesisDenom { return nil } +// GenesisDenom defines a tokenfactory denom that is defined within genesis +// state. The structure contains DenomAuthorityMetadata which defines the +// denom's admin. type GenesisDenom struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` AuthorityMetadata DenomAuthorityMetadata `protobuf:"bytes,2,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"` @@ -157,12 +160,12 @@ var fileDescriptor_5749c3f71850298b = []byte{ 0xe0, 0xd3, 0x3d, 0x79, 0x1e, 0x88, 0x49, 0x60, 0x61, 0xa5, 0x20, 0x88, 0xb4, 0x50, 0x1b, 0x23, 0x97, 0x10, 0x3c, 0x18, 0xe3, 0x73, 0xa1, 0xe1, 0x28, 0xc1, 0x04, 0xf6, 0xbb, 0x09, 0x7e, 0xf7, 0x82, 0x6d, 0x72, 0x44, 0x8f, 0x03, 0x27, 0x45, 0xa8, 0xcb, 0x25, 0x21, 0xf6, 0x61, 0x9a, 0xae, - 0x14, 0x24, 0x88, 0x11, 0x73, 0x56, 0x2c, 0x2f, 0x16, 0xc8, 0x33, 0x3a, 0xf9, 0x9e, 0x78, 0x24, + 0x14, 0x24, 0x88, 0x11, 0x73, 0x56, 0x2c, 0x2f, 0x16, 0xc8, 0x33, 0x3a, 0x05, 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, 0x71, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, - 0x72, 0x7e, 0xae, 0x7e, 0x5e, 0x6a, 0x69, 0x49, 0x51, 0x7e, 0x9e, 0x6e, 0x7e, 0x51, 0x3a, 0x8c, - 0xad, 0x5f, 0x81, 0x1a, 0xd9, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x48, 0x36, 0x06, - 0x04, 0x00, 0x00, 0xff, 0xff, 0x88, 0xdf, 0xa5, 0xe7, 0xa7, 0x02, 0x00, 0x00, + 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x45, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, + 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x55, 0xba, 0x39, 0x89, 0x49, 0xc5, 0x30, 0x8e, 0x7e, 0x99, 0xa1, + 0xb9, 0x7e, 0x05, 0x6a, 0x8c, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x63, 0xda, 0x18, + 0x10, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x86, 0xb1, 0xa7, 0xac, 0x02, 0x00, 0x00, } func (this *GenesisDenom) Equal(that interface{}) bool { diff --git a/x/tokenfactory/types/genesis_test.go b/x/tokenfactory/types/genesis_test.go index 5fb4ef794..d9392c26d 100644 --- a/x/tokenfactory/types/genesis_test.go +++ b/x/tokenfactory/types/genesis_test.go @@ -5,13 +5,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/neutron-org/neutron/app" - "github.com/neutron-org/neutron/x/tokenfactory/types" + "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" ) func TestGenesisState_Validate(t *testing.T) { - app.GetDefaultConfig() - for _, tc := range []struct { desc string genState *types.GenesisState @@ -27,9 +24,9 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2", + Admin: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", }, }, }, @@ -41,9 +38,9 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2", + Admin: "osmo1ft6e5esdtdegnvcr3djd3ftk4kwpcr6jrx5fj9", }, }, }, @@ -55,7 +52,7 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ Admin: "", }, @@ -69,7 +66,7 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", }, }, }, @@ -80,7 +77,7 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ Admin: "moose", }, @@ -94,13 +91,13 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ Admin: "", }, }, { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/litecoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/litecoin", AuthorityMetadata: types.DenomAuthorityMetadata{ Admin: "", }, @@ -114,13 +111,13 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ FactoryDenoms: []types.GenesisDenom{ { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ Admin: "", }, }, { - Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", AuthorityMetadata: types.DenomAuthorityMetadata{ Admin: "", }, diff --git a/x/tokenfactory/types/keys.go b/x/tokenfactory/types/keys.go index 303966f66..dd2ed9fe4 100644 --- a/x/tokenfactory/types/keys.go +++ b/x/tokenfactory/types/keys.go @@ -22,17 +22,14 @@ const ( ) // KeySeparator is used to combine parts of the keys in the store -const ( - KeySeparator = "|" - prefixParamsKey = iota + 1 -) +const KeySeparator = "|" var ( - DenomAuthorityMetadataKey = "authoritymetadata" - DenomsPrefixKey = "denoms" - CreatorPrefixKey = "creator" - AdminPrefixKey = "admin" - ParamsKey = []byte{prefixParamsKey} + DenomAuthorityMetadataKey = "authoritymetadata" + DenomsPrefixKey = "denoms" + CreatorPrefixKey = "creator" + AdminPrefixKey = "admin" + BeforeSendHookAddressPrefixKey = "beforesendhook" ) // GetDenomPrefixStore returns the store prefix where all the data associated with a specific denom diff --git a/x/tokenfactory/types/msgs.go b/x/tokenfactory/types/msgs.go index ae0a7e057..9ee67c9a5 100644 --- a/x/tokenfactory/types/msgs.go +++ b/x/tokenfactory/types/msgs.go @@ -1,18 +1,21 @@ package types import ( - "cosmossdk.io/errors" + errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) // constants const ( - TypeMsgCreateDenom = "create_denom" - TypeMsgMint = "mint" - TypeMsgBurn = "burn" - TypeMsgForceTransfer = "force_transfer" - TypeMsgChangeAdmin = "change_admin" + TypeMsgCreateDenom = "create_denom" + TypeMsgMint = "tf_mint" + TypeMsgBurn = "tf_burn" + TypeMsgForceTransfer = "force_transfer" + TypeMsgChangeAdmin = "change_admin" + TypeMsgSetDenomMetadata = "set_denom_metadata" + TypeMsgSetBeforeSendHook = "set_before_send_hook" ) var _ sdk.Msg = &MsgCreateDenom{} @@ -30,12 +33,12 @@ func (m MsgCreateDenom) Type() string { return TypeMsgCreateDenom } func (m MsgCreateDenom) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } _, err = GetTokenDenom(m.Sender, m.Subdenom) if err != nil { - return errors.Wrap(ErrInvalidDenom, err.Error()) + return errorsmod.Wrap(ErrInvalidDenom, err.Error()) } return nil @@ -60,16 +63,24 @@ func NewMsgMint(sender string, amount sdk.Coin) *MsgMint { } } +func NewMsgMintTo(sender string, amount sdk.Coin, mintToAddress string) *MsgMint { + return &MsgMint{ + Sender: sender, + Amount: amount, + MintToAddress: mintToAddress, + } +} + func (m MsgMint) Route() string { return RouterKey } func (m MsgMint) Type() string { return TypeMsgMint } func (m MsgMint) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } if !m.Amount.IsValid() || m.Amount.Amount.Equal(sdk.ZeroInt()) { - return errors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) + return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) } return nil @@ -94,16 +105,25 @@ func NewMsgBurn(sender string, amount sdk.Coin) *MsgBurn { } } +// NewMsgBurn creates a message to burn tokens +func NewMsgBurnFrom(sender string, amount sdk.Coin, burnFromAddress string) *MsgBurn { + return &MsgBurn{ + Sender: sender, + Amount: amount, + BurnFromAddress: burnFromAddress, + } +} + func (m MsgBurn) Route() string { return RouterKey } func (m MsgBurn) Type() string { return TypeMsgBurn } func (m MsgBurn) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } if !m.Amount.IsValid() || m.Amount.Amount.Equal(sdk.ZeroInt()) { - return errors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) + return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) } return nil @@ -118,50 +138,50 @@ func (m MsgBurn) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{sender} } -// var _ sdk.Msg = &MsgForceTransfer{} - -// // NewMsgForceTransfer creates a transfer funds from one account to another -// func NewMsgForceTransfer(sender string, amount sdk.Coin, fromAddr, toAddr string) *MsgForceTransfer { -// return &MsgForceTransfer{ -// Sender: sender, -// Amount: amount, -// TransferFromAddress: fromAddr, -// TransferToAddress: toAddr, -// } -// } - -// func (m MsgForceTransfer) Route() string { return RouterKey } -// func (m MsgForceTransfer) Type() string { return TypeMsgForceTransfer } -// func (m MsgForceTransfer) ValidateBasic() error { -// _, err := sdk.AccAddressFromBech32(m.Sender) -// if err != nil { -// return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) -// } - -// _, err = sdk.AccAddressFromBech32(m.TransferFromAddress) -// if err != nil { -// return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) -// } -// _, err = sdk.AccAddressFromBech32(m.TransferToAddress) -// if err != nil { -// return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) -// } - -// if !m.Amount.IsValid() { -// return errors.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) -// } - -// return nil -// } - -// func (m MsgForceTransfer) GetSignBytes() []byte { -// return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -// } - -// func (m MsgForceTransfer) GetSigners() []sdk.AccAddress { -// sender, _ := sdk.AccAddressFromBech32(m.Sender) -// return []sdk.AccAddress{sender} -// } +var _ sdk.Msg = &MsgForceTransfer{} + +// NewMsgForceTransfer creates a transfer funds from one account to another +func NewMsgForceTransfer(sender string, amount sdk.Coin, fromAddr, toAddr string) *MsgForceTransfer { + return &MsgForceTransfer{ + Sender: sender, + Amount: amount, + TransferFromAddress: fromAddr, + TransferToAddress: toAddr, + } +} + +func (m MsgForceTransfer) Route() string { return RouterKey } +func (m MsgForceTransfer) Type() string { return TypeMsgForceTransfer } +func (m MsgForceTransfer) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(m.Sender) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + } + + _, err = sdk.AccAddressFromBech32(m.TransferFromAddress) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) + } + _, err = sdk.AccAddressFromBech32(m.TransferToAddress) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) + } + + if !m.Amount.IsValid() { + return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) + } + + return nil +} + +func (m MsgForceTransfer) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +func (m MsgForceTransfer) GetSigners() []sdk.AccAddress { + sender, _ := sdk.AccAddressFromBech32(m.Sender) + return []sdk.AccAddress{sender} +} var _ sdk.Msg = &MsgChangeAdmin{} @@ -179,12 +199,12 @@ func (m MsgChangeAdmin) Type() string { return TypeMsgChangeAdmin } func (m MsgChangeAdmin) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Sender) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } _, err = sdk.AccAddressFromBech32(m.NewAdmin) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid address (%s)", err) } _, _, err = DeconstructDenom(m.Denom) @@ -203,3 +223,86 @@ func (m MsgChangeAdmin) GetSigners() []sdk.AccAddress { sender, _ := sdk.AccAddressFromBech32(m.Sender) return []sdk.AccAddress{sender} } + +var _ sdk.Msg = &MsgSetDenomMetadata{} + +// NewMsgChangeAdmin creates a message to burn tokens +func NewMsgSetDenomMetadata(sender string, metadata banktypes.Metadata) *MsgSetDenomMetadata { + return &MsgSetDenomMetadata{ + Sender: sender, + Metadata: metadata, + } +} + +func (m MsgSetDenomMetadata) Route() string { return RouterKey } +func (m MsgSetDenomMetadata) Type() string { return TypeMsgSetDenomMetadata } +func (m MsgSetDenomMetadata) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(m.Sender) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + } + + err = m.Metadata.Validate() + if err != nil { + return err + } + + _, _, err = DeconstructDenom(m.Metadata.Base) + if err != nil { + return err + } + + return nil +} + +func (m MsgSetDenomMetadata) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +func (m MsgSetDenomMetadata) GetSigners() []sdk.AccAddress { + sender, _ := sdk.AccAddressFromBech32(m.Sender) + return []sdk.AccAddress{sender} +} + +var _ sdk.Msg = &MsgSetBeforeSendHook{} + +// NewMsgSetBeforeSendHook creates a message to set a new before send hook +func NewMsgSetBeforeSendHook(sender string, denom string, cosmwasmAddress string) *MsgSetBeforeSendHook { + return &MsgSetBeforeSendHook{ + Sender: sender, + Denom: denom, + CosmwasmAddress: cosmwasmAddress, + } +} + +func (m MsgSetBeforeSendHook) Route() string { return RouterKey } +func (m MsgSetBeforeSendHook) Type() string { return TypeMsgSetBeforeSendHook } +func (m MsgSetBeforeSendHook) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(m.Sender) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) + } + + if m.CosmwasmAddress != "" { + _, err = sdk.AccAddressFromBech32(m.CosmwasmAddress) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid cosmwasm contract address (%s)", err) + } + } + + _, _, err = DeconstructDenom(m.Denom) + if err != nil { + return ErrInvalidDenom + } + + return nil +} + +func (m MsgSetBeforeSendHook) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +func (m MsgSetBeforeSendHook) GetSigners() []sdk.AccAddress { + sender, _ := sdk.AccAddressFromBech32(m.Sender) + return []sdk.AccAddress{sender} +} diff --git a/x/tokenfactory/types/msgs_test.go b/x/tokenfactory/types/msgs_test.go new file mode 100644 index 000000000..e8480b58a --- /dev/null +++ b/x/tokenfactory/types/msgs_test.go @@ -0,0 +1,450 @@ +package types_test + +import ( + fmt "fmt" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + + "github.com/osmosis-labs/osmosis/v17/app/apptesting" + "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" + + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/tendermint/tendermint/crypto/ed25519" +) + +// // Test authz serialize and de-serializes for tokenfactory msg. +func TestAuthzMsg(t *testing.T) { + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()).String() + coin := sdk.NewCoin("denom", sdk.NewInt(1)) + + testCases := []struct { + name string + msg sdk.Msg + }{ + { + name: "MsgCreateDenom", + msg: &types.MsgCreateDenom{ + Sender: addr1, + Subdenom: "valoper1xyz", + }, + }, + { + name: "MsgBurn", + msg: &types.MsgBurn{ + Sender: addr1, + Amount: coin, + }, + }, + { + name: "MsgMint", + msg: &types.MsgMint{ + Sender: addr1, + Amount: coin, + }, + }, + { + name: "MsgChangeAdmin", + msg: &types.MsgChangeAdmin{ + Sender: addr1, + Denom: "denom", + NewAdmin: "osmo1q8tq5qhrhw6t970egemuuwywhlhpnmdmts6xnu", + }, + }, + } + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + apptesting.TestMessageAuthzSerialization(t, tc.msg) + }) + } +} + +// TestMsgCreateDenom tests if valid/invalid create denom messages are properly validated/invalidated +func TestMsgCreateDenom(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + + // make a proper createDenom message + createMsg := func(after func(msg types.MsgCreateDenom) types.MsgCreateDenom) types.MsgCreateDenom { + properMsg := *types.NewMsgCreateDenom( + addr1.String(), + "bitcoin", + ) + + return after(properMsg) + } + + // validate createDenom message was created as intended + msg := createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { + return msg + }) + require.Equal(t, msg.Route(), types.RouterKey) + require.Equal(t, msg.Type(), "create_denom") + signers := msg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg types.MsgCreateDenom + expectPass bool + }{ + { + name: "proper msg", + msg: createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { + return msg + }), + expectPass: true, + }, + { + name: "empty sender", + msg: createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { + msg.Sender = "" + return msg + }), + expectPass: false, + }, + { + name: "invalid subdenom", + msg: createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { + msg.Subdenom = "thissubdenomismuchtoolongasdkfjaasdfdsafsdlkfnmlksadmflksmdlfmlsakmfdsafasdfasdf" + return msg + }), + expectPass: false, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) + } + } +} + +// TestMsgMint tests if valid/invalid create denom messages are properly validated/invalidated +func TestMsgMint(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + + // make a proper mint message + createMsg := func(after func(msg types.MsgMint) types.MsgMint) types.MsgMint { + properMsg := *types.NewMsgMint( + addr1.String(), + sdk.NewCoin("bitcoin", sdk.NewInt(500000000)), + ) + + return after(properMsg) + } + + // validate mint message was created as intended + msg := createMsg(func(msg types.MsgMint) types.MsgMint { + return msg + }) + require.Equal(t, msg.Route(), types.RouterKey) + require.Equal(t, msg.Type(), "tf_mint") + signers := msg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg types.MsgMint + expectPass bool + }{ + { + name: "proper msg", + msg: createMsg(func(msg types.MsgMint) types.MsgMint { + return msg + }), + expectPass: true, + }, + { + name: "empty sender", + msg: createMsg(func(msg types.MsgMint) types.MsgMint { + msg.Sender = "" + return msg + }), + expectPass: false, + }, + { + name: "zero amount", + msg: createMsg(func(msg types.MsgMint) types.MsgMint { + msg.Amount = sdk.NewCoin("bitcoin", sdk.ZeroInt()) + return msg + }), + expectPass: false, + }, + { + name: "negative amount", + msg: createMsg(func(msg types.MsgMint) types.MsgMint { + msg.Amount.Amount = sdk.NewInt(-10000000) + return msg + }), + expectPass: false, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) + } + } +} + +// TestMsgBurn tests if valid/invalid create denom messages are properly validated/invalidated +func TestMsgBurn(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + + // make a proper burn message + baseMsg := types.NewMsgBurn( + addr1.String(), + sdk.NewCoin("bitcoin", sdk.NewInt(500000000)), + ) + + // validate burn message was created as intended + require.Equal(t, baseMsg.Route(), types.RouterKey) + require.Equal(t, baseMsg.Type(), "tf_burn") + signers := baseMsg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg func() *types.MsgBurn + expectPass bool + }{ + { + name: "proper msg", + msg: func() *types.MsgBurn { + msg := baseMsg + return msg + }, + expectPass: true, + }, + { + name: "empty sender", + msg: func() *types.MsgBurn { + msg := baseMsg + msg.Sender = "" + return msg + }, + expectPass: false, + }, + { + name: "zero amount", + msg: func() *types.MsgBurn { + msg := baseMsg + msg.Amount.Amount = sdk.ZeroInt() + return msg + }, + expectPass: false, + }, + { + name: "negative amount", + msg: func() *types.MsgBurn { + msg := baseMsg + msg.Amount.Amount = sdk.NewInt(-10000000) + return msg + }, + expectPass: false, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg().ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg().ValidateBasic(), "test: %v", test.name) + } + } +} + +// TestMsgChangeAdmin tests if valid/invalid create denom messages are properly validated/invalidated +func TestMsgChangeAdmin(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + pk2 := ed25519.GenPrivKey().PubKey() + addr2 := sdk.AccAddress(pk2.Address()) + tokenFactoryDenom := fmt.Sprintf("factory/%s/bitcoin", addr1.String()) + + // make a proper changeAdmin message + baseMsg := types.NewMsgChangeAdmin( + addr1.String(), + tokenFactoryDenom, + addr2.String(), + ) + + // validate changeAdmin message was created as intended + require.Equal(t, baseMsg.Route(), types.RouterKey) + require.Equal(t, baseMsg.Type(), "change_admin") + signers := baseMsg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg func() *types.MsgChangeAdmin + expectPass bool + }{ + { + name: "proper msg", + msg: func() *types.MsgChangeAdmin { + msg := baseMsg + return msg + }, + expectPass: true, + }, + { + name: "empty sender", + msg: func() *types.MsgChangeAdmin { + msg := baseMsg + msg.Sender = "" + return msg + }, + expectPass: false, + }, + { + name: "empty newAdmin", + msg: func() *types.MsgChangeAdmin { + msg := baseMsg + msg.NewAdmin = "" + return msg + }, + expectPass: false, + }, + { + name: "invalid denom", + msg: func() *types.MsgChangeAdmin { + msg := baseMsg + msg.Denom = "bitcoin" + return msg + }, + expectPass: false, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg().ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg().ValidateBasic(), "test: %v", test.name) + } + } +} + +// TestMsgSetDenomMetadata tests if valid/invalid create denom messages are properly validated/invalidated +func TestMsgSetDenomMetadata(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + tokenFactoryDenom := fmt.Sprintf("factory/%s/bitcoin", addr1.String()) + denomMetadata := banktypes.Metadata{ + Description: "nakamoto", + DenomUnits: []*banktypes.DenomUnit{ + { + Denom: tokenFactoryDenom, + Exponent: 0, + }, + { + Denom: "sats", + Exponent: 6, + }, + }, + Display: "sats", + Base: tokenFactoryDenom, + Name: "bitcoin", + Symbol: "BTC", + } + invalidDenomMetadata := banktypes.Metadata{ + Description: "nakamoto", + DenomUnits: []*banktypes.DenomUnit{ + { + Denom: "bitcoin", + Exponent: 0, + }, + { + Denom: "sats", + Exponent: 6, + }, + }, + Display: "sats", + Base: "bitcoin", + Name: "bitcoin", + Symbol: "BTC", + } + + // make a proper setDenomMetadata message + baseMsg := types.NewMsgSetDenomMetadata( + addr1.String(), + denomMetadata, + ) + + // validate setDenomMetadata message was created as intended + require.Equal(t, baseMsg.Route(), types.RouterKey) + require.Equal(t, baseMsg.Type(), "set_denom_metadata") + signers := baseMsg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg func() *types.MsgSetDenomMetadata + expectPass bool + }{ + { + name: "proper msg", + msg: func() *types.MsgSetDenomMetadata { + msg := baseMsg + return msg + }, + expectPass: true, + }, + { + name: "empty sender", + msg: func() *types.MsgSetDenomMetadata { + msg := baseMsg + msg.Sender = "" + return msg + }, + expectPass: false, + }, + { + name: "invalid metadata", + msg: func() *types.MsgSetDenomMetadata { + msg := baseMsg + msg.Metadata.Name = "" + return msg + }, + + expectPass: false, + }, + { + name: "invalid base", + msg: func() *types.MsgSetDenomMetadata { + msg := baseMsg + msg.Metadata = invalidDenomMetadata + return msg + }, + expectPass: false, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg().ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg().ValidateBasic(), "test: %v", test.name) + } + } +} diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 9bbc18808..09d9cac75 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -1,40 +1,39 @@ package types import ( - fmt "fmt" + "fmt" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - - "github.com/neutron-org/neutron/app/params" ) // Parameter store keys. var ( - KeyDenomCreationFee = []byte("DenomCreationFee") - DefaultNeutronDenom = params.DefaultDenom - DefaultFeeAmount int64 = 1_000_000 - KeyFeeCollectorAddress = []byte("FeeCollectorAddress") - DefaultFeeCollectorAddress = "" + KeyDenomCreationFee = []byte("DenomCreationFee") + KeyDenomCreationGasConsume = []byte("DenomCreationGasConsume") + + // chosen as an arbitrary large number, less than the max_gas_wanted_per_tx in config. + DefaultCreationGasFee = 1_000_000 ) -// ParamTable for tokenfactory module. +// ParamTable for gamm module. func ParamKeyTable() paramtypes.KeyTable { return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) } -func NewParams(denomCreationFee sdk.Coins, feeCollectorAddress string) Params { +func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Params { return Params{ - DenomCreationFee: denomCreationFee, - FeeCollectorAddress: feeCollectorAddress, + DenomCreationFee: denomCreationFee, + DenomCreationGasConsume: denomCreationGasConsume, } } -// default tokenfactory module parameters. +// default gamm module parameters. func DefaultParams() Params { return Params{ - DenomCreationFee: sdk.NewCoins(sdk.NewInt64Coin(DefaultNeutronDenom, DefaultFeeAmount)), - FeeCollectorAddress: DefaultFeeCollectorAddress, + // For choice, see: https://github.com/osmosis-labs/osmosis/pull/4983 + DenomCreationFee: sdk.NewCoins(), // used to be 10 OSMO at launch. + DenomCreationGasConsume: uint64(DefaultCreationGasFee), } } @@ -44,14 +43,14 @@ func (p Params) Validate() error { return err } - return validateFeeCollectorAddress(p.FeeCollectorAddress) + return nil } // Implements params.ParamSet. func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { return paramtypes.ParamSetPairs{ paramtypes.NewParamSetPair(KeyDenomCreationFee, &p.DenomCreationFee, validateDenomCreationFee), - paramtypes.NewParamSetPair(KeyFeeCollectorAddress, &p.FeeCollectorAddress, validateFeeCollectorAddress), + paramtypes.NewParamSetPair(KeyDenomCreationGasConsume, &p.DenomCreationGasConsume, validateDenomCreationGasConsume), } } @@ -61,28 +60,18 @@ func validateDenomCreationFee(i interface{}) error { return fmt.Errorf("invalid parameter type: %T", i) } - if err := v.Validate(); err != nil { - return fmt.Errorf("invalid denom creation fee: %+v, %w", i, err) + if v.Validate() != nil { + return fmt.Errorf("invalid denom creation fee: %+v", i) } return nil } -func validateFeeCollectorAddress(i interface{}) error { - v, ok := i.(string) +func validateDenomCreationGasConsume(i interface{}) error { + _, ok := i.(uint64) if !ok { return fmt.Errorf("invalid parameter type: %T", i) } - // Fee collector address might be explicitly empty in test environments - if len(v) == 0 { - return nil - } - - _, err := sdk.AccAddressFromBech32(v) - if err != nil { - return fmt.Errorf("invalid fee collector address: %w", err) - } - return nil } diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 3ca6e158d..05037d806 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -8,8 +8,8 @@ import ( _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" @@ -26,12 +26,17 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// Params holds parameters for the tokenfactory module +// Params defines the parameters for the tokenfactory module. type Params struct { - // DenomCreationFee is the fee required to create a new denom using the tokenfactory module + // DenomCreationFee defines the fee to be charged on the creation of a new + // denom. The fee is drawn from the MsgCreateDenom's sender account, and + // transferred to the community pool. DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=denom_creation_fee,json=denomCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"denom_creation_fee" yaml:"denom_creation_fee"` - // FeeCollectorAddress is the address where fees collected from denom creation are sent to - FeeCollectorAddress string `protobuf:"bytes,2,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"` + // DenomCreationGasConsume defines the gas cost for creating a new denom. + // This is intended as a spam deterrence mechanism. + // + // See: https://github.com/CosmWasm/token-factory/issues/11 + DenomCreationGasConsume uint64 `protobuf:"varint,2,opt,name=denom_creation_gas_consume,json=denomCreationGasConsume,proto3" json:"denom_creation_gas_consume,omitempty" yaml:"denom_creation_gas_consume"` } func (m *Params) Reset() { *m = Params{} } @@ -74,11 +79,11 @@ func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins return nil } -func (m *Params) GetFeeCollectorAddress() string { +func (m *Params) GetDenomCreationGasConsume() uint64 { if m != nil { - return m.FeeCollectorAddress + return m.DenomCreationGasConsume } - return "" + return 0 } func init() { @@ -90,28 +95,30 @@ func init() { } var fileDescriptor_cc8299d306f3ff47 = []byte{ - // 322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xb1, 0x4e, 0x02, 0x41, - 0x10, 0x86, 0x6f, 0x35, 0x21, 0xf1, 0x6c, 0xcc, 0xa9, 0x09, 0x10, 0xb3, 0x10, 0x2a, 0x2c, 0xb8, - 0x0d, 0xd0, 0xd9, 0x09, 0x89, 0x1d, 0x89, 0xa1, 0xb4, 0xb9, 0xec, 0xdd, 0xcd, 0x9d, 0x17, 0xb8, - 0x1d, 0xb2, 0xbb, 0x18, 0x79, 0x0b, 0x2b, 0x1f, 0xc2, 0x27, 0xa1, 0xa4, 0x31, 0xb1, 0x42, 0x03, - 0x6f, 0xe0, 0x13, 0x18, 0x76, 0x17, 0x83, 0xb1, 0xda, 0x99, 0xfc, 0xff, 0x7c, 0xf3, 0x67, 0xd6, - 0xbf, 0x46, 0x55, 0xa2, 0x2a, 0x14, 0xd3, 0x38, 0x01, 0x91, 0xf1, 0x44, 0xa3, 0x5c, 0xb0, 0xa7, - 0x6e, 0x0c, 0x9a, 0x77, 0xd9, 0x8c, 0x4b, 0x5e, 0xaa, 0x70, 0x26, 0x51, 0x63, 0x70, 0xe5, 0xac, - 0xe1, 0xa1, 0x35, 0x74, 0xd6, 0xfa, 0x45, 0x8e, 0x39, 0x1a, 0x23, 0xdb, 0x55, 0x76, 0xa6, 0x5e, - 0x4b, 0xcc, 0x50, 0x64, 0x05, 0xdb, 0x38, 0x89, 0xda, 0x8e, 0xc5, 0x5c, 0xc1, 0xef, 0xc2, 0x04, - 0x0b, 0x61, 0xf5, 0xd6, 0x3b, 0xf1, 0x2b, 0xf7, 0x66, 0x7f, 0xf0, 0x4a, 0xfc, 0x20, 0x05, 0x81, - 0x65, 0x94, 0x48, 0xe0, 0xba, 0x40, 0x11, 0x65, 0x00, 0x55, 0xd2, 0x3c, 0x6e, 0x9f, 0xf6, 0x6a, - 0xa1, 0xc3, 0xee, 0x40, 0xfb, 0x38, 0xe1, 0x10, 0x0b, 0x31, 0x18, 0x2d, 0xd7, 0x0d, 0xef, 0x7b, - 0xdd, 0xa8, 0x2d, 0x78, 0x39, 0xbd, 0x69, 0xfd, 0x47, 0xb4, 0xde, 0x3e, 0x1b, 0xed, 0xbc, 0xd0, - 0x8f, 0xf3, 0x38, 0x4c, 0xb0, 0x74, 0x01, 0xdd, 0xd3, 0x51, 0xe9, 0x84, 0xe9, 0xc5, 0x0c, 0x94, - 0xa1, 0xa9, 0xf1, 0x99, 0x01, 0x0c, 0xdd, 0xfc, 0x1d, 0x40, 0xd0, 0xf3, 0x2f, 0x33, 0x80, 0x28, - 0xc1, 0xe9, 0x14, 0x76, 0xe7, 0x88, 0x78, 0x9a, 0x4a, 0x50, 0xaa, 0x7a, 0xd4, 0x24, 0xed, 0x93, - 0xf1, 0x79, 0x06, 0x30, 0xdc, 0x6b, 0xb7, 0x56, 0x1a, 0x8c, 0x96, 0x1b, 0x4a, 0x56, 0x1b, 0x4a, - 0xbe, 0x36, 0x94, 0xbc, 0x6c, 0xa9, 0xb7, 0xda, 0x52, 0xef, 0x63, 0x4b, 0xbd, 0x87, 0xfe, 0x41, - 0x12, 0x01, 0x73, 0x2d, 0x51, 0x74, 0x50, 0xe6, 0xfb, 0x9a, 0x3d, 0xff, 0xfd, 0x24, 0x13, 0x2d, - 0xae, 0x98, 0x6b, 0xf5, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x58, 0x8c, 0xda, 0x7f, 0xc9, 0x01, - 0x00, 0x00, + // 355 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4e, 0xea, 0x40, + 0x14, 0x86, 0x3b, 0xdc, 0x1b, 0x16, 0xbd, 0x9b, 0x9b, 0xc6, 0x44, 0x20, 0x66, 0x8a, 0x5d, 0xc1, + 0x82, 0x4e, 0x50, 0x13, 0x8d, 0x4b, 0x48, 0x74, 0x45, 0x62, 0x58, 0xba, 0x69, 0x4e, 0xcb, 0x50, + 0x1a, 0x68, 0x0f, 0xe9, 0x0c, 0xc4, 0x3e, 0x82, 0x3b, 0x57, 0x3e, 0x84, 0x4f, 0xc2, 0x92, 0xa5, + 0xab, 0x6a, 0xe0, 0x0d, 0x78, 0x02, 0xc3, 0x74, 0x30, 0xa0, 0xc6, 0xd5, 0xcc, 0xc9, 0xf9, 0xff, + 0x6f, 0xfe, 0x33, 0xc7, 0x6c, 0xa2, 0x88, 0x51, 0x44, 0x82, 0x49, 0x1c, 0xf3, 0x64, 0x08, 0x81, + 0xc4, 0x34, 0x63, 0xf3, 0xb6, 0xcf, 0x25, 0xb4, 0xd9, 0x14, 0x52, 0x88, 0x85, 0x3b, 0x4d, 0x51, + 0xa2, 0x75, 0xa2, 0xa5, 0xee, 0xbe, 0xd4, 0xd5, 0xd2, 0xda, 0x51, 0x88, 0x21, 0x2a, 0x21, 0xdb, + 0xde, 0x0a, 0x4f, 0xed, 0xe2, 0x57, 0x3c, 0xcc, 0xe4, 0x08, 0xd3, 0x48, 0x66, 0x3d, 0x2e, 0x61, + 0x00, 0x12, 0xb4, 0xab, 0x1a, 0x28, 0x9b, 0x57, 0xe0, 0x8a, 0x42, 0xb7, 0x68, 0x51, 0x31, 0x1f, + 0x04, 0xff, 0xe4, 0x04, 0x18, 0x25, 0x45, 0xdf, 0x79, 0x2c, 0x99, 0xe5, 0x3b, 0x95, 0xda, 0x7a, + 0x26, 0xa6, 0x35, 0xe0, 0x09, 0xc6, 0x5e, 0x90, 0x72, 0x90, 0x11, 0x26, 0xde, 0x90, 0xf3, 0x0a, + 0xa9, 0xff, 0x69, 0xfc, 0x3b, 0xab, 0xba, 0x1a, 0xbb, 0x05, 0xed, 0x86, 0x70, 0xbb, 0x18, 0x25, + 0x9d, 0xde, 0x22, 0xb7, 0x8d, 0x4d, 0x6e, 0x57, 0x33, 0x88, 0x27, 0xd7, 0xce, 0x77, 0x84, 0xf3, + 0xf2, 0x66, 0x37, 0xc2, 0x48, 0x8e, 0x66, 0xbe, 0x1b, 0x60, 0xac, 0x03, 0xea, 0xa3, 0x25, 0x06, + 0x63, 0x26, 0xb3, 0x29, 0x17, 0x8a, 0x26, 0xfa, 0xff, 0x15, 0xa0, 0xab, 0xfd, 0x37, 0x9c, 0x5b, + 0x43, 0xb3, 0xf6, 0x05, 0x1a, 0x82, 0xf0, 0x02, 0x4c, 0xc4, 0x2c, 0xe6, 0x95, 0x52, 0x9d, 0x34, + 0xfe, 0x76, 0x9a, 0x8b, 0xdc, 0x26, 0x9b, 0xdc, 0x3e, 0xfd, 0x31, 0xc4, 0x9e, 0xde, 0xe9, 0x1f, + 0x1f, 0x3c, 0x70, 0x0b, 0xa2, 0x5b, 0x74, 0x3a, 0xfd, 0xc5, 0x8a, 0x92, 0xe5, 0x8a, 0x92, 0xf7, + 0x15, 0x25, 0x4f, 0x6b, 0x6a, 0x2c, 0xd7, 0xd4, 0x78, 0x5d, 0x53, 0xe3, 0xfe, 0x6a, 0x2f, 0xbd, + 0xde, 0x50, 0x6b, 0x02, 0xbe, 0xd8, 0x15, 0x6c, 0xde, 0xbe, 0x64, 0x0f, 0x87, 0x4b, 0x53, 0x33, + 0xf9, 0x65, 0xf5, 0xcd, 0xe7, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x24, 0x1f, 0x6c, 0xe0, 0x38, + 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -134,12 +141,10 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.FeeCollectorAddress) > 0 { - i -= len(m.FeeCollectorAddress) - copy(dAtA[i:], m.FeeCollectorAddress) - i = encodeVarintParams(dAtA, i, uint64(len(m.FeeCollectorAddress))) + if m.DenomCreationGasConsume != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DenomCreationGasConsume)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(m.DenomCreationFee) > 0 { for iNdEx := len(m.DenomCreationFee) - 1; iNdEx >= 0; iNdEx-- { @@ -181,9 +186,8 @@ func (m *Params) Size() (n int) { n += 1 + l + sovParams(uint64(l)) } } - l = len(m.FeeCollectorAddress) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) + if m.DenomCreationGasConsume != 0 { + n += 1 + sovParams(uint64(m.DenomCreationGasConsume)) } return n } @@ -258,10 +262,10 @@ func (m *Params) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeCollectorAddress", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomCreationGasConsume", wireType) } - var stringLen uint64 + m.DenomCreationGasConsume = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowParams @@ -271,24 +275,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.DenomCreationGasConsume |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeeCollectorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index bc94c2473..fe5a3f035 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -6,9 +6,10 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/gogo/protobuf/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -112,9 +113,10 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryDenomAuthorityMetadataRequest defines the request structure for the +// DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataRequest struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` - Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` } func (m *QueryDenomAuthorityMetadataRequest) Reset() { *m = QueryDenomAuthorityMetadataRequest{} } @@ -150,20 +152,15 @@ func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDenomAuthorityMetadataRequest proto.InternalMessageInfo -func (m *QueryDenomAuthorityMetadataRequest) GetCreator() string { +func (m *QueryDenomAuthorityMetadataRequest) GetDenom() string { if m != nil { - return m.Creator - } - return "" -} - -func (m *QueryDenomAuthorityMetadataRequest) GetSubdenom() string { - if m != nil { - return m.Subdenom + return m.Denom } return "" } +// QueryDenomAuthorityMetadataResponse defines the response structure for the +// DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataResponse struct { AuthorityMetadata DenomAuthorityMetadata `protobuf:"bytes,1,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"` } @@ -208,6 +205,8 @@ func (m *QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata() DenomAuthor return DenomAuthorityMetadata{} } +// QueryDenomsFromCreatorRequest defines the request structure for the +// DenomsFromCreator gRPC query. type QueryDenomsFromCreatorRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` } @@ -252,6 +251,8 @@ func (m *QueryDenomsFromCreatorRequest) GetCreator() string { return "" } +// QueryDenomsFromCreatorRequest defines the response structure for the +// DenomsFromCreator gRPC query. type QueryDenomsFromCreatorResponse struct { Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"` } @@ -296,6 +297,96 @@ func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string { return nil } +type QueryBeforeSendHookAddressRequest struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` +} + +func (m *QueryBeforeSendHookAddressRequest) Reset() { *m = QueryBeforeSendHookAddressRequest{} } +func (m *QueryBeforeSendHookAddressRequest) String() string { return proto.CompactTextString(m) } +func (*QueryBeforeSendHookAddressRequest) ProtoMessage() {} +func (*QueryBeforeSendHookAddressRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6f22013ad0f72e3f, []int{6} +} +func (m *QueryBeforeSendHookAddressRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBeforeSendHookAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBeforeSendHookAddressRequest.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 *QueryBeforeSendHookAddressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBeforeSendHookAddressRequest.Merge(m, src) +} +func (m *QueryBeforeSendHookAddressRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBeforeSendHookAddressRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBeforeSendHookAddressRequest proto.InternalMessageInfo + +func (m *QueryBeforeSendHookAddressRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +// QueryBeforeSendHookAddressResponse defines the response structure for the +// DenomBeforeSendHook gRPC query. +type QueryBeforeSendHookAddressResponse struct { + CosmwasmAddress string `protobuf:"bytes,1,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` +} + +func (m *QueryBeforeSendHookAddressResponse) Reset() { *m = QueryBeforeSendHookAddressResponse{} } +func (m *QueryBeforeSendHookAddressResponse) String() string { return proto.CompactTextString(m) } +func (*QueryBeforeSendHookAddressResponse) ProtoMessage() {} +func (*QueryBeforeSendHookAddressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6f22013ad0f72e3f, []int{7} +} +func (m *QueryBeforeSendHookAddressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBeforeSendHookAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBeforeSendHookAddressResponse.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 *QueryBeforeSendHookAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBeforeSendHookAddressResponse.Merge(m, src) +} +func (m *QueryBeforeSendHookAddressResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBeforeSendHookAddressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBeforeSendHookAddressResponse proto.InternalMessageInfo + +func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string { + if m != nil { + return m.CosmwasmAddress + } + return "" +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsResponse") @@ -303,6 +394,8 @@ func init() { proto.RegisterType((*QueryDenomAuthorityMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse") proto.RegisterType((*QueryDenomsFromCreatorRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest") proto.RegisterType((*QueryDenomsFromCreatorResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse") + proto.RegisterType((*QueryBeforeSendHookAddressRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest") + proto.RegisterType((*QueryBeforeSendHookAddressResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse") } func init() { @@ -310,43 +403,50 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 566 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0x33, 0xb5, 0x46, 0x3b, 0xa2, 0x92, 0x69, 0x91, 0x1a, 0xea, 0x46, 0xc7, 0x22, 0x29, - 0xd4, 0x1d, 0xd3, 0xf6, 0x64, 0x15, 0xec, 0x56, 0xbc, 0x48, 0x40, 0x17, 0x11, 0x14, 0x21, 0x4c, - 0xd2, 0xe9, 0x36, 0xd8, 0xdd, 0x97, 0xce, 0xce, 0x8a, 0xa1, 0xf4, 0xa2, 0xe0, 0x59, 0xf0, 0xe8, - 0x77, 0xf0, 0x73, 0xf4, 0x58, 0xe8, 0xc5, 0x53, 0x90, 0xc4, 0x4f, 0x90, 0x9b, 0x78, 0x91, 0xcc, - 0x4c, 0x5a, 0xeb, 0xc6, 0x25, 0xd6, 0xdb, 0x32, 0xef, 0xff, 0xfe, 0xef, 0xfd, 0xde, 0x7b, 0x2c, - 0x2e, 0x43, 0x1c, 0x42, 0xdc, 0x8c, 0x99, 0x82, 0xd7, 0x22, 0xda, 0xe4, 0x0d, 0x05, 0xb2, 0xcd, - 0xde, 0x54, 0xea, 0x42, 0xf1, 0x0a, 0xdb, 0x49, 0x84, 0x6c, 0xbb, 0x2d, 0x09, 0x0a, 0xc8, 0x9c, - 0x55, 0xba, 0xbf, 0x2b, 0x5d, 0xab, 0x2c, 0xce, 0x04, 0x10, 0x80, 0x16, 0xb2, 0xc1, 0x97, 0xc9, - 0x29, 0xce, 0x05, 0x00, 0xc1, 0xb6, 0x60, 0xbc, 0xd5, 0x64, 0x3c, 0x8a, 0x40, 0x71, 0xd5, 0x84, - 0x28, 0xb6, 0xd1, 0x95, 0xcc, 0xda, 0x3c, 0x51, 0x5b, 0x20, 0x9b, 0xaa, 0x5d, 0x15, 0x8a, 0x6f, - 0x70, 0xc5, 0x6d, 0xd6, 0x42, 0x66, 0x56, 0x8b, 0x4b, 0x1e, 0xda, 0x02, 0x74, 0x06, 0x93, 0xa7, - 0x03, 0x82, 0x27, 0xfa, 0xd1, 0x17, 0x3b, 0x89, 0x88, 0x15, 0x7d, 0x81, 0xa7, 0x4f, 0xbc, 0xc6, - 0x2d, 0x88, 0x62, 0x41, 0x3c, 0x9c, 0x37, 0xc9, 0xb3, 0xe8, 0x3a, 0x2a, 0x5f, 0x58, 0x9a, 0x77, - 0xb3, 0x80, 0x5d, 0x93, 0xed, 0x4d, 0xee, 0x77, 0x4a, 0x39, 0xdf, 0x66, 0xd2, 0xf7, 0x08, 0x53, - 0xed, 0xfd, 0x50, 0x44, 0x10, 0xae, 0xfd, 0x49, 0x60, 0x3b, 0x20, 0x8b, 0xf8, 0x5c, 0x43, 0x0a, - 0xae, 0x40, 0xea, 0x5a, 0x53, 0x1e, 0xe9, 0x77, 0x4a, 0x97, 0xda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 0xd4, - 0xd9, 0xf0, 0x79, 0xd7, 0xee, 0x74, 0x8f, 0xed, 0x0e, 0xcf, 0x7b, 0x8f, 0xa5, 0xaf, 0x8a, 0x1c, - 0x22, 0x5c, 0x48, 0xad, 0x9b, 0xac, 0x8e, 0xdb, 0xf6, 0x88, 0x9b, 0x2b, 0xde, 0x3b, 0x5d, 0xb2, - 0xc5, 0x5d, 0xd7, 0xb8, 0xf7, 0xc9, 0xea, 0x38, 0xb8, 0xb5, 0x4d, 0x09, 0x61, 0xcd, 0xa2, 0x1e, - 0x33, 0x7b, 0xd5, 0xfd, 0xae, 0x83, 0x0e, 0xba, 0x0e, 0xfa, 0xd6, 0x75, 0xd0, 0xc7, 0x9e, 0x93, - 0x3b, 0xe8, 0x39, 0xb9, 0xaf, 0x3d, 0x27, 0xf7, 0x72, 0x39, 0x68, 0xaa, 0xad, 0xa4, 0xee, 0x36, - 0x20, 0x64, 0x91, 0x48, 0x94, 0x84, 0xe8, 0x36, 0xc8, 0x60, 0xf8, 0xcd, 0xde, 0x9e, 0x2c, 0xa7, - 0xda, 0x2d, 0x11, 0xd7, 0xf3, 0xfa, 0xaf, 0xb8, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x28, 0x2a, - 0x3f, 0xc8, 0xf4, 0x05, 0x00, 0x00, + // 674 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x4e, 0x13, 0x5f, + 0x14, 0xee, 0xfc, 0x7e, 0x52, 0xc3, 0xf5, 0x1f, 0x5c, 0xf1, 0x5f, 0xc5, 0xa9, 0x5c, 0x09, 0x01, + 0x83, 0x1d, 0x8b, 0x24, 0x1a, 0x91, 0x40, 0x07, 0x45, 0x13, 0x24, 0xd1, 0x71, 0xa5, 0x9b, 0xe6, + 0xb6, 0xbd, 0x94, 0x86, 0xce, 0x9c, 0x32, 0xf7, 0x16, 0x6d, 0x08, 0x1b, 0x17, 0xae, 0x4d, 0x5c, + 0xfa, 0x0e, 0x3e, 0x07, 0x4b, 0x12, 0x36, 0xae, 0x1a, 0x05, 0xe3, 0x03, 0xf4, 0x09, 0x4c, 0xef, + 0x3d, 0x45, 0xa0, 0x65, 0xd2, 0xe2, 0xaa, 0x93, 0x73, 0xbe, 0xf3, 0x9d, 0xef, 0xbb, 0xe7, 0x9c, + 0x94, 0x8c, 0x83, 0xf4, 0x41, 0x96, 0xa4, 0xa3, 0x60, 0x4d, 0x04, 0x2b, 0x3c, 0xaf, 0x20, 0xac, + 0x39, 0x1b, 0xe9, 0x9c, 0x50, 0x3c, 0xed, 0xac, 0x57, 0x45, 0x58, 0x4b, 0x55, 0x42, 0x50, 0x40, + 0x87, 0x11, 0x99, 0x3a, 0x8c, 0x4c, 0x21, 0x32, 0x31, 0x54, 0x84, 0x22, 0x68, 0xa0, 0xd3, 0xfc, + 0x32, 0x35, 0x89, 0xe1, 0x22, 0x40, 0xb1, 0x2c, 0x1c, 0x5e, 0x29, 0x39, 0x3c, 0x08, 0x40, 0x71, + 0x55, 0x82, 0x40, 0x62, 0xf6, 0x6e, 0x5e, 0x53, 0x3a, 0x39, 0x2e, 0x85, 0x69, 0x75, 0xd0, 0xb8, + 0xc2, 0x8b, 0xa5, 0x40, 0x83, 0x11, 0x3b, 0x1d, 0xa9, 0x93, 0x57, 0xd5, 0x2a, 0x84, 0x25, 0x55, + 0x5b, 0x16, 0x8a, 0x17, 0xb8, 0xe2, 0x58, 0x35, 0x11, 0x59, 0x55, 0xe1, 0x21, 0xf7, 0x51, 0x0c, + 0x1b, 0x22, 0xf4, 0x75, 0x53, 0xc2, 0x2b, 0x1d, 0xf4, 0xc4, 0x7a, 0x55, 0x48, 0xc5, 0xde, 0x92, + 0xcb, 0x47, 0xa2, 0xb2, 0x02, 0x81, 0x14, 0xd4, 0x25, 0x71, 0x53, 0x7c, 0xdd, 0xba, 0x6d, 0x8d, + 0x9f, 0x9b, 0x1a, 0x4d, 0x45, 0x3d, 0x4e, 0xca, 0x54, 0xbb, 0x67, 0xb6, 0xeb, 0xc9, 0x98, 0x87, + 0x95, 0xec, 0x25, 0x61, 0x9a, 0xfa, 0xa9, 0x08, 0xc0, 0xcf, 0x1c, 0x37, 0x80, 0x02, 0xe8, 0x18, + 0xe9, 0x2b, 0x34, 0x01, 0xba, 0x51, 0xbf, 0x3b, 0xd0, 0xa8, 0x27, 0xcf, 0xd7, 0xb8, 0x5f, 0x7e, + 0xcc, 0x74, 0x98, 0x79, 0x26, 0xcd, 0xbe, 0x59, 0xe4, 0x4e, 0x24, 0x1d, 0x2a, 0xff, 0x64, 0x11, + 0x7a, 0xf0, 0x5a, 0x59, 0x1f, 0xd3, 0x68, 0x63, 0x3a, 0xda, 0x46, 0x67, 0x6a, 0x77, 0xa4, 0x69, + 0xab, 0x51, 0x4f, 0xde, 0x30, 0xba, 0xda, 0xd9, 0x99, 0x37, 0xd8, 0x36, 0x20, 0xb6, 0x4c, 0x6e, + 0xfd, 0xd5, 0x2b, 0x17, 0x43, 0xf0, 0x17, 0x42, 0xc1, 0x15, 0x84, 0x2d, 0xe7, 0x93, 0xe4, 0x6c, + 0xde, 0x44, 0xd0, 0x3b, 0x6d, 0xd4, 0x93, 0x17, 0x4d, 0x0f, 0x4c, 0x30, 0xaf, 0x05, 0x61, 0x4b, + 0xc4, 0x3e, 0x89, 0x0e, 0x9d, 0x4f, 0x90, 0xb8, 0x7e, 0xaa, 0xe6, 0xcc, 0xfe, 0x1f, 0xef, 0x77, + 0x07, 0x1b, 0xf5, 0xe4, 0x85, 0x43, 0x4f, 0x29, 0x99, 0x87, 0x00, 0xb6, 0x44, 0x46, 0x34, 0x99, + 0x2b, 0x56, 0x20, 0x14, 0x6f, 0x44, 0x50, 0x78, 0x01, 0xb0, 0x96, 0x29, 0x14, 0x42, 0x21, 0x65, + 0xaf, 0x93, 0x29, 0xe3, 0x9c, 0x4f, 0x20, 0x43, 0x75, 0x8b, 0x64, 0xa0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xdb, 0xfa, 0xb1, 0x67, 0x5b, 0x9f, 0xf7, 0xed, 0xd8, 0xce, 0xbe, 0x1d, 0xfb, 0xbe, 0x6f, + 0xc7, 0xde, 0x3d, 0x2a, 0x96, 0xd4, 0x6a, 0x35, 0x97, 0xca, 0x83, 0xdf, 0x6a, 0x71, 0xaf, 0xcc, + 0x73, 0xf2, 0xa0, 0xdf, 0x46, 0xfa, 0xa1, 0xf3, 0xe1, 0x68, 0x57, 0x55, 0xab, 0x08, 0x99, 0x8b, + 0xeb, 0x3f, 0x9b, 0x07, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x38, 0x22, 0xde, 0x2a, 0x77, 0x07, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -361,10 +461,18 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Params returns the total set of minting parameters. + // Params defines a gRPC query method that returns the tokenfactory module's + // parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // DenomAuthorityMetadata defines a gRPC query method for fetching + // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(ctx context.Context, in *QueryDenomAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryDenomAuthorityMetadataResponse, error) + // DenomsFromCreator defines a gRPC query method for fetching all + // denominations created by a specific admin/creator. DenomsFromCreator(ctx context.Context, in *QueryDenomsFromCreatorRequest, opts ...grpc.CallOption) (*QueryDenomsFromCreatorResponse, error) + // BeforeSendHookAddress defines a gRPC query method for + // getting the address registered for the before send hook. + BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) } type queryClient struct { @@ -402,12 +510,29 @@ func (c *queryClient) DenomsFromCreator(ctx context.Context, in *QueryDenomsFrom return out, nil } +func (c *queryClient) BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) { + out := new(QueryBeforeSendHookAddressResponse) + err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { - // Params returns the total set of minting parameters. + // Params defines a gRPC query method that returns the tokenfactory module's + // parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // DenomAuthorityMetadata defines a gRPC query method for fetching + // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(context.Context, *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error) + // DenomsFromCreator defines a gRPC query method for fetching all + // denominations created by a specific admin/creator. DenomsFromCreator(context.Context, *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) + // BeforeSendHookAddress defines a gRPC query method for + // getting the address registered for the before send hook. + BeforeSendHookAddress(context.Context, *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -423,6 +548,9 @@ func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenomsFromCreator not implemented") } +func (*UnimplementedQueryServer) BeforeSendHookAddress(ctx context.Context, req *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BeforeSendHookAddress not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -482,6 +610,24 @@ func _Query_DenomsFromCreator_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_BeforeSendHookAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBeforeSendHookAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BeforeSendHookAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BeforeSendHookAddress(ctx, req.(*QueryBeforeSendHookAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "osmosis.tokenfactory.v1beta1.Query", HandlerType: (*QueryServer)(nil), @@ -498,6 +644,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "DenomsFromCreator", Handler: _Query_DenomsFromCreator_Handler, }, + { + MethodName: "BeforeSendHookAddress", + Handler: _Query_BeforeSendHookAddress_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "osmosis/tokenfactory/v1beta1/query.proto", @@ -579,17 +729,10 @@ func (m *QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l - if len(m.Subdenom) > 0 { - i -= len(m.Subdenom) - copy(dAtA[i:], m.Subdenom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Subdenom))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) i-- dAtA[i] = 0xa } @@ -691,6 +834,66 @@ func (m *QueryDenomsFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *QueryBeforeSendHookAddressRequest) 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 *QueryBeforeSendHookAddressRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBeforeSendHookAddressResponse) 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 *QueryBeforeSendHookAddressResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CosmwasmAddress) > 0 { + i -= len(m.CosmwasmAddress) + copy(dAtA[i:], m.CosmwasmAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmwasmAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -728,11 +931,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Size() (n int) { } var l int _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Subdenom) + l = len(m.Denom) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -778,6 +977,32 @@ func (m *QueryDenomsFromCreatorResponse) Size() (n int) { return n } +func (m *QueryBeforeSendHookAddressRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBeforeSendHookAddressResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CosmwasmAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -948,7 +1173,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -976,11 +1201,144 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDenomAuthorityMetadataResponse) 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 ErrIntOverflowQuery + } + 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: QueryDenomAuthorityMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AuthorityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDenomsFromCreatorRequest) 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 ErrIntOverflowQuery + } + 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: QueryDenomsFromCreatorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1008,7 +1366,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Subdenom = string(dAtA[iNdEx:postIndex]) + m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1031,7 +1389,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1054,17 +1412,17 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1074,24 +1432,23 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AuthorityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -1114,7 +1471,7 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { +func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1137,15 +1494,15 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1173,7 +1530,7 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1196,7 +1553,7 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { +func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1219,15 +1576,15 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1255,7 +1612,7 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) + m.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 2cfb3a2cd..5d75e90ba 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -62,26 +62,15 @@ func request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["creator"] + val, ok = pathParams["denom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") } - protoReq.Creator, err = runtime.String(val) + protoReq.Denom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) - } - - val, ok = pathParams["subdenom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") - } - - protoReq.Subdenom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) } msg, err := client.DenomAuthorityMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -100,26 +89,15 @@ func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["creator"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") - } - - protoReq.Creator, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) - } - - val, ok = pathParams["subdenom"] + val, ok = pathParams["denom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") } - protoReq.Subdenom, err = runtime.String(val) + protoReq.Denom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) } msg, err := server.DenomAuthorityMetadata(ctx, &protoReq) @@ -181,6 +159,60 @@ func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runt } +func request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBeforeSendHookAddressRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["denom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + } + + protoReq.Denom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + } + + msg, err := client.BeforeSendHookAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBeforeSendHookAddressRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["denom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + } + + protoReq.Denom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + } + + msg, err := server.BeforeSendHookAddress(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -256,6 +288,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -357,15 +412,37 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "tokenfactory", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_BeforeSendHookAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "before_send_hook"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -374,4 +451,6 @@ var ( forward_Query_DenomAuthorityMetadata_0 = runtime.ForwardResponseMessage forward_Query_DenomsFromCreator_0 = runtime.ForwardResponseMessage + + forward_Query_BeforeSendHookAddress_0 = runtime.ForwardResponseMessage ) diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index aea490b5a..dde9c35b6 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -7,9 +7,11 @@ import ( context "context" fmt "fmt" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + types1 "github.com/cosmos/cosmos-sdk/x/bank/types" + _ "github.com/gogo/protobuf/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -29,13 +31,15 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// MsgCreateDenom is the sdk.Msg type for allowing an account to create -// a new denom. It requires a sender address and a subdenomination. -// The (sender_address, sub_denomination) pair must be unique and cannot be -// re-used. The resulting denom created is `factory/{creator -// address}/{subdenom}`. The resultant denom's admin is originally set to be the -// creator, but this can be changed later. The token denom does not indicate the -// current admin. +// MsgCreateDenom defines the message structure for the CreateDenom gRPC service +// method. It allows an account to create a new denom. It requires a sender +// address and a sub denomination. The (sender_address, sub_denomination) tuple +// must be unique and cannot be re-used. +// +// The resulting denom created is defined as +// . The resulting denom's admin is +// originally set to be the creator, but this can be changed later. The token +// denom does not indicate the current admin. type MsgCreateDenom struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // subdenom can be up to 44 "alphanumeric" characters long. @@ -138,8 +142,9 @@ func (m *MsgCreateDenomResponse) GetNewTokenDenom() string { // MsgMint is the sdk.Msg type for allowing an admin account to mint // more of a token. For now, we only support minting to the sender account type MsgMint struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` - Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` + Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` + MintToAddress string `protobuf:"bytes,3,opt,name=mintToAddress,proto3" json:"mintToAddress,omitempty" yaml:"mint_to_address"` } func (m *MsgMint) Reset() { *m = MsgMint{} } @@ -189,6 +194,13 @@ func (m *MsgMint) GetAmount() types.Coin { return types.Coin{} } +func (m *MsgMint) GetMintToAddress() string { + if m != nil { + return m.MintToAddress + } + return "" +} + type MsgMintResponse struct { } @@ -228,8 +240,9 @@ var xxx_messageInfo_MsgMintResponse proto.InternalMessageInfo // MsgBurn is the sdk.Msg type for allowing an admin account to burn // a token. For now, we only support burning from the sender account. type MsgBurn struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` - Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` + Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` + BurnFromAddress string `protobuf:"bytes,3,opt,name=burnFromAddress,proto3" json:"burnFromAddress,omitempty" yaml:"burn_from_address"` } func (m *MsgBurn) Reset() { *m = MsgBurn{} } @@ -279,6 +292,13 @@ func (m *MsgBurn) GetAmount() types.Coin { return types.Coin{} } +func (m *MsgBurn) GetBurnFromAddress() string { + if m != nil { + return m.BurnFromAddress + } + return "" +} + type MsgBurnResponse struct { } @@ -320,7 +340,7 @@ var xxx_messageInfo_MsgBurnResponse proto.InternalMessageInfo type MsgChangeAdmin struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` - NewAdmin string `protobuf:"bytes,3,opt,name=newAdmin,proto3" json:"newAdmin,omitempty" yaml:"new_admin"` + NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty" yaml:"new_admin"` } func (m *MsgChangeAdmin) Reset() { *m = MsgChangeAdmin{} } @@ -377,6 +397,8 @@ func (m *MsgChangeAdmin) GetNewAdmin() string { return "" } +// MsgChangeAdminResponse defines the response structure for an executed +// MsgChangeAdmin message. type MsgChangeAdminResponse struct { } @@ -413,6 +435,302 @@ func (m *MsgChangeAdminResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgChangeAdminResponse proto.InternalMessageInfo +// MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to +// assign a CosmWasm contract to call with a BeforeSend hook +type MsgSetBeforeSendHook struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` + CosmwasmAddress string `protobuf:"bytes,3,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` +} + +func (m *MsgSetBeforeSendHook) Reset() { *m = MsgSetBeforeSendHook{} } +func (m *MsgSetBeforeSendHook) String() string { return proto.CompactTextString(m) } +func (*MsgSetBeforeSendHook) ProtoMessage() {} +func (*MsgSetBeforeSendHook) Descriptor() ([]byte, []int) { + return fileDescriptor_283b6c9a90a846b4, []int{8} +} +func (m *MsgSetBeforeSendHook) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetBeforeSendHook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetBeforeSendHook.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 *MsgSetBeforeSendHook) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetBeforeSendHook.Merge(m, src) +} +func (m *MsgSetBeforeSendHook) XXX_Size() int { + return m.Size() +} +func (m *MsgSetBeforeSendHook) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetBeforeSendHook.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetBeforeSendHook proto.InternalMessageInfo + +func (m *MsgSetBeforeSendHook) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgSetBeforeSendHook) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *MsgSetBeforeSendHook) GetCosmwasmAddress() string { + if m != nil { + return m.CosmwasmAddress + } + return "" +} + +// MsgSetBeforeSendHookResponse defines the response structure for an executed +// MsgSetBeforeSendHook message. +type MsgSetBeforeSendHookResponse struct { +} + +func (m *MsgSetBeforeSendHookResponse) Reset() { *m = MsgSetBeforeSendHookResponse{} } +func (m *MsgSetBeforeSendHookResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetBeforeSendHookResponse) ProtoMessage() {} +func (*MsgSetBeforeSendHookResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_283b6c9a90a846b4, []int{9} +} +func (m *MsgSetBeforeSendHookResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetBeforeSendHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetBeforeSendHookResponse.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 *MsgSetBeforeSendHookResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetBeforeSendHookResponse.Merge(m, src) +} +func (m *MsgSetBeforeSendHookResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetBeforeSendHookResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetBeforeSendHookResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetBeforeSendHookResponse proto.InternalMessageInfo + +// MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set +// the denom's bank metadata +type MsgSetDenomMetadata struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` + Metadata types1.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata" yaml:"metadata"` +} + +func (m *MsgSetDenomMetadata) Reset() { *m = MsgSetDenomMetadata{} } +func (m *MsgSetDenomMetadata) String() string { return proto.CompactTextString(m) } +func (*MsgSetDenomMetadata) ProtoMessage() {} +func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_283b6c9a90a846b4, []int{10} +} +func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetDenomMetadata.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 *MsgSetDenomMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetDenomMetadata.Merge(m, src) +} +func (m *MsgSetDenomMetadata) XXX_Size() int { + return m.Size() +} +func (m *MsgSetDenomMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetDenomMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetDenomMetadata proto.InternalMessageInfo + +func (m *MsgSetDenomMetadata) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgSetDenomMetadata) GetMetadata() types1.Metadata { + if m != nil { + return m.Metadata + } + return types1.Metadata{} +} + +// MsgSetDenomMetadataResponse defines the response structure for an executed +// MsgSetDenomMetadata message. +type MsgSetDenomMetadataResponse struct { +} + +func (m *MsgSetDenomMetadataResponse) Reset() { *m = MsgSetDenomMetadataResponse{} } +func (m *MsgSetDenomMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetDenomMetadataResponse) ProtoMessage() {} +func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_283b6c9a90a846b4, []int{11} +} +func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetDenomMetadataResponse.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 *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetDenomMetadataResponse.Merge(m, src) +} +func (m *MsgSetDenomMetadataResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetDenomMetadataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetDenomMetadataResponse proto.InternalMessageInfo + +type MsgForceTransfer struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` + Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` + TransferFromAddress string `protobuf:"bytes,3,opt,name=transferFromAddress,proto3" json:"transferFromAddress,omitempty" yaml:"transfer_from_address"` + TransferToAddress string `protobuf:"bytes,4,opt,name=transferToAddress,proto3" json:"transferToAddress,omitempty" yaml:"transfer_to_address"` +} + +func (m *MsgForceTransfer) Reset() { *m = MsgForceTransfer{} } +func (m *MsgForceTransfer) String() string { return proto.CompactTextString(m) } +func (*MsgForceTransfer) ProtoMessage() {} +func (*MsgForceTransfer) Descriptor() ([]byte, []int) { + return fileDescriptor_283b6c9a90a846b4, []int{12} +} +func (m *MsgForceTransfer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgForceTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgForceTransfer.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 *MsgForceTransfer) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgForceTransfer.Merge(m, src) +} +func (m *MsgForceTransfer) XXX_Size() int { + return m.Size() +} +func (m *MsgForceTransfer) XXX_DiscardUnknown() { + xxx_messageInfo_MsgForceTransfer.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgForceTransfer proto.InternalMessageInfo + +func (m *MsgForceTransfer) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgForceTransfer) GetAmount() types.Coin { + if m != nil { + return m.Amount + } + return types.Coin{} +} + +func (m *MsgForceTransfer) GetTransferFromAddress() string { + if m != nil { + return m.TransferFromAddress + } + return "" +} + +func (m *MsgForceTransfer) GetTransferToAddress() string { + if m != nil { + return m.TransferToAddress + } + return "" +} + +type MsgForceTransferResponse struct { +} + +func (m *MsgForceTransferResponse) Reset() { *m = MsgForceTransferResponse{} } +func (m *MsgForceTransferResponse) String() string { return proto.CompactTextString(m) } +func (*MsgForceTransferResponse) ProtoMessage() {} +func (*MsgForceTransferResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_283b6c9a90a846b4, []int{13} +} +func (m *MsgForceTransferResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgForceTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgForceTransferResponse.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 *MsgForceTransferResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgForceTransferResponse.Merge(m, src) +} +func (m *MsgForceTransferResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgForceTransferResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgForceTransferResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgForceTransferResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgCreateDenom)(nil), "osmosis.tokenfactory.v1beta1.MsgCreateDenom") proto.RegisterType((*MsgCreateDenomResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse") @@ -422,6 +740,12 @@ func init() { proto.RegisterType((*MsgBurnResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgBurnResponse") proto.RegisterType((*MsgChangeAdmin)(nil), "osmosis.tokenfactory.v1beta1.MsgChangeAdmin") proto.RegisterType((*MsgChangeAdminResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse") + proto.RegisterType((*MsgSetBeforeSendHook)(nil), "osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook") + proto.RegisterType((*MsgSetBeforeSendHookResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse") + proto.RegisterType((*MsgSetDenomMetadata)(nil), "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata") + proto.RegisterType((*MsgSetDenomMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse") + proto.RegisterType((*MsgForceTransfer)(nil), "osmosis.tokenfactory.v1beta1.MsgForceTransfer") + proto.RegisterType((*MsgForceTransferResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgForceTransferResponse") } func init() { @@ -429,39 +753,63 @@ func init() { } var fileDescriptor_283b6c9a90a846b4 = []byte{ - // 507 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0x4f, 0x6e, 0xd3, 0x40, - 0x14, 0xc6, 0x63, 0x02, 0xa1, 0x4c, 0x29, 0x69, 0x4d, 0xa9, 0x82, 0x85, 0x6c, 0x34, 0x52, 0x11, - 0x48, 0x74, 0x4c, 0x5b, 0x56, 0xec, 0x70, 0x59, 0xb0, 0xf1, 0xc6, 0x62, 0x85, 0x2a, 0x55, 0x76, - 0x32, 0xb8, 0x16, 0xf5, 0xbc, 0xe0, 0x19, 0x93, 0x66, 0xc3, 0x19, 0xd8, 0x70, 0x06, 0xae, 0xd2, - 0x65, 0x97, 0xac, 0x2c, 0x94, 0xdc, 0xc0, 0x27, 0x40, 0x9e, 0x99, 0x38, 0x0e, 0x48, 0x24, 0x59, - 0x75, 0x67, 0xf9, 0xfd, 0xde, 0xf7, 0xfe, 0x7c, 0xcf, 0x46, 0xfb, 0xc0, 0x53, 0xe0, 0x09, 0x77, - 0x05, 0x7c, 0xa6, 0xec, 0x53, 0xd8, 0x17, 0x90, 0x8d, 0xdd, 0xaf, 0x87, 0x11, 0x15, 0xe1, 0xa1, - 0x2b, 0x2e, 0xc9, 0x30, 0x03, 0x01, 0xe6, 0x13, 0x8d, 0x91, 0x26, 0x46, 0x34, 0x66, 0xed, 0xc6, - 0x10, 0x83, 0x04, 0xdd, 0xea, 0x49, 0xe5, 0x58, 0x76, 0x5f, 0x26, 0xb9, 0x51, 0xc8, 0x69, 0xad, - 0xd8, 0x87, 0x84, 0xa9, 0x38, 0xbe, 0x40, 0x0f, 0x7c, 0x1e, 0x9f, 0x64, 0x34, 0x14, 0xf4, 0x1d, - 0x65, 0x90, 0x9a, 0x2f, 0x50, 0x87, 0x53, 0x36, 0xa0, 0x59, 0xcf, 0x78, 0x6a, 0x3c, 0xbf, 0xe7, - 0xed, 0x94, 0x85, 0xb3, 0x35, 0x0e, 0xd3, 0x8b, 0x37, 0x58, 0xbd, 0xc7, 0x81, 0x06, 0x4c, 0x17, - 0x6d, 0xf0, 0x3c, 0x1a, 0x54, 0x69, 0xbd, 0x5b, 0x12, 0x7e, 0x58, 0x16, 0x4e, 0x57, 0xc3, 0x3a, - 0x82, 0x83, 0x1a, 0xc2, 0xa7, 0x68, 0x6f, 0xb1, 0x5a, 0x40, 0xf9, 0x10, 0x18, 0xa7, 0xa6, 0x87, - 0xba, 0x8c, 0x8e, 0xce, 0xe4, 0x64, 0x67, 0x4a, 0x51, 0x95, 0xb7, 0xca, 0xc2, 0xd9, 0x53, 0x8a, - 0x7f, 0x01, 0x38, 0xd8, 0x62, 0x74, 0xf4, 0xa1, 0x7a, 0x21, 0xb5, 0xf0, 0x37, 0x74, 0xd7, 0xe7, - 0xb1, 0x9f, 0x30, 0xb1, 0xce, 0x10, 0xef, 0x51, 0x27, 0x4c, 0x21, 0x67, 0x42, 0x8e, 0xb0, 0x79, - 0xf4, 0x98, 0xa8, 0x95, 0x91, 0x6a, 0x65, 0xb3, 0xed, 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 0x3c, 0x8e, 0x13, - 0x71, 0x9e, 0x47, 0xa4, 0x0f, 0xa9, 0xcb, 0x68, 0x2e, 0x32, 0x60, 0x07, 0x90, 0xc5, 0xb3, 0x67, - 0xf7, 0x72, 0xf1, 0xdf, 0x27, 0xc6, 0x43, 0xca, 0xa3, 0x8e, 0xfc, 0x47, 0x1d, 0xff, 0x09, 0x00, - 0x00, 0xff, 0xff, 0xc5, 0xd4, 0x8d, 0xbe, 0x20, 0x05, 0x00, 0x00, + // 895 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xbf, 0x6f, 0xdb, 0x46, + 0x14, 0x36, 0x93, 0xd4, 0x75, 0x2e, 0x75, 0x25, 0xd1, 0x6e, 0xa2, 0x30, 0x0e, 0x99, 0x5e, 0x91, + 0xc0, 0x2d, 0x2a, 0x12, 0x72, 0x8b, 0xfe, 0xd0, 0xd4, 0x28, 0x85, 0x91, 0xa1, 0x5a, 0x18, 0x4f, + 0x45, 0x00, 0xe1, 0x28, 0x9d, 0x68, 0x42, 0xe1, 0x9d, 0xcb, 0x3b, 0x45, 0xf1, 0x56, 0xa0, 0x5b, + 0xa7, 0x0e, 0xf9, 0x27, 0xba, 0xf5, 0x2f, 0xe8, 0x9c, 0x31, 0x40, 0x97, 0x4e, 0x84, 0x61, 0x03, + 0xed, 0xce, 0xbf, 0xa0, 0xb8, 0x1f, 0xa4, 0x44, 0x4a, 0xb0, 0xa5, 0xa1, 0xc8, 0x62, 0x98, 0x77, + 0xdf, 0xf7, 0xee, 0x7d, 0xdf, 0xbd, 0xf7, 0x4e, 0xe0, 0x21, 0x65, 0x31, 0x65, 0x11, 0xf3, 0x38, + 0x1d, 0x63, 0x32, 0x42, 0x03, 0x4e, 0x93, 0x53, 0xef, 0x65, 0x3b, 0xc0, 0x1c, 0xb5, 0x3d, 0xfe, + 0xca, 0x3d, 0x49, 0x28, 0xa7, 0x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, 0xff, 0xf0, + 0x5e, 0xb6, 0xbf, 0xf6, 0x5e, 0x95, 0x9b, 0x94, 0x9f, 0x9e, 0x60, 0x16, 0x6c, 0xca, 0xdf, 0x9c, + 0x5f, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xba, 0xea, 0x73, 0xcf, 0x23, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -480,6 +828,9 @@ type MsgClient interface { Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) ChangeAdmin(ctx context.Context, in *MsgChangeAdmin, opts ...grpc.CallOption) (*MsgChangeAdminResponse, error) + SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error) + SetBeforeSendHook(ctx context.Context, in *MsgSetBeforeSendHook, opts ...grpc.CallOption) (*MsgSetBeforeSendHookResponse, error) + ForceTransfer(ctx context.Context, in *MsgForceTransfer, opts ...grpc.CallOption) (*MsgForceTransferResponse, error) } type msgClient struct { @@ -526,12 +877,42 @@ func (c *msgClient) ChangeAdmin(ctx context.Context, in *MsgChangeAdmin, opts .. return out, nil } +func (c *msgClient) SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error) { + out := new(MsgSetDenomMetadataResponse) + err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Msg/SetDenomMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetBeforeSendHook(ctx context.Context, in *MsgSetBeforeSendHook, opts ...grpc.CallOption) (*MsgSetBeforeSendHookResponse, error) { + out := new(MsgSetBeforeSendHookResponse) + err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Msg/SetBeforeSendHook", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ForceTransfer(ctx context.Context, in *MsgForceTransfer, opts ...grpc.CallOption) (*MsgForceTransferResponse, error) { + out := new(MsgForceTransferResponse) + err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Msg/ForceTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { CreateDenom(context.Context, *MsgCreateDenom) (*MsgCreateDenomResponse, error) Mint(context.Context, *MsgMint) (*MsgMintResponse, error) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) ChangeAdmin(context.Context, *MsgChangeAdmin) (*MsgChangeAdminResponse, error) + SetDenomMetadata(context.Context, *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) + SetBeforeSendHook(context.Context, *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error) + ForceTransfer(context.Context, *MsgForceTransfer) (*MsgForceTransferResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -550,6 +931,15 @@ func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurn func (*UnimplementedMsgServer) ChangeAdmin(ctx context.Context, req *MsgChangeAdmin) (*MsgChangeAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeAdmin not implemented") } +func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDenomMetadata not implemented") +} +func (*UnimplementedMsgServer) SetBeforeSendHook(ctx context.Context, req *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetBeforeSendHook not implemented") +} +func (*UnimplementedMsgServer) ForceTransfer(ctx context.Context, req *MsgForceTransfer) (*MsgForceTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ForceTransfer not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -627,6 +1017,60 @@ func _Msg_ChangeAdmin_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } +func _Msg_SetDenomMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetDenomMetadata) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetDenomMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.tokenfactory.v1beta1.Msg/SetDenomMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetDenomMetadata(ctx, req.(*MsgSetDenomMetadata)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetBeforeSendHook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetBeforeSendHook) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetBeforeSendHook(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.tokenfactory.v1beta1.Msg/SetBeforeSendHook", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetBeforeSendHook(ctx, req.(*MsgSetBeforeSendHook)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ForceTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgForceTransfer) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ForceTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.tokenfactory.v1beta1.Msg/ForceTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ForceTransfer(ctx, req.(*MsgForceTransfer)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "osmosis.tokenfactory.v1beta1.Msg", HandlerType: (*MsgServer)(nil), @@ -647,6 +1091,18 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "ChangeAdmin", Handler: _Msg_ChangeAdmin_Handler, }, + { + MethodName: "SetDenomMetadata", + Handler: _Msg_SetDenomMetadata_Handler, + }, + { + MethodName: "SetBeforeSendHook", + Handler: _Msg_SetBeforeSendHook_Handler, + }, + { + MethodName: "ForceTransfer", + Handler: _Msg_ForceTransfer_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "osmosis/tokenfactory/v1beta1/tx.proto", @@ -739,6 +1195,13 @@ func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.MintToAddress) > 0 { + i -= len(m.MintToAddress) + copy(dAtA[i:], m.MintToAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.MintToAddress))) + i-- + dAtA[i] = 0x1a + } { size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -802,7 +1265,14 @@ func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { + if len(m.BurnFromAddress) > 0 { + i -= len(m.BurnFromAddress) + copy(dAtA[i:], m.BurnFromAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BurnFromAddress))) + i-- + dAtA[i] = 0x1a + } + { size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err @@ -912,6 +1382,213 @@ func (m *MsgChangeAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *MsgSetBeforeSendHook) 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 *MsgSetBeforeSendHook) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetBeforeSendHook) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CosmwasmAddress) > 0 { + i -= len(m.CosmwasmAddress) + copy(dAtA[i:], m.CosmwasmAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.CosmwasmAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetBeforeSendHookResponse) 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 *MsgSetBeforeSendHookResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetBeforeSendHookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetDenomMetadata) 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 *MsgSetDenomMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetDenomMetadataResponse) 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 *MsgSetDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgForceTransfer) 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 *MsgForceTransfer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgForceTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TransferToAddress) > 0 { + i -= len(m.TransferToAddress) + copy(dAtA[i:], m.TransferToAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.TransferToAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.TransferFromAddress) > 0 { + i -= len(m.TransferFromAddress) + copy(dAtA[i:], m.TransferFromAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.TransferFromAddress))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgForceTransferResponse) 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 *MsgForceTransferResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgForceTransferResponse) 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 @@ -965,6 +1642,10 @@ func (m *MsgMint) Size() (n int) { } l = m.Amount.Size() n += 1 + l + sovTx(uint64(l)) + l = len(m.MintToAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -989,6 +1670,10 @@ func (m *MsgBurn) Size() (n int) { } l = m.Amount.Size() n += 1 + l + sovTx(uint64(l)) + l = len(m.BurnFromAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -1019,25 +1704,701 @@ func (m *MsgChangeAdmin) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - return n -} + return n +} + +func (m *MsgChangeAdminResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetBeforeSendHook) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.CosmwasmAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetBeforeSendHookResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetDenomMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Metadata.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetDenomMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgForceTransfer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.TransferFromAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TransferToAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgForceTransferResponse) 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 *MsgCreateDenom) 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: MsgCreateDenom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateDenom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", 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.Subdenom = string(dAtA[iNdEx:postIndex]) + 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 *MsgCreateDenomResponse) 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: MsgCreateDenomResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateDenomResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewTokenDenom", 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.NewTokenDenom = string(dAtA[iNdEx:postIndex]) + 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 *MsgMint) 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: MsgMint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintToAddress", 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.MintToAddress = string(dAtA[iNdEx:postIndex]) + 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 *MsgMintResponse) 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: MsgMintResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMintResponse: 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 (m *MsgBurn) 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: MsgBurn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BurnFromAddress", 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.BurnFromAddress = string(dAtA[iNdEx:postIndex]) + 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 + } + } -func (m *MsgChangeAdminResponse) Size() (n int) { - if m == nil { - return 0 + if iNdEx > l { + return io.ErrUnexpectedEOF } - var l int - _ = l - return n + return nil } +func (m *MsgBurnResponse) 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: MsgBurnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgBurnResponse: 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 + } + } -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)))) + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { +func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1060,10 +2421,10 @@ func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateDenom: wiretype end group for non-group") + return fmt.Errorf("proto: MsgChangeAdmin: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateDenom: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgChangeAdmin: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1100,7 +2461,7 @@ func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1128,7 +2489,39 @@ func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Subdenom = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", 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.NewAdmin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1151,7 +2544,7 @@ func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error { +func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1174,44 +2567,12 @@ func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateDenomResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgChangeAdminResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateDenomResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgChangeAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewTokenDenom", 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.NewTokenDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1233,7 +2594,7 @@ func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMint) Unmarshal(dAtA []byte) error { +func (m *MsgSetBeforeSendHook) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1256,10 +2617,10 @@ func (m *MsgMint) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMint: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetBeforeSendHook: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMint: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetBeforeSendHook: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1296,9 +2657,9 @@ func (m *MsgMint) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1308,24 +2669,55 @@ func (m *MsgMint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", 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.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1348,7 +2740,7 @@ func (m *MsgMint) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMintResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetBeforeSendHookResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1371,10 +2763,10 @@ func (m *MsgMintResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMintResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetBeforeSendHookResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetBeforeSendHookResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1398,7 +2790,7 @@ func (m *MsgMintResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurn) Unmarshal(dAtA []byte) error { +func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1421,10 +2813,10 @@ func (m *MsgBurn) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBurn: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetDenomMetadata: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurn: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetDenomMetadata: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1461,7 +2853,7 @@ func (m *MsgBurn) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1488,7 +2880,7 @@ func (m *MsgBurn) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1513,7 +2905,7 @@ func (m *MsgBurn) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1536,10 +2928,10 @@ func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBurnResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetDenomMetadataResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetDenomMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1563,7 +2955,7 @@ func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { +func (m *MsgForceTransfer) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1586,10 +2978,10 @@ func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgChangeAdmin: wiretype end group for non-group") + return fmt.Errorf("proto: MsgForceTransfer: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgChangeAdmin: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgForceTransfer: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1626,7 +3018,40 @@ func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferFromAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1654,11 +3079,11 @@ func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) + m.TransferFromAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransferToAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1686,7 +3111,7 @@ func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NewAdmin = string(dAtA[iNdEx:postIndex]) + m.TransferToAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1709,7 +3134,7 @@ func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error { +func (m *MsgForceTransferResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1732,10 +3157,10 @@ func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgChangeAdminResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgForceTransferResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgChangeAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgForceTransferResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: From 143c6c9865aeb701ddedcc7cd08efd46b7ebff25 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 23 Aug 2023 12:30:42 +0400 Subject: [PATCH 053/307] rework to get rid of rudimentary proposals --- app/app.go | 3 +- go.mod | 3 +- go.sum | 4 +- wasmbinding/bindings/msg.go | 59 ++++-------------------- wasmbinding/message_plugin.go | 85 ++++------------------------------- 5 files changed, 20 insertions(+), 134 deletions(-) diff --git a/app/app.go b/app/app.go index 0c2ec4f87..b0f40236d 100644 --- a/app/app.go +++ b/app/app.go @@ -635,7 +635,6 @@ func New( AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(&app.UpgradeKeeper)). AddRoute(ibchost.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) - keeperModules := map[string]adminmodulemodulekeeper.RegisteredModuleUpdateParams{wasm.ModuleName: {UpdateParamsMsg: &wasmtypes.MsgUpdateParams{}}} app.AdminmoduleKeeper = *adminmodulemodulekeeper.NewKeeper( appCodec, keys[adminmodulemoduletypes.StoreKey], @@ -643,7 +642,7 @@ func New( adminRouterLegacy, app.MsgServiceRouter(), IsConsumerProposalAllowlisted, - keeperModules, + func(string) bool { return true }, ) adminModule := adminmodulemodule.NewAppModule(appCodec, app.AdminmoduleKeeper) diff --git a/go.mod b/go.mod index 2e330cffc..194b502e9 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,6 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.29.1 - github.com/rs/zerolog v1.29.1 github.com/skip-mev/pob v1.0.3 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 @@ -191,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230816141742-5c3c1b7b898e + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230823081308-b02d1ad105cb github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index 642ca1b96..f4fb8a248 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230816141742-5c3c1b7b898e h1:VM84Gg+L8etB2RCyLaR/191Z9/HwsGpaJO1bFJoIUUg= -github.com/neutron-org/admin-module v0.0.0-20230816141742-5c3c1b7b898e/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230823081308-b02d1ad105cb h1:lIK75IVEeMOVaaGL5cy73UNqg6evv6LcUewd6JfO+lA= +github.com/neutron-org/admin-module v0.0.0-20230823081308-b02d1ad105cb/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index de2058fa0..4e914f7e3 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -2,6 +2,8 @@ package bindings import ( + "encoding/json" + "cosmossdk.io/math" cosmostypes "github.com/cosmos/cosmos-sdk/codec/types" paramChange "github.com/cosmos/cosmos-sdk/x/params/types/proposal" @@ -89,16 +91,10 @@ type SubmitAdminProposal struct { } type AdminProposal struct { - ParamChangeProposal *ParamChangeProposal `json:"param_change_proposal,omitempty"` - SoftwareUpgradeProposal *SoftwareUpgradeProposal `json:"software_upgrade_proposal,omitempty"` - CancelSoftwareUpgradeProposal *CancelSoftwareUpgradeProposal `json:"cancel_software_upgrade_proposal,omitempty"` - UpgradeProposal *UpgradeProposal `json:"upgrade_proposal,omitempty"` - ClientUpdateProposal *ClientUpdateProposal `json:"client_update_proposal,omitempty"` - PinCodesProposal *PinCodesProposal `json:"pin_codes_proposal,omitempty"` - UnpinCodesProposal *UnpinCodesProposal `json:"unpin_codes_proposal,omitempty"` - UpdateAdminProposal *UpdateAdminProposal `json:"update_admin_proposal,omitempty"` - ClearAdminProposal *ClearAdminProposal `json:"clear_admin_proposal,omitempty"` - ParamChangeNewProposal *ParamChangeNewProposal `json:"param_change_new_proposal,omitempty"` + ParamChangeProposal *ParamChangeProposal `json:"param_change_proposal,omitempty"` + UpgradeProposal *UpgradeProposal `json:"upgrade_proposal,omitempty"` + ClientUpdateProposal *ClientUpdateProposal `json:"client_update_proposal,omitempty"` + ProposalExecuteMessage *ProposalExecuteMessage `json:"proposal_execute_message,omitempty"` } type ParamChangeProposal struct { @@ -107,19 +103,6 @@ type ParamChangeProposal struct { ParamChanges []paramChange.ParamChange `json:"param_changes"` } -type SoftwareUpgradeProposal struct { - // deprecated - Title string `json:"title"` - // deprecated - Description string `json:"description"` - Plan Plan `json:"plan"` -} - -type CancelSoftwareUpgradeProposal struct { - Title string `json:"title"` - Description string `json:"description"` -} - type Plan struct { Name string `json:"name"` Height int64 `json:"height"` @@ -160,34 +143,8 @@ type ClientUpdateProposal struct { SubstituteClientId string `json:"substitute_client_id,omitempty"` } -type PinCodesProposal struct { - Title string `json:"title,omitempty"` - Description string `json:"description,omitempty"` - CodeIDs []uint64 `json:"code_ids,omitempty"` -} - -type UnpinCodesProposal struct { - Title string `json:"title,omitempty"` - Description string `json:"description,omitempty"` - CodeIDs []uint64 `json:"code_ids,omitempty"` -} - -type UpdateAdminProposal struct { - Title string `json:"title,omitempty"` - Description string `json:"description,omitempty"` - NewAdmin string `json:"new_admin"` - Contract string `json:"contract,omitempty"` -} - -type ClearAdminProposal struct { - Title string `json:"title,omitempty"` - Description string `json:"description,omitempty"` - Contract string `json:"contract,omitempty"` -} - -type ParamChangeNewProposal struct { - Module string `json:"module,omitempty"` - NewParams string `json:"new_params,omitempty"` +type ProposalExecuteMessage struct { + Message json.RawMessage `json:"message,omitempty"` } // CreateDenom creates a new factory denom, of denomination: diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index a51b8c53d..1eb37dba2 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -9,8 +9,6 @@ import ( crontypes "github.com/neutron-org/neutron/x/cron/types" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" paramChange "github.com/cosmos/cosmos-sdk/x/params/types/proposal" @@ -420,7 +418,7 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { proposal := submitAdminProposal.AdminProposal - authority := authtypes.NewModuleAddress(admintypes.ModuleName).String() + authority := authtypes.NewModuleAddress(admintypes.ModuleName) err := m.validateProposalQty(&proposal) if err != nil { @@ -431,63 +429,14 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd var sdkMsgs []sdk.Msg var sdkMsg sdk.Msg - if proposal.SoftwareUpgradeProposal != nil { - p := proposal.SoftwareUpgradeProposal - sdkMsg = &softwareUpgrade.MsgSoftwareUpgrade{ - Authority: authority, - Plan: softwareUpgrade.Plan{ - Name: p.Plan.Name, - Height: p.Plan.Height, - Info: p.Plan.Info, - }, - } - } - - if proposal.CancelSoftwareUpgradeProposal != nil { - sdkMsg = &softwareUpgrade.MsgCancelUpgrade{Authority: authority} - } - - if proposal.PinCodesProposal != nil { - p := proposal.PinCodesProposal - sdkMsg = &wasmtypes.MsgPinCodes{Authority: authority, CodeIDs: p.CodeIDs} - } - - if proposal.UnpinCodesProposal != nil { - p := proposal.UnpinCodesProposal - sdkMsg = &wasmtypes.MsgUnpinCodes{Authority: authority, CodeIDs: p.CodeIDs} - } - - if proposal.UpdateAdminProposal != nil { - p := proposal.UpdateAdminProposal - sdkMsg = &wasmtypes.MsgUpdateAdmin{ - Sender: authority, - NewAdmin: p.NewAdmin, - Contract: p.Contract, - } - } - - if proposal.ClearAdminProposal != nil { - p := proposal.ClearAdminProposal - sdkMsg = &wasmtypes.MsgClearAdmin{ - Sender: authority, - Contract: p.Contract, - } + cdc := m.AdminKeeper.Codec() + err = cdc.UnmarshalInterfaceJSON(proposal.ProposalExecuteMessage.Message, &sdkMsg) + if err != nil { + return nil, errors.Wrap(err, "failed to unmarshall incoming sdk message") } - - if proposal.ParamChangeNewProposal != nil { - p := proposal.ParamChangeNewProposal - myJsonString := fmt.Sprintf(`{"authority":"%s", "params": "%s"}`, authority, p.NewParams) - module, ok := m.AdminKeeper.RegisteredModulesUpdateParams[p.Module] - if ok { - sdkMsg = module.UpdateParamsMsg - err := json.Unmarshal([]byte(myJsonString), sdkMsg) - if err != nil { - return nil, errors.Wrap(err, "failed to marshal incoming UpdateParams message") - - } - } else { - return nil, errors.Wrap(err, "module is not registered to update params") - } + signers := sdkMsg.GetSigners() + if signers[0].Equals(authority) && len(signers) != 0 { + return nil, errors.Wrap(err, "authority in incoming msg is not equal to admin module") } sdkMsgs = append(sdkMsgs, sdkMsg) msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) @@ -806,30 +755,12 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) if proposal.ParamChangeProposal != nil { qty++ } - if proposal.SoftwareUpgradeProposal != nil { - qty++ - } - if proposal.CancelSoftwareUpgradeProposal != nil { - qty++ - } if proposal.ClientUpdateProposal != nil { qty++ } if proposal.UpgradeProposal != nil { qty++ } - if proposal.PinCodesProposal != nil { - qty++ - } - if proposal.UnpinCodesProposal != nil { - qty++ - } - if proposal.UpdateAdminProposal != nil { - qty++ - } - if proposal.ClearAdminProposal != nil { - qty++ - } if qty == 0 { return fmt.Errorf("no admin proposal type is present in message") From 44455a1923dd98c2ed9ff0b12c0cf9107651e943 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 23 Aug 2023 14:06:57 +0400 Subject: [PATCH 054/307] fix review --- app/upgrades/nextupgrade/upgrades.go | 5 ++-- app/upgrades/nextupgrade/upgrades_test.go | 9 +++++--- tests/e2e/rewards_test.go | 28 ----------------------- 3 files changed, 9 insertions(+), 33 deletions(-) delete mode 100644 tests/e2e/rewards_test.go diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 62b61c92c..1dbbda45b 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -102,8 +102,9 @@ func migrateRewardDenoms(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) erro var denoms []string keepers.CcvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denoms) - // add new denom - denoms = append(denoms, "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349") + // add new axlr usdc denom + axlrDenom := "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349" + denoms = append(denoms, axlrDenom) keepers.CcvConsumerSubspace.Set(ctx, ccvconsumertypes.KeyRewardDenoms, &denoms) diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 00e874aa2..6f57ac2dc 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,6 +1,7 @@ package nextupgrade_test import ( + "github.com/neutron-org/neutron/app/params" "testing" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" @@ -79,10 +80,12 @@ func (suite *UpgradeTestSuite) TestRewardDenomsUpgrade() { suite.Require().True(ccvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms)) + // emulate mainnet/testnet state + ccvConsumerSubspace.Set(ctx, ccvconsumertypes.KeyRewardDenoms, &[]string{params.DefaultDenom}) + var denomsBefore []string ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denomsBefore) - var empty []string = nil - suite.Require().Equal(denomsBefore, empty) + suite.Require().Equal(denomsBefore, []string{params.DefaultDenom}) upgrade := upgradetypes.Plan{ Name: nextupgrade.UpgradeName, @@ -95,6 +98,6 @@ func (suite *UpgradeTestSuite) TestRewardDenomsUpgrade() { var denoms []string ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denoms) - requiredDenoms := []string{"ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349"} + requiredDenoms := []string{params.DefaultDenom, "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349"} suite.Require().Equal(requiredDenoms, denoms) } diff --git a/tests/e2e/rewards_test.go b/tests/e2e/rewards_test.go deleted file mode 100644 index 51b3bcc52..000000000 --- a/tests/e2e/rewards_test.go +++ /dev/null @@ -1,28 +0,0 @@ -package e2e - -import ( - "github.com/neutron-org/neutron/testutil" - "github.com/stretchr/testify/suite" - "testing" -) - -type RewardsTestSuite struct { - testutil.IBCConnectionTestSuite -} - -func TestRewards(t *testing.T) { - suite.Run(t, new(RewardsTestSuite)) -} - -func (suite *RewardsTestSuite) TestOnRecvPacketHooks() { - suite.ConfigureTransferChannel() - neutron := suite.GetNeutronZoneApp(suite.ChainA) - - // so we have a connection - suite. - suite.TransferPath.EndpointA.ChannelID - - // we need to make a transaction with non-untrn fees - - // after that check that we transferred fees to the specified address -} From fc3e6fc654b87530f0511fea7d532bcf111f1e30 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 25 Aug 2023 13:04:16 +0400 Subject: [PATCH 055/307] add whitelisting, fix issues, upd adminmodule --- app/app.go | 2 +- app/proposals_allowlisting.go | 25 +++++++++++++++++-------- go.mod | 2 +- go.sum | 4 ++-- wasmbinding/bindings/msg.go | 4 +--- wasmbinding/message_plugin.go | 13 ++++++++++--- 6 files changed, 32 insertions(+), 18 deletions(-) diff --git a/app/app.go b/app/app.go index b0f40236d..501d2ce38 100644 --- a/app/app.go +++ b/app/app.go @@ -642,7 +642,7 @@ func New( adminRouterLegacy, app.MsgServiceRouter(), IsConsumerProposalAllowlisted, - func(string) bool { return true }, + isSdkMessageWhitelisted, ) adminModule := adminmodulemodule.NewAppModule(appCodec, app.AdminmoduleKeeper) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 14db9c23d..dd36d5150 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -2,6 +2,7 @@ package app import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + sdk "github.com/cosmos/cosmos-sdk/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" @@ -16,14 +17,8 @@ func IsConsumerProposalAllowlisted(content govtypes.Content) bool { switch c := content.(type) { case *proposal.ParameterChangeProposal: return isConsumerParamChangeWhitelisted(c.Changes) - case *upgradetypes.SoftwareUpgradeProposal, - *upgradetypes.CancelSoftwareUpgradeProposal, - *ibcclienttypes.ClientUpdateProposal, - *ibcclienttypes.UpgradeProposal, - *wasmtypes.PinCodesProposal, - *wasmtypes.UnpinCodesProposal, - *wasmtypes.UpdateAdminProposal, - *wasmtypes.ClearAdminProposal: + case *ibcclienttypes.ClientUpdateProposal, + *ibcclienttypes.UpgradeProposal: return true default: @@ -41,6 +36,20 @@ func isConsumerParamChangeWhitelisted(paramChanges []proposal.ParamChange) bool return true } +func isSdkMessageWhitelisted(msg sdk.Msg) bool { + switch msg.(type) { + case *wasmtypes.MsgClearAdmin, + *wasmtypes.MsgUpdateAdmin, + *wasmtypes.MsgUpdateParams, + *wasmtypes.MsgPinCodes, + *wasmtypes.MsgUnpinCodes, + *upgradetypes.MsgSoftwareUpgrade, + *upgradetypes.MsgCancelUpgrade: + return true + } + return false +} + type paramChangeKey struct { Subspace, Key string } diff --git a/go.mod b/go.mod index 194b502e9..312966dff 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230823081308-b02d1ad105cb + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230825075449-97f3b415da45 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index f4fb8a248..b45e8b99e 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230823081308-b02d1ad105cb h1:lIK75IVEeMOVaaGL5cy73UNqg6evv6LcUewd6JfO+lA= -github.com/neutron-org/admin-module v0.0.0-20230823081308-b02d1ad105cb/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230825075449-97f3b415da45 h1:7DdiXFwKZXhMBYp32k50q+jhnUkJVrLxNy2AalNqF/U= +github.com/neutron-org/admin-module v0.0.0-20230825075449-97f3b415da45/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 4e914f7e3..e1b4fcff7 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -2,8 +2,6 @@ package bindings import ( - "encoding/json" - "cosmossdk.io/math" cosmostypes "github.com/cosmos/cosmos-sdk/codec/types" paramChange "github.com/cosmos/cosmos-sdk/x/params/types/proposal" @@ -144,7 +142,7 @@ type ClientUpdateProposal struct { } type ProposalExecuteMessage struct { - Message json.RawMessage `json:"message,omitempty"` + Message string `json:"message,omitempty"` } // CreateDenom creates a new factory denom, of denomination: diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 1eb37dba2..442f18156 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -428,14 +428,17 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd var msg *admintypes.MsgSubmitProposal var sdkMsgs []sdk.Msg var sdkMsg sdk.Msg - cdc := m.AdminKeeper.Codec() - err = cdc.UnmarshalInterfaceJSON(proposal.ProposalExecuteMessage.Message, &sdkMsg) + err = cdc.UnmarshalInterfaceJSON([]byte(proposal.ProposalExecuteMessage.Message), &sdkMsg) if err != nil { return nil, errors.Wrap(err, "failed to unmarshall incoming sdk message") } + signers := sdkMsg.GetSigners() - if signers[0].Equals(authority) && len(signers) != 0 { + if len(signers) != 1 { + return nil, errors.Wrap(err, "should be 1 signer") + } + if !signers[0].Equals(authority) { return nil, errors.Wrap(err, "authority in incoming msg is not equal to admin module") } sdkMsgs = append(sdkMsgs, sdkMsg) @@ -762,6 +765,10 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) qty++ } + if proposal.ProposalExecuteMessage != nil { + qty++ + } + if qty == 0 { return fmt.Errorf("no admin proposal type is present in message") } From 7c2ea7aa212e60f9390a2822abe824173a4f1c20 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 25 Aug 2023 13:46:27 +0400 Subject: [PATCH 056/307] rm legacy code --- app/app.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/app.go b/app/app.go index 501d2ce38..31e384d8b 100644 --- a/app/app.go +++ b/app/app.go @@ -698,10 +698,6 @@ func New( app.CronKeeper.WasmMsgServer = wasmkeeper.NewMsgServerImpl(&app.WasmKeeper) cronModule := cron.NewAppModule(appCodec, &app.CronKeeper) - // TODO: enabled proposals? - //if len(enabledProposals) != 0 { - // app.AdminmoduleKeeper.Router().AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) - //} transferIBCModule := transferSudo.NewIBCModule(app.TransferKeeper) // receive call order: wasmHooks#OnRecvPacketOverride(transferIbcModule#OnRecvPacket()) ibcHooksMiddleware := ibchooks.NewIBCMiddleware(&transferIBCModule, &app.HooksICS4Wrapper) From 15dbeef65622a9bf4330519e77ffc66305a05b49 Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 28 Aug 2023 13:51:03 +0400 Subject: [PATCH 057/307] review fixes --- wasmbinding/bindings/query.go | 18 +++--- wasmbinding/test/custom_message_test.go | 2 +- x/contractmanager/keeper/migrations.go | 2 +- x/contractmanager/migrations/v2/store.go | 39 ++++--------- x/contractmanager/migrations/v2/store_test.go | 55 +++---------------- 5 files changed, 31 insertions(+), 85 deletions(-) diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index 6bc7c25e7..0d76a9ac2 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -113,10 +113,6 @@ type QueryMinIbcFeeResponse struct { MinFee feerefundertypes.Fee `json:"min_fee"` } -type FailuresResponse struct { - Failures []contractmanagertypes.Failure `json:"failures"` -} - func (rq RegisteredQuery) MarshalJSON() ([]byte, error) { type AliasRQ RegisteredQuery @@ -187,11 +183,6 @@ type DenomAdmin struct { Subdenom string `json:"subdenom"` } -type Failures struct { - Address string `json:"address"` - Pagination *query.PageRequest `json:"pagination,omitempty"` -} - type DenomAdminResponse struct { Admin string `json:"admin"` } @@ -199,3 +190,12 @@ type DenomAdminResponse struct { type FullDenomResponse struct { Denom string `json:"denom"` } + +type Failures struct { + Address string `json:"address"` + Pagination *query.PageRequest `json:"pagination,omitempty"` +} + +type FailuresResponse struct { + Failures []contractmanagertypes.Failure `json:"failures"` +} diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index fc3a6f6ca..83d433f00 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -676,7 +676,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract( Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, } failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, testutil.TestOwnerAddress, "timeout", &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, testutil.TestOwnerAddress, contractmanagertypes.Ack, &ack) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ diff --git a/x/contractmanager/keeper/migrations.go b/x/contractmanager/keeper/migrations.go index 4e7bfa951..3ec98b470 100644 --- a/x/contractmanager/keeper/migrations.go +++ b/x/contractmanager/keeper/migrations.go @@ -17,5 +17,5 @@ func NewMigrator(keeper Keeper) Migrator { // Migrate1to2 migrates from version 1 to 2. func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc) + return v2.MigrateStore(ctx, m.keeper.storeKey) } diff --git a/x/contractmanager/migrations/v2/store.go b/x/contractmanager/migrations/v2/store.go index ca77a5a8d..3b43d4be6 100644 --- a/x/contractmanager/migrations/v2/store.go +++ b/x/contractmanager/migrations/v2/store.go @@ -1,36 +1,29 @@ package v2 import ( - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/contractmanager/types" - v1 "github.com/neutron-org/neutron/x/contractmanager/types/v1" ) // MigrateStore performs in-place store migrations. -// The migration rearranges and adds new fields to the failures -func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error { - if err := migrateFailures(ctx, storeKey, cdc); err != nil { - return err - } - - return nil +// The migration rearranges removes all old failures, +// since they do not have the necessary fields packet and ack for resubmission +func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey) error { + return migrateFailures(ctx, storeKey) } -func migrateFailures(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error { +func migrateFailures(ctx sdk.Context, storeKey storetypes.StoreKey) error { ctx.Logger().Info("Migrating failures...") - // fetch list of all old failures - oldFailuresList := make([]v1.Failure, 0) + // fetch list of all old failure keys + failureKeys := make([][]byte, 0) iteratorStore := prefix.NewStore(ctx.KVStore(storeKey), types.ContractFailuresKey) iterator := sdk.KVStorePrefixIterator(iteratorStore, []byte{}) for ; iterator.Valid(); iterator.Next() { - var val v1.Failure - cdc.MustUnmarshal(iterator.Value(), &val) - oldFailuresList = append(oldFailuresList, val) + failureKeys = append(failureKeys, iterator.Key()) } err := iterator.Close() @@ -38,18 +31,10 @@ func migrateFailures(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.Bi return err } - // migrate - store := ctx.KVStore(storeKey) - for _, oldItem := range oldFailuresList { - failure := types.Failure{ - Address: oldItem.Address, - Id: oldItem.Id, - AckType: oldItem.AckType, - Packet: nil, - Ack: nil, - } - bz := cdc.MustMarshal(&failure) - store.Set(types.GetFailureKey(failure.Address, failure.Id), bz) + // remove failures + store := prefix.NewStore(ctx.KVStore(storeKey), types.ContractFailuresKey) + for _, key := range failureKeys { + store.Delete(key) } ctx.Logger().Info("Finished migrating failures") diff --git a/x/contractmanager/migrations/v2/store_test.go b/x/contractmanager/migrations/v2/store_test.go index 6c2edef15..19fddf3ec 100644 --- a/x/contractmanager/migrations/v2/store_test.go +++ b/x/contractmanager/migrations/v2/store_test.go @@ -51,58 +51,19 @@ func (suite *V2ContractManagerMigrationTestSuite) TestFailuresUpgrade() { } // Run migration - suite.NoError(v2.MigrateStore(ctx, storeKey, cdc)) + suite.NoError(v2.MigrateStore(ctx, storeKey)) - // Check elements migrated properly - suite.Require().ElementsMatch(app.ContractManagerKeeper.GetAllFailures(ctx), []types.Failure{ - { - Address: addressOne, - Id: 0, - AckType: types.Ack, - Packet: nil, - Ack: nil, - }, - { - Address: addressOne, - Id: 1, - AckType: types.Ack, - Packet: nil, - Ack: nil, - }, - { - Address: addressTwo, - Id: 0, - AckType: types.Ack, - Packet: nil, - Ack: nil, - }, - { - Address: addressTwo, - Id: 1, - AckType: types.Ack, - Packet: nil, - Ack: nil, - }, - }) - - // Check getting element works - failure, err := app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 1) - suite.Require().NoError(err) - suite.Require().Equal(failure, &types.Failure{ - Address: addressTwo, - Id: 1, - AckType: types.Ack, - Packet: nil, - Ack: nil, - }) + // Check elements should be empty + expected := app.ContractManagerKeeper.GetAllFailures(ctx) + suite.Require().ElementsMatch(expected, []types.Failure{}) // Non-existent returns error - _, err = app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 2) + _, err := app.ContractManagerKeeper.GetFailure(ctx, sdk.MustAccAddressFromBech32(addressTwo), 0) suite.Require().Error(err) - // Check next id key is correct + // Check next id key is reset oneKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressOne) - suite.Require().Equal(oneKey, uint64(2)) + suite.Require().Equal(oneKey, uint64(0)) twoKey := app.ContractManagerKeeper.GetNextFailureIDKey(ctx, addressTwo) - suite.Require().Equal(twoKey, uint64(2)) + suite.Require().Equal(twoKey, uint64(0)) } From a43d862e18b0b7d98d2a0bd9e1d0a9396f5569d0 Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 28 Aug 2023 14:20:12 +0400 Subject: [PATCH 058/307] add failure id to response --- wasmbinding/bindings/msg.go | 4 +++- wasmbinding/message_plugin.go | 6 +----- wasmbinding/test/custom_message_test.go | 2 +- x/contractmanager/keeper/failure_test.go | 9 --------- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index e79e32d25..13793b11b 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -246,4 +246,6 @@ type ResubmitFailure struct { FailureId uint64 `json:"failure_id"` } -type ResubmitFailureResponse struct{} +type ResubmitFailureResponse struct { + FailureId uint64 `json:"failure_id"` +} diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 883e0b270..2768ba7a3 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -877,10 +877,6 @@ func (m *CustomMessenger) resubmitFailure(ctx sdk.Context, contractAddr sdk.AccA return nil, nil, errors.Wrap(sdkerrors.ErrNotFound, "no failure found to resubmit") } - if failure.Address != contractAddr.String() { - return nil, nil, errors.Wrap(sdkerrors.ErrUnauthorized, "only contract can resubmitFailure") - } - err = m.ContractmanagerKeeper.ResubmitFailure(ctx, contractAddr, failure) if err != nil { @@ -891,7 +887,7 @@ func (m *CustomMessenger) resubmitFailure(ctx sdk.Context, contractAddr sdk.AccA return nil, nil, errors.Wrap(err, "failed to resubmitFailure") } - resp := bindings.ResubmitFailureResponse{} + resp := bindings.ResubmitFailureResponse{FailureId: failure.Id} data, err := json.Marshal(&resp) if err != nil { ctx.Logger().Error("json.Marshal: failed to marshal remove resubmitFailure response to JSON", diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 83d433f00..d802dbe44 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -659,7 +659,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { }) suite.NoError(err) suite.Nil(events) - expected, err := json.Marshal(&bindings.ResubmitFailureResponse{}) + expected, err := json.Marshal(&bindings.ResubmitFailureResponse{FailureId: failureID}) suite.NoError(err) suite.Equal([][]uint8{expected}, data) } diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 600d16931..606db61c9 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -237,13 +237,4 @@ func TestResubmitFailure(t *testing.T) { require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure7) require.ErrorContains(t, err, "cannot resubmit failure without acknowledgement") - - // no Failure.Packet found - failureID8 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, nil, contractAddr.String(), types.Ack, nil) - - failure8, err := k.GetFailure(ctx, contractAddr, failureID8) - require.NoError(t, err) - err = k.ResubmitFailure(ctx, contractAddr, failure8) - require.ErrorContains(t, err, "cannot resubmit failure without packet info") } From fd889e8a3abec527ca2d0be93f978b921d66a4de Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 29 Aug 2023 10:39:30 +0300 Subject: [PATCH 059/307] icatx sudocall rework --- x/interchaintxs/keeper/ibc_handlers.go | 67 +++++++++----------- x/interchaintxs/keeper/ibc_handlers_test.go | 46 +++++++------- x/transfer/ibc_handlers.go | 70 +++++++++------------ x/transfer/ibc_handlers_test.go | 36 ++++++++--- 4 files changed, 112 insertions(+), 107 deletions(-) diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 213334e51..0035629a2 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -1,7 +1,6 @@ package keeper import ( - "fmt" "time" "cosmossdk.io/errors" @@ -34,29 +33,33 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - // consume all the gas from the cached context - // we call the function this place function because we want to consume all the gas even in case of panic in SudoError/SudoResponse - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "ack") k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - // Actually we have only one kind of error returned from acknowledgement - // maybe later we'll retrieve actual errors from events - errorText := ack.GetError() - if errorText != "" { - _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, errorText) - } else { - _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) - } + func() { + // early error initialisation, to choose a correct `if` branch right after the closure in case of successfully `out of gas` panic recovered + // if SudoError/SudoResponse successful, then `err` is set to `nil` + defer k.outOfGasRecovery(newGasMeter, &err) + // Actually we have only one kind of error returned from acknowledgement + // maybe later we'll retrieve actual errors from events + errorText := ack.GetError() + if errorText != "" { + _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, errorText) + } else { + _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) + } + }() if err != nil { + // the contract either returned an error or panicked with `out of gas` k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), "ack") k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } else { writeFn() } + ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + return nil } @@ -73,21 +76,26 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela } cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) - // consume all the gas from the cached context - // we call the function this place function because we want to consume all the gas even in case of panic in SudoTimeout - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - defer k.outOfGasRecovery(ctx, newGasMeter, icaOwner.GetContract(), packet, "timeout") k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) + func() { + // early error initialisation, to choose a correct `if` branch right after the closure, in case of successfully `out of gas` panic recovered + // if SudoTimeout successful, then `err` is set to `nil` + defer k.outOfGasRecovery(newGasMeter, &err) + _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) + }() + if err != nil { + // the contract either returned an error or panicked with `out of gas` k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, icaOwner.GetContract().String(), packet.GetSequence(), "timeout") k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) } else { writeFn() } + ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + return nil } @@ -125,42 +133,27 @@ func (k *Keeper) HandleChanOpenAck( return nil } +// outOfGasRecovery converts `out of gas` panic into an error +// leave unprocessed any other kinds of panics func (k *Keeper) outOfGasRecovery( - ctx sdk.Context, gasMeter sdk.GasMeter, - senderAddress sdk.AccAddress, - packet channeltypes.Packet, - failureAckType string, + err *error, ) { if r := recover(); r != nil { _, ok := r.(sdk.ErrorOutOfGas) if !ok || !gasMeter.IsOutOfGas() { panic(r) } - - k.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String()) - k.contractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureAckType) + *err = errors.Wrapf(errors.ErrPanic, "%v", r) } } // createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. // If there is an error during Sudo call, we can safely revert changes made in cached context. -// panics if there is no enough gas for sudoCall func (k *Keeper) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { cacheCtx, writeFn := ctx.CacheContext() - sudoLimit := k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit - // NOTE: not sure that we really need this special check and panic - // with this kind of panic its clear what is going on by error text - // with this check, handle flow is not changed, but we get general panic during - // call ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - if ctx.GasMeter().GasRemaining() < sudoLimit { - panic(sdk.ErrorOutOfGas{Descriptor: fmt.Sprintf("%dgas - reserve for sudo call", sudoLimit)}) - } - gasMeter := sdk.NewGasMeter(sudoLimit) - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - return cacheCtx, writeFn, gasMeter } diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 1096a70b0..330666a76 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -76,8 +76,7 @@ func TestHandleAcknowledgement(t *testing.T) { err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - // response spent only 2990, but we consume all 4000 defined by params - require.Equal(t, uint64(4000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) // error during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -91,7 +90,7 @@ func TestHandleAcknowledgement(t *testing.T) { err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) // success during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -104,7 +103,7 @@ func TestHandleAcknowledgement(t *testing.T) { err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror"))) - require.Equal(t, uint64(6000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) // out of gas during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -121,15 +120,9 @@ func TestHandleAcknowledgement(t *testing.T) { require.Empty(t, store.Get(ShouldNotBeWrittenKey)) require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) - // check we have SudoCallGasLimit reserved and - // check gas consumption from cachedCtx has added to the main ctx - // one of the ways to check it - make the check during SudoResponse call + // success during SudoResponse ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - gasReserved := false cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - if cachedCtx.GasMeter().Limit() == 8000 { - gasReserved = true - } store := cachedCtx.KVStore(storeKey) store.Set(ShouldBeWrittenKey("sudoresponse"), ShouldBeWritten) // consumes 3140 gas, 2000 flat write + 30 every byte of key+value }).Return(nil, nil) @@ -137,15 +130,20 @@ func TestHandleAcknowledgement(t *testing.T) { feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - require.True(t, gasReserved) - require.Equal(t, uint64(8000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(3140), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse"))) - // not enough gas to reserve, tx aborted + // not enough gas provided by relayer for SudoCallGasLimit ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(9000 - 1)) + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { + store := cachedCtx.KVStore(storeKey) + store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") + }) + feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "9000gas - reserve for sudo call"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test } func TestHandleTimeout(t *testing.T) { @@ -182,7 +180,7 @@ func TestHandleTimeout(t *testing.T) { feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) require.True(t, gasReserved) - require.Equal(t, uint64(4000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(3110), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout"))) require.NoError(t, err) @@ -196,7 +194,7 @@ func TestHandleTimeout(t *testing.T) { cmKeeper.EXPECT().AddContractFailure(ctx, "channel-0", contractAddress.String(), p.GetSequence(), "timeout") feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) err = icak.HandleTimeout(ctx, p, relayerAddress) - require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) @@ -215,11 +213,17 @@ func TestHandleTimeout(t *testing.T) { require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - // not enough gas to reserve, tx aborted + // not enough gas provided by relayer for SudoCallGasLimit ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(9000 - 1)) + lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { + store := cachedCtx.KVStore(storeKey) + store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") + }).Return(nil, nil) cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "9000gas - reserve for sudo call"}, func() { icak.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a panic test + feeKeeper.EXPECT().DistributeTimeoutFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a panic test } func TestHandleChanOpenAck(t *testing.T) { diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 939c788fa..c987d9dce 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -2,8 +2,6 @@ package transfer import ( "cosmossdk.io/errors" - "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" @@ -33,38 +31,40 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - // consume all the gas from the cached context - // we call the function this place function because we want to consume all the gas even in case of panic in SudoResponse/SudoError - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "ack") // distribute fee im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - - if ack.Success() { - _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) - } else { - // Actually we have only one kind of error returned from acknowledgement - // maybe later we'll retrieve actual errors from events - im.keeper.Logger(cacheCtx).Debug(ack.GetError(), "CheckTx", cacheCtx.IsCheckTx()) - _, err = im.ContractManagerKeeper.SudoError(cacheCtx, senderAddress, packet, ack.GetError()) - } + + func() { + // early error initialisation, to choose a correct `if` branch right after the closure in case of successfully `out of gas` panic recovered + // if SudoResponse/SudoError successful, then `err` is set to `nil` + defer im.outOfGasRecovery(newGasMeter, &err) + if ack.Success() { + _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) + } else { + // Actually we have only one kind of error returned from acknowledgement + // maybe later we'll retrieve actual errors from events + im.keeper.Logger(cacheCtx).Debug(ack.GetError(), "CheckTx", cacheCtx.IsCheckTx()) + _, err = im.ContractManagerKeeper.SudoError(cacheCtx, senderAddress, packet, ack.GetError()) + } + }() if err != nil { + // the contract either returned an error or panicked with `out of gas` im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "ack") im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) } else { writeFn() } + ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + im.keeper.Logger(ctx).Debug("acknowledgement received", "Packet data", data, "CheckTx", ctx.IsCheckTx()) return nil } // HandleTimeout passes the timeout data to the appropriate contract via a Sudo call. -// Since all ICA channels are ORDERED, a single timeout shuts down a channel. -// The affected zone should be paused after a timeout. func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error { var data transfertypes.FungibleTokenPacketData if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { @@ -80,58 +80,50 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r } cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) - // consume all the gas from the cached context - // we call the function this place function because we want to consume all the gas even in case of panic in SudoTimeout - ctx.GasMeter().ConsumeGas(newGasMeter.Limit(), "consume full gas from cached context") - defer im.outOfGasRecovery(ctx, newGasMeter, senderAddress, packet, data, "timeout") // distribute fee im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + func() { + // early error initialisation, to choose a correct `if` branch right after the closure, in case of successfully `out of gas` panic recovered + // if SudoTimeout successful, then `err` is set to `nil` + defer im.outOfGasRecovery(newGasMeter, &err) + _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) + }() - _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) if err != nil { + // the contract either returned an error or panicked with `out of gas` im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), "timeout") im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) } else { writeFn() } + ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + return nil } +// outOfGasRecovery converts `out of gas` panic into an error +// leave unprocessed any other kinds of panics func (im IBCModule) outOfGasRecovery( - ctx sdk.Context, gasMeter sdk.GasMeter, - senderAddress sdk.AccAddress, - packet channeltypes.Packet, - data transfertypes.FungibleTokenPacketData, - failureType string, + err *error, ) { if r := recover(); r != nil { _, ok := r.(sdk.ErrorOutOfGas) if !ok || !gasMeter.IsOutOfGas() { panic(r) } - - im.keeper.Logger(ctx).Debug("Out of gas", "Gas meter", gasMeter.String(), "Packet data", data) - im.ContractManagerKeeper.AddContractFailure(ctx, packet.SourceChannel, senderAddress.String(), packet.GetSequence(), failureType) + *err = errors.Wrapf(errors.ErrPanic, "%v", r) } } // createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. // If there is an error during Sudo call, we can safely revert changes made in cached context. -// panics if there is no enough gas for sudoCall -func (im *IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { +func (im IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { cacheCtx, writeFn := ctx.CacheContext() - sudoLimit := im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit - if ctx.GasMeter().GasRemaining() < sudoLimit { - panic(sdk.ErrorOutOfGas{Descriptor: fmt.Sprintf("%dgas - reserve for sudo call", sudoLimit)}) - } - gasMeter := sdk.NewGasMeter(sudoLimit) - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - return cacheCtx, writeFn, gasMeter } diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 5f82e3789..9fd012e48 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -115,7 +115,7 @@ func TestHandleAcknowledgement(t *testing.T) { err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) // error during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -138,7 +138,7 @@ func TestHandleAcknowledgement(t *testing.T) { err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) // success during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -159,7 +159,7 @@ func TestHandleAcknowledgement(t *testing.T) { err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror_contract"))) - require.Equal(t, uint64(9000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(3320), ctx.GasMeter().GasConsumed()) // recoverable out of gas during SudoError non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -209,14 +209,22 @@ func TestHandleAcknowledgement(t *testing.T) { err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) require.True(t, gasReserved) - require.Equal(t, uint64(13000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(3650), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse_contract_success"))) - // not enough gas to reserve SudoCallGasLimit + not enough to make AddContractFailure failure after panic recover + // not enough gas provided by relayer SudoCallGasLimit lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { + store := cachedCtx.KVStore(storeKey) + store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") + }).Return(nil, nil) cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) cmKeeper.EXPECT().HasContractInfo(lowGasCtx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "14000gas - reserve for sudo call"}, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test + feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test + // NOTE: looks its impossible to test store reset after panic, because test `require.PanicsWithValue` recovers the panic + // require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } func TestHandleTimeout(t *testing.T) { @@ -289,7 +297,7 @@ func TestHandleTimeout(t *testing.T) { err = txModule.HandleTimeout(ctx, p, relayerAddress) require.True(t, gasReserved) require.NoError(t, err) - require.Equal(t, uint64(5000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(3620), ctx.GasMeter().GasConsumed()) require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout_contract_success"))) // error during SudoTimeOut non contract @@ -312,7 +320,7 @@ func TestHandleTimeout(t *testing.T) { err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) + require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) // out of gas during SudoTimeOut non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) @@ -337,9 +345,17 @@ func TestHandleTimeout(t *testing.T) { require.Empty(t, store.Get(ShouldNotBeWrittenKey)) require.Equal(t, uint64(8000), ctx.GasMeter().GasConsumed()) - // not enough gas to reserve SudoCallGasLimit + not enough to make AddContractFailure failure after panic recover + // not enough gas provided by relayer for SudoCallGasLimit lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { + store := cachedCtx.KVStore(storeKey) + store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") + }).Return(nil, nil) cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) cmKeeper.EXPECT().HasContractInfo(lowGasCtx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "14000gas - reserve for sudo call"}, func() { txModule.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a test + feeKeeper.EXPECT().DistributeTimeoutFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { txModule.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a test + // NOTE: looks its impossible to test store reset after panic, because test `require.PanicsWithValue` recovers the panic + // require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } From 7397bd98d9e37b48531029f150a04b6b07335ae0 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 29 Aug 2023 15:17:32 +0400 Subject: [PATCH 060/307] Update wasmbinding/message_plugin.go Co-authored-by: Mike Mozhaev --- wasmbinding/message_plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 442f18156..3f4c76908 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -439,7 +439,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd return nil, errors.Wrap(err, "should be 1 signer") } if !signers[0].Equals(authority) { - return nil, errors.Wrap(err, "authority in incoming msg is not equal to admin module") + return nil, errors.Wrap(sdkerrors.ErrUnauthorized, "authority in incoming msg is not equal to admin module") } sdkMsgs = append(sdkMsgs, sdkMsg) msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) From 696ad1080bf37cc1fd0ead6ea95c3bdc7ba2aa7b Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 29 Aug 2023 15:17:44 +0400 Subject: [PATCH 061/307] Update wasmbinding/message_plugin.go Co-authored-by: Mike Mozhaev --- wasmbinding/message_plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 3f4c76908..524066b90 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -436,7 +436,7 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd signers := sdkMsg.GetSigners() if len(signers) != 1 { - return nil, errors.Wrap(err, "should be 1 signer") + return nil, errors.Wrap(sdkerrors.ErrorInvalidSigner, "should be 1 signer") } if !signers[0].Equals(authority) { return nil, errors.Wrap(sdkerrors.ErrUnauthorized, "authority in incoming msg is not equal to admin module") From ccf0c534ec2ca5306d6445bd29eda6fb35e7c498 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 29 Aug 2023 15:17:54 +0400 Subject: [PATCH 062/307] Update wasmbinding/message_plugin.go Co-authored-by: Mike Mozhaev --- wasmbinding/message_plugin.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 524066b90..e0a4b7b2a 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -425,9 +425,12 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd return nil, errors.Wrap(err, "failed to validate proposal quantity") } - var msg *admintypes.MsgSubmitProposal - var sdkMsgs []sdk.Msg - var sdkMsg sdk.Msg + var ( + msg *admintypes.MsgSubmitProposal + sdkMsgs []sdk.Msg + sdkMsg sdk.Msg + ) + cdc := m.AdminKeeper.Codec() err = cdc.UnmarshalInterfaceJSON([]byte(proposal.ProposalExecuteMessage.Message), &sdkMsg) if err != nil { From 552a67f8c9cec058bce1191a2ad80b282df187b5 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 29 Aug 2023 16:00:32 +0400 Subject: [PATCH 063/307] post-review & small refactor --- app/app.go | 19 ----------------- cmd/neutrond/root.go | 12 ++++------- wasmbinding/message_plugin.go | 39 ++++++++++++++++++----------------- 3 files changed, 24 insertions(+), 46 deletions(-) diff --git a/app/app.go b/app/app.go index 31e384d8b..9650a812d 100644 --- a/app/app.go +++ b/app/app.go @@ -7,7 +7,6 @@ import ( "net/http" "os" "path/filepath" - "strings" "github.com/cosmos/interchain-security/v3/testutil/integration" @@ -170,23 +169,6 @@ var ( EnableSpecificProposals = "" ) -// GetEnabledProposals parses the ProposalsEnabled / EnableSpecificProposals values to -// produce a list of enabled proposals to pass into wasmd app. -func GetEnabledProposals() []wasm.ProposalType { - if EnableSpecificProposals == "" { - if ProposalsEnabled == "true" { - return wasm.EnableAllProposals - } - return wasm.DisableAllProposals - } - chunks := strings.Split(EnableSpecificProposals, ",") - proposals, err := wasm.ConvertToProposals(chunks) - if err != nil { - panic(err) - } - return proposals -} - var ( Upgrades = []upgrades.Upgrade{v3.Upgrade, v044.Upgrade, nextupgrade.Upgrade} @@ -374,7 +356,6 @@ func New( homePath string, invCheckPeriod uint, encodingConfig appparams.EncodingConfig, - enabledProposals []wasm.ProposalType, appOpts servertypes.AppOptions, wasmOpts []wasm.Option, baseAppOptions ...func(*baseapp.BaseApp), diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 3c392db20..8f5f651a5 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -3,6 +3,10 @@ package main import ( "errors" "fmt" + "io" + "os" + "path/filepath" + "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" dbm "github.com/cometbft/cometbft-db" @@ -37,9 +41,6 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" "github.com/spf13/cobra" - "io" - "os" - "path/filepath" ) // NewRootCmd creates a new root command for neutrond. It is called once in the @@ -240,14 +241,10 @@ func (ac appCreator) newApp( chainID = appGenesis.ChainID } - enabledWasmProposals := app.GetEnabledProposals() - logger.Info("Enabled wasm proposals", "proposals", enabledWasmProposals) - return app.New(logger, chainID, db, traceStore, true, skipUpgradeHeights, cast.ToString(appOpts.Get(flags.FlagHome)), cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), ac.encCfg, - enabledWasmProposals, appOpts, wasmOpts, baseapp.SetPruning(pruningOpts), @@ -301,7 +298,6 @@ func (ac appCreator) appExport( homePath, cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), ac.encCfg, - app.GetEnabledProposals(), appOpts, emptyWasmOpts, ) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index e0a4b7b2a..6faaf4ded 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -295,7 +295,12 @@ func (m *CustomMessenger) submitTx(ctx sdk.Context, contractAddr sdk.AccAddress, func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) ([]sdk.Event, [][]byte, error) { var data []byte - if submitAdminProposal.AdminProposal.ParamChangeProposal != nil || submitAdminProposal.AdminProposal.UpgradeProposal != nil || submitAdminProposal.AdminProposal.ClientUpdateProposal != nil { + err := m.validateProposalQty(&submitAdminProposal.AdminProposal) + if err != nil { + return nil, nil, errors.Wrap(err, "failed to validate proposal quantity") + } + // here we handle pre-sdk47 style of proposals: param change & upgrade/cancel + if m.isLegacyProposal(&submitAdminProposal.AdminProposal) { resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, submitAdminProposal) if err != nil { ctx.Logger().Debug("performSubmitAdminProposalLegacy: failed to submitAdminProposal", @@ -322,7 +327,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. return nil, [][]byte{data}, nil } - response, err := m.performSubmitAdminProposal(ctx, contractAddr, submitAdminProposal) + resp, err := m.performSubmitAdminProposal(ctx, contractAddr, submitAdminProposal) if err != nil { ctx.Logger().Debug("performSubmitAdminProposal: failed to submitAdminProposal", "from_address", contractAddr.String(), @@ -332,7 +337,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. return nil, nil, errors.Wrap(err, "failed to submit admin proposal") } - data, err = json.Marshal(response) + data, err = json.Marshal(resp) if err != nil { ctx.Logger().Error("json.Marshal: failed to marshal submitAdminProposal response to JSON", "from_address", contractAddr.String(), @@ -353,13 +358,9 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont proposal := submitAdminProposal.AdminProposal msg := admintypes.MsgSubmitProposalLegacy{Proposer: contractAddr.String()} - err := m.validateProposalQty(&proposal) - if err != nil { - return nil, errors.Wrap(err, "failed to validate proposal quantity") - } if submitAdminProposal.AdminProposal.ParamChangeProposal != nil { p := proposal.ParamChangeProposal - err = msg.SetContent(¶mChange.ParameterChangeProposal{ + err := msg.SetContent(¶mChange.ParameterChangeProposal{ Title: p.Title, Description: p.Description, Changes: p.ParamChanges, @@ -419,20 +420,14 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { proposal := submitAdminProposal.AdminProposal authority := authtypes.NewModuleAddress(admintypes.ModuleName) - - err := m.validateProposalQty(&proposal) - if err != nil { - return nil, errors.Wrap(err, "failed to validate proposal quantity") - } - var ( - msg *admintypes.MsgSubmitProposal - sdkMsgs []sdk.Msg - sdkMsg sdk.Msg + msg *admintypes.MsgSubmitProposal + sdkMsgs []sdk.Msg + sdkMsg sdk.Msg ) - + cdc := m.AdminKeeper.Codec() - err = cdc.UnmarshalInterfaceJSON([]byte(proposal.ProposalExecuteMessage.Message), &sdkMsg) + err := cdc.UnmarshalInterfaceJSON([]byte(proposal.ProposalExecuteMessage.Message), &sdkMsg) if err != nil { return nil, errors.Wrap(err, "failed to unmarshall incoming sdk message") } @@ -782,6 +777,12 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) return fmt.Errorf("more than one admin proposal type is present in message") } +func (m *CustomMessenger) isLegacyProposal(proposal *bindings.AdminProposal) bool { + if proposal.ParamChangeProposal != nil || proposal.UpgradeProposal != nil || proposal.ClientUpdateProposal != nil { + return true + } + return false +} func (m *CustomMessenger) addSchedule(ctx sdk.Context, contractAddr sdk.AccAddress, addSchedule *bindings.AddSchedule) ([]sdk.Event, [][]byte, error) { if !m.isAdmin(ctx, contractAddr) { From 427455a669aff7554272e1cc1b8510a538206301 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 29 Aug 2023 16:05:51 +0400 Subject: [PATCH 064/307] add comment --- app/proposals_allowlisting.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index dd36d5150..20d54b4bd 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -36,6 +36,8 @@ func isConsumerParamChangeWhitelisted(paramChanges []proposal.ParamChange) bool return true } +// This function is designed to determine if a given message (of type sdk.Msg) belongs to +// a predefined whitelist of message types which could be executed via admin module. func isSdkMessageWhitelisted(msg sdk.Msg) bool { switch msg.(type) { case *wasmtypes.MsgClearAdmin, From 8dd3c7a415b9a9b7e10defbbb8982e5dfee6f36e Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 29 Aug 2023 15:58:19 +0300 Subject: [PATCH 065/307] extracted some common code --- neutronutils/errors/errors.go | 21 ++++++++++++++++ neutronutils/utils.go | 11 ++++++++ x/interchaintxs/keeper/ibc_handlers.go | 35 +++++--------------------- x/transfer/ibc_handlers.go | 35 +++++--------------------- 4 files changed, 44 insertions(+), 58 deletions(-) create mode 100644 neutronutils/errors/errors.go create mode 100644 neutronutils/utils.go diff --git a/neutronutils/errors/errors.go b/neutronutils/errors/errors.go new file mode 100644 index 000000000..7aecf5e13 --- /dev/null +++ b/neutronutils/errors/errors.go @@ -0,0 +1,21 @@ +package errors + +import ( + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// OutOfGasRecovery converts `out of gas` panic into an error +// leave unprocessed any other kinds of panics +func OutOfGasRecovery( + gasMeter sdk.GasMeter, + err *error, +) { + if r := recover(); r != nil { + _, ok := r.(sdk.ErrorOutOfGas) + if !ok || !gasMeter.IsOutOfGas() { + panic(r) + } + *err = errors.Wrapf(errors.ErrPanic, "%v", r) + } +} diff --git a/neutronutils/utils.go b/neutronutils/utils.go new file mode 100644 index 000000000..0e67d48dd --- /dev/null +++ b/neutronutils/utils.go @@ -0,0 +1,11 @@ +package neutronutils + +import sdk "github.com/cosmos/cosmos-sdk/types" + +// CreateCachedContext creates a cached context for with a limited gas meter. +func CreateCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func(), sdk.GasMeter) { + cacheCtx, writeFn := ctx.CacheContext() + gasMeter := sdk.NewGasMeter(gasLimit) + cacheCtx = cacheCtx.WithGasMeter(gasMeter) + return cacheCtx, writeFn, gasMeter +} diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 0035629a2..79b79cad5 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -1,6 +1,8 @@ package keeper import ( + "github.com/neutron-org/neutron/neutronutils" + neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" "time" "cosmossdk.io/errors" @@ -32,14 +34,14 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-27 packet acknowledgement: %v", err) } - cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) + cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { // early error initialisation, to choose a correct `if` branch right after the closure in case of successfully `out of gas` panic recovered // if SudoError/SudoResponse successful, then `err` is set to `nil` - defer k.outOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events errorText := ack.GetError() @@ -75,14 +77,14 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela return errors.Wrap(err, "failed to get ica owner from port") } - cacheCtx, writeFn, newGasMeter := k.createCachedContext(ctx) + cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { // early error initialisation, to choose a correct `if` branch right after the closure, in case of successfully `out of gas` panic recovered // if SudoTimeout successful, then `err` is set to `nil` - defer k.outOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) }() @@ -132,28 +134,3 @@ func (k *Keeper) HandleChanOpenAck( return nil } - -// outOfGasRecovery converts `out of gas` panic into an error -// leave unprocessed any other kinds of panics -func (k *Keeper) outOfGasRecovery( - gasMeter sdk.GasMeter, - err *error, -) { - if r := recover(); r != nil { - _, ok := r.(sdk.ErrorOutOfGas) - if !ok || !gasMeter.IsOutOfGas() { - panic(r) - } - *err = errors.Wrapf(errors.ErrPanic, "%v", r) - } -} - -// createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. -// If there is an error during Sudo call, we can safely revert changes made in cached context. -func (k *Keeper) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { - cacheCtx, writeFn := ctx.CacheContext() - sudoLimit := k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit - gasMeter := sdk.NewGasMeter(sudoLimit) - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - return cacheCtx, writeFn, gasMeter -} diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index c987d9dce..37834eada 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -6,7 +6,9 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/neutron-org/neutron/neutronutils" + neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/types" ) @@ -30,7 +32,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P return nil } - cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) + cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) // distribute fee im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) @@ -38,7 +40,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P func() { // early error initialisation, to choose a correct `if` branch right after the closure in case of successfully `out of gas` panic recovered // if SudoResponse/SudoError successful, then `err` is set to `nil` - defer im.outOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) } else { @@ -79,14 +81,14 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r return nil } - cacheCtx, writeFn, newGasMeter := im.createCachedContext(ctx) + cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) // distribute fee im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { // early error initialisation, to choose a correct `if` branch right after the closure, in case of successfully `out of gas` panic recovered // if SudoTimeout successful, then `err` is set to `nil` - defer im.outOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) }() @@ -102,28 +104,3 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r return nil } - -// outOfGasRecovery converts `out of gas` panic into an error -// leave unprocessed any other kinds of panics -func (im IBCModule) outOfGasRecovery( - gasMeter sdk.GasMeter, - err *error, -) { - if r := recover(); r != nil { - _, ok := r.(sdk.ErrorOutOfGas) - if !ok || !gasMeter.IsOutOfGas() { - panic(r) - } - *err = errors.Wrapf(errors.ErrPanic, "%v", r) - } -} - -// createCachedContext creates a cached context for handling Sudo calls to CosmWasm smart-contracts. -// If there is an error during Sudo call, we can safely revert changes made in cached context. -func (im IBCModule) createCachedContext(ctx sdk.Context) (sdk.Context, func(), sdk.GasMeter) { - cacheCtx, writeFn := ctx.CacheContext() - sudoLimit := im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit - gasMeter := sdk.NewGasMeter(sudoLimit) - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - return cacheCtx, writeFn, gasMeter -} From cf7b0ecff977fdf85822894a2dabe22c5bf26a30 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 30 Aug 2023 13:12:12 +0400 Subject: [PATCH 066/307] post-review --- Makefile | 5 ++-- go.mod | 2 +- go.sum | 4 +-- wasmbinding/message_plugin.go | 49 ++++++++++++++++------------------- 4 files changed, 28 insertions(+), 32 deletions(-) diff --git a/Makefile b/Makefile index 6af490db8..b33b38a56 100644 --- a/Makefile +++ b/Makefile @@ -68,8 +68,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=neutron \ -X github.com/cosmos/cosmos-sdk/version.AppName=neutrond \ -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/neutron-org/neutron/app.EnableSpecificProposals=$(ENABLED_PROPOSALS)" + -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" ifeq ($(WITH_CLEVELDB),yes) ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb @@ -253,4 +252,4 @@ stop-docker-container: mocks: @echo "Regenerate mocks..." - @go generate ./... \ No newline at end of file + @go generate ./... diff --git a/go.mod b/go.mod index 312966dff..2e0a0dc79 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230825075449-97f3b415da45 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230830083547-1540be1b9432 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index b45e8b99e..e93afe8ed 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230825075449-97f3b415da45 h1:7DdiXFwKZXhMBYp32k50q+jhnUkJVrLxNy2AalNqF/U= -github.com/neutron-org/admin-module v0.0.0-20230825075449-97f3b415da45/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230830083547-1540be1b9432 h1:K+nDdYMZSB+4zt3NVSHyvKKxgjRsNyHZRaxFfnwmakg= +github.com/neutron-org/admin-module v0.0.0-20230830083547-1540be1b9432/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 6faaf4ded..9feb137ff 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -108,7 +108,7 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre return m.ibcTransfer(ctx, contractAddr, *contractMsg.IBCTransfer) } if contractMsg.SubmitAdminProposal != nil { - return m.submitAdminProposal(ctx, contractAddr, contractMsg.SubmitAdminProposal) + return m.submitAdminProposal(ctx, contractAddr, &contractMsg.SubmitAdminProposal.AdminProposal) } if contractMsg.CreateDenom != nil { return m.createDenom(ctx, contractAddr, contractMsg.CreateDenom) @@ -293,19 +293,18 @@ func (m *CustomMessenger) submitTx(ctx sdk.Context, contractAddr sdk.AccAddress, return nil, [][]byte{data}, nil } -func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) ([]sdk.Event, [][]byte, error) { +func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, adminProposal *bindings.AdminProposal) ([]sdk.Event, [][]byte, error) { var data []byte - err := m.validateProposalQty(&submitAdminProposal.AdminProposal) + err := m.validateProposalQty(adminProposal) if err != nil { return nil, nil, errors.Wrap(err, "failed to validate proposal quantity") } // here we handle pre-sdk47 style of proposals: param change & upgrade/cancel - if m.isLegacyProposal(&submitAdminProposal.AdminProposal) { - resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, submitAdminProposal) + if m.isLegacyProposal(adminProposal) { + resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, adminProposal) if err != nil { ctx.Logger().Debug("performSubmitAdminProposalLegacy: failed to submitAdminProposal", "from_address", contractAddr.String(), - "creator", contractAddr.String(), "error", err, ) return nil, nil, errors.Wrap(err, "failed to submit admin proposal legacy") @@ -314,7 +313,6 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. if err != nil { ctx.Logger().Error("json.Marshal: failed to marshal submitAdminProposalLegacy response to JSON", "from_address", contractAddr.String(), - "creator", contractAddr.String(), "error", err, ) return nil, nil, errors.Wrap(err, "marshal json failed") @@ -322,16 +320,14 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. ctx.Logger().Debug("submit proposal legacy submitted", "from_address", contractAddr.String(), - "creator", contractAddr.String(), ) return nil, [][]byte{data}, nil } - resp, err := m.performSubmitAdminProposal(ctx, contractAddr, submitAdminProposal) + resp, err := m.performSubmitAdminProposal(ctx, contractAddr, adminProposal) if err != nil { ctx.Logger().Debug("performSubmitAdminProposal: failed to submitAdminProposal", "from_address", contractAddr.String(), - "creator", contractAddr.String(), "error", err, ) return nil, nil, errors.Wrap(err, "failed to submit admin proposal") @@ -341,7 +337,6 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. if err != nil { ctx.Logger().Error("json.Marshal: failed to marshal submitAdminProposal response to JSON", "from_address", contractAddr.String(), - "creator", contractAddr.String(), "error", err, ) return nil, nil, errors.Wrap(err, "marshal json failed") @@ -349,16 +344,15 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. ctx.Logger().Debug("submit proposal message submitted", "from_address", contractAddr.String(), - "creator", contractAddr.String(), ) return nil, [][]byte{data}, nil } -func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalLegacyResponse, error) { - proposal := submitAdminProposal.AdminProposal +func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, contractAddr sdk.AccAddress, adminProposal *bindings.AdminProposal) (*admintypes.MsgSubmitProposalLegacyResponse, error) { + proposal := adminProposal msg := admintypes.MsgSubmitProposalLegacy{Proposer: contractAddr.String()} - if submitAdminProposal.AdminProposal.ParamChangeProposal != nil { + if proposal.ParamChangeProposal != nil { p := proposal.ParamChangeProposal err := msg.SetContent(¶mChange.ParameterChangeProposal{ Title: p.Title, @@ -417,8 +411,8 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont return response, nil } -func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, submitAdminProposal *bindings.SubmitAdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { - proposal := submitAdminProposal.AdminProposal +func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAddr sdk.AccAddress, adminProposal *bindings.AdminProposal) (*admintypes.MsgSubmitProposalResponse, error) { + proposal := adminProposal authority := authtypes.NewModuleAddress(admintypes.ModuleName) var ( msg *admintypes.MsgSubmitProposal @@ -767,21 +761,24 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) qty++ } - if qty == 0 { - return fmt.Errorf("no admin proposal type is present in message") - } - - if qty == 1 { + switch qty { + case 1: return nil + case 0: + return fmt.Errorf("no admin proposal type is present in message") + default: + return fmt.Errorf("more than one admin proposal type is present in message") } - - return fmt.Errorf("more than one admin proposal type is present in message") } func (m *CustomMessenger) isLegacyProposal(proposal *bindings.AdminProposal) bool { - if proposal.ParamChangeProposal != nil || proposal.UpgradeProposal != nil || proposal.ClientUpdateProposal != nil { + switch { + case proposal.ParamChangeProposal != nil, + proposal.UpgradeProposal != nil, + proposal.ClientUpdateProposal != nil: return true + default: + return false } - return false } func (m *CustomMessenger) addSchedule(ctx sdk.Context, contractAddr sdk.AccAddress, addSchedule *bindings.AddSchedule) ([]sdk.Event, [][]byte, error) { From b34a26e9a303c1406cb3b91601b33549a3988a16 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 30 Aug 2023 12:36:10 +0300 Subject: [PATCH 067/307] removed outdated comments --- x/interchaintxs/keeper/ibc_handlers.go | 4 ---- x/transfer/ibc_handlers.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 79b79cad5..535556800 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -39,8 +39,6 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { - // early error initialisation, to choose a correct `if` branch right after the closure in case of successfully `out of gas` panic recovered - // if SudoError/SudoResponse successful, then `err` is set to `nil` defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events @@ -82,8 +80,6 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { - // early error initialisation, to choose a correct `if` branch right after the closure, in case of successfully `out of gas` panic recovered - // if SudoTimeout successful, then `err` is set to `nil` defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) }() diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 37834eada..73fac3316 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -38,8 +38,6 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { - // early error initialisation, to choose a correct `if` branch right after the closure in case of successfully `out of gas` panic recovered - // if SudoResponse/SudoError successful, then `err` is set to `nil` defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) @@ -86,8 +84,6 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r // distribute fee im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) func() { - // early error initialisation, to choose a correct `if` branch right after the closure, in case of successfully `out of gas` panic recovered - // if SudoTimeout successful, then `err` is set to `nil` defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) }() From bbc0480b4526e4241a9292db2255290f6d0a1f15 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 30 Aug 2023 13:47:32 +0400 Subject: [PATCH 068/307] polishing --- wasmbinding/message_plugin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 9feb137ff..2af5ed310 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -405,7 +405,6 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont ctx.Logger().Debug("submit proposal legacy processed in msg server", "from_address", contractAddr.String(), - "creator", contractAddr.String(), ) return response, nil @@ -756,7 +755,6 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) if proposal.UpgradeProposal != nil { qty++ } - if proposal.ProposalExecuteMessage != nil { qty++ } @@ -770,6 +768,7 @@ func (m *CustomMessenger) validateProposalQty(proposal *bindings.AdminProposal) return fmt.Errorf("more than one admin proposal type is present in message") } } + func (m *CustomMessenger) isLegacyProposal(proposal *bindings.AdminProposal) bool { switch { case proposal.ParamChangeProposal != nil, From b5647e2d59a900d5be8dc597ec839bf2b1d111af Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 30 Aug 2023 13:56:30 +0400 Subject: [PATCH 069/307] rm enabled proposals --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index b33b38a56..b6b749271 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,6 @@ LEDGER_ENABLED ?= true SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') BINDIR ?= $(GOPATH)/bin SIMAPP = ./app -ENABLED_PROPOSALS := MigrateContract,SudoContract,UpdateAdmin,ClearAdmin,PinCodes,UnpinCodes GO_VERSION=1.20.0 BUILDDIR ?= $(CURDIR)/build @@ -112,7 +111,6 @@ build-static-linux-amd64: go.sum $(BUILDDIR)/ --build-arg GIT_VERSION=$(VERSION) \ --build-arg GIT_COMMIT=$(COMMIT) \ --build-arg BUILD_TAGS=$(build_tags_comma_sep) \ - --build-arg ENABLED_PROPOSALS=$(ENABLED_PROPOSALS) \ --platform linux/amd64 \ -t neutron-amd64 \ --load \ From 2898efb59912cd2833167414745255e1ade67fe0 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 30 Aug 2023 15:52:07 +0400 Subject: [PATCH 070/307] small ref & comment --- wasmbinding/message_plugin.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 2af5ed310..be8650904 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -299,7 +299,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. if err != nil { return nil, nil, errors.Wrap(err, "failed to validate proposal quantity") } - // here we handle pre-sdk47 style of proposals: param change & upgrade/cancel + // here we handle pre-sdk47 style of proposals: param change, upgrade, client update if m.isLegacyProposal(adminProposal) { resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, adminProposal) if err != nil { @@ -432,8 +432,11 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd if !signers[0].Equals(authority) { return nil, errors.Wrap(sdkerrors.ErrUnauthorized, "authority in incoming msg is not equal to admin module") } - sdkMsgs = append(sdkMsgs, sdkMsg) - msg, err = admintypes.NewMsgSubmitProposal(sdkMsgs, contractAddr) + + msg, err = admintypes.NewMsgSubmitProposal([]sdk.Msg{sdkMsg}, contractAddr) + if err != nil { + return nil, errors.Wrap(err, "failed to create MsgSubmitProposal ") + } if err := msg.ValidateBasic(); err != nil { return nil, errors.Wrap(err, "failed to validate incoming SubmitAdminProposal message") From 9fc8ea3fa6cf74fbf17a722c6fc40c2b8efe3ed4 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 16:53:13 +0400 Subject: [PATCH 071/307] add upd params msgs --- proto/neutron/contractmanager/tx.proto | 42 +++ proto/neutron/cron/tx.proto | 32 +- proto/neutron/feeburner/tx.proto | 43 +++ proto/neutron/feerefunder/tx.proto | 43 +++ proto/neutron/interchainqueries/tx.proto | 29 ++ proto/neutron/interchaintxs/v1/tx.proto | 28 ++ x/tokenfactory/keeper/before_send.go | 155 ++++++++ x/tokenfactory/types/denoms_test.go | 131 ------- x/tokenfactory/types/genesis_test.go | 139 ------- x/tokenfactory/types/msgs_test.go | 450 ----------------------- 10 files changed, 370 insertions(+), 722 deletions(-) create mode 100644 proto/neutron/contractmanager/tx.proto create mode 100644 proto/neutron/feeburner/tx.proto create mode 100644 proto/neutron/feerefunder/tx.proto create mode 100644 x/tokenfactory/keeper/before_send.go delete mode 100644 x/tokenfactory/types/denoms_test.go delete mode 100644 x/tokenfactory/types/genesis_test.go delete mode 100644 x/tokenfactory/types/msgs_test.go diff --git a/proto/neutron/contractmanager/tx.proto b/proto/neutron/contractmanager/tx.proto new file mode 100644 index 000000000..51b4e01fe --- /dev/null +++ b/proto/neutron/contractmanager/tx.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; +package neutron.contractmanager; + +import "neutron/contractmanager/params.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + +// this line is used by starport scaffolding # proto/tx/import + +option go_package = "github.com/neutron-org/neutron/x/contractmanager/types"; + +// Msg defines the Msg service. +service Msg { + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // this line is used by starport scaffolding # proto/tx/rpc +} + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "contractmanager/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/contractmanager parameters to update. + // + // NOTE: All parameters must be supplied. + contractmanager.Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: 0.47 +message MsgUpdateParamsResponse {} + diff --git a/proto/neutron/cron/tx.proto b/proto/neutron/cron/tx.proto index 79cf8b235..fef6a57f1 100644 --- a/proto/neutron/cron/tx.proto +++ b/proto/neutron/cron/tx.proto @@ -1,14 +1,42 @@ syntax = "proto3"; package neutron.cron; +import "neutron/cron/params.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + // this line is used by starport scaffolding # proto/tx/import option go_package = "github.com/neutron-org/neutron/x/cron/types"; // Msg defines the Msg service. service Msg { -// this line is used by starport scaffolding # proto/tx/rpc + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // this line is used by starport scaffolding # proto/tx/rpc +} + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "cron/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/cron 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: 0.47 +message MsgUpdateParamsResponse {} -// this line is used by starport scaffolding # proto/tx/message diff --git a/proto/neutron/feeburner/tx.proto b/proto/neutron/feeburner/tx.proto new file mode 100644 index 000000000..68e804ab1 --- /dev/null +++ b/proto/neutron/feeburner/tx.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; +package neutron.feeburner; + +import "neutron/feeburner/params.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + + +// this line is used by starport scaffolding # proto/tx/import + +option go_package = "github.com/neutron-org/neutron/x/feeburner/types"; + +// Msg defines the Msg service. +service Msg { + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // this line is used by starport scaffolding # proto/tx/rpc +} + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "feeburner/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/feeburner parameters to update. + // + // NOTE: All parameters must be supplied. + feeburner.Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: 0.47 +message MsgUpdateParamsResponse {} + diff --git a/proto/neutron/feerefunder/tx.proto b/proto/neutron/feerefunder/tx.proto new file mode 100644 index 000000000..bede834e3 --- /dev/null +++ b/proto/neutron/feerefunder/tx.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; +package neutron.feerefunder; + +import "neutron/feerefunder/params.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + + +// this line is used by starport scaffolding # proto/tx/import + +option go_package = "github.com/neutron-org/neutron/x/feerefunder/types"; + +// Msg defines the Msg service. +service Msg { + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // this line is used by starport scaffolding # proto/tx/rpc +} + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "feerefunder/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/feerefunder parameters to update. + // + // NOTE: All parameters must be supplied. + feerefunder.Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: 0.47 +message MsgUpdateParamsResponse {} + diff --git a/proto/neutron/interchainqueries/tx.proto b/proto/neutron/interchainqueries/tx.proto index 1385c2dc8..37936f711 100644 --- a/proto/neutron/interchainqueries/tx.proto +++ b/proto/neutron/interchainqueries/tx.proto @@ -1,10 +1,15 @@ syntax = "proto3"; package neutron.interchainqueries; +import "neutron/interchainqueries/params.proto"; import "tendermint/crypto/proof.proto"; import "tendermint/abci/types.proto"; import "google/protobuf/any.proto"; import "neutron/interchainqueries/genesis.proto"; +import "gogoproto/gogo.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; option go_package = "github.com/neutron-org/neutron/x/interchainqueries/types"; @@ -18,6 +23,7 @@ service Msg { returns (MsgRemoveInterchainQueryResponse); rpc UpdateInterchainQuery(MsgUpdateInterchainQueryRequest) returns (MsgUpdateInterchainQueryResponse); + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } message MsgRegisterInterchainQuery { @@ -119,3 +125,26 @@ message MsgUpdateInterchainQueryRequest { string sender = 5; // is the signer of the message } message MsgUpdateInterchainQueryResponse {} + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "interchainqueries/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/tokenfactory 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: 0.47 +message MsgUpdateParamsResponse {} diff --git a/proto/neutron/interchaintxs/v1/tx.proto b/proto/neutron/interchaintxs/v1/tx.proto index c871accd2..3ba09f2e3 100644 --- a/proto/neutron/interchaintxs/v1/tx.proto +++ b/proto/neutron/interchaintxs/v1/tx.proto @@ -4,17 +4,21 @@ package neutron.interchaintxs.v1; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; import "cosmos_proto/cosmos.proto"; +import "neutron/interchaintxs/v1/params.proto"; import "gogoproto/gogo.proto"; import "google/api/http.proto"; import "google/api/annotations.proto"; import "google/protobuf/any.proto"; import "neutron/feerefunder/fee.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; // Msg defines the Msg service. service Msg { rpc RegisterInterchainAccount(MsgRegisterInterchainAccount) returns (MsgRegisterInterchainAccountResponse) {}; rpc SubmitTx(MsgSubmitTx) returns (MsgSubmitTxResponse) {}; + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } // MsgRegisterInterchainAccount is used to register an account on a remote zone. @@ -59,3 +63,27 @@ message MsgSubmitTxResponse { // channel src channel on neutron side trasaction was submitted from string channel = 2; } + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "interchaintxs/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/tokenfactory 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: 0.47 +message MsgUpdateParamsResponse {} + diff --git a/x/tokenfactory/keeper/before_send.go b/x/tokenfactory/keeper/before_send.go new file mode 100644 index 000000000..bfe4d36e8 --- /dev/null +++ b/x/tokenfactory/keeper/before_send.go @@ -0,0 +1,155 @@ +package keeper + +import ( + "encoding/json" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" + + errorsmod "cosmossdk.io/errors" + wasmvmtypes "github.com/CosmWasm/wasmvm/types" +) + +func (k Keeper) setBeforeSendHook(ctx sdk.Context, denom string, cosmwasmAddress string) error { + // verify that denom is an x/tokenfactory denom + _, _, err := types.DeconstructDenom(denom) + if err != nil { + return err + } + + store := k.GetDenomPrefixStore(ctx, denom) + + // delete the store for denom prefix store when cosmwasm address is nil + if cosmwasmAddress == "" { + store.Delete([]byte(types.BeforeSendHookAddressPrefixKey)) + return nil + } + + _, err = sdk.AccAddressFromBech32(cosmwasmAddress) + if err != nil { + return err + } + + store.Set([]byte(types.BeforeSendHookAddressPrefixKey), []byte(cosmwasmAddress)) + + return nil +} + +func (k Keeper) GetBeforeSendHook(ctx sdk.Context, denom string) string { + store := k.GetDenomPrefixStore(ctx, denom) + + bz := store.Get([]byte(types.BeforeSendHookAddressPrefixKey)) + if bz == nil { + return "" + } + + return string(bz) +} + +func CWCoinsFromSDKCoins(in sdk.Coins) wasmvmtypes.Coins { + var cwCoins wasmvmtypes.Coins + for _, coin := range in { + cwCoins = append(cwCoins, CWCoinFromSDKCoin(coin)) + } + return cwCoins +} + +func CWCoinFromSDKCoin(in sdk.Coin) wasmvmtypes.Coin { + return wasmvmtypes.Coin{ + Denom: in.GetDenom(), + Amount: in.Amount.String(), + } +} + +// Hooks wrapper struct for bank keeper +type Hooks struct { + k Keeper +} + +var _ types.BankHooks = Hooks{} + +// Return the wrapper struct +func (k Keeper) Hooks() Hooks { + return Hooks{k} +} + +// TrackBeforeSend calls the before send listener contract surpresses any errors +func (h Hooks) TrackBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) { + _ = h.k.callBeforeSendListener(ctx, from, to, amount, false) +} + +// TrackBeforeSend calls the before send listener contract returns any errors +func (h Hooks) BlockBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) error { + return h.k.callBeforeSendListener(ctx, from, to, amount, true) +} + +// callBeforeSendListener iterates over each coin and sends corresponding sudo msg to the contract address stored in state. +// If blockBeforeSend is true, sudoMsg wraps BlockBeforeSendMsg, otherwise sudoMsg wraps TrackBeforeSendMsg. +// Note that we gas meter trackBeforeSend to prevent infinite contract calls. +// CONTRACT: this should not be called in beginBlock or endBlock since out of gas will cause this method to panic. +func (k Keeper) callBeforeSendListener(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins, blockBeforeSend bool) (err error) { + defer func() { + if r := recover(); r != nil { + err = types.ErrTrackBeforeSendOutOfGas + } + }() + + for _, coin := range amount { + cosmwasmAddress := k.GetBeforeSendHook(ctx, coin.Denom) + if cosmwasmAddress != "" { + cwAddr, err := sdk.AccAddressFromBech32(cosmwasmAddress) + if err != nil { + return err + } + + var msgBz []byte + + // get msgBz, either BlockBeforeSend or TrackBeforeSend + // Note that for trackBeforeSend, we need to gas meter computations to prevent infinite loop + // specifically because module to module sends are not gas metered. + // We don't need to do this for blockBeforeSend since blockBeforeSend is not called during module to module sends. + if blockBeforeSend { + msg := types.BlockBeforeSendSudoMsg{ + BlockBeforeSend: types.BlockBeforeSendMsg{ + From: from.String(), + To: to.String(), + Amount: CWCoinFromSDKCoin(coin), + }, + } + msgBz, err = json.Marshal(msg) + } else { + msg := types.TrackBeforeSendSudoMsg{ + TrackBeforeSend: types.TrackBeforeSendMsg{ + From: from.String(), + To: to.String(), + Amount: CWCoinFromSDKCoin(coin), + }, + } + msgBz, err = json.Marshal(msg) + } + if err != nil { + return err + } + em := sdk.NewEventManager() + + // if its track before send, apply gas meter to prevent infinite loop + if blockBeforeSend { + _, err = k.contractKeeper.Sudo(ctx.WithEventManager(em), cwAddr, msgBz) + if err != nil { + return errorsmod.Wrapf(err, "failed to call before send hook for denom %s", coin.Denom) + } + } else { + childCtx := ctx.WithGasMeter(sdk.NewGasMeter(types.TrackBeforeSendGasLimit)) + _, err = k.contractKeeper.Sudo(childCtx.WithEventManager(em), cwAddr, msgBz) + if err != nil { + return errorsmod.Wrapf(err, "failed to call before send hook for denom %s", coin.Denom) + } + + // consume gas used for calling contract to the parent ctx + ctx.GasMeter().ConsumeGas(childCtx.GasMeter().GasConsumed(), "track before send gas") + } + } + } + return nil +} diff --git a/x/tokenfactory/types/denoms_test.go b/x/tokenfactory/types/denoms_test.go deleted file mode 100644 index d3f21d28b..000000000 --- a/x/tokenfactory/types/denoms_test.go +++ /dev/null @@ -1,131 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - appparams "github.com/osmosis-labs/osmosis/v17/app/params" - "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" -) - -func TestDeconstructDenom(t *testing.T) { - appparams.SetAddressPrefixes() - - for _, tc := range []struct { - desc string - denom string - expectedSubdenom string - err error - }{ - { - desc: "empty is invalid", - denom: "", - err: types.ErrInvalidDenom, - }, - { - desc: "normal", - denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - expectedSubdenom: "bitcoin", - }, - { - desc: "multiple slashes in subdenom", - denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin/1", - expectedSubdenom: "bitcoin/1", - }, - { - desc: "no subdenom", - denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/", - expectedSubdenom: "", - }, - { - desc: "incorrect prefix", - denom: "ibc/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - err: types.ErrInvalidDenom, - }, - { - desc: "subdenom of only slashes", - denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/////", - expectedSubdenom: "////", - }, - { - desc: "too long name", - denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/adsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsf", - err: types.ErrInvalidDenom, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - expectedCreator := "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44" - creator, subdenom, err := types.DeconstructDenom(tc.denom) - if tc.err != nil { - require.ErrorContains(t, err, tc.err.Error()) - } else { - require.NoError(t, err) - require.Equal(t, expectedCreator, creator) - require.Equal(t, tc.expectedSubdenom, subdenom) - } - }) - } -} - -func TestGetTokenDenom(t *testing.T) { - appparams.SetAddressPrefixes() - for _, tc := range []struct { - desc string - creator string - subdenom string - valid bool - }{ - { - desc: "normal", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - subdenom: "bitcoin", - valid: true, - }, - { - desc: "multiple slashes in subdenom", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - subdenom: "bitcoin/1", - valid: true, - }, - { - desc: "no subdenom", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - subdenom: "", - valid: true, - }, - { - desc: "subdenom of only slashes", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - subdenom: "/////", - valid: true, - }, - { - desc: "too long name", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - subdenom: "adsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsf", - valid: false, - }, - { - desc: "subdenom is exactly max length", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - subdenom: "bitcoinfsadfsdfeadfsafwefsefsefsdfsdafasefsf", - valid: true, - }, - { - desc: "creator is exactly max length", - creator: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44jhgjhgkhjklhkjhkjhgjhgjgjghelugt", - subdenom: "bitcoin", - valid: true, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - _, err := types.GetTokenDenom(tc.creator, tc.subdenom) - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/tokenfactory/types/genesis_test.go b/x/tokenfactory/types/genesis_test.go deleted file mode 100644 index d9392c26d..000000000 --- a/x/tokenfactory/types/genesis_test.go +++ /dev/null @@ -1,139 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" -) - -func TestGenesisState_Validate(t *testing.T) { - for _, tc := range []struct { - desc string - genState *types.GenesisState - valid bool - }{ - { - desc: "default is valid", - genState: types.DefaultGenesis(), - valid: true, - }, - { - desc: "valid genesis state", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44", - }, - }, - }, - }, - valid: true, - }, - { - desc: "different admin from creator", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "osmo1ft6e5esdtdegnvcr3djd3ftk4kwpcr6jrx5fj9", - }, - }, - }, - }, - valid: true, - }, - { - desc: "empty admin", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "", - }, - }, - }, - }, - valid: true, - }, - { - desc: "no admin", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - }, - }, - }, - valid: true, - }, - { - desc: "invalid admin", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "moose", - }, - }, - }, - }, - valid: false, - }, - { - desc: "multiple denoms", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "", - }, - }, - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/litecoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "", - }, - }, - }, - }, - valid: true, - }, - { - desc: "duplicate denoms", - genState: &types.GenesisState{ - FactoryDenoms: []types.GenesisDenom{ - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "", - }, - }, - { - Denom: "factory/osmo1t7egva48prqmzl59x5ngv4zx0dtrwewc9m7z44/bitcoin", - AuthorityMetadata: types.DenomAuthorityMetadata{ - Admin: "", - }, - }, - }, - }, - valid: false, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - err := tc.genState.Validate() - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/tokenfactory/types/msgs_test.go b/x/tokenfactory/types/msgs_test.go deleted file mode 100644 index e8480b58a..000000000 --- a/x/tokenfactory/types/msgs_test.go +++ /dev/null @@ -1,450 +0,0 @@ -package types_test - -import ( - fmt "fmt" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - "github.com/osmosis-labs/osmosis/v17/app/apptesting" - "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" - - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/tendermint/tendermint/crypto/ed25519" -) - -// // Test authz serialize and de-serializes for tokenfactory msg. -func TestAuthzMsg(t *testing.T) { - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()).String() - coin := sdk.NewCoin("denom", sdk.NewInt(1)) - - testCases := []struct { - name string - msg sdk.Msg - }{ - { - name: "MsgCreateDenom", - msg: &types.MsgCreateDenom{ - Sender: addr1, - Subdenom: "valoper1xyz", - }, - }, - { - name: "MsgBurn", - msg: &types.MsgBurn{ - Sender: addr1, - Amount: coin, - }, - }, - { - name: "MsgMint", - msg: &types.MsgMint{ - Sender: addr1, - Amount: coin, - }, - }, - { - name: "MsgChangeAdmin", - msg: &types.MsgChangeAdmin{ - Sender: addr1, - Denom: "denom", - NewAdmin: "osmo1q8tq5qhrhw6t970egemuuwywhlhpnmdmts6xnu", - }, - }, - } - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - apptesting.TestMessageAuthzSerialization(t, tc.msg) - }) - } -} - -// TestMsgCreateDenom tests if valid/invalid create denom messages are properly validated/invalidated -func TestMsgCreateDenom(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - - // make a proper createDenom message - createMsg := func(after func(msg types.MsgCreateDenom) types.MsgCreateDenom) types.MsgCreateDenom { - properMsg := *types.NewMsgCreateDenom( - addr1.String(), - "bitcoin", - ) - - return after(properMsg) - } - - // validate createDenom message was created as intended - msg := createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { - return msg - }) - require.Equal(t, msg.Route(), types.RouterKey) - require.Equal(t, msg.Type(), "create_denom") - signers := msg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg types.MsgCreateDenom - expectPass bool - }{ - { - name: "proper msg", - msg: createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { - return msg - }), - expectPass: true, - }, - { - name: "empty sender", - msg: createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { - msg.Sender = "" - return msg - }), - expectPass: false, - }, - { - name: "invalid subdenom", - msg: createMsg(func(msg types.MsgCreateDenom) types.MsgCreateDenom { - msg.Subdenom = "thissubdenomismuchtoolongasdkfjaasdfdsafsdlkfnmlksadmflksmdlfmlsakmfdsafasdfasdf" - return msg - }), - expectPass: false, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) - } - } -} - -// TestMsgMint tests if valid/invalid create denom messages are properly validated/invalidated -func TestMsgMint(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - - // make a proper mint message - createMsg := func(after func(msg types.MsgMint) types.MsgMint) types.MsgMint { - properMsg := *types.NewMsgMint( - addr1.String(), - sdk.NewCoin("bitcoin", sdk.NewInt(500000000)), - ) - - return after(properMsg) - } - - // validate mint message was created as intended - msg := createMsg(func(msg types.MsgMint) types.MsgMint { - return msg - }) - require.Equal(t, msg.Route(), types.RouterKey) - require.Equal(t, msg.Type(), "tf_mint") - signers := msg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg types.MsgMint - expectPass bool - }{ - { - name: "proper msg", - msg: createMsg(func(msg types.MsgMint) types.MsgMint { - return msg - }), - expectPass: true, - }, - { - name: "empty sender", - msg: createMsg(func(msg types.MsgMint) types.MsgMint { - msg.Sender = "" - return msg - }), - expectPass: false, - }, - { - name: "zero amount", - msg: createMsg(func(msg types.MsgMint) types.MsgMint { - msg.Amount = sdk.NewCoin("bitcoin", sdk.ZeroInt()) - return msg - }), - expectPass: false, - }, - { - name: "negative amount", - msg: createMsg(func(msg types.MsgMint) types.MsgMint { - msg.Amount.Amount = sdk.NewInt(-10000000) - return msg - }), - expectPass: false, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) - } - } -} - -// TestMsgBurn tests if valid/invalid create denom messages are properly validated/invalidated -func TestMsgBurn(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - - // make a proper burn message - baseMsg := types.NewMsgBurn( - addr1.String(), - sdk.NewCoin("bitcoin", sdk.NewInt(500000000)), - ) - - // validate burn message was created as intended - require.Equal(t, baseMsg.Route(), types.RouterKey) - require.Equal(t, baseMsg.Type(), "tf_burn") - signers := baseMsg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg func() *types.MsgBurn - expectPass bool - }{ - { - name: "proper msg", - msg: func() *types.MsgBurn { - msg := baseMsg - return msg - }, - expectPass: true, - }, - { - name: "empty sender", - msg: func() *types.MsgBurn { - msg := baseMsg - msg.Sender = "" - return msg - }, - expectPass: false, - }, - { - name: "zero amount", - msg: func() *types.MsgBurn { - msg := baseMsg - msg.Amount.Amount = sdk.ZeroInt() - return msg - }, - expectPass: false, - }, - { - name: "negative amount", - msg: func() *types.MsgBurn { - msg := baseMsg - msg.Amount.Amount = sdk.NewInt(-10000000) - return msg - }, - expectPass: false, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg().ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg().ValidateBasic(), "test: %v", test.name) - } - } -} - -// TestMsgChangeAdmin tests if valid/invalid create denom messages are properly validated/invalidated -func TestMsgChangeAdmin(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - pk2 := ed25519.GenPrivKey().PubKey() - addr2 := sdk.AccAddress(pk2.Address()) - tokenFactoryDenom := fmt.Sprintf("factory/%s/bitcoin", addr1.String()) - - // make a proper changeAdmin message - baseMsg := types.NewMsgChangeAdmin( - addr1.String(), - tokenFactoryDenom, - addr2.String(), - ) - - // validate changeAdmin message was created as intended - require.Equal(t, baseMsg.Route(), types.RouterKey) - require.Equal(t, baseMsg.Type(), "change_admin") - signers := baseMsg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg func() *types.MsgChangeAdmin - expectPass bool - }{ - { - name: "proper msg", - msg: func() *types.MsgChangeAdmin { - msg := baseMsg - return msg - }, - expectPass: true, - }, - { - name: "empty sender", - msg: func() *types.MsgChangeAdmin { - msg := baseMsg - msg.Sender = "" - return msg - }, - expectPass: false, - }, - { - name: "empty newAdmin", - msg: func() *types.MsgChangeAdmin { - msg := baseMsg - msg.NewAdmin = "" - return msg - }, - expectPass: false, - }, - { - name: "invalid denom", - msg: func() *types.MsgChangeAdmin { - msg := baseMsg - msg.Denom = "bitcoin" - return msg - }, - expectPass: false, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg().ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg().ValidateBasic(), "test: %v", test.name) - } - } -} - -// TestMsgSetDenomMetadata tests if valid/invalid create denom messages are properly validated/invalidated -func TestMsgSetDenomMetadata(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - tokenFactoryDenom := fmt.Sprintf("factory/%s/bitcoin", addr1.String()) - denomMetadata := banktypes.Metadata{ - Description: "nakamoto", - DenomUnits: []*banktypes.DenomUnit{ - { - Denom: tokenFactoryDenom, - Exponent: 0, - }, - { - Denom: "sats", - Exponent: 6, - }, - }, - Display: "sats", - Base: tokenFactoryDenom, - Name: "bitcoin", - Symbol: "BTC", - } - invalidDenomMetadata := banktypes.Metadata{ - Description: "nakamoto", - DenomUnits: []*banktypes.DenomUnit{ - { - Denom: "bitcoin", - Exponent: 0, - }, - { - Denom: "sats", - Exponent: 6, - }, - }, - Display: "sats", - Base: "bitcoin", - Name: "bitcoin", - Symbol: "BTC", - } - - // make a proper setDenomMetadata message - baseMsg := types.NewMsgSetDenomMetadata( - addr1.String(), - denomMetadata, - ) - - // validate setDenomMetadata message was created as intended - require.Equal(t, baseMsg.Route(), types.RouterKey) - require.Equal(t, baseMsg.Type(), "set_denom_metadata") - signers := baseMsg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg func() *types.MsgSetDenomMetadata - expectPass bool - }{ - { - name: "proper msg", - msg: func() *types.MsgSetDenomMetadata { - msg := baseMsg - return msg - }, - expectPass: true, - }, - { - name: "empty sender", - msg: func() *types.MsgSetDenomMetadata { - msg := baseMsg - msg.Sender = "" - return msg - }, - expectPass: false, - }, - { - name: "invalid metadata", - msg: func() *types.MsgSetDenomMetadata { - msg := baseMsg - msg.Metadata.Name = "" - return msg - }, - - expectPass: false, - }, - { - name: "invalid base", - msg: func() *types.MsgSetDenomMetadata { - msg := baseMsg - msg.Metadata = invalidDenomMetadata - return msg - }, - expectPass: false, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg().ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg().ValidateBasic(), "test: %v", test.name) - } - } -} From 8a856f15397f4c1a2c2ebd0fb8a63ca6c86d8872 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 16:53:35 +0400 Subject: [PATCH 072/307] renew tokenfactory proto --- proto/osmosis/tokenfactory/v1beta1/tx.proto | 109 +++++++++++++++----- 1 file changed, 83 insertions(+), 26 deletions(-) diff --git a/proto/osmosis/tokenfactory/v1beta1/tx.proto b/proto/osmosis/tokenfactory/v1beta1/tx.proto index 57d4bdc38..8184a0a86 100644 --- a/proto/osmosis/tokenfactory/v1beta1/tx.proto +++ b/proto/osmosis/tokenfactory/v1beta1/tx.proto @@ -1,27 +1,42 @@ syntax = "proto3"; package osmosis.tokenfactory.v1beta1; +import "osmosis/tokenfactory/v1beta1/params.proto"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; +import "cosmos/bank/v1beta1/bank.proto"; option go_package = "github.com/neutron-org/neutron/x/tokenfactory/types"; -// Msg defines the Msg service. + +// Msg defines the tokefactory module's gRPC message service. service Msg { rpc CreateDenom(MsgCreateDenom) returns (MsgCreateDenomResponse); rpc Mint(MsgMint) returns (MsgMintResponse); rpc Burn(MsgBurn) returns (MsgBurnResponse); rpc ChangeAdmin(MsgChangeAdmin) returns (MsgChangeAdminResponse); + rpc SetDenomMetadata(MsgSetDenomMetadata) + returns (MsgSetDenomMetadataResponse); + rpc SetBeforeSendHook(MsgSetBeforeSendHook) + returns (MsgSetBeforeSendHookResponse); + rpc ForceTransfer(MsgForceTransfer) returns (MsgForceTransferResponse); } -// MsgCreateDenom is the sdk.Msg type for allowing an account to create -// a new denom. It requires a sender address and a subdenomination. -// The (sender_address, sub_denomination) pair must be unique and cannot be -// re-used. The resulting denom created is `factory/{creator -// address}/{subdenom}`. The resultant denom's admin is originally set to be the -// creator, but this can be changed later. The token denom does not indicate the -// current admin. +// MsgCreateDenom defines the message structure for the CreateDenom gRPC service +// method. It allows an account to create a new denom. It requires a sender +// address and a sub denomination. The (sender_address, sub_denomination) tuple +// must be unique and cannot be re-used. +// +// The resulting denom created is defined as +// . The resulting denom's admin is +// originally set to be the creator, but this can be changed later. The token +// denom does not indicate the current admin. message MsgCreateDenom { + option (amino.name) = "osmosis/tokenfactory/create-denom"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; // subdenom can be up to 44 "alphanumeric" characters long. string subdenom = 2 [ (gogoproto.moretags) = "yaml:\"subdenom\"" ]; @@ -31,17 +46,21 @@ message MsgCreateDenom { // It returns the full string of the newly created denom message MsgCreateDenomResponse { string new_token_denom = 1 - [ (gogoproto.moretags) = "yaml:\"new_token_denom\"" ]; + [ (gogoproto.moretags) = "yaml:\"new_token_denom\"" ]; } // MsgMint is the sdk.Msg type for allowing an admin account to mint // more of a token. For now, we only support minting to the sender account message MsgMint { + option (amino.name) = "osmosis/tokenfactory/mint"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.moretags) = "yaml:\"amount\"", (gogoproto.nullable) = false ]; + string mintToAddress = 3 + [ (gogoproto.moretags) = "yaml:\"mint_to_address\"" ]; } message MsgMintResponse {} @@ -49,36 +68,74 @@ message MsgMintResponse {} // MsgBurn is the sdk.Msg type for allowing an admin account to burn // a token. For now, we only support burning from the sender account. message MsgBurn { + option (amino.name) = "osmosis/tokenfactory/burn"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.moretags) = "yaml:\"amount\"", (gogoproto.nullable) = false ]; + string burnFromAddress = 3 + [ (gogoproto.moretags) = "yaml:\"burn_from_address\"" ]; } message MsgBurnResponse {} -// // ===================== MsgForceTransfer -// message MsgForceTransfer { -// string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; -// cosmos.base.v1beta1.Coin amount = 2 [ -// (gogoproto.moretags) = "yaml:\"amount\"", -// (gogoproto.nullable) = false -// ]; -// string transferFromAddress = 3 -// [ (gogoproto.moretags) = "yaml:\"transfer_from_address\"" ]; -// string transferToAddress = 4 -// [ (gogoproto.moretags) = "yaml:\"transfer_to_address\"" ]; -// } - -// message MsgForceTransferResponse {} - // MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign // adminship of a denom to a new account message MsgChangeAdmin { + option (amino.name) = "osmosis/tokenfactory/change-admin"; + + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; + string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; + string new_admin = 3 [ (gogoproto.moretags) = "yaml:\"new_admin\"" ]; +} + +// MsgChangeAdminResponse defines the response structure for an executed +// MsgChangeAdmin message. +message MsgChangeAdminResponse {} + +// MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to +// assign a CosmWasm contract to call with a BeforeSend hook +message MsgSetBeforeSendHook { + option (amino.name) = "osmosis/tokenfactory/set-beforesend-hook"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; - string newAdmin = 3 [ (gogoproto.moretags) = "yaml:\"new_admin\"" ]; + string cosmwasm_address = 3 + [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; +} + +// MsgSetBeforeSendHookResponse defines the response structure for an executed +// MsgSetBeforeSendHook message. +message MsgSetBeforeSendHookResponse {} + +// MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set +// the denom's bank metadata +message MsgSetDenomMetadata { + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; + cosmos.bank.v1beta1.Metadata metadata = 2 [ + (gogoproto.moretags) = "yaml:\"metadata\"", + (gogoproto.nullable) = false + ]; +} + +// MsgSetDenomMetadataResponse defines the response structure for an executed +// MsgSetDenomMetadata message. +message MsgSetDenomMetadataResponse {} + +message MsgForceTransfer { + option (amino.name) = "osmosis/tokenfactory/force-transfer"; + + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; + cosmos.base.v1beta1.Coin amount = 2 [ + (gogoproto.moretags) = "yaml:\"amount\"", + (gogoproto.nullable) = false + ]; + string transferFromAddress = 3 + [ (gogoproto.moretags) = "yaml:\"transfer_from_address\"" ]; + string transferToAddress = 4 + [ (gogoproto.moretags) = "yaml:\"transfer_to_address\"" ]; } -message MsgChangeAdminResponse {} \ No newline at end of file +message MsgForceTransferResponse {} From f36e9546439f65f27c9474a1ac8af07d3be222e5 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 16:54:17 +0400 Subject: [PATCH 073/307] regen proto & update msg servers --- x/contractmanager/types/tx.pb.go | 598 +++++++++++++++++++++++ x/cron/types/tx.pb.go | 537 +++++++++++++++++++- x/feeburner/types/tx.pb.go | 598 +++++++++++++++++++++++ x/feerefunder/types/tx.pb.go | 598 +++++++++++++++++++++++ x/interchainqueries/keeper/keeper.go | 9 + x/interchainqueries/keeper/msg_server.go | 19 +- x/interchainqueries/types/tx.pb.go | 528 +++++++++++++++++--- x/interchaintxs/keeper/keeper.go | 7 + x/interchaintxs/keeper/msg_server.go | 19 +- x/interchaintxs/types/tx.pb.go | 475 ++++++++++++++++-- 10 files changed, 3277 insertions(+), 111 deletions(-) create mode 100644 x/contractmanager/types/tx.pb.go create mode 100644 x/feeburner/types/tx.pb.go create mode 100644 x/feerefunder/types/tx.pb.go diff --git a/x/contractmanager/types/tx.pb.go b/x/contractmanager/types/tx.pb.go new file mode 100644 index 000000000..c83e95d44 --- /dev/null +++ b/x/contractmanager/types/tx.pb.go @@ -0,0 +1,598 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: neutron/contractmanager/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "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 +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/contractmanager 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_4dc444ed708d435f, []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: 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_4dc444ed708d435f, []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 + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.contractmanager.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.contractmanager.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("neutron/contractmanager/tx.proto", fileDescriptor_4dc444ed708d435f) } + +var fileDescriptor_4dc444ed708d435f = []byte{ + // 344 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, + 0x4c, 0x4f, 0x2d, 0xd2, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xaa, + 0xd0, 0x43, 0x53, 0x21, 0xa5, 0x82, 0x4b, 0x6b, 0x41, 0x62, 0x51, 0x62, 0x6e, 0x31, 0x44, 0xbb, + 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, 0x62, 0x41, 0x45, 0xc5, 0x93, 0xf3, 0x8b, + 0x73, 0xf3, 0x8b, 0xf5, 0x73, 0x8b, 0xd3, 0xf5, 0xcb, 0x0c, 0x41, 0x14, 0x54, 0x42, 0x12, 0x22, + 0x11, 0x0f, 0xd1, 0x01, 0xe1, 0x40, 0xa5, 0x04, 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, + 0x44, 0x48, 0xe9, 0x20, 0x23, 0x17, 0xbf, 0x6f, 0x71, 0x7a, 0x68, 0x41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0xd5, 0x87, 0x9a, 0xaa, 0x9b, 0x5f, 0x94, 0x0e, 0x63, 0xeb, 0x57, 0x60, 0x26, + 0xa1, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x54, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xb8, 0x57, 0x30, 0x76, 0x6a, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +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 { + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +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, "/neutron.contractmanager.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 { + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +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: "/neutron.contractmanager.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: "neutron.contractmanager.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "neutron/contractmanager/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/cron/types/tx.pb.go b/x/cron/types/tx.pb.go index 9a342b79f..df3c178d2 100644 --- a/x/cron/types/tx.pb.go +++ b/x/cron/types/tx.pb.go @@ -6,10 +6,18 @@ package types import ( context "context" fmt "fmt" + _ "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. @@ -23,18 +31,135 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/cron 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_c9e0a673aba8d6fd, []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: 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_c9e0a673aba8d6fd, []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 + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.cron.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.cron.MsgUpdateParamsResponse") +} + func init() { proto.RegisterFile("neutron/cron/tx.proto", fileDescriptor_c9e0a673aba8d6fd) } var fileDescriptor_c9e0a673aba8d6fd = []byte{ - // 120 bytes of a gzipped FileDescriptorProto + // 329 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x06, 0x11, 0x25, 0x15, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, - 0x3c, 0x50, 0x61, 0x3d, 0x90, 0xb0, 0x11, 0x2b, 0x17, 0xb3, 0x6f, 0x71, 0xba, 0x93, 0xeb, 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, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, - 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x75, 0xea, 0xe6, 0x17, 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0x50, - 0xe3, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x56, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, - 0xf4, 0x79, 0x03, 0xf3, 0x7b, 0x00, 0x00, 0x00, + 0x3c, 0x50, 0x61, 0x3d, 0x90, 0xb0, 0x94, 0x24, 0x8a, 0xa2, 0x82, 0xc4, 0xa2, 0xc4, 0xdc, 0x62, + 0x88, 0x42, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0x30, 0x53, 0x1f, 0xc4, 0x82, 0x8a, 0x8a, 0x27, + 0xe7,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 0x78, 0xa5, 0x61, 0x86, 0x3b, 0xb9, 0x9e, + 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, 0x76, 0x7a, 0x66, 0x49, 0x46, 0x69, + 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x28, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0x02, + 0x1a, 0xeb, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x30, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, + 0xff, 0xa3, 0x00, 0xe5, 0xfc, 0x12, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -49,6 +174,7 @@ const _ = grpc.SupportPackageIsVersion4 // // 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 { + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -59,22 +185,413 @@ 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, "/neutron.cron.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 { + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. 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: "/neutron.cron.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: "neutron.cron.Msg", HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "neutron/cron/tx.proto", + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "neutron/cron/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/feeburner/types/tx.pb.go b/x/feeburner/types/tx.pb.go new file mode 100644 index 000000000..27aa64eee --- /dev/null +++ b/x/feeburner/types/tx.pb.go @@ -0,0 +1,598 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: neutron/feeburner/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "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 +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/feeburner 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_49e6591b4db80f7f, []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: 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_49e6591b4db80f7f, []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 + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.feeburner.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.feeburner.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("neutron/feeburner/tx.proto", fileDescriptor_49e6591b4db80f7f) } + +var fileDescriptor_49e6591b4db80f7f = []byte{ + // 337 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x4b, 0x4d, 0x4d, 0x2a, 0x2d, 0xca, 0x4b, 0x2d, 0xd2, 0x2f, 0xa9, + 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x84, 0xca, 0xe9, 0xc1, 0xe5, 0xa4, 0xe4, 0x30, + 0x95, 0x17, 0x24, 0x16, 0x25, 0xe6, 0x16, 0x43, 0xb4, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, + 0x99, 0xfa, 0x20, 0x16, 0x54, 0x54, 0x3c, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0x58, 0x3f, 0xb7, 0x38, + 0x5d, 0xbf, 0xcc, 0x10, 0x44, 0x41, 0x25, 0x24, 0x21, 0x12, 0xf1, 0x10, 0x1d, 0x10, 0x0e, 0x54, + 0x4a, 0x30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 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, + 0x10, 0x65, 0x90, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x35, 0x4f, + 0x37, 0xbf, 0x28, 0x1d, 0xc6, 0xd6, 0xaf, 0x40, 0x4e, 0x18, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, + 0xe0, 0xc8, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x4a, 0xc2, 0x1e, 0x3a, 0x02, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +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 { + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +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, "/neutron.feeburner.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 { + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +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: "/neutron.feeburner.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: "neutron.feeburner.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "neutron/feeburner/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/feerefunder/types/tx.pb.go b/x/feerefunder/types/tx.pb.go new file mode 100644 index 000000000..6e2df44ae --- /dev/null +++ b/x/feerefunder/types/tx.pb.go @@ -0,0 +1,598 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: neutron/feerefunder/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "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 +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/feerefunder 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_2e613aff856d34ed, []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: 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_2e613aff856d34ed, []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 + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.feerefunder.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.feerefunder.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("neutron/feerefunder/tx.proto", fileDescriptor_2e613aff856d34ed) } + +var fileDescriptor_2e613aff856d34ed = []byte{ + // 340 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x4b, 0x4d, 0x2d, 0x4a, 0x4d, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0xd2, + 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xca, 0xea, 0x21, 0xc9, 0x4a, + 0x29, 0x60, 0xd3, 0x52, 0x90, 0x58, 0x94, 0x98, 0x5b, 0x0c, 0xd1, 0x26, 0x25, 0x92, 0x9e, 0x9f, + 0x9e, 0x0f, 0x66, 0xea, 0x83, 0x58, 0x50, 0x51, 0xf1, 0xe4, 0xfc, 0xe2, 0xdc, 0xfc, 0x62, 0xfd, + 0xdc, 0xe2, 0x74, 0xfd, 0x32, 0x43, 0x10, 0x05, 0x95, 0x90, 0x84, 0x48, 0xc4, 0x43, 0x74, 0x40, + 0x38, 0x50, 0x29, 0xc1, 0xc4, 0xdc, 0xcc, 0xbc, 0x7c, 0x7d, 0x30, 0x09, 0x11, 0x52, 0xda, 0xc9,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0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, + 0xa1, 0x26, 0xea, 0xe6, 0x17, 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0xa8, 0xc9, 0xa4, 0xb2, 0x20, 0xb5, + 0x38, 0x89, 0x0d, 0x1c, 0x2d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xa2, 0x2c, 0x8a, + 0x4a, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +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 { + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +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, "/neutron.feerefunder.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 { + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +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: "/neutron.feerefunder.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: "neutron.feerefunder.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "neutron/feerefunder/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/interchainqueries/keeper/keeper.go b/x/interchainqueries/keeper/keeper.go index 731fcdea1..872eec560 100644 --- a/x/interchainqueries/keeper/keeper.go +++ b/x/interchainqueries/keeper/keeper.go @@ -32,6 +32,9 @@ type ( contractManagerKeeper types.ContractManagerKeeper headerVerifier types.HeaderVerifier transactionVerifier types.TransactionVerifier + // the address capable of executing a MsgUpdateParams message. Typically, this + // should be the x/adminmodule module account. + authority string } ) @@ -44,6 +47,7 @@ func NewKeeper( contractManagerKeeper types.ContractManagerKeeper, headerVerifier types.HeaderVerifier, transactionVerifier types.TransactionVerifier, + authority string, ) *Keeper { return &Keeper{ cdc: cdc, @@ -54,6 +58,7 @@ func NewKeeper( contractManagerKeeper: contractManagerKeeper, headerVerifier: headerVerifier, transactionVerifier: transactionVerifier, + authority: authority, } } @@ -410,6 +415,10 @@ func (k Keeper) calculateTxQueryRemoval(ctx sdk.Context, queryID, limit uint64) return result } +func (k Keeper) GetAuthority() string { + return k.authority +} + // TxQueryToRemove contains data related to a single query listed for removal and needed in the // removal process. type TxQueryToRemove struct { diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 4ce0942a2..414dd83f3 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -9,7 +9,6 @@ import ( "time" "cosmossdk.io/errors" - tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" "github.com/cosmos/cosmos-sdk/telemetry" @@ -311,6 +310,24 @@ func (k msgServer) validateUpdateInterchainQueryParams( return nil } +// UpdateParams updates the module parameters +func (m msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + //if err := req.ValidateBasic(); err != nil { + // return nil, err + //} + authority := m.Keeper.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := m.Keeper.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} + func getEventsQueryUpdated(query *types.RegisteredQuery) sdk.Events { return sdk.Events{ sdk.NewEvent( diff --git a/x/interchainqueries/types/tx.pb.go b/x/interchainqueries/types/tx.pb.go index e3cd4d3bd..4bd4d8f0a 100644 --- a/x/interchainqueries/types/tx.pb.go +++ b/x/interchainqueries/types/tx.pb.go @@ -8,7 +8,11 @@ import ( fmt "fmt" types1 "github.com/cometbft/cometbft/abci/types" crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" + _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" + _ "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" @@ -757,6 +761,105 @@ func (m *MsgUpdateInterchainQueryResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateInterchainQueryResponse proto.InternalMessageInfo +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/tokenfactory 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_d4793837a316491e, []int{12} +} +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: 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_d4793837a316491e, []int{13} +} +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 + func init() { proto.RegisterType((*MsgRegisterInterchainQuery)(nil), "neutron.interchainqueries.MsgRegisterInterchainQuery") proto.RegisterType((*MsgRegisterInterchainQueryResponse)(nil), "neutron.interchainqueries.MsgRegisterInterchainQueryResponse") @@ -770,6 +873,8 @@ func init() { proto.RegisterType((*MsgRemoveInterchainQueryResponse)(nil), "neutron.interchainqueries.MsgRemoveInterchainQueryResponse") proto.RegisterType((*MsgUpdateInterchainQueryRequest)(nil), "neutron.interchainqueries.MsgUpdateInterchainQueryRequest") proto.RegisterType((*MsgUpdateInterchainQueryResponse)(nil), "neutron.interchainqueries.MsgUpdateInterchainQueryResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.interchainqueries.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.interchainqueries.MsgUpdateParamsResponse") } func init() { @@ -777,68 +882,79 @@ func init() { } var fileDescriptor_d4793837a316491e = []byte{ - // 975 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x8f, 0x1c, 0x3b, 0x7f, 0x5e, 0x9c, 0xa4, 0x5d, 0x52, 0xea, 0x38, 0xd4, 0x64, 0xc4, 0x40, - 0x33, 0x4c, 0x91, 0x86, 0x50, 0x0a, 0x43, 0x87, 0x42, 0x0b, 0xd3, 0x21, 0x93, 0xc9, 0x10, 0xb6, - 0x69, 0x0f, 0x5c, 0x34, 0xb2, 0xf4, 0xa2, 0xec, 0x58, 0x59, 0xa9, 0xda, 0x95, 0x6d, 0x1d, 0xb8, - 0x71, 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38, 0x78, 0x59, 0xe6, - 0xd3, 0x47, 0x70, 0x37, 0xc7, 0x4e, 0xa3, 0x73, 0xcd, 0xd1, 0x77, 0x38, 0x0e, 0x8e, 0x26, 0x19, - 0xfd, 0xb2, 0x37, 0x8d, 0x29, 0xbd, 0xa9, 0x28, 0x5b, 0xf7, 0x66, 0xf7, 0xf7, 0x3a, 0xcc, 0x1f, - 0x88, 0x80, 0xfc, 0x62, 0xc0, 0xdd, 0xaa, 0xef, 0xd6, 0xa7, 0x33, 0xca, 0xad, 0x26, 0xfa, 0xf6, - 0x97, 0x37, 0x72, 0x1b, 0x7f, 0x1f, 0x7e, 0x82, 0xdb, 0x93, 0xdf, 0x02, 0x7b, 0x76, 0xcc, 0x09, - 0x87, 0xf6, 0x67, 0xd7, 0x74, 0x18, 0x3f, 0x7f, 0x66, 0xc0, 0x9d, 0xa9, 0x6b, 0x45, 0xbe, 0xb8, - 0xaa, 0xae, 0xea, 0x0d, 0x6f, 0x3f, 0xbe, 0x91, 0x6f, 0x29, 0xa5, 0xa9, 0xd3, 0xbc, 0x2a, 0xa5, - 0x59, 0x9b, 0x7f, 0x55, 0x4a, 0x33, 0xd7, 0xe7, 0x19, 0xfd, 0xe3, 0xbc, 0x63, 0xbc, 0x39, 0xef, - 0x18, 0x7f, 0x9d, 0x77, 0x8c, 0xb3, 0x8b, 0xce, 0xdc, 0x9b, 0x8b, 0xce, 0xdc, 0x9f, 0x17, 0x9d, - 0xb9, 0x1f, 0x3f, 0x0f, 0x98, 0x3c, 0x49, 0xbb, 0x96, 0x17, 0x9d, 0xda, 0xc5, 0x03, 0x1f, 0x45, - 0x49, 0x30, 0xfa, 0x6d, 0x0f, 0xa7, 0xfd, 0xc7, 0xcb, 0xff, 0x8f, 0x75, 0x17, 0x14, 0xed, 0x7e, - 0xf2, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xab, 0xbc, 0xc1, 0x0d, 0x0a, 0x00, 0x00, + // 1151 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0x3a, 0x76, 0x1a, 0xbf, 0xb8, 0x49, 0x3b, 0xa4, 0xc4, 0x71, 0xa9, 0x9b, 0x2e, 0xa2, + 0xad, 0xa2, 0x76, 0x57, 0x35, 0xa5, 0xa0, 0x56, 0x14, 0x12, 0xaa, 0x8a, 0x28, 0x8a, 0x08, 0x9b, + 0xb4, 0x07, 0x2e, 0xab, 0xf5, 0xee, 0x64, 0x3d, 0xf2, 0x7a, 0xc6, 0xdd, 0x99, 0xb5, 0xbd, 0x07, + 0x2e, 0x88, 0x13, 0x17, 0xf2, 0x29, 0x10, 0x12, 0x1c, 0x72, 0xe0, 0x2b, 0x20, 0xf5, 0x58, 0x71, + 0xe2, 0x84, 0x20, 0x39, 0xe4, 0xc8, 0x89, 0x3b, 0xda, 0x99, 0x5d, 0xc7, 0xad, 0xff, 0xa4, 0xc9, + 0x25, 0xd9, 0xf7, 0xde, 0xef, 0xbd, 0x79, 0xef, 0xcd, 0xbc, 0xdf, 0x33, 0xe8, 0x14, 0x47, 0x22, + 0x64, 0xd4, 0x24, 0x54, 0xe0, 0xd0, 0x6d, 0x38, 0x84, 0xbe, 0x88, 0x70, 0x48, 0x30, 0x37, 0x45, + 0xcf, 0x68, 0x87, 0x4c, 0x30, 0xb4, 0x9c, 0x62, 0x8c, 0x21, 0x4c, 0xe5, 0xe6, 0x78, 0xf7, 0xb6, + 0x13, 0x3a, 0x2d, 0xae, 0x42, 0x54, 0xae, 0x09, 0x4c, 0x3d, 0x1c, 0xb6, 0x08, 0x15, 0xa6, 0x1b, + 0xc6, 0x6d, 0xc1, 0xcc, 0x76, 0xc8, 0xd8, 0x5e, 0x6a, 0xbe, 0x3a, 0x60, 0x76, 0xea, 0x2e, 0x31, + 0x45, 0xdc, 0xc6, 0x99, 0xef, 0xb2, 0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a, 0x76, 0x3b, 0x6f, + 0x95, 0x94, 0x72, 0x5b, 0xea, 0xd0, 0xbb, 0x30, 0xc3, 0xe5, 0x75, 0x95, 0x67, 0x64, 0x88, 0x54, + 0xd2, 0xef, 0x83, 0x3e, 0xbe, 0x0b, 0x16, 0xe6, 0x6d, 0x46, 0x39, 0x46, 0xf3, 0x90, 0x23, 0x9e, + 0xec, 0x42, 0xde, 0xca, 0x11, 0x4f, 0xff, 0x49, 0x83, 0xc5, 0x2d, 0xee, 0xef, 0x44, 0xf5, 0x16, + 0x11, 0x19, 0x34, 0x0a, 0x04, 0x5a, 0x86, 0x59, 0xd5, 0xb6, 0x3e, 0xfc, 0x82, 0x94, 0x37, 0x06, + 0x33, 0xc8, 0x0d, 0x66, 0x80, 0xae, 0x42, 0xd1, 0x0d, 0x08, 0xa6, 0x22, 0xf1, 0x51, 0xad, 0x98, + 0x55, 0x8a, 0x0d, 0x0f, 0x3d, 0x86, 0x99, 0x50, 0x46, 0x96, 0x95, 0xcf, 0xd5, 0x6e, 0x4e, 0xe8, + 0xf4, 0x40, 0x1e, 0x56, 0xea, 0xa5, 0xff, 0xab, 0xc1, 0xdc, 0x60, 0x7e, 0x4f, 0x01, 0x9a, 0x1d, + 0x5b, 0x19, 0x79, 0x59, 0x93, 0xb7, 0x77, 0x6b, 0x42, 0xcc, 0x1d, 0xc1, 0x42, 0xc7, 0xc7, 0xcf, + 0x9d, 0x20, 0xc2, 0x56, 0xb1, 0xd9, 0x51, 0x61, 0x38, 0x7a, 0x00, 0x85, 0x7a, 0xc0, 0xdc, 0xa6, + 0xac, 0x65, 0xf2, 0x03, 0x58, 0x4f, 0x70, 0x96, 0x82, 0x27, 0x4d, 0x68, 0x60, 0xe2, 0x37, 0x84, + 0xac, 0x34, 0x6f, 0xa5, 0x12, 0xaa, 0xc0, 0x6c, 0x88, 0x3b, 0x84, 0x13, 0x46, 0x65, 0xa5, 0x79, + 0xab, 0x2f, 0xa3, 0x3b, 0x80, 0x9c, 0x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0xdb, 0x3f, 0xaa, 0x4e, 0xbd, 0x3a, 0xaa, 0x4e, 0xfd, 0x79, + 0x54, 0x9d, 0xfa, 0xe6, 0x13, 0x9f, 0x88, 0x46, 0x54, 0x37, 0x5c, 0xd6, 0x32, 0xd3, 0xb8, 0x77, + 0x59, 0xe8, 0x67, 0xdf, 0x66, 0x6f, 0xd4, 0x6f, 0xf7, 0xe4, 0xf7, 0x73, 0x7d, 0x46, 0x6e, 0xb2, + 0x0f, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x69, 0x75, 0x22, 0x83, 0xe5, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -857,6 +973,7 @@ type MsgClient interface { SubmitQueryResult(ctx context.Context, in *MsgSubmitQueryResult, opts ...grpc.CallOption) (*MsgSubmitQueryResultResponse, error) RemoveInterchainQuery(ctx context.Context, in *MsgRemoveInterchainQueryRequest, opts ...grpc.CallOption) (*MsgRemoveInterchainQueryResponse, error) UpdateInterchainQuery(ctx context.Context, in *MsgUpdateInterchainQueryRequest, opts ...grpc.CallOption) (*MsgUpdateInterchainQueryResponse, error) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -903,12 +1020,22 @@ func (c *msgClient) UpdateInterchainQuery(ctx context.Context, in *MsgUpdateInte return out, nil } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/neutron.interchainqueries.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 { RegisterInterchainQuery(context.Context, *MsgRegisterInterchainQuery) (*MsgRegisterInterchainQueryResponse, error) SubmitQueryResult(context.Context, *MsgSubmitQueryResult) (*MsgSubmitQueryResultResponse, error) RemoveInterchainQuery(context.Context, *MsgRemoveInterchainQueryRequest) (*MsgRemoveInterchainQueryResponse, error) UpdateInterchainQuery(context.Context, *MsgUpdateInterchainQueryRequest) (*MsgUpdateInterchainQueryResponse, error) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -927,6 +1054,9 @@ func (*UnimplementedMsgServer) RemoveInterchainQuery(ctx context.Context, req *M func (*UnimplementedMsgServer) UpdateInterchainQuery(ctx context.Context, req *MsgUpdateInterchainQueryRequest) (*MsgUpdateInterchainQueryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateInterchainQuery not implemented") } +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) @@ -1004,6 +1134,24 @@ func _Msg_UpdateInterchainQuery_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +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: "/neutron.interchainqueries.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: "neutron.interchainqueries.Msg", HandlerType: (*MsgServer)(nil), @@ -1024,6 +1172,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateInterchainQuery", Handler: _Msg_UpdateInterchainQuery_Handler, }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "neutron/interchainqueries/tx.proto", @@ -1596,6 +1748,69 @@ func (m *MsgUpdateInterchainQueryResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } +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 @@ -1848,6 +2063,30 @@ func (m *MsgUpdateInterchainQueryResponse) Size() (n int) { return n } +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 } @@ -3474,6 +3713,171 @@ func (m *MsgUpdateInterchainQueryResponse) Unmarshal(dAtA []byte) error { } return nil } +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 diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index a1032c24c..82b6f090a 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -27,6 +27,7 @@ type ( feeKeeper types.FeeRefunderKeeper icaControllerKeeper types.ICAControllerKeeper contractManagerKeeper types.ContractManagerKeeper + authority string } ) @@ -38,6 +39,7 @@ func NewKeeper( icaControllerKeeper types.ICAControllerKeeper, contractManagerKeeper types.ContractManagerKeeper, feeKeeper types.FeeRefunderKeeper, + authority string, ) *Keeper { return &Keeper{ Codec: cdc, @@ -47,9 +49,14 @@ func NewKeeper( icaControllerKeeper: icaControllerKeeper, contractManagerKeeper: contractManagerKeeper, feeKeeper: feeKeeper, + authority: authority, } } func (k *Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } + +func (k Keeper) GetAuthority() string { + return k.authority +} diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index 62d3cfe5a..acd5b82c5 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -6,7 +6,6 @@ import ( "time" "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -172,3 +171,21 @@ func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []*codectypes.Any) (bz []byte return bz, nil } + +// UpdateParams updates the module parameters +func (k Keeper) UpdateParams(goCtx context.Context, req *ictxtypes.MsgUpdateParams) (*ictxtypes.MsgUpdateParamsResponse, error) { + //if err := req.ValidateBasic(); err != nil { + // return nil, err + //} + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &ictxtypes.MsgUpdateParamsResponse{}, nil +} diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 41bf28b30..22d769414 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -8,6 +8,8 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" + _ "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" @@ -214,53 +216,164 @@ func (m *MsgSubmitTxResponse) GetChannel() string { return "" } +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/tokenfactory 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_50f087790e59c806, []int{4} +} +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: 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_50f087790e59c806, []int{5} +} +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 + func init() { proto.RegisterType((*MsgRegisterInterchainAccount)(nil), "neutron.interchaintxs.v1.MsgRegisterInterchainAccount") proto.RegisterType((*MsgRegisterInterchainAccountResponse)(nil), "neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse") proto.RegisterType((*MsgSubmitTx)(nil), "neutron.interchaintxs.v1.MsgSubmitTx") proto.RegisterType((*MsgSubmitTxResponse)(nil), "neutron.interchaintxs.v1.MsgSubmitTxResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.interchaintxs.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.interchaintxs.v1.MsgUpdateParamsResponse") } func init() { proto.RegisterFile("neutron/interchaintxs/v1/tx.proto", fileDescriptor_50f087790e59c806) } var fileDescriptor_50f087790e59c806 = []byte{ - // 576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbd, 0x6f, 0xda, 0x4e, - 0x18, 0xb6, 0x03, 0xbf, 0x24, 0xbf, 0x23, 0x5d, 0x2e, 0x89, 0x64, 0x10, 0xb5, 0x89, 0xfb, 0x21, - 0x96, 0x9c, 0x1b, 0x5a, 0x75, 0x88, 0xd4, 0x4a, 0x30, 0x54, 0x62, 0xa0, 0xaa, 0xdc, 0x4c, 0x5d, - 0x90, 0xb1, 0x5f, 0x0e, 0x4b, 0xf8, 0x8e, 0xfa, 0xce, 0x11, 0x8c, 0xdd, 0x3a, 0x76, 0xe9, 0x58, - 0x29, 0x7f, 0x4e, 0xc6, 0x8c, 0x9d, 0x50, 0x04, 0x4b, 0xe7, 0xfc, 0x05, 0x95, 0xbf, 0x80, 0xa0, - 0x80, 0xa2, 0x6e, 0xef, 0xc7, 0x73, 0xcf, 0x3d, 0xef, 0x73, 0xaf, 0x8d, 0x4e, 0x18, 0x44, 0x32, - 0xe4, 0xcc, 0xf2, 0x99, 0x84, 0xd0, 0x1d, 0x38, 0x3e, 0x93, 0x63, 0x61, 0x5d, 0x9e, 0x59, 0x72, - 0x4c, 0x46, 0x21, 0x97, 0x1c, 0x6b, 0x19, 0x84, 0xdc, 0x83, 0x90, 0xcb, 0xb3, 0x4a, 0xd9, 0xe5, - 0x22, 0xe0, 0xa2, 0x9b, 0xe0, 0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0xfd, - 0xc5, 0x36, 0xbc, 0xd8, 0xca, 0x96, 0xc3, 0x2a, 0xa7, 0x8f, 0x82, 0x2d, 0xef, 0x68, 0x7d, 0xbc, - 0x9e, 0xe9, 0xea, 0xcd, 0x4c, 0x57, 0x6f, 0x67, 0xba, 0xfa, 0x63, 0xae, 0x2b, 0x37, 0x73, 0x5d, - 0xf9, 0x3d, 0xd7, 0x95, 0x2f, 0x6f, 0xa8, 0x2f, 0x07, 0x51, 0x8f, 0xb8, 0x3c, 0xb0, 0x32, 0xd2, - 0x53, 0x1e, 0xd2, 0x3c, 0xb6, 0xc6, 0x6b, 0x3f, 0x24, 0x39, 0x19, 0x81, 0xe8, 0xed, 0x26, 0x3b, - 0xf2, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x30, 0x09, 0xc8, 0x02, 0xb6, 0x04, 0x00, 0x00, + // 730 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbd, 0x4f, 0xdb, 0x4e, + 0x18, 0xb6, 0x49, 0x7e, 0x7c, 0x5c, 0xf8, 0xa9, 0xea, 0x11, 0x84, 0x13, 0x41, 0x12, 0xdc, 0x52, + 0xa5, 0x48, 0xd8, 0x90, 0x56, 0x0c, 0x48, 0xad, 0x4a, 0x86, 0x4a, 0x19, 0x52, 0x21, 0x43, 0x97, + 0x2e, 0xd1, 0xc5, 0xbe, 0x5c, 0x2c, 0xc5, 0x77, 0xae, 0xef, 0x8c, 0x92, 0xb5, 0x53, 0xd5, 0xa9, + 0x4b, 0xc7, 0x4a, 0x8c, 0x1d, 0x19, 0xba, 0x76, 0x67, 0x44, 0x9d, 0x3a, 0x21, 0x04, 0x03, 0xdd, + 0x2a, 0xf1, 0x17, 0x54, 0xfe, 0x22, 0x1f, 0x22, 0x51, 0xd4, 0x25, 0xba, 0x7b, 0xdf, 0xe7, 0x9e, + 0xf7, 0x79, 0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1a, 0x1d, 0xb0, 0x38, 0xf4, 0xd7, 0x3e, 0x9d, 0x48, 0x30, 0x08, + 0xcd, 0xef, 0x4c, 0x0d, 0x4d, 0xea, 0x55, 0xdf, 0x9c, 0x5d, 0x15, 0xe4, 0xf3, 0xab, 0x82, 0x7c, + 0x79, 0x55, 0x90, 0x3f, 0x5f, 0x17, 0xa4, 0xf3, 0xeb, 0x82, 0xf4, 0xeb, 0xba, 0x20, 0xbd, 0x7b, + 0x4e, 0x6c, 0xd1, 0xf6, 0x9b, 0x9a, 0xc9, 0x1c, 0x3d, 0xa6, 0xdd, 0x62, 0x1e, 0x49, 0xce, 0x7a, + 0x77, 0xe4, 0xa3, 0x2e, 0x7a, 0x2e, 0xe6, 0xcd, 0xd9, 0x70, 0xd9, 0x9e, 0xfd, 0x0d, 0x00, 0x00, + 0xff, 0xff, 0x3d, 0xc8, 0x4f, 0x3a, 0x52, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -277,6 +390,7 @@ const _ = grpc.SupportPackageIsVersion4 type MsgClient interface { RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -305,10 +419,20 @@ func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc. return out, nil } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.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 { RegisterInterchainAccount(context.Context, *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error) SubmitTx(context.Context, *MsgSubmitTx) (*MsgSubmitTxResponse, error) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -321,6 +445,9 @@ func (*UnimplementedMsgServer) RegisterInterchainAccount(ctx context.Context, re func (*UnimplementedMsgServer) SubmitTx(ctx context.Context, req *MsgSubmitTx) (*MsgSubmitTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitTx not implemented") } +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) @@ -362,6 +489,24 @@ func _Msg_SubmitTx_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +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: "/neutron.interchaintxs.v1.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: "neutron.interchaintxs.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -374,6 +519,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "SubmitTx", Handler: _Msg_SubmitTx_Handler, }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "neutron/interchaintxs/v1/tx.proto", @@ -561,6 +710,69 @@ func (m *MsgSubmitTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +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 @@ -654,6 +866,30 @@ func (m *MsgSubmitTxResponse) Size() (n int) { return n } +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 } @@ -1221,6 +1457,171 @@ func (m *MsgSubmitTxResponse) Unmarshal(dAtA []byte) error { } return nil } +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 From 49601cbebc670bcbcc71d77152709974cac062ff Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 17:00:25 +0400 Subject: [PATCH 074/307] regen tokenfactory --- x/tokenfactory/types/authorityMetadata.pb.go | 20 +- x/tokenfactory/types/codec.go | 6 +- x/tokenfactory/types/denoms.go | 16 + x/tokenfactory/types/genesis.pb.go | 17 +- x/tokenfactory/types/keys.go | 6 +- x/tokenfactory/types/msgs.go | 5 +- x/tokenfactory/types/params.go | 4 +- x/tokenfactory/types/params.pb.go | 103 ++-- x/tokenfactory/types/query.pb.go | 547 ++++--------------- x/tokenfactory/types/query.pb.gw.go | 141 ++--- x/tokenfactory/types/tx.pb.go | 518 ++++++++++++++++-- 11 files changed, 686 insertions(+), 697 deletions(-) diff --git a/x/tokenfactory/types/authorityMetadata.pb.go b/x/tokenfactory/types/authorityMetadata.pb.go index 546b24ead..5f0c39198 100644 --- a/x/tokenfactory/types/authorityMetadata.pb.go +++ b/x/tokenfactory/types/authorityMetadata.pb.go @@ -6,8 +6,8 @@ package types import ( fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -29,7 +29,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // permission, but is planned to be extended to the future. type DenomAuthorityMetadata struct { // Can be empty for no admin, or a valid osmosis address - Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"` + Admin string `protobuf:"bytes,1,opt,name=Admin,proto3" json:"Admin,omitempty" yaml:"admin"` } func (m *DenomAuthorityMetadata) Reset() { *m = DenomAuthorityMetadata{} } @@ -89,14 +89,14 @@ var fileDescriptor_99435de88ae175f7 = []byte{ 0x17, 0x92, 0x81, 0xea, 0xd2, 0x43, 0xd6, 0xa5, 0x07, 0xd5, 0x25, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa8, 0x0f, 0x62, 0x41, 0xf4, 0x48, 0xc9, 0x25, 0x83, 0x35, 0xe9, 0x27, 0x25, 0x16, 0xa7, 0xc2, 0x2d, 0x48, 0xce, 0xcf, 0xcc, 0x83, 0xc8, 0x2b, 0xb9, 0x71, 0x89, 0xb9, 0xa4, 0xe6, - 0xe5, 0xe7, 0x3a, 0xa2, 0xdb, 0x29, 0xa4, 0xc6, 0xc5, 0x9a, 0x98, 0x92, 0x9b, 0x99, 0x27, 0xc1, + 0xe5, 0xe7, 0x3a, 0xa2, 0xdb, 0x29, 0xa4, 0xc6, 0xc5, 0xea, 0x98, 0x92, 0x9b, 0x99, 0x27, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0xe9, 0x24, 0xf0, 0xe9, 0x9e, 0x3c, 0x4f, 0x65, 0x62, 0x6e, 0x8e, 0x95, - 0x12, 0x58, 0x58, 0x29, 0x08, 0x22, 0x6d, 0xc5, 0xf2, 0x62, 0x81, 0x3c, 0xa3, 0x53, 0xd0, 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, 0x59, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, - 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x3d, 0xa0, 0x9b, 0x93, 0x98, 0x54, 0x0c, 0xe3, 0xe8, 0x97, - 0x19, 0x9a, 0xeb, 0x57, 0xa0, 0x86, 0x44, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x89, - 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xa0, 0x40, 0xce, 0x2e, 0x01, 0x00, 0x00, + 0x52, 0x22, 0x48, 0x58, 0x29, 0x08, 0x22, 0x6d, 0xc5, 0xf2, 0x62, 0x81, 0x3c, 0xa3, 0x93, 0xef, + 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, 0x19, 0xa7, 0x67, 0x96, 0x64, 0x94, + 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xe7, 0xa5, 0x96, 0x96, 0x14, 0xe5, 0xe7, 0xe9, 0xe6, 0x17, + 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0xa8, 0x81, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, + 0x9d, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x08, 0x3a, 0x4a, 0xc1, 0x29, 0x01, 0x00, 0x00, } func (this *DenomAuthorityMetadata) Equal(that interface{}) bool { diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 4945c0f1c..78f7dafa4 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -14,9 +14,9 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgCreateDenom{}, "osmosis/tokenfactory/create-denom", nil) cdc.RegisterConcrete(&MsgMint{}, "osmosis/tokenfactory/mint", nil) cdc.RegisterConcrete(&MsgBurn{}, "osmosis/tokenfactory/burn", nil) - cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) + //cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) cdc.RegisterConcrete(&MsgChangeAdmin{}, "osmosis/tokenfactory/change-admin", nil) - cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) + //cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -27,7 +27,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgBurn{}, // &MsgForceTransfer{}, &MsgChangeAdmin{}, - &MsgSetBeforeSendHook{}, + //&MsgSetBeforeSendHook{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/tokenfactory/types/denoms.go b/x/tokenfactory/types/denoms.go index 658399856..4a78e42cb 100644 --- a/x/tokenfactory/types/denoms.go +++ b/x/tokenfactory/types/denoms.go @@ -1,10 +1,12 @@ package types import ( + "fmt" "strings" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" ) const ( @@ -66,3 +68,17 @@ func DeconstructDenom(denom string) (creator string, subdenom string, err error) return creatorAddr.String(), subdenom, nil } + +// NewTokenFactoryDenomMintCoinsRestriction creates and returns a BankMintingRestrictionFn that only allows minting of +// valid tokenfactory denoms +func NewTokenFactoryDenomMintCoinsRestriction() bankkeeper.MintingRestrictionFn { + return func(ctx sdk.Context, coinsToMint sdk.Coins) error { + for _, coin := range coinsToMint { + _, _, err := DeconstructDenom(coin.Denom) + if err != nil { + return fmt.Errorf("does not have permission to mint %s", coin.Denom) + } + } + return nil + } +} diff --git a/x/tokenfactory/types/genesis.pb.go b/x/tokenfactory/types/genesis.pb.go index 2ce6a0384..e3471a9ef 100644 --- a/x/tokenfactory/types/genesis.pb.go +++ b/x/tokenfactory/types/genesis.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -77,9 +77,6 @@ func (m *GenesisState) GetFactoryDenoms() []GenesisDenom { return nil } -// GenesisDenom defines a tokenfactory denom that is defined within genesis -// state. The structure contains DenomAuthorityMetadata which defines the -// denom's admin. type GenesisDenom struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` AuthorityMetadata DenomAuthorityMetadata `protobuf:"bytes,2,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"` @@ -160,12 +157,12 @@ var fileDescriptor_5749c3f71850298b = []byte{ 0xe0, 0xd3, 0x3d, 0x79, 0x1e, 0x88, 0x49, 0x60, 0x61, 0xa5, 0x20, 0x88, 0xb4, 0x50, 0x1b, 0x23, 0x97, 0x10, 0x3c, 0x18, 0xe3, 0x73, 0xa1, 0xe1, 0x28, 0xc1, 0x04, 0xf6, 0xbb, 0x09, 0x7e, 0xf7, 0x82, 0x6d, 0x72, 0x44, 0x8f, 0x03, 0x27, 0x45, 0xa8, 0xcb, 0x25, 0x21, 0xf6, 0x61, 0x9a, 0xae, - 0x14, 0x24, 0x88, 0x11, 0x73, 0x56, 0x2c, 0x2f, 0x16, 0xc8, 0x33, 0x3a, 0x05, 0x9d, 0x78, 0x24, + 0x14, 0x24, 0x88, 0x11, 0x73, 0x56, 0x2c, 0x2f, 0x16, 0xc8, 0x33, 0x3a, 0xf9, 0x9e, 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, 0x45, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, - 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x55, 0xba, 0x39, 0x89, 0x49, 0xc5, 0x30, 0x8e, 0x7e, 0x99, 0xa1, - 0xb9, 0x7e, 0x05, 0x6a, 0x8c, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x63, 0xda, 0x18, - 0x10, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x86, 0xb1, 0xa7, 0xac, 0x02, 0x00, 0x00, + 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x71, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, + 0x72, 0x7e, 0xae, 0x7e, 0x5e, 0x6a, 0x69, 0x49, 0x51, 0x7e, 0x9e, 0x6e, 0x7e, 0x51, 0x3a, 0x8c, + 0xad, 0x5f, 0x81, 0x1a, 0xd9, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0x48, 0x36, 0x06, + 0x04, 0x00, 0x00, 0xff, 0xff, 0x88, 0xdf, 0xa5, 0xe7, 0xa7, 0x02, 0x00, 0x00, } func (this *GenesisDenom) Equal(that interface{}) bool { diff --git a/x/tokenfactory/types/keys.go b/x/tokenfactory/types/keys.go index dd2ed9fe4..8bfeb012c 100644 --- a/x/tokenfactory/types/keys.go +++ b/x/tokenfactory/types/keys.go @@ -22,7 +22,10 @@ const ( ) // KeySeparator is used to combine parts of the keys in the store -const KeySeparator = "|" +const ( + KeySeparator = "|" + prefixParamsKey = iota + 1 +) var ( DenomAuthorityMetadataKey = "authoritymetadata" @@ -30,6 +33,7 @@ var ( CreatorPrefixKey = "creator" AdminPrefixKey = "admin" BeforeSendHookAddressPrefixKey = "beforesendhook" + ParamsKey = []byte{prefixParamsKey} ) // GetDenomPrefixStore returns the store prefix where all the data associated with a specific denom diff --git a/x/tokenfactory/types/msgs.go b/x/tokenfactory/types/msgs.go index 9ee67c9a5..356d6f801 100644 --- a/x/tokenfactory/types/msgs.go +++ b/x/tokenfactory/types/msgs.go @@ -108,9 +108,8 @@ func NewMsgBurn(sender string, amount sdk.Coin) *MsgBurn { // NewMsgBurn creates a message to burn tokens func NewMsgBurnFrom(sender string, amount sdk.Coin, burnFromAddress string) *MsgBurn { return &MsgBurn{ - Sender: sender, - Amount: amount, - BurnFromAddress: burnFromAddress, + Sender: sender, + Amount: amount, } } diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 09d9cac75..8ec0c3c75 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -32,8 +32,8 @@ func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Param func DefaultParams() Params { return Params{ // For choice, see: https://github.com/osmosis-labs/osmosis/pull/4983 - DenomCreationFee: sdk.NewCoins(), // used to be 10 OSMO at launch. - DenomCreationGasConsume: uint64(DefaultCreationGasFee), + DenomCreationFee: sdk.NewCoins(), // used to be 10 OSMO at launch. + FeeCollectorAddress: "", } } diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 05037d806..3ca6e158d 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -8,8 +8,8 @@ import ( _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" @@ -26,17 +26,12 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// Params defines the parameters for the tokenfactory module. +// Params holds parameters for the tokenfactory module type Params struct { - // DenomCreationFee defines the fee to be charged on the creation of a new - // denom. The fee is drawn from the MsgCreateDenom's sender account, and - // transferred to the community pool. + // DenomCreationFee is the fee required to create a new denom using the tokenfactory module DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=denom_creation_fee,json=denomCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"denom_creation_fee" yaml:"denom_creation_fee"` - // DenomCreationGasConsume defines the gas cost for creating a new denom. - // This is intended as a spam deterrence mechanism. - // - // See: https://github.com/CosmWasm/token-factory/issues/11 - DenomCreationGasConsume uint64 `protobuf:"varint,2,opt,name=denom_creation_gas_consume,json=denomCreationGasConsume,proto3" json:"denom_creation_gas_consume,omitempty" yaml:"denom_creation_gas_consume"` + // FeeCollectorAddress is the address where fees collected from denom creation are sent to + FeeCollectorAddress string `protobuf:"bytes,2,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -79,11 +74,11 @@ func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins return nil } -func (m *Params) GetDenomCreationGasConsume() uint64 { +func (m *Params) GetFeeCollectorAddress() string { if m != nil { - return m.DenomCreationGasConsume + return m.FeeCollectorAddress } - return 0 + return "" } func init() { @@ -95,30 +90,28 @@ func init() { } var fileDescriptor_cc8299d306f3ff47 = []byte{ - // 355 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4e, 0xea, 0x40, - 0x14, 0x86, 0x3b, 0xdc, 0x1b, 0x16, 0xbd, 0x9b, 0x9b, 0xc6, 0x44, 0x20, 0x66, 0x8a, 0x5d, 0xc1, - 0x82, 0x4e, 0x50, 0x13, 0x8d, 0x4b, 0x48, 0x74, 0x45, 0x62, 0x58, 0xba, 0x69, 0x4e, 0xcb, 0x50, - 0x1a, 0x68, 0x0f, 0xe9, 0x0c, 0xc4, 0x3e, 0x82, 0x3b, 0x57, 0x3e, 0x84, 0x4f, 0xc2, 0x92, 0xa5, - 0xab, 0x6a, 0xe0, 0x0d, 0x78, 0x02, 0xc3, 0x74, 0x30, 0xa0, 0xc6, 0xd5, 0xcc, 0xc9, 0xf9, 0xff, - 0x6f, 0xfe, 0x33, 0xc7, 0x6c, 0xa2, 0x88, 0x51, 0x44, 0x82, 0x49, 0x1c, 0xf3, 0x64, 0x08, 0x81, - 0xc4, 0x34, 0x63, 0xf3, 0xb6, 0xcf, 0x25, 0xb4, 0xd9, 0x14, 0x52, 0x88, 0x85, 0x3b, 0x4d, 0x51, - 0xa2, 0x75, 0xa2, 0xa5, 0xee, 0xbe, 0xd4, 0xd5, 0xd2, 0xda, 0x51, 0x88, 0x21, 0x2a, 0x21, 0xdb, - 0xde, 0x0a, 0x4f, 0xed, 0xe2, 0x57, 0x3c, 0xcc, 0xe4, 0x08, 0xd3, 0x48, 0x66, 0x3d, 0x2e, 0x61, - 0x00, 0x12, 0xb4, 0xab, 0x1a, 0x28, 0x9b, 0x57, 0xe0, 0x8a, 0x42, 0xb7, 0x68, 0x51, 0x31, 0x1f, - 0x04, 0xff, 0xe4, 0x04, 0x18, 0x25, 0x45, 0xdf, 0x79, 0x2c, 0x99, 0xe5, 0x3b, 0x95, 0xda, 0x7a, - 0x26, 0xa6, 0x35, 0xe0, 0x09, 0xc6, 0x5e, 0x90, 0x72, 0x90, 0x11, 0x26, 0xde, 0x90, 0xf3, 0x0a, - 0xa9, 0xff, 0x69, 0xfc, 0x3b, 0xab, 0xba, 0x1a, 0xbb, 0x05, 0xed, 0x86, 0x70, 0xbb, 0x18, 0x25, - 0x9d, 0xde, 0x22, 0xb7, 0x8d, 0x4d, 0x6e, 0x57, 0x33, 0x88, 0x27, 0xd7, 0xce, 0x77, 0x84, 0xf3, - 0xf2, 0x66, 0x37, 0xc2, 0x48, 0x8e, 0x66, 0xbe, 0x1b, 0x60, 0xac, 0x03, 0xea, 0xa3, 0x25, 0x06, - 0x63, 0x26, 0xb3, 0x29, 0x17, 0x8a, 0x26, 0xfa, 0xff, 0x15, 0xa0, 0xab, 0xfd, 0x37, 0x9c, 0x5b, - 0x43, 0xb3, 0xf6, 0x05, 0x1a, 0x82, 0xf0, 0x02, 0x4c, 0xc4, 0x2c, 0xe6, 0x95, 0x52, 0x9d, 0x34, - 0xfe, 0x76, 0x9a, 0x8b, 0xdc, 0x26, 0x9b, 0xdc, 0x3e, 0xfd, 0x31, 0xc4, 0x9e, 0xde, 0xe9, 0x1f, - 0x1f, 0x3c, 0x70, 0x0b, 0xa2, 0x5b, 0x74, 0x3a, 0xfd, 0xc5, 0x8a, 0x92, 0xe5, 0x8a, 0x92, 0xf7, - 0x15, 0x25, 0x4f, 0x6b, 0x6a, 0x2c, 0xd7, 0xd4, 0x78, 0x5d, 0x53, 0xe3, 0xfe, 0x6a, 0x2f, 0xbd, - 0xde, 0x50, 0x6b, 0x02, 0xbe, 0xd8, 0x15, 0x6c, 0xde, 0xbe, 0x64, 0x0f, 0x87, 0x4b, 0x53, 0x33, - 0xf9, 0x65, 0xf5, 0xcd, 0xe7, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x24, 0x1f, 0x6c, 0xe0, 0x38, - 0x02, 0x00, 0x00, + // 322 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xb1, 0x4e, 0x02, 0x41, + 0x10, 0x86, 0x6f, 0x35, 0x21, 0xf1, 0x6c, 0xcc, 0xa9, 0x09, 0x10, 0xb3, 0x10, 0x2a, 0x2c, 0xb8, + 0x0d, 0xd0, 0xd9, 0x09, 0x89, 0x1d, 0x89, 0xa1, 0xb4, 0xb9, 0xec, 0xdd, 0xcd, 0x9d, 0x17, 0xb8, + 0x1d, 0xb2, 0xbb, 0x18, 0x79, 0x0b, 0x2b, 0x1f, 0xc2, 0x27, 0xa1, 0xa4, 0x31, 0xb1, 0x42, 0x03, + 0x6f, 0xe0, 0x13, 0x18, 0x76, 0x17, 0x83, 0xb1, 0xda, 0x99, 0xfc, 0xff, 0x7c, 0xf3, 0x67, 0xd6, + 0xbf, 0x46, 0x55, 0xa2, 0x2a, 0x14, 0xd3, 0x38, 0x01, 0x91, 0xf1, 0x44, 0xa3, 0x5c, 0xb0, 0xa7, + 0x6e, 0x0c, 0x9a, 0x77, 0xd9, 0x8c, 0x4b, 0x5e, 0xaa, 0x70, 0x26, 0x51, 0x63, 0x70, 0xe5, 0x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, 0x50, 0xe6, 0xfb, 0x9a, 0x3d, 0xff, 0xfd, 0x24, 0x13, 0x2d, + 0xae, 0x98, 0x6b, 0xf5, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x58, 0x8c, 0xda, 0x7f, 0xc9, 0x01, + 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -141,10 +134,12 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.DenomCreationGasConsume != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.DenomCreationGasConsume)) + if len(m.FeeCollectorAddress) > 0 { + i -= len(m.FeeCollectorAddress) + copy(dAtA[i:], m.FeeCollectorAddress) + i = encodeVarintParams(dAtA, i, uint64(len(m.FeeCollectorAddress))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if len(m.DenomCreationFee) > 0 { for iNdEx := len(m.DenomCreationFee) - 1; iNdEx >= 0; iNdEx-- { @@ -186,8 +181,9 @@ func (m *Params) Size() (n int) { n += 1 + l + sovParams(uint64(l)) } } - if m.DenomCreationGasConsume != 0 { - n += 1 + sovParams(uint64(m.DenomCreationGasConsume)) + l = len(m.FeeCollectorAddress) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) } return n } @@ -262,10 +258,10 @@ func (m *Params) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DenomCreationGasConsume", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeCollectorAddress", wireType) } - m.DenomCreationGasConsume = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowParams @@ -275,11 +271,24 @@ func (m *Params) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DenomCreationGasConsume |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeCollectorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index fe5a3f035..bc94c2473 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -6,10 +6,9 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + 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" @@ -113,10 +112,9 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } -// QueryDenomAuthorityMetadataRequest defines the request structure for the -// DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataRequest struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` + Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` } func (m *QueryDenomAuthorityMetadataRequest) Reset() { *m = QueryDenomAuthorityMetadataRequest{} } @@ -152,15 +150,20 @@ func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDenomAuthorityMetadataRequest proto.InternalMessageInfo -func (m *QueryDenomAuthorityMetadataRequest) GetDenom() string { +func (m *QueryDenomAuthorityMetadataRequest) GetCreator() string { if m != nil { - return m.Denom + return m.Creator + } + return "" +} + +func (m *QueryDenomAuthorityMetadataRequest) GetSubdenom() string { + if m != nil { + return m.Subdenom } return "" } -// QueryDenomAuthorityMetadataResponse defines the response structure for the -// DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataResponse struct { AuthorityMetadata DenomAuthorityMetadata `protobuf:"bytes,1,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"` } @@ -205,8 +208,6 @@ func (m *QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata() DenomAuthor return DenomAuthorityMetadata{} } -// QueryDenomsFromCreatorRequest defines the request structure for the -// DenomsFromCreator gRPC query. type QueryDenomsFromCreatorRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` } @@ -251,8 +252,6 @@ func (m *QueryDenomsFromCreatorRequest) GetCreator() string { return "" } -// QueryDenomsFromCreatorRequest defines the response structure for the -// DenomsFromCreator gRPC query. type QueryDenomsFromCreatorResponse struct { Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"` } @@ -297,96 +296,6 @@ func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string { return nil } -type QueryBeforeSendHookAddressRequest struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` -} - -func (m *QueryBeforeSendHookAddressRequest) Reset() { *m = QueryBeforeSendHookAddressRequest{} } -func (m *QueryBeforeSendHookAddressRequest) String() string { return proto.CompactTextString(m) } -func (*QueryBeforeSendHookAddressRequest) ProtoMessage() {} -func (*QueryBeforeSendHookAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6f22013ad0f72e3f, []int{6} -} -func (m *QueryBeforeSendHookAddressRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryBeforeSendHookAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryBeforeSendHookAddressRequest.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 *QueryBeforeSendHookAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryBeforeSendHookAddressRequest.Merge(m, src) -} -func (m *QueryBeforeSendHookAddressRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryBeforeSendHookAddressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryBeforeSendHookAddressRequest proto.InternalMessageInfo - -func (m *QueryBeforeSendHookAddressRequest) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -// QueryBeforeSendHookAddressResponse defines the response structure for the -// DenomBeforeSendHook gRPC query. -type QueryBeforeSendHookAddressResponse struct { - CosmwasmAddress string `protobuf:"bytes,1,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` -} - -func (m *QueryBeforeSendHookAddressResponse) Reset() { *m = QueryBeforeSendHookAddressResponse{} } -func (m *QueryBeforeSendHookAddressResponse) String() string { return proto.CompactTextString(m) } -func (*QueryBeforeSendHookAddressResponse) ProtoMessage() {} -func (*QueryBeforeSendHookAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6f22013ad0f72e3f, []int{7} -} -func (m *QueryBeforeSendHookAddressResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryBeforeSendHookAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryBeforeSendHookAddressResponse.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 *QueryBeforeSendHookAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryBeforeSendHookAddressResponse.Merge(m, src) -} -func (m *QueryBeforeSendHookAddressResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryBeforeSendHookAddressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryBeforeSendHookAddressResponse proto.InternalMessageInfo - -func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string { - if m != nil { - return m.CosmwasmAddress - } - return "" -} - func init() { proto.RegisterType((*QueryParamsRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsResponse") @@ -394,8 +303,6 @@ func init() { proto.RegisterType((*QueryDenomAuthorityMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse") proto.RegisterType((*QueryDenomsFromCreatorRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest") proto.RegisterType((*QueryDenomsFromCreatorResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse") - proto.RegisterType((*QueryBeforeSendHookAddressRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest") - proto.RegisterType((*QueryBeforeSendHookAddressResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse") } func init() { @@ -403,50 +310,43 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 674 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x4e, 0x13, 0x5f, - 0x14, 0xee, 0xfc, 0x7e, 0x52, 0xc3, 0xf5, 0x1f, 0x5c, 0xf1, 0x5f, 0xc5, 0xa9, 0x5c, 0x09, 0x01, - 0x83, 0x1d, 0x8b, 0x24, 0x1a, 0x91, 0x40, 0x07, 0x45, 0x13, 0x24, 0xd1, 0x71, 0xa5, 0x9b, 0xe6, - 0xb6, 0xbd, 0x94, 0x86, 0xce, 0x9c, 0x32, 0xf7, 0x16, 0x6d, 0x08, 0x1b, 0x17, 0xae, 0x4d, 0x5c, - 0xfa, 0x0e, 0x3e, 0x07, 0x4b, 0x12, 0x36, 0xae, 0x1a, 0x05, 0xe3, 0x03, 0xf4, 0x09, 0x4c, 0xef, - 0x3d, 0x45, 0xa0, 0x65, 0xd2, 0xe2, 0xaa, 0x93, 0x73, 0xbe, 0xf3, 0x9d, 0xef, 0xbb, 0xe7, 0x9c, - 0x94, 0x8c, 0x83, 0xf4, 0x41, 0x96, 0xa4, 0xa3, 0x60, 0x4d, 0x04, 0x2b, 0x3c, 0xaf, 0x20, 0xac, - 0x39, 0x1b, 0xe9, 0x9c, 0x50, 0x3c, 0xed, 0xac, 0x57, 0x45, 0x58, 0x4b, 0x55, 0x42, 0x50, 0x40, - 0x87, 0x11, 0x99, 0x3a, 0x8c, 0x4c, 0x21, 0x32, 0x31, 0x54, 0x84, 0x22, 0x68, 0xa0, 0xd3, 0xfc, - 0x32, 0x35, 0x89, 0xe1, 0x22, 0x40, 0xb1, 0x2c, 0x1c, 0x5e, 0x29, 0x39, 0x3c, 0x08, 0x40, 0x71, - 0x55, 0x82, 0x40, 0x62, 0xf6, 0x6e, 0x5e, 0x53, 0x3a, 0x39, 0x2e, 0x85, 0x69, 0x75, 0xd0, 0xb8, - 0xc2, 0x8b, 0xa5, 0x40, 0x83, 0x11, 0x3b, 0x1d, 0xa9, 0x93, 0x57, 0xd5, 0x2a, 0x84, 0x25, 0x55, - 0x5b, 0x16, 0x8a, 0x17, 0xb8, 0xe2, 0x58, 0x35, 0x11, 0x59, 0x55, 0xe1, 0x21, 0xf7, 0x51, 0x0c, - 0x1b, 0x22, 0xf4, 0x75, 0x53, 0xc2, 0x2b, 0x1d, 0xf4, 0xc4, 0x7a, 0x55, 0x48, 0xc5, 0xde, 0x92, - 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9a, 0x5d, - 0x4e, 0x73, 0x66, 0xa5, 0x08, 0x0a, 0xd9, 0x55, 0x80, 0x35, 0xd7, 0xdb, 0xde, 0xb3, 0xad, 0x9d, - 0x3d, 0xdb, 0xfa, 0xb1, 0x67, 0x5b, 0x9f, 0xf7, 0xed, 0xd8, 0xce, 0xbe, 0x1d, 0xfb, 0xbe, 0x6f, - 0xc7, 0xde, 0x3d, 0x2a, 0x96, 0xd4, 0x6a, 0x35, 0x97, 0xca, 0x83, 0xdf, 0x6a, 0x71, 0xaf, 0xcc, - 0x73, 0xf2, 0xa0, 0xdf, 0x46, 0xfa, 0xa1, 0xf3, 0xe1, 0x68, 0x57, 0x55, 0xab, 0x08, 0x99, 0x8b, - 0xeb, 0x3f, 0x9b, 0x07, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x38, 0x22, 0xde, 0x2a, 0x77, 0x07, - 0x00, 0x00, + // 566 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0x33, 0xb5, 0x46, 0x3b, 0xa2, 0x92, 0x69, 0x91, 0x1a, 0xea, 0x46, 0xc7, 0x22, 0x29, + 0xd4, 0x1d, 0xd3, 0xf6, 0x64, 0x15, 0xec, 0x56, 0xbc, 0x48, 0x40, 0x17, 0x11, 0x14, 0x21, 0x4c, + 0xd2, 0xe9, 0x36, 0xd8, 0xdd, 0x97, 0xce, 0xce, 0x8a, 0xa1, 0xf4, 0xa2, 0xe0, 0x59, 0xf0, 0xe8, + 0x77, 0xf0, 0x73, 0xf4, 0x58, 0xe8, 0xc5, 0x53, 0x90, 0xc4, 0x4f, 0x90, 0x9b, 0x78, 0x91, 0xcc, + 0x4c, 0x5a, 0xeb, 0xc6, 0x25, 0xd6, 0xdb, 0x32, 0xef, 0xff, 0xfe, 0xef, 0xfd, 0xde, 0x7b, 0x2c, + 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0xa5, 0xaf, 0x8a, 0x1c, + 0x22, 0x5c, 0x48, 0xad, 0x9b, 0xac, 0x8e, 0xdb, 0xf6, 0x88, 0x9b, 0x2b, 0xde, 0x3b, 0x5d, 0xb2, + 0xc5, 0x5d, 0xd7, 0xb8, 0xf7, 0xc9, 0xea, 0x38, 0xb8, 0xb5, 0x4d, 0x09, 0x61, 0xcd, 0xa2, 0x1e, + 0x33, 0x7b, 0xd5, 0xfd, 0xae, 0x83, 0x0e, 0xba, 0x0e, 0xfa, 0xd6, 0x75, 0xd0, 0xc7, 0x9e, 0x93, + 0x3b, 0xe8, 0x39, 0xb9, 0xaf, 0x3d, 0x27, 0xf7, 0x72, 0x39, 0x68, 0xaa, 0xad, 0xa4, 0xee, 0x36, + 0x20, 0x64, 0x91, 0x48, 0x94, 0x84, 0xe8, 0x36, 0xc8, 0x60, 0xf8, 0xcd, 0xde, 0x9e, 0x2c, 0xa7, + 0xda, 0x2d, 0x11, 0xd7, 0xf3, 0xfa, 0xaf, 0xb8, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x28, 0x2a, + 0x3f, 0xc8, 0xf4, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -461,18 +361,10 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Params defines a gRPC query method that returns the tokenfactory module's - // parameters. + // Params returns the total set of minting parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // DenomAuthorityMetadata defines a gRPC query method for fetching - // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(ctx context.Context, in *QueryDenomAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryDenomAuthorityMetadataResponse, error) - // DenomsFromCreator defines a gRPC query method for fetching all - // denominations created by a specific admin/creator. DenomsFromCreator(ctx context.Context, in *QueryDenomsFromCreatorRequest, opts ...grpc.CallOption) (*QueryDenomsFromCreatorResponse, error) - // BeforeSendHookAddress defines a gRPC query method for - // getting the address registered for the before send hook. - BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) } type queryClient struct { @@ -510,29 +402,12 @@ func (c *queryClient) DenomsFromCreator(ctx context.Context, in *QueryDenomsFrom return out, nil } -func (c *queryClient) BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) { - out := new(QueryBeforeSendHookAddressResponse) - err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // QueryServer is the server API for Query service. type QueryServer interface { - // Params defines a gRPC query method that returns the tokenfactory module's - // parameters. + // Params returns the total set of minting parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // DenomAuthorityMetadata defines a gRPC query method for fetching - // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(context.Context, *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error) - // DenomsFromCreator defines a gRPC query method for fetching all - // denominations created by a specific admin/creator. DenomsFromCreator(context.Context, *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) - // BeforeSendHookAddress defines a gRPC query method for - // getting the address registered for the before send hook. - BeforeSendHookAddress(context.Context, *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -548,9 +423,6 @@ func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenomsFromCreator not implemented") } -func (*UnimplementedQueryServer) BeforeSendHookAddress(ctx context.Context, req *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BeforeSendHookAddress not implemented") -} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -610,24 +482,6 @@ func _Query_DenomsFromCreator_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_BeforeSendHookAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBeforeSendHookAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).BeforeSendHookAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).BeforeSendHookAddress(ctx, req.(*QueryBeforeSendHookAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "osmosis.tokenfactory.v1beta1.Query", HandlerType: (*QueryServer)(nil), @@ -644,10 +498,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "DenomsFromCreator", Handler: _Query_DenomsFromCreator_Handler, }, - { - MethodName: "BeforeSendHookAddress", - Handler: _Query_BeforeSendHookAddress_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "osmosis/tokenfactory/v1beta1/query.proto", @@ -729,10 +579,17 @@ func (m *QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + if len(m.Subdenom) > 0 { + i -= len(m.Subdenom) + copy(dAtA[i:], m.Subdenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Subdenom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0xa } @@ -834,66 +691,6 @@ func (m *QueryDenomsFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryBeforeSendHookAddressRequest) 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 *QueryBeforeSendHookAddressRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryBeforeSendHookAddressResponse) 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 *QueryBeforeSendHookAddressResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CosmwasmAddress) > 0 { - i -= len(m.CosmwasmAddress) - copy(dAtA[i:], m.CosmwasmAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmwasmAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -931,7 +728,11 @@ func (m *QueryDenomAuthorityMetadataRequest) Size() (n int) { } var l int _ = l - l = len(m.Denom) + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Subdenom) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -977,32 +778,6 @@ func (m *QueryDenomsFromCreatorResponse) Size() (n int) { return n } -func (m *QueryBeforeSendHookAddressRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryBeforeSendHookAddressResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CosmwasmAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1173,7 +948,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1201,144 +976,11 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDenomAuthorityMetadataResponse) 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 ErrIntOverflowQuery - } - 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: QueryDenomAuthorityMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.AuthorityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDenomsFromCreatorRequest) 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 ErrIntOverflowQuery - } - 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: QueryDenomsFromCreatorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1366,7 +1008,7 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + m.Subdenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1389,7 +1031,7 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1412,17 +1054,17 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1432,23 +1074,24 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) + if err := m.AuthorityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -1471,7 +1114,7 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1494,15 +1137,15 @@ func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1530,7 +1173,7 @@ func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) + m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1553,7 +1196,7 @@ func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1576,15 +1219,15 @@ func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1612,7 +1255,7 @@ func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) + m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 5d75e90ba..2cfb3a2cd 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -62,51 +62,35 @@ func request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") } - protoReq.Denom, err = runtime.String(val) + protoReq.Creator, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) } - msg, err := client.DenomAuthorityMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDenomAuthorityMetadataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] + val, ok = pathParams["subdenom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") } - protoReq.Denom, err = runtime.String(val) + protoReq.Subdenom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) } - msg, err := server.DenomAuthorityMetadata(ctx, &protoReq) + msg, err := client.DenomAuthorityMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDenomsFromCreatorRequest +func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDenomAuthorityMetadataRequest var metadata runtime.ServerMetadata var ( @@ -127,40 +111,24 @@ func request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) } - msg, err := client.DenomsFromCreator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDenomsFromCreatorRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["creator"] + val, ok = pathParams["subdenom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") } - protoReq.Creator, err = runtime.String(val) + protoReq.Subdenom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) } - msg, err := server.DenomsFromCreator(ctx, &protoReq) + msg, err := server.DenomAuthorityMetadata(ctx, &protoReq) return msg, metadata, err } -func request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryBeforeSendHookAddressRequest +func request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDenomsFromCreatorRequest var metadata runtime.ServerMetadata var ( @@ -170,24 +138,24 @@ func request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtim _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") } - protoReq.Denom, err = runtime.String(val) + protoReq.Creator, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) } - msg, err := client.BeforeSendHookAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.DenomsFromCreator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryBeforeSendHookAddressRequest +func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDenomsFromCreatorRequest var metadata runtime.ServerMetadata var ( @@ -197,18 +165,18 @@ func local_request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") } - protoReq.Denom, err = runtime.String(val) + protoReq.Creator, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) } - msg, err := server.BeforeSendHookAddress(ctx, &protoReq) + msg, err := server.DenomsFromCreator(ctx, &protoReq) return msg, metadata, err } @@ -288,29 +256,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -412,37 +357,15 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "tokenfactory", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_BeforeSendHookAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "before_send_hook"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -451,6 +374,4 @@ var ( forward_Query_DenomAuthorityMetadata_0 = runtime.ForwardResponseMessage forward_Query_DenomsFromCreator_0 = runtime.ForwardResponseMessage - - forward_Query_BeforeSendHookAddress_0 = runtime.ForwardResponseMessage ) diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index dde9c35b6..26bcf2095 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -6,12 +6,14 @@ package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" types1 "github.com/cosmos/cosmos-sdk/x/bank/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "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" @@ -731,6 +733,105 @@ func (m *MsgForceTransferResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgForceTransferResponse proto.InternalMessageInfo +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/interchainqueries 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_283b6c9a90a846b4, []int{14} +} +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: 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_283b6c9a90a846b4, []int{15} +} +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 + func init() { proto.RegisterType((*MsgCreateDenom)(nil), "osmosis.tokenfactory.v1beta1.MsgCreateDenom") proto.RegisterType((*MsgCreateDenomResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse") @@ -746,6 +847,8 @@ func init() { proto.RegisterType((*MsgSetDenomMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse") proto.RegisterType((*MsgForceTransfer)(nil), "osmosis.tokenfactory.v1beta1.MsgForceTransfer") proto.RegisterType((*MsgForceTransferResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgForceTransferResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "osmosis.tokenfactory.v1beta1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse") } func init() { @@ -753,63 +856,72 @@ func init() { } var fileDescriptor_283b6c9a90a846b4 = []byte{ - // 895 bytes of a gzipped FileDescriptorProto + // 1040 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xbf, 0x6f, 0xdb, 0x46, - 0x14, 0x36, 0x93, 0xd4, 0x75, 0x2e, 0x75, 0x25, 0xd1, 0x6e, 0xa2, 0x30, 0x0e, 0x99, 0x5e, 0x91, - 0xc0, 0x2d, 0x2a, 0x12, 0x72, 0x8b, 0xfe, 0xd0, 0xd4, 0x28, 0x85, 0x91, 0xa1, 0x5a, 0x18, 0x4f, - 0x45, 0x00, 0xe1, 0x28, 0x9d, 0x68, 0x42, 0xe1, 0x9d, 0xcb, 0x3b, 0x45, 0xf1, 0x56, 0xa0, 0x5b, - 0xa7, 0x0e, 0xf9, 0x27, 0xba, 0xf5, 0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 0x4b, 0x1d, 0x1a, - 0xc8, 0x14, 0x5a, 0x8a, 0xf2, 0x1c, 0xdc, 0x2e, 0x67, 0xe5, 0x63, 0x76, 0x42, 0x09, 0xc3, 0x66, - 0x17, 0xd4, 0x08, 0x9e, 0xf6, 0x25, 0xb5, 0xaf, 0x4e, 0x56, 0x69, 0x5a, 0x59, 0xea, 0xdc, 0x56, - 0x27, 0x57, 0x00, 0xd0, 0xdf, 0x26, 0x78, 0x7a, 0x24, 0x16, 0x64, 0x2c, 0x78, 0x66, 0x80, 0xf7, - 0x7b, 0x2c, 0xec, 0x45, 0x84, 0xaf, 0xa3, 0xf6, 0x29, 0xd8, 0x44, 0x31, 0x9d, 0x10, 0x2e, 0xb5, - 0xde, 0x3a, 0xb8, 0xeb, 0x2a, 0x73, 0x5d, 0x61, 0x7e, 0x7e, 0x75, 0xee, 0x13, 0x1a, 0x91, 0xee, - 0x47, 0x6f, 0x52, 0x67, 0x63, 0x16, 0x49, 0xd1, 0xa0, 0xaf, 0xf9, 0xe6, 0x77, 0x60, 0x3b, 0x8e, - 0x08, 0x3f, 0xa2, 0x8f, 0x87, 0xc3, 0x04, 0x33, 0xd6, 0xbc, 0x5e, 0x95, 0x20, 0xb6, 0xfb, 0x9c, - 0xf6, 0x91, 0x02, 0x40, 0xbf, 0x4c, 0xe8, 0xd8, 0xc2, 0xc8, 0xbb, 0x4b, 0x8d, 0x14, 0x40, 0xd8, - 0x00, 0x35, 0xad, 0x30, 0x77, 0x0e, 0xfe, 0xa3, 0x54, 0x77, 0x27, 0x09, 0x79, 0x37, 0xaa, 0x0f, - 0x41, 0x2d, 0x98, 0x24, 0xe4, 0x30, 0xa1, 0x71, 0x59, 0xf7, 0x5e, 0x96, 0x3a, 0x4d, 0xc5, 0x11, - 0x80, 0xfe, 0x28, 0xa1, 0xf1, 0x4c, 0x79, 0x95, 0x74, 0x99, 0x76, 0x01, 0xd5, 0xda, 0x85, 0xce, - 0x42, 0xfb, 0x9f, 0xba, 0xcc,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x64, 0x08, + 0x79, 0x45, 0x79, 0x09, 0xee, 0x0c, 0x47, 0xe5, 0x23, 0xd6, 0x26, 0x98, 0x21, 0xb3, 0x04, 0x56, + 0x31, 0xea, 0x56, 0x24, 0xb5, 0xa2, 0x76, 0x56, 0x61, 0x5a, 0xbd, 0xd8, 0xb9, 0xa3, 0x76, 0xce, + 0x00, 0x5c, 0x7f, 0x05, 0xa3, 0xee, 0xb1, 0x58, 0x90, 0xbe, 0xdc, 0x73, 0x03, 0xdc, 0x2c, 0xb3, + 0xa0, 0x1c, 0x62, 0x3e, 0x8f, 0xda, 0x17, 0x60, 0x11, 0x46, 0xa4, 0x83, 0xb9, 0xd4, 0x7a, 0xeb, + 0x60, 0xbb, 0xa0, 0xb3, 0x2f, 0xce, 0x30, 0xa9, 0x8c, 0xc2, 0x73, 0x12, 0xe2, 0xd2, 0x47, 0x67, + 0xb1, 0xb3, 0xd0, 0xf7, 0xa4, 0x68, 0xae, 0xaf, 0xf9, 0xe6, 0x97, 0x60, 0x25, 0x0a, 0x31, 0x3f, + 0x26, 0xcf, 0xea, 0x75, 0x8a, 0x18, 0xcb, 0x5d, 0xcf, 0x4a, 0x10, 0xe6, 0x0a, 0x27, 0x15, 0xa8, + 0x00, 0xae, 0x3f, 0x4c, 0x28, 0xda, 0x22, 0x91, 0xdb, 0x63, 0x13, 0x29, 0x80, 0xee, 0x3a, 0x58, + 0xd5, 0x0a, 0x93, 0xcc, 0xb9, 0xff, 0x2a, 0xd5, 0xa5, 0x0e, 0xc5, 0xef, 0x47, 0xf5, 0x21, 0x58, + 0xad, 0x76, 0x28, 0x3e, 0xa4, 0x24, 0x1a, 0xd6, 0xbd, 0xd3, 0x8b, 0x9d, 0x9c, 0xe2, 0x08, 0x40, + 0xa5, 0x41, 0x49, 0xd4, 0x57, 0x9e, 0x25, 0x4d, 0xd2, 0x2e, 0xa0, 0x5a, 0xbb, 0xd0, 0x99, 0x6a, + 0xff, 0x53, 0x97, 0x79, 0x13, 0xe2, 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ef, 0xe3, 0x27, 0x6d, 0xc4, 0xaa, 0x8b, 0xf2, 0x53, + 0xfe, 0xf1, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x82, 0xd8, 0xa2, 0x17, 0xd9, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -831,6 +943,7 @@ type MsgClient interface { SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error) SetBeforeSendHook(ctx context.Context, in *MsgSetBeforeSendHook, opts ...grpc.CallOption) (*MsgSetBeforeSendHookResponse, error) ForceTransfer(ctx context.Context, in *MsgForceTransfer, opts ...grpc.CallOption) (*MsgForceTransferResponse, error) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -904,6 +1017,15 @@ func (c *msgClient) ForceTransfer(ctx context.Context, in *MsgForceTransfer, opt return out, nil } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.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 { CreateDenom(context.Context, *MsgCreateDenom) (*MsgCreateDenomResponse, error) @@ -913,6 +1035,7 @@ type MsgServer interface { SetDenomMetadata(context.Context, *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) SetBeforeSendHook(context.Context, *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error) ForceTransfer(context.Context, *MsgForceTransfer) (*MsgForceTransferResponse, error) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -940,6 +1063,9 @@ func (*UnimplementedMsgServer) SetBeforeSendHook(ctx context.Context, req *MsgSe func (*UnimplementedMsgServer) ForceTransfer(ctx context.Context, req *MsgForceTransfer) (*MsgForceTransferResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ForceTransfer not implemented") } +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) @@ -1071,6 +1197,24 @@ func _Msg_ForceTransfer_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +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: "/osmosis.tokenfactory.v1beta1.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: "osmosis.tokenfactory.v1beta1.Msg", HandlerType: (*MsgServer)(nil), @@ -1103,6 +1247,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "ForceTransfer", Handler: _Msg_ForceTransfer_Handler, }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "osmosis/tokenfactory/v1beta1/tx.proto", @@ -1589,6 +1737,69 @@ func (m *MsgForceTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } +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 @@ -1802,6 +2013,30 @@ func (m *MsgForceTransferResponse) Size() (n int) { return n } +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 } @@ -3184,6 +3419,171 @@ func (m *MsgForceTransferResponse) Unmarshal(dAtA []byte) error { } return nil } +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 From c80ed882ea03f3078551a2839bc7264cc300c0aa Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 17:00:52 +0400 Subject: [PATCH 075/307] update keeper --- x/tokenfactory/keeper/admins.go | 2 +- x/tokenfactory/keeper/admins_test.go | 19 ++-- x/tokenfactory/keeper/bankactions.go | 20 ++++ x/tokenfactory/keeper/before_send.go | 2 +- x/tokenfactory/keeper/createdenom.go | 75 ++++++--------- x/tokenfactory/keeper/createdenom_test.go | 11 +-- x/tokenfactory/keeper/genesis.go | 8 +- x/tokenfactory/keeper/genesis_test.go | 3 +- x/tokenfactory/keeper/grpc_query.go | 15 ++- x/tokenfactory/keeper/keeper.go | 28 ++---- x/tokenfactory/keeper/keeper_test.go | 7 +- x/tokenfactory/keeper/msg_server.go | 108 +++++++++++++++++++++- 12 files changed, 189 insertions(+), 109 deletions(-) diff --git a/x/tokenfactory/keeper/admins.go b/x/tokenfactory/keeper/admins.go index 243ece8c3..744662656 100644 --- a/x/tokenfactory/keeper/admins.go +++ b/x/tokenfactory/keeper/admins.go @@ -37,7 +37,7 @@ func (k Keeper) setAuthorityMetadata(ctx sdk.Context, denom string, metadata typ return nil } -func (k Keeper) setAdmin(ctx sdk.Context, denom, admin string) error { +func (k Keeper) setAdmin(ctx sdk.Context, denom string, admin string) error { metadata, err := k.GetAuthorityMetadata(ctx, denom) if err != nil { return err diff --git a/x/tokenfactory/keeper/admins_test.go b/x/tokenfactory/keeper/admins_test.go index a001c1102..0828ffcef 100644 --- a/x/tokenfactory/keeper/admins_test.go +++ b/x/tokenfactory/keeper/admins_test.go @@ -2,7 +2,6 @@ package keeper_test import ( "fmt" - "strings" sdk "github.com/cosmos/cosmos-sdk/types" @@ -16,10 +15,9 @@ func (suite *KeeperTestSuite) TestAdminMsgs() { suite.Setup() suite.CreateDefaultDenom(suite.ChainA.GetContext()) // Make sure that the admin is set correctly - denom := strings.Split(suite.defaultDenom, "/") + //denom := strings.Split(suite.defaultDenom, "/") queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: suite.defaultDenom, }) suite.Require().NoError(err) suite.Require().Equal(suite.TestAccs[0].String(), queryRes.AuthorityMetadata.Admin) @@ -40,10 +38,9 @@ func (suite *KeeperTestSuite) TestAdminMsgs() { // Test Change Admin _, err = suite.msgServer.ChangeAdmin(sdk.WrapSDKContext(suite.ChainA.GetContext()), types.NewMsgChangeAdmin(suite.TestAccs[0].String(), suite.defaultDenom, suite.TestAccs[1].String())) suite.Require().NoError(err) - denom = strings.Split(suite.defaultDenom, "/") + //denom = strings.Split(suite.defaultDenom, "/") queryRes, err = suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: suite.defaultDenom, }) suite.Require().NoError(err) suite.Require().Equal(suite.TestAccs[1].String(), queryRes.AuthorityMetadata.Admin) @@ -61,10 +58,8 @@ func (suite *KeeperTestSuite) TestAdminMsgs() { // Try setting admin to empty _, err = suite.msgServer.ChangeAdmin(sdk.WrapSDKContext(suite.ChainA.GetContext()), types.NewMsgChangeAdmin(suite.TestAccs[1].String(), suite.defaultDenom, "")) suite.Require().NoError(err) - denom = strings.Split(suite.defaultDenom, "/") queryRes, err = suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: suite.defaultDenom, }) suite.Require().NoError(err) suite.Require().Equal("", queryRes.AuthorityMetadata.Admin) @@ -251,10 +246,8 @@ func (suite *KeeperTestSuite) TestChangeAdminDenom() { suite.Require().Error(err) } - denom := strings.Split(testDenom, "/") queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: testDenom, }) suite.Require().NoError(err) diff --git a/x/tokenfactory/keeper/bankactions.go b/x/tokenfactory/keeper/bankactions.go index bdfe72d86..6cf9309d9 100644 --- a/x/tokenfactory/keeper/bankactions.go +++ b/x/tokenfactory/keeper/bankactions.go @@ -50,3 +50,23 @@ func (k Keeper) burnFrom(ctx sdk.Context, amount sdk.Coin, burnFrom string) erro return k.bankKeeper.BurnCoins(ctx, types.ModuleName, sdk.NewCoins(amount)) } + +func (k Keeper) forceTransfer(ctx sdk.Context, amount sdk.Coin, fromAddr string, toAddr string) error { + // verify that denom is an x/tokenfactory denom + _, _, err := types.DeconstructDenom(amount.Denom) + if err != nil { + return err + } + + fromSdkAddr, err := sdk.AccAddressFromBech32(fromAddr) + if err != nil { + return err + } + + toSdkAddr, err := sdk.AccAddressFromBech32(toAddr) + if err != nil { + return err + } + + return k.bankKeeper.SendCoins(ctx, fromSdkAddr, toSdkAddr, sdk.NewCoins(amount)) +} diff --git a/x/tokenfactory/keeper/before_send.go b/x/tokenfactory/keeper/before_send.go index bfe4d36e8..c8654130a 100644 --- a/x/tokenfactory/keeper/before_send.go +++ b/x/tokenfactory/keeper/before_send.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/types" + "github.com/neutron-org/neutron/x/tokenfactory/types" errorsmod "cosmossdk.io/errors" wasmvmtypes "github.com/CosmWasm/wasmvm/types" diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index 06ee2a072..37b4cdec5 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -3,61 +3,57 @@ package keeper import ( "fmt" - "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/neutron-org/neutron/x/tokenfactory/types" ) -// CreateDenom creates new denom with `factory/{creatorAddr}/{subdenom}` name. -// Charges creatorAddr fee for creation -func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr, subdenom string) (newTokenDenom string, err error) { - err = k.chargeFeeForDenomCreation(ctx, creatorAddr) - if err != nil { - return "", errors.Wrapf(types.ErrUnableToCharge, "denom fee collection error: %v", err) - } - +// ConvertToBaseToken converts a fee amount in a whitelisted fee token to the base fee token amount +func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error) { denom, err := k.validateCreateDenom(ctx, creatorAddr, subdenom) if err != nil { - return "", errors.Wrapf(types.ErrInvalidDenom, "denom validation error: %v", err) + return "", err } - err = k.createDenomAfterValidation(ctx, creatorAddr, denom) + err = k.chargeForCreateDenom(ctx, creatorAddr) if err != nil { - return "", errors.Wrap(err, "create denom after validation error") + return "", err } - return denom, nil + err = k.createDenomAfterValidation(ctx, creatorAddr, denom) + return denom, err } // Runs CreateDenom logic after the charge and all denom validation has been handled. // Made into a second function for genesis initialization. -func (k Keeper) createDenomAfterValidation(ctx sdk.Context, creatorAddr, denom string) (err error) { - denomMetaData := banktypes.Metadata{ - DenomUnits: []*banktypes.DenomUnit{{ - Denom: denom, - Exponent: 0, - }}, - Base: denom, - } +func (k Keeper) createDenomAfterValidation(ctx sdk.Context, creatorAddr string, denom string) (err error) { + _, exists := k.bankKeeper.GetDenomMetaData(ctx, denom) + if !exists { + denomMetaData := banktypes.Metadata{ + DenomUnits: []*banktypes.DenomUnit{{ + Denom: denom, + Exponent: 0, + }}, + Base: denom, + } - k.bankKeeper.SetDenomMetaData(ctx, denomMetaData) + k.bankKeeper.SetDenomMetaData(ctx, denomMetaData) + } authorityMetadata := types.DenomAuthorityMetadata{ Admin: creatorAddr, } err = k.setAuthorityMetadata(ctx, denom, authorityMetadata) if err != nil { - return errors.Wrapf(types.ErrInvalidAuthorityMetadata, "unable to set authority metadata: %v", err) + return err } k.addDenomFromCreator(ctx, creatorAddr, denom) return nil } -func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr, subdenom string) (newTokenDenom string, err error) { +func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error) { // Temporary check until IBC bug is sorted out if k.bankKeeper.HasSupply(ctx, subdenom) { return "", fmt.Errorf("temporary error until IBC bug is sorted out, " + @@ -66,7 +62,7 @@ func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr, subdenom strin denom, err := types.GetTokenDenom(creatorAddr, subdenom) if err != nil { - return "", errors.Wrapf(types.ErrTokenDenom, "wrong denom token: %v", err) + return "", err } _, found := k.bankKeeper.GetDenomMetaData(ctx, denom) @@ -77,31 +73,12 @@ func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr, subdenom strin return denom, nil } -func (k Keeper) chargeFeeForDenomCreation(ctx sdk.Context, creatorAddr string) (err error) { - // Send creation fee to community pool - creationFee := k.GetParams(ctx).DenomCreationFee - accAddr, err := sdk.AccAddressFromBech32(creatorAddr) - if err != nil { - return errors.Wrapf(types.ErrUnableToCharge, "wrong creator address: %v", err) - } - +func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err error) { params := k.GetParams(ctx) - if len(creationFee) > 0 { - feeCollectorAddr, err := sdk.AccAddressFromBech32(params.FeeCollectorAddress) - if err != nil { - return errors.Wrapf(types.ErrUnableToCharge, "wrong fee collector address: %v", err) - } - - err = k.bankKeeper.SendCoins( - ctx, - accAddr, feeCollectorAddr, - creationFee, - ) - - if err != nil { - return errors.Wrap(err, "unable to send coins to fee collector") - } + // if DenomCreationGasConsume is non-zero, consume the gas + if params.DenomCreationGasConsume != 0 { + ctx.GasMeter().ConsumeGas(params.DenomCreationGasConsume, "consume denom creation gas") } return nil diff --git a/x/tokenfactory/keeper/createdenom_test.go b/x/tokenfactory/keeper/createdenom_test.go index 423dc4a1d..0b1c004ea 100644 --- a/x/tokenfactory/keeper/createdenom_test.go +++ b/x/tokenfactory/keeper/createdenom_test.go @@ -2,7 +2,6 @@ package keeper_test import ( "fmt" - "strings" sdk "github.com/cosmos/cosmos-sdk/types" @@ -37,11 +36,10 @@ func (suite *KeeperTestSuite) TestMsgCreateDenom() { suite.Require().Equal(sdk.NewInt(TopUpCoinsAmount), feeCollectorBalance) // Make sure that the admin is set correctly - denom := strings.Split(res.GetNewTokenDenom(), "/") + //denom := strings.Split(res.GetNewTokenDenom(), "/") queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: res.GetNewTokenDenom(), }) suite.Require().NoError(err) suite.Require().Equal(suite.TestAccs[0].String(), queryRes.AuthorityMetadata.Admin) @@ -126,12 +124,11 @@ func (suite *KeeperTestSuite) TestCreateDenom() { if tc.valid { suite.Require().NoError(err) - denom := strings.Split(res.GetNewTokenDenom(), "/") + //denom := strings.Split(res.GetNewTokenDenom(), "/") // Make sure that the admin is set correctly queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: res.GetNewTokenDenom(), }) suite.Require().NoError(err) diff --git a/x/tokenfactory/keeper/genesis.go b/x/tokenfactory/keeper/genesis.go index b3c950351..288297a8d 100644 --- a/x/tokenfactory/keeper/genesis.go +++ b/x/tokenfactory/keeper/genesis.go @@ -6,15 +6,15 @@ import ( "github.com/neutron-org/neutron/x/tokenfactory/types" ) -// InitGenesis initializes the tokenfactory module's state from a provided genesis +// / InitGenesis initializes the tokenfactory module's state from a provided genesis // state. func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { k.CreateModuleAccount(ctx) - err := k.SetParams(ctx, genState.Params) - if err != nil { - panic(err) + if genState.Params.DenomCreationFee == nil { + genState.Params.DenomCreationFee = sdk.NewCoins() } + k.SetParams(ctx, genState.Params) for _, genDenom := range genState.GetFactoryDenoms() { creator, _, err := types.DeconstructDenom(genDenom.GetDenom()) diff --git a/x/tokenfactory/keeper/genesis_test.go b/x/tokenfactory/keeper/genesis_test.go index 67a38e6f7..707214167 100644 --- a/x/tokenfactory/keeper/genesis_test.go +++ b/x/tokenfactory/keeper/genesis_test.go @@ -40,8 +40,7 @@ func (suite *KeeperTestSuite) TestGenesis() { } } - err := app.TokenFactoryKeeper.SetParams(context, types.Params{}) - suite.Require().NoError(err) + app.TokenFactoryKeeper.SetParams(context, types.Params{}) app.TokenFactoryKeeper.InitGenesis(context, genesisState) exportedGenesis := app.TokenFactoryKeeper.ExportGenesis(context) suite.Require().NotNil(exportedGenesis) diff --git a/x/tokenfactory/keeper/grpc_query.go b/x/tokenfactory/keeper/grpc_query.go index 57750362f..ea2ad259c 100644 --- a/x/tokenfactory/keeper/grpc_query.go +++ b/x/tokenfactory/keeper/grpc_query.go @@ -2,7 +2,6 @@ package keeper import ( "context" - "fmt" sdk "github.com/cosmos/cosmos-sdk/types" @@ -11,7 +10,7 @@ import ( var _ types.QueryServer = Keeper{} -func (k Keeper) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) params := k.GetParams(sdkCtx) @@ -21,9 +20,7 @@ func (k Keeper) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types func (k Keeper) DenomAuthorityMetadata(ctx context.Context, req *types.QueryDenomAuthorityMetadataRequest) (*types.QueryDenomAuthorityMetadataResponse, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) - denom := fmt.Sprintf("factory/%s/%s", req.GetCreator(), req.GetSubdenom()) - - authorityMetadata, err := k.GetAuthorityMetadata(sdkCtx, denom) + authorityMetadata, err := k.GetAuthorityMetadata(sdkCtx, req.GetDenom()) if err != nil { return nil, err } @@ -36,3 +33,11 @@ func (k Keeper) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFro denoms := k.getDenomsFromCreator(sdkCtx, req.GetCreator()) return &types.QueryDenomsFromCreatorResponse{Denoms: denoms}, nil } + +func (k Keeper) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + + cosmwasmAddress := k.GetBeforeSendHook(sdkCtx, req.GetDenom()) + + return &types.QueryBeforeSendHookAddressResponse{CosmwasmAddress: cosmwasmAddress}, nil +} diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 3724efb0c..5e5751486 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -4,49 +4,37 @@ import ( "fmt" "github.com/cometbft/cometbft/libs/log" + "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/tokenfactory/types" - - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) type ( Keeper struct { - storeKey storetypes.StoreKey - - paramSpace paramtypes.Subspace - + storeKey storetypes.StoreKey + cdc codec.Codec accountKeeper types.AccountKeeper bankKeeper types.BankKeeper contractKeeper types.ContractKeeper - - communityPoolKeeper types.CommunityPoolKeeper } ) // NewKeeper returns a new instance of the x/tokenfactory keeper func NewKeeper( + cdc codec.Codec, storeKey storetypes.StoreKey, - paramSpace paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, - communityPoolKeeper types.CommunityPoolKeeper, ) Keeper { - if !paramSpace.HasKeyTable() { - paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable()) - } - return Keeper{ - storeKey: storeKey, - paramSpace: paramSpace, - - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - communityPoolKeeper: communityPoolKeeper, + cdc: cdc, + storeKey: storeKey, + accountKeeper: accountKeeper, + bankKeeper: bankKeeper, } } diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index 7d01bbee1..84db02560 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -52,11 +52,10 @@ func (suite *KeeperTestSuite) Setup() { suite.queryClient = types.NewQueryClient(suite.QueryHelper) tokeFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper - err := tokeFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( - sdktypes.NewCoins(sdktypes.NewInt64Coin(types.DefaultNeutronDenom, TopUpCoinsAmount)), - FeeCollectorAddress, + tokeFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( + sdktypes.NewCoins(sdktypes.NewInt64Coin(suite.defaultDenom, TopUpCoinsAmount)), + 100000, )) - suite.Require().NoError(err) suite.msgServer = keeper.NewMsgServerImpl(*tokeFactoryKeeper) } diff --git a/x/tokenfactory/keeper/msg_server.go b/x/tokenfactory/keeper/msg_server.go index eae1e3a73..dfed15f28 100644 --- a/x/tokenfactory/keeper/msg_server.go +++ b/x/tokenfactory/keeper/msg_server.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/neutron-org/neutron/x/tokenfactory/types" ) @@ -59,7 +59,11 @@ func (server msgServer) Mint(goCtx context.Context, msg *types.MsgMint) (*types. return nil, types.ErrUnauthorized } - err = server.Keeper.mintTo(ctx, msg.Amount, msg.Sender) + if msg.MintToAddress == "" { + msg.MintToAddress = msg.Sender + } + + err = server.Keeper.mintTo(ctx, msg.Amount, msg.MintToAddress) if err != nil { return nil, err } @@ -87,7 +91,17 @@ func (server msgServer) Burn(goCtx context.Context, msg *types.MsgBurn) (*types. return nil, types.ErrUnauthorized } - err = server.Keeper.burnFrom(ctx, msg.Amount, msg.Sender) + if msg.BurnFromAddress == "" { + msg.BurnFromAddress = msg.Sender + } + + accountI := server.Keeper.accountKeeper.GetAccount(ctx, sdk.AccAddress(msg.BurnFromAddress)) + _, ok := accountI.(authtypes.ModuleAccountI) + if ok { + return nil, types.ErrBurnFromModuleAccount + } + + err = server.Keeper.burnFrom(ctx, msg.Amount, msg.BurnFromAddress) if err != nil { return nil, err } @@ -103,6 +117,35 @@ func (server msgServer) Burn(goCtx context.Context, msg *types.MsgBurn) (*types. return &types.MsgBurnResponse{}, nil } +func (server msgServer) ForceTransfer(goCtx context.Context, msg *types.MsgForceTransfer) (*types.MsgForceTransferResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + authorityMetadata, err := server.Keeper.GetAuthorityMetadata(ctx, msg.Amount.GetDenom()) + if err != nil { + return nil, err + } + + if msg.Sender != authorityMetadata.GetAdmin() { + return nil, types.ErrUnauthorized + } + + err = server.Keeper.forceTransfer(ctx, msg.Amount, msg.TransferFromAddress, msg.TransferToAddress) + if err != nil { + return nil, err + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeMsgForceTransfer, + sdk.NewAttribute(types.AttributeTransferFromAddress, msg.TransferFromAddress), + sdk.NewAttribute(types.AttributeTransferToAddress, msg.TransferToAddress), + sdk.NewAttribute(types.AttributeAmount, msg.Amount.String()), + ), + }) + + return &types.MsgForceTransferResponse{}, nil +} + func (server msgServer) ChangeAdmin(goCtx context.Context, msg *types.MsgChangeAdmin) (*types.MsgChangeAdminResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) @@ -129,3 +172,62 @@ func (server msgServer) ChangeAdmin(goCtx context.Context, msg *types.MsgChangeA return &types.MsgChangeAdminResponse{}, nil } + +func (server msgServer) SetDenomMetadata(goCtx context.Context, msg *types.MsgSetDenomMetadata) (*types.MsgSetDenomMetadataResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // Defense in depth validation of metadata + err := msg.Metadata.Validate() + if err != nil { + return nil, err + } + + authorityMetadata, err := server.Keeper.GetAuthorityMetadata(ctx, msg.Metadata.Base) + if err != nil { + return nil, err + } + + if msg.Sender != authorityMetadata.GetAdmin() { + return nil, types.ErrUnauthorized + } + + server.Keeper.bankKeeper.SetDenomMetaData(ctx, msg.Metadata) + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeMsgSetDenomMetadata, + sdk.NewAttribute(types.AttributeDenom, msg.Metadata.Base), + sdk.NewAttribute(types.AttributeDenomMetadata, msg.Metadata.String()), + ), + }) + + return &types.MsgSetDenomMetadataResponse{}, nil +} + +func (server msgServer) SetBeforeSendHook(goCtx context.Context, msg *types.MsgSetBeforeSendHook) (*types.MsgSetBeforeSendHookResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + authorityMetadata, err := server.Keeper.GetAuthorityMetadata(ctx, msg.Denom) + if err != nil { + return nil, err + } + + if msg.Sender != authorityMetadata.GetAdmin() { + return nil, types.ErrUnauthorized + } + + err = server.Keeper.setBeforeSendHook(ctx, msg.Denom, msg.CosmwasmAddress) + if err != nil { + return nil, err + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeMsgSetBeforeSendHook, + sdk.NewAttribute(types.AttributeDenom, msg.GetDenom()), + sdk.NewAttribute(types.AttributeBeforeSendHookAddress, msg.GetCosmwasmAddress()), + ), + }) + + return &types.MsgSetBeforeSendHookResponse{}, nil +} From 1388d8803a02b6b308a51a4509d1d3dcda097365 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 17:01:19 +0400 Subject: [PATCH 076/307] small proto changes --- proto/neutron/interchainqueries/tx.proto | 2 +- proto/osmosis/tokenfactory/v1beta1/tx.proto | 24 +++++++++++++++++++++ x/interchainqueries/types/tx.pb.go | 2 +- x/tokenfactory/client/cli/query.go | 11 +++++----- 4 files changed, 31 insertions(+), 8 deletions(-) diff --git a/proto/neutron/interchainqueries/tx.proto b/proto/neutron/interchainqueries/tx.proto index 37936f711..f4b5e7172 100644 --- a/proto/neutron/interchainqueries/tx.proto +++ b/proto/neutron/interchainqueries/tx.proto @@ -136,7 +136,7 @@ message MsgUpdateParams { // Authority is the address of the governance account. string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - // params defines the x/tokenfactory parameters to update. + // params defines the x/interchainqueries parameters to update. // // NOTE: All parameters must be supplied. Params params = 2 diff --git a/proto/osmosis/tokenfactory/v1beta1/tx.proto b/proto/osmosis/tokenfactory/v1beta1/tx.proto index 8184a0a86..83d0fa8ac 100644 --- a/proto/osmosis/tokenfactory/v1beta1/tx.proto +++ b/proto/osmosis/tokenfactory/v1beta1/tx.proto @@ -23,6 +23,7 @@ service Msg { rpc SetBeforeSendHook(MsgSetBeforeSendHook) returns (MsgSetBeforeSendHookResponse); rpc ForceTransfer(MsgForceTransfer) returns (MsgForceTransferResponse); + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } // MsgCreateDenom defines the message structure for the CreateDenom gRPC service @@ -139,3 +140,26 @@ message MsgForceTransfer { } message MsgForceTransferResponse {} + +// MsgUpdateParams is the MsgUpdateParams request type. +// +// Since: 0.47 +message MsgUpdateParams { + option (amino.name) = "interchainqueries/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // params defines the x/interchainqueries 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: 0.47 +message MsgUpdateParamsResponse {} diff --git a/x/interchainqueries/types/tx.pb.go b/x/interchainqueries/types/tx.pb.go index 4bd4d8f0a..5298e2ebe 100644 --- a/x/interchainqueries/types/tx.pb.go +++ b/x/interchainqueries/types/tx.pb.go @@ -767,7 +767,7 @@ var xxx_messageInfo_MsgUpdateInterchainQueryResponse proto.InternalMessageInfo type MsgUpdateParams struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the x/tokenfactory parameters to update. + // params defines the x/interchainqueries parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` diff --git a/x/tokenfactory/client/cli/query.go b/x/tokenfactory/client/cli/query.go index 529888069..11e4dc944 100644 --- a/x/tokenfactory/client/cli/query.go +++ b/x/tokenfactory/client/cli/query.go @@ -1,11 +1,11 @@ package cli import ( + // "strings" + "fmt" "strings" - // "strings" - "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" @@ -84,8 +84,7 @@ func GetCmdDenomAuthorityMetadata() *cobra.Command { } res, err := queryClient.DenomAuthorityMetadata(cmd.Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: denom[1], - Subdenom: denom[2], + Denom: args[0], }) if err != nil { return err @@ -113,8 +112,8 @@ func GetCmdDenomsFromCreator() *cobra.Command { } queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.DenomsFromCreator(cmd.Context(), &types.QueryDenomsFromCreatorRequest{ - Creator: args[0], + res, err := queryClient.BeforeSendHookAddress(cmd.Context(), &types.QueryBeforeSendHookAddressRequest{ + Denom: args[0], }) if err != nil { return err From d071e186b89cf511b0ac07bb65582256fc88aa26 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 17:01:46 +0400 Subject: [PATCH 077/307] fix app erros --- app/upgrades/v0.4.4/upgrades.go | 6 +----- app/upgrades/v3/upgrades.go | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/upgrades/v0.4.4/upgrades.go b/app/upgrades/v0.4.4/upgrades.go index 63beac5c0..bf05e2dff 100644 --- a/app/upgrades/v0.4.4/upgrades.go +++ b/app/upgrades/v0.4.4/upgrades.go @@ -57,11 +57,7 @@ func CreateUpgradeHandler( ctx.Logger().Info("Migrating TokenFactory Params...") tokenfactoryDefaultParams := tokenfactorytypes.DefaultParams() - tokenfactoryDefaultParams.FeeCollectorAddress = reserveAddress - err = keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactoryDefaultParams) - if err != nil { - return vm, err - } + keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactoryDefaultParams) ctx.Logger().Info("Upgrade complete") return vm, err diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index beabd198e..5b0389dd3 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -33,11 +33,7 @@ func CreateUpgradeHandler( return vm, err } - err = keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.DefaultParams()) - if err != nil { - return vm, err - } - + keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.DefaultParams()) vm, err = mm.RunMigrations(ctx, configurator, vm) if err != nil { return vm, err From 5aa6e84023c0b875742552aa78f05372e5dbade0 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 31 Aug 2023 17:02:01 +0400 Subject: [PATCH 078/307] replace sdk --- go.mod | 10 +--------- go.sum | 22 +++------------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/go.mod b/go.mod index 3259ca7bb..b70f0e117 100644 --- a/go.mod +++ b/go.mod @@ -57,16 +57,12 @@ require ( 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 - github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // 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/confio/ics23/go v0.9.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect @@ -88,7 +84,6 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/getsentry/sentry-go v0.21.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.6.0 // indirect @@ -126,8 +121,6 @@ require ( github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/klauspost/compress v1.16.5 // indirect - github.com/kr/pretty v0.3.1 // indirect - github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.0 // indirect @@ -152,7 +145,6 @@ require ( github.com/prometheus/procfs v0.10.1 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/rogpeppe/go-internal v1.10.0 // indirect github.com/rs/cors v1.8.3 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/spf13/afero v1.9.5 // indirect @@ -191,7 +183,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d - github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230831104547-eda3e09a8b71 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 1f759e18a..7c0b122b7 100644 --- a/go.sum +++ b/go.sum @@ -286,8 +286,6 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= -github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= @@ -314,7 +312,7 @@ 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.5.1 h1:mixz5lJX4Hiz4FpqFREJHIXLfaLBntfaJv1h+/jS+Qg= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= @@ -358,12 +356,6 @@ github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b80 github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= 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= @@ -506,8 +498,6 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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.21.0 h1:c9l5F1nPF30JIppulk4veau90PK6Smu3abgVtVQWon4= -github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -516,7 +506,6 @@ github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= -github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= 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= @@ -836,7 +825,6 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -940,8 +928,8 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d h1:oexw79znoA0TEo7CGdWHrolbvZqCDD3aI+031CbOq9Y= github.com/neutron-org/admin-module v0.0.0-20230705134325-b23404470a1d/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230831104547-eda3e09a8b71 h1:weRB37YM9y7HFyEn6SNI8AZzawU3h23l6BLFrNNqZak= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230831104547-eda3e09a8b71/go.mod h1:R5n+uM7vguVPFap4pgkdvQCT1nVo/OtPwrlAU40rvok= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= @@ -997,8 +985,6 @@ github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761/go.mod h1:pxMtw7c github.com/philhofer/fwd v1.0.0/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/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= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -1057,9 +1043,7 @@ github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRr github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= 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/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= From 07944be3626e3e23a0cf2769fcef4e00edcaa814 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 31 Aug 2023 16:40:57 +0300 Subject: [PATCH 079/307] merge conflicts --- x/transfer/ibc_handlers.go | 2 -- x/transfer/ibc_handlers_test.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 85ff59d22..550c7bb37 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -1,8 +1,6 @@ package transfer import ( - "strings" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" "cosmossdk.io/errors" diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 68f6dfa64..294654283 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -5,8 +5,6 @@ import ( "github.com/neutron-org/neutron/x/contractmanager/types" "testing" - "github.com/neutron-org/neutron/x/contractmanager/types" - sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" From 7693c89f79785a6a7e14440c8b1288f60f959ff2 Mon Sep 17 00:00:00 2001 From: swelf19 <62722506+swelf19@users.noreply.github.com> Date: Thu, 31 Aug 2023 19:04:26 +0300 Subject: [PATCH 080/307] Update neutronutils/utils.go Co-authored-by: Dmitry Kolupaev --- neutronutils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutronutils/utils.go b/neutronutils/utils.go index 0e67d48dd..fb621d701 100644 --- a/neutronutils/utils.go +++ b/neutronutils/utils.go @@ -2,7 +2,7 @@ package neutronutils import sdk "github.com/cosmos/cosmos-sdk/types" -// CreateCachedContext creates a cached context for with a limited gas meter. +// CreateCachedContext creates a cached context with a limited gas meter. func CreateCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func(), sdk.GasMeter) { cacheCtx, writeFn := ctx.CacheContext() gasMeter := sdk.NewGasMeter(gasLimit) From 50b8c25f0496f391d0276820976f3858154a347d Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 31 Aug 2023 19:09:09 +0300 Subject: [PATCH 081/307] review fixes --- network/init-neutrond.sh | 3 ++- x/contractmanager/types/params.go | 6 +++--- x/transfer/ibc_handlers_test.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 037d2ab7c..390284816 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -637,7 +637,8 @@ set_genesis_param signed_blocks_window "\"$SLASHING_SIGNED_BLO set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," # slashing set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing -set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES," # globalfeeset_genesis_param max_total_bypass_min_fee_msg_gas_usage "\"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE\"" # globalfee +set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES," # globalfee +set_genesis_param max_total_bypass_min_fee_msg_gas_usage "\"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE\"" # globalfee set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BYPASS_MIN_FEE_MSG_TYPES" # globalfee set_genesis_param proposer_fee "\"0.25\"" # builder(POB) set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) diff --git a/x/contractmanager/types/params.go b/x/contractmanager/types/params.go index 5c77ce196..5a2a9c291 100644 --- a/x/contractmanager/types/params.go +++ b/x/contractmanager/types/params.go @@ -15,15 +15,15 @@ func ParamKeyTable() paramtypes.KeyTable { } // NewParams creates a new Params instance -func NewParams() Params { +func NewParams(sudoCallGasLimit uint64) Params { return Params{ - SudoCallGasLimit: DefaultSudoCallGasLimit, + SudoCallGasLimit: sudoCallGasLimit, } } // DefaultParams returns a default set of parameters func DefaultParams() Params { - return NewParams() + return NewParams(DefaultSudoCallGasLimit) } // ParamSetPairs get the params.ParamSet diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 294654283..191bbfa8d 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -94,7 +94,7 @@ func TestHandleAcknowledgement(t *testing.T) { require.NoError(t, err) p.Data = tokenBz - //// error during SudoResponse non contract + // error during SudoResponse non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) From 788b4d77a48f150046b1acb15ff326c01883d1b3 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 31 Aug 2023 19:13:18 +0300 Subject: [PATCH 082/307] module alias alter --- app/upgrades/sdk47/upgrades.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go index 9c92d08f0..3beeb8e82 100644 --- a/app/upgrades/sdk47/upgrades.go +++ b/app/upgrades/sdk47/upgrades.go @@ -12,7 +12,7 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" "github.com/neutron-org/neutron/app/upgrades" - contractmanagermoduletypes "github.com/neutron-org/neutron/x/contractmanager/types" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" @@ -93,7 +93,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Setting sudo callback limit...") - cmParams := contractmanagermoduletypes.Params{ + cmParams := contractmanagertypes.Params{ SudoCallGasLimit: 1_000_000, } err = keepers.ContractManager.SetParams(ctx, cmParams) From 95adbda01354198376968077aa9546f036240d75 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 4 Sep 2023 11:31:18 +0400 Subject: [PATCH 083/307] upd module & small fixes --- app/app.go | 52 ++++++++++++++--------------------- go.mod | 2 +- go.sum | 4 +-- wasmbinding/message_plugin.go | 20 ++++++-------- 4 files changed, 33 insertions(+), 45 deletions(-) diff --git a/app/app.go b/app/app.go index 9650a812d..4b72c53de 100644 --- a/app/app.go +++ b/app/app.go @@ -113,10 +113,10 @@ import ( tokenfactorykeeper "github.com/neutron-org/neutron/x/tokenfactory/keeper" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" - adminmodulemodule "github.com/cosmos/admin-module/x/adminmodule" + "github.com/cosmos/admin-module/x/adminmodule" adminmodulecli "github.com/cosmos/admin-module/x/adminmodule/client/cli" - adminmodulemodulekeeper "github.com/cosmos/admin-module/x/adminmodule/keeper" - adminmodulemoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + adminmodulekeeper "github.com/cosmos/admin-module/x/adminmodule/keeper" + admintypes "github.com/cosmos/admin-module/x/adminmodule/types" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" @@ -159,16 +159,6 @@ const ( Name = "neutrond" ) -var ( - // ProposalsEnabled If EnabledSpecificProposals is "", and this is "true", then enable all x/wasm proposals. - // ProposalsEnabled If EnabledSpecificProposals is "", and this is not "true", then disable all x/wasm proposals. - ProposalsEnabled = "true" - // EnableSpecificProposals If set to non-empty string it must be comma-separated list of values that are all a subset - // of "EnableAllProposals" (takes precedence over ProposalsEnabled) - // https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34 - EnableSpecificProposals = "" -) - var ( Upgrades = []upgrades.Upgrade{v3.Upgrade, v044.Upgrade, nextupgrade.Upgrade} @@ -204,7 +194,7 @@ var ( feeburner.AppModuleBasic{}, contractmanager.AppModuleBasic{}, cron.AppModuleBasic{}, - adminmodulemodule.NewAppModuleBasic( + adminmodule.NewAppModuleBasic( govclient.NewProposalHandler( adminmodulecli.NewSubmitParamChangeProposalTxCmd, ), @@ -276,7 +266,7 @@ type App struct { // keepers AccountKeeper authkeeper.AccountKeeper - AdminmoduleKeeper adminmodulemodulekeeper.Keeper + AdminmoduleKeeper adminmodulekeeper.Keeper AuthzKeeper authzkeeper.Keeper BankKeeper bankkeeper.BaseKeeper // BuilderKeeper is the keeper that handles processing auction transactions @@ -381,7 +371,7 @@ func New( evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasm.StoreKey, feetypes.StoreKey, - feeburnertypes.StoreKey, adminmodulemoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, + feeburnertypes.StoreKey, admintypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, buildertypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -402,7 +392,7 @@ func New( app.ParamsKeeper = initParamsKeeper(appCodec, legacyAmino, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey]) // set the BaseApp's parameter store - app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) + app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(admintypes.ModuleName).String()) bApp.SetParamStore(&app.ConsensusParamsKeeper) // add capability keeper and ScopeToModule for ibc module @@ -424,7 +414,7 @@ func New( authtypes.ProtoBaseAccount, maccPerms, sdk.GetConfig().GetBech32AccountAddrPrefix(), - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), ) app.AuthzKeeper = authzkeeper.NewKeeper( @@ -436,7 +426,7 @@ func New( keys[banktypes.StoreKey], app.AccountKeeper, app.BlockedAddrs(), - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), ) app.SlashingKeeper = slashingkeeper.NewKeeper( @@ -444,7 +434,7 @@ func New( legacyAmino, keys[slashingtypes.StoreKey], &app.ConsumerKeeper, - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), ) app.CrisisKeeper = *crisiskeeper.NewKeeper( appCodec, @@ -452,7 +442,7 @@ func New( invCheckPeriod, app.BankKeeper, authtypes.FeeCollectorName, - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), ) app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper) @@ -462,7 +452,7 @@ func New( appCodec, homePath, app.BaseApp, - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), ) // ... other modules keepers @@ -593,7 +583,7 @@ func New( app.BankKeeper, // 25% of rewards should be sent to the redistribute address rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName)), - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), ) wasmDir := filepath.Join(homePath, "wasm") @@ -616,16 +606,16 @@ func New( AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(&app.UpgradeKeeper)). AddRoute(ibchost.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)) - app.AdminmoduleKeeper = *adminmodulemodulekeeper.NewKeeper( + app.AdminmoduleKeeper = *adminmodulekeeper.NewKeeper( appCodec, - keys[adminmodulemoduletypes.StoreKey], - keys[adminmodulemoduletypes.MemStoreKey], + keys[admintypes.StoreKey], + keys[admintypes.MemStoreKey], adminRouterLegacy, app.MsgServiceRouter(), IsConsumerProposalAllowlisted, isSdkMessageWhitelisted, ) - adminModule := adminmodulemodule.NewAppModule(appCodec, app.AdminmoduleKeeper) + adminModule := adminmodule.NewAppModule(appCodec, app.AdminmoduleKeeper) app.InterchainQueriesKeeper = *interchainqueriesmodulekeeper.NewKeeper( appCodec, @@ -671,7 +661,7 @@ func New( wasmDir, wasmConfig, supportedFeatures, - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(admintypes.ModuleName).String(), wasmOpts..., ) wasmHooks.ContractKeeper = &app.WasmKeeper @@ -789,7 +779,7 @@ func New( wasm.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, - adminmodulemoduletypes.ModuleName, + admintypes.ModuleName, ibchookstypes.ModuleName, routertypes.ModuleName, crontypes.ModuleName, @@ -820,7 +810,7 @@ func New( wasm.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, - adminmodulemoduletypes.ModuleName, + admintypes.ModuleName, ibchookstypes.ModuleName, routertypes.ModuleName, crontypes.ModuleName, @@ -856,7 +846,7 @@ func New( wasm.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, - adminmodulemoduletypes.ModuleName, + admintypes.ModuleName, ibchookstypes.ModuleName, // after auth keeper routertypes.ModuleName, crontypes.ModuleName, diff --git a/go.mod b/go.mod index 2e0a0dc79..e5cc72f36 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230830083547-1540be1b9432 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230904070658-53e6d9fc7035 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index e93afe8ed..5eca99390 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230830083547-1540be1b9432 h1:K+nDdYMZSB+4zt3NVSHyvKKxgjRsNyHZRaxFfnwmakg= -github.com/neutron-org/admin-module v0.0.0-20230830083547-1540be1b9432/go.mod h1:QuxQ7FJlEAFMRssyEYOrR9ORnYQvBFMTlO8BXny6ntw= +github.com/neutron-org/admin-module v0.0.0-20230904070658-53e6d9fc7035 h1:D6IibSrjZM7n/VEG+gqxRS1qd1FubhweMzpyTOv+veo= +github.com/neutron-org/admin-module v0.0.0-20230904070658-53e6d9fc7035/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index be8650904..00041e3d2 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -297,7 +297,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. var data []byte err := m.validateProposalQty(adminProposal) if err != nil { - return nil, nil, errors.Wrap(err, "failed to validate proposal quantity") + return nil, nil, errors.Wrap(err, "invalid proposal quantity") } // here we handle pre-sdk47 style of proposals: param change, upgrade, client update if m.isLegacyProposal(adminProposal) { @@ -352,7 +352,8 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont proposal := adminProposal msg := admintypes.MsgSubmitProposalLegacy{Proposer: contractAddr.String()} - if proposal.ParamChangeProposal != nil { + switch { + case proposal.ParamChangeProposal != nil: p := proposal.ParamChangeProposal err := msg.SetContent(¶mChange.ParameterChangeProposal{ Title: p.Title, @@ -362,9 +363,7 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont if err != nil { return nil, errors.Wrap(err, "failed to set content on ParameterChangeProposal") } - - } - if proposal.UpgradeProposal != nil { + case proposal.UpgradeProposal != nil: p := proposal.UpgradeProposal err := msg.SetContent(&ibcclienttypes.UpgradeProposal{ Title: p.Title, @@ -379,9 +378,7 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont if err != nil { return nil, errors.Wrap(err, "failed to set content on UpgradeProposal") } - } - - if proposal.ClientUpdateProposal != nil { + case proposal.ClientUpdateProposal != nil: p := proposal.ClientUpdateProposal err := msg.SetContent(&ibcclienttypes.ClientUpdateProposal{ Title: p.Title, @@ -392,6 +389,8 @@ func (m *CustomMessenger) performSubmitAdminProposalLegacy(ctx sdk.Context, cont if err != nil { return nil, errors.Wrap(err, "failed to set content on ClientUpdateProposal") } + default: + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "unexpected legacy admin proposal structure: %+v", proposal) } if err := msg.ValidateBasic(); err != nil { @@ -414,9 +413,8 @@ func (m *CustomMessenger) performSubmitAdminProposal(ctx sdk.Context, contractAd proposal := adminProposal authority := authtypes.NewModuleAddress(admintypes.ModuleName) var ( - msg *admintypes.MsgSubmitProposal - sdkMsgs []sdk.Msg - sdkMsg sdk.Msg + msg *admintypes.MsgSubmitProposal + sdkMsg sdk.Msg ) cdc := m.AdminKeeper.Codec() From a73dc8aff0ad8be4bcdd2878016e5184e38a489d Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 4 Sep 2023 15:06:28 +0400 Subject: [PATCH 084/307] upd types --- .../tokenfactory/v1beta1/genesis.proto | 5 +- .../osmosis/tokenfactory/v1beta1/params.proto | 16 +- .../osmosis/tokenfactory/v1beta1/query.proto | 47 +- x/tokenfactory/types/genesis.pb.go | 3 + x/tokenfactory/types/params.go | 4 +- x/tokenfactory/types/params.pb.go | 97 ++-- x/tokenfactory/types/query.pb.go | 538 +++++++++++++++--- x/tokenfactory/types/query.pb.gw.go | 141 ++++- x/tokenfactory/types/tx.go | 33 ++ 9 files changed, 693 insertions(+), 191 deletions(-) create mode 100644 x/tokenfactory/types/tx.go diff --git a/proto/osmosis/tokenfactory/v1beta1/genesis.proto b/proto/osmosis/tokenfactory/v1beta1/genesis.proto index 305ff3d5d..f1c506be0 100644 --- a/proto/osmosis/tokenfactory/v1beta1/genesis.proto +++ b/proto/osmosis/tokenfactory/v1beta1/genesis.proto @@ -18,6 +18,9 @@ message GenesisState { ]; } +// GenesisDenom defines a tokenfactory denom that is defined within genesis +// state. The structure contains DenomAuthorityMetadata which defines the +// denom's admin. message GenesisDenom { option (gogoproto.equal) = true; @@ -26,4 +29,4 @@ message GenesisDenom { (gogoproto.moretags) = "yaml:\"authority_metadata\"", (gogoproto.nullable) = false ]; -} \ No newline at end of file +} diff --git a/proto/osmosis/tokenfactory/v1beta1/params.proto b/proto/osmosis/tokenfactory/v1beta1/params.proto index 4bd96f977..35f08f4c5 100644 --- a/proto/osmosis/tokenfactory/v1beta1/params.proto +++ b/proto/osmosis/tokenfactory/v1beta1/params.proto @@ -7,15 +7,23 @@ option go_package = "github.com/neutron-org/neutron/x/tokenfactory/types"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; -// Params holds parameters for the tokenfactory module +// Params defines the parameters for the tokenfactory module. message Params { - // DenomCreationFee is the fee required to create a new denom using the tokenfactory module + // DenomCreationFee defines the fee to be charged on the creation of a new + // denom. The fee is drawn from the MsgCreateDenom's sender account, and + // transferred to the community pool. repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1 [ (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"denom_creation_fee\"", (gogoproto.nullable) = false ]; - // FeeCollectorAddress is the address where fees collected from denom creation are sent to - string fee_collector_address = 2; + // DenomCreationGasConsume defines the gas cost for creating a new denom. + // This is intended as a spam deterrence mechanism. + // + // See: https://github.com/CosmWasm/token-factory/issues/11 + uint64 denom_creation_gas_consume = 2 [ + (gogoproto.moretags) = "yaml:\"denom_creation_gas_consume\"", + (gogoproto.nullable) = true + ]; } diff --git a/proto/osmosis/tokenfactory/v1beta1/query.proto b/proto/osmosis/tokenfactory/v1beta1/query.proto index a4ee8b4d6..4254767a7 100644 --- a/proto/osmosis/tokenfactory/v1beta1/query.proto +++ b/proto/osmosis/tokenfactory/v1beta1/query.proto @@ -10,21 +10,34 @@ option go_package = "github.com/neutron-org/neutron/x/tokenfactory/types"; // Query defines the gRPC querier service. service Query { - // Params returns the total set of minting parameters. + // Params defines a gRPC query method that returns the tokenfactory module's + // parameters. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/osmosis/tokenfactory/v1beta1/params"; } + // DenomAuthorityMetadata defines a gRPC query method for fetching + // DenomAuthorityMetadata for a particular denom. rpc DenomAuthorityMetadata(QueryDenomAuthorityMetadataRequest) - returns (QueryDenomAuthorityMetadataResponse) { + returns (QueryDenomAuthorityMetadataResponse) { option (google.api.http).get = - "/osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/authority_metadata"; + "/osmosis/tokenfactory/v1beta1/denoms/{denom}/authority_metadata"; } + // DenomsFromCreator defines a gRPC query method for fetching all + // denominations created by a specific admin/creator. rpc DenomsFromCreator(QueryDenomsFromCreatorRequest) - returns (QueryDenomsFromCreatorResponse) { + returns (QueryDenomsFromCreatorResponse) { option (google.api.http).get = - "/osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}"; + "/osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}"; + } + + // BeforeSendHookAddress defines a gRPC query method for + // getting the address registered for the before send hook. + rpc BeforeSendHookAddress(QueryBeforeSendHookAddressRequest) + returns (QueryBeforeSendHookAddressResponse) { + option (google.api.http).get = + "/osmosis/tokenfactory/v1beta1/denoms/{denom}/before_send_hook"; } } @@ -37,10 +50,14 @@ message QueryParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; } +// QueryDenomAuthorityMetadataRequest defines the request structure for the +// DenomAuthorityMetadata gRPC query. message QueryDenomAuthorityMetadataRequest { - string creator = 1 [ (gogoproto.moretags) = "yaml:\"creator\"" ]; - string subdenom = 2 [ (gogoproto.moretags) = "yaml:\"subdenom\"" ]; + string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; } + +// QueryDenomAuthorityMetadataResponse defines the response structure for the +// DenomAuthorityMetadata gRPC query. message QueryDenomAuthorityMetadataResponse { DenomAuthorityMetadata authority_metadata = 1 [ (gogoproto.moretags) = "yaml:\"authority_metadata\"", @@ -48,9 +65,25 @@ message QueryDenomAuthorityMetadataResponse { ]; } +// QueryDenomsFromCreatorRequest defines the request structure for the +// DenomsFromCreator gRPC query. message QueryDenomsFromCreatorRequest { string creator = 1 [ (gogoproto.moretags) = "yaml:\"creator\"" ]; } + +// QueryDenomsFromCreatorRequest defines the response structure for the +// DenomsFromCreator gRPC query. message QueryDenomsFromCreatorResponse { repeated string denoms = 1 [ (gogoproto.moretags) = "yaml:\"denoms\"" ]; } + +message QueryBeforeSendHookAddressRequest { + string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; +} + +// QueryBeforeSendHookAddressResponse defines the response structure for the +// DenomBeforeSendHook gRPC query. +message QueryBeforeSendHookAddressResponse { + string cosmwasm_address = 1 + [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; +} diff --git a/x/tokenfactory/types/genesis.pb.go b/x/tokenfactory/types/genesis.pb.go index e3471a9ef..c8d948b77 100644 --- a/x/tokenfactory/types/genesis.pb.go +++ b/x/tokenfactory/types/genesis.pb.go @@ -77,6 +77,9 @@ func (m *GenesisState) GetFactoryDenoms() []GenesisDenom { return nil } +// GenesisDenom defines a tokenfactory denom that is defined within genesis +// state. The structure contains DenomAuthorityMetadata which defines the +// denom's admin. type GenesisDenom struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` AuthorityMetadata DenomAuthorityMetadata `protobuf:"bytes,2,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"` diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 8ec0c3c75..09d9cac75 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -32,8 +32,8 @@ func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Param func DefaultParams() Params { return Params{ // For choice, see: https://github.com/osmosis-labs/osmosis/pull/4983 - DenomCreationFee: sdk.NewCoins(), // used to be 10 OSMO at launch. - FeeCollectorAddress: "", + DenomCreationFee: sdk.NewCoins(), // used to be 10 OSMO at launch. + DenomCreationGasConsume: uint64(DefaultCreationGasFee), } } diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 3ca6e158d..5e9ce1d32 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -26,12 +26,17 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// Params holds parameters for the tokenfactory module +// Params defines the parameters for the tokenfactory module. type Params struct { - // DenomCreationFee is the fee required to create a new denom using the tokenfactory module + // DenomCreationFee defines the fee to be charged on the creation of a new + // denom. The fee is drawn from the MsgCreateDenom's sender account, and + // transferred to the community pool. DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=denom_creation_fee,json=denomCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"denom_creation_fee" yaml:"denom_creation_fee"` - // FeeCollectorAddress is the address where fees collected from denom creation are sent to - FeeCollectorAddress string `protobuf:"bytes,2,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"` + // DenomCreationGasConsume defines the gas cost for creating a new denom. + // This is intended as a spam deterrence mechanism. + // + // See: https://github.com/CosmWasm/token-factory/issues/11 + DenomCreationGasConsume uint64 `protobuf:"varint,2,opt,name=denom_creation_gas_consume,json=denomCreationGasConsume,proto3" json:"denom_creation_gas_consume,omitempty" yaml:"denom_creation_gas_consume"` } func (m *Params) Reset() { *m = Params{} } @@ -74,11 +79,11 @@ func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins return nil } -func (m *Params) GetFeeCollectorAddress() string { +func (m *Params) GetDenomCreationGasConsume() uint64 { if m != nil { - return m.FeeCollectorAddress + return m.DenomCreationGasConsume } - return "" + return 0 } func init() { @@ -90,28 +95,28 @@ func init() { } var fileDescriptor_cc8299d306f3ff47 = []byte{ - // 322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xb1, 0x4e, 0x02, 0x41, - 0x10, 0x86, 0x6f, 0x35, 0x21, 0xf1, 0x6c, 0xcc, 0xa9, 0x09, 0x10, 0xb3, 0x10, 0x2a, 0x2c, 0xb8, - 0x0d, 0xd0, 0xd9, 0x09, 0x89, 0x1d, 0x89, 0xa1, 0xb4, 0xb9, 0xec, 0xdd, 0xcd, 0x9d, 0x17, 0xb8, - 0x1d, 0xb2, 0xbb, 0x18, 0x79, 0x0b, 0x2b, 0x1f, 0xc2, 0x27, 0xa1, 0xa4, 0x31, 0xb1, 0x42, 0x03, - 0x6f, 0xe0, 0x13, 0x18, 0x76, 0x17, 0x83, 0xb1, 0xda, 0x99, 0xfc, 0xff, 0x7c, 0xf3, 0x67, 0xd6, - 0xbf, 0x46, 0x55, 0xa2, 0x2a, 0x14, 0xd3, 0x38, 0x01, 0x91, 0xf1, 0x44, 0xa3, 0x5c, 0xb0, 0xa7, - 0x6e, 0x0c, 0x9a, 0x77, 0xd9, 0x8c, 0x4b, 0x5e, 0xaa, 0x70, 0x26, 0x51, 0x63, 0x70, 0xe5, 0xac, - 0xe1, 0xa1, 0x35, 0x74, 0xd6, 0xfa, 0x45, 0x8e, 0x39, 0x1a, 0x23, 0xdb, 0x55, 0x76, 0xa6, 0x5e, - 0x4b, 0x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0xff, 0xff, 0x58, 0x8c, 0xda, 0x7f, 0xc9, 0x01, - 0x00, 0x00, + // 332 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x31, 0x4f, 0xc2, 0x40, + 0x14, 0xc7, 0x7b, 0x68, 0x18, 0xea, 0x62, 0x1a, 0x13, 0x81, 0x98, 0x2b, 0x76, 0x82, 0x81, 0x5e, + 0x90, 0xcd, 0x11, 0x12, 0x9d, 0x48, 0x0c, 0xa3, 0x4b, 0x73, 0x2d, 0x8f, 0xda, 0x60, 0xef, 0x91, + 0xde, 0x61, 0xe4, 0x23, 0xb8, 0x39, 0xf9, 0x21, 0xfc, 0x24, 0x8c, 0x8c, 0x4e, 0xd5, 0xc0, 0x37, + 0xe0, 0x13, 0x18, 0xae, 0x87, 0x29, 0xea, 0x74, 0xef, 0xe5, 0xff, 0x7f, 0xbf, 0xf7, 0xbf, 0x3b, + 0xbb, 0x8d, 0x32, 0x45, 0x99, 0x48, 0xa6, 0x70, 0x0a, 0x62, 0xc2, 0x23, 0x85, 0xd9, 0x82, 0x3d, + 0x75, 0x43, 0x50, 0xbc, 0xcb, 0x66, 0x3c, 0xe3, 0xa9, 0xf4, 0x67, 0x19, 0x2a, 0x74, 0x2e, 0x8c, + 0xd5, 0x2f, 0x5b, 0x7d, 0x63, 0x6d, 0x9c, 0xc5, 0x18, 0xa3, 0x36, 0xb2, 0x5d, 0x55, 0xcc, 0x34, + 0xea, 0x91, 0x1e, 0x0a, 0x0a, 0xa1, 0x68, 0x8c, 0x44, 0x8b, 0x8e, 0x85, 0x5c, 0xc2, 0xcf, 0xc2, + 0x08, 0x13, 0x51, 0xe8, 0xde, 0x4b, 0xc5, 0xae, 0xde, 0xe9, 0xfd, 0xce, 0x1b, 0xb1, 0x9d, 0x31, + 0x08, 0x4c, 0x83, 0x28, 0x03, 0xae, 0x12, 0x14, 0xc1, 0x04, 0xa0, 0x46, 0x9a, 0x47, 0xad, 0x93, + 0xab, 0xba, 0x6f, 0xb0, 0x3b, 0xd0, 0x3e, 0x8e, 0x3f, 0xc0, 0x44, 0xf4, 0x87, 0xcb, 0xdc, 0xb5, + 0xb6, 0xb9, 0x5b, 0x5f, 0xf0, 0xf4, 0xf1, 0xda, 0xfb, 0x8b, 0xf0, 0xde, 0x3f, 0xdd, 0x56, 0x9c, + 0xa8, 0x87, 0x79, 0xe8, 0x47, 0x98, 0x9a, 0x80, 0xe6, 0xe8, 0xc8, 0xf1, 0x94, 0xa9, 0xc5, 0x0c, + 0xa4, 0xa6, 0xc9, 0xd1, 0xa9, 0x06, 0x0c, 0xcc, 0xfc, 0x0d, 0x80, 0x33, 0xb1, 0x1b, 0xbf, 0xa0, + 0x31, 0x97, 0x41, 0x84, 0x42, 0xce, 0x53, 0xa8, 0x55, 0x9a, 0xa4, 0x75, 0xdc, 0x6f, 0x2f, 0x73, + 0x97, 0x6c, 0x73, 0xf7, 0xf2, 0xdf, 0x10, 0x25, 0xbf, 0x37, 0x3a, 0x3f, 0x58, 0x70, 0xcb, 0xe5, + 0xa0, 0x50, 0xfa, 0xc3, 0xe5, 0x9a, 0x92, 0xd5, 0x9a, 0x92, 0xaf, 0x35, 0x25, 0xaf, 0x1b, 0x6a, + 0xad, 0x36, 0xd4, 0xfa, 0xd8, 0x50, 0xeb, 0xbe, 0x57, 0x4a, 0x2f, 0x60, 0xae, 0x32, 0x14, 0x1d, + 0xcc, 0xe2, 0x7d, 0xcd, 0x9e, 0x0f, 0x3f, 0x56, 0x5f, 0x27, 0xac, 0xea, 0x17, 0xee, 0x7d, 0x07, + 0x00, 0x00, 0xff, 0xff, 0x32, 0xf6, 0xab, 0x50, 0xfd, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -134,12 +139,10 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.FeeCollectorAddress) > 0 { - i -= len(m.FeeCollectorAddress) - copy(dAtA[i:], m.FeeCollectorAddress) - i = encodeVarintParams(dAtA, i, uint64(len(m.FeeCollectorAddress))) + if m.DenomCreationGasConsume != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DenomCreationGasConsume)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(m.DenomCreationFee) > 0 { for iNdEx := len(m.DenomCreationFee) - 1; iNdEx >= 0; iNdEx-- { @@ -181,9 +184,8 @@ func (m *Params) Size() (n int) { n += 1 + l + sovParams(uint64(l)) } } - l = len(m.FeeCollectorAddress) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) + if m.DenomCreationGasConsume != 0 { + n += 1 + sovParams(uint64(m.DenomCreationGasConsume)) } return n } @@ -258,10 +260,10 @@ func (m *Params) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeCollectorAddress", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomCreationGasConsume", wireType) } - var stringLen uint64 + m.DenomCreationGasConsume = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowParams @@ -271,24 +273,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.DenomCreationGasConsume |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeeCollectorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index bc94c2473..126c06e8b 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -112,9 +112,10 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryDenomAuthorityMetadataRequest defines the request structure for the +// DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataRequest struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` - Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` } func (m *QueryDenomAuthorityMetadataRequest) Reset() { *m = QueryDenomAuthorityMetadataRequest{} } @@ -150,20 +151,15 @@ func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDenomAuthorityMetadataRequest proto.InternalMessageInfo -func (m *QueryDenomAuthorityMetadataRequest) GetCreator() string { +func (m *QueryDenomAuthorityMetadataRequest) GetDenom() string { if m != nil { - return m.Creator - } - return "" -} - -func (m *QueryDenomAuthorityMetadataRequest) GetSubdenom() string { - if m != nil { - return m.Subdenom + return m.Denom } return "" } +// QueryDenomAuthorityMetadataResponse defines the response structure for the +// DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataResponse struct { AuthorityMetadata DenomAuthorityMetadata `protobuf:"bytes,1,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"` } @@ -208,6 +204,8 @@ func (m *QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata() DenomAuthor return DenomAuthorityMetadata{} } +// QueryDenomsFromCreatorRequest defines the request structure for the +// DenomsFromCreator gRPC query. type QueryDenomsFromCreatorRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` } @@ -252,6 +250,8 @@ func (m *QueryDenomsFromCreatorRequest) GetCreator() string { return "" } +// QueryDenomsFromCreatorRequest defines the response structure for the +// DenomsFromCreator gRPC query. type QueryDenomsFromCreatorResponse struct { Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"` } @@ -296,6 +296,96 @@ func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string { return nil } +type QueryBeforeSendHookAddressRequest struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` +} + +func (m *QueryBeforeSendHookAddressRequest) Reset() { *m = QueryBeforeSendHookAddressRequest{} } +func (m *QueryBeforeSendHookAddressRequest) String() string { return proto.CompactTextString(m) } +func (*QueryBeforeSendHookAddressRequest) ProtoMessage() {} +func (*QueryBeforeSendHookAddressRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6f22013ad0f72e3f, []int{6} +} +func (m *QueryBeforeSendHookAddressRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBeforeSendHookAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBeforeSendHookAddressRequest.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 *QueryBeforeSendHookAddressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBeforeSendHookAddressRequest.Merge(m, src) +} +func (m *QueryBeforeSendHookAddressRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBeforeSendHookAddressRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBeforeSendHookAddressRequest proto.InternalMessageInfo + +func (m *QueryBeforeSendHookAddressRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +// QueryBeforeSendHookAddressResponse defines the response structure for the +// DenomBeforeSendHook gRPC query. +type QueryBeforeSendHookAddressResponse struct { + CosmwasmAddress string `protobuf:"bytes,1,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` +} + +func (m *QueryBeforeSendHookAddressResponse) Reset() { *m = QueryBeforeSendHookAddressResponse{} } +func (m *QueryBeforeSendHookAddressResponse) String() string { return proto.CompactTextString(m) } +func (*QueryBeforeSendHookAddressResponse) ProtoMessage() {} +func (*QueryBeforeSendHookAddressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6f22013ad0f72e3f, []int{7} +} +func (m *QueryBeforeSendHookAddressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryBeforeSendHookAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryBeforeSendHookAddressResponse.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 *QueryBeforeSendHookAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryBeforeSendHookAddressResponse.Merge(m, src) +} +func (m *QueryBeforeSendHookAddressResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryBeforeSendHookAddressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryBeforeSendHookAddressResponse proto.InternalMessageInfo + +func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string { + if m != nil { + return m.CosmwasmAddress + } + return "" +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsResponse") @@ -303,6 +393,8 @@ func init() { proto.RegisterType((*QueryDenomAuthorityMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse") proto.RegisterType((*QueryDenomsFromCreatorRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest") proto.RegisterType((*QueryDenomsFromCreatorResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse") + proto.RegisterType((*QueryBeforeSendHookAddressRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest") + proto.RegisterType((*QueryBeforeSendHookAddressResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse") } func init() { @@ -310,43 +402,48 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 566 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0x33, 0xb5, 0x46, 0x3b, 0xa2, 0x92, 0x69, 0x91, 0x1a, 0xea, 0x46, 0xc7, 0x22, 0x29, - 0xd4, 0x1d, 0xd3, 0xf6, 0x64, 0x15, 0xec, 0x56, 0xbc, 0x48, 0x40, 0x17, 0x11, 0x14, 0x21, 0x4c, - 0xd2, 0xe9, 0x36, 0xd8, 0xdd, 0x97, 0xce, 0xce, 0x8a, 0xa1, 0xf4, 0xa2, 0xe0, 0x59, 0xf0, 0xe8, - 0x77, 0xf0, 0x73, 0xf4, 0x58, 0xe8, 0xc5, 0x53, 0x90, 0xc4, 0x4f, 0x90, 0x9b, 0x78, 0x91, 0xcc, - 0x4c, 0x5a, 0xeb, 0xc6, 0x25, 0xd6, 0xdb, 0x32, 0xef, 0xff, 0xfe, 0xef, 0xfd, 0xde, 0x7b, 0x2c, - 0x2e, 0x43, 0x1c, 0x42, 0xdc, 0x8c, 0x99, 0x82, 0xd7, 0x22, 0xda, 0xe4, 0x0d, 0x05, 0xb2, 0xcd, - 0xde, 0x54, 0xea, 0x42, 0xf1, 0x0a, 0xdb, 0x49, 0x84, 0x6c, 0xbb, 0x2d, 0x09, 0x0a, 0xc8, 0x9c, - 0x55, 0xba, 0xbf, 0x2b, 0x5d, 0xab, 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 0x7b, 0xd5, 0xfd, 0xae, 0x83, 0x0e, 0xba, 0x0e, 0xfa, 0xd6, 0x75, 0xd0, 0xc7, 0x9e, 0x93, - 0x3b, 0xe8, 0x39, 0xb9, 0xaf, 0x3d, 0x27, 0xf7, 0x72, 0x39, 0x68, 0xaa, 0xad, 0xa4, 0xee, 0x36, - 0x20, 0x64, 0x91, 0x48, 0x94, 0x84, 0xe8, 0x36, 0xc8, 0x60, 0xf8, 0xcd, 0xde, 0x9e, 0x2c, 0xa7, - 0xda, 0x2d, 0x11, 0xd7, 0xf3, 0xfa, 0xaf, 0xb8, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x28, 0x2a, - 0x3f, 0xc8, 0xf4, 0x05, 0x00, 0x00, + // 653 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x4d, 0x4f, 0x53, 0x4d, + 0x14, 0xc7, 0x7b, 0x9f, 0x47, 0x6a, 0x18, 0xdf, 0x60, 0xc4, 0xb7, 0x8a, 0xb7, 0x32, 0x12, 0x02, + 0x09, 0x76, 0xe4, 0x65, 0x25, 0x12, 0xe8, 0x45, 0xd1, 0x04, 0x49, 0xf4, 0xba, 0xd2, 0x4d, 0x33, + 0x6d, 0x87, 0xd2, 0xc0, 0xbd, 0xa7, 0xcc, 0x4c, 0xd5, 0x86, 0xb0, 0x71, 0xe1, 0xda, 0xc4, 0xa5, + 0xdf, 0xc1, 0xcf, 0xc1, 0x92, 0x84, 0x8d, 0xab, 0x46, 0xc1, 0xf8, 0x01, 0xfa, 0x09, 0x4c, 0xe7, + 0x9e, 0x2a, 0xd0, 0x72, 0xd3, 0xe2, 0xaa, 0x37, 0xe7, 0xe5, 0x7f, 0xce, 0x6f, 0xce, 0x39, 0x29, + 0x19, 0x07, 0x1d, 0x80, 0x2e, 0x6b, 0x6e, 0x60, 0x43, 0x86, 0x6b, 0xa2, 0x60, 0x40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, 0x72, 0xc8, 0xf5, 0xce, 0xfb, 0x44, 0x17, + 0xbb, 0xa8, 0x1d, 0x7b, 0x34, 0xa9, 0xec, 0x3f, 0x28, 0x20, 0xcd, 0x53, 0x4b, 0x93, 0xa5, 0x0b, + 0xf1, 0x34, 0xd1, 0xc2, 0xf0, 0x6d, 0xfb, 0xbb, 0xc3, 0xdb, 0x77, 0x9f, 0xee, 0x3b, 0x64, 0xb0, + 0x6d, 0x29, 0xe9, 0x5c, 0xb7, 0x1d, 0x76, 0xb8, 0x8c, 0xd4, 0xa3, 0xb3, 0x25, 0x23, 0xd9, 0x92, + 0x25, 0x9b, 0xa7, 0x73, 0xdd, 0x90, 0xe5, 0xd6, 0x14, 0x04, 0x39, 0x3c, 0x32, 0xbe, 0x8d, 0x1f, + 0x3b, 0xf4, 0x87, 0x43, 0xae, 0x75, 0x5c, 0x68, 0xba, 0xd0, 0x45, 0x73, 0x71, 0x77, 0x95, 0x5a, + 0x3c, 0xbb, 0x00, 0x12, 0x3e, 0xb1, 0x84, 0x0b, 0x74, 0xbe, 0xa7, 0xd9, 0xe5, 0xad, 0x66, 0x4e, + 0xcb, 0xb0, 0x98, 0x5b, 0x07, 0xd8, 0xf0, 0x56, 0x77, 0x0f, 0x5c, 0x67, 0xef, 0xc0, 0x75, 0xbe, + 0x1f, 0xb8, 0xce, 0xa7, 0x43, 0x37, 0xb1, 0x77, 0xe8, 0x26, 0xbe, 0x1d, 0xba, 0x89, 0x37, 0x33, + 0xa5, 0xb2, 0x59, 0xaf, 0xe6, 0x33, 0x05, 0x08, 0x78, 0x28, 0xab, 0x46, 0x41, 0x78, 0x1f, 0x54, + 0xa9, 0xf5, 0xcd, 0xdf, 0x1f, 0x2f, 0x68, 0x6a, 0x15, 0xa9, 0xf3, 0x49, 0xfb, 0x3f, 0x33, 0xf3, + 0x3b, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x1b, 0x6a, 0xf2, 0x46, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -361,10 +458,18 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Params returns the total set of minting parameters. + // Params defines a gRPC query method that returns the tokenfactory module's + // parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // DenomAuthorityMetadata defines a gRPC query method for fetching + // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(ctx context.Context, in *QueryDenomAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryDenomAuthorityMetadataResponse, error) + // DenomsFromCreator defines a gRPC query method for fetching all + // denominations created by a specific admin/creator. DenomsFromCreator(ctx context.Context, in *QueryDenomsFromCreatorRequest, opts ...grpc.CallOption) (*QueryDenomsFromCreatorResponse, error) + // BeforeSendHookAddress defines a gRPC query method for + // getting the address registered for the before send hook. + BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) } type queryClient struct { @@ -402,12 +507,29 @@ func (c *queryClient) DenomsFromCreator(ctx context.Context, in *QueryDenomsFrom return out, nil } +func (c *queryClient) BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) { + out := new(QueryBeforeSendHookAddressResponse) + err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { - // Params returns the total set of minting parameters. + // Params defines a gRPC query method that returns the tokenfactory module's + // parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // DenomAuthorityMetadata defines a gRPC query method for fetching + // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(context.Context, *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error) + // DenomsFromCreator defines a gRPC query method for fetching all + // denominations created by a specific admin/creator. DenomsFromCreator(context.Context, *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) + // BeforeSendHookAddress defines a gRPC query method for + // getting the address registered for the before send hook. + BeforeSendHookAddress(context.Context, *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -423,6 +545,9 @@ func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenomsFromCreator not implemented") } +func (*UnimplementedQueryServer) BeforeSendHookAddress(ctx context.Context, req *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BeforeSendHookAddress not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -482,6 +607,24 @@ func _Query_DenomsFromCreator_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_BeforeSendHookAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBeforeSendHookAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BeforeSendHookAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BeforeSendHookAddress(ctx, req.(*QueryBeforeSendHookAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "osmosis.tokenfactory.v1beta1.Query", HandlerType: (*QueryServer)(nil), @@ -498,6 +641,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "DenomsFromCreator", Handler: _Query_DenomsFromCreator_Handler, }, + { + MethodName: "BeforeSendHookAddress", + Handler: _Query_BeforeSendHookAddress_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "osmosis/tokenfactory/v1beta1/query.proto", @@ -579,17 +726,10 @@ func (m *QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l - if len(m.Subdenom) > 0 { - i -= len(m.Subdenom) - copy(dAtA[i:], m.Subdenom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Subdenom))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) i-- dAtA[i] = 0xa } @@ -691,6 +831,66 @@ func (m *QueryDenomsFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *QueryBeforeSendHookAddressRequest) 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 *QueryBeforeSendHookAddressRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryBeforeSendHookAddressResponse) 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 *QueryBeforeSendHookAddressResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CosmwasmAddress) > 0 { + i -= len(m.CosmwasmAddress) + copy(dAtA[i:], m.CosmwasmAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmwasmAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -728,11 +928,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Size() (n int) { } var l int _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Subdenom) + l = len(m.Denom) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -778,6 +974,32 @@ func (m *QueryDenomsFromCreatorResponse) Size() (n int) { return n } +func (m *QueryBeforeSendHookAddressRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryBeforeSendHookAddressResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CosmwasmAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -948,7 +1170,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -976,11 +1198,144 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDenomAuthorityMetadataResponse) 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 ErrIntOverflowQuery + } + 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: QueryDenomAuthorityMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AuthorityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDenomsFromCreatorRequest) 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 ErrIntOverflowQuery + } + 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: QueryDenomsFromCreatorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1008,7 +1363,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Subdenom = string(dAtA[iNdEx:postIndex]) + m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1031,7 +1386,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1054,17 +1409,17 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1074,24 +1429,23 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AuthorityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -1114,7 +1468,7 @@ func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { +func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1137,15 +1491,15 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomsFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1173,7 +1527,7 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1196,7 +1550,7 @@ func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { +func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1219,15 +1573,15 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDenomsFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1255,7 +1609,7 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) + m.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 2cfb3a2cd..5d75e90ba 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -62,26 +62,15 @@ func request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["creator"] + val, ok = pathParams["denom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") } - protoReq.Creator, err = runtime.String(val) + protoReq.Denom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) - } - - val, ok = pathParams["subdenom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") - } - - protoReq.Subdenom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) } msg, err := client.DenomAuthorityMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -100,26 +89,15 @@ func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["creator"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") - } - - protoReq.Creator, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) - } - - val, ok = pathParams["subdenom"] + val, ok = pathParams["denom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") } - protoReq.Subdenom, err = runtime.String(val) + protoReq.Denom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) } msg, err := server.DenomAuthorityMetadata(ctx, &protoReq) @@ -181,6 +159,60 @@ func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runt } +func request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBeforeSendHookAddressRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["denom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + } + + protoReq.Denom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + } + + msg, err := client.BeforeSendHookAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBeforeSendHookAddressRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["denom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + } + + protoReq.Denom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + } + + msg, err := server.BeforeSendHookAddress(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -256,6 +288,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -357,15 +412,37 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "tokenfactory", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_BeforeSendHookAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "before_send_hook"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -374,4 +451,6 @@ var ( forward_Query_DenomAuthorityMetadata_0 = runtime.ForwardResponseMessage forward_Query_DenomsFromCreator_0 = runtime.ForwardResponseMessage + + forward_Query_BeforeSendHookAddress_0 = runtime.ForwardResponseMessage ) diff --git a/x/tokenfactory/types/tx.go b/x/tokenfactory/types/tx.go new file mode 100644 index 000000000..acfad49ba --- /dev/null +++ b/x/tokenfactory/types/tx.go @@ -0,0 +1,33 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (msg MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) +} + +func (msg MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority") + } + return nil +} From 864b5b8008f26f01eb8a2e68dc47f50e14561d71 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 4 Sep 2023 15:06:45 +0400 Subject: [PATCH 085/307] add upd params --- x/tokenfactory/keeper/keeper.go | 8 ++++++++ x/tokenfactory/keeper/keeper_test.go | 2 +- x/tokenfactory/keeper/msg_server.go | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 5e5751486..36f3c53f6 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -20,6 +20,7 @@ type ( accountKeeper types.AccountKeeper bankKeeper types.BankKeeper contractKeeper types.ContractKeeper + authority string } ) @@ -29,12 +30,14 @@ func NewKeeper( storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, + authority string, ) Keeper { return Keeper{ cdc: cdc, storeKey: storeKey, accountKeeper: accountKeeper, bankKeeper: bankKeeper, + authority: authority, } } @@ -43,6 +46,11 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } +// Logger returns a logger for the x/tokenfactory module +func (k Keeper) GetAuthority() string { + return k.authority +} + // GetDenomPrefixStore returns the substore for a specific denom func (k Keeper) GetDenomPrefixStore(ctx sdk.Context, denom string) sdk.KVStore { store := ctx.KVStore(k.storeKey) diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index 84db02560..dfccb9b4a 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -54,7 +54,7 @@ func (suite *KeeperTestSuite) Setup() { tokeFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper tokeFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( sdktypes.NewCoins(sdktypes.NewInt64Coin(suite.defaultDenom, TopUpCoinsAmount)), - 100000, + "", )) suite.msgServer = keeper.NewMsgServerImpl(*tokeFactoryKeeper) diff --git a/x/tokenfactory/keeper/msg_server.go b/x/tokenfactory/keeper/msg_server.go index dfed15f28..3df06a489 100644 --- a/x/tokenfactory/keeper/msg_server.go +++ b/x/tokenfactory/keeper/msg_server.go @@ -3,7 +3,9 @@ package keeper import ( "context" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/neutron-org/neutron/x/tokenfactory/types" ) @@ -231,3 +233,21 @@ func (server msgServer) SetBeforeSendHook(goCtx context.Context, msg *types.MsgS return &types.MsgSetBeforeSendHookResponse{}, nil } + +// UpdateParams updates the module parameters +func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + //if err := req.ValidateBasic(); err != nil { + // return nil, err + //} + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} From d1be5cec5de9d0f14c5ca12c9031e9e0ce247819 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 4 Sep 2023 15:06:57 +0400 Subject: [PATCH 086/307] upd bindings --- wasmbinding/bindings/msg.go | 8 +++++++- wasmbinding/message_plugin.go | 28 +++++++++++++++++++++++++++ wasmbinding/test/custom_query_test.go | 2 +- 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 8dcccba8f..ba381daf6 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -41,7 +41,8 @@ type NeutronMsg struct { /// Contracts can burn native tokens for an existing factory denom /// that they are the admin of. /// Currently, the burn from address must be the admin contract. - BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` + BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` + SetBeforeSend *SetBeforeSend `json:"set_before_send,omitempty"` // Cron types AddSchedule *AddSchedule `json:"add_schedule,omitempty"` @@ -212,6 +213,11 @@ type BurnTokens struct { BurnFromAddress string `json:"burn_from_address"` } +type SetBeforeSend struct { + Denom string `json:"denom"` + CosmWasmAddr string `json:"mint_to_address"` +} + // AddSchedule adds new schedule to the cron module type AddSchedule struct { Name string `json:"name"` diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 4fc27b93c..28994786f 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -117,6 +117,9 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre if contractMsg.MintTokens != nil { return m.mintTokens(ctx, contractAddr, contractMsg.MintTokens) } + if contractMsg.SetBeforeSend != nil { + return m.setBeforeSend(ctx, contractAddr, contractMsg.SetBeforeSend) + } if contractMsg.ChangeAdmin != nil { return m.changeAdmin(ctx, contractAddr, contractMsg.ChangeAdmin) } @@ -499,6 +502,15 @@ func (m *CustomMessenger) mintTokens(ctx sdk.Context, contractAddr sdk.AccAddres return nil, nil, nil } +// mintTokens mints tokens of a specified denom to an address. +func (m *CustomMessenger) setBeforeSend(ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSend) ([]sdk.Event, [][]byte, error) { + err := PerformSetBeforeSend(m.TokenFactory, ctx, contractAddr, set) + if err != nil { + return nil, nil, errors.Wrap(err, "perform mint") + } + return nil, nil, nil +} + // PerformMint used with mintTokens to validate the mint message and mint through token factory. func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk.Context, contractAddr sdk.AccAddress, mint *bindings.MintTokens) error { rcpt, err := parseAddress(mint.MintToAddress) @@ -527,6 +539,22 @@ func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk return nil } +func PerformSetBeforeSend(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSend) error { + sdkMsg := tokenfactorytypes.NewMsgSetBeforeSendHook(contractAddr.String(), set.Denom, set.CosmWasmAddr) + if err := sdkMsg.ValidateBasic(); err != nil { + return err + } + + // SetBeforeSend through token factory / message server + msgServer := tokenfactorykeeper.NewMsgServerImpl(*f) + _, err := msgServer.SetBeforeSendHook(sdk.WrapSDKContext(ctx), sdkMsg) + if err != nil { + return errors.Wrap(err, "set before send from message") + } + + return nil +} + // changeAdmin changes the admin. func (m *CustomMessenger) changeAdmin(ctx sdk.Context, contractAddr sdk.AccAddress, changeAdmin *bindings.ChangeAdmin) ([]sdk.Event, [][]byte, error) { err := ChangeAdmin(m.TokenFactory, ctx, contractAddr, changeAdmin) diff --git a/wasmbinding/test/custom_query_test.go b/wasmbinding/test/custom_query_test.go index c4b524486..563212905 100644 --- a/wasmbinding/test/custom_query_test.go +++ b/wasmbinding/test/custom_query_test.go @@ -250,7 +250,7 @@ func (suite *CustomQuerierTestSuite) TestDenomAdmin() { ) err := neutron.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.NewParams( - sdk.NewCoins(sdk.NewInt64Coin(tokenfactorytypes.DefaultNeutronDenom, 10_000_000)), + sdk.NewCoins(sdk.NewInt64Coin("untrn", 10_000_000)), FeeCollectorAddress, )) suite.Require().NoError(err) From ad436d3db082c404538459ffd0c21301d8903da2 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 4 Sep 2023 15:07:08 +0400 Subject: [PATCH 087/307] add authorities --- app/app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/app.go b/app/app.go index d8f73e7ee..844f10982 100644 --- a/app/app.go +++ b/app/app.go @@ -602,6 +602,7 @@ func New( app.keys[tokenfactorytypes.StoreKey], app.AccountKeeper, app.BankKeeper.WithMintCoinsRestriction(tokenfactorytypes.NewTokenFactoryDenomMintCoinsRestriction()), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.TokenFactoryKeeper = &tokenFactoryKeeper @@ -653,6 +654,7 @@ func New( app.ContractManagerKeeper, interchainqueriesmodulekeeper.Verifier{}, interchainqueriesmodulekeeper.TransactionVerifier{}, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.InterchainTxsKeeper = *interchaintxskeeper.NewKeeper( appCodec, @@ -662,6 +664,7 @@ func New( app.ICAControllerKeeper, app.ContractManagerKeeper, app.FeeKeeper, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper) From 2a88b33c63832d490b94b570358d0b290e139fea Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 15:23:57 +0400 Subject: [PATCH 088/307] remove NewHandler unused code --- proto/neutron/interchaintxs/v1/tx.proto | 2 +- x/interchainqueries/handler.go | 36 ------------------------- x/interchaintxs/handler.go | 34 ----------------------- x/transfer/module.go | 31 --------------------- 4 files changed, 1 insertion(+), 102 deletions(-) delete mode 100644 x/interchainqueries/handler.go delete mode 100644 x/interchaintxs/handler.go diff --git a/proto/neutron/interchaintxs/v1/tx.proto b/proto/neutron/interchaintxs/v1/tx.proto index 3ba09f2e3..1ffd51e06 100644 --- a/proto/neutron/interchaintxs/v1/tx.proto +++ b/proto/neutron/interchaintxs/v1/tx.proto @@ -60,7 +60,7 @@ message MsgSubmitTx { message MsgSubmitTxResponse { // channel's sequence_id for outgoing ibc packet. Unique per a channel. uint64 sequence_id = 1; - // channel src channel on neutron side trasaction was submitted from + // channel src channel on neutron side transaction was submitted from string channel = 2; } diff --git a/x/interchainqueries/handler.go b/x/interchainqueries/handler.go deleted file mode 100644 index fbe1c03fe..000000000 --- a/x/interchainqueries/handler.go +++ /dev/null @@ -1,36 +0,0 @@ -package interchainqueries - -import ( - "fmt" - - "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - - "github.com/neutron-org/neutron/x/interchainqueries/keeper" - "github.com/neutron-org/neutron/x/interchainqueries/types" -) - -// NewHandler ... -func NewHandler(k keeper.Keeper) sdk.Handler { - msgServer := keeper.NewMsgServerImpl(k) - - return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { - ctx = ctx.WithEventManager(sdk.NewEventManager()) - - switch msg := msg.(type) { - case *types.MsgRegisterInterchainQuery: - res, err := msgServer.RegisterInterchainQuery(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - - case *types.MsgSubmitQueryResult: - res, err := msgServer.SubmitQueryResult(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - - default: - errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - } -} diff --git a/x/interchaintxs/handler.go b/x/interchaintxs/handler.go deleted file mode 100644 index 30a574948..000000000 --- a/x/interchaintxs/handler.go +++ /dev/null @@ -1,34 +0,0 @@ -package interchaintxs - -import ( - "fmt" - - "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - - "github.com/neutron-org/neutron/x/interchaintxs/keeper" - "github.com/neutron-org/neutron/x/interchaintxs/types" -) - -func NewHandler(k keeper.Keeper) sdk.Handler { - msgServer := keeper.NewMsgServerImpl(k) - - return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { - ctx = ctx.WithEventManager(sdk.NewEventManager()) - - switch msg := msg.(type) { - case *types.MsgRegisterInterchainAccount: - res, err := msgServer.RegisterInterchainAccount(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - case *types.MsgSubmitTx: - res, err := msgServer.SubmitTx(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - - default: - errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - } -} diff --git a/x/transfer/module.go b/x/transfer/module.go index 967fe459e..b6873db43 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -1,22 +1,18 @@ package transfer import ( - "fmt" - "cosmossdk.io/core/appmodule" "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/ibc-go/v7/modules/apps/transfer" "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper" "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - feetypes "github.com/neutron-org/neutron/x/feerefunder/types" wrapkeeper "github.com/neutron-org/neutron/x/transfer/keeper" neutrontypes "github.com/neutron-org/neutron/x/transfer/types" ) @@ -129,30 +125,3 @@ func (am AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { func (am AppModule) Name() string { return am.AppModuleBasic.Name() } - -func NewHandler(k wrapkeeper.KeeperTransferWrapper) sdk.Handler { - return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { - ctx = ctx.WithEventManager(sdk.NewEventManager()) - - switch msg := msg.(type) { - case *types.MsgTransfer: - neutronMsg := neutrontypes.MsgTransfer{ - SourcePort: msg.SourcePort, - SourceChannel: msg.SourceChannel, - Token: msg.Token, - Sender: msg.Sender, - Receiver: msg.Receiver, - TimeoutHeight: msg.TimeoutHeight, - TimeoutTimestamp: msg.TimeoutTimestamp, - Fee: feetypes.Fee{}, - Memo: msg.Memo, - } - res, err := k.Transfer(sdk.WrapSDKContext(ctx), &neutronMsg) - return sdk.WrapServiceResult(ctx, res, err) - - default: - errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - } -} From 0cbcb329c7fa610b4470eec1664dbbb2694faea2 Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 16:02:13 +0400 Subject: [PATCH 089/307] cleanup other msgupdate --- x/interchaintxs/types/tx.go | 20 ++++++++++---------- x/interchaintxs/types/tx.pb.go | 2 +- x/tokenfactory/types/tx.go | 16 +++++++++------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/x/interchaintxs/types/tx.go b/x/interchaintxs/types/tx.go index 4f86dd2ab..90687d161 100644 --- a/x/interchaintxs/types/tx.go +++ b/x/interchaintxs/types/tx.go @@ -18,7 +18,7 @@ const interchainAccountIDLimit = 128 - len("neutron1unyuj8qnmygvzuex3dwmg9yzt9alhvyeat0uu0jedg2wj33efl5qmysp02") - // just a random contract address len(".") -var _ codectypes.UnpackInterfacesMessage = MsgSubmitTx{} +var _ codectypes.UnpackInterfacesMessage = &MsgSubmitTx{} func (msg *MsgRegisterInterchainAccount) ValidateBasic() error { if len(msg.ConnectionId) == 0 { @@ -53,13 +53,13 @@ func (msg *MsgRegisterInterchainAccount) Type() string { return "register-interchain-account" } -func (msg MsgRegisterInterchainAccount) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) +func (msg *MsgRegisterInterchainAccount) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) } //---------------------------------------------------------------- -func (msg MsgSubmitTx) ValidateBasic() error { +func (msg *MsgSubmitTx) ValidateBasic() error { if err := msg.Fee.Validate(); err != nil { return err } @@ -87,21 +87,21 @@ func (msg MsgSubmitTx) ValidateBasic() error { return nil } -func (msg MsgSubmitTx) GetSigners() []sdk.AccAddress { +func (msg *MsgSubmitTx) GetSigners() []sdk.AccAddress { fromAddress, _ := sdk.AccAddressFromBech32(msg.FromAddress) return []sdk.AccAddress{fromAddress} } -func (msg MsgSubmitTx) Route() string { +func (msg *MsgSubmitTx) Route() string { return RouterKey } -func (msg MsgSubmitTx) Type() string { +func (msg *MsgSubmitTx) Type() string { return "submit-tx" } -func (msg MsgSubmitTx) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) +func (msg *MsgSubmitTx) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) } // PackTxMsgAny marshals the sdk.Msg payload to a protobuf Any type @@ -120,7 +120,7 @@ func PackTxMsgAny(sdkMsg sdk.Msg) (*codectypes.Any, error) { } // implements UnpackInterfacesMessage.UnpackInterfaces (https://github.com/cosmos/cosmos-sdk/blob/d07d35f29e0a0824b489c552753e8798710ff5a8/codec/types/interface_registry.go#L60) -func (msg MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { +func (msg *MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { var sdkMsg sdk.Msg for _, m := range msg.Msgs { if err := unpacker.UnpackAny(m, &sdkMsg); err != nil { diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 22d769414..34a62cb7b 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -165,7 +165,7 @@ var xxx_messageInfo_MsgSubmitTx proto.InternalMessageInfo type MsgSubmitTxResponse struct { // channel's sequence_id for outgoing ibc packet. Unique per a channel. SequenceId uint64 `protobuf:"varint,1,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` - // channel src channel on neutron side trasaction was submitted from + // channel src channel on neutron side transaction was submitted from Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` } diff --git a/x/tokenfactory/types/tx.go b/x/tokenfactory/types/tx.go index acfad49ba..9c12198b2 100644 --- a/x/tokenfactory/types/tx.go +++ b/x/tokenfactory/types/tx.go @@ -5,15 +5,17 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func (msg MsgUpdateParams) Route() string { +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { return RouterKey } -func (msg MsgUpdateParams) Type() string { +func (msg *MsgUpdateParams) Type() string { return "update-params" } -func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress { +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { authority, err := sdk.AccAddressFromBech32(msg.Authority) if err != nil { // should never happen as valid basic rejects invalid addresses panic(err.Error()) @@ -21,13 +23,13 @@ func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{authority} } -func (msg MsgUpdateParams) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) } -func (msg MsgUpdateParams) ValidateBasic() error { +func (msg *MsgUpdateParams) ValidateBasic() error { if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { - return errorsmod.Wrap(err, "authority") + return errorsmod.Wrap(err, "authority is invalid") } return nil } From 4be0d0a4c33bef17c04bf9a2696d8e8ec2a10a3b Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 16:07:50 +0400 Subject: [PATCH 090/307] feat: add MsgUpdateParams to contractmanager --- app/app.go | 1 + proto/neutron/contractmanager/tx.proto | 1 - .../contractmanager/keeper/contractmanager.go | 1 + x/contractmanager/keeper/keeper.go | 7 ++++ x/contractmanager/keeper/msg_server.go | 40 +++++++++++++++++++ x/contractmanager/module.go | 1 + x/contractmanager/types/tx.go | 35 ++++++++++++++++ 7 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 x/contractmanager/keeper/msg_server.go create mode 100644 x/contractmanager/types/tx.go diff --git a/app/app.go b/app/app.go index 844f10982..9a73456a8 100644 --- a/app/app.go +++ b/app/app.go @@ -519,6 +519,7 @@ func New( keys[contractmanagermoduletypes.StoreKey], keys[contractmanagermoduletypes.MemStoreKey], &app.WasmKeeper, + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper) diff --git a/proto/neutron/contractmanager/tx.proto b/proto/neutron/contractmanager/tx.proto index 51b4e01fe..e84aaddf0 100644 --- a/proto/neutron/contractmanager/tx.proto +++ b/proto/neutron/contractmanager/tx.proto @@ -39,4 +39,3 @@ message MsgUpdateParams { // // Since: 0.47 message MsgUpdateParamsResponse {} - diff --git a/testutil/contractmanager/keeper/contractmanager.go b/testutil/contractmanager/keeper/contractmanager.go index cfeeff451..70eb3694c 100644 --- a/testutil/contractmanager/keeper/contractmanager.go +++ b/testutil/contractmanager/keeper/contractmanager.go @@ -35,6 +35,7 @@ func ContractManagerKeeper(t testing.TB, wasmKeeper types.WasmKeeper) (*keeper.K storeKey, memStoreKey, wasmKeeper, + "", // TODO ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/x/contractmanager/keeper/keeper.go b/x/contractmanager/keeper/keeper.go index 6d9c3569f..1a431b6c0 100644 --- a/x/contractmanager/keeper/keeper.go +++ b/x/contractmanager/keeper/keeper.go @@ -16,6 +16,7 @@ type ( storeKey storetypes.StoreKey memKey storetypes.StoreKey wasmKeeper types.WasmKeeper + authority string } ) @@ -24,15 +25,21 @@ func NewKeeper( storeKey, memKey storetypes.StoreKey, wasmKeeper types.WasmKeeper, + authority string, ) *Keeper { return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, wasmKeeper: wasmKeeper, + authority: authority, } } +func (k Keeper) GetAuthority() string { + return k.authority +} + func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } diff --git a/x/contractmanager/keeper/msg_server.go b/x/contractmanager/keeper/msg_server.go new file mode 100644 index 000000000..5b382dd21 --- /dev/null +++ b/x/contractmanager/keeper/msg_server.go @@ -0,0 +1,40 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/contractmanager/types" +) + +type msgServer struct { + Keeper +} + +// NewMsgServerImpl returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServerImpl(keeper Keeper) types.MsgServer { + return &msgServer{Keeper: keeper} +} + +var _ types.MsgServer = msgServer{} + +// UpdateParams updates the module parameters +func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index cfecf7588..0ee3cf65a 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -128,6 +128,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // 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) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) diff --git a/x/contractmanager/types/tx.go b/x/contractmanager/types/tx.go new file mode 100644 index 000000000..9c12198b2 --- /dev/null +++ b/x/contractmanager/types/tx.go @@ -0,0 +1,35 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority is invalid") + } + return nil +} From be18760ab887dc6df51bba08fe2c27f11a9aca8d Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 16:24:11 +0400 Subject: [PATCH 091/307] feat: add cron, feeburner, feerefunder MsgUpdate --- app/app.go | 7 +++--- proto/neutron/cron/tx.proto | 1 - x/cron/keeper/keeper.go | 7 ++++++ x/cron/keeper/msg_server.go | 40 ++++++++++++++++++++++++++++++ x/cron/module.go | 9 ++++--- x/cron/types/tx.go | 35 ++++++++++++++++++++++++++ x/feeburner/keeper/keeper.go | 7 ++++++ x/feeburner/keeper/msg_server.go | 40 ++++++++++++++++++++++++++++++ x/feeburner/module.go | 1 + x/feeburner/types/tx.go | 35 ++++++++++++++++++++++++++ x/feerefunder/keeper/keeper.go | 7 ++++++ x/feerefunder/keeper/msg_server.go | 40 ++++++++++++++++++++++++++++++ x/feerefunder/module.go | 1 + x/feerefunder/types/tx.go | 35 ++++++++++++++++++++++++++ 14 files changed, 257 insertions(+), 8 deletions(-) create mode 100644 x/cron/keeper/msg_server.go create mode 100644 x/cron/types/tx.go create mode 100644 x/feeburner/keeper/msg_server.go create mode 100644 x/feeburner/types/tx.go create mode 100644 x/feerefunder/keeper/msg_server.go create mode 100644 x/feerefunder/types/tx.go diff --git a/app/app.go b/app/app.go index 9a73456a8..156a1ad98 100644 --- a/app/app.go +++ b/app/app.go @@ -522,7 +522,7 @@ func New( authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) - app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper) + app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper, authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) feeModule := feerefunder.NewAppModule(appCodec, *app.FeeKeeper, app.AccountKeeper, app.BankKeeper) app.FeeBurnerKeeper = feeburnerkeeper.NewKeeper( @@ -531,6 +531,7 @@ func New( keys[feeburnertypes.MemStoreKey], app.AccountKeeper, app.BankKeeper, + authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), ) feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) @@ -668,7 +669,7 @@ func New( authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper) + app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper, authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) wasmOpts = append(wasmbinding.RegisterCustomPlugins(&app.InterchainTxsKeeper, &app.InterchainQueriesKeeper, app.TransferKeeper, &app.AdminmoduleKeeper, app.FeeBurnerKeeper, app.FeeKeeper, &app.BankKeeper, app.TokenFactoryKeeper, &app.CronKeeper), wasmOpts...) queryPlugins := wasmkeeper.WithQueryPlugins( @@ -698,7 +699,7 @@ func New( wasmHooks.ContractKeeper = &app.WasmKeeper app.CronKeeper.WasmMsgServer = wasmkeeper.NewMsgServerImpl(&app.WasmKeeper) - cronModule := cron.NewAppModule(appCodec, &app.CronKeeper) + cronModule := cron.NewAppModule(appCodec, app.CronKeeper) if len(enabledProposals) != 0 { app.AdminmoduleKeeper.Router().AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) diff --git a/proto/neutron/cron/tx.proto b/proto/neutron/cron/tx.proto index fef6a57f1..44681dad1 100644 --- a/proto/neutron/cron/tx.proto +++ b/proto/neutron/cron/tx.proto @@ -39,4 +39,3 @@ message MsgUpdateParams { // // Since: 0.47 message MsgUpdateParamsResponse {} - diff --git a/x/cron/keeper/keeper.go b/x/cron/keeper/keeper.go index f81040e10..c5e582005 100644 --- a/x/cron/keeper/keeper.go +++ b/x/cron/keeper/keeper.go @@ -35,6 +35,7 @@ type ( memKey storetypes.StoreKey accountKeeper types.AccountKeeper WasmMsgServer types.WasmMsgServer + authority string } ) @@ -43,15 +44,21 @@ func NewKeeper( storeKey, memKey storetypes.StoreKey, accountKeeper types.AccountKeeper, + authority string, ) *Keeper { return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, accountKeeper: accountKeeper, + authority: authority, } } +func (k Keeper) GetAuthority() string { + return k.authority +} + func (k *Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } diff --git a/x/cron/keeper/msg_server.go b/x/cron/keeper/msg_server.go new file mode 100644 index 000000000..6607dd09a --- /dev/null +++ b/x/cron/keeper/msg_server.go @@ -0,0 +1,40 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/cron/types" +) + +type msgServer struct { + Keeper +} + +// NewMsgServerImpl returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServerImpl(keeper Keeper) types.MsgServer { + return &msgServer{Keeper: keeper} +} + +var _ types.MsgServer = msgServer{} + +// UpdateParams updates the module parameters +func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/cron/module.go b/x/cron/module.go index 0c911b391..a2ba784fd 100644 --- a/x/cron/module.go +++ b/x/cron/module.go @@ -102,12 +102,12 @@ var _ appmodule.AppModule = AppModule{} type AppModule struct { AppModuleBasic - keeper *keeper.Keeper + keeper keeper.Keeper } func NewAppModule( cdc codec.Codec, - keeper *keeper.Keeper, + keeper keeper.Keeper, ) AppModule { return AppModule{ AppModuleBasic: NewAppModuleBasic(cdc), @@ -129,6 +129,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // 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) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) @@ -140,14 +141,14 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.Ra // Initialize global index to index in genesis state cdc.MustUnmarshalJSON(gs, &genState) - InitGenesis(ctx, *am.keeper, genState) + InitGenesis(ctx, am.keeper, genState) return []abci.ValidatorUpdate{} } // ExportGenesis returns the module's exported genesis state as raw JSON bytes. func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := ExportGenesis(ctx, *am.keeper) + genState := ExportGenesis(ctx, am.keeper) return cdc.MustMarshalJSON(genState) } diff --git a/x/cron/types/tx.go b/x/cron/types/tx.go new file mode 100644 index 000000000..9c12198b2 --- /dev/null +++ b/x/cron/types/tx.go @@ -0,0 +1,35 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority is invalid") + } + return nil +} diff --git a/x/feeburner/keeper/keeper.go b/x/feeburner/keeper/keeper.go index 842baea35..e65220b29 100644 --- a/x/feeburner/keeper/keeper.go +++ b/x/feeburner/keeper/keeper.go @@ -24,6 +24,7 @@ type ( accountKeeper types.AccountKeeper bankKeeper types.BankKeeper + authority string } ) @@ -35,6 +36,7 @@ func NewKeeper( memKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, + authority string, ) *Keeper { return &Keeper{ cdc: cdc, @@ -42,9 +44,14 @@ func NewKeeper( memKey: memKey, accountKeeper: accountKeeper, bankKeeper: bankKeeper, + authority: authority, } } +func (k Keeper) GetAuthority() string { + return k.authority +} + // RecordBurnedFees adds `amount` to the total amount of burned NTRN tokens func (k Keeper) RecordBurnedFees(ctx sdk.Context, amount sdk.Coin) { store := ctx.KVStore(k.storeKey) diff --git a/x/feeburner/keeper/msg_server.go b/x/feeburner/keeper/msg_server.go new file mode 100644 index 000000000..8ba291950 --- /dev/null +++ b/x/feeburner/keeper/msg_server.go @@ -0,0 +1,40 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/feeburner/types" +) + +type msgServer struct { + Keeper +} + +// NewMsgServerImpl returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServerImpl(keeper Keeper) types.MsgServer { + return &msgServer{Keeper: keeper} +} + +var _ types.MsgServer = msgServer{} + +// UpdateParams updates the module parameters +func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/feeburner/module.go b/x/feeburner/module.go index c17a896b7..4926f74ca 100644 --- a/x/feeburner/module.go +++ b/x/feeburner/module.go @@ -126,6 +126,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // 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) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) diff --git a/x/feeburner/types/tx.go b/x/feeburner/types/tx.go new file mode 100644 index 000000000..9c12198b2 --- /dev/null +++ b/x/feeburner/types/tx.go @@ -0,0 +1,35 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority is invalid") + } + return nil +} diff --git a/x/feerefunder/keeper/keeper.go b/x/feerefunder/keeper/keeper.go index a5196a3b4..5322fa3c6 100644 --- a/x/feerefunder/keeper/keeper.go +++ b/x/feerefunder/keeper/keeper.go @@ -23,6 +23,7 @@ type ( storeKey storetypes.StoreKey memKey storetypes.StoreKey channelKeeper types.ChannelKeeper + authority string } ) @@ -32,6 +33,7 @@ func NewKeeper( memKey storetypes.StoreKey, channelKeeper types.ChannelKeeper, bankKeeper types.BankKeeper, + authority string, ) *Keeper { return &Keeper{ cdc: cdc, @@ -39,9 +41,14 @@ func NewKeeper( memKey: memKey, channelKeeper: channelKeeper, bankKeeper: bankKeeper, + authority: authority, } } +func (k Keeper) GetAuthority() string { + return k.authority +} + func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } diff --git a/x/feerefunder/keeper/msg_server.go b/x/feerefunder/keeper/msg_server.go new file mode 100644 index 000000000..e43bd69ba --- /dev/null +++ b/x/feerefunder/keeper/msg_server.go @@ -0,0 +1,40 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/feerefunder/types" +) + +type msgServer struct { + Keeper +} + +// NewMsgServerImpl returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServerImpl(keeper Keeper) types.MsgServer { + return &msgServer{Keeper: keeper} +} + +var _ types.MsgServer = msgServer{} + +// UpdateParams updates the module parameters +func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/feerefunder/module.go b/x/feerefunder/module.go index 76b93d50a..ca33f35b6 100644 --- a/x/feerefunder/module.go +++ b/x/feerefunder/module.go @@ -134,6 +134,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // 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) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) } // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) diff --git a/x/feerefunder/types/tx.go b/x/feerefunder/types/tx.go new file mode 100644 index 000000000..9c12198b2 --- /dev/null +++ b/x/feerefunder/types/tx.go @@ -0,0 +1,35 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority is invalid") + } + return nil +} From fff249f34ad81b7d6ced4687c32ec64876014bf8 Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 19:09:02 +0400 Subject: [PATCH 092/307] add missing service registrations for msg types --- app/upgrades/v0.4.4/upgrades.go | 5 +- app/upgrades/v3/upgrades.go | 6 +- .../contractmanager/keeper/contractmanager.go | 4 +- testutil/cron/keeper/cron.go | 3 + testutil/feeburner/keeper/feeburner.go | 3 + testutil/feerefunder/keeper/fee.go | 3 + ...terchainqeries.go => interchainqueries.go} | 3 + .../interchaintxs/keeper/interchaintxs.go | 3 + wasmbinding/test/custom_message_test.go | 4 +- wasmbinding/test/custom_query_test.go | 4 +- x/contractmanager/types/codec.go | 11 +++- x/cron/types/codec.go | 8 +-- x/feeburner/types/codec.go | 12 ++-- x/feerefunder/types/codec.go | 11 +++- x/interchainqueries/keeper/msg_server.go | 6 +- x/interchainqueries/types/codec.go | 8 +++ x/interchainqueries/types/tx.go | 56 ++++++++++++++++--- x/interchaintxs/keeper/msg_server.go | 6 +- x/interchaintxs/types/tx.go | 31 ++++++++++ x/tokenfactory/keeper/admins_test.go | 5 ++ x/tokenfactory/keeper/genesis_test.go | 3 +- x/tokenfactory/keeper/keeper_test.go | 9 +-- x/tokenfactory/module.go | 2 +- x/tokenfactory/types/codec.go | 4 +- x/transfer/module.go | 2 +- 25 files changed, 168 insertions(+), 44 deletions(-) rename testutil/interchainqueries/keeper/{interchainqeries.go => interchainqueries.go} (89%) diff --git a/app/upgrades/v0.4.4/upgrades.go b/app/upgrades/v0.4.4/upgrades.go index bf05e2dff..57c0f0d86 100644 --- a/app/upgrades/v0.4.4/upgrades.go +++ b/app/upgrades/v0.4.4/upgrades.go @@ -57,7 +57,10 @@ func CreateUpgradeHandler( ctx.Logger().Info("Migrating TokenFactory Params...") tokenfactoryDefaultParams := tokenfactorytypes.DefaultParams() - keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactoryDefaultParams) + err = keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactoryDefaultParams) + if err != nil { + return vm, err + } ctx.Logger().Info("Upgrade complete") return vm, err diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index 5b0389dd3..beabd198e 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -33,7 +33,11 @@ func CreateUpgradeHandler( return vm, err } - keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.DefaultParams()) + err = keepers.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.DefaultParams()) + if err != nil { + return vm, err + } + vm, err = mm.RunMigrations(ctx, configurator, vm) if err != nil { return vm, err diff --git a/testutil/contractmanager/keeper/contractmanager.go b/testutil/contractmanager/keeper/contractmanager.go index 70eb3694c..9ef0b75ec 100644 --- a/testutil/contractmanager/keeper/contractmanager.go +++ b/testutil/contractmanager/keeper/contractmanager.go @@ -1,6 +1,8 @@ package keeper import ( + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "testing" tmdb "github.com/cometbft/cometbft-db" @@ -35,7 +37,7 @@ func ContractManagerKeeper(t testing.TB, wasmKeeper types.WasmKeeper) (*keeper.K storeKey, memStoreKey, wasmKeeper, - "", // TODO + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/testutil/cron/keeper/cron.go b/testutil/cron/keeper/cron.go index e2fff48dc..85fc35392 100644 --- a/testutil/cron/keeper/cron.go +++ b/testutil/cron/keeper/cron.go @@ -1,6 +1,8 @@ package keeper import ( + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "testing" tmdb "github.com/cometbft/cometbft-db" @@ -34,6 +36,7 @@ func CronKeeper(t testing.TB, wasmMsgServer types.WasmMsgServer, accountKeeper t storeKey, memStoreKey, accountKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) k.WasmMsgServer = wasmMsgServer diff --git a/testutil/feeburner/keeper/feeburner.go b/testutil/feeburner/keeper/feeburner.go index bea9b73a1..71f1e9e1c 100644 --- a/testutil/feeburner/keeper/feeburner.go +++ b/testutil/feeburner/keeper/feeburner.go @@ -1,6 +1,8 @@ package keeper import ( + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "testing" tmdb "github.com/cometbft/cometbft-db" @@ -39,6 +41,7 @@ func FeeburnerKeeperWithDeps(t testing.TB, accountKeeper types.AccountKeeper, ba memStoreKey, accountKeeper, bankkeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/testutil/feerefunder/keeper/fee.go b/testutil/feerefunder/keeper/fee.go index 940732526..d6ecd9a85 100644 --- a/testutil/feerefunder/keeper/fee.go +++ b/testutil/feerefunder/keeper/fee.go @@ -1,6 +1,8 @@ package keeper import ( + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "testing" tmdb "github.com/cometbft/cometbft-db" @@ -36,6 +38,7 @@ func FeeKeeper(t testing.TB, channelKeeper types.ChannelKeeper, bankKeeper types memStoreKey, channelKeeper, bankKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/testutil/interchainqueries/keeper/interchainqeries.go b/testutil/interchainqueries/keeper/interchainqueries.go similarity index 89% rename from testutil/interchainqueries/keeper/interchainqeries.go rename to testutil/interchainqueries/keeper/interchainqueries.go index 1eeddd187..c6d3cebb2 100644 --- a/testutil/interchainqueries/keeper/interchainqeries.go +++ b/testutil/interchainqueries/keeper/interchainqueries.go @@ -1,6 +1,8 @@ package keeper import ( + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "testing" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" @@ -47,6 +49,7 @@ func InterchainQueriesKeeper( contractManager, headerVerifier, txVerifier, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 55c9b43a9..7db23ee53 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -1,6 +1,8 @@ package keeper import ( + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "testing" tmdb "github.com/cometbft/cometbft-db" @@ -38,6 +40,7 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper icaControllerKeeper, managerKeeper, refunderKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index ada721a6a..1cf2c3a5a 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -60,8 +60,8 @@ func (suite *CustomMessengerTestSuite) SetupTest() { suite.contractOwner = keeper.RandomAccountAddress(suite.T()) err := suite.messenger.TokenFactory.SetParams(suite.ctx, tokenfactorytypes.NewParams( - sdk.NewCoins(sdk.NewInt64Coin(tokenfactorytypes.DefaultNeutronDenom, 10_000_000)), - FeeCollectorAddress, + sdk.NewCoins(sdk.NewInt64Coin(params.DefaultDenom, 10_000_000)), + 0, )) suite.Require().NoError(err) } diff --git a/wasmbinding/test/custom_query_test.go b/wasmbinding/test/custom_query_test.go index 563212905..b358a712e 100644 --- a/wasmbinding/test/custom_query_test.go +++ b/wasmbinding/test/custom_query_test.go @@ -250,8 +250,8 @@ func (suite *CustomQuerierTestSuite) TestDenomAdmin() { ) err := neutron.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.NewParams( - sdk.NewCoins(sdk.NewInt64Coin("untrn", 10_000_000)), - FeeCollectorAddress, + sdk.NewCoins(sdk.NewInt64Coin(params.DefaultDenom, 10_000_000)), + 0, )) suite.Require().NoError(err) diff --git a/x/contractmanager/types/codec.go b/x/contractmanager/types/codec.go index 24b7f62e5..a53442a0f 100644 --- a/x/contractmanager/types/codec.go +++ b/x/contractmanager/types/codec.go @@ -3,14 +3,19 @@ package types import ( "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/msgservice" ) func RegisterCodec(_ *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 } -func RegisterInterfaces(_ cdctypes.InterfaceRegistry) { - // this line is used by starport scaffolding # 3 +func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgUpdateParams{}, + ) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } var ( diff --git a/x/cron/types/codec.go b/x/cron/types/codec.go index 5c9dcb6db..a53442a0f 100644 --- a/x/cron/types/codec.go +++ b/x/cron/types/codec.go @@ -8,13 +8,13 @@ import ( ) func RegisterCodec(_ *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil)) - // this line is used by starport scaffolding # 3 - + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgUpdateParams{}, + ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/feeburner/types/codec.go b/x/feeburner/types/codec.go index 7520c216f..a53442a0f 100644 --- a/x/feeburner/types/codec.go +++ b/x/feeburner/types/codec.go @@ -3,15 +3,19 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - // this line is used by starport scaffolding # 1 + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" ) func RegisterCodec(_ *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 } -func RegisterInterfaces(_ cdctypes.InterfaceRegistry) { - // this line is used by starport scaffolding # 3 +func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgUpdateParams{}, + ) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } var ( diff --git a/x/feerefunder/types/codec.go b/x/feerefunder/types/codec.go index 24b7f62e5..a53442a0f 100644 --- a/x/feerefunder/types/codec.go +++ b/x/feerefunder/types/codec.go @@ -3,14 +3,19 @@ package types import ( "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/msgservice" ) func RegisterCodec(_ *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 } -func RegisterInterfaces(_ cdctypes.InterfaceRegistry) { - // this line is used by starport scaffolding # 3 +func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgUpdateParams{}, + ) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } var ( diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 414dd83f3..602a93d31 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -312,9 +312,9 @@ func (k msgServer) validateUpdateInterchainQueryParams( // UpdateParams updates the module parameters func (m msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - //if err := req.ValidateBasic(); err != nil { - // return nil, err - //} + if err := req.ValidateBasic(); err != nil { + return nil, err + } authority := m.Keeper.GetAuthority() if authority != req.Authority { return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) diff --git a/x/interchainqueries/types/codec.go b/x/interchainqueries/types/codec.go index b5530b3b0..770be2dce 100644 --- a/x/interchainqueries/types/codec.go +++ b/x/interchainqueries/types/codec.go @@ -3,6 +3,7 @@ package types import ( "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/msgservice" ) @@ -11,6 +12,13 @@ func RegisterCodec(cdc *codec.LegacyAmino) { } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgSubmitQueryResult{}, + &MsgRegisterInterchainQuery{}, + &MsgUpdateInterchainQueryRequest{}, + &MsgUpdateParams{}, + ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/interchainqueries/types/tx.go b/x/interchainqueries/types/tx.go index 139698e0e..bb698bf83 100644 --- a/x/interchainqueries/types/tx.go +++ b/x/interchainqueries/types/tx.go @@ -15,6 +15,7 @@ const ( MaxKVQueryKeysCount = 32 ) +var _ sdk.Msg = &MsgSubmitQueryResult{} var _ codectypes.UnpackInterfacesMessage = MsgSubmitQueryResult{} func (msg MsgSubmitQueryResult) Route() string { @@ -65,6 +66,20 @@ func (msg MsgSubmitQueryResult) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{senderAddr} } +// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces +func (msg MsgSubmitQueryResult) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { + var header exported.ClientMessage + if err := unpacker.UnpackAny(msg.Result.GetBlock().GetHeader(), &header); err != nil { + return err + } + + return unpacker.UnpackAny(msg.Result.GetBlock().GetNextBlockHeader(), &header) +} + +//---------------------------------------------------------------- + +var _ sdk.Msg = &MsgRegisterInterchainQuery{} + func (msg MsgRegisterInterchainQuery) Route() string { return RouterKey } @@ -123,15 +138,9 @@ func (msg MsgRegisterInterchainQuery) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{senderAddr} } -// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces -func (msg MsgSubmitQueryResult) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { - var header exported.ClientMessage - if err := unpacker.UnpackAny(msg.Result.GetBlock().GetHeader(), &header); err != nil { - return err - } +//---------------------------------------------------------------- - return unpacker.UnpackAny(msg.Result.GetBlock().GetNextBlockHeader(), &header) -} +var _ sdk.Msg = &MsgUpdateInterchainQueryRequest{} func (msg MsgUpdateInterchainQueryRequest) ValidateBasic() error { if msg.GetQueryId() == 0 { @@ -188,6 +197,37 @@ func (msg MsgUpdateInterchainQueryRequest) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{senderAddr} } +//---------------------------------------------------------------- + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errors.Wrap(err, "authority is invalid") + } + return nil +} + func validateKeys(keys []*KVKey) error { if uint64(len(keys)) > MaxKVQueryKeysCount { return errors.Wrapf(ErrTooManyKVQueryKeys, "keys count cannot be more than %d", MaxKVQueryKeysCount) diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index acd5b82c5..d3ff22172 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -174,9 +174,9 @@ func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []*codectypes.Any) (bz []byte // UpdateParams updates the module parameters func (k Keeper) UpdateParams(goCtx context.Context, req *ictxtypes.MsgUpdateParams) (*ictxtypes.MsgUpdateParamsResponse, error) { - //if err := req.ValidateBasic(); err != nil { - // return nil, err - //} + if err := req.ValidateBasic(); err != nil { + return nil, err + } authority := k.GetAuthority() if authority != req.Authority { return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) diff --git a/x/interchaintxs/types/tx.go b/x/interchaintxs/types/tx.go index 90687d161..b84bcba36 100644 --- a/x/interchaintxs/types/tx.go +++ b/x/interchaintxs/types/tx.go @@ -129,3 +129,34 @@ func (msg *MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error } return nil } + +//---------------------------------------------------------------- + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return "update-params" +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errors.Wrap(err, "authority is invalid") + } + return nil +} diff --git a/x/tokenfactory/keeper/admins_test.go b/x/tokenfactory/keeper/admins_test.go index 0828ffcef..316988309 100644 --- a/x/tokenfactory/keeper/admins_test.go +++ b/x/tokenfactory/keeper/admins_test.go @@ -183,6 +183,11 @@ func (suite *KeeperTestSuite) TestBurnDenom() { } func (suite *KeeperTestSuite) TestChangeAdminDenom() { + //suite.Setup() + + // Create a denom. + //suite.CreateDefaultDenom(suite.ChainA.GetContext()) + for _, tc := range []struct { desc string msgChangeAdmin func(denom string) *types.MsgChangeAdmin diff --git a/x/tokenfactory/keeper/genesis_test.go b/x/tokenfactory/keeper/genesis_test.go index 707214167..67a38e6f7 100644 --- a/x/tokenfactory/keeper/genesis_test.go +++ b/x/tokenfactory/keeper/genesis_test.go @@ -40,7 +40,8 @@ func (suite *KeeperTestSuite) TestGenesis() { } } - app.TokenFactoryKeeper.SetParams(context, types.Params{}) + err := app.TokenFactoryKeeper.SetParams(context, types.Params{}) + suite.Require().NoError(err) app.TokenFactoryKeeper.InitGenesis(context, genesisState) exportedGenesis := app.TokenFactoryKeeper.ExportGenesis(context) suite.Require().NotNil(exportedGenesis) diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index dfccb9b4a..6bf6e9313 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -51,13 +51,14 @@ func (suite *KeeperTestSuite) Setup() { suite.queryClient = types.NewQueryClient(suite.QueryHelper) - tokeFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper - tokeFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( + tokenFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper + err := tokenFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( sdktypes.NewCoins(sdktypes.NewInt64Coin(suite.defaultDenom, TopUpCoinsAmount)), - "", + 0, // TODO: what value to set? )) + suite.Require().NoError(err) - suite.msgServer = keeper.NewMsgServerImpl(*tokeFactoryKeeper) + suite.msgServer = keeper.NewMsgServerImpl(*tokenFactoryKeeper) } func (suite *KeeperTestSuite) SetupTokenFactory() { diff --git a/x/tokenfactory/module.go b/x/tokenfactory/module.go index db462f23f..71f61e563 100644 --- a/x/tokenfactory/module.go +++ b/x/tokenfactory/module.go @@ -133,8 +133,8 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute } // 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)) types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) } // RegisterInvariants registers the tokenfactory module's invariants. diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 78f7dafa4..687f6047c 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -25,9 +25,9 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgCreateDenom{}, &MsgMint{}, &MsgBurn{}, - // &MsgForceTransfer{}, + // &MsgForceTransfer{}, // TODO: why commented? &MsgChangeAdmin{}, - //&MsgSetBeforeSendHook{}, + //&MsgSetBeforeSendHook{}, // TODO: why commented? ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/transfer/module.go b/x/transfer/module.go index b6873db43..0978543ec 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -92,8 +92,8 @@ func (am AppModule) IsAppModule() { // marker // RegisterServices registers module services. func (am AppModule) RegisterServices(cfg module.Configurator) { - neutrontypes.RegisterMsgServer(cfg.MsgServer(), am.keeper) types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + neutrontypes.RegisterMsgServer(cfg.MsgServer(), am.keeper) cfg.MsgServer().RegisterService(&neutrontypes.MsgServiceDescOrig, am.keeper) } From 628995aa029e1caf11aaf752e82570b70a7e4ecf Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 19:15:36 +0400 Subject: [PATCH 093/307] rename msg service receiver k -> m --- x/interchainqueries/keeper/msg_server.go | 56 ++++++++++++------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 602a93d31..ad9a27e6d 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -32,7 +32,7 @@ func NewMsgServerImpl(keeper Keeper) types.MsgServer { return &msgServer{Keeper: keeper} } -func (k msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.MsgRegisterInterchainQuery) (*types.MsgRegisterInterchainQueryResponse, error) { +func (m msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.MsgRegisterInterchainQuery) (*types.MsgRegisterInterchainQueryResponse, error) { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelRegisterInterchainQuery) ctx := sdk.UnwrapSDKContext(goCtx) @@ -40,24 +40,24 @@ func (k msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.Msg senderAddr, err := sdk.AccAddressFromBech32(msg.Sender) if err != nil { - k.Logger(ctx).Debug("RegisterInterchainQuery: failed to parse sender address", "sender_address", msg.Sender) + m.Logger(ctx).Debug("RegisterInterchainQuery: failed to parse sender address", "sender_address", msg.Sender) return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.Sender) } - if !k.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { - k.Logger(ctx).Debug("RegisterInterchainQuery: contract not found", "sender_address", msg.Sender) + if !m.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { + m.Logger(ctx).Debug("RegisterInterchainQuery: contract not found", "sender_address", msg.Sender) return nil, errors.Wrapf(types.ErrNotContract, "%s is not a contract address", msg.Sender) } - if _, err := k.ibcKeeper.ConnectionKeeper.Connection(goCtx, &ibcconnectiontypes.QueryConnectionRequest{ConnectionId: msg.ConnectionId}); err != nil { + if _, err := m.ibcKeeper.ConnectionKeeper.Connection(goCtx, &ibcconnectiontypes.QueryConnectionRequest{ConnectionId: msg.ConnectionId}); err != nil { ctx.Logger().Debug("RegisterInterchainQuery: failed to get connection with ID", "message", msg) return nil, errors.Wrapf(types.ErrInvalidConnectionID, "failed to get connection with ID '%s': %v", msg.ConnectionId, err) } - lastID := k.GetLastRegisteredQueryKey(ctx) + lastID := m.GetLastRegisteredQueryKey(ctx) lastID++ - params := k.GetParams(ctx) + params := m.GetParams(ctx) registeredQuery := &types.RegisteredQuery{ Id: lastID, @@ -72,14 +72,14 @@ func (k msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.Msg RegisteredAtHeight: uint64(ctx.BlockHeader().Height), } - k.SetLastRegisteredQueryKey(ctx, lastID) + m.SetLastRegisteredQueryKey(ctx, lastID) - if err := k.CollectDeposit(ctx, *registeredQuery); err != nil { + if err := m.CollectDeposit(ctx, *registeredQuery); err != nil { ctx.Logger().Debug("RegisterInterchainQuery: failed to collect deposit", "message", &msg, "error", err) return nil, errors.Wrapf(err, "failed to collect deposit") } - if err := k.SaveQuery(ctx, registeredQuery); err != nil { + if err := m.SaveQuery(ctx, registeredQuery); err != nil { ctx.Logger().Debug("RegisterInterchainQuery: failed to save query", "message", &msg, "error", err) return nil, errors.Wrapf(err, "failed to save query: %v", err) } @@ -89,11 +89,11 @@ func (k msgServer) RegisterInterchainQuery(goCtx context.Context, msg *types.Msg return &types.MsgRegisterInterchainQueryResponse{Id: lastID}, nil } -func (k msgServer) RemoveInterchainQuery(goCtx context.Context, msg *types.MsgRemoveInterchainQueryRequest) (*types.MsgRemoveInterchainQueryResponse, error) { +func (m msgServer) RemoveInterchainQuery(goCtx context.Context, msg *types.MsgRemoveInterchainQueryRequest) (*types.MsgRemoveInterchainQueryResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) ctx.Logger().Debug("RemoveInterchainQuery", "msg", msg) - query, err := k.GetQueryByID(ctx, msg.GetQueryId()) + query, err := m.GetQueryByID(ctx, msg.GetQueryId()) if err != nil { ctx.Logger().Debug("RemoveInterchainQuery: failed to GetQueryByID", "error", err, "query_id", msg.QueryId) @@ -106,17 +106,17 @@ func (k msgServer) RemoveInterchainQuery(goCtx context.Context, msg *types.MsgRe return nil, errors.Wrap(sdkerrors.ErrUnauthorized, err.Error()) } - k.RemoveQuery(ctx, query) - k.MustPayOutDeposit(ctx, query.Deposit, msg.GetSigners()[0]) + m.RemoveQuery(ctx, query) + m.MustPayOutDeposit(ctx, query.Deposit, msg.GetSigners()[0]) ctx.EventManager().EmitEvents(getEventsQueryRemoved(query)) return &types.MsgRemoveInterchainQueryResponse{}, nil } -func (k msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUpdateInterchainQueryRequest) (*types.MsgUpdateInterchainQueryResponse, error) { +func (m msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUpdateInterchainQueryRequest) (*types.MsgUpdateInterchainQueryResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) ctx.Logger().Debug("UpdateInterchainQuery", "msg", msg) - query, err := k.GetQueryByID(ctx, msg.GetQueryId()) + query, err := m.GetQueryByID(ctx, msg.GetQueryId()) if err != nil { ctx.Logger().Debug("UpdateInterchainQuery: failed to GetQueryByID", "error", err, "query_id", msg.QueryId) @@ -129,7 +129,7 @@ func (k msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUp return nil, errors.Wrap(sdkerrors.ErrUnauthorized, "authorization failed") } - if err := k.validateUpdateInterchainQueryParams(query, msg); err != nil { + if err := m.validateUpdateInterchainQueryParams(query, msg); err != nil { ctx.Logger().Debug("UpdateInterchainQuery: invalid request", "error", err, "query_id", msg.QueryId) return nil, errors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) @@ -144,7 +144,7 @@ func (k msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUp query.TransactionsFilter = msg.GetNewTransactionsFilter() } - if err := k.SaveQuery(ctx, query); err != nil { + if err := m.SaveQuery(ctx, query); err != nil { ctx.Logger().Debug("UpdateInterchainQuery: failed to save query", "message", &msg, "error", err) return nil, errors.Wrapf(err, "failed to save query by query id: %v", err) } @@ -154,13 +154,13 @@ func (k msgServer) UpdateInterchainQuery(goCtx context.Context, msg *types.MsgUp return &types.MsgUpdateInterchainQueryResponse{}, nil } -func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmitQueryResult) (*types.MsgSubmitQueryResultResponse, error) { +func (m msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmitQueryResult) (*types.MsgSubmitQueryResultResponse, error) { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelRegisterInterchainQuery) ctx := sdk.UnwrapSDKContext(goCtx) ctx.Logger().Debug("SubmitQueryResult", "query_id", msg.QueryId) - query, err := k.GetQueryByID(ctx, msg.QueryId) + query, err := m.GetQueryByID(ctx, msg.QueryId) if err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to GetQueryByID", "error", err, "query_id", msg.QueryId) @@ -178,14 +178,14 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if !types.InterchainQueryType(query.QueryType).IsKV() { return nil, errors.Wrapf(types.ErrInvalidType, "invalid query result for query type: %s", query.QueryType) } - if err := k.checkLastRemoteHeight(ctx, *query, ibcclienttypes.NewHeight(msg.Result.Revision, msg.Result.Height)); err != nil { + if err := m.checkLastRemoteHeight(ctx, *query, ibcclienttypes.NewHeight(msg.Result.Revision, msg.Result.Height)); err != nil { return nil, errors.Wrap(types.ErrInvalidHeight, err.Error()) } if len(msg.Result.KvResults) != len(query.Keys) { return nil, errors.Wrapf(types.ErrInvalidSubmittedResult, "KV keys length from result is not equal to registered query keys length: %v != %v", len(msg.Result.KvResults), len(query.Keys)) } - resp, err := k.ibcKeeper.ConnectionConsensusState(goCtx, &ibcconnectiontypes.QueryConnectionConsensusStateRequest{ + resp, err := m.ibcKeeper.ConnectionConsensusState(goCtx, &ibcconnectiontypes.QueryConnectionConsensusStateRequest{ ConnectionId: query.ConnectionId, RevisionNumber: msg.Result.Revision, RevisionHeight: msg.Result.Height + 1, @@ -209,7 +209,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit return nil, errors.Wrapf(sdkerrors.ErrUnpackAny, "failed to cast interface exported.ConsensusState to type *tendermint.ConsensusState") } - clientState, err := k.GetClientState(ctx, msg.ClientId) + clientState, err := m.GetClientState(ctx, msg.ClientId) if err != nil { return nil, err } @@ -253,7 +253,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit } } - if err = k.saveKVQueryResult(ctx, query, msg.Result); err != nil { + if err = m.saveKVQueryResult(ctx, query, msg.Result); err != nil { ctx.Logger().Error("SubmitQueryResult: failed to SaveKVQueryResult", "error", err, "query", query, "message", msg) return nil, errors.Wrapf(err, "failed to SaveKVQueryResult: %v", err) @@ -261,7 +261,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit if msg.Result.GetAllowKvCallbacks() { // Let the query owner contract process the query result. - if _, err := k.contractManagerKeeper.SudoKVQueryResult(ctx, queryOwner, query.Id); err != nil { + if _, err := m.contractManagerKeeper.SudoKVQueryResult(ctx, queryOwner, query.Id); err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to SudoKVQueryResult", "error", err, "query_id", query.GetId()) return nil, errors.Wrapf(err, "contract %s rejected KV query result (query_id: %d)", @@ -276,13 +276,13 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit return nil, errors.Wrapf(types.ErrInvalidType, "invalid query result for query type: %s", query.QueryType) } - if err := k.ProcessBlock(ctx, queryOwner, msg.QueryId, msg.ClientId, msg.Result.Block); err != nil { + if err := m.ProcessBlock(ctx, queryOwner, msg.QueryId, msg.ClientId, msg.Result.Block); err != nil { ctx.Logger().Debug("SubmitQueryResult: failed to ProcessBlock", "error", err, "query", query, "message", msg) return nil, errors.Wrapf(err, "failed to ProcessBlock: %v", err) } - if err = k.UpdateLastLocalHeight(ctx, query.Id, uint64(ctx.BlockHeight())); err != nil { + if err = m.UpdateLastLocalHeight(ctx, query.Id, uint64(ctx.BlockHeight())); err != nil { return nil, errors.Wrapf(err, "failed to update last local height for a result with id %d: %v", query.Id, err) } @@ -293,7 +293,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit // validateUpdateInterchainQueryParams checks whether the parameters to be updated corresponds // with the query type. -func (k msgServer) validateUpdateInterchainQueryParams( +func (m msgServer) validateUpdateInterchainQueryParams( query *types.RegisteredQuery, msg *types.MsgUpdateInterchainQueryRequest, ) error { From 9b3813d06f737a1dc073991d558c5e7d26489e8e Mon Sep 17 00:00:00 2001 From: nhpd Date: Mon, 4 Sep 2023 20:13:44 +0400 Subject: [PATCH 094/307] add missing registrations --- x/interchainqueries/types/codec.go | 3 ++- x/tokenfactory/keeper/admins_test.go | 5 ----- x/tokenfactory/keeper/keeper_test.go | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/x/interchainqueries/types/codec.go b/x/interchainqueries/types/codec.go index 770be2dce..09c014a75 100644 --- a/x/interchainqueries/types/codec.go +++ b/x/interchainqueries/types/codec.go @@ -14,9 +14,10 @@ func RegisterCodec(cdc *codec.LegacyAmino) { func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations( (*sdk.Msg)(nil), - &MsgSubmitQueryResult{}, &MsgRegisterInterchainQuery{}, + &MsgSubmitQueryResult{}, &MsgUpdateInterchainQueryRequest{}, + &MsgRemoveInterchainQueryRequest{}, &MsgUpdateParams{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/tokenfactory/keeper/admins_test.go b/x/tokenfactory/keeper/admins_test.go index 316988309..0828ffcef 100644 --- a/x/tokenfactory/keeper/admins_test.go +++ b/x/tokenfactory/keeper/admins_test.go @@ -183,11 +183,6 @@ func (suite *KeeperTestSuite) TestBurnDenom() { } func (suite *KeeperTestSuite) TestChangeAdminDenom() { - //suite.Setup() - - // Create a denom. - //suite.CreateDefaultDenom(suite.ChainA.GetContext()) - for _, tc := range []struct { desc string msgChangeAdmin func(denom string) *types.MsgChangeAdmin diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index 6bf6e9313..4b9d546e8 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -54,7 +54,7 @@ func (suite *KeeperTestSuite) Setup() { tokenFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper err := tokenFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( sdktypes.NewCoins(sdktypes.NewInt64Coin(suite.defaultDenom, TopUpCoinsAmount)), - 0, // TODO: what value to set? + 0, )) suite.Require().NoError(err) From 6c9f16c3e4da1a5e273ce9f189105904494b9ccb Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 5 Sep 2023 14:24:22 +0400 Subject: [PATCH 095/307] register upd params --- x/tokenfactory/types/codec.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 687f6047c..42f15f0e5 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -16,7 +16,8 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgBurn{}, "osmosis/tokenfactory/burn", nil) //cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) cdc.RegisterConcrete(&MsgChangeAdmin{}, "osmosis/tokenfactory/change-admin", nil) - //cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) + cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) + cdc.RegisterConcrete(&MsgUpdateParams{}, "osmosis/tokenfactory/update-params", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -27,7 +28,8 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgBurn{}, // &MsgForceTransfer{}, // TODO: why commented? &MsgChangeAdmin{}, - //&MsgSetBeforeSendHook{}, // TODO: why commented? + &MsgSetBeforeSendHook{}, + &MsgUpdateParams{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } From 0489bc1a581a1e249d6bc84588ae9247ddc17cc8 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 5 Sep 2023 16:24:07 +0400 Subject: [PATCH 096/307] upda admin module --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index e5cc72f36..4ec3e1127 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230904070658-53e6d9fc7035 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230905102321-cc97b555fcb0 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index 5eca99390..1c87a12ea 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230904070658-53e6d9fc7035 h1:D6IibSrjZM7n/VEG+gqxRS1qd1FubhweMzpyTOv+veo= -github.com/neutron-org/admin-module v0.0.0-20230904070658-53e6d9fc7035/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= +github.com/neutron-org/admin-module v0.0.0-20230905102321-cc97b555fcb0 h1:wwRgnEuiGBGiSt8+K557QGTNyNBJ58Mx4vcIjN3yeAo= +github.com/neutron-org/admin-module v0.0.0-20230905102321-cc97b555fcb0/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= From 101656925d3b4ad719e477eb16d6b287306c07e2 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 6 Sep 2023 13:10:14 +0400 Subject: [PATCH 097/307] upd module --- app/app.go | 30 +++++++++++++++--------------- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/app.go b/app/app.go index 4b72c53de..70239d7a1 100644 --- a/app/app.go +++ b/app/app.go @@ -116,7 +116,7 @@ import ( "github.com/cosmos/admin-module/x/adminmodule" adminmodulecli "github.com/cosmos/admin-module/x/adminmodule/client/cli" adminmodulekeeper "github.com/cosmos/admin-module/x/adminmodule/keeper" - admintypes "github.com/cosmos/admin-module/x/adminmodule/types" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" @@ -371,7 +371,7 @@ func New( evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasm.StoreKey, feetypes.StoreKey, - feeburnertypes.StoreKey, admintypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, + feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, buildertypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -392,7 +392,7 @@ func New( app.ParamsKeeper = initParamsKeeper(appCodec, legacyAmino, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey]) // set the BaseApp's parameter store - app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(admintypes.ModuleName).String()) + app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, keys[consensusparamtypes.StoreKey], authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String()) bApp.SetParamStore(&app.ConsensusParamsKeeper) // add capability keeper and ScopeToModule for ibc module @@ -414,7 +414,7 @@ func New( authtypes.ProtoBaseAccount, maccPerms, sdk.GetConfig().GetBech32AccountAddrPrefix(), - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.AuthzKeeper = authzkeeper.NewKeeper( @@ -426,7 +426,7 @@ func New( keys[banktypes.StoreKey], app.AccountKeeper, app.BlockedAddrs(), - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.SlashingKeeper = slashingkeeper.NewKeeper( @@ -434,7 +434,7 @@ func New( legacyAmino, keys[slashingtypes.StoreKey], &app.ConsumerKeeper, - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.CrisisKeeper = *crisiskeeper.NewKeeper( appCodec, @@ -442,7 +442,7 @@ func New( invCheckPeriod, app.BankKeeper, authtypes.FeeCollectorName, - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper) @@ -452,7 +452,7 @@ func New( appCodec, homePath, app.BaseApp, - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) // ... other modules keepers @@ -583,7 +583,7 @@ func New( app.BankKeeper, // 25% of rewards should be sent to the redistribute address rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName)), - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) wasmDir := filepath.Join(homePath, "wasm") @@ -608,8 +608,8 @@ func New( app.AdminmoduleKeeper = *adminmodulekeeper.NewKeeper( appCodec, - keys[admintypes.StoreKey], - keys[admintypes.MemStoreKey], + keys[adminmoduletypes.StoreKey], + keys[adminmoduletypes.MemStoreKey], adminRouterLegacy, app.MsgServiceRouter(), IsConsumerProposalAllowlisted, @@ -661,7 +661,7 @@ func New( wasmDir, wasmConfig, supportedFeatures, - authtypes.NewModuleAddress(admintypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), wasmOpts..., ) wasmHooks.ContractKeeper = &app.WasmKeeper @@ -779,7 +779,7 @@ func New( wasm.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, - admintypes.ModuleName, + adminmoduletypes.ModuleName, ibchookstypes.ModuleName, routertypes.ModuleName, crontypes.ModuleName, @@ -810,7 +810,7 @@ func New( wasm.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, - admintypes.ModuleName, + adminmoduletypes.ModuleName, ibchookstypes.ModuleName, routertypes.ModuleName, crontypes.ModuleName, @@ -846,7 +846,7 @@ func New( wasm.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, - admintypes.ModuleName, + adminmoduletypes.ModuleName, ibchookstypes.ModuleName, // after auth keeper routertypes.ModuleName, crontypes.ModuleName, diff --git a/go.mod b/go.mod index 4ec3e1127..ffb4b04e4 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230905102321-cc97b555fcb0 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906085030-252c6438f577 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index 1c87a12ea..9895e641a 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230905102321-cc97b555fcb0 h1:wwRgnEuiGBGiSt8+K557QGTNyNBJ58Mx4vcIjN3yeAo= -github.com/neutron-org/admin-module v0.0.0-20230905102321-cc97b555fcb0/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= +github.com/neutron-org/admin-module v0.0.0-20230906085030-252c6438f577 h1:gN67L3NpEqqJhYlnSjuQfQ3QzL1BKBbE9UEVf0N7Pfs= +github.com/neutron-org/admin-module v0.0.0-20230906085030-252c6438f577/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= From c288fa96a94d662a07af7c4f8eae607f15698f06 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 6 Sep 2023 16:34:31 +0300 Subject: [PATCH 098/307] review fixes --- app/upgrades/sdk47/upgrades.go | 49 ++++++++++++++++---------- neutronutils/errors/errors.go | 2 +- neutronutils/utils.go | 4 +-- x/interchaintxs/keeper/ibc_handlers.go | 16 ++++----- x/transfer/ibc_handlers.go | 19 ++++------ 5 files changed, 46 insertions(+), 44 deletions(-) diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go index 3beeb8e82..f0cfaa7e3 100644 --- a/app/upgrades/sdk47/upgrades.go +++ b/app/upgrades/sdk47/upgrades.go @@ -12,13 +12,16 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" "github.com/neutron-org/neutron/app/upgrades" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" + feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" buildertypes "github.com/skip-mev/pob/x/builder/types" ) @@ -73,30 +76,13 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Setting pob params...") - treasury := keepers.FeeBurnerKeeper.GetParams(ctx).TreasuryAddress - _, data, err := bech32.DecodeAndConvert(treasury) - if err != nil { - return nil, err - } - - builderParams := buildertypes.Params{ - MaxBundleSize: 2, - EscrowAccountAddress: data, - ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, - MinBidIncrement: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, - FrontRunningProtection: true, - ProposerFee: math.LegacyNewDecWithPrec(25, 2), - } - err = keepers.BuilderKeeper.SetParams(ctx, builderParams) + err = setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) if err != nil { return nil, err } ctx.Logger().Info("Setting sudo callback limit...") - cmParams := contractmanagertypes.Params{ - SudoCallGasLimit: 1_000_000, - } - err = keepers.ContractManager.SetParams(ctx, cmParams) + err = setContractManagerParams(ctx, keepers.ContractManager) if err != nil { return nil, err } @@ -106,6 +92,31 @@ func CreateUpgradeHandler( } } +func setPobParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, builderKeeper builderkeeper.Keeper) error { + treasury := feeBurnerKeeper.GetParams(ctx).TreasuryAddress + _, data, err := bech32.DecodeAndConvert(treasury) + if err != nil { + return err + } + + builderParams := buildertypes.Params{ + MaxBundleSize: 2, + EscrowAccountAddress: data, + ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, + MinBidIncrement: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, + FrontRunningProtection: true, + ProposerFee: math.LegacyNewDecWithPrec(25, 2), + } + return builderKeeper.SetParams(ctx, builderParams) +} + +func setContractManagerParams(ctx sdk.Context, keeper contractmanagerkeeper.Keeper) error { + cmParams := contractmanagertypes.Params{ + SudoCallGasLimit: contractmanagertypes.DefaultSudoCallGasLimit, + } + return keeper.SetParams(ctx, cmParams) +} + func migrateCronParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { store := ctx.KVStore(storeKey) var currParams crontypes.Params diff --git a/neutronutils/errors/errors.go b/neutronutils/errors/errors.go index 7aecf5e13..9dd7574d9 100644 --- a/neutronutils/errors/errors.go +++ b/neutronutils/errors/errors.go @@ -6,7 +6,7 @@ import ( ) // OutOfGasRecovery converts `out of gas` panic into an error -// leave unprocessed any other kinds of panics +// leaving unprocessed any other kinds of panics func OutOfGasRecovery( gasMeter sdk.GasMeter, err *error, diff --git a/neutronutils/utils.go b/neutronutils/utils.go index fb621d701..2308c2a0f 100644 --- a/neutronutils/utils.go +++ b/neutronutils/utils.go @@ -3,9 +3,9 @@ package neutronutils import sdk "github.com/cosmos/cosmos-sdk/types" // CreateCachedContext creates a cached context with a limited gas meter. -func CreateCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func(), sdk.GasMeter) { +func CreateCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func()) { cacheCtx, writeFn := ctx.CacheContext() gasMeter := sdk.NewGasMeter(gasLimit) cacheCtx = cacheCtx.WithGasMeter(gasMeter) - return cacheCtx, writeFn, gasMeter + return cacheCtx, writeFn } diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 688150859..d1deab8fa 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -34,12 +34,11 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-27 packet acknowledgement: %v", err) } - cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) func() { - defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events if ack.GetError() != "" { @@ -49,7 +48,6 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) } }() - if err != nil { // the contract either returned an error or panicked with `out of gas` k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), contractmanagertypes.Ack, &ack) @@ -58,7 +56,7 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") return nil } @@ -75,15 +73,13 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela return errors.Wrap(err, "failed to get ica owner from port") } - cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) func() { - defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) }() - if err != nil { // the contract either returned an error or panicked with `out of gas` k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), contractmanagertypes.Timeout, nil) @@ -92,7 +88,7 @@ func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, rela writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") return nil } diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 550c7bb37..a3a7b72ed 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -34,13 +34,11 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P return nil } - cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - - // distribute fee im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) func() { - defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) if ack.Success() { _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) } else { @@ -50,7 +48,6 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P _, err = im.ContractManagerKeeper.SudoError(cacheCtx, senderAddress, packet, ack.GetError()) } }() - if err != nil { // the contract either returned an error or panicked with `out of gas` im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), contractmanagertypes.Ack, &ack) @@ -59,7 +56,7 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") im.keeper.Logger(ctx).Debug("acknowledgement received", "Packet data", data, "CheckTx", ctx.IsCheckTx()) @@ -81,15 +78,13 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r return nil } - cacheCtx, writeFn, newGasMeter := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - - // distribute fee im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + + cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) func() { - defer neutronerrors.OutOfGasRecovery(newGasMeter, &err) + defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) }() - if err != nil { // the contract either returned an error or panicked with `out of gas` im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), contractmanagertypes.Timeout, nil) @@ -98,7 +93,7 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r writeFn() } - ctx.GasMeter().ConsumeGas(newGasMeter.GasConsumedToLimit(), "consume gas from cached context") + ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") return nil } From 8ad6829667d29c28488b036789eabcb4f2756068 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 6 Sep 2023 19:08:39 +0400 Subject: [PATCH 099/307] upd module --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ffb4b04e4..9f50b18ac 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906085030-252c6438f577 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index 9895e641a..b81ab2072 100644 --- a/go.sum +++ b/go.sum @@ -938,8 +938,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230906085030-252c6438f577 h1:gN67L3NpEqqJhYlnSjuQfQ3QzL1BKBbE9UEVf0N7Pfs= -github.com/neutron-org/admin-module v0.0.0-20230906085030-252c6438f577/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= +github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= +github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957 h1:cl6UqD18qV/QXgT6Yjo2TelfbaOqQGuvL1yX0cWguSs= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230808152221-a0e301227957/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= From f549fc15a1e595aa12050aad29b7af28fef1cf01 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 7 Sep 2023 11:21:59 +0400 Subject: [PATCH 100/307] rm getenabledproposals from tests --- testutil/contractmanager/network/network.go | 1 - testutil/cron/network/network.go | 1 - testutil/interchainqueries/network/network.go | 1 - testutil/interchaintxs/network/network.go | 3 +-- testutil/test_helpers.go | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/testutil/contractmanager/network/network.go b/testutil/contractmanager/network/network.go index 10ee719d7..20e2b8d73 100644 --- a/testutil/contractmanager/network/network.go +++ b/testutil/contractmanager/network/network.go @@ -75,7 +75,6 @@ func DefaultConfig() network.Config { return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, - app.GetEnabledProposals(), sims.EmptyAppOptions{}, nil, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), diff --git a/testutil/cron/network/network.go b/testutil/cron/network/network.go index c7c49cb54..b31c16d1b 100644 --- a/testutil/cron/network/network.go +++ b/testutil/cron/network/network.go @@ -77,7 +77,6 @@ func DefaultConfig() network.Config { return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, - app.GetEnabledProposals(), sims.EmptyAppOptions{}, nil, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), diff --git a/testutil/interchainqueries/network/network.go b/testutil/interchainqueries/network/network.go index fa00f6254..d7fa4006d 100644 --- a/testutil/interchainqueries/network/network.go +++ b/testutil/interchainqueries/network/network.go @@ -75,7 +75,6 @@ func DefaultConfig() network.Config { return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, - app.GetEnabledProposals(), sims.EmptyAppOptions{}, nil, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index 75e49dd3f..46476e5b2 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -75,8 +75,7 @@ func DefaultConfig() network.Config { return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, - encoding, - app.GetEnabledProposals(), + encoding,, sims.EmptyAppOptions{}, nil, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index dd5ea39b5..edab3f004 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -387,7 +387,6 @@ func SetupTestingApp(chainID string) func() (ibctesting.TestingApp, map[string]j app.DefaultNodeHome, 0, encoding, - app.GetEnabledProposals(), sims.EmptyAppOptions{}, nil, ) From dda51cd23b358292313d53f31a0bf35a4bd3952e Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 7 Sep 2023 11:26:18 +0400 Subject: [PATCH 101/307] rm comma --- app/proposals_allowlisting_test.go | 1 - testutil/interchaintxs/network/network.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/proposals_allowlisting_test.go b/app/proposals_allowlisting_test.go index 0f87fcc36..a8368f60b 100644 --- a/app/proposals_allowlisting_test.go +++ b/app/proposals_allowlisting_test.go @@ -38,7 +38,6 @@ func SetupTestingAppConsumer() (ibctesting.TestingApp, map[string]json.RawMessag app.DefaultNodeHome, 0, encoding, - app.GetEnabledProposals(), sims.EmptyAppOptions{}, nil, ) diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index 46476e5b2..945ee62b3 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -75,7 +75,7 @@ func DefaultConfig() network.Config { return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, - encoding,, + encoding, sims.EmptyAppOptions{}, nil, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), From f881f6d21dfe37c7d0eba2fab9306468cabb3ed0 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 7 Sep 2023 11:32:46 +0400 Subject: [PATCH 102/307] wip --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index afcca9fb5..70bdf1b45 100644 --- a/app/app.go +++ b/app/app.go @@ -490,7 +490,7 @@ func New( keys[contractmanagermoduletypes.StoreKey], keys[contractmanagermoduletypes.MemStoreKey], &app.WasmKeeper, - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper, authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) @@ -502,7 +502,7 @@ func New( keys[feeburnertypes.MemStoreKey], app.AccountKeeper, app.BankKeeper, - authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) From 01616e603804dc494951110244cc6fcdaecd63e0 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 7 Sep 2023 14:17:23 +0400 Subject: [PATCH 103/307] wip --- app/app.go | 6 +++--- x/tokenfactory/types/params.go | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/app.go b/app/app.go index 70bdf1b45..12b69aea4 100644 --- a/app/app.go +++ b/app/app.go @@ -493,7 +493,7 @@ func New( authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) - app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper, authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) + app.FeeKeeper = feekeeper.NewKeeper(appCodec, keys[feetypes.StoreKey], memKeys[feetypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.BankKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String()) feeModule := feerefunder.NewAppModule(appCodec, *app.FeeKeeper, app.AccountKeeper, app.BankKeeper) app.FeeBurnerKeeper = feeburnerkeeper.NewKeeper( @@ -642,7 +642,7 @@ func New( authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper, authtypes.NewModuleAddress(adminmodulemoduletypes.ModuleName).String()) + app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String()) wasmOpts = append(wasmbinding.RegisterCustomPlugins(&app.InterchainTxsKeeper, &app.InterchainQueriesKeeper, app.TransferKeeper, &app.AdminmoduleKeeper, app.FeeBurnerKeeper, app.FeeKeeper, &app.BankKeeper, app.TokenFactoryKeeper, &app.CronKeeper, &app.ContractManagerKeeper), wasmOpts...) queryPlugins := wasmkeeper.WithQueryPlugins( @@ -1172,7 +1172,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) paramsKeeper.Subspace(ccvconsumertypes.ModuleName) - paramsKeeper.Subspace(tokenfactorytypes.ModuleName) + //paramsKeeper.Subspace(tokenfactorytypes.ModuleName) paramsKeeper.Subspace(interchainqueriesmoduletypes.ModuleName) paramsKeeper.Subspace(interchaintxstypes.ModuleName) diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 09d9cac75..afbae8a49 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -11,9 +11,10 @@ import ( var ( KeyDenomCreationFee = []byte("DenomCreationFee") KeyDenomCreationGasConsume = []byte("DenomCreationGasConsume") - + DefaultNeutronDenom = "untrn" // chosen as an arbitrary large number, less than the max_gas_wanted_per_tx in config. - DefaultCreationGasFee = 1_000_000 + DefaultCreationGasFee = 1_000 + DefaultFeeAmount int64 = 1_000_000 ) // ParamTable for gamm module. @@ -32,7 +33,7 @@ func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Param func DefaultParams() Params { return Params{ // For choice, see: https://github.com/osmosis-labs/osmosis/pull/4983 - DenomCreationFee: sdk.NewCoins(), // used to be 10 OSMO at launch. + DenomCreationFee: sdk.NewCoins(sdk.NewInt64Coin(DefaultNeutronDenom, DefaultFeeAmount)), DenomCreationGasConsume: uint64(DefaultCreationGasFee), } } From b9b41aeae99eb1601fc2ddee1cc8f5737d76a834 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 8 Sep 2023 11:02:32 +0300 Subject: [PATCH 104/307] extracted "an executing sudo in cached limited context" into middleware --- app/app.go | 4 +- .../contractmanager/types/expected_keepers.go | 4 +- .../types/expected_keepers.go | 46 ---- .../interchaintxs/types/expected_keepers.go | 16 +- .../mocks/transfer/types/expected_keepers.go | 51 +---- wasmbinding/test/custom_message_test.go | 4 +- x/contractmanager/ibc_middleware.go | 79 +++++++ x/contractmanager/ibc_middleware_test.go | 82 +++++++ x/contractmanager/keeper/failure.go | 4 +- x/contractmanager/keeper/failure_test.go | 12 +- x/contractmanager/keeper/sudo.go | 78 +++---- x/contractmanager/keeper/sudo_test.go | 73 +----- x/contractmanager/types/module.go | 16 ++ x/contractmanager/types/sudo.go | 22 +- x/interchainqueries/types/expected_keepers.go | 4 - x/interchaintxs/keeper/ibc_handlers.go | 72 +++--- x/interchaintxs/keeper/ibc_handlers_test.go | 209 ++++++++---------- x/interchaintxs/types/expected_keepers.go | 6 +- x/transfer/ibc_handlers.go | 53 +---- x/transfer/ibc_handlers_test.go | 188 ++-------------- x/transfer/types/expected_keepers.go | 8 +- 21 files changed, 413 insertions(+), 618 deletions(-) create mode 100644 x/contractmanager/ibc_middleware.go create mode 100644 x/contractmanager/ibc_middleware_test.go create mode 100644 x/contractmanager/types/module.go diff --git a/app/app.go b/app/app.go index aaebe1645..c6dd3a84e 100644 --- a/app/app.go +++ b/app/app.go @@ -563,7 +563,7 @@ func New( app.BankKeeper, scopedTransferKeeper, app.FeeKeeper, - app.ContractManagerKeeper, + contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper), ) app.RouterKeeper.SetTransferKeeper(app.TransferKeeper.Keeper) @@ -660,7 +660,7 @@ func New( memKeys[interchaintxstypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.ICAControllerKeeper, - app.ContractManagerKeeper, + contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper), app.FeeKeeper, ) diff --git a/testutil/mocks/contractmanager/types/expected_keepers.go b/testutil/mocks/contractmanager/types/expected_keepers.go index 463ef15c4..40b855702 100644 --- a/testutil/mocks/contractmanager/types/expected_keepers.go +++ b/testutil/mocks/contractmanager/types/expected_keepers.go @@ -51,7 +51,7 @@ func (mr *MockWasmKeeperMockRecorder) HasContractInfo(ctx, contractAddress inter // Sudo mocks base method. func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddress, msg []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Sudo", ctx, contractAddress, msg) + ret := m.ctrl.Call(m, "sudo", ctx, contractAddress, msg) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 @@ -60,5 +60,5 @@ func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddres // Sudo indicates an expected call of Sudo. func (mr *MockWasmKeeperMockRecorder) Sudo(ctx, contractAddress, msg interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) } diff --git a/testutil/mocks/interchainqueries/types/expected_keepers.go b/testutil/mocks/interchainqueries/types/expected_keepers.go index 435a54b05..029ca0135 100644 --- a/testutil/mocks/interchainqueries/types/expected_keepers.go +++ b/testutil/mocks/interchainqueries/types/expected_keepers.go @@ -10,7 +10,6 @@ import ( types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/auth/types" types1 "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - types2 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" gomock "github.com/golang/mock/gomock" ) @@ -153,21 +152,6 @@ func (mr *MockContractManagerKeeperMockRecorder) HasContractInfo(ctx, contractAd return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasContractInfo", reflect.TypeOf((*MockContractManagerKeeper)(nil).HasContractInfo), ctx, contractAddress) } -// SudoError mocks base method. -func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types2.Packet, details string) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, details) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoError indicates an expected call of SudoError. -func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, details interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, details) -} - // SudoKVQueryResult mocks base method. func (m *MockContractManagerKeeper) SudoKVQueryResult(ctx types.Context, contractAddress types.AccAddress, queryID uint64) ([]byte, error) { m.ctrl.T.Helper() @@ -183,36 +167,6 @@ func (mr *MockContractManagerKeeperMockRecorder) SudoKVQueryResult(ctx, contract return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoKVQueryResult", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoKVQueryResult), ctx, contractAddress, queryID) } -// SudoResponse mocks base method. -func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types2.Packet, msg []byte) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, msg) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoResponse indicates an expected call of SudoResponse. -func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, msg interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, msg) -} - -// SudoTimeout mocks base method. -func (m *MockContractManagerKeeper) SudoTimeout(ctx types.Context, senderAddress types.AccAddress, request types2.Packet) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoTimeout", ctx, senderAddress, request) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoTimeout indicates an expected call of SudoTimeout. -func (mr *MockContractManagerKeeperMockRecorder) SudoTimeout(ctx, senderAddress, request interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoTimeout", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoTimeout), ctx, senderAddress, request) -} - // SudoTxQueryResult mocks base method. func (m *MockContractManagerKeeper) SudoTxQueryResult(ctx types.Context, contractAddress types.AccAddress, queryID uint64, height types1.Height, data []byte) ([]byte, error) { m.ctrl.T.Helper() diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index e3d9c948a..85fa21af1 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -156,18 +156,18 @@ func (mr *MockContractManagerKeeperMockRecorder) HasContractInfo(ctx, contractAd } // SudoError mocks base method. -func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types3.Packet, details string) ([]byte, error) { +func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types3.Packet, ack types3.Acknowledgement) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, details) + ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, ack) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // SudoError indicates an expected call of SudoError. -func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, details interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, ack interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, details) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, ack) } // SudoOnChanOpenAck mocks base method. @@ -186,18 +186,18 @@ func (mr *MockContractManagerKeeperMockRecorder) SudoOnChanOpenAck(ctx, contract } // SudoResponse mocks base method. -func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types3.Packet, msg []byte) ([]byte, error) { +func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types3.Packet, ack types3.Acknowledgement) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, msg) + ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, ack) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // SudoResponse indicates an expected call of SudoResponse. -func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, msg interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, ack interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, msg) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, ack) } // SudoTimeout mocks base method. diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index f5c4d2ab1..122edaeb2 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -11,8 +11,7 @@ import ( types0 "github.com/cosmos/cosmos-sdk/x/auth/types" types1 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" gomock "github.com/golang/mock/gomock" - types2 "github.com/neutron-org/neutron/x/contractmanager/types" - types3 "github.com/neutron-org/neutron/x/feerefunder/types" + types2 "github.com/neutron-org/neutron/x/feerefunder/types" ) // MockContractManagerKeeper is a mock of ContractManagerKeeper interface. @@ -38,32 +37,6 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor return m.recorder } -// AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet *types1.Packet, address, ackType string, ack *types1.Acknowledgement) { - m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ack) -} - -// AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ack interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ack) -} - -// GetParams mocks base method. -func (m *MockContractManagerKeeper) GetParams(ctx types.Context) types2.Params { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetParams", ctx) - ret0, _ := ret[0].(types2.Params) - return ret0 -} - -// GetParams indicates an expected call of GetParams. -func (mr *MockContractManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockContractManagerKeeper)(nil).GetParams), ctx) -} - // HasContractInfo mocks base method. func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { m.ctrl.T.Helper() @@ -79,33 +52,33 @@ func (mr *MockContractManagerKeeperMockRecorder) HasContractInfo(ctx, contractAd } // SudoError mocks base method. -func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types1.Packet, details string) ([]byte, error) { +func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types1.Packet, ack types1.Acknowledgement) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, details) + ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, ack) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // SudoError indicates an expected call of SudoError. -func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, details interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, ack interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, details) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, ack) } // SudoResponse mocks base method. -func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types1.Packet, msg []byte) ([]byte, error) { +func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types1.Packet, ack types1.Acknowledgement) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, msg) + ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, ack) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // SudoResponse indicates an expected call of SudoResponse. -func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, msg interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, ack interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, msg) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, ack) } // SudoTimeout mocks base method. @@ -147,7 +120,7 @@ func (m *MockFeeRefunderKeeper) EXPECT() *MockFeeRefunderKeeperMockRecorder { } // DistributeAcknowledgementFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types3.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types2.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeAcknowledgementFee", ctx, receiver, packetID) } @@ -159,7 +132,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeAcknowledgementFee(ctx, r } // DistributeTimeoutFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types3.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types2.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeTimeoutFee", ctx, receiver, packetID) } @@ -171,7 +144,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeTimeoutFee(ctx, receiver, } // LockFees mocks base method. -func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types3.PacketID, fee types3.Fee) error { +func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types2.PacketID, fee types2.Fee) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockFees", ctx, payer, packetID, fee) ret0, _ := ret[0].(error) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index d802dbe44..384b84cd6 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -640,7 +640,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { // Add failure packet := ibcchanneltypes.Packet{} ack := ibcchanneltypes.Acknowledgement{ - Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, + Response: &ibcchanneltypes.Acknowledgement_Error{Error: "ErrorSudoPayload"}, } failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), "timeout", &ack) @@ -673,7 +673,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract( // Add failure packet := ibcchanneltypes.Packet{} ack := ibcchanneltypes.Acknowledgement{ - Response: &ibcchanneltypes.Acknowledgement_Error{Error: "Error"}, + Response: &ibcchanneltypes.Acknowledgement_Error{Error: "ErrorSudoPayload"}, } failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, testutil.TestOwnerAddress, contractmanagertypes.Ack, &ack) diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go new file mode 100644 index 000000000..237c7f731 --- /dev/null +++ b/x/contractmanager/ibc_middleware.go @@ -0,0 +1,79 @@ +package contractmanager + +import ( + "fmt" + "github.com/cometbft/cometbft/libs/log" + sdk "github.com/cosmos/cosmos-sdk/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/neutron-org/neutron/neutronutils" + neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" +) + +type SudoLimitWrapper struct { + contractmanagertypes.ContractManagerWrapper +} + +// NewSudoLimitWrapper suppresses an error from a sudo contract handler and saves it to a store +func NewSudoLimitWrapper(keeper contractmanagertypes.ContractManagerWrapper) contractmanagertypes.ContractManagerWrapper { + return SudoLimitWrapper{ + keeper, + } +} + +func (k SudoLimitWrapper) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) { + err := k.sudo(ctx, senderAddress, request, &ack) + if err != nil { + k.Logger(ctx).Debug("SudoLimitWrapper: failed to sudo contract", "error", err, "ackType", "Result") + } + return nil, nil +} + +func (k SudoLimitWrapper) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) { + err := k.sudo(ctx, senderAddress, request, &ack) + if err != nil { + k.Logger(ctx).Debug("SudoLimitWrapper: failed to sudo contract", "error", err, "ackType", "ErrorSudoPayload") + } + return nil, nil +} + +func (k SudoLimitWrapper) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) { + err := k.sudo(ctx, senderAddress, request, nil) + if err != nil { + k.Logger(ctx).Debug("SudoLimitWrapper: failed to sudo contract", "error", err, "ackType", "Timeout") + } + return nil, nil +} + +// sudo calls underlying sudo handlers with a limited amount of gas +// in case of `out of gas` panic it converts the panic into an error and stops `out of gas` panic propagation +func (k SudoLimitWrapper) sudo(ctx sdk.Context, sender sdk.AccAddress, packet channeltypes.Packet, ack *channeltypes.Acknowledgement) (err error) { + ackType := contractmanagertypes.Ack + cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.ContractManagerWrapper.GetParams(ctx).SudoCallGasLimit) + func() { + defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) + // Actually we have only one kind of error returned from acknowledgement + // maybe later we'll retrieve actual errors from events + if ack == nil { + ackType = contractmanagertypes.Timeout + _, err = k.ContractManagerWrapper.SudoTimeout(cacheCtx, sender, packet) + } else if ack.GetError() != "" { + _, err = k.ContractManagerWrapper.SudoError(cacheCtx, sender, packet, *ack) + } else { + _, err = k.ContractManagerWrapper.SudoResponse(cacheCtx, sender, packet, *ack) + } + }() + if err != nil { + // the contract either returned an error or panicked with `out of gas` + k.ContractManagerWrapper.AddContractFailure(ctx, &packet, sender.String(), ackType, ack) + } else { + writeFn() + } + + ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") + return +} + +func (k SudoLimitWrapper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", fmt.Sprintf("x/%s", contractmanagertypes.ModuleName)) +} diff --git a/x/contractmanager/ibc_middleware_test.go b/x/contractmanager/ibc_middleware_test.go new file mode 100644 index 000000000..57012be71 --- /dev/null +++ b/x/contractmanager/ibc_middleware_test.go @@ -0,0 +1,82 @@ +package contractmanager + +import ( + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cosmos/cosmos-sdk/store" + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/golang/mock/gomock" + mock_types "github.com/neutron-org/neutron/testutil/mocks/interchaintxs/types" + "github.com/neutron-org/neutron/x/contractmanager/types" + "github.com/stretchr/testify/require" + "testing" +) + +var ( + ShouldNotBeWrittenKey = []byte("shouldnotkey") + ShouldNotBeWritten = []byte("should not be written") + ShouldBeWritten = []byte("should be written") + TestOwnerAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh" +) + +func ShouldBeWrittenKey(suffix string) []byte { + return append([]byte("shouldkey"), []byte(suffix)...) +} + +func NewSudoLimitMiddleware(t testing.TB, cm types.ContractManagerWrapper) (SudoLimitWrapper, sdk.Context, *storetypes.KVStoreKey) { + storeKey := sdk.NewKVStoreKey(types.StoreKey) + + db := tmdb.NewMemDB() + stateStore := store.NewCommitMultiStore(db) + stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) + require.NoError(t, stateStore.LoadLatestVersion()) + + k := SudoLimitWrapper{ContractManagerWrapper: cm} + + ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) + + return k, ctx, storeKey +} + +func TestSudo(t *testing.T) { + ctrl := gomock.NewController(t) + defer ctrl.Finish() + cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + middleware, infCtx, storeKey := NewSudoLimitMiddleware(t, cmKeeper) + st := infCtx.KVStore(storeKey) + + p := channeltypes.Packet{ + Sequence: 100, + SourcePort: icatypes.ControllerPortPrefix + TestOwnerAddress + ".ica0", + SourceChannel: "channel-0", + } + contractAddress := sdk.AccAddress{} + errACK := channeltypes.Acknowledgement{ + Response: &channeltypes.Acknowledgement_Error{ + Error: "error", + }, + } + //errAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&errACK) + //require.NoError(t, err) + //resACK := channeltypes.Acknowledgement{ + // Response: &channeltypes.Acknowledgement_Result{Result: []byte("Result")}, + //} + //resAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&resACK) + //require.NoError(t, err) + + // success during SudoError + ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, errAck channeltypes.Acknowledgement) { + st := cachedCtx.KVStore(storeKey) + st.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) + }).Return(nil, nil) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) + err := middleware.sudo(ctx, contractAddress, p, &errACK) + require.NoError(t, err) + require.Equal(t, ShouldBeWritten, st.Get(ShouldBeWrittenKey("sudoerror"))) + require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) +} diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 308decb34..581b4f19c 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -81,11 +81,11 @@ func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, fa return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without acknowledgement; failureId = %d", failure.Id) } if failure.GetAck().GetError() == "" { - if _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, failure.Ack.GetResult()); err != nil { + if _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, *failure.Ack); err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack response; failureId = %d; err = %s", failure.Id, err) } } else { - if _, err := k.SudoError(ctx, contractAddr, *failure.Packet, failure.Ack.GetError()); err != nil { + if _, err := k.SudoError(ctx, contractAddr, *failure.Packet, *failure.Ack); err != nil { return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack error; failureId = %d; err = %s", failure.Id, err) } } diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 606db61c9..aa00b4c91 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -138,7 +138,6 @@ func TestResubmitFailure(t *testing.T) { require.NoError(t, err) // case: successful resubmit with ack and ack = response - wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return([]byte{}, nil) failure, err := k.GetFailure(ctx, contractAddr, failureID) @@ -153,8 +152,7 @@ func TestResubmitFailure(t *testing.T) { failureID2 := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ack) - wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) - wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to Sudo")) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to sudo")) failure2, err := k.GetFailure(ctx, contractAddr, failureID2) require.NoError(t, err) @@ -170,7 +168,6 @@ func TestResubmitFailure(t *testing.T) { failureID3 := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ackError) - wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return([]byte{}, nil) failure3, err := k.GetFailure(ctx, contractAddr, failureID3) @@ -185,8 +182,7 @@ func TestResubmitFailure(t *testing.T) { failureID4 := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ackError) - wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) - wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to Sudo")) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to sudo")) failure4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) @@ -202,7 +198,6 @@ func TestResubmitFailure(t *testing.T) { failureID5 := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) - wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return([]byte{}, nil) failure5, err := k.GetFailure(ctx, contractAddr, failureID5) @@ -217,8 +212,7 @@ func TestResubmitFailure(t *testing.T) { failureID6 := k.GetNextFailureIDKey(ctx, contractAddr.String()) k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) - wk.EXPECT().HasContractInfo(gomock.AssignableToTypeOf(ctx), contractAddr).Return(true) - wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return(nil, fmt.Errorf("failed to Sudo")) + wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return(nil, fmt.Errorf("failed to sudo")) failure6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) diff --git a/x/contractmanager/keeper/sudo.go b/x/contractmanager/keeper/sudo.go index 2feba728a..1b33639cb 100644 --- a/x/contractmanager/keeper/sudo.go +++ b/x/contractmanager/keeper/sudo.go @@ -20,26 +20,25 @@ func (k Keeper) HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) return k.wasmKeeper.HasContractInfo(ctx, contractAddress) } +func prepareSudoCallbackMessage(request channeltypes.Packet, ack *channeltypes.Acknowledgement) types.MessageSudoCallback { + m := types.MessageSudoCallback{ + Response: nil, + Error: nil, + Timeout: nil, + } + return m +} + func (k Keeper) SudoResponse( ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, - msg []byte, + ack channeltypes.Acknowledgement, ) ([]byte, error) { - k.Logger(ctx).Debug("SudoResponse", "senderAddress", senderAddress, "request", request, "msg", msg) - - if !k.wasmKeeper.HasContractInfo(ctx, senderAddress) { - if request.SourcePort == types.TransferPort { - // we want to allow non contract account to send the assets via IBC Transfer module - // we can determine the originating module by the source port of the request packet - return nil, nil - } - k.Logger(ctx).Debug("SudoResponse: contract not found", "senderAddress", senderAddress) - return nil, fmt.Errorf("%s is not a contract address and not the Transfer module", senderAddress) - } + k.Logger(ctx).Debug("SudoResponse", "senderAddress", senderAddress, "request", request, "msg", ack.GetResult()) x := types.MessageResponse{} - x.Response.Data = msg + x.Response.Data = ack.GetResult() x.Response.Request = request m, err := json.Marshal(x) if err != nil { @@ -50,9 +49,9 @@ func (k Keeper) SudoResponse( resp, err := k.wasmKeeper.Sudo(ctx, senderAddress, m) if err != nil { - k.Logger(ctx).Debug("SudoResponse: failed to Sudo", + k.Logger(ctx).Debug("SudoResponse: failed to sudo", "error", err, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to Sudo: %v", err) + return nil, fmt.Errorf("failed to sudo: %v", err) } return resp, nil @@ -65,16 +64,6 @@ func (k Keeper) SudoTimeout( ) ([]byte, error) { k.Logger(ctx).Info("SudoTimeout", "senderAddress", senderAddress, "request", request) - if !k.wasmKeeper.HasContractInfo(ctx, senderAddress) { - if request.SourcePort == types.TransferPort { - // we want to allow non contract account to send the assets via IBC Transfer module - // we can determine the originating module by the source port of the request packet - return nil, nil - } - k.Logger(ctx).Debug("SudoTimeout: contract not found", "senderAddress", senderAddress) - return nil, fmt.Errorf("%s is not a contract address and not the Transfer module", senderAddress) - } - x := types.MessageTimeout{} x.Timeout.Request = request m, err := json.Marshal(x) @@ -88,9 +77,9 @@ func (k Keeper) SudoTimeout( resp, err := k.wasmKeeper.Sudo(ctx, senderAddress, m) if err != nil { - k.Logger(ctx).Debug("SudoTimeout: failed to Sudo", + k.Logger(ctx).Debug("SudoTimeout: failed to sudo", "error", err, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to Sudo: %v", err) + return nil, fmt.Errorf("failed to sudo: %v", err) } return resp, nil @@ -100,23 +89,13 @@ func (k Keeper) SudoError( ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, - details string, + ack channeltypes.Acknowledgement, ) ([]byte, error) { k.Logger(ctx).Debug("SudoError", "senderAddress", senderAddress, "request", request) - if !k.wasmKeeper.HasContractInfo(ctx, senderAddress) { - if request.SourcePort == types.TransferPort { - // we want to allow non contract account to send the assets via IBC Transfer module - // we can determine the originating module by the source port of the request packet - return nil, nil - } - k.Logger(ctx).Debug("SudoError: contract not found", "senderAddress", senderAddress) - return nil, fmt.Errorf("%s is not a contract address and not the Transfer module", senderAddress) - } - x := types.MessageError{} x.Error.Request = request - x.Error.Details = details + x.Error.Details = ack.GetError() m, err := json.Marshal(x) if err != nil { k.Logger(ctx).Error("SudoError: failed to marshal MessageError message", @@ -126,9 +105,9 @@ func (k Keeper) SudoError( resp, err := k.wasmKeeper.Sudo(ctx, senderAddress, m) if err != nil { - k.Logger(ctx).Debug("SudoError: failed to Sudo", + k.Logger(ctx).Debug("SudoError: failed to sudo", "error", err, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to Sudo: %v", err) + return nil, fmt.Errorf("failed to sudo: %v", err) } return resp, nil @@ -141,11 +120,6 @@ func (k Keeper) SudoOnChanOpenAck( ) ([]byte, error) { k.Logger(ctx).Debug("SudoOnChanOpenAck", "contractAddress", contractAddress) - if !k.wasmKeeper.HasContractInfo(ctx, contractAddress) { - k.Logger(ctx).Debug("SudoOnChanOpenAck: contract not found", "contractAddress", contractAddress) - return nil, fmt.Errorf("%s is not a contract address", contractAddress) - } - x := types.MessageOnChanOpenAck{} x.OpenAck = details m, err := json.Marshal(x) @@ -158,9 +132,9 @@ func (k Keeper) SudoOnChanOpenAck( resp, err := k.wasmKeeper.Sudo(ctx, contractAddress, m) if err != nil { - k.Logger(ctx).Debug("SudoOnChanOpenAck: failed to Sudo", + k.Logger(ctx).Debug("SudoOnChanOpenAck: failed to sudo", "error", err, "contract_address", contractAddress) - return nil, fmt.Errorf("failed to Sudo: %v", err) + return nil, fmt.Errorf("failed to sudo: %v", err) } return resp, nil @@ -198,9 +172,9 @@ func (k Keeper) SudoTxQueryResult( resp, err := k.wasmKeeper.Sudo(ctx, contractAddress, m) if err != nil { - k.Logger(ctx).Debug("SudoTxQueryResult: failed to Sudo", + k.Logger(ctx).Debug("SudoTxQueryResult: failed to sudo", "error", err, "contract_address", contractAddress) - return nil, fmt.Errorf("failed to Sudo: %v", err) + return nil, fmt.Errorf("failed to sudo: %v", err) } return resp, nil @@ -232,9 +206,9 @@ func (k Keeper) SudoKVQueryResult( resp, err := k.wasmKeeper.Sudo(ctx, contractAddress, m) if err != nil { - k.Logger(ctx).Debug("SudoKVQueryResult: failed to Sudo", + k.Logger(ctx).Debug("SudoKVQueryResult: failed to sudo", "error", err, "contract_address", contractAddress) - return nil, fmt.Errorf("failed to Sudo: %v", err) + return nil, fmt.Errorf("failed to sudo: %v", err) } return resp, nil diff --git a/x/contractmanager/keeper/sudo_test.go b/x/contractmanager/keeper/sudo_test.go index b4adc4103..8767acd93 100644 --- a/x/contractmanager/keeper/sudo_test.go +++ b/x/contractmanager/keeper/sudo_test.go @@ -48,34 +48,18 @@ func TestSudoResponse(t *testing.T) { sudoErrorMsg := types.MessageResponse{} p := channeltypes.Packet{} - sudoErrorMsg.Response.Data = []byte("data") + a := channeltypes.Acknowledgement{Response: &channeltypes.Acknowledgement_Result{Result: []byte("data")}} + sudoErrorMsg.Response.Data = a.GetResult() sudoErrorMsg.Response.Request = p wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return([]byte("success"), nil) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) - resp, err := k.SudoResponse(ctx, address, sudoErrorMsg.Response.Request, sudoErrorMsg.Response.Data) + resp, err := k.SudoResponse(ctx, address, sudoErrorMsg.Response.Request, a) require.NoError(t, err) require.Equal(t, []byte("success"), resp) wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return(nil, fmt.Errorf("internal contract error")) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) - resp, err = k.SudoResponse(ctx, address, sudoErrorMsg.Response.Request, sudoErrorMsg.Response.Data) + resp, err = k.SudoResponse(ctx, address, sudoErrorMsg.Response.Request, a) require.Nil(t, resp) require.ErrorContains(t, err, "internal contract error") - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - resp, err = k.SudoResponse(ctx, address, channeltypes.Packet{}, nil) - require.Nil(t, resp) - require.ErrorContains(t, err, "is not a contract address and not the Transfer module") - - sudoResponseTransport := types.MessageResponse{} - p = channeltypes.Packet{SourcePort: types.TransferPort} - sudoResponseTransport.Response.Data = []byte("data") - sudoResponseTransport.Response.Request = p - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - _, err = k.SudoResponse(ctx, address, sudoResponseTransport.Response.Request, sudoResponseTransport.Response.Data) - require.Nil(t, err) - require.NoError(t, err) } func TestSudoError(t *testing.T) { @@ -88,34 +72,20 @@ func TestSudoError(t *testing.T) { sudoErrorMsg := types.MessageError{} p := channeltypes.Packet{} - sudoErrorMsg.Error.Details = "details" + a := channeltypes.Acknowledgement{Response: &channeltypes.Acknowledgement_Error{ + Error: "details", + }} + sudoErrorMsg.Error.Details = a.GetError() sudoErrorMsg.Error.Request = p wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return([]byte("success"), nil) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) - resp, err := k.SudoError(ctx, address, sudoErrorMsg.Error.Request, sudoErrorMsg.Error.Details) + resp, err := k.SudoError(ctx, address, sudoErrorMsg.Error.Request, a) require.NoError(t, err) require.Equal(t, []byte("success"), resp) wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return(nil, fmt.Errorf("internal contract error")) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) - resp, err = k.SudoError(ctx, address, sudoErrorMsg.Error.Request, sudoErrorMsg.Error.Details) + resp, err = k.SudoError(ctx, address, sudoErrorMsg.Error.Request, a) require.Nil(t, resp) require.ErrorContains(t, err, "internal contract error") - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - resp, err = k.SudoError(ctx, address, channeltypes.Packet{}, "") - require.Nil(t, resp) - require.ErrorContains(t, err, "is not a contract address and not the Transfer module") - - sudoErrorTransport := types.MessageError{} - p = channeltypes.Packet{SourcePort: types.TransferPort} - sudoErrorTransport.Error.Details = "details" - sudoErrorTransport.Error.Request = p - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - resp, err = k.SudoError(ctx, address, sudoErrorTransport.Error.Request, sudoErrorTransport.Error.Details) - require.Nil(t, resp) - require.NoError(t, err) } func TestSudoTimeout(t *testing.T) { @@ -130,30 +100,14 @@ func TestSudoTimeout(t *testing.T) { p := channeltypes.Packet{} sudoTimeoutMsg.Timeout.Request = p wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoTimeoutMsg)).Return([]byte("success"), nil) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) resp, err := k.SudoTimeout(ctx, address, sudoTimeoutMsg.Timeout.Request) require.NoError(t, err) require.Equal(t, []byte("success"), resp) wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoTimeoutMsg)).Return(nil, fmt.Errorf("internal contract error")) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) resp, err = k.SudoTimeout(ctx, address, sudoTimeoutMsg.Timeout.Request) require.Nil(t, resp) require.ErrorContains(t, err, "internal contract error") - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - resp, err = k.SudoTimeout(ctx, address, channeltypes.Packet{}) - require.Nil(t, resp) - require.ErrorContains(t, err, "is not a contract address and not the Transfer module") - - sudoTimeoutTransport := types.MessageTimeout{} - p = channeltypes.Packet{SourcePort: types.TransferPort} - sudoTimeoutTransport.Timeout.Request = p - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - resp, err = k.SudoTimeout(ctx, address, sudoTimeoutTransport.Timeout.Request) - require.Nil(t, resp) - require.NoError(t, err) } func TestSudoOnChanOpen(t *testing.T) { @@ -166,21 +120,14 @@ func TestSudoOnChanOpen(t *testing.T) { sudoOpenAckMsg := types.MessageOnChanOpenAck{} wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoOpenAckMsg)).Return([]byte("success"), nil) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) resp, err := k.SudoOnChanOpenAck(ctx, address, sudoOpenAckMsg.OpenAck) require.NoError(t, err) require.Equal(t, []byte("success"), resp) wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoOpenAckMsg)).Return(nil, fmt.Errorf("internal contract error")) - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) resp, err = k.SudoOnChanOpenAck(ctx, address, sudoOpenAckMsg.OpenAck) require.Nil(t, resp) require.ErrorContains(t, err, "internal contract error") - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - resp, err = k.SudoOnChanOpenAck(ctx, address, sudoOpenAckMsg.OpenAck) - require.Nil(t, resp) - require.ErrorContains(t, err, "is not a contract address") } func TestSudoTxQueryResult(t *testing.T) { diff --git a/x/contractmanager/types/module.go b/x/contractmanager/types/module.go new file mode 100644 index 000000000..540b2afd3 --- /dev/null +++ b/x/contractmanager/types/module.go @@ -0,0 +1,16 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" +) + +type ContractManagerWrapper interface { + HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool + AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) + SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) + SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) + SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) + SudoOnChanOpenAck(ctx sdk.Context, contractAddress sdk.AccAddress, details OpenAckDetails) ([]byte, error) + GetParams(ctx sdk.Context) (params Params) +} diff --git a/x/contractmanager/types/sudo.go b/x/contractmanager/types/sudo.go index c0564d82a..8b2d0144d 100644 --- a/x/contractmanager/types/sudo.go +++ b/x/contractmanager/types/sudo.go @@ -5,8 +5,6 @@ import ( channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) -const TransferPort = "transfer" - // MessageTxQueryResult is passed to a contract's sudo() entrypoint when a tx was submitted // for a transaction query. type MessageTxQueryResult struct { @@ -25,6 +23,26 @@ type MessageKVQueryResult struct { } `json:"kv_query_result"` } +type MessageSudoCallback struct { + Response *ResponseSudoPayload `json:"response"` + Error *ErrorSudoPayload `json:"error"` + Timeout *TimeoutPayload `json:"timeout"` +} + +type ResponseSudoPayload struct { + Request channeltypes.Packet `json:"request"` + Data []byte `json:"data"` // Message data +} + +type ErrorSudoPayload struct { + Request channeltypes.Packet `json:"request"` + Details string `json:"details"` +} + +type TimeoutPayload struct { + Request channeltypes.Packet `json:"request"` +} + // MessageTimeout is passed to a contract's sudo() entrypoint when an interchain // transaction failed with a timeout. type MessageTimeout struct { diff --git a/x/interchainqueries/types/expected_keepers.go b/x/interchainqueries/types/expected_keepers.go index d0cb0332f..820259470 100644 --- a/x/interchainqueries/types/expected_keepers.go +++ b/x/interchainqueries/types/expected_keepers.go @@ -4,7 +4,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) @@ -23,9 +22,6 @@ type BankKeeper interface { type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) - SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) - SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) SudoKVQueryResult(ctx sdk.Context, contractAddress sdk.AccAddress, queryID uint64) ([]byte, error) SudoTxQueryResult(ctx sdk.Context, contractAddress sdk.AccAddress, queryID uint64, height ibcclienttypes.Height, data []byte) ([]byte, error) } diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index d1deab8fa..4fe930e1f 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -1,8 +1,6 @@ package keeper import ( - "github.com/neutron-org/neutron/neutronutils" - neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" "time" "cosmossdk.io/errors" @@ -17,7 +15,7 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -// HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call. +// HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a sudo call. func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleAcknowledgment) @@ -34,63 +32,48 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-27 packet acknowledgement: %v", err) } + if !k.contractManagerKeeper.HasContractInfo(ctx, icaOwner.GetContract()) { + //return fmt.Errorf("%s is not a contract address", icaOwner.GetContract()) + return nil + } + k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - func() { - defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) - // Actually we have only one kind of error returned from acknowledgement - // maybe later we'll retrieve actual errors from events - if ack.GetError() != "" { - - _, err = k.contractManagerKeeper.SudoError(cacheCtx, icaOwner.GetContract(), packet, ack.GetError()) - } else { - _, err = k.contractManagerKeeper.SudoResponse(cacheCtx, icaOwner.GetContract(), packet, ack.GetResult()) - } - }() - if err != nil { - // the contract either returned an error or panicked with `out of gas` - k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), contractmanagertypes.Ack, &ack) - k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) + // Actually we have only one kind of error returned from acknowledgement + // maybe later we'll retrieve actual errors from events + // `err` value from `SudoError/SudoResponse` should always be nil, since we contractmanager wrapped by `SudoLimitWrapper` + if ack.GetError() != "" { + _, err = k.contractManagerKeeper.SudoError(ctx, icaOwner.GetContract(), packet, ack) } else { - writeFn() + _, err = k.contractManagerKeeper.SudoResponse(ctx, icaOwner.GetContract(), packet, ack) } - ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") - - return nil + return err } -// HandleTimeout passes the timeout data to the appropriate contract via a Sudo call. +// HandleTimeout passes the timeout data to the appropriate contract via a sudo call. // Since all ICA channels are ORDERED, a single timeout shuts down a channel. func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleTimeout) + k.Logger(ctx).Debug("HandleTimeout") icaOwner, err := types.ICAOwnerFromPort(packet.SourcePort) - k.Logger(ctx).Debug("HandleTimeout") if err != nil { k.Logger(ctx).Error("HandleTimeout: failed to get ica owner from source port", "error", err) return errors.Wrap(err, "failed to get ica owner from port") } - k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - - cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.contractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - func() { - defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) - _, err = k.contractManagerKeeper.SudoTimeout(cacheCtx, icaOwner.GetContract(), packet) - }() - if err != nil { - // the contract either returned an error or panicked with `out of gas` - k.contractManagerKeeper.AddContractFailure(ctx, &packet, icaOwner.GetContract().String(), contractmanagertypes.Timeout, nil) - k.Logger(ctx).Error("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) - } else { - writeFn() + if !k.contractManagerKeeper.HasContractInfo(ctx, icaOwner.GetContract()) { + //return fmt.Errorf("%s is not a contract address", icaOwner.GetContract()) + return nil } - ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") + k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) + + // `err` value from `SudoTimeout` should always be nil, since we contractmanager wrapped by `SudoLimitWrapper` + _, err = k.contractManagerKeeper.SudoTimeout(ctx, icaOwner.GetContract(), packet) - return nil + return err } // HandleChanOpenAck passes the data about a successfully created channel to the appropriate contract @@ -113,6 +96,11 @@ func (k *Keeper) HandleChanOpenAck( return errors.Wrap(err, "failed to get ica owner from port") } + if !k.contractManagerKeeper.HasContractInfo(ctx, icaOwner.GetContract()) { + //return fmt.Errorf("%s is not a contract address", icaOwner.GetContract()) + return nil + } + _, err = k.contractManagerKeeper.SudoOnChanOpenAck(ctx, icaOwner.GetContract(), contractmanagertypes.OpenAckDetails{ PortID: portID, ChannelID: channelID, @@ -120,8 +108,8 @@ func (k *Keeper) HandleChanOpenAck( CounterpartyVersion: counterpartyVersion, }) if err != nil { - k.Logger(ctx).Debug("HandleChanOpenAck: failed to Sudo contract on packet timeout", "error", err) - return errors.Wrap(err, "failed to Sudo the contract OnChanOpenAck") + k.Logger(ctx).Debug("HandleChanOpenAck: failed to sudo contract on packet timeout", "error", err) + return errors.Wrap(err, "failed to sudo the contract OnChanOpenAck") } return nil diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 85f435d4b..50e74b2f0 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -17,25 +17,15 @@ import ( feetypes "github.com/neutron-org/neutron/x/feerefunder/types" ) -var ( - ShouldNotBeWrittenKey = []byte("shouldnotkey") - ShouldNotBeWritten = []byte("should not be written") - ShouldBeWritten = []byte("should be written") -) - -func ShouldBeWrittenKey(suffix string) []byte { - return append([]byte("shouldkey"), []byte(suffix)...) -} - func TestHandleAcknowledgement(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx, storeKey := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) + icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - store := ctx.KVStore(storeKey) + //store := ctx.KVStore(storeKey) errACK := channeltypes.Acknowledgement{ Response: &channeltypes.Acknowledgement_Error{ @@ -64,86 +54,96 @@ func TestHandleAcknowledgement(t *testing.T) { err = icak.HandleAcknowledgement(ctx, p, nil, relayerAddress) require.ErrorContains(t, err, "cannot unmarshal ICS-27 packet acknowledgement") - // error during SudoResponse + // success contract SudoResponse ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 - }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 4000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &resACK) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) - // error during SudoError + // success contract SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) - // success during SudoError + // error contract SudoResponse ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.NoError(t, err) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror"))) - require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) + cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK).Return(nil, fmt.Errorf("error sudoResponse")) + err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) + require.Error(t, err) - // out of gas during SudoError + // error contract SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(7001, "out of gas test") - }) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK).Return(nil, fmt.Errorf("error sudoError")) err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) + require.Error(t, err) - // success during SudoResponse + // no contract SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudoresponse"), ShouldBeWritten) // consumes 3140 gas, 2000 flat write + 30 every byte of key+value - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) - feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) - require.Equal(t, uint64(3140), ctx.GasMeter().GasConsumed()) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse"))) - // not enough gas provided by relayer for SudoCallGasLimit - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") - }) - feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test + //// success during SudoError + //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + //cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { + // store := cachedCtx.KVStore(storeKey) + // store.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) + //}).Return(nil, nil) + //cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) + //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + //err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) + //require.NoError(t, err) + //require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror"))) + //require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) + // + //// out of gas during SudoError + //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + //cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { + // store := cachedCtx.KVStore(storeKey) + // store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + // cachedCtx.GasMeter().ConsumeGas(7001, "out of gas test") + //}) + //cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) + //cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) + //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + //err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) + //require.NoError(t, err) + //require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + //require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) + // + //// success during SudoResponse + //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + //cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { + // store := cachedCtx.KVStore(storeKey) + // store.Set(ShouldBeWrittenKey("sudoresponse"), ShouldBeWritten) // consumes 3140 gas, 2000 flat write + 30 every byte of key+value + //}).Return(nil, nil) + //cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) + //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + //err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) + //require.NoError(t, err) + //require.Equal(t, uint64(3140), ctx.GasMeter().GasConsumed()) + //require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse"))) + // + //// not enough gas provided by relayer for SudoCallGasLimit + //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + //lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) + //cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { + // store := cachedCtx.KVStore(storeKey) + // store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + // cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") + //}) + //feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + //cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) + //require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test } func TestHandleTimeout(t *testing.T) { @@ -152,9 +152,8 @@ func TestHandleTimeout(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx, storeKey := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) + icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - store := ctx.KVStore(storeKey) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" relayerAddress := sdk.MustAccAddressFromBech32(relayerBech32) @@ -167,63 +166,27 @@ func TestHandleTimeout(t *testing.T) { err := icak.HandleTimeout(ctx, channeltypes.Packet{}, relayerAddress) require.ErrorContains(t, err, "failed to get ica owner from port") - gasReserved := false + // contract success ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - if cachedCtx.GasMeter().Limit() == 4000 { - gasReserved = true - } - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudotimeout"), ShouldBeWritten) // consumes 3110 gas, 2000 flat write + 30 every byte of key+value - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 4000}) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p) err = icak.HandleTimeout(ctx, p, relayerAddress) - require.True(t, gasReserved) - require.Equal(t, uint64(3110), ctx.GasMeter().GasConsumed()) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout"))) require.NoError(t, err) - // error during SudoTimeOut + // contract error ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p).Return(nil, fmt.Errorf("SudoTimeout error")) err = icak.HandleTimeout(ctx, p, relayerAddress) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Error(t, err) - // out of gas during SudoTimeOut + // no contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(6001, "out of gas test") - }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) - feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = icak.HandleTimeout(ctx, p, relayerAddress) - require.Equal(t, uint64(6000), ctx.GasMeter().GasConsumed()) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - - // not enough gas provided by relayer for SudoCallGasLimit - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) - feeKeeper.EXPECT().DistributeTimeoutFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a panic test } func TestHandleChanOpenAck(t *testing.T) { @@ -239,6 +202,7 @@ func TestHandleChanOpenAck(t *testing.T) { err := icak.HandleChanOpenAck(ctx, "", channelID, counterpartyChannelID, "1") require.ErrorContains(t, err, "failed to get ica owner from port") + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) cmKeeper.EXPECT().SudoOnChanOpenAck(ctx, contractAddress, types.OpenAckDetails{ PortID: portID, ChannelID: channelID, @@ -246,8 +210,9 @@ func TestHandleChanOpenAck(t *testing.T) { CounterpartyVersion: "1", }).Return(nil, fmt.Errorf("SudoOnChanOpenAck error")) err = icak.HandleChanOpenAck(ctx, portID, channelID, counterpartyChannelID, "1") - require.ErrorContains(t, err, "failed to Sudo the contract OnChanOpenAck") + require.ErrorContains(t, err, "failed to sudo the contract OnChanOpenAck") + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) cmKeeper.EXPECT().SudoOnChanOpenAck(ctx, contractAddress, types.OpenAckDetails{ PortID: portID, ChannelID: channelID, @@ -256,4 +221,8 @@ func TestHandleChanOpenAck(t *testing.T) { }).Return(nil, nil) err = icak.HandleChanOpenAck(ctx, portID, channelID, counterpartyChannelID, "1") require.NoError(t, err) + + cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + err = icak.HandleChanOpenAck(ctx, portID, channelID, counterpartyChannelID, "1") + require.NoError(t, err) } diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index a9be5877b..13d7f7cf3 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -26,11 +26,11 @@ type BankKeeper interface { type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) - SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) - SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) + SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) + SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) SudoOnChanOpenAck(ctx sdk.Context, contractAddress sdk.AccAddress, details contractmanagertypes.OpenAckDetails) ([]byte, error) + AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) GetParams(ctx sdk.Context) (params contractmanagertypes.Params) } diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index a3a7b72ed..efecb0cff 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -1,21 +1,16 @@ package transfer import ( - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" - "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - "github.com/neutron-org/neutron/neutronutils" - - neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/types" ) -// HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call. +// HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a sudo call. func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { var ack channeltypes.Acknowledgement if err := channeltypes.SubModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { @@ -36,34 +31,21 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - func() { - defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) - if ack.Success() { - _, err = im.ContractManagerKeeper.SudoResponse(cacheCtx, senderAddress, packet, ack.GetResult()) - } else { - // Actually we have only one kind of error returned from acknowledgement - // maybe later we'll retrieve actual errors from events - im.keeper.Logger(cacheCtx).Debug(ack.GetError(), "CheckTx", cacheCtx.IsCheckTx()) - _, err = im.ContractManagerKeeper.SudoError(cacheCtx, senderAddress, packet, ack.GetError()) - } - }() - if err != nil { - // the contract either returned an error or panicked with `out of gas` - im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), contractmanagertypes.Ack, &ack) - im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet acknowledgement", err) + if ack.Success() { + _, err = im.ContractManagerKeeper.SudoResponse(ctx, senderAddress, packet, ack) } else { - writeFn() + // Actually we have only one kind of error returned from acknowledgement + // maybe later we'll retrieve actual errors from events + im.keeper.Logger(ctx).Debug(ack.GetError(), "CheckTx", ctx.IsCheckTx()) + _, err = im.ContractManagerKeeper.SudoError(ctx, senderAddress, packet, ack) } - ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") - im.keeper.Logger(ctx).Debug("acknowledgement received", "Packet data", data, "CheckTx", ctx.IsCheckTx()) - return nil + return err } -// HandleTimeout passes the timeout data to the appropriate contract via a Sudo call. +// HandleTimeout passes the timeout data to the appropriate contract via a sudo call. func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error { var data transfertypes.FungibleTokenPacketData if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { @@ -80,20 +62,7 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, im.ContractManagerKeeper.GetParams(ctx).SudoCallGasLimit) - func() { - defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) - _, err = im.ContractManagerKeeper.SudoTimeout(cacheCtx, senderAddress, packet) - }() - if err != nil { - // the contract either returned an error or panicked with `out of gas` - im.ContractManagerKeeper.AddContractFailure(ctx, &packet, senderAddress.String(), contractmanagertypes.Timeout, nil) - im.keeper.Logger(ctx).Debug("failed to Sudo contract on packet timeout", err) - } else { - writeFn() - } - - ctx.GasMeter().ConsumeGas(cacheCtx.GasMeter().GasConsumedToLimit(), "consume gas from cached context") + _, err = im.ContractManagerKeeper.SudoTimeout(ctx, senderAddress, packet) - return nil + return err } diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 191bbfa8d..e93d91c97 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -2,7 +2,6 @@ package transfer_test import ( "fmt" - "github.com/neutron-org/neutron/x/contractmanager/types" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -39,10 +38,9 @@ func TestHandleAcknowledgement(t *testing.T) { authKeeper := mock_types.NewMockAccountKeeper(ctrl) // required to initialize keeper authKeeper.EXPECT().GetModuleAddress(transfertypes.ModuleName).Return([]byte("address")) - txKeeper, infCtx, storeKey := testkeeper.TransferKeeper(t, cmKeeper, feeKeeper, chanKeeper, authKeeper) + txKeeper, infCtx, _ := testkeeper.TransferKeeper(t, cmKeeper, feeKeeper, chanKeeper, authKeeper) txModule := transfer.NewIBCModule(*txKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - store := ctx.KVStore(storeKey) errACK := channeltypes.Acknowledgement{ Response: &channeltypes.Acknowledgement_Error{ @@ -94,137 +92,43 @@ func TestHandleAcknowledgement(t *testing.T) { require.NoError(t, err) p.Data = tokenBz - // error during SudoResponse non contract + // non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // error during SudoResponse contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 - }).Return(nil, fmt.Errorf("SudoResponse error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &resACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK).Return(nil, fmt.Errorf("SudoResponse error")) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) - - // error during SudoError non contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) + require.Error(t, err) // error during SudoError contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // consumes 2990 - }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK).Return(nil, fmt.Errorf("SudoError error")) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) + require.Error(t, err) - // success during SudoError non contract + // success during SudoError ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.NoError(t, err) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) - - // success during SudoError contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudoerror_contract"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 9000}) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.NoError(t, err) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror_contract"))) - require.Equal(t, uint64(3320), ctx.GasMeter().GasConsumed()) - - // recoverable out of gas during SudoError non contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - require.NoError(t, err) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) - - // recoverable out of gas during SudoError contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(11001, "out of gas test") - }).Return(nil, fmt.Errorf("SudoError error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 11000}) - // FIXME: fix distribution during outofgas cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK) err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(11000), ctx.GasMeter().GasConsumed()) - // check we have ReserveGas reserved and - // check gas consumption from cachedCtx has added to the main ctx - // one of the ways to check it - make the check during SudoResponse call - // non contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) - require.NoError(t, err) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) - - // contract + // success during SudoError contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - gasReserved := false - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - if cachedCtx.GasMeter().Limit() == 13000 { - gasReserved = true - } - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudoresponse_contract_success"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 13000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - require.True(t, gasReserved) - require.Equal(t, uint64(3650), ctx.GasMeter().GasConsumed()) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse_contract_success"))) - - // not enough gas provided by relayer SudoCallGasLimit - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) - cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) - cmKeeper.EXPECT().HasContractInfo(lowGasCtx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { txModule.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a test - // NOTE: looks its impossible to test store reset after panic, because test `require.PanicsWithValue` recovers the panic - // require.Empty(t, store.Get(ShouldNotBeWrittenKey)) } func TestHandleTimeout(t *testing.T) { @@ -236,10 +140,9 @@ func TestHandleTimeout(t *testing.T) { authKeeper := mock_types.NewMockAccountKeeper(ctrl) // required to initialize keeper authKeeper.EXPECT().GetModuleAddress(transfertypes.ModuleName).Return([]byte("address")) - txKeeper, infCtx, storeKey := testkeeper.TransferKeeper(t, cmKeeper, feeKeeper, chanKeeper, authKeeper) + txKeeper, infCtx, _ := testkeeper.TransferKeeper(t, cmKeeper, feeKeeper, chanKeeper, authKeeper) txModule := transfer.NewIBCModule(*txKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - store := ctx.KVStore(storeKey) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" relayerAddress := sdk.MustAccAddressFromBech32(relayerBech32) @@ -278,84 +181,21 @@ func TestHandleTimeout(t *testing.T) { ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) require.NoError(t, err) // success contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - gasReserved := false - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - if cachedCtx.GasMeter().Limit() == 5000 { - gasReserved = true - } - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldBeWrittenKey("sudotimeout_contract_success"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 5000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p).Return(nil, nil) err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.True(t, gasReserved) require.NoError(t, err) - require.Equal(t, uint64(3620), ctx.GasMeter().GasConsumed()) - require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudotimeout_contract_success"))) - - // error during SudoTimeOut non contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.NoError(t, err) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) // error during SudoTimeOut contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(2990), ctx.GasMeter().GasConsumed()) - - // out of gas during SudoTimeOut non contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.NoError(t, err) - require.Equal(t, uint64(0), ctx.GasMeter().GasConsumed()) - - // out of gas during SudoTimeOut contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(ctx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(8001, "out of gas test") - }).Return(nil, fmt.Errorf("SudoTimeout error")) - cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Timeout, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) + cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p).Return(nil, fmt.Errorf("SudoTimeout error")) err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.NoError(t, err) - require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - require.Equal(t, uint64(8000), ctx.GasMeter().GasConsumed()) - - // not enough gas provided by relayer for SudoCallGasLimit - lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) - cmKeeper.EXPECT().SudoTimeout(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) { - store := cachedCtx.KVStore(storeKey) - store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 14000}) - cmKeeper.EXPECT().HasContractInfo(lowGasCtx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeTimeoutFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { txModule.HandleTimeout(lowGasCtx, p, relayerAddress) }) //nolint:errcheck // this is a test - // NOTE: looks its impossible to test store reset after panic, because test `require.PanicsWithValue` recovers the panic - // require.Empty(t, store.Get(ShouldNotBeWrittenKey)) + require.Error(t, err) } diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index af269e1d8..774daf841 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -4,19 +4,15 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" - feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) // ContractManagerKeeper defines the expected interface needed to add ack information about sudo failure. type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) - SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) - SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) + SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) + SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) - GetParams(ctx sdk.Context) (params contractmanagertypes.Params) } type FeeRefunderKeeper interface { From 6d36314d8237c4bf28ebf097f567dd867f6a613c Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 8 Sep 2023 12:56:49 +0400 Subject: [PATCH 105/307] upd keeper, whitelist msgs --- app/proposals_allowlisting.go | 16 +++++++++++++++- wasmbinding/bindings/msg.go | 2 +- x/tokenfactory/keeper/keeper.go | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 20d54b4bd..a5853cf30 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -11,6 +11,13 @@ import ( 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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" + crontypes "github.com/neutron-org/neutron/x/cron/types" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" + interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" + interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" + tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" ) func IsConsumerProposalAllowlisted(content govtypes.Content) bool { @@ -46,7 +53,14 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *wasmtypes.MsgPinCodes, *wasmtypes.MsgUnpinCodes, *upgradetypes.MsgSoftwareUpgrade, - *upgradetypes.MsgCancelUpgrade: + *upgradetypes.MsgCancelUpgrade, + *tokenfactorytypes.MsgUpdateParams, + *interchainqueriestypes.MsgUpdateParams, + *interchaintxstypes.MsgUpdateParams, + *feeburnertypes.MsgUpdateParams, + *feerefundertypes.MsgUpdateParams, + *crontypes.MsgUpdateParams, + *contractmanagertypes.MsgUpdateParams: return true } return false diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index dc9096b6e..d4b3cb7cc 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -182,7 +182,7 @@ type BurnTokens struct { type SetBeforeSend struct { Denom string `json:"denom"` - CosmWasmAddr string `json:"mint_to_address"` + CosmWasmAddr string `json:"cosm_wasm_addr"` } // AddSchedule adds new schedule to the cron module diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 36f3c53f6..9f4641cd6 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -46,7 +46,7 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } -// Logger returns a logger for the x/tokenfactory module +// GetAuthority returns an authority for the x/tokenfactory module func (k Keeper) GetAuthority() string { return k.authority } From b332e03e84bac0d36e14f235537850a255f5ae2e Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 8 Sep 2023 17:26:50 +0400 Subject: [PATCH 106/307] rewrite proto, fix authorities & queries --- app/app.go | 4 +- .../osmosis/tokenfactory/v1beta1/query.proto | 10 +- wasmbinding/bindings/msg.go | 6 +- wasmbinding/bindings/query.go | 10 + wasmbinding/custom_querier.go | 13 + wasmbinding/message_plugin.go | 14 +- wasmbinding/queries.go | 7 + x/tokenfactory/client/cli/query.go | 4 +- x/tokenfactory/keeper/grpc_query.go | 7 +- x/tokenfactory/types/query.pb.go | 227 +++++++++++++----- x/tokenfactory/types/query.pb.gw.go | 80 ++++-- 11 files changed, 282 insertions(+), 100 deletions(-) diff --git a/app/app.go b/app/app.go index 12b69aea4..8e1b61e75 100644 --- a/app/app.go +++ b/app/app.go @@ -629,7 +629,7 @@ func New( app.ContractManagerKeeper, interchainqueriesmodulekeeper.Verifier{}, interchainqueriesmodulekeeper.TransactionVerifier{}, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.InterchainTxsKeeper = *interchaintxskeeper.NewKeeper( appCodec, @@ -639,7 +639,7 @@ func New( app.ICAControllerKeeper, app.ContractManagerKeeper, app.FeeKeeper, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String()) diff --git a/proto/osmosis/tokenfactory/v1beta1/query.proto b/proto/osmosis/tokenfactory/v1beta1/query.proto index 4254767a7..09864e8a1 100644 --- a/proto/osmosis/tokenfactory/v1beta1/query.proto +++ b/proto/osmosis/tokenfactory/v1beta1/query.proto @@ -21,7 +21,7 @@ service Query { rpc DenomAuthorityMetadata(QueryDenomAuthorityMetadataRequest) returns (QueryDenomAuthorityMetadataResponse) { option (google.api.http).get = - "/osmosis/tokenfactory/v1beta1/denoms/{denom}/authority_metadata"; + "/osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/authority_metadata"; } // DenomsFromCreator defines a gRPC query method for fetching all @@ -37,7 +37,7 @@ service Query { rpc BeforeSendHookAddress(QueryBeforeSendHookAddressRequest) returns (QueryBeforeSendHookAddressResponse) { option (google.api.http).get = - "/osmosis/tokenfactory/v1beta1/denoms/{denom}/before_send_hook"; + "/osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/before_send_hook"; } } @@ -53,7 +53,8 @@ message QueryParamsResponse { // QueryDenomAuthorityMetadataRequest defines the request structure for the // DenomAuthorityMetadata gRPC query. message QueryDenomAuthorityMetadataRequest { - string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; + string creator = 1 [ (gogoproto.moretags) = "yaml:\"creator\"" ]; + string subdenom = 2 [ (gogoproto.moretags) = "yaml:\"subdenom\"" ]; } // QueryDenomAuthorityMetadataResponse defines the response structure for the @@ -78,7 +79,8 @@ message QueryDenomsFromCreatorResponse { } message QueryBeforeSendHookAddressRequest { - string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; + string creator = 1 [ (gogoproto.moretags) = "yaml:\"creator\"" ]; + string subdenom = 2 [ (gogoproto.moretags) = "yaml:\"subdenom\"" ]; } // QueryBeforeSendHookAddressResponse defines the response structure for the diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index d4b3cb7cc..dfd1e1529 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -41,8 +41,8 @@ type NeutronMsg struct { /// Contracts can burn native tokens for an existing factory denom /// that they are the admin of. /// Currently, the burn from address must be the admin contract. - BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` - SetBeforeSend *SetBeforeSend `json:"set_before_send,omitempty"` + BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` + SetBeforeSendHook *SetBeforeSendHook `json:"set_before_send_hook,omitempty"` // Cron types AddSchedule *AddSchedule `json:"add_schedule,omitempty"` @@ -180,7 +180,7 @@ type BurnTokens struct { BurnFromAddress string `json:"burn_from_address"` } -type SetBeforeSend struct { +type SetBeforeSendHook struct { Denom string `json:"denom"` CosmWasmAddr string `json:"cosm_wasm_addr"` } diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index 0d76a9ac2..b9e0438f7 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -34,6 +34,8 @@ type NeutronQuery struct { FullDenom *FullDenom `json:"full_denom,omitempty"` // Returns the admin of a denom, if the denom is a Token Factory denom. DenomAdmin *DenomAdmin `json:"denom_admin,omitempty"` + // + BeforeSendHook *BeforeSendHook `json:"before_send_hook,omitempty"` // Contractmanager queries // Query all failures for address Failures *Failures `json:"failures,omitempty"` @@ -183,6 +185,14 @@ type DenomAdmin struct { Subdenom string `json:"subdenom"` } +type BeforeSendHook struct { + Denom string `json:"denom"` +} + +type BeforeSendHookResponse struct { + CosmWasmAddr string `json:"cosm_wasm_addr"` +} + type DenomAdminResponse struct { Admin string `json:"admin"` } diff --git a/wasmbinding/custom_querier.go b/wasmbinding/custom_querier.go index 385ab69e8..36d0d6c63 100644 --- a/wasmbinding/custom_querier.go +++ b/wasmbinding/custom_querier.go @@ -128,6 +128,19 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag return bz, nil + case contractQuery.BeforeSendHook != nil: + res, err := qp.GetBeforeSendHook(ctx, contractQuery.BeforeSendHook.Denom) + if err != nil { + return nil, errors.Wrap(err, "unable to get denom before send hook") + } + + bz, err := json.Marshal(res) + if err != nil { + return nil, errors.Wrap(err, "failed to JSON marshal BeforeSendHookResponse response") + } + + return bz, nil + case contractQuery.Failures != nil: res, err := qp.GetFailures(ctx, contractQuery.Failures.Address, contractQuery.Failures.Pagination) if err != nil { diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 68d7b5670..c11ae3931 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -121,8 +121,8 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre if contractMsg.MintTokens != nil { return m.mintTokens(ctx, contractAddr, contractMsg.MintTokens) } - if contractMsg.SetBeforeSend != nil { - return m.setBeforeSend(ctx, contractAddr, contractMsg.SetBeforeSend) + if contractMsg.SetBeforeSendHook != nil { + return m.setBeforeSendHook(ctx, contractAddr, contractMsg.SetBeforeSendHook) } if contractMsg.ChangeAdmin != nil { return m.changeAdmin(ctx, contractAddr, contractMsg.ChangeAdmin) @@ -499,10 +499,10 @@ func (m *CustomMessenger) mintTokens(ctx sdk.Context, contractAddr sdk.AccAddres } // mintTokens mints tokens of a specified denom to an address. -func (m *CustomMessenger) setBeforeSend(ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSend) ([]sdk.Event, [][]byte, error) { - err := PerformSetBeforeSend(m.TokenFactory, ctx, contractAddr, set) +func (m *CustomMessenger) setBeforeSendHook(ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSendHook) ([]sdk.Event, [][]byte, error) { + err := PerformSetBeforeSendHook(m.TokenFactory, ctx, contractAddr, set) if err != nil { - return nil, nil, errors.Wrap(err, "perform mint") + return nil, nil, errors.Wrap(err, "perform set before send hook") } return nil, nil, nil } @@ -535,13 +535,13 @@ func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk return nil } -func PerformSetBeforeSend(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSend) error { +func PerformSetBeforeSendHook(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSendHook) error { sdkMsg := tokenfactorytypes.NewMsgSetBeforeSendHook(contractAddr.String(), set.Denom, set.CosmWasmAddr) if err := sdkMsg.ValidateBasic(); err != nil { return err } - // SetBeforeSend through token factory / message server + // SetBeforeSendHook through token factory / message server msgServer := tokenfactorykeeper.NewMsgServerImpl(*f) _, err := msgServer.SetBeforeSendHook(sdk.WrapSDKContext(ctx), sdkMsg) if err != nil { diff --git a/wasmbinding/queries.go b/wasmbinding/queries.go index ef5930b0d..1d3cf42c6 100644 --- a/wasmbinding/queries.go +++ b/wasmbinding/queries.go @@ -95,6 +95,13 @@ func (qp QueryPlugin) GetDenomAdmin(ctx sdk.Context, denom string) (*bindings.De return &bindings.DenomAdminResponse{Admin: metadata.Admin}, nil } +// GetBeforeSendHook is a query to get denom before send hook. +func (qp QueryPlugin) GetBeforeSendHook(ctx sdk.Context, denom string) (*bindings.BeforeSendHookResponse, error) { + cosmWasmAddr := qp.tokenFactoryKeeper.GetBeforeSendHook(ctx, denom) + + return &bindings.BeforeSendHookResponse{CosmWasmAddr: cosmWasmAddr}, nil +} + func (qp *QueryPlugin) GetTotalBurnedNeutronsAmount(ctx sdk.Context, _ *bindings.QueryTotalBurnedNeutronsAmountRequest) (*bindings.QueryTotalBurnedNeutronsAmountResponse, error) { grpcResp := qp.feeBurnerKeeper.GetTotalBurnedNeutronsAmount(ctx) return &bindings.QueryTotalBurnedNeutronsAmountResponse{Coin: grpcResp.Coin}, nil diff --git a/x/tokenfactory/client/cli/query.go b/x/tokenfactory/client/cli/query.go index 11e4dc944..425bf783d 100644 --- a/x/tokenfactory/client/cli/query.go +++ b/x/tokenfactory/client/cli/query.go @@ -84,7 +84,7 @@ func GetCmdDenomAuthorityMetadata() *cobra.Command { } res, err := queryClient.DenomAuthorityMetadata(cmd.Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: args[0], + Subdenom: args[0], }) if err != nil { return err @@ -113,7 +113,7 @@ func GetCmdDenomsFromCreator() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) res, err := queryClient.BeforeSendHookAddress(cmd.Context(), &types.QueryBeforeSendHookAddressRequest{ - Denom: args[0], + Subdenom: args[0], }) if err != nil { return err diff --git a/x/tokenfactory/keeper/grpc_query.go b/x/tokenfactory/keeper/grpc_query.go index ea2ad259c..59c62a1e4 100644 --- a/x/tokenfactory/keeper/grpc_query.go +++ b/x/tokenfactory/keeper/grpc_query.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "fmt" sdk "github.com/cosmos/cosmos-sdk/types" @@ -20,7 +21,8 @@ func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*typ func (k Keeper) DenomAuthorityMetadata(ctx context.Context, req *types.QueryDenomAuthorityMetadataRequest) (*types.QueryDenomAuthorityMetadataResponse, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) - authorityMetadata, err := k.GetAuthorityMetadata(sdkCtx, req.GetDenom()) + denom := fmt.Sprintf("factory/%s/%s", req.GetCreator(), req.GetSubdenom()) + authorityMetadata, err := k.GetAuthorityMetadata(sdkCtx, denom) if err != nil { return nil, err } @@ -37,7 +39,8 @@ func (k Keeper) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFro func (k Keeper) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) - cosmwasmAddress := k.GetBeforeSendHook(sdkCtx, req.GetDenom()) + denom := fmt.Sprintf("factory/%s/%s", req.GetCreator(), req.GetSubdenom()) + cosmwasmAddress := k.GetBeforeSendHook(sdkCtx, denom) return &types.QueryBeforeSendHookAddressResponse{CosmwasmAddress: cosmwasmAddress}, nil } diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index 126c06e8b..1d06ab5fd 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -115,7 +115,8 @@ func (m *QueryParamsResponse) GetParams() Params { // QueryDenomAuthorityMetadataRequest defines the request structure for the // DenomAuthorityMetadata gRPC query. type QueryDenomAuthorityMetadataRequest struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` + Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` } func (m *QueryDenomAuthorityMetadataRequest) Reset() { *m = QueryDenomAuthorityMetadataRequest{} } @@ -151,9 +152,16 @@ func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDenomAuthorityMetadataRequest proto.InternalMessageInfo -func (m *QueryDenomAuthorityMetadataRequest) GetDenom() string { +func (m *QueryDenomAuthorityMetadataRequest) GetCreator() string { if m != nil { - return m.Denom + return m.Creator + } + return "" +} + +func (m *QueryDenomAuthorityMetadataRequest) GetSubdenom() string { + if m != nil { + return m.Subdenom } return "" } @@ -297,7 +305,8 @@ func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string { } type QueryBeforeSendHookAddressRequest struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` + Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` } func (m *QueryBeforeSendHookAddressRequest) Reset() { *m = QueryBeforeSendHookAddressRequest{} } @@ -333,9 +342,16 @@ func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryBeforeSendHookAddressRequest proto.InternalMessageInfo -func (m *QueryBeforeSendHookAddressRequest) GetDenom() string { +func (m *QueryBeforeSendHookAddressRequest) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *QueryBeforeSendHookAddressRequest) GetSubdenom() string { if m != nil { - return m.Denom + return m.Subdenom } return "" } @@ -402,48 +418,49 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 653 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x4d, 0x4f, 0x53, 0x4d, - 0x14, 0xc7, 0x7b, 0x9f, 0x47, 0x6a, 0x18, 0xdf, 0x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be, 0xa7, 0xd9, 0xe5, 0xad, 0x66, 0x4e, - 0xcb, 0xb0, 0x98, 0x5b, 0x07, 0xd8, 0xf0, 0x56, 0x77, 0x0f, 0x5c, 0x67, 0xef, 0xc0, 0x75, 0xbe, - 0x1f, 0xb8, 0xce, 0xa7, 0x43, 0x37, 0xb1, 0x77, 0xe8, 0x26, 0xbe, 0x1d, 0xba, 0x89, 0x37, 0x33, - 0xa5, 0xb2, 0x59, 0xaf, 0xe6, 0x33, 0x05, 0x08, 0x78, 0x28, 0xab, 0x46, 0x41, 0x78, 0x1f, 0x54, - 0xa9, 0xf5, 0xcd, 0xdf, 0x1f, 0x2f, 0x68, 0x6a, 0x15, 0xa9, 0xf3, 0x49, 0xfb, 0x3f, 0x33, 0xf3, - 0x3b, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x1b, 0x6a, 0xf2, 0x46, 0x07, 0x00, 0x00, + // 671 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x4f, 0x4f, 0x53, 0x4d, + 0x14, 0xc6, 0x3b, 0xbc, 0xaf, 0x55, 0xc6, 0x28, 0x32, 0xa0, 0x62, 0xc5, 0x5b, 0x19, 0x89, 0x81, + 0x04, 0x3b, 0xf2, 0x67, 0x25, 0x1a, 0xe1, 0x62, 0x88, 0x89, 0x21, 0xd1, 0x2b, 0x31, 0x91, 0x98, + 0x34, 0xd3, 0x76, 0x28, 0x0d, 0xdc, 0x7b, 0xca, 0xcc, 0x54, 0x6d, 0x08, 0x1b, 0x4c, 0x5c, 0x9b, + 0xb8, 0xf4, 0x3b, 0xf8, 0x39, 0x58, 0x92, 0xb0, 0x71, 0xd5, 0x18, 0xf0, 0x13, 0x74, 0xe1, 0xc6, + 0x8d, 0xe9, 0xcc, 0x14, 0x84, 0x96, 0x9b, 0x0a, 0x89, 0xbb, 0x9b, 0x99, 0x73, 0x9e, 0xf3, 0xfc, +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, 0xb1, 0xf9, 0xcd, 0xde, 0x1f, 0x75, 0xa1, 0xab, 0x65, 0xa1, 0x72, 0x49, 0xf3, 0x07, + 0x9c, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x90, 0xae, 0xbc, 0xc7, 0xe0, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -726,10 +743,17 @@ func (m *QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + if len(m.Subdenom) > 0 { + i -= len(m.Subdenom) + copy(dAtA[i:], m.Subdenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Subdenom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0xa } @@ -851,10 +875,17 @@ func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (i _ = i var l int _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + if len(m.Subdenom) > 0 { + i -= len(m.Subdenom) + copy(dAtA[i:], m.Subdenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Subdenom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0xa } @@ -928,7 +959,11 @@ func (m *QueryDenomAuthorityMetadataRequest) Size() (n int) { } var l int _ = l - l = len(m.Denom) + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Subdenom) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -980,7 +1015,11 @@ func (m *QueryBeforeSendHookAddressRequest) Size() (n int) { } var l int _ = l - l = len(m.Denom) + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Subdenom) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -1170,7 +1209,39 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1198,7 +1269,7 @@ func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) + m.Subdenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1499,7 +1570,39 @@ func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subdenom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1527,7 +1630,7 @@ func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) + m.Subdenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 5d75e90ba..3da3e9e6d 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -62,15 +62,26 @@ func request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + } + + protoReq.Creator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + } + + val, ok = pathParams["subdenom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") } - protoReq.Denom, err = runtime.String(val) + protoReq.Subdenom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) } msg, err := client.DenomAuthorityMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -89,15 +100,26 @@ func local_request_Query_DenomAuthorityMetadata_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + } + + protoReq.Creator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + } + + val, ok = pathParams["subdenom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") } - protoReq.Denom, err = runtime.String(val) + protoReq.Subdenom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) } msg, err := server.DenomAuthorityMetadata(ctx, &protoReq) @@ -170,15 +192,26 @@ func request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtim _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + } + + protoReq.Creator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + } + + val, ok = pathParams["subdenom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") } - protoReq.Denom, err = runtime.String(val) + protoReq.Subdenom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) } msg, err := client.BeforeSendHookAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -197,15 +230,26 @@ func local_request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["denom"] + val, ok = pathParams["creator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + } + + protoReq.Creator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + } + + val, ok = pathParams["subdenom"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "subdenom") } - protoReq.Denom, err = runtime.String(val) + protoReq.Subdenom, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "subdenom", err) } msg, err := server.BeforeSendHookAddress(ctx, &protoReq) @@ -438,11 +482,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "tokenfactory", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BeforeSendHookAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "before_send_hook"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BeforeSendHookAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "factory", "creator", "subdenom", "before_send_hook"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( From 3df403915b2a9292fd330b891524f9a001eeb381 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 11 Sep 2023 13:23:55 +0400 Subject: [PATCH 107/307] return tests --- x/tokenfactory/types/denoms_test.go | 64 ++++++++++++ x/tokenfactory/types/genesis_test.go | 142 +++++++++++++++++++++++++++ 2 files changed, 206 insertions(+) create mode 100644 x/tokenfactory/types/denoms_test.go create mode 100644 x/tokenfactory/types/genesis_test.go diff --git a/x/tokenfactory/types/denoms_test.go b/x/tokenfactory/types/denoms_test.go new file mode 100644 index 000000000..1950dca81 --- /dev/null +++ b/x/tokenfactory/types/denoms_test.go @@ -0,0 +1,64 @@ +package types_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/x/tokenfactory/types" +) + +func TestDecomposeDenoms(t *testing.T) { + app.GetDefaultConfig() + for _, tc := range []struct { + desc string + denom string + valid bool + }{ + { + desc: "empty is invalid", + denom: "", + valid: false, + }, + { + desc: "normal", + denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + valid: true, + }, + { + desc: "multiple slashes in subdenom", + denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin/1", + valid: true, + }, + { + desc: "no subdenom", + denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/", + valid: true, + }, + { + desc: "incorrect prefix", + denom: "ibc/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + valid: false, + }, + { + desc: "subdenom of only slashes", + denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/////", + valid: true, + }, + { + desc: "too long name", + denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/adsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsfadsf", + valid: false, + }, + } { + t.Run(tc.desc, func(t *testing.T) { + _, _, err := types.DeconstructDenom(tc.denom) + if tc.valid { + require.NoError(t, err) + } else { + require.Error(t, err) + } + }) + } +} diff --git a/x/tokenfactory/types/genesis_test.go b/x/tokenfactory/types/genesis_test.go new file mode 100644 index 000000000..5fb4ef794 --- /dev/null +++ b/x/tokenfactory/types/genesis_test.go @@ -0,0 +1,142 @@ +package types_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/x/tokenfactory/types" +) + +func TestGenesisState_Validate(t *testing.T) { + app.GetDefaultConfig() + + for _, tc := range []struct { + desc string + genState *types.GenesisState + valid bool + }{ + { + desc: "default is valid", + genState: types.DefaultGenesis(), + valid: true, + }, + { + desc: "valid genesis state", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2", + }, + }, + }, + }, + valid: true, + }, + { + desc: "different admin from creator", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2", + }, + }, + }, + }, + valid: true, + }, + { + desc: "empty admin", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "", + }, + }, + }, + }, + valid: true, + }, + { + desc: "no admin", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + }, + }, + }, + valid: true, + }, + { + desc: "invalid admin", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "moose", + }, + }, + }, + }, + valid: false, + }, + { + desc: "multiple denoms", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "", + }, + }, + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/litecoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "", + }, + }, + }, + }, + valid: true, + }, + { + desc: "duplicate denoms", + genState: &types.GenesisState{ + FactoryDenoms: []types.GenesisDenom{ + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "", + }, + }, + { + Denom: "factory/neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2/bitcoin", + AuthorityMetadata: types.DenomAuthorityMetadata{ + Admin: "", + }, + }, + }, + }, + valid: false, + }, + } { + t.Run(tc.desc, func(t *testing.T) { + err := tc.genState.Validate() + if tc.valid { + require.NoError(t, err) + } else { + require.Error(t, err) + } + }) + } +} From 21227c3a65a33dd7c7c612816892bca5bc1f03b7 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 11 Sep 2023 13:33:08 +0400 Subject: [PATCH 108/307] add cli command for new msg --- x/tokenfactory/client/cli/tx.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index 357e089a4..450207d27 100644 --- a/x/tokenfactory/client/cli/tx.go +++ b/x/tokenfactory/client/cli/tx.go @@ -30,6 +30,7 @@ func GetTxCmd() *cobra.Command { NewBurnCmd(), // NewForceTransferCmd(), NewChangeAdminCmd(), + NewSetBeforeSendHook(), ) return cmd @@ -199,3 +200,34 @@ func NewChangeAdminCmd() *cobra.Command { flags.AddTxFlagsToCmd(cmd) return cmd } + +// NewChangeAdminCmd broadcast MsgChangeAdmin +func NewSetBeforeSendHook() *cobra.Command { + cmd := &cobra.Command{ + Use: "set-before-send-hook [denom] [cosm-wasm-addr] [flags]", + Short: "Sets the before send hook for a factory-created denom. Must have admin authority to do so.", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + txf, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) + if err != nil { + return err + } + + msg := types.NewMsgSetBeforeSendHook( + clientCtx.GetFromAddress().String(), + args[0], + args[1], + ) + + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf.WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + return cmd +} From b6cd7baebbd2c6b9e97d9bdc63716e0fde02f0f1 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 11 Sep 2023 18:08:52 +0400 Subject: [PATCH 109/307] comments --- app/app.go | 2 +- wasmbinding/bindings/query.go | 2 +- x/tokenfactory/keeper/admins_test.go | 19 +++++++++++++------ x/tokenfactory/keeper/createdenom_test.go | 11 +++++++---- x/tokenfactory/keeper/genesis.go | 2 +- x/tokenfactory/types/codec.go | 2 +- x/tokenfactory/types/params.go | 2 +- 7 files changed, 25 insertions(+), 15 deletions(-) diff --git a/app/app.go b/app/app.go index 8e1b61e75..abf093ee5 100644 --- a/app/app.go +++ b/app/app.go @@ -575,7 +575,7 @@ func New( app.keys[tokenfactorytypes.StoreKey], app.AccountKeeper, app.BankKeeper.WithMintCoinsRestriction(tokenfactorytypes.NewTokenFactoryDenomMintCoinsRestriction()), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.TokenFactoryKeeper = &tokenFactoryKeeper diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index b9e0438f7..7305a1007 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -34,7 +34,7 @@ type NeutronQuery struct { FullDenom *FullDenom `json:"full_denom,omitempty"` // Returns the admin of a denom, if the denom is a Token Factory denom. DenomAdmin *DenomAdmin `json:"denom_admin,omitempty"` - // + // Returns the before send hook if it was set before BeforeSendHook *BeforeSendHook `json:"before_send_hook,omitempty"` // Contractmanager queries // Query all failures for address diff --git a/x/tokenfactory/keeper/admins_test.go b/x/tokenfactory/keeper/admins_test.go index 0828ffcef..a001c1102 100644 --- a/x/tokenfactory/keeper/admins_test.go +++ b/x/tokenfactory/keeper/admins_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "fmt" + "strings" sdk "github.com/cosmos/cosmos-sdk/types" @@ -15,9 +16,10 @@ func (suite *KeeperTestSuite) TestAdminMsgs() { suite.Setup() suite.CreateDefaultDenom(suite.ChainA.GetContext()) // Make sure that the admin is set correctly - //denom := strings.Split(suite.defaultDenom, "/") + denom := strings.Split(suite.defaultDenom, "/") queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: suite.defaultDenom, + Creator: denom[1], + Subdenom: denom[2], }) suite.Require().NoError(err) suite.Require().Equal(suite.TestAccs[0].String(), queryRes.AuthorityMetadata.Admin) @@ -38,9 +40,10 @@ func (suite *KeeperTestSuite) TestAdminMsgs() { // Test Change Admin _, err = suite.msgServer.ChangeAdmin(sdk.WrapSDKContext(suite.ChainA.GetContext()), types.NewMsgChangeAdmin(suite.TestAccs[0].String(), suite.defaultDenom, suite.TestAccs[1].String())) suite.Require().NoError(err) - //denom = strings.Split(suite.defaultDenom, "/") + denom = strings.Split(suite.defaultDenom, "/") queryRes, err = suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: suite.defaultDenom, + Creator: denom[1], + Subdenom: denom[2], }) suite.Require().NoError(err) suite.Require().Equal(suite.TestAccs[1].String(), queryRes.AuthorityMetadata.Admin) @@ -58,8 +61,10 @@ func (suite *KeeperTestSuite) TestAdminMsgs() { // Try setting admin to empty _, err = suite.msgServer.ChangeAdmin(sdk.WrapSDKContext(suite.ChainA.GetContext()), types.NewMsgChangeAdmin(suite.TestAccs[1].String(), suite.defaultDenom, "")) suite.Require().NoError(err) + denom = strings.Split(suite.defaultDenom, "/") queryRes, err = suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: suite.defaultDenom, + Creator: denom[1], + Subdenom: denom[2], }) suite.Require().NoError(err) suite.Require().Equal("", queryRes.AuthorityMetadata.Admin) @@ -246,8 +251,10 @@ func (suite *KeeperTestSuite) TestChangeAdminDenom() { suite.Require().Error(err) } + denom := strings.Split(testDenom, "/") queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: testDenom, + Creator: denom[1], + Subdenom: denom[2], }) suite.Require().NoError(err) diff --git a/x/tokenfactory/keeper/createdenom_test.go b/x/tokenfactory/keeper/createdenom_test.go index 0b1c004ea..423dc4a1d 100644 --- a/x/tokenfactory/keeper/createdenom_test.go +++ b/x/tokenfactory/keeper/createdenom_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "fmt" + "strings" sdk "github.com/cosmos/cosmos-sdk/types" @@ -36,10 +37,11 @@ func (suite *KeeperTestSuite) TestMsgCreateDenom() { suite.Require().Equal(sdk.NewInt(TopUpCoinsAmount), feeCollectorBalance) // Make sure that the admin is set correctly - //denom := strings.Split(res.GetNewTokenDenom(), "/") + denom := strings.Split(res.GetNewTokenDenom(), "/") queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: res.GetNewTokenDenom(), + Creator: denom[1], + Subdenom: denom[2], }) suite.Require().NoError(err) suite.Require().Equal(suite.TestAccs[0].String(), queryRes.AuthorityMetadata.Admin) @@ -124,11 +126,12 @@ func (suite *KeeperTestSuite) TestCreateDenom() { if tc.valid { suite.Require().NoError(err) - //denom := strings.Split(res.GetNewTokenDenom(), "/") + denom := strings.Split(res.GetNewTokenDenom(), "/") // Make sure that the admin is set correctly queryRes, err := suite.queryClient.DenomAuthorityMetadata(suite.ChainA.GetContext().Context(), &types.QueryDenomAuthorityMetadataRequest{ - Denom: res.GetNewTokenDenom(), + Creator: denom[1], + Subdenom: denom[2], }) suite.Require().NoError(err) diff --git a/x/tokenfactory/keeper/genesis.go b/x/tokenfactory/keeper/genesis.go index 288297a8d..8bd6e28ec 100644 --- a/x/tokenfactory/keeper/genesis.go +++ b/x/tokenfactory/keeper/genesis.go @@ -6,7 +6,7 @@ import ( "github.com/neutron-org/neutron/x/tokenfactory/types" ) -// / InitGenesis initializes the tokenfactory module's state from a provided genesis +// InitGenesis initializes the tokenfactory module's state from a provided genesis // state. func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { k.CreateModuleAccount(ctx) diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 42f15f0e5..a4ae0b61f 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -26,7 +26,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgCreateDenom{}, &MsgMint{}, &MsgBurn{}, - // &MsgForceTransfer{}, // TODO: why commented? + // &MsgForceTransfer{}, &MsgChangeAdmin{}, &MsgSetBeforeSendHook{}, &MsgUpdateParams{}, diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index afbae8a49..a0120bfd6 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -17,7 +17,7 @@ var ( DefaultFeeAmount int64 = 1_000_000 ) -// ParamTable for gamm module. +// ParamTable for tokenfactory module. func ParamKeyTable() paramtypes.KeyTable { return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) } From 04e94ba8c43f5f2b8bfb0f24c55ce539ebcbad10 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 11 Sep 2023 18:11:01 +0400 Subject: [PATCH 110/307] fix osmo comments --- x/tokenfactory/types/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index a0120bfd6..a30342c32 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -29,7 +29,7 @@ func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Param } } -// default gamm module parameters. +// default tokenfactory module parameters. func DefaultParams() Params { return Params{ // For choice, see: https://github.com/osmosis-labs/osmosis/pull/4983 From 112b268777c3a23a9c66b952b161d469ddffe80d Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 12 Sep 2023 15:41:46 +0400 Subject: [PATCH 111/307] post-review --- app/app.go | 12 +----- proto/neutron/interchaintxs/v1/tx.proto | 2 +- proto/osmosis/tokenfactory/v1beta1/tx.proto | 2 +- wasmbinding/bindings/msg.go | 5 ++- wasmbinding/custom_querier.go | 2 +- wasmbinding/message_plugin.go | 4 +- x/contractmanager/module.go | 1 + x/interchainqueries/keeper/msg_server.go | 6 +-- x/interchaintxs/types/codec.go | 1 + x/interchaintxs/types/tx.pb.go | 2 +- x/tokenfactory/client/cli/query.go | 46 +++++++++++++++++---- x/tokenfactory/keeper/createdenom.go | 15 +++++++ x/tokenfactory/keeper/keeper.go | 12 +++--- x/tokenfactory/types/tx.pb.go | 2 +- 14 files changed, 78 insertions(+), 34 deletions(-) diff --git a/app/app.go b/app/app.go index abf093ee5..d05ac1d8c 100644 --- a/app/app.go +++ b/app/app.go @@ -575,6 +575,7 @@ func New( app.keys[tokenfactorytypes.StoreKey], app.AccountKeeper, app.BankKeeper.WithMintCoinsRestriction(tokenfactorytypes.NewTokenFactoryDenomMintCoinsRestriction()), + app.WasmKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.TokenFactoryKeeper = &tokenFactoryKeeper @@ -1161,7 +1162,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) paramsKeeper.Subspace(authtypes.ModuleName) - paramsKeeper.Subspace(banktypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(crisistypes.ModuleName) paramsKeeper.Subspace(ibctransfertypes.ModuleName) @@ -1172,16 +1172,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) paramsKeeper.Subspace(ccvconsumertypes.ModuleName) - //paramsKeeper.Subspace(tokenfactorytypes.ModuleName) - - paramsKeeper.Subspace(interchainqueriesmoduletypes.ModuleName) - paramsKeeper.Subspace(interchaintxstypes.ModuleName) - paramsKeeper.Subspace(wasm.ModuleName) - paramsKeeper.Subspace(feetypes.ModuleName) - paramsKeeper.Subspace(feeburnertypes.ModuleName) - paramsKeeper.Subspace(crontypes.ModuleName) - paramsKeeper.Subspace(globalfee.ModuleName) - return paramsKeeper } diff --git a/proto/neutron/interchaintxs/v1/tx.proto b/proto/neutron/interchaintxs/v1/tx.proto index 1ffd51e06..535fa81f6 100644 --- a/proto/neutron/interchaintxs/v1/tx.proto +++ b/proto/neutron/interchaintxs/v1/tx.proto @@ -74,7 +74,7 @@ message MsgUpdateParams { // Authority is the address of the governance account. string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - // params defines the x/tokenfactory parameters to update. + // params defines the x/interchaintxs parameters to update. // // NOTE: All parameters must be supplied. Params params = 2 diff --git a/proto/osmosis/tokenfactory/v1beta1/tx.proto b/proto/osmosis/tokenfactory/v1beta1/tx.proto index 83d0fa8ac..7f4ce2fb3 100644 --- a/proto/osmosis/tokenfactory/v1beta1/tx.proto +++ b/proto/osmosis/tokenfactory/v1beta1/tx.proto @@ -151,7 +151,7 @@ message MsgUpdateParams { // Authority is the address of the governance account. string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - // params defines the x/interchainqueries parameters to update. + // params defines the x/tokenfactory parameters to update. // // NOTE: All parameters must be supplied. Params params = 2 diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index dfd1e1529..fd9ca9236 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -41,7 +41,10 @@ type NeutronMsg struct { /// Contracts can burn native tokens for an existing factory denom /// that they are the admin of. /// Currently, the burn from address must be the admin contract. - BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` + BurnTokens *BurnTokens `json:"burn_tokens,omitempty"` + /// Contracts can set before send hook for an existing factory denom + // that they are the admin of. + // Currently, the set before hook call should be performed from address that must be the admin contract. SetBeforeSendHook *SetBeforeSendHook `json:"set_before_send_hook,omitempty"` // Cron types diff --git a/wasmbinding/custom_querier.go b/wasmbinding/custom_querier.go index 36d0d6c63..4709551ac 100644 --- a/wasmbinding/custom_querier.go +++ b/wasmbinding/custom_querier.go @@ -131,7 +131,7 @@ func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessag case contractQuery.BeforeSendHook != nil: res, err := qp.GetBeforeSendHook(ctx, contractQuery.BeforeSendHook.Denom) if err != nil { - return nil, errors.Wrap(err, "unable to get denom before send hook") + return nil, errors.Wrap(err, "unable to get denom before_send_hook") } bz, err := json.Marshal(res) diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index c11ae3931..5b78a2a5e 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -498,11 +498,11 @@ func (m *CustomMessenger) mintTokens(ctx sdk.Context, contractAddr sdk.AccAddres return nil, nil, nil } -// mintTokens mints tokens of a specified denom to an address. +// setBeforeSendHook sets before send hook for a specified denom. func (m *CustomMessenger) setBeforeSendHook(ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSendHook) ([]sdk.Event, [][]byte, error) { err := PerformSetBeforeSendHook(m.TokenFactory, ctx, contractAddr, set) if err != nil { - return nil, nil, errors.Wrap(err, "perform set before send hook") + return nil, nil, errors.Wrap(err, "failed to perform set before send hook") } return nil, nil, nil } diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index c9f11ba1b..e12420b7b 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -128,6 +128,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey } // 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) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) m := keeper.NewMigrator(am.keeper) if err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2); err != nil { diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index ad9a27e6d..219c07e21 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -311,17 +311,17 @@ func (m msgServer) validateUpdateInterchainQueryParams( } // UpdateParams updates the module parameters -func (m msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { +func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { if err := req.ValidateBasic(); err != nil { return nil, err } - authority := m.Keeper.GetAuthority() + authority := k.GetAuthority() if authority != req.Authority { return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) - if err := m.Keeper.SetParams(ctx, req.Params); err != nil { + if err := k.SetParams(ctx, req.Params); err != nil { return nil, err } diff --git a/x/interchaintxs/types/codec.go b/x/interchaintxs/types/codec.go index 5257c05a6..95fb1ccd7 100644 --- a/x/interchaintxs/types/codec.go +++ b/x/interchaintxs/types/codec.go @@ -18,6 +18,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgRegisterInterchainAccount{}, &MsgSubmitTx{}, + &MsgUpdateParams{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 34a62cb7b..bd723ca24 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -222,7 +222,7 @@ func (m *MsgSubmitTxResponse) GetChannel() string { type MsgUpdateParams struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the x/tokenfactory parameters to update. + // params defines the x/interchaintxs parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` diff --git a/x/tokenfactory/client/cli/query.go b/x/tokenfactory/client/cli/query.go index 425bf783d..59a457975 100644 --- a/x/tokenfactory/client/cli/query.go +++ b/x/tokenfactory/client/cli/query.go @@ -1,8 +1,6 @@ package cli import ( - // "strings" - "fmt" "strings" @@ -11,9 +9,6 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - // "github.com/cosmos/cosmos-sdk/client/flags" - // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/x/tokenfactory/types" ) @@ -84,7 +79,8 @@ func GetCmdDenomAuthorityMetadata() *cobra.Command { } res, err := queryClient.DenomAuthorityMetadata(cmd.Context(), &types.QueryDenomAuthorityMetadataRequest{ - Subdenom: args[0], + Creator: args[1], + Subdenom: args[2], }) if err != nil { return err @@ -112,8 +108,44 @@ func GetCmdDenomsFromCreator() *cobra.Command { } queryClient := types.NewQueryClient(clientCtx) + res, err := queryClient.DenomsFromCreator(cmd.Context(), &types.QueryDenomsFromCreatorRequest{ + Creator: args[0], + }) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +// GetCmdDenomAuthorityMetadata returns the authority metadata for a queried denom +func GetCmdBeforeSendHook() *cobra.Command { + cmd := &cobra.Command{ + Use: "before-send-hiik [denom] [flags]", + Short: "Get the before send hook for a specific denom", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := types.NewQueryClient(clientCtx) + + denom := strings.Split(args[0], "/") + + if len(denom) != 3 { + return fmt.Errorf("invalid denom format, expected format: factory/[creator]/[subdenom]") + } + res, err := queryClient.BeforeSendHookAddress(cmd.Context(), &types.QueryBeforeSendHookAddressRequest{ - Subdenom: args[0], + Creator: denom[1], + Subdenom: denom[2], }) if err != nil { return err diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index 37b4cdec5..4cfff3b21 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -76,6 +76,21 @@ func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr string, subdeno func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err error) { params := k.GetParams(ctx) + // if DenomCreationFee is non-zero, transfer the tokens from the creator + // account to community pool + if params.DenomCreationFee != nil { + // NEUTRON IMPORTANT: We commented this section because we removed community pool keeper from the module + + //accAddr, err := sdk.AccAddressFromBech32(creatorAddr) + //if err != nil { + // return err + //} + // + //if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { + // return err + //} + } + // if DenomCreationGasConsume is non-zero, consume the gas if params.DenomCreationGasConsume != 0 { ctx.GasMeter().ConsumeGas(params.DenomCreationGasConsume, "consume denom creation gas") diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 9f4641cd6..1bea2bcca 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -30,14 +30,16 @@ func NewKeeper( storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, + contractKeeper types.ContractKeeper, authority string, ) Keeper { return Keeper{ - cdc: cdc, - storeKey: storeKey, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - authority: authority, + cdc: cdc, + storeKey: storeKey, + accountKeeper: accountKeeper, + bankKeeper: bankKeeper, + contractKeeper: contractKeeper, + authority: authority, } } diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index 26bcf2095..2a887b635 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -739,7 +739,7 @@ var xxx_messageInfo_MsgForceTransferResponse proto.InternalMessageInfo type MsgUpdateParams struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the x/interchainqueries parameters to update. + // params defines the x/tokenfactory parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` From c198c2d2e91dfd3f64c01a3725fb83e26df9b18b Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 12 Sep 2023 15:51:45 +0400 Subject: [PATCH 112/307] fix-comment --- x/tokenfactory/client/cli/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index 450207d27..ec42a0463 100644 --- a/x/tokenfactory/client/cli/tx.go +++ b/x/tokenfactory/client/cli/tx.go @@ -201,7 +201,7 @@ func NewChangeAdminCmd() *cobra.Command { return cmd } -// NewChangeAdminCmd broadcast MsgChangeAdmin +// NewSetBeforeSendHook broadcast MsgSetBeforeSendHook func NewSetBeforeSendHook() *cobra.Command { cmd := &cobra.Command{ Use: "set-before-send-hook [denom] [cosm-wasm-addr] [flags]", From e884a287255a3a3145b463217c995b731d3fffcb Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 12 Sep 2023 15:57:58 +0400 Subject: [PATCH 113/307] rm community pool mentions --- x/tokenfactory/types/expected_keepers.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/x/tokenfactory/types/expected_keepers.go b/x/tokenfactory/types/expected_keepers.go index 5c3a1491c..928915056 100644 --- a/x/tokenfactory/types/expected_keepers.go +++ b/x/tokenfactory/types/expected_keepers.go @@ -33,11 +33,6 @@ type BankHooks interface { BlockBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) error // Must be before any send is executed } -// CommunityPoolKeeper defines the contract needed to be fulfilled for community pool interactions. -type CommunityPoolKeeper interface { - FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error -} - type ContractKeeper interface { Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } From 26d6c6fb0b7617532ea26ac566fbea551a0ca1f9 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 12 Sep 2023 16:24:25 +0400 Subject: [PATCH 114/307] comment + add important commennt about chargeForCreateDenom; change wasmbindings query --- wasmbinding/bindings/query.go | 2 +- wasmbinding/queries.go | 2 +- x/tokenfactory/keeper/createdenom.go | 24 ++++++++++++------------ x/tokenfactory/types/params.go | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index 7305a1007..7e0e32f06 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -190,7 +190,7 @@ type BeforeSendHook struct { } type BeforeSendHookResponse struct { - CosmWasmAddr string `json:"cosm_wasm_addr"` + ContractAddr string `json:"contract_addr"` } type DenomAdminResponse struct { diff --git a/wasmbinding/queries.go b/wasmbinding/queries.go index 1d3cf42c6..95739bb46 100644 --- a/wasmbinding/queries.go +++ b/wasmbinding/queries.go @@ -99,7 +99,7 @@ func (qp QueryPlugin) GetDenomAdmin(ctx sdk.Context, denom string) (*bindings.De func (qp QueryPlugin) GetBeforeSendHook(ctx sdk.Context, denom string) (*bindings.BeforeSendHookResponse, error) { cosmWasmAddr := qp.tokenFactoryKeeper.GetBeforeSendHook(ctx, denom) - return &bindings.BeforeSendHookResponse{CosmWasmAddr: cosmWasmAddr}, nil + return &bindings.BeforeSendHookResponse{ContractAddr: cosmWasmAddr}, nil } func (qp *QueryPlugin) GetTotalBurnedNeutronsAmount(ctx sdk.Context, _ *bindings.QueryTotalBurnedNeutronsAmountRequest) (*bindings.QueryTotalBurnedNeutronsAmountResponse, error) { diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index 4cfff3b21..91080fe45 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -76,20 +76,20 @@ func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr string, subdeno func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err error) { params := k.GetParams(ctx) + // NEUTRON IMPORTANT: We commented this section because we removed community pool keeper from the modules section + // if DenomCreationFee is non-zero, transfer the tokens from the creator // account to community pool - if params.DenomCreationFee != nil { - // NEUTRON IMPORTANT: We commented this section because we removed community pool keeper from the module - - //accAddr, err := sdk.AccAddressFromBech32(creatorAddr) - //if err != nil { - // return err - //} - // - //if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { - // return err - //} - } + //if params.DenomCreationFee != nil { + // accAddr, err := sdk.AccAddressFromBech32(creatorAddr) + // if err != nil { + // return err + // } + // + // if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { + // return err + // } + //} // if DenomCreationGasConsume is non-zero, consume the gas if params.DenomCreationGasConsume != 0 { diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index a30342c32..648426319 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -32,9 +32,9 @@ func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Param // default tokenfactory module parameters. func DefaultParams() Params { return Params{ - // For choice, see: https://github.com/osmosis-labs/osmosis/pull/4983 - DenomCreationFee: sdk.NewCoins(sdk.NewInt64Coin(DefaultNeutronDenom, DefaultFeeAmount)), - DenomCreationGasConsume: uint64(DefaultCreationGasFee), + // We don't want to charge users for denom creation + DenomCreationFee: nil, + DenomCreationGasConsume: 0, } } From b69d2f3f85cd18ebebafd8ce70612a26bde5e088 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 12 Sep 2023 16:34:46 +0400 Subject: [PATCH 115/307] upd upgrade handler --- app/upgrades/sdk47/upgrades.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go index b962ec819..6821978ca 100644 --- a/app/upgrades/sdk47/upgrades.go +++ b/app/upgrades/sdk47/upgrades.go @@ -52,7 +52,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Migrating tokenfactory module parameters...") - if err := migrateTokenFactoryParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { + if err := migrateTokenFactoryParams(ctx, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { return nil, err } @@ -126,17 +126,15 @@ func migrateFeeRefunderParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper return nil } -func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { +func migrateTokenFactoryParams(ctx sdk.Context, storeKey storetypes.StoreKey, codec codec.Codec) error { store := ctx.KVStore(storeKey) - var currParams tokenfactorytypes.Params - subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) + newParams := tokenfactorytypes.Params{DenomCreationFee: nil, DenomCreationGasConsume: 0} - if err := currParams.Validate(); err != nil { + if err := newParams.Validate(); err != nil { return err } - bz := codec.MustMarshal(&currParams) + bz := codec.MustMarshal(&newParams) store.Set(tokenfactorytypes.ParamsKey, bz) return nil } From 49a500eb1ddd18e0cc1d19e89ce342b572548f4e Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 13:50:37 +0400 Subject: [PATCH 116/307] upd interchaintxs queries --- proto/neutron/interchaintxs/v1/query.proto | 8 +- x/interchaintxs/types/query.pb.go | 60 +++++---- x/interchaintxs/types/query.pb.gw.go | 149 ++++++++++++++++++++- 3 files changed, 184 insertions(+), 33 deletions(-) diff --git a/proto/neutron/interchaintxs/v1/query.proto b/proto/neutron/interchaintxs/v1/query.proto index ee32847e8..2960849f6 100644 --- a/proto/neutron/interchaintxs/v1/query.proto +++ b/proto/neutron/interchaintxs/v1/query.proto @@ -11,9 +11,13 @@ option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; // Query defines the gRPC querier service. service Query { // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {} + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/neutron/interchaintxs/v1/params"; + } rpc InterchainAccountAddress(QueryInterchainAccountAddressRequest) - returns (QueryInterchainAccountAddressResponse) {} + returns (QueryInterchainAccountAddressResponse) { + option (google.api.http).get = "/neutron/interchaintxs/v1/{owner_address}/{interchain_account_id}/{connection_id}/interchain_account_address"; + } } // QueryParamsRequest is request type for the Query/Params RPC method. diff --git a/x/interchaintxs/types/query.pb.go b/x/interchaintxs/types/query.pb.go index 0695f6c26..705885213 100644 --- a/x/interchaintxs/types/query.pb.go +++ b/x/interchaintxs/types/query.pb.go @@ -216,35 +216,37 @@ func init() { } var fileDescriptor_6130c5f6c54e2428 = []byte{ - // 434 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x31, 0x6f, 0xd3, 0x40, - 0x1c, 0xc5, 0xed, 0x02, 0x11, 0x1c, 0xb0, 0x5c, 0x5b, 0xc9, 0xb2, 0xc0, 0x41, 0xa6, 0x95, 0xa0, - 0x12, 0x3e, 0x25, 0x30, 0xd1, 0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0xb8, 0x8c, 0x17, 0x20, 0xcb, 0xc5, 0x37, 0xb9, 0x5a, 0x7b, 0xe2, 0xfa, 0xba, 0x62, 0x2a, 0xeb, - 0x98, 0xf7, 0xfd, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x28, 0xcd, 0x3d, 0xa5, 0x03, - 0x00, 0x00, + // 478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0xed, 0x14, 0x22, 0x38, 0x60, 0xb9, 0xb6, 0x52, 0x64, 0x81, 0x53, 0x99, 0x56, 0x2a, + 0x95, 0xf0, 0x29, 0x81, 0x89, 0x76, 0x69, 0xb7, 0x2c, 0x08, 0x32, 0xb2, 0x44, 0x17, 0xfb, 0xe4, + 0x9e, 0xd4, 0xdc, 0x73, 0xef, 0xce, 0xa5, 0x55, 0x94, 0x85, 0x09, 0xc4, 0x82, 0xc4, 0x17, 0x28, + 0x5f, 0x80, 0xcf, 0xd1, 0xb1, 0x12, 0x0b, 0x13, 0x42, 0x09, 0x03, 0x1f, 0x03, 0xf9, 0xee, 0xda, + 0xca, 0x25, 0x26, 0xa8, 0x5b, 0xf4, 0xf2, 0x7b, 0xff, 0xff, 0xff, 0xbd, 0x7b, 0x46, 0xeb, 0x82, + 0x15, 0x5a, 0x82, 0x20, 0x5c, 0x68, 0x26, 0x93, 0x7d, 0xca, 0x85, 0x3e, 0x56, 0xe4, 0xa8, 0x43, + 0x0e, 0x0b, 0x26, 0x4f, 0xe2, 0x5c, 0x82, 0x06, 0xbc, 0xea, 0xa8, 0xb8, 0x42, 0x05, 0x2b, 0x19, + 0x64, 0x60, 0x08, 0x52, 0xfe, 0xb2, 0x70, 0xf0, 0x30, 0x03, 0xc8, 0x0e, 0x18, 0xa1, 0x39, 0x27, + 0x54, 0x08, 0xd0, 0x54, 0x73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, 0x2f, 0x4b, 0xe8, 0xb6, + 0xf1, 0xc1, 0x1f, 0x7c, 0xd4, 0xb4, 0xab, 0xc3, 0x4f, 0x6a, 0x36, 0xfb, 0xf7, 0x5b, 0x05, 0x5b, + 0xff, 0x83, 0xda, 0xa4, 0xd1, 0xe6, 0xbb, 0x6f, 0xbf, 0x3e, 0x37, 0x22, 0xbc, 0x46, 0x16, 0x5c, + 0x07, 0xfe, 0xd8, 0x40, 0xad, 0xba, 0xc1, 0xf1, 0xf6, 0xbf, 0x2c, 0x17, 0x3c, 0x6f, 0xb0, 0x73, + 0xb3, 0x66, 0x37, 0x81, 0x36, 0x13, 0x08, 0x7c, 0x50, 0x3f, 0xc1, 0xb8, 0x72, 0x3d, 0x13, 0x32, + 0x9e, 0x7b, 0x28, 0x13, 0x32, 0xae, 0x1c, 0xc3, 0x84, 0xd4, 0xbf, 0xe1, 0xde, 0xcb, 0xb3, 0x69, + 0xe8, 0x9f, 0x4f, 0x43, 0xff, 0xe7, 0x34, 0xf4, 0x3f, 0xcd, 0x42, 0xef, 0x7c, 0x16, 0x7a, 0xdf, + 0x67, 0xa1, 0xf7, 0xe6, 0x79, 0xc6, 0xf5, 0x7e, 0x31, 0x8c, 0x13, 0x18, 0x5d, 0x24, 0x7a, 0x0a, + 0x32, 0xbb, 0x4c, 0x77, 0x7c, 0x2d, 0x9f, 0x3e, 0xc9, 0x99, 0x1a, 0x36, 0xcd, 0xc7, 0xf7, 0xec, + 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x7b, 0x94, 0x66, 0x42, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/interchaintxs/types/query.pb.gw.go b/x/interchaintxs/types/query.pb.gw.go index d029f8ab9..2375a7805 100644 --- a/x/interchaintxs/types/query.pb.gw.go +++ b/x/interchaintxs/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: interchaintxs/v1/query.proto +// source: neutron/interchaintxs/v1/query.proto /* Package types is a reverse proxy. @@ -51,6 +51,104 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } +func request_Query_InterchainAccountAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInterchainAccountAddressRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["owner_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner_address") + } + + protoReq.OwnerAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner_address", err) + } + + val, ok = pathParams["interchain_account_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "interchain_account_id") + } + + protoReq.InterchainAccountId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "interchain_account_id", err) + } + + val, ok = pathParams["connection_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "connection_id") + } + + protoReq.ConnectionId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "connection_id", err) + } + + msg, err := client.InterchainAccountAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InterchainAccountAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInterchainAccountAddressRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["owner_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner_address") + } + + protoReq.OwnerAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner_address", err) + } + + val, ok = pathParams["interchain_account_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "interchain_account_id") + } + + protoReq.InterchainAccountId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "interchain_account_id", err) + } + + val, ok = pathParams["connection_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "connection_id") + } + + protoReq.ConnectionId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "connection_id", err) + } + + msg, err := server.InterchainAccountAddress(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -80,6 +178,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_InterchainAccountAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InterchainAccountAddress_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InterchainAccountAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -141,13 +262,37 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_InterchainAccountAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InterchainAccountAddress_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InterchainAccountAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1, 2, 2}, []string{"neutron", "interchaintxs", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron", "interchaintxs", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_InterchainAccountAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"neutron", "interchaintxs", "v1", "owner_address", "interchain_account_id", "connection_id", "interchain_account_address"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_Params_0 = runtime.ForwardResponseMessage + + forward_Query_InterchainAccountAddress_0 = runtime.ForwardResponseMessage ) From c16d42e9da4f049c6f25984486ca5ea722aa6c53 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 13:51:12 +0400 Subject: [PATCH 117/307] modify charge for denom & upd upgrade handler --- app/upgrades/sdk47/upgrades.go | 13 ++- .../osmosis/tokenfactory/v1beta1/params.proto | 3 + x/tokenfactory/keeper/createdenom.go | 42 +++++--- x/tokenfactory/types/params.pb.go | 98 ++++++++++++++----- 4 files changed, 116 insertions(+), 40 deletions(-) diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go index 6821978ca..30817dc77 100644 --- a/app/upgrades/sdk47/upgrades.go +++ b/app/upgrades/sdk47/upgrades.go @@ -52,7 +52,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Migrating tokenfactory module parameters...") - if err := migrateTokenFactoryParams(ctx, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { + if err := migrateTokenFactoryParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { return nil, err } @@ -126,15 +126,18 @@ func migrateFeeRefunderParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper return nil } -func migrateTokenFactoryParams(ctx sdk.Context, storeKey storetypes.StoreKey, codec codec.Codec) error { +func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { store := ctx.KVStore(storeKey) - newParams := tokenfactorytypes.Params{DenomCreationFee: nil, DenomCreationGasConsume: 0} + var currParams tokenfactorytypes.Params + subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + currParams.DenomCreationGasConsume = 0 - if err := newParams.Validate(); err != nil { + if err := currParams.Validate(); err != nil { return err } - bz := codec.MustMarshal(&newParams) + bz := codec.MustMarshal(&currParams) store.Set(tokenfactorytypes.ParamsKey, bz) return nil } diff --git a/proto/osmosis/tokenfactory/v1beta1/params.proto b/proto/osmosis/tokenfactory/v1beta1/params.proto index 35f08f4c5..422dbd65e 100644 --- a/proto/osmosis/tokenfactory/v1beta1/params.proto +++ b/proto/osmosis/tokenfactory/v1beta1/params.proto @@ -26,4 +26,7 @@ message Params { (gogoproto.moretags) = "yaml:\"denom_creation_gas_consume\"", (gogoproto.nullable) = true ]; + + // FeeCollectorAddress is the address where fees collected from denom creation are sent to + string fee_collector_address = 3; } diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index 91080fe45..92b7533cc 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -4,6 +4,7 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -76,20 +77,35 @@ func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr string, subdeno func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err error) { params := k.GetParams(ctx) - // NEUTRON IMPORTANT: We commented this section because we removed community pool keeper from the modules section - - // if DenomCreationFee is non-zero, transfer the tokens from the creator + // ORIGINAL: if DenomCreationFee is non-zero, transfer the tokens from the creator // account to community pool - //if params.DenomCreationFee != nil { - // accAddr, err := sdk.AccAddressFromBech32(creatorAddr) - // if err != nil { - // return err - // } - // - // if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { - // return err - // } - //} + // MODIFIED: if DenomCreationFee is non-zero, transfer the tokens from the creator + // account to feeCollectorAddr + if params.DenomCreationFee != nil { + accAddr, err := sdk.AccAddressFromBech32(creatorAddr) + if err != nil { + return err + } + // Instead of funding community pool we send funds to fee collector addr + //if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { + // return err + //} + + feeCollectorAddr, err := sdk.AccAddressFromBech32(params.FeeCollectorAddress) + if err != nil { + return sdkerrors.Wrapf(err, "wrong fee collector address: %v", err) + } + + err = k.bankKeeper.SendCoins( + ctx, + accAddr, feeCollectorAddr, + params.DenomCreationFee, + ) + + if err != nil { + return sdkerrors.Wrap(err, "unable to send coins to fee collector") + } + } // if DenomCreationGasConsume is non-zero, consume the gas if params.DenomCreationGasConsume != 0 { diff --git a/x/tokenfactory/types/params.pb.go b/x/tokenfactory/types/params.pb.go index 5e9ce1d32..8bea9d12b 100644 --- a/x/tokenfactory/types/params.pb.go +++ b/x/tokenfactory/types/params.pb.go @@ -37,6 +37,8 @@ type Params struct { // // See: https://github.com/CosmWasm/token-factory/issues/11 DenomCreationGasConsume uint64 `protobuf:"varint,2,opt,name=denom_creation_gas_consume,json=denomCreationGasConsume,proto3" json:"denom_creation_gas_consume,omitempty" yaml:"denom_creation_gas_consume"` + // FeeCollectorAddress is the address where fees collected from denom creation are sent to + FeeCollectorAddress string `protobuf:"bytes,3,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -86,6 +88,13 @@ func (m *Params) GetDenomCreationGasConsume() uint64 { return 0 } +func (m *Params) GetFeeCollectorAddress() string { + if m != nil { + return m.FeeCollectorAddress + } + return "" +} + func init() { proto.RegisterType((*Params)(nil), "osmosis.tokenfactory.v1beta1.Params") } @@ -95,28 +104,30 @@ func init() { } var fileDescriptor_cc8299d306f3ff47 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x31, 0x4f, 0xc2, 0x40, - 0x14, 0xc7, 0x7b, 0x68, 0x18, 0xea, 0x62, 0x1a, 0x13, 0x81, 0x98, 0x2b, 0x76, 0x82, 0x81, 0x5e, - 0x90, 0xcd, 0x11, 0x12, 0x9d, 0x48, 0x0c, 0xa3, 0x4b, 0x73, 0x2d, 0x8f, 0xda, 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, 0xd1, 0xa9, 0x06, 0x0c, 0xcc, 0xfc, 0x0d, 0x80, 0x33, 0xb1, 0x1b, 0xbf, 0xa0, - 0x31, 0x97, 0x41, 0x84, 0x42, 0xce, 0x53, 0xa8, 0x55, 0x9a, 0xa4, 0x75, 0xdc, 0x6f, 0x2f, 0x73, - 0x97, 0x6c, 0x73, 0xf7, 0xf2, 0xdf, 0x10, 0x25, 0xbf, 0x37, 0x3a, 0x3f, 0x58, 0x70, 0xcb, 0xe5, - 0xa0, 0x50, 0xfa, 0xc3, 0xe5, 0x9a, 0x92, 0xd5, 0x9a, 0x92, 0xaf, 0x35, 0x25, 0xaf, 0x1b, 0x6a, - 0xad, 0x36, 0xd4, 0xfa, 0xd8, 0x50, 0xeb, 0xbe, 0x57, 0x4a, 0x2f, 0x60, 0xae, 0x32, 0x14, 0x1d, - 0xcc, 0xe2, 0x7d, 0xcd, 0x9e, 0x0f, 0x3f, 0x56, 0x5f, 0x27, 0xac, 0xea, 0x17, 0xee, 0x7d, 0x07, - 0x00, 0x00, 0xff, 0xff, 0x32, 0xf6, 0xab, 0x50, 0xfd, 0x01, 0x00, 0x00, + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x4e, 0xf2, 0x40, + 0x10, 0xc7, 0xbb, 0xf0, 0x85, 0xe4, 0xab, 0x17, 0x53, 0x35, 0x02, 0x31, 0x2d, 0xf6, 0x54, 0x0e, + 0xb4, 0x01, 0x6e, 0xde, 0xa4, 0x89, 0x9e, 0x48, 0x0c, 0x47, 0x2f, 0xcd, 0xb6, 0x9d, 0xd6, 0x06, + 0xba, 0x43, 0xba, 0x8b, 0x91, 0xb7, 0xf0, 0xe4, 0x43, 0xf8, 0x0e, 0xde, 0x39, 0x72, 0xf4, 0x54, + 0x0d, 0xbc, 0x01, 0x4f, 0x60, 0x68, 0x17, 0x03, 0xea, 0x69, 0x67, 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06, 0xd9, 0xe4, 0xc6, 0xe5, 0x9f, 0x43, 0xec, 0xf9, 0xcd, 0xd1, 0xf9, 0x41, 0x83, + 0x5b, 0xca, 0xdd, 0x52, 0xd1, 0x7a, 0xea, 0x59, 0x04, 0xe0, 0x05, 0x38, 0x99, 0xc0, 0x76, 0xed, + 0x1e, 0x0d, 0xc3, 0x0c, 0x38, 0xaf, 0x57, 0x5b, 0xc4, 0xfa, 0x3f, 0x3a, 0x89, 0x00, 0xdc, 0x9d, + 0x76, 0x5d, 0x4a, 0x83, 0xe1, 0x62, 0xa5, 0x93, 0xe5, 0x4a, 0x27, 0x9f, 0x2b, 0x9d, 0x3c, 0xaf, + 0x75, 0x65, 0xb9, 0xd6, 0x95, 0xf7, 0xb5, 0xae, 0xdc, 0xf7, 0xf7, 0x6e, 0xcc, 0x60, 0x26, 0x32, + 0x64, 0x1d, 0xcc, 0xe2, 0x5d, 0xec, 0x3c, 0x1d, 0x7e, 0x86, 0x62, 0x05, 0x7e, 0xad, 0x78, 0x95, + 0xfe, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x24, 0xb6, 0xa7, 0xfa, 0x31, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -139,6 +150,13 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.FeeCollectorAddress) > 0 { + i -= len(m.FeeCollectorAddress) + copy(dAtA[i:], m.FeeCollectorAddress) + i = encodeVarintParams(dAtA, i, uint64(len(m.FeeCollectorAddress))) + i-- + dAtA[i] = 0x1a + } if m.DenomCreationGasConsume != 0 { i = encodeVarintParams(dAtA, i, uint64(m.DenomCreationGasConsume)) i-- @@ -187,6 +205,10 @@ func (m *Params) Size() (n int) { if m.DenomCreationGasConsume != 0 { n += 1 + sovParams(uint64(m.DenomCreationGasConsume)) } + l = len(m.FeeCollectorAddress) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } return n } @@ -278,6 +300,38 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeCollectorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeCollectorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) From 98d673a4da73e86a619b3d3a0dda96c59e0e382a Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 16:05:51 +0400 Subject: [PATCH 118/307] polish --- app/app.go | 2 ++ wasmbinding/stargate_allowlist.go | 1 + 2 files changed, 3 insertions(+) diff --git a/app/app.go b/app/app.go index d05ac1d8c..ddee72c45 100644 --- a/app/app.go +++ b/app/app.go @@ -1171,6 +1171,8 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) + paramsKeeper.Subspace(globalfee.ModuleName) + paramsKeeper.Subspace(ccvconsumertypes.ModuleName) return paramsKeeper } diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index e054f0008..f09b9372a 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -24,6 +24,7 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/osmosis.tokenfactory.v1beta1.Query/Params": &tokenfactorytypes.QueryParamsResponse{}, "/osmosis.tokenfactory.v1beta1.Query/DenomAuthorityMetadata": &tokenfactorytypes.QueryDenomAuthorityMetadataResponse{}, "/osmosis.tokenfactory.v1beta1.Query/DenomsFromCreator": &tokenfactorytypes.QueryDenomsFromCreatorResponse{}, + "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress": &tokenfactorytypes.QueryBeforeSendHookAddressResponse{}, // transfer "/ibc.applications.transfer.v1.Query/DenomTrace": &ibctransfertypes.QueryDenomTraceResponse{}, From fd4df0d3eb67337823b10bf5c7c9e5b7ff9ba060 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 16:59:53 +0400 Subject: [PATCH 119/307] add legacy codec registration (just in case); --- x/contractmanager/types/codec.go | 3 ++- x/cron/types/codec.go | 3 ++- x/feeburner/types/codec.go | 3 ++- x/feerefunder/types/codec.go | 3 ++- x/interchainqueries/types/codec.go | 1 + x/interchaintxs/types/codec.go | 1 + 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/x/contractmanager/types/codec.go b/x/contractmanager/types/codec.go index a53442a0f..14f5aff7e 100644 --- a/x/contractmanager/types/codec.go +++ b/x/contractmanager/types/codec.go @@ -7,7 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(_ *codec.LegacyAmino) { +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgUpdateParams{}, "neutron.contractmanager.v1.MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { diff --git a/x/cron/types/codec.go b/x/cron/types/codec.go index a53442a0f..a52eff2c6 100644 --- a/x/cron/types/codec.go +++ b/x/cron/types/codec.go @@ -7,7 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(_ *codec.LegacyAmino) { +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgUpdateParams{}, "neutron.cron.MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { diff --git a/x/feeburner/types/codec.go b/x/feeburner/types/codec.go index a53442a0f..2ad579f19 100644 --- a/x/feeburner/types/codec.go +++ b/x/feeburner/types/codec.go @@ -7,7 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(_ *codec.LegacyAmino) { +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgUpdateParams{}, "neutron.feeburner.MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { diff --git a/x/feerefunder/types/codec.go b/x/feerefunder/types/codec.go index a53442a0f..81d2f74b0 100644 --- a/x/feerefunder/types/codec.go +++ b/x/feerefunder/types/codec.go @@ -7,7 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(_ *codec.LegacyAmino) { +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgUpdateParams{}, "neutron.feerefunder.MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { diff --git a/x/interchainqueries/types/codec.go b/x/interchainqueries/types/codec.go index 09c014a75..985707a3e 100644 --- a/x/interchainqueries/types/codec.go +++ b/x/interchainqueries/types/codec.go @@ -9,6 +9,7 @@ import ( func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgRegisterInterchainQuery{}, "interchainqueries/RegisterQuery", nil) + cdc.RegisterConcrete(&MsgUpdateParams{}, "interchainqueries/MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { diff --git a/x/interchaintxs/types/codec.go b/x/interchaintxs/types/codec.go index 95fb1ccd7..6cf813604 100644 --- a/x/interchaintxs/types/codec.go +++ b/x/interchaintxs/types/codec.go @@ -12,6 +12,7 @@ import ( func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgRegisterInterchainAccount{}, "/neutron.interchaintxs.v1.MsgRegisterInterchainAccount", nil) cdc.RegisterConcrete(&MsgSubmitTx{}, "/neutron.interchaintxs.v1.MsgSubmitTx", nil) + cdc.RegisterConcrete(&MsgUpdateParams{}, "/neutron.interchaintxs.v1.MsgUpdateParams", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { From d8546f82144e2e78986a6d916e2ded0688593716 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 18:00:32 +0400 Subject: [PATCH 120/307] implement http query --- proto/neutron/interchaintxs/v1/query.proto | 4 +- x/interchaintxs/module.go | 6 ++- x/interchaintxs/types/query.pb.go | 60 +++++++++++----------- x/interchaintxs/types/query.pb.gw.go | 4 +- 4 files changed, 39 insertions(+), 35 deletions(-) diff --git a/proto/neutron/interchaintxs/v1/query.proto b/proto/neutron/interchaintxs/v1/query.proto index 2960849f6..9af74de0c 100644 --- a/proto/neutron/interchaintxs/v1/query.proto +++ b/proto/neutron/interchaintxs/v1/query.proto @@ -12,11 +12,11 @@ option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/neutron/interchaintxs/v1/params"; + option (google.api.http).get = "/neutron/interchaintxs/params"; } rpc InterchainAccountAddress(QueryInterchainAccountAddressRequest) returns (QueryInterchainAccountAddressResponse) { - option (google.api.http).get = "/neutron/interchaintxs/v1/{owner_address}/{interchain_account_id}/{connection_id}/interchain_account_address"; + option (google.api.http).get = "/neutron/interchaintxs/{owner_address}/{interchain_account_id}/{connection_id}/interchain_account_address"; } } diff --git a/x/interchaintxs/module.go b/x/interchaintxs/module.go index 125ca7bb4..cbbc934ad 100644 --- a/x/interchaintxs/module.go +++ b/x/interchaintxs/module.go @@ -1,6 +1,7 @@ package interchaintxs import ( + "context" "encoding/json" "fmt" @@ -76,7 +77,10 @@ func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) { } // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux) { +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { + return + } } // GetTxCmd returns the capability module's root tx command. diff --git a/x/interchaintxs/types/query.pb.go b/x/interchaintxs/types/query.pb.go index 705885213..34432afb6 100644 --- a/x/interchaintxs/types/query.pb.go +++ b/x/interchaintxs/types/query.pb.go @@ -216,37 +216,37 @@ func init() { } var fileDescriptor_6130c5f6c54e2428 = []byte{ - // 478 bytes of a gzipped FileDescriptorProto + // 479 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0xed, 0x14, 0x22, 0x38, 0x60, 0xb9, 0xb6, 0x52, 0x64, 0x81, 0x53, 0x99, 0x56, 0x2a, - 0x95, 0xf0, 0x29, 0x81, 0x89, 0x76, 0x69, 0xb7, 0x2c, 0x08, 0x32, 0xb2, 0x44, 0x17, 0xfb, 0xe4, - 0x9e, 0xd4, 0xdc, 0x73, 0xef, 0xce, 0xa5, 0x55, 0x94, 0x85, 0x09, 0xc4, 0x82, 0xc4, 0x17, 0x28, - 0x5f, 0x80, 0xcf, 0xd1, 0xb1, 0x12, 0x0b, 0x13, 0x42, 0x09, 0x03, 0x1f, 0x03, 0xf9, 0xee, 0xda, - 0xca, 0x25, 0x26, 0xa8, 0x5b, 0xf4, 0xf2, 0x7b, 0xff, 0xff, 0xff, 0xbd, 0x7b, 0x46, 0xeb, 0x82, - 0x15, 0x5a, 0x82, 0x20, 0x5c, 0x68, 0x26, 0x93, 0x7d, 0xca, 0x85, 0x3e, 0x56, 0xe4, 0xa8, 0x43, - 0x0e, 0x0b, 0x26, 0x4f, 0xe2, 0x5c, 0x82, 0x06, 0xbc, 0xea, 0xa8, 0xb8, 0x42, 0x05, 0x2b, 0x19, - 0x64, 0x60, 0x08, 0x52, 0xfe, 0xb2, 0x70, 0xf0, 0x30, 0x03, 0xc8, 0x0e, 0x18, 0xa1, 0x39, 0x27, - 0x54, 0x08, 0xd0, 0x54, 0x73, 0x10, 0xca, 0xfd, 0xbb, 0x95, 0x80, 0x1a, 0x81, 0x22, 0x43, 0xaa, - 0x98, 0xf5, 0x20, 0x47, 0x9d, 0x21, 0xd3, 0xb4, 0x43, 0x72, 0x9a, 0x71, 0x61, 0x60, 0xc7, 0x6e, - 0xd4, 0x86, 0xcb, 0xa9, 0xa4, 0x23, 0x27, 0x19, 0xad, 0x20, 0xfc, 0xba, 0x14, 0x7a, 0x65, 0x8a, - 0x7d, 0x76, 0x58, 0x30, 0xa5, 0xa3, 0x3e, 0x5a, 0xae, 0x54, 0x55, 0x0e, 0x42, 0x31, 0xbc, 0x8d, - 0x9a, 0xb6, 0xb9, 0xe5, 0xaf, 0xf9, 0x9b, 0xf7, 0xba, 0x8f, 0xe2, 0xb9, 0xb3, 0xc5, 0xb6, 0x6d, - 0xef, 0xd6, 0xd9, 0x8f, 0xb6, 0xd7, 0x77, 0x2d, 0xd1, 0x57, 0x1f, 0xad, 0x1b, 0xd1, 0xde, 0x25, - 0xbb, 0x9b, 0x24, 0x50, 0x08, 0xbd, 0x9b, 0xa6, 0x92, 0xa9, 0x0b, 0x73, 0xfc, 0x18, 0x3d, 0x80, - 0xb7, 0x82, 0xc9, 0x01, 0xb5, 0x75, 0x63, 0x76, 0xb7, 0x7f, 0xdf, 0x14, 0x1d, 0x8b, 0xbb, 0x68, - 0xf5, 0xca, 0x73, 0x40, 0xad, 0xd0, 0x80, 0xa7, 0xad, 0x86, 0x81, 0x97, 0xf9, 0x75, 0x93, 0x5e, - 0x5a, 0x0a, 0x27, 0x20, 0x04, 0x4b, 0xca, 0x35, 0x95, 0xec, 0x92, 0x15, 0xbe, 0x2a, 0xf6, 0xd2,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9, 0xb6, 0x52, 0x64, 0x51, 0x07, 0x99, 0x46, 0x82, + 0x4a, 0xf8, 0x94, 0xc0, 0x44, 0xbb, 0xb4, 0x5b, 0x16, 0x04, 0x19, 0x59, 0xa2, 0x8b, 0x7d, 0x72, + 0x4f, 0x90, 0x7b, 0xce, 0xdd, 0xb9, 0xb4, 0x8a, 0xb2, 0x30, 0xa0, 0x8e, 0x48, 0x8c, 0x2c, 0xfd, + 0x04, 0x7c, 0x8e, 0x8e, 0x95, 0x58, 0x98, 0x10, 0x4a, 0x18, 0xf8, 0x18, 0xc8, 0x77, 0xd7, 0x56, + 0x2e, 0x31, 0x45, 0x6c, 0xd1, 0xcb, 0xff, 0xfd, 0xff, 0xbf, 0x7b, 0xef, 0x19, 0x6d, 0x0a, 0x56, + 0x68, 0x09, 0x82, 0x70, 0xa1, 0x99, 0x4c, 0xf6, 0x29, 0x17, 0xfa, 0x50, 0x91, 0x83, 0x2e, 0x99, + 0x14, 0x4c, 0x1e, 0xc5, 0xb9, 0x04, 0x0d, 0x78, 0xdd, 0xa9, 0xe2, 0x8a, 0x2a, 0x58, 0xcb, 0x20, + 0x03, 0xa3, 0x20, 0xe5, 0x2f, 0x2b, 0x0e, 0xee, 0x67, 0x00, 0xd9, 0x5b, 0x46, 0x68, 0xce, 0x09, + 0x15, 0x02, 0x34, 0xd5, 0x1c, 0x84, 0x72, 0xff, 0x6e, 0x25, 0xa0, 0xc6, 0xa0, 0xc8, 0x88, 0x2a, + 0x66, 0x33, 0xc8, 0x41, 0x77, 0xc4, 0x34, 0xed, 0x92, 0x9c, 0x66, 0x5c, 0x18, 0xb1, 0xd3, 0x76, + 0x6a, 0xe1, 0x72, 0x2a, 0xe9, 0xd8, 0x59, 0x46, 0x6b, 0x08, 0xbf, 0x2a, 0x8d, 0x5e, 0x9a, 0xe2, + 0x80, 0x4d, 0x0a, 0xa6, 0x74, 0x34, 0x40, 0xab, 0x95, 0xaa, 0xca, 0x41, 0x28, 0x86, 0xb7, 0x51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 0xc3, 0x9f, 0x18, 0xfc, 0x37, 0x98, 0xd7, 0xe0, 0x4f, 0x2b, 0x77, 0x33, + 0x23, 0xd3, 0xa5, 0x27, 0x32, 0x23, 0xd3, 0xca, 0x19, 0xcc, 0x48, 0xfd, 0xf6, 0xf6, 0x5e, 0x9c, + 0xce, 0x43, 0xff, 0x6c, 0x1e, 0xfa, 0x3f, 0xe6, 0xa1, 0xff, 0x71, 0x11, 0x7a, 0x67, 0x8b, 0xd0, + 0xfb, 0xb6, 0x08, 0xbd, 0xd7, 0xcf, 0x32, 0xae, 0xf7, 0x8b, 0x51, 0x9c, 0xc0, 0xf8, 0x1c, 0xe7, + 0x09, 0xc8, 0xec, 0x02, 0xed, 0xf0, 0x0a, 0x9c, 0x3e, 0xca, 0x99, 0x1a, 0x35, 0xcd, 0x67, 0xf7, + 0xf4, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x82, 0x97, 0x0f, 0x98, 0x3c, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/interchaintxs/types/query.pb.gw.go b/x/interchaintxs/types/query.pb.gw.go index 2375a7805..943b58aab 100644 --- a/x/interchaintxs/types/query.pb.gw.go +++ b/x/interchaintxs/types/query.pb.gw.go @@ -286,9 +286,9 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron", "interchaintxs", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "interchaintxs", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InterchainAccountAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"neutron", "interchaintxs", "v1", "owner_address", "interchain_account_id", "connection_id", "interchain_account_address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InterchainAccountAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"neutron", "interchaintxs", "owner_address", "interchain_account_id", "connection_id", "interchain_account_address"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( From 5bdacb494033abc0e2518459899321df214d68e0 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 14 Sep 2023 12:33:58 +0300 Subject: [PATCH 121/307] combined SudoResponse/Error/Timeout into Sudo --- Makefile | 2 +- app/app.go | 9 +- proto/neutron/contractmanager/failure.proto | 8 +- .../interchaintxs/keeper/interchaintxs.go | 2 +- .../contractmanager/types/expected_keepers.go | 4 +- .../interchaintxs/types/expected_keepers.go | 120 +++-------- .../mocks/transfer/types/expected_keepers.go | 70 ++----- testutil/transfer/keeper/keeper.go | 2 +- wasmbinding/test/custom_message_test.go | 18 +- .../client/cli/query_failure_test.go | 6 +- x/contractmanager/genesis.go | 2 +- x/contractmanager/genesis_test.go | 33 +-- x/contractmanager/ibc_middleware.go | 56 ++--- x/contractmanager/ibc_middleware_test.go | 161 +++++++-------- x/contractmanager/keeper/failure.go | 37 +--- x/contractmanager/keeper/failure_test.go | 76 +++---- x/contractmanager/keeper/sudo.go | 104 ++-------- x/contractmanager/keeper/sudo_test.go | 110 ---------- x/contractmanager/types/failure.pb.go | 191 ++++-------------- x/contractmanager/types/module.go | 11 +- x/contractmanager/types/sudo.go | 34 +--- x/interchaintxs/keeper/ibc_handlers.go | 46 ++--- x/interchaintxs/keeper/ibc_handlers_test.go | 108 ++++------ x/interchaintxs/keeper/keeper.go | 30 +-- x/interchaintxs/keeper/msg_server.go | 4 +- x/interchaintxs/keeper/msg_server_test.go | 30 +-- x/interchaintxs/types/expected_keepers.go | 10 +- x/transfer/ibc_handlers.go | 34 ++-- x/transfer/ibc_handlers_test.go | 79 +++----- x/transfer/keeper/keeper.go | 14 +- x/transfer/module.go | 16 +- x/transfer/types/expected_keepers.go | 7 +- 32 files changed, 454 insertions(+), 980 deletions(-) diff --git a/Makefile b/Makefile index 6af490db8..1bdcceca1 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ build-static-linux-amd64: go.sum $(BUILDDIR)/ $(DOCKER) cp neutronbinary:/bin/neutrond $(BUILDDIR)/neutrond-linux-amd64 $(DOCKER) rm -f neutronbinary -install-test-binary: check_version go.sum +install-test-binary: go.sum go install -mod=readonly $(BUILD_FLAGS_TEST_BINARY) ./cmd/neutrond ######################################## diff --git a/app/app.go b/app/app.go index c6dd3a84e..6804471df 100644 --- a/app/app.go +++ b/app/app.go @@ -563,7 +563,7 @@ func New( app.BankKeeper, scopedTransferKeeper, app.FeeKeeper, - contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper), + contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper, &app.WasmKeeper), ) app.RouterKeeper.SetTransferKeeper(app.TransferKeeper.Keeper) @@ -660,7 +660,7 @@ func New( memKeys[interchaintxstypes.MemStoreKey], app.IBCKeeper.ChannelKeeper, app.ICAControllerKeeper, - contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper), + contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper, &app.WasmKeeper), app.FeeKeeper, ) @@ -699,7 +699,10 @@ func New( if len(enabledProposals) != 0 { app.AdminmoduleKeeper.Router().AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) } - transferIBCModule := transferSudo.NewIBCModule(app.TransferKeeper) + transferIBCModule := transferSudo.NewIBCModule( + app.TransferKeeper, + contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper, &app.WasmKeeper), + ) // receive call order: wasmHooks#OnRecvPacketOverride(transferIbcModule#OnRecvPacket()) ibcHooksMiddleware := ibchooks.NewIBCMiddleware(&transferIBCModule, &app.HooksICS4Wrapper) app.HooksTransferIBCModule = &ibcHooksMiddleware diff --git a/proto/neutron/contractmanager/failure.proto b/proto/neutron/contractmanager/failure.proto index 2ac24a5a6..d18386884 100644 --- a/proto/neutron/contractmanager/failure.proto +++ b/proto/neutron/contractmanager/failure.proto @@ -13,10 +13,6 @@ message Failure { string address = 1; // Id of the failure under specific address uint64 id = 2; - // Acknowledgement type - string ack_type = 3; - // IBC Packet - ibc.core.channel.v1.Packet packet = 4; - // Acknowledgement - ibc.core.channel.v1.Acknowledgement ack = 5; + // Serialized MessageSudoCallback with Packet and Ack(if exists) + bytes sudo_payload = 3; } diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 55c9b43a9..4961a46f9 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -17,7 +17,7 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -func InterchainTxsKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper) (*keeper.Keeper, sdk.Context, *storetypes.KVStoreKey) { +func InterchainTxsKeeper(t testing.TB, managerKeeper types.WasmKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper) (*keeper.Keeper, sdk.Context, *storetypes.KVStoreKey) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) diff --git a/testutil/mocks/contractmanager/types/expected_keepers.go b/testutil/mocks/contractmanager/types/expected_keepers.go index 40b855702..463ef15c4 100644 --- a/testutil/mocks/contractmanager/types/expected_keepers.go +++ b/testutil/mocks/contractmanager/types/expected_keepers.go @@ -51,7 +51,7 @@ func (mr *MockWasmKeeperMockRecorder) HasContractInfo(ctx, contractAddress inter // Sudo mocks base method. func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddress, msg []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "sudo", ctx, contractAddress, msg) + ret := m.ctrl.Call(m, "Sudo", ctx, contractAddress, msg) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 @@ -60,5 +60,5 @@ func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddres // Sudo indicates an expected call of Sudo. func (mr *MockWasmKeeperMockRecorder) Sudo(ctx, contractAddress, msg interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) } diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 85fa21af1..d42f778a0 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -14,8 +14,7 @@ import ( types3 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" exported "github.com/cosmos/ibc-go/v7/modules/core/exported" gomock "github.com/golang/mock/gomock" - types4 "github.com/neutron-org/neutron/x/contractmanager/types" - types5 "github.com/neutron-org/neutron/x/feerefunder/types" + types4 "github.com/neutron-org/neutron/x/feerefunder/types" ) // MockAccountKeeper is a mock of AccountKeeper interface. @@ -92,57 +91,31 @@ func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gom return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpendableCoins", reflect.TypeOf((*MockBankKeeper)(nil).SpendableCoins), ctx, addr) } -// MockContractManagerKeeper is a mock of ContractManagerKeeper interface. -type MockContractManagerKeeper struct { +// MockWasmKeeper is a mock of WasmKeeper interface. +type MockWasmKeeper struct { ctrl *gomock.Controller - recorder *MockContractManagerKeeperMockRecorder + recorder *MockWasmKeeperMockRecorder } -// MockContractManagerKeeperMockRecorder is the mock recorder for MockContractManagerKeeper. -type MockContractManagerKeeperMockRecorder struct { - mock *MockContractManagerKeeper +// MockWasmKeeperMockRecorder is the mock recorder for MockWasmKeeper. +type MockWasmKeeperMockRecorder struct { + mock *MockWasmKeeper } -// NewMockContractManagerKeeper creates a new mock instance. -func NewMockContractManagerKeeper(ctrl *gomock.Controller) *MockContractManagerKeeper { - mock := &MockContractManagerKeeper{ctrl: ctrl} - mock.recorder = &MockContractManagerKeeperMockRecorder{mock} +// NewMockWasmKeeper creates a new mock instance. +func NewMockWasmKeeper(ctrl *gomock.Controller) *MockWasmKeeper { + mock := &MockWasmKeeper{ctrl: ctrl} + mock.recorder = &MockWasmKeeperMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecorder { +func (m *MockWasmKeeper) EXPECT() *MockWasmKeeperMockRecorder { return m.recorder } -// AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, packet *types3.Packet, address, ackType string, ack *types3.Acknowledgement) { - m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, packet, address, ackType, ack) -} - -// AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, packet, address, ackType, ack interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, packet, address, ackType, ack) -} - -// GetParams mocks base method. -func (m *MockContractManagerKeeper) GetParams(ctx types.Context) types4.Params { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetParams", ctx) - ret0, _ := ret[0].(types4.Params) - return ret0 -} - -// GetParams indicates an expected call of GetParams. -func (mr *MockContractManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockContractManagerKeeper)(nil).GetParams), ctx) -} - // HasContractInfo mocks base method. -func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { +func (m *MockWasmKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HasContractInfo", ctx, contractAddress) ret0, _ := ret[0].(bool) @@ -150,69 +123,24 @@ func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractA } // HasContractInfo indicates an expected call of HasContractInfo. -func (mr *MockContractManagerKeeperMockRecorder) HasContractInfo(ctx, contractAddress interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasContractInfo", reflect.TypeOf((*MockContractManagerKeeper)(nil).HasContractInfo), ctx, contractAddress) -} - -// SudoError mocks base method. -func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types3.Packet, ack types3.Acknowledgement) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, ack) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoError indicates an expected call of SudoError. -func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, ack interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, ack) -} - -// SudoOnChanOpenAck mocks base method. -func (m *MockContractManagerKeeper) SudoOnChanOpenAck(ctx types.Context, contractAddress types.AccAddress, details types4.OpenAckDetails) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoOnChanOpenAck", ctx, contractAddress, details) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoOnChanOpenAck indicates an expected call of SudoOnChanOpenAck. -func (mr *MockContractManagerKeeperMockRecorder) SudoOnChanOpenAck(ctx, contractAddress, details interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoOnChanOpenAck", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoOnChanOpenAck), ctx, contractAddress, details) -} - -// SudoResponse mocks base method. -func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types3.Packet, ack types3.Acknowledgement) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, ack) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoResponse indicates an expected call of SudoResponse. -func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, ack interface{}) *gomock.Call { +func (mr *MockWasmKeeperMockRecorder) HasContractInfo(ctx, contractAddress interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, ack) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasContractInfo", reflect.TypeOf((*MockWasmKeeper)(nil).HasContractInfo), ctx, contractAddress) } -// SudoTimeout mocks base method. -func (m *MockContractManagerKeeper) SudoTimeout(ctx types.Context, senderAddress types.AccAddress, request types3.Packet) ([]byte, error) { +// Sudo mocks base method. +func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddress, msg []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoTimeout", ctx, senderAddress, request) + ret := m.ctrl.Call(m, "Sudo", ctx, contractAddress, msg) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// SudoTimeout indicates an expected call of SudoTimeout. -func (mr *MockContractManagerKeeperMockRecorder) SudoTimeout(ctx, senderAddress, request interface{}) *gomock.Call { +// Sudo indicates an expected call of Sudo. +func (mr *MockWasmKeeperMockRecorder) Sudo(ctx, contractAddress, msg interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoTimeout", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoTimeout), ctx, senderAddress, request) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) } // MockICAControllerKeeper is a mock of ICAControllerKeeper interface. @@ -321,7 +249,7 @@ func (m *MockFeeRefunderKeeper) EXPECT() *MockFeeRefunderKeeperMockRecorder { } // DistributeAcknowledgementFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types5.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeAcknowledgementFee", ctx, receiver, packetID) } @@ -333,7 +261,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeAcknowledgementFee(ctx, r } // DistributeTimeoutFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types5.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeTimeoutFee", ctx, receiver, packetID) } @@ -345,7 +273,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeTimeoutFee(ctx, receiver, } // LockFees mocks base method. -func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types5.PacketID, fee types5.Fee) error { +func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types4.PacketID, fee types4.Fee) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockFees", ctx, payer, packetID, fee) ret0, _ := ret[0].(error) diff --git a/testutil/mocks/transfer/types/expected_keepers.go b/testutil/mocks/transfer/types/expected_keepers.go index 122edaeb2..3123b6eb5 100644 --- a/testutil/mocks/transfer/types/expected_keepers.go +++ b/testutil/mocks/transfer/types/expected_keepers.go @@ -14,31 +14,31 @@ import ( types2 "github.com/neutron-org/neutron/x/feerefunder/types" ) -// MockContractManagerKeeper is a mock of ContractManagerKeeper interface. -type MockContractManagerKeeper struct { +// MockWasmKeeper is a mock of WasmKeeper interface. +type MockWasmKeeper struct { ctrl *gomock.Controller - recorder *MockContractManagerKeeperMockRecorder + recorder *MockWasmKeeperMockRecorder } -// MockContractManagerKeeperMockRecorder is the mock recorder for MockContractManagerKeeper. -type MockContractManagerKeeperMockRecorder struct { - mock *MockContractManagerKeeper +// MockWasmKeeperMockRecorder is the mock recorder for MockWasmKeeper. +type MockWasmKeeperMockRecorder struct { + mock *MockWasmKeeper } -// NewMockContractManagerKeeper creates a new mock instance. -func NewMockContractManagerKeeper(ctrl *gomock.Controller) *MockContractManagerKeeper { - mock := &MockContractManagerKeeper{ctrl: ctrl} - mock.recorder = &MockContractManagerKeeperMockRecorder{mock} +// NewMockWasmKeeper creates a new mock instance. +func NewMockWasmKeeper(ctrl *gomock.Controller) *MockWasmKeeper { + mock := &MockWasmKeeper{ctrl: ctrl} + mock.recorder = &MockWasmKeeperMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecorder { +func (m *MockWasmKeeper) EXPECT() *MockWasmKeeperMockRecorder { return m.recorder } // HasContractInfo mocks base method. -func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { +func (m *MockWasmKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HasContractInfo", ctx, contractAddress) ret0, _ := ret[0].(bool) @@ -46,54 +46,24 @@ func (m *MockContractManagerKeeper) HasContractInfo(ctx types.Context, contractA } // HasContractInfo indicates an expected call of HasContractInfo. -func (mr *MockContractManagerKeeperMockRecorder) HasContractInfo(ctx, contractAddress interface{}) *gomock.Call { +func (mr *MockWasmKeeperMockRecorder) HasContractInfo(ctx, contractAddress interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasContractInfo", reflect.TypeOf((*MockContractManagerKeeper)(nil).HasContractInfo), ctx, contractAddress) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasContractInfo", reflect.TypeOf((*MockWasmKeeper)(nil).HasContractInfo), ctx, contractAddress) } -// SudoError mocks base method. -func (m *MockContractManagerKeeper) SudoError(ctx types.Context, senderAddress types.AccAddress, request types1.Packet, ack types1.Acknowledgement) ([]byte, error) { +// Sudo mocks base method. +func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddress, msg []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoError", ctx, senderAddress, request, ack) + ret := m.ctrl.Call(m, "Sudo", ctx, contractAddress, msg) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// SudoError indicates an expected call of SudoError. -func (mr *MockContractManagerKeeperMockRecorder) SudoError(ctx, senderAddress, request, ack interface{}) *gomock.Call { +// Sudo indicates an expected call of Sudo. +func (mr *MockWasmKeeperMockRecorder) Sudo(ctx, contractAddress, msg interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoError", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoError), ctx, senderAddress, request, ack) -} - -// SudoResponse mocks base method. -func (m *MockContractManagerKeeper) SudoResponse(ctx types.Context, senderAddress types.AccAddress, request types1.Packet, ack types1.Acknowledgement) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoResponse", ctx, senderAddress, request, ack) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoResponse indicates an expected call of SudoResponse. -func (mr *MockContractManagerKeeperMockRecorder) SudoResponse(ctx, senderAddress, request, ack interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoResponse", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoResponse), ctx, senderAddress, request, ack) -} - -// SudoTimeout mocks base method. -func (m *MockContractManagerKeeper) SudoTimeout(ctx types.Context, senderAddress types.AccAddress, request types1.Packet) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SudoTimeout", ctx, senderAddress, request) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SudoTimeout indicates an expected call of SudoTimeout. -func (mr *MockContractManagerKeeperMockRecorder) SudoTimeout(ctx, senderAddress, request interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SudoTimeout", reflect.TypeOf((*MockContractManagerKeeper)(nil).SudoTimeout), ctx, senderAddress, request) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) } // MockFeeRefunderKeeper is a mock of FeeRefunderKeeper interface. diff --git a/testutil/transfer/keeper/keeper.go b/testutil/transfer/keeper/keeper.go index 8f35aa8a6..532701629 100644 --- a/testutil/transfer/keeper/keeper.go +++ b/testutil/transfer/keeper/keeper.go @@ -22,7 +22,7 @@ import ( "github.com/neutron-org/neutron/x/transfer/types" ) -func TransferKeeper(t testing.TB, managerKeeper types.ContractManagerKeeper, refunderKeeper types.FeeRefunderKeeper, channelKeeper types.ChannelKeeper, authKeeper types.AccountKeeper) (*keeper.KeeperTransferWrapper, sdk.Context, *storetypes.KVStoreKey) { +func TransferKeeper(t testing.TB, managerKeeper types.WasmKeeper, refunderKeeper types.FeeRefunderKeeper, channelKeeper types.ChannelKeeper, authKeeper types.AccountKeeper) (*keeper.KeeperTransferWrapper, sdk.Context, *storetypes.KVStoreKey) { storeKey := sdk.NewKVStoreKey(transfertypes.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey("mem_" + transfertypes.StoreKey) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 384b84cd6..1f5d11d5b 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -3,10 +3,9 @@ package test import ( "encoding/json" "fmt" + keeper2 "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/stretchr/testify/suite" @@ -609,8 +608,10 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { ack := ibcchanneltypes.Acknowledgement{ Response: &ibcchanneltypes.Acknowledgement_Result{Result: []byte("Result")}, } + payload, err := keeper2.PrepareSudoCallbackMessage(packet, &ack) + require.NoError(suite.T(), err) failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), contractmanagertypes.Ack, &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, suite.contractAddress.String(), payload) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ @@ -639,11 +640,10 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { // Add failure packet := ibcchanneltypes.Packet{} - ack := ibcchanneltypes.Acknowledgement{ - Response: &ibcchanneltypes.Acknowledgement_Error{Error: "ErrorSudoPayload"}, - } + payload, err := keeper2.PrepareSudoCallbackMessage(packet, nil) + require.NoError(suite.T(), err) failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, suite.contractAddress.String(), "timeout", &ack) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, suite.contractAddress.String(), payload) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ @@ -676,7 +676,9 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract( Response: &ibcchanneltypes.Acknowledgement_Error{Error: "ErrorSudoPayload"}, } failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, &packet, testutil.TestOwnerAddress, contractmanagertypes.Ack, &ack) + payload, err := keeper2.PrepareSudoCallbackMessage(packet, &ack) + require.NoError(suite.T(), err) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, testutil.TestOwnerAddress, payload) // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ diff --git a/x/contractmanager/client/cli/query_failure_test.go b/x/contractmanager/client/cli/query_failure_test.go index f76d69a44..d590d39e3 100644 --- a/x/contractmanager/client/cli/query_failure_test.go +++ b/x/contractmanager/client/cli/query_failure_test.go @@ -6,8 +6,6 @@ import ( "strconv" "testing" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - "github.com/neutron-org/neutron/app" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -40,8 +38,8 @@ func networkWithFailureObjects(t *testing.T, n int) (*network.Network, []types.F require.NoError(t, err) acc := sdktypes.AccAddress(pub.Address()) failure := types.Failure{ - Address: acc.String(), - Packet: &channeltypes.Packet{}, + Address: acc.String(), + SudoPayload: []byte("&channeltypes.Packet{}"), } nullify.Fill(&failure) state.FailuresList = append(state.FailuresList, failure) diff --git a/x/contractmanager/genesis.go b/x/contractmanager/genesis.go index 35604dfe4..fd5751c6b 100644 --- a/x/contractmanager/genesis.go +++ b/x/contractmanager/genesis.go @@ -11,7 +11,7 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // Set all the failure for _, elem := range genState.FailuresList { - k.AddContractFailure(ctx, elem.Packet, elem.Address, elem.AckType, elem.Ack) + k.AddContractFailure(ctx, elem.Address, elem.SudoPayload) } // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) diff --git a/x/contractmanager/genesis_test.go b/x/contractmanager/genesis_test.go index feb3ff00a..ddfa24682 100644 --- a/x/contractmanager/genesis_test.go +++ b/x/contractmanager/genesis_test.go @@ -1,6 +1,7 @@ package contractmanager_test import ( + "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -14,25 +15,33 @@ import ( ) func TestGenesis(t *testing.T) { + payload1, err := keeper.PrepareSudoCallbackMessage( + channeltypes.Packet{ + Sequence: 1, + }, + &channeltypes.Acknowledgement{ + Response: &channeltypes.Acknowledgement_Result{ + Result: []byte("Result"), + }, + }) + require.NoError(t, err) + payload2, err := keeper.PrepareSudoCallbackMessage( + channeltypes.Packet{ + Sequence: 2, + }, nil) genesisState := types.GenesisState{ Params: types.DefaultParams(), FailuresList: []types.Failure{ { - Address: "address1", - Id: 1, - AckType: types.Ack, - Packet: &channeltypes.Packet{ - Sequence: 1, - }, + Address: "address1", + Id: 1, + SudoPayload: payload1, }, { - Address: "address1", - Id: 2, - AckType: "timeout", - Packet: &channeltypes.Packet{ - Sequence: 2, - }, + Address: "address1", + Id: 2, + SudoPayload: payload2, }, }, // this line is used by starport scaffolding # genesis/test/state diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go index 237c7f731..841897459 100644 --- a/x/contractmanager/ibc_middleware.go +++ b/x/contractmanager/ibc_middleware.go @@ -4,68 +4,40 @@ import ( "fmt" "github.com/cometbft/cometbft/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/neutronutils" neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" + "github.com/neutron-org/neutron/x/contractmanager/keeper" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" ) type SudoLimitWrapper struct { - contractmanagertypes.ContractManagerWrapper + contractManager keeper.Keeper + contractmanagertypes.WasmKeeper } -// NewSudoLimitWrapper suppresses an error from a sudo contract handler and saves it to a store -func NewSudoLimitWrapper(keeper contractmanagertypes.ContractManagerWrapper) contractmanagertypes.ContractManagerWrapper { +// NewSudoLimitWrapper suppresses an error from a Sudo contract handler and saves it to a store +func NewSudoLimitWrapper(contractManager keeper.Keeper, sudoKeeper contractmanagertypes.WasmKeeper) contractmanagertypes.WasmKeeper { return SudoLimitWrapper{ - keeper, + contractManager, + sudoKeeper, } } -func (k SudoLimitWrapper) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) { - err := k.sudo(ctx, senderAddress, request, &ack) - if err != nil { - k.Logger(ctx).Debug("SudoLimitWrapper: failed to sudo contract", "error", err, "ackType", "Result") - } - return nil, nil -} - -func (k SudoLimitWrapper) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) { - err := k.sudo(ctx, senderAddress, request, &ack) - if err != nil { - k.Logger(ctx).Debug("SudoLimitWrapper: failed to sudo contract", "error", err, "ackType", "ErrorSudoPayload") - } - return nil, nil -} - -func (k SudoLimitWrapper) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) { - err := k.sudo(ctx, senderAddress, request, nil) - if err != nil { - k.Logger(ctx).Debug("SudoLimitWrapper: failed to sudo contract", "error", err, "ackType", "Timeout") - } - return nil, nil -} - -// sudo calls underlying sudo handlers with a limited amount of gas +// Sudo calls underlying Sudo handlers with a limited amount of gas // in case of `out of gas` panic it converts the panic into an error and stops `out of gas` panic propagation -func (k SudoLimitWrapper) sudo(ctx sdk.Context, sender sdk.AccAddress, packet channeltypes.Packet, ack *channeltypes.Acknowledgement) (err error) { - ackType := contractmanagertypes.Ack - cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.ContractManagerWrapper.GetParams(ctx).SudoCallGasLimit) +// if error happens during the Sudo call, we store the data that raised the error, and return the error +func (k SudoLimitWrapper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) (resp []byte, err error) { + cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.contractManager.GetParams(ctx).SudoCallGasLimit) func() { defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events - if ack == nil { - ackType = contractmanagertypes.Timeout - _, err = k.ContractManagerWrapper.SudoTimeout(cacheCtx, sender, packet) - } else if ack.GetError() != "" { - _, err = k.ContractManagerWrapper.SudoError(cacheCtx, sender, packet, *ack) - } else { - _, err = k.ContractManagerWrapper.SudoResponse(cacheCtx, sender, packet, *ack) - } + resp, err = k.WasmKeeper.Sudo(cacheCtx, contractAddress, msg) + }() if err != nil { // the contract either returned an error or panicked with `out of gas` - k.ContractManagerWrapper.AddContractFailure(ctx, &packet, sender.String(), ackType, ack) + k.contractManager.AddContractFailure(ctx, contractAddress.String(), msg) } else { writeFn() } diff --git a/x/contractmanager/ibc_middleware_test.go b/x/contractmanager/ibc_middleware_test.go index 57012be71..b1b964fbf 100644 --- a/x/contractmanager/ibc_middleware_test.go +++ b/x/contractmanager/ibc_middleware_test.go @@ -1,82 +1,83 @@ package contractmanager -import ( - tmdb "github.com/cometbft/cometbft-db" - "github.com/cometbft/cometbft/libs/log" - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - "github.com/golang/mock/gomock" - mock_types "github.com/neutron-org/neutron/testutil/mocks/interchaintxs/types" - "github.com/neutron-org/neutron/x/contractmanager/types" - "github.com/stretchr/testify/require" - "testing" -) - -var ( - ShouldNotBeWrittenKey = []byte("shouldnotkey") - ShouldNotBeWritten = []byte("should not be written") - ShouldBeWritten = []byte("should be written") - TestOwnerAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh" -) - -func ShouldBeWrittenKey(suffix string) []byte { - return append([]byte("shouldkey"), []byte(suffix)...) -} - -func NewSudoLimitMiddleware(t testing.TB, cm types.ContractManagerWrapper) (SudoLimitWrapper, sdk.Context, *storetypes.KVStoreKey) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) - - k := SudoLimitWrapper{ContractManagerWrapper: cm} - - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - - return k, ctx, storeKey -} - -func TestSudo(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) - middleware, infCtx, storeKey := NewSudoLimitMiddleware(t, cmKeeper) - st := infCtx.KVStore(storeKey) - - p := channeltypes.Packet{ - Sequence: 100, - SourcePort: icatypes.ControllerPortPrefix + TestOwnerAddress + ".ica0", - SourceChannel: "channel-0", - } - contractAddress := sdk.AccAddress{} - errACK := channeltypes.Acknowledgement{ - Response: &channeltypes.Acknowledgement_Error{ - Error: "error", - }, - } - //errAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&errACK) - //require.NoError(t, err) - //resACK := channeltypes.Acknowledgement{ - // Response: &channeltypes.Acknowledgement_Result{Result: []byte("Result")}, - //} - //resAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&resACK) - //require.NoError(t, err) - - // success during SudoError - ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, errAck channeltypes.Acknowledgement) { - st := cachedCtx.KVStore(storeKey) - st.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) - }).Return(nil, nil) - cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) - err := middleware.sudo(ctx, contractAddress, p, &errACK) - require.NoError(t, err) - require.Equal(t, ShouldBeWritten, st.Get(ShouldBeWrittenKey("sudoerror"))) - require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) -} +// +//import ( +// tmdb "github.com/cometbft/cometbft-db" +// "github.com/cometbft/cometbft/libs/log" +// tmproto "github.com/cometbft/cometbft/proto/tendermint/types" +// "github.com/cosmos/cosmos-sdk/store" +// storetypes "github.com/cosmos/cosmos-sdk/store/types" +// sdk "github.com/cosmos/cosmos-sdk/types" +// icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" +// channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" +// "github.com/golang/mock/gomock" +// mock_types "github.com/neutron-org/neutron/testutil/mocks/interchaintxs/types" +// "github.com/neutron-org/neutron/x/contractmanager/types" +// "github.com/stretchr/testify/require" +// "testing" +//) +// +//var ( +// ShouldNotBeWrittenKey = []byte("shouldnotkey") +// ShouldNotBeWritten = []byte("should not be written") +// ShouldBeWritten = []byte("should be written") +// TestOwnerAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh" +//) +// +//func ShouldBeWrittenKey(suffix string) []byte { +// return append([]byte("shouldkey"), []byte(suffix)...) +//} +// +//func NewSudoLimitMiddleware(t testing.TB, cm types.SudoWrapper) (SudoLimitWrapper, sdk.Context, *storetypes.KVStoreKey) { +// storeKey := sdk.NewKVStoreKey(types.StoreKey) +// +// db := tmdb.NewMemDB() +// stateStore := store.NewCommitMultiStore(db) +// stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) +// require.NoError(t, stateStore.LoadLatestVersion()) +// +// k := SudoLimitWrapper{SudoWrapper: cm} +// +// ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) +// +// return k, ctx, storeKey +//} +// +//func TestSudo(t *testing.T) { +// ctrl := gomock.NewController(t) +// defer ctrl.Finish() +// cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) +// middleware, infCtx, storeKey := NewSudoLimitMiddleware(t, cmKeeper) +// st := infCtx.KVStore(storeKey) +// +// p := channeltypes.Packet{ +// Sequence: 100, +// SourcePort: icatypes.ControllerPortPrefix + TestOwnerAddress + ".ica0", +// SourceChannel: "channel-0", +// } +// contractAddress := sdk.AccAddress{} +// errACK := channeltypes.Acknowledgement{ +// Response: &channeltypes.Acknowledgement_Error{ +// Error: "error", +// }, +// } +// //errAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&errACK) +// //require.NoError(t, err) +// //resACK := channeltypes.Acknowledgement{ +// // Response: &channeltypes.Acknowledgement_Result{Result: []byte("Result")}, +// //} +// //resAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&resACK) +// //require.NoError(t, err) +// +// // success during SudoError +// ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) +// cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, errAck channeltypes.Acknowledgement) { +// st := cachedCtx.KVStore(storeKey) +// st.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) +// }).Return(nil, nil) +// cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) +// err := middleware.Sudo(ctx, contractAddress, p, &errACK) +// require.NoError(t, err) +// require.Equal(t, ShouldBeWritten, st.Get(ShouldBeWrittenKey("sudoerror"))) +// require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) +//} diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 581b4f19c..038227591 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -5,17 +5,14 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/neutron-org/neutron/x/contractmanager/types" ) // AddContractFailure adds a specific failure to the store using address as the key -func (k Keeper) AddContractFailure(ctx sdk.Context, packet *ibcchanneltypes.Packet, address, ackType string, ack *ibcchanneltypes.Acknowledgement) { +func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte) { failure := types.Failure{ - Address: address, - AckType: ackType, - Packet: packet, - Ack: ack, + Address: address, + SudoPayload: sudoPayload, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) failure.Id = nextFailureID @@ -40,7 +37,7 @@ func (k Keeper) GetNextFailureIDKey(ctx sdk.Context, address string) uint64 { return 0 } -// GetAllFailure returns all failures +// GetAllFailures returns all failures func (k Keeper) GetAllFailures(ctx sdk.Context) (list []types.Failure) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.ContractFailuresKey) iterator := sdk.KVStorePrefixIterator(store, []byte{}) @@ -71,30 +68,12 @@ func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id uint // ResubmitFailure tries to call sudo handler for contract with same parameters as initially. func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failure *types.Failure) error { - if failure.Packet == nil { - return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without packet info; failureId = %d", failure.Id) + if failure.SudoPayload == nil { + return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without sudo payload; failureId = %d", failure.Id) } - switch failure.GetAckType() { - case types.Ack: - if failure.GetAck() == nil { - return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without acknowledgement; failureId = %d", failure.Id) - } - if failure.GetAck().GetError() == "" { - if _, err := k.SudoResponse(ctx, contractAddr, *failure.Packet, *failure.Ack); err != nil { - return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack response; failureId = %d; err = %s", failure.Id, err) - } - } else { - if _, err := k.SudoError(ctx, contractAddr, *failure.Packet, *failure.Ack); err != nil { - return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack error; failureId = %d; err = %s", failure.Id, err) - } - } - case types.Timeout: - if _, err := k.SudoTimeout(ctx, contractAddr, *failure.Packet); err != nil { - return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack timeout; failureId = %d; err = %s", failure.Id, err) - } - default: - return errors.Wrapf(types.IncorrectAckType, "cannot resubmit failure with incorrect ackType = %s", failure.GetAckType()) + if _, err := k.wasmKeeper.Sudo(ctx, contractAddr, failure.SudoPayload); err != nil { + return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack; failureId = %d; err = %s", failure.Id, err) } // Cleanup failure since we resubmitted it successfully diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index aa00b4c91..5edd064c3 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -26,7 +26,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures int) [][]types.Failure { +func createNFailure(k *keeper.Keeper, ctx sdk.Context, addresses, failures int) [][]types.Failure { pubBz := make([]byte, ed25519.PubKeySize) pub := &ed25519.PubKey{Key: pubBz} @@ -43,9 +43,12 @@ func createNFailure(keeper *keeper.Keeper, ctx sdk.Context, addresses, failures } items[i][c].Address = acc.String() items[i][c].Id = uint64(c) - items[i][c].Packet = &p - items[i][c].Ack = nil - keeper.AddContractFailure(ctx, &p, items[i][c].Address, "", nil) + sudo, err := keeper.PrepareSudoCallbackMessage(p, nil) + if err != nil { + panic(err) + } + items[i][c].SudoPayload = sudo + k.AddContractFailure(ctx, items[i][c].Address, sudo) } } return items @@ -83,11 +86,12 @@ func TestAddGetFailure(t *testing.T) { contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) k, ctx := keepertest.ContractManagerKeeper(t, nil) failureID := k.GetNextFailureIDKey(ctx, contractAddress.String()) - k.AddContractFailure(ctx, &channeltypes.Packet{}, contractAddress.String(), types.Ack, &channeltypes.Acknowledgement{}) + sudoPayload := []byte("payload") + k.AddContractFailure(ctx, contractAddress.String(), sudoPayload) failure, err := k.GetFailure(ctx, contractAddress, failureID) require.NoError(t, err) require.Equal(t, failureID, failure.Id) - require.Equal(t, types.Ack, failure.AckType) + require.Equal(t, sudoPayload, failure.SudoPayload) // non-existent id _, err = k.GetFailure(ctx, contractAddress, failureID+1) @@ -117,28 +121,31 @@ func TestResubmitFailure(t *testing.T) { // add ack failure packet := channeltypes.Packet{} failureID := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ack) + payload, err := keeper.PrepareSudoCallbackMessage(packet, &ack) + require.NoError(t, err) + k.AddContractFailure(ctx, contractAddr.String(), payload) // success response - xSuc := types.MessageResponse{} - xSuc.Response.Data = data - xSuc.Response.Request = channeltypes.Packet{} + xSuc := types.MessageSudoCallback{Response: &types.ResponseSudoPayload{ + Request: channeltypes.Packet{}, + Data: data, + }} msgSuc, err := json.Marshal(xSuc) require.NoError(t, err) // error response - xErr := types.MessageError{} - xErr.Error.Request = channeltypes.Packet{} - xErr.Error.Details = "not able to do IBC tx" + xErr := types.MessageSudoCallback{Error: &types.ErrorSudoPayload{ + Request: channeltypes.Packet{}, + Details: "not able to do IBC tx", + }} msgErr, err := json.Marshal(xErr) require.NoError(t, err) // timeout response - xTimeout := types.MessageTimeout{} - xTimeout.Timeout.Request = channeltypes.Packet{} + xTimeout := types.MessageSudoCallback{Timeout: &types.TimeoutPayload{Request: channeltypes.Packet{}}} msgTimeout, err := json.Marshal(xTimeout) require.NoError(t, err) // case: successful resubmit with ack and ack = response - wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return([]byte{}, nil) + wk.EXPECT().Sudo(ctx, contractAddr, msgSuc).Return([]byte{}, nil) failure, err := k.GetFailure(ctx, contractAddr, failureID) require.NoError(t, err) @@ -150,14 +157,16 @@ func TestResubmitFailure(t *testing.T) { // case: failed resubmit with ack and ack = response failureID2 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ack) + payload, err = keeper.PrepareSudoCallbackMessage(packet, &ack) + require.NoError(t, err) + k.AddContractFailure(ctx, contractAddr.String(), payload) - wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to sudo")) + wk.EXPECT().Sudo(ctx, contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to sudo")) failure2, err := k.GetFailure(ctx, contractAddr, failureID2) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure2) - require.ErrorContains(t, err, "cannot resubmit failure ack response") + require.ErrorContains(t, err, "cannot resubmit failure ack") // failure is still there failureAfter2, err := k.GetFailure(ctx, contractAddr, failureID2) require.NoError(t, err) @@ -166,7 +175,9 @@ func TestResubmitFailure(t *testing.T) { // case: successful resubmit with ack and ack = error // add error failure failureID3 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ackError) + payload, err = keeper.PrepareSudoCallbackMessage(packet, &ackError) + require.NoError(t, err) + k.AddContractFailure(ctx, contractAddr.String(), payload) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return([]byte{}, nil) @@ -180,14 +191,16 @@ func TestResubmitFailure(t *testing.T) { // case: failed resubmit with ack and ack = error failureID4 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, &ackError) + payload, err = keeper.PrepareSudoCallbackMessage(packet, &ackError) + require.NoError(t, err) + k.AddContractFailure(ctx, contractAddr.String(), payload) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to sudo")) failure4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure4) - require.ErrorContains(t, err, "cannot resubmit failure ack error") + require.ErrorContains(t, err, "cannot resubmit failure ack") // failure is still there failureAfter4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) @@ -196,7 +209,9 @@ func TestResubmitFailure(t *testing.T) { // case: successful resubmit with timeout // add error failure failureID5 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) + payload, err = keeper.PrepareSudoCallbackMessage(packet, nil) + require.NoError(t, err) + k.AddContractFailure(ctx, contractAddr.String(), payload) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return([]byte{}, nil) @@ -210,25 +225,18 @@ func TestResubmitFailure(t *testing.T) { // case: failed resubmit with timeout failureID6 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), "timeout", nil) + payload, err = keeper.PrepareSudoCallbackMessage(packet, nil) + require.NoError(t, err) + k.AddContractFailure(ctx, contractAddr.String(), payload) wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return(nil, fmt.Errorf("failed to sudo")) failure6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure6) - require.ErrorContains(t, err, "cannot resubmit failure ack timeout") + require.ErrorContains(t, err, "cannot resubmit failure ack") // failure is still there failureAfter6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) require.Equal(t, failureAfter6.Id, failure6.Id) - - // no Failure.Ack field found for ackType = 'ack' - failureID7 := k.GetNextFailureIDKey(ctx, contractAddr.String()) - k.AddContractFailure(ctx, &packet, contractAddr.String(), types.Ack, nil) - - failure7, err := k.GetFailure(ctx, contractAddr, failureID7) - require.NoError(t, err) - err = k.ResubmitFailure(ctx, contractAddr, failure7) - require.ErrorContains(t, err, "cannot resubmit failure without acknowledgement") } diff --git a/x/contractmanager/keeper/sudo.go b/x/contractmanager/keeper/sudo.go index 1b33639cb..4c5a24402 100644 --- a/x/contractmanager/keeper/sudo.go +++ b/x/contractmanager/keeper/sudo.go @@ -20,97 +20,37 @@ func (k Keeper) HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) return k.wasmKeeper.HasContractInfo(ctx, contractAddress) } -func prepareSudoCallbackMessage(request channeltypes.Packet, ack *channeltypes.Acknowledgement) types.MessageSudoCallback { - m := types.MessageSudoCallback{ - Response: nil, - Error: nil, - Timeout: nil, +func PrepareSudoCallbackMessage(request channeltypes.Packet, ack *channeltypes.Acknowledgement) ([]byte, error) { + m := types.MessageSudoCallback{} + if ack != nil && ack.GetError() == "" { + m.Response = &types.ResponseSudoPayload{ + Data: ack.GetResult(), + Request: request, + } + } else if ack != nil { + m.Error = &types.ErrorSudoPayload{ + Request: request, + Details: ack.GetError(), + } + } else { + m.Timeout = &types.TimeoutPayload{Request: request} } - return m -} - -func (k Keeper) SudoResponse( - ctx sdk.Context, - senderAddress sdk.AccAddress, - request channeltypes.Packet, - ack channeltypes.Acknowledgement, -) ([]byte, error) { - k.Logger(ctx).Debug("SudoResponse", "senderAddress", senderAddress, "request", request, "msg", ack.GetResult()) - - x := types.MessageResponse{} - x.Response.Data = ack.GetResult() - x.Response.Request = request - m, err := json.Marshal(x) - if err != nil { - k.Logger(ctx).Error("SudoResponse: failed to marshal MessageResponse message", - "error", err, "request", request, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to marshal MessageResponse: %v", err) - } - - resp, err := k.wasmKeeper.Sudo(ctx, senderAddress, m) + data, err := json.Marshal(m) if err != nil { - k.Logger(ctx).Debug("SudoResponse: failed to sudo", - "error", err, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to sudo: %v", err) + return nil, fmt.Errorf("failed to marshal MessageSudoCallback: %v", err) } - - return resp, nil + return data, nil } -func (k Keeper) SudoTimeout( - ctx sdk.Context, - senderAddress sdk.AccAddress, - request channeltypes.Packet, -) ([]byte, error) { - k.Logger(ctx).Info("SudoTimeout", "senderAddress", senderAddress, "request", request) - - x := types.MessageTimeout{} - x.Timeout.Request = request - m, err := json.Marshal(x) - if err != nil { - k.Logger(ctx).Error("failed to marshal MessageTimeout message", - "error", err, "request", request, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to marshal MessageTimeout: %v", err) - } - - k.Logger(ctx).Info("SudoTimeout sending request", "data", string(m)) - - resp, err := k.wasmKeeper.Sudo(ctx, senderAddress, m) - if err != nil { - k.Logger(ctx).Debug("SudoTimeout: failed to sudo", - "error", err, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to sudo: %v", err) +func PrepareOpenAckCallbackMessage(details types.OpenAckDetails) ([]byte, error) { + x := types.MessageOnChanOpenAck{ + OpenAck: details, } - - return resp, nil -} - -func (k Keeper) SudoError( - ctx sdk.Context, - senderAddress sdk.AccAddress, - request channeltypes.Packet, - ack channeltypes.Acknowledgement, -) ([]byte, error) { - k.Logger(ctx).Debug("SudoError", "senderAddress", senderAddress, "request", request) - - x := types.MessageError{} - x.Error.Request = request - x.Error.Details = ack.GetError() m, err := json.Marshal(x) if err != nil { - k.Logger(ctx).Error("SudoError: failed to marshal MessageError message", - "error", err, "contract_address", senderAddress, "request", request) - return nil, fmt.Errorf("failed to marshal MessageError: %v", err) - } - - resp, err := k.wasmKeeper.Sudo(ctx, senderAddress, m) - if err != nil { - k.Logger(ctx).Debug("SudoError: failed to sudo", - "error", err, "contract_address", senderAddress) - return nil, fmt.Errorf("failed to sudo: %v", err) + return nil, fmt.Errorf("failed to marshal MessageOnChanOpenAck: %v", err) } - - return resp, nil + return m, nil } func (k Keeper) SudoOnChanOpenAck( diff --git a/x/contractmanager/keeper/sudo_test.go b/x/contractmanager/keeper/sudo_test.go index 8767acd93..12862b4de 100644 --- a/x/contractmanager/keeper/sudo_test.go +++ b/x/contractmanager/keeper/sudo_test.go @@ -6,7 +6,6 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" @@ -21,115 +20,6 @@ func init() { app.GetDefaultConfig() } -func TestSudoHasAddress(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - wk := mock_types.NewMockWasmKeeper(ctrl) - - k, ctx := keepertest.ContractManagerKeeper(t, wk) - address := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(true) - has := k.HasContractInfo(ctx, address) - require.Equal(t, true, has) - - wk.EXPECT().HasContractInfo(gomock.Any(), address).Return(false) - has = k.HasContractInfo(ctx, address) - require.Equal(t, false, has) -} - -func TestSudoResponse(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - wk := mock_types.NewMockWasmKeeper(ctrl) - - k, ctx := keepertest.ContractManagerKeeper(t, wk) - address := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) - - sudoErrorMsg := types.MessageResponse{} - p := channeltypes.Packet{} - a := channeltypes.Acknowledgement{Response: &channeltypes.Acknowledgement_Result{Result: []byte("data")}} - sudoErrorMsg.Response.Data = a.GetResult() - sudoErrorMsg.Response.Request = p - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return([]byte("success"), nil) - resp, err := k.SudoResponse(ctx, address, sudoErrorMsg.Response.Request, a) - require.NoError(t, err) - require.Equal(t, []byte("success"), resp) - - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return(nil, fmt.Errorf("internal contract error")) - resp, err = k.SudoResponse(ctx, address, sudoErrorMsg.Response.Request, a) - require.Nil(t, resp) - require.ErrorContains(t, err, "internal contract error") -} - -func TestSudoError(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - wk := mock_types.NewMockWasmKeeper(ctrl) - - k, ctx := keepertest.ContractManagerKeeper(t, wk) - address := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) - - sudoErrorMsg := types.MessageError{} - p := channeltypes.Packet{} - a := channeltypes.Acknowledgement{Response: &channeltypes.Acknowledgement_Error{ - Error: "details", - }} - sudoErrorMsg.Error.Details = a.GetError() - sudoErrorMsg.Error.Request = p - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return([]byte("success"), nil) - resp, err := k.SudoError(ctx, address, sudoErrorMsg.Error.Request, a) - require.NoError(t, err) - require.Equal(t, []byte("success"), resp) - - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoErrorMsg)).Return(nil, fmt.Errorf("internal contract error")) - resp, err = k.SudoError(ctx, address, sudoErrorMsg.Error.Request, a) - require.Nil(t, resp) - require.ErrorContains(t, err, "internal contract error") -} - -func TestSudoTimeout(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - wk := mock_types.NewMockWasmKeeper(ctrl) - - k, ctx := keepertest.ContractManagerKeeper(t, wk) - address := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) - - sudoTimeoutMsg := types.MessageTimeout{} - p := channeltypes.Packet{} - sudoTimeoutMsg.Timeout.Request = p - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoTimeoutMsg)).Return([]byte("success"), nil) - resp, err := k.SudoTimeout(ctx, address, sudoTimeoutMsg.Timeout.Request) - require.NoError(t, err) - require.Equal(t, []byte("success"), resp) - - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoTimeoutMsg)).Return(nil, fmt.Errorf("internal contract error")) - resp, err = k.SudoTimeout(ctx, address, sudoTimeoutMsg.Timeout.Request) - require.Nil(t, resp) - require.ErrorContains(t, err, "internal contract error") -} - -func TestSudoOnChanOpen(t *testing.T) { - ctrl := gomock.NewController(t) - defer ctrl.Finish() - wk := mock_types.NewMockWasmKeeper(ctrl) - - k, ctx := keepertest.ContractManagerKeeper(t, wk) - address := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) - - sudoOpenAckMsg := types.MessageOnChanOpenAck{} - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoOpenAckMsg)).Return([]byte("success"), nil) - resp, err := k.SudoOnChanOpenAck(ctx, address, sudoOpenAckMsg.OpenAck) - require.NoError(t, err) - require.Equal(t, []byte("success"), resp) - - wk.EXPECT().Sudo(gomock.Any(), address, mustJSON(sudoOpenAckMsg)).Return(nil, fmt.Errorf("internal contract error")) - resp, err = k.SudoOnChanOpenAck(ctx, address, sudoOpenAckMsg.OpenAck) - require.Nil(t, resp) - require.ErrorContains(t, err, "internal contract error") -} - func TestSudoTxQueryResult(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() diff --git a/x/contractmanager/types/failure.pb.go b/x/contractmanager/types/failure.pb.go index abc19b1a4..063afa74f 100644 --- a/x/contractmanager/types/failure.pb.go +++ b/x/contractmanager/types/failure.pb.go @@ -6,7 +6,7 @@ package types import ( fmt "fmt" proto "github.com/cosmos/gogoproto/proto" - types "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + _ "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" io "io" math "math" math_bits "math/bits" @@ -31,12 +31,8 @@ type Failure struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Id of the failure under specific address Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - // Acknowledgement type - AckType string `protobuf:"bytes,3,opt,name=ack_type,json=ackType,proto3" json:"ack_type,omitempty"` - // IBC Packet - Packet *types.Packet `protobuf:"bytes,4,opt,name=packet,proto3" json:"packet,omitempty"` - // Acknowledgement - Ack *types.Acknowledgement `protobuf:"bytes,5,opt,name=ack,proto3" json:"ack,omitempty"` + // Serialized MessageSudoCallback with Packet and Ack(if exists) + SudoPayload []byte `protobuf:"bytes,3,opt,name=sudo_payload,json=sudoPayload,proto3" json:"sudo_payload,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -86,23 +82,9 @@ func (m *Failure) GetId() uint64 { return 0 } -func (m *Failure) GetAckType() string { +func (m *Failure) GetSudoPayload() []byte { if m != nil { - return m.AckType - } - return "" -} - -func (m *Failure) GetPacket() *types.Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *Failure) GetAck() *types.Acknowledgement { - if m != nil { - return m.Ack + return m.SudoPayload } return nil } @@ -116,25 +98,22 @@ func init() { } var fileDescriptor_fba0c26e85dad46e = []byte{ - // 288 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xb1, 0x4e, 0xeb, 0x30, - 0x14, 0x86, 0xeb, 0xb6, 0xb7, 0xbd, 0x18, 0x89, 0xc1, 0x0b, 0x06, 0x24, 0xab, 0x20, 0x90, 0xba, - 0x60, 0xab, 0x54, 0xea, 0x0e, 0x03, 0x73, 0x15, 0x31, 0xb1, 0x20, 0xe7, 0xe4, 0x90, 0x5a, 0x69, - 0xed,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d, 0x20, 0x5f, 0x3b, 0x41, 0xde, 0x0a, 0xd1, - 0xda, 0x16, 0xa2, 0xf5, 0x59, 0x88, 0xd6, 0xe3, 0x24, 0x35, 0x61, 0xb6, 0x8a, 0x25, 0xb8, 0x85, - 0xaa, 0xeb, 0xb9, 0x76, 0x3e, 0x6d, 0xb2, 0x7a, 0xfd, 0xd5, 0x69, 0x79, 0xcc, 0x32, 0xee, 0x55, - 0xb5, 0x8c, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x40, 0x42, 0xfd, 0x80, 0x7b, 0x01, 0x00, 0x00, + // 230 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, + 0x4c, 0x4f, 0x2d, 0xd2, 0x4f, 0x4b, 0xcc, 0xcc, 0x29, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x12, 0x87, 0x2a, 0xd3, 0x43, 0x53, 0x26, 0xa5, 0x98, 0x99, 0x94, 0xac, 0x9f, 0x9c, + 0x5f, 0x94, 0xaa, 0x9f, 0x9c, 0x91, 0x98, 0x97, 0x97, 0x9a, 0xa3, 0x5f, 0x66, 0x08, 0x63, 0x42, + 0xf4, 0x2a, 0x85, 0x71, 0xb1, 0xbb, 0x41, 0x0c, 0x13, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, + 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x85, 0xf8, 0xb8, 0x98, + 0x32, 0x53, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x82, 0x98, 0x32, 0x53, 0x84, 0x14, 0xb9, 0x78, + 0x8a, 0x4b, 0x53, 0xf2, 0xe3, 0x0b, 0x12, 0x2b, 0x73, 0xf2, 0x13, 0x53, 0x24, 0x98, 0x15, 0x18, + 0x35, 0x78, 0x82, 0xb8, 0x41, 0x62, 0x01, 0x10, 0x21, 0xa7, 0x80, 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, 0x32, 0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, + 0xd5, 0x87, 0x3a, 0x5c, 0x37, 0xbf, 0x28, 0x1d, 0xc6, 0xd6, 0xaf, 0xc0, 0xf0, 0x6d, 0x49, 0x65, + 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xc1, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xf7, + 0xe5, 0xa7, 0x15, 0x01, 0x00, 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { @@ -157,34 +136,10 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Ack != nil { - { - size, err := m.Ack.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFailure(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Packet != nil { - { - size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFailure(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.AckType) > 0 { - i -= len(m.AckType) - copy(dAtA[i:], m.AckType) - i = encodeVarintFailure(dAtA, i, uint64(len(m.AckType))) + if len(m.SudoPayload) > 0 { + i -= len(m.SudoPayload) + copy(dAtA[i:], m.SudoPayload) + i = encodeVarintFailure(dAtA, i, uint64(len(m.SudoPayload))) i-- dAtA[i] = 0x1a } @@ -227,18 +182,10 @@ func (m *Failure) Size() (n int) { if m.Id != 0 { n += 1 + sovFailure(uint64(m.Id)) } - l = len(m.AckType) + l = len(m.SudoPayload) if l > 0 { n += 1 + l + sovFailure(uint64(l)) } - if m.Packet != nil { - l = m.Packet.Size() - n += 1 + l + sovFailure(uint64(l)) - } - if m.Ack != nil { - l = m.Ack.Size() - n += 1 + l + sovFailure(uint64(l)) - } return n } @@ -330,77 +277,9 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AckType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFailure - } - 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 ErrInvalidLengthFailure - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFailure - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AckType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFailure - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFailure - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFailure - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Packet == nil { - m.Packet = &types.Packet{} - } - if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SudoPayload", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowFailure @@ -410,26 +289,24 @@ func (m *Failure) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthFailure } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthFailure } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Ack == nil { - m.Ack = &types.Acknowledgement{} - } - if err := m.Ack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.SudoPayload = append(m.SudoPayload[:0], dAtA[iNdEx:postIndex]...) + if m.SudoPayload == nil { + m.SudoPayload = []byte{} } iNdEx = postIndex default: diff --git a/x/contractmanager/types/module.go b/x/contractmanager/types/module.go index 540b2afd3..e7efcf2d9 100644 --- a/x/contractmanager/types/module.go +++ b/x/contractmanager/types/module.go @@ -2,15 +2,8 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ) -type ContractManagerWrapper interface { - HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) - SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) - SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) - SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) - SudoOnChanOpenAck(ctx sdk.Context, contractAddress sdk.AccAddress, details OpenAckDetails) ([]byte, error) - GetParams(ctx sdk.Context) (params Params) +type Sudo interface { + Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } diff --git a/x/contractmanager/types/sudo.go b/x/contractmanager/types/sudo.go index 8b2d0144d..a5745fcbb 100644 --- a/x/contractmanager/types/sudo.go +++ b/x/contractmanager/types/sudo.go @@ -23,10 +23,12 @@ type MessageKVQueryResult struct { } `json:"kv_query_result"` } +// MessageSudoCallback is passed to a contract's sudo() entrypoint when an interchain +// transaction failed with a timeout. type MessageSudoCallback struct { - Response *ResponseSudoPayload `json:"response"` - Error *ErrorSudoPayload `json:"error"` - Timeout *TimeoutPayload `json:"timeout"` + Response *ResponseSudoPayload `json:"response,omitempty"` + Error *ErrorSudoPayload `json:"error,omitempty"` + Timeout *TimeoutPayload `json:"timeout,omitempty"` } type ResponseSudoPayload struct { @@ -43,32 +45,6 @@ type TimeoutPayload struct { Request channeltypes.Packet `json:"request"` } -// MessageTimeout is passed to a contract's sudo() entrypoint when an interchain -// transaction failed with a timeout. -type MessageTimeout struct { - Timeout struct { - Request channeltypes.Packet `json:"request"` - } `json:"timeout"` -} - -// MessageResponse is passed to a contract's sudo() entrypoint when an interchain -// transaction was executed successfully. -type MessageResponse struct { - Response struct { - Request channeltypes.Packet `json:"request"` - Data []byte `json:"data"` // Message data - } `json:"response"` -} - -// MessageError is passed to a contract's sudo() entrypoint when an interchain -// transaction was executed with an error. -type MessageError struct { - Error struct { - Request channeltypes.Packet `json:"request"` - Details string `json:"details"` - } `json:"error"` -} - // MessageOnChanOpenAck is passed to a contract's sudo() entrypoint when an interchain // account was successfully registered. type MessageOnChanOpenAck struct { diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 4fe930e1f..1540a8c9a 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -1,6 +1,7 @@ package keeper import ( + "github.com/neutron-org/neutron/x/contractmanager/keeper" "time" "cosmossdk.io/errors" @@ -18,7 +19,6 @@ import ( // HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a sudo call. func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleAcknowledgment) - k.Logger(ctx).Debug("Handling acknowledgement") icaOwner, err := types.ICAOwnerFromPort(packet.SourcePort) if err != nil { @@ -31,24 +31,21 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack k.Logger(ctx).Error("HandleAcknowledgement: cannot unmarshal ICS-27 packet acknowledgement", "error", err) return errors.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-27 packet acknowledgement: %v", err) } - - if !k.contractManagerKeeper.HasContractInfo(ctx, icaOwner.GetContract()) { - //return fmt.Errorf("%s is not a contract address", icaOwner.GetContract()) - return nil + msg, err := keeper.PrepareSudoCallbackMessage(packet, &ack) + if err != nil { + return errors.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal Packet/Acknowledgment: %v", err) } k.feeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events - // `err` value from `SudoError/SudoResponse` should always be nil, since we contractmanager wrapped by `SudoLimitWrapper` - if ack.GetError() != "" { - _, err = k.contractManagerKeeper.SudoError(ctx, icaOwner.GetContract(), packet, ack) - } else { - _, err = k.contractManagerKeeper.SudoResponse(ctx, icaOwner.GetContract(), packet, ack) + _, err = k.sudoKeeper.Sudo(ctx, icaOwner.GetContract(), msg) + if err != nil { + k.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } - return err + return nil } // HandleTimeout passes the timeout data to the appropriate contract via a sudo call. @@ -56,24 +53,25 @@ func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Pack func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error { defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), LabelHandleTimeout) k.Logger(ctx).Debug("HandleTimeout") - icaOwner, err := types.ICAOwnerFromPort(packet.SourcePort) if err != nil { k.Logger(ctx).Error("HandleTimeout: failed to get ica owner from source port", "error", err) return errors.Wrap(err, "failed to get ica owner from port") } - if !k.contractManagerKeeper.HasContractInfo(ctx, icaOwner.GetContract()) { - //return fmt.Errorf("%s is not a contract address", icaOwner.GetContract()) - return nil + msg, err := keeper.PrepareSudoCallbackMessage(packet, nil) + if err != nil { + return errors.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal Packet: %v", err) } k.feeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - // `err` value from `SudoTimeout` should always be nil, since we contractmanager wrapped by `SudoLimitWrapper` - _, err = k.contractManagerKeeper.SudoTimeout(ctx, icaOwner.GetContract(), packet) + _, err = k.sudoKeeper.Sudo(ctx, icaOwner.GetContract(), msg) + if err != nil { + k.Logger(ctx).Debug("HandleTimeout: failed to Sudo contract on packet timeout", "error", err) + } - return err + return nil } // HandleChanOpenAck passes the data about a successfully created channel to the appropriate contract @@ -96,20 +94,16 @@ func (k *Keeper) HandleChanOpenAck( return errors.Wrap(err, "failed to get ica owner from port") } - if !k.contractManagerKeeper.HasContractInfo(ctx, icaOwner.GetContract()) { - //return fmt.Errorf("%s is not a contract address", icaOwner.GetContract()) - return nil - } - - _, err = k.contractManagerKeeper.SudoOnChanOpenAck(ctx, icaOwner.GetContract(), contractmanagertypes.OpenAckDetails{ + payload, err := keeper.PrepareOpenAckCallbackMessage(contractmanagertypes.OpenAckDetails{ PortID: portID, ChannelID: channelID, CounterpartyChannelID: counterpartyChannelID, CounterpartyVersion: counterpartyVersion, }) + + _, err = k.sudoKeeper.Sudo(ctx, icaOwner.GetContract(), payload) if err != nil { - k.Logger(ctx).Debug("HandleChanOpenAck: failed to sudo contract on packet timeout", "error", err) - return errors.Wrap(err, "failed to sudo the contract OnChanOpenAck") + k.Logger(ctx).Debug("HandleChanOpenAck: failed to sudo contract on channel open acknowledgement", "error", err) } return nil diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 50e74b2f0..3785f7906 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "fmt" + "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -21,19 +22,11 @@ func TestHandleAcknowledgement(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) + icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //store := ctx.KVStore(storeKey) - errACK := channeltypes.Acknowledgement{ - Response: &channeltypes.Acknowledgement_Error{ - Error: "error", - }, - } - errAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&errACK) - require.NoError(t, err) resACK := channeltypes.Acknowledgement{ Response: &channeltypes.Acknowledgement_Result{Result: []byte("Result")}, } @@ -54,51 +47,30 @@ func TestHandleAcknowledgement(t *testing.T) { err = icak.HandleAcknowledgement(ctx, p, nil, relayerAddress) require.ErrorContains(t, err, "cannot unmarshal ICS-27 packet acknowledgement") - // success contract SudoResponse - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK) - err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) + msgAck, err := keeper.PrepareSudoCallbackMessage(p, &resACK) require.NoError(t, err) - // success contract SudoError + // success contract SudoResponse ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK) - err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck) + err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) // error contract SudoResponse ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK).Return(nil, fmt.Errorf("error sudoResponse")) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck).Return(nil, fmt.Errorf("error sudoResponse")) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) - require.Error(t, err) - - // error contract SudoError - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK).Return(nil, fmt.Errorf("error sudoError")) - err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.Error(t, err) - - // no contract SudoError - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) - err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) //// success during SudoError //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { + //wmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { // store := cachedCtx.KVStore(storeKey) // store.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) //}).Return(nil, nil) - //cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) + //wmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) //err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) //require.NoError(t, err) @@ -107,13 +79,13 @@ func TestHandleAcknowledgement(t *testing.T) { // //// out of gas during SudoError //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { + //wmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { // store := cachedCtx.KVStore(storeKey) // store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // cachedCtx.GasMeter().ConsumeGas(7001, "out of gas test") //}) - //cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) - //cmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) + //wmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) + //wmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) //err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) //require.NoError(t, err) @@ -122,11 +94,11 @@ func TestHandleAcknowledgement(t *testing.T) { // //// success during SudoResponse //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { + //wmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { // store := cachedCtx.KVStore(storeKey) // store.Set(ShouldBeWrittenKey("sudoresponse"), ShouldBeWritten) // consumes 3140 gas, 2000 flat write + 30 every byte of key+value //}).Return(nil, nil) - //cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) + //wmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) //err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) //require.NoError(t, err) @@ -136,13 +108,13 @@ func TestHandleAcknowledgement(t *testing.T) { //// not enough gas provided by relayer for SudoCallGasLimit //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) //lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) - //cmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { + //wmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { // store := cachedCtx.KVStore(storeKey) // store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) // cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") //}) //feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - //cmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) + //wmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) //require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test } @@ -150,9 +122,9 @@ func TestHandleTimeout(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, feeKeeper, icaKeeper, nil) + icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" @@ -163,37 +135,33 @@ func TestHandleTimeout(t *testing.T) { SourceChannel: "channel-0", } - err := icak.HandleTimeout(ctx, channeltypes.Packet{}, relayerAddress) + msgAck, err := keeper.PrepareSudoCallbackMessage(p, nil) + require.NoError(t, err) + + err = icak.HandleTimeout(ctx, channeltypes.Packet{}, relayerAddress) require.ErrorContains(t, err, "failed to get ica owner from port") // contract success ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) // contract error ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p).Return(nil, fmt.Errorf("SudoTimeout error")) - err = icak.HandleTimeout(ctx, p, relayerAddress) - require.Error(t, err) - - // no contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck).Return(nil, fmt.Errorf("SudoTimeout error")) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) + } func TestHandleChanOpenAck(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) - icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, nil, nil, nil) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) + icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil) portID := icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0" contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) channelID := "channel-0" @@ -202,27 +170,21 @@ func TestHandleChanOpenAck(t *testing.T) { err := icak.HandleChanOpenAck(ctx, "", channelID, counterpartyChannelID, "1") require.ErrorContains(t, err, "failed to get ica owner from port") - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - cmKeeper.EXPECT().SudoOnChanOpenAck(ctx, contractAddress, types.OpenAckDetails{ + msg, err := keeper.PrepareOpenAckCallbackMessage(types.OpenAckDetails{ PortID: portID, ChannelID: channelID, CounterpartyChannelID: counterpartyChannelID, CounterpartyVersion: "1", - }).Return(nil, fmt.Errorf("SudoOnChanOpenAck error")) - err = icak.HandleChanOpenAck(ctx, portID, channelID, counterpartyChannelID, "1") - require.ErrorContains(t, err, "failed to sudo the contract OnChanOpenAck") + }) + require.NoError(t, err) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - cmKeeper.EXPECT().SudoOnChanOpenAck(ctx, contractAddress, types.OpenAckDetails{ - PortID: portID, - ChannelID: channelID, - CounterpartyChannelID: counterpartyChannelID, - CounterpartyVersion: "1", - }).Return(nil, nil) + // sudo error + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msg).Return(nil, fmt.Errorf("SudoOnChanOpenAck error")) err = icak.HandleChanOpenAck(ctx, portID, channelID, counterpartyChannelID, "1") require.NoError(t, err) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + // sudo success + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msg) err = icak.HandleChanOpenAck(ctx, portID, channelID, counterpartyChannelID, "1") require.NoError(t, err) } diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index a1032c24c..737a874b5 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -20,13 +20,13 @@ const ( type ( Keeper struct { - Codec codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - channelKeeper types.ChannelKeeper - feeKeeper types.FeeRefunderKeeper - icaControllerKeeper types.ICAControllerKeeper - contractManagerKeeper types.ContractManagerKeeper + Codec codec.BinaryCodec + storeKey storetypes.StoreKey + memKey storetypes.StoreKey + channelKeeper types.ChannelKeeper + feeKeeper types.FeeRefunderKeeper + icaControllerKeeper types.ICAControllerKeeper + sudoKeeper types.WasmKeeper } ) @@ -36,17 +36,17 @@ func NewKeeper( memKey storetypes.StoreKey, channelKeeper types.ChannelKeeper, icaControllerKeeper types.ICAControllerKeeper, - contractManagerKeeper types.ContractManagerKeeper, + contractManagerKeeper types.WasmKeeper, feeKeeper types.FeeRefunderKeeper, ) *Keeper { return &Keeper{ - Codec: cdc, - storeKey: storeKey, - memKey: memKey, - channelKeeper: channelKeeper, - icaControllerKeeper: icaControllerKeeper, - contractManagerKeeper: contractManagerKeeper, - feeKeeper: feeKeeper, + Codec: cdc, + storeKey: storeKey, + memKey: memKey, + channelKeeper: channelKeeper, + icaControllerKeeper: icaControllerKeeper, + sudoKeeper: contractManagerKeeper, + feeKeeper: feeKeeper, } } diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index 62d3cfe5a..efc3a42d9 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -43,7 +43,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.FromAddress) } - if !k.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { + if !k.sudoKeeper.HasContractInfo(ctx, senderAddr) { k.Logger(ctx).Debug("RegisterInterchainAccount: contract not found", "from_address", msg.FromAddress) return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } @@ -79,7 +79,7 @@ func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ic return nil, errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse address: %s", msg.FromAddress) } - if !k.contractManagerKeeper.HasContractInfo(ctx, senderAddr) { + if !k.sudoKeeper.HasContractInfo(ctx, senderAddr) { k.Logger(ctx).Debug("SubmitTx: contract not found", "from_address", msg.FromAddress) return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index 3879525ac..c662dd8da 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -25,8 +25,8 @@ func TestRegisterInterchainAccount(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) - icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, nil, icaKeeper, nil) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) + icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil) goCtx := sdk.WrapSDKContext(ctx) msgRegAcc := types.MsgRegisterInterchainAccount{ @@ -41,18 +41,18 @@ func TestRegisterInterchainAccount(t *testing.T) { require.ErrorContains(t, err, "failed to parse address") require.Nil(t, resp) - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(false) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(false) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.ErrorContains(t, err, "is not a contract address") require.Nil(t, resp) - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(fmt.Errorf("failed to register ica")) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.ErrorContains(t, err, "failed to RegisterInterchainAccount") require.Nil(t, resp) - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(nil) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.NoError(t, err) @@ -63,10 +63,10 @@ func TestSubmitTx(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) refundKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) channelKeeper := mock_types.NewMockChannelKeeper(ctrl) - icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, cmKeeper, refundKeeper, icaKeeper, channelKeeper) + icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper) goCtx := sdk.WrapSDKContext(ctx) cosmosMsg := codectypes.Any{ @@ -97,7 +97,7 @@ func TestSubmitTx(t *testing.T) { require.Nil(t, resp) require.ErrorContains(t, err, "failed to parse address") - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(false) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(false) resp, err = icak.SubmitTx(goCtx, &submitMsg) require.Nil(t, resp) require.ErrorContains(t, err, "is not a contract address") @@ -105,21 +105,21 @@ func TestSubmitTx(t *testing.T) { params := icak.GetParams(ctx) maxMsgs := params.GetMsgSubmitTxMaxMessages() submitMsg.Msgs = make([]*codectypes.Any, maxMsgs+1) - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) resp, err = icak.SubmitTx(goCtx, &submitMsg) require.Nil(t, resp) require.ErrorContains(t, err, "MsgSubmitTx contains more messages than allowed") submitMsg.Msgs = []*codectypes.Any{&cosmosMsg} portID := "icacontroller-" + testutil.TestOwnerAddress + ".ica0" - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return("", false) resp, err = icak.SubmitTx(goCtx, &submitMsg) require.Nil(t, resp) require.ErrorContains(t, err, "failed to GetActiveChannelID for port") activeChannel := "channel-0" - // cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + // wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) // icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) // currCodec := icak.Codec // icak.Codec = &codec.AminoCodec{} @@ -128,7 +128,7 @@ func TestSubmitTx(t *testing.T) { // require.Nil(t, resp) // require.ErrorContains(t, err, "only ProtoCodec is supported for receiving messages on the host chain") - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(uint64(0), false) resp, err = icak.SubmitTx(goCtx, &submitMsg) @@ -136,7 +136,7 @@ func TestSubmitTx(t *testing.T) { require.ErrorContains(t, err, "sequence send not found") sequence := uint64(100) - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(sequence, true) refundKeeper.EXPECT().LockFees(ctx, contractAddress, feerefundertypes.NewPacketID(portID, activeChannel, sequence), submitMsg.Fee).Return(fmt.Errorf("failed to lock fees")) @@ -153,7 +153,7 @@ func TestSubmitTx(t *testing.T) { } timeoutTimestamp := ctx.BlockTime().Add(time.Duration(submitMsg.Timeout) * time.Second).UnixNano() - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(sequence, true) refundKeeper.EXPECT().LockFees(ctx, contractAddress, feerefundertypes.NewPacketID(portID, activeChannel, sequence), submitMsg.Fee).Return(nil) @@ -162,7 +162,7 @@ func TestSubmitTx(t *testing.T) { require.Nil(t, resp) require.ErrorContains(t, err, "failed to SendTx") - cmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) icaKeeper.EXPECT().GetActiveChannelID(ctx, "connection-0", portID).Return(activeChannel, true) channelKeeper.EXPECT().GetNextSequenceSend(ctx, portID, activeChannel).Return(sequence, true) refundKeeper.EXPECT().LockFees(ctx, contractAddress, feerefundertypes.NewPacketID(portID, activeChannel, sequence), submitMsg.Fee).Return(nil) diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 13d7f7cf3..3e57253ed 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -8,7 +8,6 @@ import ( channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -24,14 +23,9 @@ type BankKeeper interface { // Methods imported from bank should be defined here } -type ContractManagerKeeper interface { +type WasmKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) - SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) - SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) - SudoOnChanOpenAck(ctx sdk.Context, contractAddress sdk.AccAddress, details contractmanagertypes.OpenAckDetails) ([]byte, error) - AddContractFailure(ctx sdk.Context, packet *channeltypes.Packet, address, ackType string, ack *channeltypes.Acknowledgement) - GetParams(ctx sdk.Context) (params contractmanagertypes.Params) + Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } type ICAControllerKeeper interface { diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index efecb0cff..30ad94af3 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -6,6 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/neutron-org/neutron/x/contractmanager/keeper" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/types" ) @@ -25,24 +26,25 @@ func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.P if err != nil { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } - if !im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { + if !im.sudoKeeper.HasContractInfo(ctx, senderAddress) { return nil } im.wrappedKeeper.FeeKeeper.DistributeAcknowledgementFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - if ack.Success() { - _, err = im.ContractManagerKeeper.SudoResponse(ctx, senderAddress, packet, ack) - } else { - // Actually we have only one kind of error returned from acknowledgement - // maybe later we'll retrieve actual errors from events - im.keeper.Logger(ctx).Debug(ack.GetError(), "CheckTx", ctx.IsCheckTx()) - _, err = im.ContractManagerKeeper.SudoError(ctx, senderAddress, packet, ack) + msg, err := keeper.PrepareSudoCallbackMessage(packet, &ack) + if err != nil { + return errors.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal Packet/Acknowledgment: %v", err) + } + + _, err = im.sudoKeeper.Sudo(ctx, senderAddress, msg) + if err != nil { + im.keeper.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) } im.keeper.Logger(ctx).Debug("acknowledgement received", "Packet data", data, "CheckTx", ctx.IsCheckTx()) - return err + return nil } // HandleTimeout passes the timeout data to the appropriate contract via a sudo call. @@ -56,13 +58,21 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r if err != nil { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to decode address from bech32: %v", err) } - if !im.ContractManagerKeeper.HasContractInfo(ctx, senderAddress) { + if !im.sudoKeeper.HasContractInfo(ctx, senderAddress) { return nil } + msg, err := keeper.PrepareSudoCallbackMessage(packet, nil) + if err != nil { + return errors.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal Packet: %v", err) + } + im.wrappedKeeper.FeeKeeper.DistributeTimeoutFee(ctx, relayer, feetypes.NewPacketID(packet.SourcePort, packet.SourceChannel, packet.Sequence)) - _, err = im.ContractManagerKeeper.SudoTimeout(ctx, senderAddress, packet) + _, err = im.sudoKeeper.Sudo(ctx, senderAddress, msg) + if err != nil { + im.keeper.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) + } - return err + return nil } diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index e93d91c97..03ebab6f7 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -2,6 +2,7 @@ package transfer_test import ( "fmt" + "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -19,36 +20,19 @@ import ( const TestCosmosAddress = "cosmos10h9stc5v6ntgeygf5xf945njqq5h32r53uquvw" -var ( - ShouldNotBeWrittenKey = []byte("shouldnotkey") - ShouldNotBeWritten = []byte("should not be written") - ShouldBeWritten = []byte("should be written") -) - -func ShouldBeWrittenKey(suffix string) []byte { - return append([]byte("shouldkey"), []byte(suffix)...) -} - func TestHandleAcknowledgement(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) chanKeeper := mock_types.NewMockChannelKeeper(ctrl) authKeeper := mock_types.NewMockAccountKeeper(ctrl) // required to initialize keeper authKeeper.EXPECT().GetModuleAddress(transfertypes.ModuleName).Return([]byte("address")) - txKeeper, infCtx, _ := testkeeper.TransferKeeper(t, cmKeeper, feeKeeper, chanKeeper, authKeeper) - txModule := transfer.NewIBCModule(*txKeeper) + txKeeper, infCtx, _ := testkeeper.TransferKeeper(t, wmKeeper, feeKeeper, chanKeeper, authKeeper) + txModule := transfer.NewIBCModule(*txKeeper, wmKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - errACK := channeltypes.Acknowledgement{ - Response: &channeltypes.Acknowledgement_Error{ - Error: "error", - }, - } - errAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&errACK) - require.NoError(t, err) resACK := channeltypes.Acknowledgement{ Response: &channeltypes.Acknowledgement_Result{Result: []byte("Result")}, } @@ -59,6 +43,7 @@ func TestHandleAcknowledgement(t *testing.T) { SourcePort: "transfer", SourceChannel: "channel-0", } + contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" relayerAddress := sdk.MustAccAddressFromBech32(relayerBech32) @@ -92,41 +77,28 @@ func TestHandleAcknowledgement(t *testing.T) { require.NoError(t, err) p.Data = tokenBz + msgAck, err := keeper.PrepareSudoCallbackMessage(p, &resACK) + require.NoError(t, err) + // non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + wmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - // error during SudoResponse contract + // error during Sudo contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK).Return(nil, fmt.Errorf("SudoResponse error")) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck).Return(nil, fmt.Errorf("SudoResponse error")) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) - require.Error(t, err) - - // error during SudoError contract - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK).Return(nil, fmt.Errorf("SudoError error")) - err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - require.Error(t, err) - - // success during SudoError - ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) - feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoError(ctx, contractAddress, p, errACK) - err = txModule.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) require.NoError(t, err) - // success during SudoError contract + // success during Sudo contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoResponse(ctx, contractAddress, p, resACK) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck) err = txModule.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) } @@ -134,14 +106,14 @@ func TestHandleAcknowledgement(t *testing.T) { func TestHandleTimeout(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) chanKeeper := mock_types.NewMockChannelKeeper(ctrl) authKeeper := mock_types.NewMockAccountKeeper(ctrl) // required to initialize keeper authKeeper.EXPECT().GetModuleAddress(transfertypes.ModuleName).Return([]byte("address")) - txKeeper, infCtx, _ := testkeeper.TransferKeeper(t, cmKeeper, feeKeeper, chanKeeper, authKeeper) - txModule := transfer.NewIBCModule(*txKeeper) + txKeeper, infCtx, _ := testkeeper.TransferKeeper(t, wmKeeper, feeKeeper, chanKeeper, authKeeper) + txModule := transfer.NewIBCModule(*txKeeper, wmKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" @@ -177,25 +149,28 @@ func TestHandleTimeout(t *testing.T) { require.NoError(t, err) p.Data = tokenBz + msg, err := keeper.PrepareSudoCallbackMessage(p, nil) + require.NoError(t, err) + // success non contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) + wmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(false) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) // success contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p).Return(nil, nil) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msg).Return(nil, nil) err = txModule.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) // error during SudoTimeOut contract ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - cmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) + wmKeeper.EXPECT().HasContractInfo(ctx, sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress)).Return(true) feeKeeper.EXPECT().DistributeTimeoutFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - cmKeeper.EXPECT().SudoTimeout(ctx, contractAddress, p).Return(nil, fmt.Errorf("SudoTimeout error")) + wmKeeper.EXPECT().Sudo(ctx, contractAddress, msg).Return(nil, fmt.Errorf("SudoTimeout error")) err = txModule.HandleTimeout(ctx, p, relayerAddress) - require.Error(t, err) + require.NoError(t, err) } diff --git a/x/transfer/keeper/keeper.go b/x/transfer/keeper/keeper.go index 90f672939..50729540a 100644 --- a/x/transfer/keeper/keeper.go +++ b/x/transfer/keeper/keeper.go @@ -22,9 +22,9 @@ import ( // KeeperTransferWrapper is a wrapper for original ibc keeper to override response for "Transfer" method type KeeperTransferWrapper struct { keeper.Keeper - channelKeeper wrappedtypes.ChannelKeeper - FeeKeeper wrappedtypes.FeeRefunderKeeper - ContractManagerKeeper wrappedtypes.ContractManagerKeeper + channelKeeper wrappedtypes.ChannelKeeper + FeeKeeper wrappedtypes.FeeRefunderKeeper + SudoKeeper wrappedtypes.WasmKeeper } func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes.MsgTransfer) (*wrappedtypes.MsgTransferResponse, error) { @@ -46,7 +46,7 @@ func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes // if the sender is a contract, lock fees. // Because contracts are required to pay fees for the acknowledgements - if k.ContractManagerKeeper.HasContractInfo(ctx, senderAddr) { + if k.SudoKeeper.HasContractInfo(ctx, senderAddr) { if err := k.FeeKeeper.LockFees(ctx, senderAddr, feetypes.NewPacketID(msg.SourcePort, msg.SourceChannel, sequence), msg.Fee); err != nil { return nil, errors.Wrapf(err, "failed to lock fees to pay for transfer msg: %v", msg) } @@ -70,13 +70,13 @@ func NewKeeper( ics4Wrapper porttypes.ICS4Wrapper, channelKeeper wrappedtypes.ChannelKeeper, portKeeper types.PortKeeper, authKeeper types.AccountKeeper, bankKeeper types.BankKeeper, scopedKeeper capabilitykeeper.ScopedKeeper, feeKeeper wrappedtypes.FeeRefunderKeeper, - contractManagerKeeper wrappedtypes.ContractManagerKeeper, + sudoKeeper wrappedtypes.WasmKeeper, ) KeeperTransferWrapper { return KeeperTransferWrapper{ channelKeeper: channelKeeper, Keeper: keeper.NewKeeper(cdc, key, paramSpace, ics4Wrapper, channelKeeper, portKeeper, authKeeper, bankKeeper, scopedKeeper), - FeeKeeper: feeKeeper, - ContractManagerKeeper: contractManagerKeeper, + FeeKeeper: feeKeeper, + SudoKeeper: sudoKeeper, } } diff --git a/x/transfer/module.go b/x/transfer/module.go index 967fe459e..5b6bd8d82 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -27,19 +27,19 @@ import ( */ type IBCModule struct { - wrappedKeeper wrapkeeper.KeeperTransferWrapper - keeper keeper.Keeper - ContractManagerKeeper neutrontypes.ContractManagerKeeper + wrappedKeeper wrapkeeper.KeeperTransferWrapper + keeper keeper.Keeper + sudoKeeper neutrontypes.WasmKeeper transfer.IBCModule } // NewIBCModule creates a new IBCModule given the keeper -func NewIBCModule(k wrapkeeper.KeeperTransferWrapper) IBCModule { +func NewIBCModule(k wrapkeeper.KeeperTransferWrapper, sudoKeeper neutrontypes.WasmKeeper) IBCModule { return IBCModule{ - wrappedKeeper: k, - keeper: k.Keeper, - ContractManagerKeeper: k.ContractManagerKeeper, - IBCModule: transfer.NewIBCModule(k.Keeper), + wrappedKeeper: k, + keeper: k.Keeper, + sudoKeeper: sudoKeeper, + IBCModule: transfer.NewIBCModule(k.Keeper), } } diff --git a/x/transfer/types/expected_keepers.go b/x/transfer/types/expected_keepers.go index 774daf841..854b8e490 100644 --- a/x/transfer/types/expected_keepers.go +++ b/x/transfer/types/expected_keepers.go @@ -7,12 +7,9 @@ import ( feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) -// ContractManagerKeeper defines the expected interface needed to add ack information about sudo failure. -type ContractManagerKeeper interface { +type WasmKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool - SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) - SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, ack channeltypes.Acknowledgement) ([]byte, error) - SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) + Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } type FeeRefunderKeeper interface { From 7db0608a02672c38b79f791902a59123b3b22515 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 14 Sep 2023 19:51:50 +0300 Subject: [PATCH 122/307] added fee charging for ica creation --- app/app.go | 2 + app/upgrades/sdk47/upgrades.go | 3 +- proto/neutron/interchaintxs/v1/params.proto | 3 + proto/neutron/interchaintxs/v1/tx.proto | 5 + .../interchaintxs/keeper/interchaintxs.go | 13 +- .../interchaintxs/types/expected_keepers.go | 60 ++++++- wasmbinding/bindings/msg.go | 6 +- wasmbinding/message_plugin.go | 1 + wasmbinding/test/custom_message_test.go | 13 ++ x/interchaintxs/genesis_test.go | 2 +- .../grpc_query_interchainaccount_test.go | 2 +- .../keeper/grpc_query_params_test.go | 2 +- x/interchaintxs/keeper/ibc_handlers_test.go | 12 +- x/interchaintxs/keeper/keeper.go | 30 ++++ x/interchaintxs/keeper/msg_server.go | 4 + x/interchaintxs/keeper/msg_server_test.go | 38 ++++- x/interchaintxs/keeper/params_test.go | 2 +- x/interchaintxs/types/expected_keepers.go | 7 +- x/interchaintxs/types/params.go | 21 +-- x/interchaintxs/types/params.pb.go | 98 +++++++++-- x/interchaintxs/types/tx.pb.go | 158 ++++++++++++------ 21 files changed, 386 insertions(+), 96 deletions(-) diff --git a/app/app.go b/app/app.go index 6804471df..5a5e71871 100644 --- a/app/app.go +++ b/app/app.go @@ -662,6 +662,8 @@ func New( app.ICAControllerKeeper, contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper, &app.WasmKeeper), app.FeeKeeper, + app.BankKeeper, + app.FeeBurnerKeeper, ) app.CronKeeper = *cronkeeper.NewKeeper(appCodec, keys[crontypes.StoreKey], keys[crontypes.MemStoreKey], app.AccountKeeper) diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go index f0cfaa7e3..54529d9d6 100644 --- a/app/upgrades/sdk47/upgrades.go +++ b/app/upgrades/sdk47/upgrades.go @@ -135,7 +135,7 @@ func migrateCronParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, store func migrateFeeRefunderParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { store := ctx.KVStore(storeKey) var currParams feerefundertypes.Params - subspace, _ := paramsKeepers.GetSubspace(crontypes.StoreKey) + subspace, _ := paramsKeepers.GetSubspace(feerefundertypes.StoreKey) subspace.GetParamSet(ctx, &currParams) if err := currParams.Validate(); err != nil { @@ -197,6 +197,7 @@ func migrateInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keep var currParams interchaintxstypes.Params subspace, _ := paramsKeepers.GetSubspace(interchaintxstypes.StoreKey) subspace.GetParamSet(ctx, &currParams) + currParams.RegisterFee = interchaintxstypes.DefaultRegisterFee if err := currParams.Validate(); err != nil { return err diff --git a/proto/neutron/interchaintxs/v1/params.proto b/proto/neutron/interchaintxs/v1/params.proto index c25893eef..734e7cb2e 100644 --- a/proto/neutron/interchaintxs/v1/params.proto +++ b/proto/neutron/interchaintxs/v1/params.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package neutron.interchaintxs; import "gogoproto/gogo.proto"; +import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; @@ -10,4 +11,6 @@ message Params { option (gogoproto.goproto_stringer) = false; // Defines maximum amount of messages to be passed in MsgSubmitTx uint64 msg_submit_tx_max_messages = 1; + // Defines a minimum fee required to register interchain account + repeated cosmos.base.v1beta1.Coin register_fee = 2 [ (gogoproto.nullable) = false ]; } diff --git a/proto/neutron/interchaintxs/v1/tx.proto b/proto/neutron/interchaintxs/v1/tx.proto index c871accd2..8fd53b3f4 100644 --- a/proto/neutron/interchaintxs/v1/tx.proto +++ b/proto/neutron/interchaintxs/v1/tx.proto @@ -4,6 +4,7 @@ package neutron.interchaintxs.v1; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; import "google/api/http.proto"; import "google/api/annotations.proto"; @@ -26,6 +27,10 @@ message MsgRegisterInterchainAccount { string connection_id = 2 [ (gogoproto.moretags) = "yaml:\"connection_id\"" ]; string interchain_account_id = 3 [ (gogoproto.moretags) = "yaml:\"interchain_account_id\"" ]; + repeated cosmos.base.v1beta1.Coin register_fee = 4 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } // MsgRegisterInterchainAccountResponse is the response type for diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 4961a46f9..51d23413f 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -17,7 +17,14 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -func InterchainTxsKeeper(t testing.TB, managerKeeper types.WasmKeeper, refunderKeeper types.FeeRefunderKeeper, icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper) (*keeper.Keeper, sdk.Context, *storetypes.KVStoreKey) { +func InterchainTxsKeeper( + t testing.TB, + managerKeeper types.WasmKeeper, + refunderKeeper types.FeeRefunderKeeper, + icaControllerKeeper types.ICAControllerKeeper, + channelKeeper types.ChannelKeeper, + bankKeeper types.BankKeeper, + feeburnerKeeper types.FeeBurnerKeeper) (*keeper.Keeper, sdk.Context) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) @@ -38,6 +45,8 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.WasmKeeper, refunderK icaControllerKeeper, managerKeeper, refunderKeeper, + bankKeeper, + feeburnerKeeper, ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) @@ -46,5 +55,5 @@ func InterchainTxsKeeper(t testing.TB, managerKeeper types.WasmKeeper, refunderK err := k.SetParams(ctx, types.DefaultParams()) require.NoError(t, err) - return k, ctx, storeKey + return k, ctx } diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index d42f778a0..97633afb9 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -14,7 +14,8 @@ import ( types3 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" exported "github.com/cosmos/ibc-go/v7/modules/core/exported" gomock "github.com/golang/mock/gomock" - types4 "github.com/neutron-org/neutron/x/feerefunder/types" + types4 "github.com/neutron-org/neutron/x/feeburner/types" + types5 "github.com/neutron-org/neutron/x/feerefunder/types" ) // MockAccountKeeper is a mock of AccountKeeper interface. @@ -77,6 +78,20 @@ func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder { return m.recorder } +// SendCoins mocks base method. +func (m *MockBankKeeper) SendCoins(ctx types.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendCoins", ctx, fromAddr, toAddr, amt) + ret0, _ := ret[0].(error) + return ret0 +} + +// SendCoins indicates an expected call of SendCoins. +func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoins", reflect.TypeOf((*MockBankKeeper)(nil).SendCoins), ctx, fromAddr, toAddr, amt) +} + // SpendableCoins mocks base method. func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins { m.ctrl.T.Helper() @@ -249,7 +264,7 @@ func (m *MockFeeRefunderKeeper) EXPECT() *MockFeeRefunderKeeperMockRecorder { } // DistributeAcknowledgementFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types5.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeAcknowledgementFee", ctx, receiver, packetID) } @@ -261,7 +276,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeAcknowledgementFee(ctx, r } // DistributeTimeoutFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types5.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeTimeoutFee", ctx, receiver, packetID) } @@ -273,7 +288,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeTimeoutFee(ctx, receiver, } // LockFees mocks base method. -func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types4.PacketID, fee types4.Fee) error { +func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types5.PacketID, fee types5.Fee) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockFees", ctx, payer, packetID, fee) ret0, _ := ret[0].(error) @@ -353,3 +368,40 @@ func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(ctx, portID, channe mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextSequenceSend", reflect.TypeOf((*MockChannelKeeper)(nil).GetNextSequenceSend), ctx, portID, channelID) } + +// MockFeeBurnerKeeper is a mock of FeeBurnerKeeper interface. +type MockFeeBurnerKeeper struct { + ctrl *gomock.Controller + recorder *MockFeeBurnerKeeperMockRecorder +} + +// MockFeeBurnerKeeperMockRecorder is the mock recorder for MockFeeBurnerKeeper. +type MockFeeBurnerKeeperMockRecorder struct { + mock *MockFeeBurnerKeeper +} + +// NewMockFeeBurnerKeeper creates a new mock instance. +func NewMockFeeBurnerKeeper(ctrl *gomock.Controller) *MockFeeBurnerKeeper { + mock := &MockFeeBurnerKeeper{ctrl: ctrl} + mock.recorder = &MockFeeBurnerKeeperMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockFeeBurnerKeeper) EXPECT() *MockFeeBurnerKeeperMockRecorder { + return m.recorder +} + +// GetParams mocks base method. +func (m *MockFeeBurnerKeeper) GetParams(ctx types.Context) types4.Params { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetParams", ctx) + ret0, _ := ret[0].(types4.Params) + return ret0 +} + +// GetParams indicates an expected call of GetParams. +func (mr *MockFeeBurnerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockFeeBurnerKeeper)(nil).GetParams), ctx) +} diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 13793b11b..b2fd53f51 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -4,6 +4,7 @@ package bindings import ( "cosmossdk.io/math" cosmostypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" paramChange "github.com/cosmos/cosmos-sdk/x/params/types/proposal" feetypes "github.com/neutron-org/neutron/x/feerefunder/types" @@ -72,8 +73,9 @@ type SubmitTxResponse struct { // RegisterInterchainAccount creates account on remote chain. type RegisterInterchainAccount struct { - ConnectionId string `json:"connection_id"` - InterchainAccountId string `json:"interchain_account_id"` + ConnectionId string `json:"connection_id"` + InterchainAccountId string `json:"interchain_account_id"` + RegisterFee sdk.Coins `json:"register_fee"` } // RegisterInterchainAccountResponse holds response for RegisterInterchainAccount. diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 2768ba7a3..383ac6d48 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -691,6 +691,7 @@ func (m *CustomMessenger) performRegisterInterchainAccount(ctx sdk.Context, cont FromAddress: contractAddr.String(), ConnectionId: reg.ConnectionId, InterchainAccountId: reg.InterchainAccountId, + RegisterFee: reg.RegisterFee, } if err := msg.ValidateBasic(); err != nil { return nil, errors.Wrap(err, "failed to validate incoming RegisterInterchainAccount message") diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 1f5d11d5b..5346823d7 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" keeper2 "github.com/neutron-org/neutron/x/contractmanager/keeper" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" "testing" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -76,15 +77,27 @@ func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccount() { suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) + err := suite.neutron.FeeBurnerKeeper.SetParams(suite.ctx, feeburnertypes.Params{ + NeutronDenom: "untrn", + TreasuryAddress: "neutron13jrwrtsyjjuynlug65r76r2zvfw5xjcq6532h2", + }) + suite.Require().NoError(err) + // Craft RegisterInterchainAccount message msg, err := json.Marshal(bindings.NeutronMsg{ RegisterInterchainAccount: &bindings.RegisterInterchainAccount{ ConnectionId: suite.Path.EndpointA.ConnectionID, InterchainAccountId: testutil.TestInterchainID, + RegisterFee: sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))), }, }) suite.NoError(err) + bankKeeper := suite.neutron.BankKeeper + senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() + err = bankKeeper.SendCoins(suite.ctx, senderAddress, suite.contractAddress, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000)))) + suite.NoError(err) + // Dispatch RegisterInterchainAccount message events, data, err := suite.messenger.DispatchMsg(suite.ctx, suite.contractAddress, suite.Path.EndpointA.ChannelConfig.PortID, types.CosmosMsg{ Custom: msg, diff --git a/x/interchaintxs/genesis_test.go b/x/interchaintxs/genesis_test.go index 88cb68297..2adc3476d 100644 --- a/x/interchaintxs/genesis_test.go +++ b/x/interchaintxs/genesis_test.go @@ -16,7 +16,7 @@ func TestGenesis(t *testing.T) { Params: types.DefaultParams(), } - k, ctx, _ := keepertest.InterchainTxsKeeper(t, nil, nil, nil, nil) + k, ctx := keepertest.InterchainTxsKeeper(t, nil, nil, nil, nil, nil, nil) interchaintxs.InitGenesis(ctx, *k, genesisState) got := interchaintxs.ExportGenesis(ctx, *k) require.NotNil(t, got) diff --git a/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go b/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go index 1c631682f..5de39ad40 100644 --- a/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go +++ b/x/interchaintxs/keeper/grpc_query_interchainaccount_test.go @@ -20,7 +20,7 @@ func TestKeeper_InterchainAccountAddress(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) - keeper, ctx, _ := testkeeper.InterchainTxsKeeper(t, nil, nil, icaKeeper, nil) + keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, icaKeeper, nil, nil, nil) wctx := sdk.WrapSDKContext(ctx) resp, err := keeper.InterchainAccountAddress(wctx, nil) diff --git a/x/interchaintxs/keeper/grpc_query_params_test.go b/x/interchaintxs/keeper/grpc_query_params_test.go index 90df327c3..5fa31e0c3 100644 --- a/x/interchaintxs/keeper/grpc_query_params_test.go +++ b/x/interchaintxs/keeper/grpc_query_params_test.go @@ -11,7 +11,7 @@ import ( ) func TestParamsQuery(t *testing.T) { - keeper, ctx, _ := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil) + keeper, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil, nil, nil) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() err := keeper.SetParams(ctx, params) diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 3785f7906..50cc29fd8 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -24,7 +24,9 @@ func TestHandleAcknowledgement(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil) + bankKeeper := mock_types.NewMockBankKeeper(ctrl) + feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, feeburnerKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) resACK := channeltypes.Acknowledgement{ @@ -124,7 +126,9 @@ func TestHandleTimeout(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) - icak, infCtx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil) + bankKeeper := mock_types.NewMockBankKeeper(ctrl) + feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, feeburnerKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" @@ -161,7 +165,9 @@ func TestHandleChanOpenAck(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() wmKeeper := mock_types.NewMockWasmKeeper(ctrl) - icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil) + bankKeeper := mock_types.NewMockBankKeeper(ctrl) + feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil, bankKeeper, feeburnerKeeper) portID := icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0" contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) channelID := "channel-0" diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 737a874b5..e27d294d2 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -1,7 +1,9 @@ package keeper import ( + "cosmossdk.io/errors" "fmt" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/codec" @@ -27,6 +29,8 @@ type ( feeKeeper types.FeeRefunderKeeper icaControllerKeeper types.ICAControllerKeeper sudoKeeper types.WasmKeeper + bankKeeper types.BankKeeper + feeBurnerKeeper types.FeeBurnerKeeper } ) @@ -38,6 +42,8 @@ func NewKeeper( icaControllerKeeper types.ICAControllerKeeper, contractManagerKeeper types.WasmKeeper, feeKeeper types.FeeRefunderKeeper, + bankKeeper types.BankKeeper, + feeBurnerKeeper types.FeeBurnerKeeper, ) *Keeper { return &Keeper{ Codec: cdc, @@ -47,9 +53,33 @@ func NewKeeper( icaControllerKeeper: icaControllerKeeper, sudoKeeper: contractManagerKeeper, feeKeeper: feeKeeper, + bankKeeper: bankKeeper, + feeBurnerKeeper: feeBurnerKeeper, } } func (k *Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } + +func (k Keeper) ChargeFee(ctx sdk.Context, payer sdk.AccAddress, fee sdk.Coins) error { + k.Logger(ctx).Debug("Trying to change fees", "payer", payer, "fee", fee) + + params := k.GetParams(ctx) + + if !fee.IsAnyGTE(params.RegisterFee) { + return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided fee is less than min governance set ack fee: %v < %v", fee, params.RegisterFee) + } + + treasury := k.feeBurnerKeeper.GetParams(ctx).TreasuryAddress + treasuryAddress, err := sdk.AccAddressFromBech32(treasury) + if err != nil { + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert treasury, bech32 to AccAddress: %v: %v", treasury, err) + } + + err = k.bankKeeper.SendCoins(ctx, payer, treasuryAddress, fee) + if err != nil { + return errors.Wrapf(err, "failed send fee(%v) from %v to %v", fee, payer, treasury) + } + return nil +} diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index efc3a42d9..4c23bfbef 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -48,6 +48,10 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } + if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { + return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) + } + icaOwner := ictxtypes.NewICAOwnerFromAddress(senderAddr, msg.InterchainAccountId) // FIXME: empty version string doesn't look good diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index c662dd8da..635464474 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -2,6 +2,8 @@ package keeper_test import ( "fmt" + "github.com/neutron-org/neutron/app/params" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" "testing" "time" @@ -21,12 +23,16 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) +const TestTreasury = "neutron1dua3d89szsmd3vwg0y5a2689ah0g4x68ps8vew" + func TestRegisterInterchainAccount(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) wmKeeper := mock_types.NewMockWasmKeeper(ctrl) - icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil) + bankKeeper := mock_types.NewMockBankKeeper(ctrl) + feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil, bankKeeper, feeburnerKeeper) goCtx := sdk.WrapSDKContext(ctx) msgRegAcc := types.MsgRegisterInterchainAccount{ @@ -47,12 +53,38 @@ func TestRegisterInterchainAccount(t *testing.T) { require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) + require.ErrorContains(t, err, "failed to charge fees to pay for RegisterInterchainAccount msg") + require.Nil(t, resp) + + msgRegAcc.RegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) + + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + feeburnerKeeper.EXPECT().GetParams(ctx).Return(feeburnertypes.Params{ + TreasuryAddress: TestTreasury, + }) + bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(fmt.Errorf("failed to register ica")) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.ErrorContains(t, err, "failed to RegisterInterchainAccount") require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + feeburnerKeeper.EXPECT().GetParams(ctx).Return(feeburnertypes.Params{ + TreasuryAddress: TestTreasury, + }) + bankKeeper.EXPECT(). + SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee). + Return(fmt.Errorf("failed to send coins")) + resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) + require.ErrorContains(t, err, "failed to send coins") + require.Nil(t, resp) + + wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + feeburnerKeeper.EXPECT().GetParams(ctx).Return(feeburnertypes.Params{ + TreasuryAddress: TestTreasury, + }) + bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(nil) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.NoError(t, err) @@ -66,7 +98,9 @@ func TestSubmitTx(t *testing.T) { wmKeeper := mock_types.NewMockWasmKeeper(ctrl) refundKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) channelKeeper := mock_types.NewMockChannelKeeper(ctrl) - icak, ctx, _ := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper) + bankKeeper := mock_types.NewMockBankKeeper(ctrl) + feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper, bankKeeper, feeburnerKeeper) goCtx := sdk.WrapSDKContext(ctx) cosmosMsg := codectypes.Any{ diff --git a/x/interchaintxs/keeper/params_test.go b/x/interchaintxs/keeper/params_test.go index 0ecf910fc..0899ac765 100644 --- a/x/interchaintxs/keeper/params_test.go +++ b/x/interchaintxs/keeper/params_test.go @@ -10,7 +10,7 @@ import ( ) func TestGetParams(t *testing.T) { - k, ctx, _ := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil) + k, ctx := testkeeper.InterchainTxsKeeper(t, nil, nil, nil, nil, nil, nil) params := types.DefaultParams() err := k.SetParams(ctx, params) diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 3e57253ed..23648d88d 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -7,6 +7,7 @@ import ( icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -20,7 +21,7 @@ type AccountKeeper interface { // BankKeeper defines the expected interface needed to retrieve account balances. type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins - // Methods imported from bank should be defined here + SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error } type WasmKeeper interface { @@ -47,3 +48,7 @@ type ChannelKeeper interface { GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) GetConnection(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error) } + +type FeeBurnerKeeper interface { + GetParams(ctx sdk.Context) feeburnertypes.Params +} diff --git a/x/interchaintxs/types/params.go b/x/interchaintxs/types/params.go index c9216156e..7a9f54638 100644 --- a/x/interchaintxs/types/params.go +++ b/x/interchaintxs/types/params.go @@ -2,8 +2,10 @@ package types import ( "fmt" - + sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/neutron-org/neutron/app/params" + "gopkg.in/yaml.v2" ) @@ -12,29 +14,20 @@ var _ paramtypes.ParamSet = (*Params)(nil) var ( KeyMsgSubmitTxMaxMessages = []byte("MsgSubmitTxMaxMessages") DefaultMsgSubmitTxMaxMessages = uint64(16) + DefaultRegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) ) -// ParamKeyTable the param key table for launch module -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable( - paramtypes.NewParamSetPair( - KeyMsgSubmitTxMaxMessages, - DefaultMsgSubmitTxMaxMessages, - validateMsgSubmitTxMaxMessages, - ), - ) -} - // NewParams creates a new Params instance -func NewParams(msgSubmitTxMaxMessages uint64) Params { +func NewParams(msgSubmitTxMaxMessages uint64, registerFee sdk.Coins) Params { return Params{ MsgSubmitTxMaxMessages: msgSubmitTxMaxMessages, + RegisterFee: registerFee, } } // DefaultParams returns a default set of parameters func DefaultParams() Params { - return NewParams(DefaultMsgSubmitTxMaxMessages) + return NewParams(DefaultMsgSubmitTxMaxMessages, DefaultRegisterFee) } // ParamSetPairs get the params.ParamSet diff --git a/x/interchaintxs/types/params.pb.go b/x/interchaintxs/types/params.pb.go index e43702998..00f396fe7 100644 --- a/x/interchaintxs/types/params.pb.go +++ b/x/interchaintxs/types/params.pb.go @@ -5,6 +5,7 @@ package types import ( fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" io "io" @@ -27,6 +28,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Params struct { // Defines maximum amount of messages to be passed in MsgSubmitTx MsgSubmitTxMaxMessages uint64 `protobuf:"varint,1,opt,name=msg_submit_tx_max_messages,json=msgSubmitTxMaxMessages,proto3" json:"msg_submit_tx_max_messages,omitempty"` + // Defines a minimum fee required to register interchain account + RegisterFee []types.Coin `protobuf:"bytes,2,rep,name=register_fee,json=registerFee,proto3" json:"register_fee"` } func (m *Params) Reset() { *m = Params{} } @@ -68,6 +71,13 @@ func (m *Params) GetMsgSubmitTxMaxMessages() uint64 { return 0 } +func (m *Params) GetRegisterFee() []types.Coin { + if m != nil { + return m.RegisterFee + } + return nil +} + func init() { proto.RegisterType((*Params)(nil), "neutron.interchaintxs.Params") } @@ -77,21 +87,25 @@ func init() { } var fileDescriptor_52b0ced89d3fa9c6 = []byte{ - // 211 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2d, 0x2d, - 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, - 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x12, 0x85, 0x2a, 0xd3, 0x43, 0x51, 0x26, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, - 0xa1, 0x0f, 0x62, 0x41, 0x14, 0x2b, 0x79, 0x71, 0xb1, 0x05, 0x80, 0x35, 0x0b, 0x59, 0x71, 0x49, - 0xe5, 0x16, 0xa7, 0xc7, 0x17, 0x97, 0x26, 0xe5, 0x66, 0x96, 0xc4, 0x97, 0x54, 0xc4, 0xe7, 0x26, - 0x56, 0xc4, 0xe7, 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x16, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0xb0, - 0x04, 0x89, 0xe5, 0x16, 0xa7, 0x07, 0x83, 0x15, 0x84, 0x54, 0xf8, 0x26, 0x56, 0xf8, 0x42, 0x65, - 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x3b, 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, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, - 0xeb, 0x74, 0xf3, 0x8b, 0xd2, 0x61, 0x6c, 0xfd, 0x0a, 0x34, 0x2f, 0x95, 0x54, 0x16, 0xa4, 0x16, - 0x27, 0xb1, 0x81, 0x9d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, 0xb1, 0xdd, 0xe6, 0xf8, - 0x00, 0x00, 0x00, + // 285 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x31, 0x4b, 0x03, 0x31, + 0x18, 0x86, 0x2f, 0x5a, 0x3a, 0x5c, 0x9d, 0x8a, 0x4a, 0xed, 0x90, 0x16, 0x41, 0xe8, 0x62, 0x42, + 0xd5, 0xa9, 0x63, 0x05, 0xb7, 0x8a, 0x54, 0x27, 0x97, 0x23, 0x77, 0x7c, 0xa6, 0x19, 0x92, 0x1c, + 0xf9, 0x72, 0x25, 0xfe, 0x09, 0x71, 0x74, 0xf4, 0xe7, 0x74, 0xec, 0xe8, 0x24, 0x72, 0xf7, 0x47, + 0xa4, 0x77, 0xd7, 0x41, 0xb7, 0x17, 0xde, 0x27, 0x79, 0xf8, 0xde, 0xf8, 0xc2, 0x40, 0xe1, 0x9d, + 0x35, 0x5c, 0x19, 0x0f, 0x2e, 0x5b, 0x09, 0x65, 0x7c, 0x40, 0xbe, 0x9e, 0xf2, 0x5c, 0x38, 0xa1, + 0x91, 0xe5, 0xce, 0x7a, 0xdb, 0x3f, 0x69, 0x31, 0xf6, 0x07, 0x1b, 0x1e, 0x4b, 0x2b, 0x6d, 0x4d, + 0xf0, 0x5d, 0x6a, 0xe0, 0x21, 0xcd, 0x2c, 0x6a, 0x8b, 0x3c, 0x15, 0x08, 0x7c, 0x3d, 0x4d, 0xc1, + 0x8b, 0x29, 0xcf, 0xac, 0x32, 0x4d, 0x7f, 0xfe, 0x46, 0xe2, 0xee, 0x43, 0xfd, 0x7b, 0x7f, 0x16, + 0x0f, 0x35, 0xca, 0x04, 0x8b, 0x54, 0x2b, 0x9f, 0xf8, 0x90, 0x68, 0x11, 0x12, 0x0d, 0x88, 0x42, + 0x02, 0x0e, 0xc8, 0x98, 0x4c, 0x3a, 0xcb, 0x53, 0x8d, 0xf2, 0xb1, 0x06, 0x9e, 0xc2, 0x42, 0x84, + 0x45, 0xdb, 0xf6, 0xe7, 0xf1, 0x91, 0x03, 0xa9, 0xd0, 0x83, 0x4b, 0x5e, 0x00, 0x06, 0x07, 0xe3, + 0xc3, 0x49, 0xef, 0xea, 0x8c, 0x35, 0x76, 0xb6, 0xb3, 0xb3, 0xd6, 0xce, 0x6e, 0xad, 0x32, 0xf3, + 0xce, 0xe6, 0x7b, 0x14, 0x2d, 0x7b, 0xfb, 0x47, 0x77, 0x00, 0xb3, 0xce, 0xc7, 0xe7, 0x28, 0x9a, + 0xdf, 0x6f, 0x4a, 0x4a, 0xb6, 0x25, 0x25, 0x3f, 0x25, 0x25, 0xef, 0x15, 0x8d, 0xb6, 0x15, 0x8d, + 0xbe, 0x2a, 0x1a, 0x3d, 0xdf, 0x48, 0xe5, 0x57, 0x45, 0xca, 0x32, 0xab, 0x79, 0x3b, 0xc1, 0xa5, + 0x75, 0x72, 0x9f, 0x79, 0xf8, 0xb7, 0x9b, 0x7f, 0xcd, 0x01, 0xd3, 0x6e, 0x7d, 0xe7, 0xf5, 0x6f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x81, 0x7b, 0xd6, 0x7d, 0x5d, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -114,6 +128,20 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.RegisterFee) > 0 { + for iNdEx := len(m.RegisterFee) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegisterFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } if m.MsgSubmitTxMaxMessages != 0 { i = encodeVarintParams(dAtA, i, uint64(m.MsgSubmitTxMaxMessages)) i-- @@ -142,6 +170,12 @@ func (m *Params) Size() (n int) { if m.MsgSubmitTxMaxMessages != 0 { n += 1 + sovParams(uint64(m.MsgSubmitTxMaxMessages)) } + if len(m.RegisterFee) > 0 { + for _, e := range m.RegisterFee { + l = e.Size() + n += 1 + l + sovParams(uint64(l)) + } + } return n } @@ -199,6 +233,40 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegisterFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RegisterFee = append(m.RegisterFee, types.Coin{}) + if err := m.RegisterFee[len(m.RegisterFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 41bf28b30..80aa5ff45 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -7,11 +7,13 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - types "github.com/cosmos/cosmos-sdk/codec/types" + types1 "github.com/cosmos/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - types1 "github.com/neutron-org/neutron/x/feerefunder/types" + types2 "github.com/neutron-org/neutron/x/feerefunder/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -34,9 +36,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgRegisterInterchainAccount is used to register an account on a remote zone. type MsgRegisterInterchainAccount struct { - FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` - InterchainAccountId string `protobuf:"bytes,3,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty" yaml:"interchain_account_id"` + FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` + InterchainAccountId string `protobuf:"bytes,3,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty" yaml:"interchain_account_id"` + RegisterFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=register_fee,json=registerFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"register_fee"` } func (m *MsgRegisterInterchainAccount) Reset() { *m = MsgRegisterInterchainAccount{} } @@ -117,13 +120,13 @@ type MsgSubmitTx struct { // lido/kava. This allows contracts to have more than one interchain accounts // on remote zone This identifier will be a part of the portID that we'll // claim our capability for. - InterchainAccountId string `protobuf:"bytes,2,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty"` - ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - Msgs []*types.Any `protobuf:"bytes,4,rep,name=msgs,proto3" json:"msgs,omitempty"` - Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` + InterchainAccountId string `protobuf:"bytes,2,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty"` + ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + Msgs []*types1.Any `protobuf:"bytes,4,rep,name=msgs,proto3" json:"msgs,omitempty"` + Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` // timeout in seconds after which the packet times out Timeout uint64 `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"` - Fee types1.Fee `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee"` + Fee types2.Fee `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee"` } func (m *MsgSubmitTx) Reset() { *m = MsgSubmitTx{} } @@ -224,43 +227,48 @@ func init() { func init() { proto.RegisterFile("neutron/interchaintxs/v1/tx.proto", fileDescriptor_50f087790e59c806) } var fileDescriptor_50f087790e59c806 = []byte{ - // 576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbd, 0x6f, 0xda, 0x4e, - 0x18, 0xb6, 0x03, 0xbf, 0x24, 0xbf, 0x23, 0x5d, 0x2e, 0x89, 0x64, 0x10, 0xb5, 0x89, 0xfb, 0x21, - 0x96, 0x9c, 0x1b, 0x5a, 0x75, 0x88, 0xd4, 0x4a, 0x30, 0x54, 0x62, 0xa0, 0xaa, 0xdc, 0x4c, 0x5d, - 0x90, 0xb1, 0x5f, 0x0e, 0x4b, 0xf8, 0x8e, 0xfa, 0xce, 0x11, 0x8c, 0xdd, 0x3a, 0x76, 0xe9, 0x58, - 0x29, 0x7f, 0x4e, 0xc6, 0x8c, 0x9d, 0x50, 0x04, 0x4b, 0xe7, 0xfc, 0x05, 0x95, 0xbf, 0x80, 0xa0, - 0x80, 0xa2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 0x85, 0x78, 0x1a, 0x35, - 0xb9, 0x10, 0xe5, 0xa5, 0xb6, 0x17, 0xab, 0x71, 0x07, 0x0e, 0x63, 0x30, 0xcc, 0x6c, 0xc9, 0xd3, - 0xc6, 0xb7, 0x1d, 0x54, 0xe8, 0x08, 0x8a, 0x7f, 0xaa, 0xa8, 0xbc, 0x79, 0x03, 0xdf, 0x92, 0x4d, - 0x5f, 0x17, 0xd9, 0xf6, 0xae, 0x95, 0xf7, 0xff, 0x76, 0x6e, 0xb1, 0x0f, 0x0a, 0xee, 0xa1, 0xfd, - 0xc5, 0x36, 0xbc, 0xd8, 0xca, 0x96, 0xc3, 0x2a, 0xa7, 0x8f, 0x82, 0x2d, 0xef, 0x68, 0x7d, 0xbc, - 0x9e, 0xe9, 0xea, 0xcd, 0x4c, 0x57, 0x6f, 0x67, 0xba, 0xfa, 0x63, 0xae, 0x2b, 0x37, 0x73, 0x5d, - 0xf9, 0x3d, 0xd7, 0x95, 0x2f, 0x6f, 0xa8, 0x2f, 0x07, 0x51, 0x8f, 0xb8, 0x3c, 0xb0, 0x32, 0xd2, - 0x53, 0x1e, 0xd2, 0x3c, 0xb6, 0xc6, 0x6b, 0x3f, 0x24, 0x39, 0x19, 0x81, 0xe8, 0xed, 0x26, 0x3b, - 0xf2, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x30, 0x09, 0xc8, 0x02, 0xb6, 0x04, 0x00, 0x00, + // 645 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbf, 0x4f, 0xdb, 0x40, + 0x14, 0xb6, 0x93, 0x14, 0xe8, 0x85, 0x2e, 0x06, 0x24, 0x27, 0xa2, 0x76, 0x48, 0x7f, 0xc8, 0x0b, + 0x67, 0x92, 0x56, 0x1d, 0x90, 0x5a, 0x89, 0x54, 0x42, 0xca, 0x40, 0x55, 0xb9, 0x4c, 0x5d, 0x22, + 0xff, 0x78, 0x71, 0xac, 0xe2, 0xbb, 0xd4, 0x77, 0x46, 0xc9, 0xd8, 0xad, 0x63, 0x97, 0x8e, 0x95, + 0x98, 0xfb, 0x97, 0x30, 0x32, 0x76, 0xa2, 0x15, 0x2c, 0x9d, 0xf9, 0x0b, 0xaa, 0x3b, 0x9f, 0x21, + 0x44, 0x80, 0x50, 0x27, 0xdf, 0x7b, 0xef, 0x7b, 0xef, 0xdd, 0xfb, 0xde, 0x77, 0x46, 0x1b, 0x04, + 0x72, 0x9e, 0x51, 0xe2, 0x26, 0x84, 0x43, 0x16, 0x8e, 0xfc, 0x84, 0xf0, 0x09, 0x73, 0x0f, 0x3b, + 0x2e, 0x9f, 0xe0, 0x71, 0x46, 0x39, 0x35, 0x4c, 0x05, 0xc1, 0xd7, 0x20, 0xf8, 0xb0, 0xd3, 0x6c, + 0x84, 0x94, 0xa5, 0x94, 0x0d, 0x24, 0xce, 0x2d, 0x8c, 0x22, 0xa9, 0x69, 0x15, 0x96, 0x1b, 0xf8, + 0x0c, 0xdc, 0xc3, 0x4e, 0x00, 0xdc, 0xef, 0xb8, 0x21, 0x4d, 0x88, 0x8a, 0xaf, 0xc6, 0x34, 0xa6, + 0x45, 0x9e, 0x38, 0x29, 0xef, 0x5a, 0x4c, 0x69, 0x7c, 0x00, 0xae, 0x3f, 0x4e, 0xdc, 0x11, 0xe7, + 0x63, 0xe5, 0x5e, 0x9f, 0x71, 0xfb, 0x84, 0x50, 0xee, 0xf3, 0x84, 0x92, 0xb2, 0x55, 0x43, 0x45, + 0xa5, 0x15, 0xe4, 0x43, 0xd7, 0x27, 0x53, 0x15, 0x7a, 0x5c, 0x4e, 0x37, 0x04, 0xc8, 0x60, 0x98, + 0x93, 0x08, 0x32, 0x71, 0x2e, 0xc2, 0xed, 0x93, 0x0a, 0x5a, 0xdf, 0x63, 0xb1, 0x07, 0x71, 0xc2, + 0x38, 0x64, 0xfd, 0xcb, 0xf9, 0x76, 0xc2, 0x90, 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, 0x73, 0x66, 0xe9, 0xdf, 0xce, 0x2d, 0xed, 0xe4, 0xdc, 0xd2, 0x7e, 0x9d, 0x5b, + 0xda, 0xc7, 0x97, 0x33, 0xc2, 0x57, 0x45, 0x37, 0x69, 0x16, 0x97, 0x67, 0x77, 0x32, 0xf7, 0x83, + 0x94, 0x4f, 0x21, 0x58, 0x90, 0x1a, 0x79, 0xf1, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x12, 0xe8, + 0x47, 0x46, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -399,6 +407,20 @@ func (m *MsgRegisterInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, e _ = i var l int _ = l + if len(m.RegisterFee) > 0 { + for iNdEx := len(m.RegisterFee) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegisterFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } if len(m.InterchainAccountId) > 0 { i -= len(m.InterchainAccountId) copy(dAtA[i:], m.InterchainAccountId) @@ -590,6 +612,12 @@ func (m *MsgRegisterInterchainAccount) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + if len(m.RegisterFee) > 0 { + for _, e := range m.RegisterFee { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } return n } @@ -785,6 +813,40 @@ func (m *MsgRegisterInterchainAccount) Unmarshal(dAtA []byte) error { } m.InterchainAccountId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegisterFee", 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 + } + m.RegisterFee = append(m.RegisterFee, types.Coin{}) + if err := m.RegisterFee[len(m.RegisterFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1010,7 +1072,7 @@ func (m *MsgSubmitTx) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Msgs = append(m.Msgs, &types.Any{}) + m.Msgs = append(m.Msgs, &types1.Any{}) if err := m.Msgs[len(m.Msgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } From 4499f5af31ed1b63cadcdf1e82171fe33e9a75ed Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 15 Sep 2023 13:45:11 +0400 Subject: [PATCH 123/307] set hooks --- app/app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/app.go b/app/app.go index ddee72c45..efb12b324 100644 --- a/app/app.go +++ b/app/app.go @@ -580,6 +580,11 @@ func New( ) app.TokenFactoryKeeper = &tokenFactoryKeeper + app.BankKeeper.BaseSendKeeper = *app.BankKeeper.BaseSendKeeper.SetHooks( + banktypes.NewMultiBankHooks( + app.TokenFactoryKeeper.Hooks(), + )) + app.BuilderKeeper = builderkeeper.NewKeeperWithRewardsAddressProvider( appCodec, keys[buildertypes.StoreKey], From 70c599554f42beac36f4b49f6b8c167c82349699 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 15 Sep 2023 16:49:36 +0300 Subject: [PATCH 124/307] review fixes: extra tests, removed commented/dead code --- Makefile | 2 +- neutronutils/errors/errors.go | 21 --- neutronutils/utils.go | 11 -- .../interchaintxs/keeper/sudo_middleware.go | 27 ++++ .../contractmanager/types/expected_keepers.go | 50 ++++++ x/contractmanager/ibc_middleware.go | 35 +++- x/contractmanager/ibc_middleware_test.go | 153 ++++++++---------- x/contractmanager/types/expected_keepers.go | 5 + x/interchaintxs/handler.go | 34 ---- x/interchaintxs/keeper/ibc_handlers_test.go | 53 ------ 10 files changed, 182 insertions(+), 209 deletions(-) delete mode 100644 neutronutils/errors/errors.go delete mode 100644 neutronutils/utils.go create mode 100644 testutil/interchaintxs/keeper/sudo_middleware.go delete mode 100644 x/interchaintxs/handler.go diff --git a/Makefile b/Makefile index 1bdcceca1..6af490db8 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ build-static-linux-amd64: go.sum $(BUILDDIR)/ $(DOCKER) cp neutronbinary:/bin/neutrond $(BUILDDIR)/neutrond-linux-amd64 $(DOCKER) rm -f neutronbinary -install-test-binary: go.sum +install-test-binary: check_version go.sum go install -mod=readonly $(BUILD_FLAGS_TEST_BINARY) ./cmd/neutrond ######################################## diff --git a/neutronutils/errors/errors.go b/neutronutils/errors/errors.go deleted file mode 100644 index 9dd7574d9..000000000 --- a/neutronutils/errors/errors.go +++ /dev/null @@ -1,21 +0,0 @@ -package errors - -import ( - "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// OutOfGasRecovery converts `out of gas` panic into an error -// leaving unprocessed any other kinds of panics -func OutOfGasRecovery( - gasMeter sdk.GasMeter, - err *error, -) { - if r := recover(); r != nil { - _, ok := r.(sdk.ErrorOutOfGas) - if !ok || !gasMeter.IsOutOfGas() { - panic(r) - } - *err = errors.Wrapf(errors.ErrPanic, "%v", r) - } -} diff --git a/neutronutils/utils.go b/neutronutils/utils.go deleted file mode 100644 index 2308c2a0f..000000000 --- a/neutronutils/utils.go +++ /dev/null @@ -1,11 +0,0 @@ -package neutronutils - -import sdk "github.com/cosmos/cosmos-sdk/types" - -// CreateCachedContext creates a cached context with a limited gas meter. -func CreateCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func()) { - cacheCtx, writeFn := ctx.CacheContext() - gasMeter := sdk.NewGasMeter(gasLimit) - cacheCtx = cacheCtx.WithGasMeter(gasMeter) - return cacheCtx, writeFn -} diff --git a/testutil/interchaintxs/keeper/sudo_middleware.go b/testutil/interchaintxs/keeper/sudo_middleware.go new file mode 100644 index 000000000..5d586f342 --- /dev/null +++ b/testutil/interchaintxs/keeper/sudo_middleware.go @@ -0,0 +1,27 @@ +package keeper + +import ( + tmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cosmos/cosmos-sdk/store" + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/contractmanager" + "github.com/neutron-org/neutron/x/contractmanager/types" + "github.com/stretchr/testify/require" + "testing" +) + +func NewSudoLimitWrapper(t testing.TB, cmKeeper types.ContractManagerKeeper, wasmKeeper types.WasmKeeper) (types.WasmKeeper, sdk.Context, *storetypes.KVStoreKey) { + storeKey := sdk.NewKVStoreKey(types.StoreKey) + db := tmdb.NewMemDB() + stateStore := store.NewCommitMultiStore(db) + stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) + require.NoError(t, stateStore.LoadLatestVersion()) + + limitWrapper := contractmanager.NewSudoLimitWrapper(cmKeeper, wasmKeeper) + ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) + + return limitWrapper, ctx, storeKey +} diff --git a/testutil/mocks/contractmanager/types/expected_keepers.go b/testutil/mocks/contractmanager/types/expected_keepers.go index 463ef15c4..d27f64e5f 100644 --- a/testutil/mocks/contractmanager/types/expected_keepers.go +++ b/testutil/mocks/contractmanager/types/expected_keepers.go @@ -9,6 +9,7 @@ import ( types "github.com/cosmos/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" + types0 "github.com/neutron-org/neutron/x/contractmanager/types" ) // MockWasmKeeper is a mock of WasmKeeper interface. @@ -62,3 +63,52 @@ func (mr *MockWasmKeeperMockRecorder) Sudo(ctx, contractAddress, msg interface{} mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sudo", reflect.TypeOf((*MockWasmKeeper)(nil).Sudo), ctx, contractAddress, msg) } + +// MockContractManagerKeeper is a mock of ContractManagerKeeper interface. +type MockContractManagerKeeper struct { + ctrl *gomock.Controller + recorder *MockContractManagerKeeperMockRecorder +} + +// MockContractManagerKeeperMockRecorder is the mock recorder for MockContractManagerKeeper. +type MockContractManagerKeeperMockRecorder struct { + mock *MockContractManagerKeeper +} + +// NewMockContractManagerKeeper creates a new mock instance. +func NewMockContractManagerKeeper(ctrl *gomock.Controller) *MockContractManagerKeeper { + mock := &MockContractManagerKeeper{ctrl: ctrl} + mock.recorder = &MockContractManagerKeeperMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecorder { + return m.recorder +} + +// AddContractFailure mocks base method. +func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, address string, sudoPayload []byte) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "AddContractFailure", ctx, address, sudoPayload) +} + +// AddContractFailure indicates an expected call of AddContractFailure. +func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, address, sudoPayload interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, address, sudoPayload) +} + +// GetParams mocks base method. +func (m *MockContractManagerKeeper) GetParams(ctx types.Context) types0.Params { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetParams", ctx) + ret0, _ := ret[0].(types0.Params) + return ret0 +} + +// GetParams indicates an expected call of GetParams. +func (mr *MockContractManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockContractManagerKeeper)(nil).GetParams), ctx) +} diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go index 841897459..739de0860 100644 --- a/x/contractmanager/ibc_middleware.go +++ b/x/contractmanager/ibc_middleware.go @@ -1,22 +1,20 @@ package contractmanager import ( + "cosmossdk.io/errors" "fmt" "github.com/cometbft/cometbft/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/neutronutils" - neutronerrors "github.com/neutron-org/neutron/neutronutils/errors" - "github.com/neutron-org/neutron/x/contractmanager/keeper" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" ) type SudoLimitWrapper struct { - contractManager keeper.Keeper + contractManager contractmanagertypes.ContractManagerKeeper contractmanagertypes.WasmKeeper } // NewSudoLimitWrapper suppresses an error from a Sudo contract handler and saves it to a store -func NewSudoLimitWrapper(contractManager keeper.Keeper, sudoKeeper contractmanagertypes.WasmKeeper) contractmanagertypes.WasmKeeper { +func NewSudoLimitWrapper(contractManager contractmanagertypes.ContractManagerKeeper, sudoKeeper contractmanagertypes.WasmKeeper) contractmanagertypes.WasmKeeper { return SudoLimitWrapper{ contractManager, sudoKeeper, @@ -27,9 +25,9 @@ func NewSudoLimitWrapper(contractManager keeper.Keeper, sudoKeeper contractmanag // in case of `out of gas` panic it converts the panic into an error and stops `out of gas` panic propagation // if error happens during the Sudo call, we store the data that raised the error, and return the error func (k SudoLimitWrapper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) (resp []byte, err error) { - cacheCtx, writeFn := neutronutils.CreateCachedContext(ctx, k.contractManager.GetParams(ctx).SudoCallGasLimit) + cacheCtx, writeFn := createCachedContext(ctx, k.contractManager.GetParams(ctx).SudoCallGasLimit) func() { - defer neutronerrors.OutOfGasRecovery(cacheCtx.GasMeter(), &err) + defer outOfGasRecovery(cacheCtx.GasMeter(), &err) // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events resp, err = k.WasmKeeper.Sudo(cacheCtx, contractAddress, msg) @@ -49,3 +47,26 @@ func (k SudoLimitWrapper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, func (k SudoLimitWrapper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", contractmanagertypes.ModuleName)) } + +// outOfGasRecovery converts `out of gas` panic into an error +// leaving unprocessed any other kinds of panics +func outOfGasRecovery( + gasMeter sdk.GasMeter, + err *error, +) { + if r := recover(); r != nil { + _, ok := r.(sdk.ErrorOutOfGas) + if !ok || !gasMeter.IsOutOfGas() { + panic(r) + } + *err = errors.Wrapf(errors.ErrPanic, "%v", r) + } +} + +// createCachedContext creates a cached context with a limited gas meter. +func createCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func()) { + cacheCtx, writeFn := ctx.CacheContext() + gasMeter := sdk.NewGasMeter(gasLimit) + cacheCtx = cacheCtx.WithGasMeter(gasMeter) + return cacheCtx, writeFn +} diff --git a/x/contractmanager/ibc_middleware_test.go b/x/contractmanager/ibc_middleware_test.go index b1b964fbf..0815be992 100644 --- a/x/contractmanager/ibc_middleware_test.go +++ b/x/contractmanager/ibc_middleware_test.go @@ -1,83 +1,72 @@ -package contractmanager +package contractmanager_test -// -//import ( -// tmdb "github.com/cometbft/cometbft-db" -// "github.com/cometbft/cometbft/libs/log" -// tmproto "github.com/cometbft/cometbft/proto/tendermint/types" -// "github.com/cosmos/cosmos-sdk/store" -// storetypes "github.com/cosmos/cosmos-sdk/store/types" -// sdk "github.com/cosmos/cosmos-sdk/types" -// icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" -// channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" -// "github.com/golang/mock/gomock" -// mock_types "github.com/neutron-org/neutron/testutil/mocks/interchaintxs/types" -// "github.com/neutron-org/neutron/x/contractmanager/types" -// "github.com/stretchr/testify/require" -// "testing" -//) -// -//var ( -// ShouldNotBeWrittenKey = []byte("shouldnotkey") -// ShouldNotBeWritten = []byte("should not be written") -// ShouldBeWritten = []byte("should be written") -// TestOwnerAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh" -//) -// -//func ShouldBeWrittenKey(suffix string) []byte { -// return append([]byte("shouldkey"), []byte(suffix)...) -//} -// -//func NewSudoLimitMiddleware(t testing.TB, cm types.SudoWrapper) (SudoLimitWrapper, sdk.Context, *storetypes.KVStoreKey) { -// storeKey := sdk.NewKVStoreKey(types.StoreKey) -// -// db := tmdb.NewMemDB() -// stateStore := store.NewCommitMultiStore(db) -// stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) -// require.NoError(t, stateStore.LoadLatestVersion()) -// -// k := SudoLimitWrapper{SudoWrapper: cm} -// -// ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) -// -// return k, ctx, storeKey -//} -// -//func TestSudo(t *testing.T) { -// ctrl := gomock.NewController(t) -// defer ctrl.Finish() -// cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) -// middleware, infCtx, storeKey := NewSudoLimitMiddleware(t, cmKeeper) -// st := infCtx.KVStore(storeKey) -// -// p := channeltypes.Packet{ -// Sequence: 100, -// SourcePort: icatypes.ControllerPortPrefix + TestOwnerAddress + ".ica0", -// SourceChannel: "channel-0", -// } -// contractAddress := sdk.AccAddress{} -// errACK := channeltypes.Acknowledgement{ -// Response: &channeltypes.Acknowledgement_Error{ -// Error: "error", -// }, -// } -// //errAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&errACK) -// //require.NoError(t, err) -// //resACK := channeltypes.Acknowledgement{ -// // Response: &channeltypes.Acknowledgement_Result{Result: []byte("Result")}, -// //} -// //resAckData, err := channeltypes.SubModuleCdc.MarshalJSON(&resACK) -// //require.NoError(t, err) -// -// // success during SudoError -// ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) -// cmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, errAck channeltypes.Acknowledgement) { -// st := cachedCtx.KVStore(storeKey) -// st.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) -// }).Return(nil, nil) -// cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) -// err := middleware.Sudo(ctx, contractAddress, p, &errACK) -// require.NoError(t, err) -// require.Equal(t, ShouldBeWritten, st.Get(ShouldBeWrittenKey("sudoerror"))) -// require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) -//} +import ( + "fmt" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/golang/mock/gomock" + test_keeper "github.com/neutron-org/neutron/testutil/interchaintxs/keeper" + mock_types "github.com/neutron-org/neutron/testutil/mocks/contractmanager/types" + "github.com/neutron-org/neutron/x/contractmanager/types" + "github.com/stretchr/testify/require" + "testing" +) + +var ( + ShouldNotBeWrittenKey = []byte("shouldnotkey") + ShouldNotBeWritten = []byte("should not be written") + ShouldBeWritten = []byte("should be written") + TestOwnerAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh" +) + +func ShouldBeWrittenKey(suffix string) []byte { + return append([]byte("shouldkey"), []byte(suffix)...) +} + +func TestSudo(t *testing.T) { + ctrl := gomock.NewController(t) + defer ctrl.Finish() + cmKeeper := mock_types.NewMockContractManagerKeeper(ctrl) + wmKeeper := mock_types.NewMockWasmKeeper(ctrl) + middleware, infCtx, storeKey := test_keeper.NewSudoLimitWrapper(t, cmKeeper, wmKeeper) + st := infCtx.KVStore(storeKey) + + // at this point the payload struct does not matter + msg := []byte("sudo_payload") + contractAddress := sdk.AccAddress{} + + // success during Sudo + ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) + wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { + st := cachedCtx.KVStore(storeKey) + st.Set(ShouldBeWrittenKey("sudo"), ShouldBeWritten) + }).Return(nil, nil) + _, err := middleware.Sudo(ctx, contractAddress, msg) + require.NoError(t, err) + require.Equal(t, ShouldBeWritten, st.Get(ShouldBeWrittenKey("sudo"))) + + // error during Sudo + ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) + cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg) + wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { + st := cachedCtx.KVStore(storeKey) + st.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + }).Return(nil, fmt.Errorf("sudo error")) + _, err = middleware.Sudo(ctx, contractAddress, msg) + require.Error(t, err) + require.Nil(t, st.Get(ShouldNotBeWrittenKey)) + + // ou of gas during Sudo + ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) + cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) + cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg) + wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { + st := cachedCtx.KVStore(storeKey) + st.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) + cachedCtx.GasMeter().ConsumeGas(10001, "heavy calculations") + }) + _, err = middleware.Sudo(ctx, contractAddress, msg) + require.ErrorContains(t, err, "{heavy calculations}: panic") + require.Nil(t, st.Get(ShouldNotBeWrittenKey)) +} diff --git a/x/contractmanager/types/expected_keepers.go b/x/contractmanager/types/expected_keepers.go index a30614c63..88db20887 100644 --- a/x/contractmanager/types/expected_keepers.go +++ b/x/contractmanager/types/expected_keepers.go @@ -9,3 +9,8 @@ type WasmKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } + +type ContractManagerKeeper interface { + AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte) + GetParams(ctx sdk.Context) (params Params) +} diff --git a/x/interchaintxs/handler.go b/x/interchaintxs/handler.go deleted file mode 100644 index 30a574948..000000000 --- a/x/interchaintxs/handler.go +++ /dev/null @@ -1,34 +0,0 @@ -package interchaintxs - -import ( - "fmt" - - "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - - "github.com/neutron-org/neutron/x/interchaintxs/keeper" - "github.com/neutron-org/neutron/x/interchaintxs/types" -) - -func NewHandler(k keeper.Keeper) sdk.Handler { - msgServer := keeper.NewMsgServerImpl(k) - - return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { - ctx = ctx.WithEventManager(sdk.NewEventManager()) - - switch msg := msg.(type) { - case *types.MsgRegisterInterchainAccount: - res, err := msgServer.RegisterInterchainAccount(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - case *types.MsgSubmitTx: - res, err := msgServer.SubmitTx(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) - - default: - errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) - return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - } -} diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index 50cc29fd8..c0a8c40b6 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -65,59 +65,6 @@ func TestHandleAcknowledgement(t *testing.T) { wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck).Return(nil, fmt.Errorf("error sudoResponse")) err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) require.NoError(t, err) - - //// success during SudoError - //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //wmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, err string) { - // store := cachedCtx.KVStore(storeKey) - // store.Set(ShouldBeWrittenKey("sudoerror"), ShouldBeWritten) - //}).Return(nil, nil) - //wmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 6000}) - //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - //err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - //require.NoError(t, err) - //require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoerror"))) - //require.Equal(t, uint64(3050), ctx.GasMeter().GasConsumed()) - // - //// out of gas during SudoError - //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //wmKeeper.EXPECT().SudoError(gomock.AssignableToTypeOf(ctx), contractAddress, p, errACK.GetError()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, error string) { - // store := cachedCtx.KVStore(storeKey) - // store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - // cachedCtx.GasMeter().ConsumeGas(7001, "out of gas test") - //}) - //wmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 7000}) - //wmKeeper.EXPECT().AddContractFailure(ctx, &p, contractAddress.String(), types.Ack, &errACK) - //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - //err = icak.HandleAcknowledgement(ctx, p, errAckData, relayerAddress) - //require.NoError(t, err) - //require.Empty(t, store.Get(ShouldNotBeWrittenKey)) - //require.Equal(t, uint64(7000), ctx.GasMeter().GasConsumed()) - // - //// success during SudoResponse - //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //wmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(ctx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - // store := cachedCtx.KVStore(storeKey) - // store.Set(ShouldBeWrittenKey("sudoresponse"), ShouldBeWritten) // consumes 3140 gas, 2000 flat write + 30 every byte of key+value - //}).Return(nil, nil) - //wmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 8000}) - //feeKeeper.EXPECT().DistributeAcknowledgementFee(ctx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - //err = icak.HandleAcknowledgement(ctx, p, resAckData, relayerAddress) - //require.NoError(t, err) - //require.Equal(t, uint64(3140), ctx.GasMeter().GasConsumed()) - //require.Equal(t, ShouldBeWritten, store.Get(ShouldBeWrittenKey("sudoresponse"))) - // - //// not enough gas provided by relayer for SudoCallGasLimit - //ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) - //lowGasCtx := infCtx.WithGasMeter(sdk.NewGasMeter(1000)) - //wmKeeper.EXPECT().SudoResponse(gomock.AssignableToTypeOf(lowGasCtx), contractAddress, p, resACK.GetResult()).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) { - // store := cachedCtx.KVStore(storeKey) - // store.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - // cachedCtx.GasMeter().ConsumeGas(1001, "out of gas test") - //}) - //feeKeeper.EXPECT().DistributeAcknowledgementFee(lowGasCtx, relayerAddress, feetypes.NewPacketID(p.SourcePort, p.SourceChannel, p.Sequence)) - //wmKeeper.EXPECT().GetParams(lowGasCtx).Return(types.Params{SudoCallGasLimit: 9000}) - //require.PanicsWithValue(t, sdk.ErrorOutOfGas{Descriptor: "consume gas from cached context"}, func() { icak.HandleAcknowledgement(lowGasCtx, p, resAckData, relayerAddress) }) //nolint:errcheck // this is a panic test } func TestHandleTimeout(t *testing.T) { From 13b5273f5e4db63522ac9028e8e016a19a68a4bb Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 15 Sep 2023 18:32:27 +0400 Subject: [PATCH 125/307] fix wasm panic --- app/app.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/app.go b/app/app.go index efb12b324..0cc185c38 100644 --- a/app/app.go +++ b/app/app.go @@ -440,7 +440,7 @@ func New( appCodec, keys[crisistypes.StoreKey], invCheckPeriod, - app.BankKeeper, + &app.BankKeeper, authtypes.FeeCollectorName, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) @@ -501,7 +501,7 @@ func New( keys[feeburnertypes.StoreKey], keys[feeburnertypes.MemStoreKey], app.AccountKeeper, - app.BankKeeper, + &app.BankKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) @@ -514,7 +514,7 @@ func New( app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, - app.BankKeeper, + &app.BankKeeper, app.IBCKeeper.ChannelKeeper, ) wasmHooks := ibchooks.NewWasmHooks(nil, sdk.GetConfig().GetBech32AccountAddrPrefix()) // The contract keeper needs to be set later @@ -533,7 +533,7 @@ func New( app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper, app.AccountKeeper, - app.BankKeeper, + &app.BankKeeper, scopedTransferKeeper, app.FeeKeeper, app.ContractManagerKeeper, @@ -560,7 +560,7 @@ func New( app.IBCKeeper.ConnectionKeeper, app.IBCKeeper.ClientKeeper, app.SlashingKeeper, - app.BankKeeper, + &app.BankKeeper, app.AccountKeeper, app.TransferKeeper.Keeper, // we cant use our transfer wrapper type here because of interface incompatibility, it looks safe to use underlying transfer keeper. // Since the keeper is only used to send reward to provider chain @@ -575,7 +575,7 @@ func New( app.keys[tokenfactorytypes.StoreKey], app.AccountKeeper, app.BankKeeper.WithMintCoinsRestriction(tokenfactorytypes.NewTokenFactoryDenomMintCoinsRestriction()), - app.WasmKeeper, + &app.WasmKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) app.TokenFactoryKeeper = &tokenFactoryKeeper @@ -589,7 +589,7 @@ func New( appCodec, keys[buildertypes.StoreKey], app.AccountKeeper, - app.BankKeeper, + &app.BankKeeper, // 25% of rewards should be sent to the redistribute address rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName)), authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), @@ -631,7 +631,7 @@ func New( keys[interchainqueriesmoduletypes.StoreKey], keys[interchainqueriesmoduletypes.MemStoreKey], app.IBCKeeper, - app.BankKeeper, + &app.BankKeeper, app.ContractManagerKeeper, interchainqueriesmodulekeeper.Verifier{}, interchainqueriesmodulekeeper.TransactionVerifier{}, @@ -659,7 +659,7 @@ func New( appCodec, keys[wasm.StoreKey], app.AccountKeeper, - app.BankKeeper, + &app.BankKeeper, nil, nil, app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 feerefunder From 0c26b8e4febf36517626a221dc267fcce12e09e5 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 15 Sep 2023 19:20:47 +0300 Subject: [PATCH 126/307] comment typo --- x/contractmanager/types/sudo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/contractmanager/types/sudo.go b/x/contractmanager/types/sudo.go index a5745fcbb..8951b7c7d 100644 --- a/x/contractmanager/types/sudo.go +++ b/x/contractmanager/types/sudo.go @@ -24,7 +24,7 @@ type MessageKVQueryResult struct { } // MessageSudoCallback is passed to a contract's sudo() entrypoint when an interchain -// transaction failed with a timeout. +// transaction failed. type MessageSudoCallback struct { Response *ResponseSudoPayload `json:"response,omitempty"` Error *ErrorSudoPayload `json:"error,omitempty"` From c235d069182b1f78c29160ccf14e09f73b254fc0 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Mon, 18 Sep 2023 17:36:11 +0300 Subject: [PATCH 127/307] replace DenomCreationFee nil check with empty check --- x/tokenfactory/keeper/createdenom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index 92b7533cc..a57a44af8 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -81,13 +81,13 @@ func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err e // account to community pool // MODIFIED: if DenomCreationFee is non-zero, transfer the tokens from the creator // account to feeCollectorAddr - if params.DenomCreationFee != nil { + if len(params.DenomCreationFee) != 0 { accAddr, err := sdk.AccAddressFromBech32(creatorAddr) if err != nil { return err } // Instead of funding community pool we send funds to fee collector addr - //if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { + // if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil { // return err //} From 3dfb8deaed971c257788d6843003bced535184a2 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 19 Sep 2023 11:26:22 +0300 Subject: [PATCH 128/307] review fixes --- x/contractmanager/keeper/failure.go | 2 +- x/contractmanager/types/module.go | 9 --------- x/contractmanager/types/sudo.go | 2 +- x/interchaintxs/keeper/keeper.go | 10 +++++----- 4 files changed, 7 insertions(+), 16 deletions(-) delete mode 100644 x/contractmanager/types/module.go diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 038227591..02e653655 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -73,7 +73,7 @@ func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, fa } if _, err := k.wasmKeeper.Sudo(ctx, contractAddr, failure.SudoPayload); err != nil { - return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure ack; failureId = %d; err = %s", failure.Id, err) + return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure; failureId = %d; err = %s", failure.Id, err) } // Cleanup failure since we resubmitted it successfully diff --git a/x/contractmanager/types/module.go b/x/contractmanager/types/module.go deleted file mode 100644 index e7efcf2d9..000000000 --- a/x/contractmanager/types/module.go +++ /dev/null @@ -1,9 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type Sudo interface { - Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) -} diff --git a/x/contractmanager/types/sudo.go b/x/contractmanager/types/sudo.go index 8951b7c7d..0670a1696 100644 --- a/x/contractmanager/types/sudo.go +++ b/x/contractmanager/types/sudo.go @@ -24,7 +24,7 @@ type MessageKVQueryResult struct { } // MessageSudoCallback is passed to a contract's sudo() entrypoint when an interchain -// transaction failed. +// transaction ended up with Success/Error or timed out. type MessageSudoCallback struct { Response *ResponseSudoPayload `json:"response,omitempty"` Error *ErrorSudoPayload `json:"error,omitempty"` diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index e27d294d2..0cf14c884 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -40,7 +40,7 @@ func NewKeeper( memKey storetypes.StoreKey, channelKeeper types.ChannelKeeper, icaControllerKeeper types.ICAControllerKeeper, - contractManagerKeeper types.WasmKeeper, + sudoKeeper types.WasmKeeper, feeKeeper types.FeeRefunderKeeper, bankKeeper types.BankKeeper, feeBurnerKeeper types.FeeBurnerKeeper, @@ -51,7 +51,7 @@ func NewKeeper( memKey: memKey, channelKeeper: channelKeeper, icaControllerKeeper: icaControllerKeeper, - sudoKeeper: contractManagerKeeper, + sudoKeeper: sudoKeeper, feeKeeper: feeKeeper, bankKeeper: bankKeeper, feeBurnerKeeper: feeBurnerKeeper, @@ -68,18 +68,18 @@ func (k Keeper) ChargeFee(ctx sdk.Context, payer sdk.AccAddress, fee sdk.Coins) params := k.GetParams(ctx) if !fee.IsAnyGTE(params.RegisterFee) { - return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided fee is less than min governance set ack fee: %v < %v", fee, params.RegisterFee) + return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided fee is less than min governance set ack fee: %s < %s", fee, params.RegisterFee) } treasury := k.feeBurnerKeeper.GetParams(ctx).TreasuryAddress treasuryAddress, err := sdk.AccAddressFromBech32(treasury) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert treasury, bech32 to AccAddress: %v: %v", treasury, err) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert treasury, bech32 to AccAddress: %s: %w", treasury, err) } err = k.bankKeeper.SendCoins(ctx, payer, treasuryAddress, fee) if err != nil { - return errors.Wrapf(err, "failed send fee(%v) from %v to %v", fee, payer, treasury) + return errors.Wrapf(err, "failed send fee(%s) from %s to %s", fee, payer, treasury) } return nil } From c10286b50f26319044e5d4016d0da996d18c8f58 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 19 Sep 2023 11:53:07 +0300 Subject: [PATCH 129/307] whitelist interchain account query --- wasmbinding/stargate_allowlist.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index e054f0008..844dc06a2 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -4,9 +4,11 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" @@ -16,9 +18,10 @@ import ( func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { return wasmkeeper.AcceptedStargateQueries{ // ibc - "/ibc.core.client.v1.Query/ClientState": &ibcclienttypes.QueryClientStateResponse{}, - "/ibc.core.client.v1.Query/ConsensusState": &ibcclienttypes.QueryConsensusStateResponse{}, - "/ibc.core.connection.v1.Query/Connection": &ibcconnectiontypes.QueryConnectionResponse{}, + "/ibc.core.client.v1.Query/ClientState": &ibcclienttypes.QueryClientStateResponse{}, + "/ibc.core.client.v1.Query/ConsensusState": &ibcclienttypes.QueryConsensusStateResponse{}, + "/ibc.core.connection.v1.Query/Connection": &ibcconnectiontypes.QueryConnectionResponse{}, + "/ibc.applications.interchain_accounts.controller.v1.Query/InterchainAccount": &types.QueryInterchainAccountResponse{}, // token factory "/osmosis.tokenfactory.v1beta1.Query/Params": &tokenfactorytypes.QueryParamsResponse{}, From 8445ca860905ed818000bb0c9173d59ea8fcc69d Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 19 Sep 2023 11:54:57 +0300 Subject: [PATCH 130/307] refactor --- wasmbinding/stargate_allowlist.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 844dc06a2..f0dc72bb9 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -18,16 +18,18 @@ import ( func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { return wasmkeeper.AcceptedStargateQueries{ // ibc - "/ibc.core.client.v1.Query/ClientState": &ibcclienttypes.QueryClientStateResponse{}, - "/ibc.core.client.v1.Query/ConsensusState": &ibcclienttypes.QueryConsensusStateResponse{}, - "/ibc.core.connection.v1.Query/Connection": &ibcconnectiontypes.QueryConnectionResponse{}, - "/ibc.applications.interchain_accounts.controller.v1.Query/InterchainAccount": &types.QueryInterchainAccountResponse{}, + "/ibc.core.client.v1.Query/ClientState": &ibcclienttypes.QueryClientStateResponse{}, + "/ibc.core.client.v1.Query/ConsensusState": &ibcclienttypes.QueryConsensusStateResponse{}, + "/ibc.core.connection.v1.Query/Connection": &ibcconnectiontypes.QueryConnectionResponse{}, // token factory "/osmosis.tokenfactory.v1beta1.Query/Params": &tokenfactorytypes.QueryParamsResponse{}, "/osmosis.tokenfactory.v1beta1.Query/DenomAuthorityMetadata": &tokenfactorytypes.QueryDenomAuthorityMetadataResponse{}, "/osmosis.tokenfactory.v1beta1.Query/DenomsFromCreator": &tokenfactorytypes.QueryDenomsFromCreatorResponse{}, + // interchain accounts + "/ibc.applications.interchain_accounts.controller.v1.Query/InterchainAccount": &types.QueryInterchainAccountResponse{}, + // transfer "/ibc.applications.transfer.v1.Query/DenomTrace": &ibctransfertypes.QueryDenomTraceResponse{}, From 2331798dc85dbaa0353b364f556dd87d48afa351 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 19 Sep 2023 12:16:58 +0300 Subject: [PATCH 131/307] removed unused method --- x/contractmanager/keeper/sudo.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/x/contractmanager/keeper/sudo.go b/x/contractmanager/keeper/sudo.go index 4c5a24402..13a5e9e50 100644 --- a/x/contractmanager/keeper/sudo.go +++ b/x/contractmanager/keeper/sudo.go @@ -53,33 +53,6 @@ func PrepareOpenAckCallbackMessage(details types.OpenAckDetails) ([]byte, error) return m, nil } -func (k Keeper) SudoOnChanOpenAck( - ctx sdk.Context, - contractAddress sdk.AccAddress, - details types.OpenAckDetails, -) ([]byte, error) { - k.Logger(ctx).Debug("SudoOnChanOpenAck", "contractAddress", contractAddress) - - x := types.MessageOnChanOpenAck{} - x.OpenAck = details - m, err := json.Marshal(x) - if err != nil { - k.Logger(ctx).Error("SudoOnChanOpenAck: failed to marshal MessageOnChanOpenAck message", - "error", err, "contract_address", contractAddress) - return nil, fmt.Errorf("failed to marshal MessageOnChanOpenAck: %v", err) - } - k.Logger(ctx).Info("SudoOnChanOpenAck sending request", "data", string(m)) - - resp, err := k.wasmKeeper.Sudo(ctx, contractAddress, m) - if err != nil { - k.Logger(ctx).Debug("SudoOnChanOpenAck: failed to sudo", - "error", err, "contract_address", contractAddress) - return nil, fmt.Errorf("failed to sudo: %v", err) - } - - return resp, nil -} - // SudoTxQueryResult is used to pass a tx query result to the contract that registered the query // to: // 1. check whether the transaction actually satisfies the initial query arguments; From f54c2f00709468218b1e70bfd95aab9ff4385dea Mon Sep 17 00:00:00 2001 From: nhpd Date: Tue, 19 Sep 2023 18:27:22 +0400 Subject: [PATCH 132/307] review fixes --- .../osmosis/tokenfactory/v1beta1/query.proto | 4 +- proto/osmosis/tokenfactory/v1beta1/tx.proto | 4 +- wasmbinding/bindings/msg.go | 2 +- wasmbinding/message_plugin.go | 2 +- wasmbinding/queries.go | 4 +- x/tokenfactory/client/cli/query.go | 4 +- x/tokenfactory/client/cli/tx.go | 2 +- x/tokenfactory/keeper/admins.go | 2 +- x/tokenfactory/keeper/bankactions.go | 2 +- x/tokenfactory/keeper/before_send.go | 14 +- x/tokenfactory/keeper/createdenom.go | 6 +- x/tokenfactory/keeper/grpc_query.go | 4 +- x/tokenfactory/keeper/keeper.go | 1 + x/tokenfactory/keeper/msg_server.go | 10 +- x/tokenfactory/types/codec.go | 2 +- x/tokenfactory/types/constants.go | 4 +- x/tokenfactory/types/denoms.go | 2 +- x/tokenfactory/types/expected_keepers.go | 2 +- x/tokenfactory/types/msgs.go | 12 +- x/tokenfactory/types/params.go | 57 +++++-- x/tokenfactory/types/query.pb.go | 106 ++++++------ x/tokenfactory/types/tx.pb.go | 157 +++++++++--------- 22 files changed, 216 insertions(+), 187 deletions(-) diff --git a/proto/osmosis/tokenfactory/v1beta1/query.proto b/proto/osmosis/tokenfactory/v1beta1/query.proto index 09864e8a1..b278d8805 100644 --- a/proto/osmosis/tokenfactory/v1beta1/query.proto +++ b/proto/osmosis/tokenfactory/v1beta1/query.proto @@ -86,6 +86,6 @@ message QueryBeforeSendHookAddressRequest { // QueryBeforeSendHookAddressResponse defines the response structure for the // DenomBeforeSendHook gRPC query. message QueryBeforeSendHookAddressResponse { - string cosmwasm_address = 1 - [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; + string contract_addr = 1 + [ (gogoproto.moretags) = "yaml:\"contract_addr\"" ]; } diff --git a/proto/osmosis/tokenfactory/v1beta1/tx.proto b/proto/osmosis/tokenfactory/v1beta1/tx.proto index 7f4ce2fb3..43dd79d33 100644 --- a/proto/osmosis/tokenfactory/v1beta1/tx.proto +++ b/proto/osmosis/tokenfactory/v1beta1/tx.proto @@ -103,8 +103,8 @@ message MsgSetBeforeSendHook { string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; - string cosmwasm_address = 3 - [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; + string contract_addr = 3 + [ (gogoproto.moretags) = "yaml:\"contract_addr\"" ]; } // MsgSetBeforeSendHookResponse defines the response structure for an executed diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index fd9ca9236..56b6994de 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -185,7 +185,7 @@ type BurnTokens struct { type SetBeforeSendHook struct { Denom string `json:"denom"` - CosmWasmAddr string `json:"cosm_wasm_addr"` + ContractAddr string `json:"contract_addr"` } // AddSchedule adds new schedule to the cron module diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 5b78a2a5e..8f1858521 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -536,7 +536,7 @@ func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk } func PerformSetBeforeSendHook(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, set *bindings.SetBeforeSendHook) error { - sdkMsg := tokenfactorytypes.NewMsgSetBeforeSendHook(contractAddr.String(), set.Denom, set.CosmWasmAddr) + sdkMsg := tokenfactorytypes.NewMsgSetBeforeSendHook(contractAddr.String(), set.Denom, set.ContractAddr) if err := sdkMsg.ValidateBasic(); err != nil { return err } diff --git a/wasmbinding/queries.go b/wasmbinding/queries.go index 95739bb46..d0cc9ce09 100644 --- a/wasmbinding/queries.go +++ b/wasmbinding/queries.go @@ -97,9 +97,9 @@ func (qp QueryPlugin) GetDenomAdmin(ctx sdk.Context, denom string) (*bindings.De // GetBeforeSendHook is a query to get denom before send hook. func (qp QueryPlugin) GetBeforeSendHook(ctx sdk.Context, denom string) (*bindings.BeforeSendHookResponse, error) { - cosmWasmAddr := qp.tokenFactoryKeeper.GetBeforeSendHook(ctx, denom) + contractAddr := qp.tokenFactoryKeeper.GetBeforeSendHook(ctx, denom) - return &bindings.BeforeSendHookResponse{ContractAddr: cosmWasmAddr}, nil + return &bindings.BeforeSendHookResponse{ContractAddr: contractAddr}, nil } func (qp *QueryPlugin) GetTotalBurnedNeutronsAmount(ctx sdk.Context, _ *bindings.QueryTotalBurnedNeutronsAmountRequest) (*bindings.QueryTotalBurnedNeutronsAmountResponse, error) { diff --git a/x/tokenfactory/client/cli/query.go b/x/tokenfactory/client/cli/query.go index 59a457975..929e72172 100644 --- a/x/tokenfactory/client/cli/query.go +++ b/x/tokenfactory/client/cli/query.go @@ -79,8 +79,8 @@ func GetCmdDenomAuthorityMetadata() *cobra.Command { } res, err := queryClient.DenomAuthorityMetadata(cmd.Context(), &types.QueryDenomAuthorityMetadataRequest{ - Creator: args[1], - Subdenom: args[2], + Creator: denom[1], + Subdenom: denom[2], }) if err != nil { return err diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index ec42a0463..16d15224e 100644 --- a/x/tokenfactory/client/cli/tx.go +++ b/x/tokenfactory/client/cli/tx.go @@ -204,7 +204,7 @@ func NewChangeAdminCmd() *cobra.Command { // NewSetBeforeSendHook broadcast MsgSetBeforeSendHook func NewSetBeforeSendHook() *cobra.Command { cmd := &cobra.Command{ - Use: "set-before-send-hook [denom] [cosm-wasm-addr] [flags]", + Use: "set-before-send-hook [denom] [contract-addr] [flags]", Short: "Sets the before send hook for a factory-created denom. Must have admin authority to do so.", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/x/tokenfactory/keeper/admins.go b/x/tokenfactory/keeper/admins.go index 744662656..243ece8c3 100644 --- a/x/tokenfactory/keeper/admins.go +++ b/x/tokenfactory/keeper/admins.go @@ -37,7 +37,7 @@ func (k Keeper) setAuthorityMetadata(ctx sdk.Context, denom string, metadata typ return nil } -func (k Keeper) setAdmin(ctx sdk.Context, denom string, admin string) error { +func (k Keeper) setAdmin(ctx sdk.Context, denom, admin string) error { metadata, err := k.GetAuthorityMetadata(ctx, denom) if err != nil { return err diff --git a/x/tokenfactory/keeper/bankactions.go b/x/tokenfactory/keeper/bankactions.go index 6cf9309d9..4685334be 100644 --- a/x/tokenfactory/keeper/bankactions.go +++ b/x/tokenfactory/keeper/bankactions.go @@ -51,7 +51,7 @@ func (k Keeper) burnFrom(ctx sdk.Context, amount sdk.Coin, burnFrom string) erro return k.bankKeeper.BurnCoins(ctx, types.ModuleName, sdk.NewCoins(amount)) } -func (k Keeper) forceTransfer(ctx sdk.Context, amount sdk.Coin, fromAddr string, toAddr string) error { +func (k Keeper) forceTransfer(ctx sdk.Context, amount sdk.Coin, fromAddr, toAddr string) error { // verify that denom is an x/tokenfactory denom _, _, err := types.DeconstructDenom(amount.Denom) if err != nil { diff --git a/x/tokenfactory/keeper/before_send.go b/x/tokenfactory/keeper/before_send.go index c8654130a..d746ba3b2 100644 --- a/x/tokenfactory/keeper/before_send.go +++ b/x/tokenfactory/keeper/before_send.go @@ -11,7 +11,7 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" ) -func (k Keeper) setBeforeSendHook(ctx sdk.Context, denom string, cosmwasmAddress string) error { +func (k Keeper) setBeforeSendHook(ctx sdk.Context, denom, contractAddr string) error { // verify that denom is an x/tokenfactory denom _, _, err := types.DeconstructDenom(denom) if err != nil { @@ -21,17 +21,17 @@ func (k Keeper) setBeforeSendHook(ctx sdk.Context, denom string, cosmwasmAddress store := k.GetDenomPrefixStore(ctx, denom) // delete the store for denom prefix store when cosmwasm address is nil - if cosmwasmAddress == "" { + if contractAddr == "" { store.Delete([]byte(types.BeforeSendHookAddressPrefixKey)) return nil } - _, err = sdk.AccAddressFromBech32(cosmwasmAddress) + _, err = sdk.AccAddressFromBech32(contractAddr) if err != nil { return err } - store.Set([]byte(types.BeforeSendHookAddressPrefixKey), []byte(cosmwasmAddress)) + store.Set([]byte(types.BeforeSendHookAddressPrefixKey), []byte(contractAddr)) return nil } @@ -96,9 +96,9 @@ func (k Keeper) callBeforeSendListener(ctx sdk.Context, from, to sdk.AccAddress, }() for _, coin := range amount { - cosmwasmAddress := k.GetBeforeSendHook(ctx, coin.Denom) - if cosmwasmAddress != "" { - cwAddr, err := sdk.AccAddressFromBech32(cosmwasmAddress) + contractAddr := k.GetBeforeSendHook(ctx, coin.Denom) + if contractAddr != "" { + cwAddr, err := sdk.AccAddressFromBech32(contractAddr) if err != nil { return err } diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index a57a44af8..ff84e935c 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -11,7 +11,7 @@ import ( ) // ConvertToBaseToken converts a fee amount in a whitelisted fee token to the base fee token amount -func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error) { +func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr, subdenom string) (newTokenDenom string, err error) { denom, err := k.validateCreateDenom(ctx, creatorAddr, subdenom) if err != nil { return "", err @@ -28,7 +28,7 @@ func (k Keeper) CreateDenom(ctx sdk.Context, creatorAddr string, subdenom string // Runs CreateDenom logic after the charge and all denom validation has been handled. // Made into a second function for genesis initialization. -func (k Keeper) createDenomAfterValidation(ctx sdk.Context, creatorAddr string, denom string) (err error) { +func (k Keeper) createDenomAfterValidation(ctx sdk.Context, creatorAddr, denom string) (err error) { _, exists := k.bankKeeper.GetDenomMetaData(ctx, denom) if !exists { denomMetaData := banktypes.Metadata{ @@ -54,7 +54,7 @@ func (k Keeper) createDenomAfterValidation(ctx sdk.Context, creatorAddr string, return nil } -func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr string, subdenom string) (newTokenDenom string, err error) { +func (k Keeper) validateCreateDenom(ctx sdk.Context, creatorAddr, subdenom string) (newTokenDenom string, err error) { // Temporary check until IBC bug is sorted out if k.bankKeeper.HasSupply(ctx, subdenom) { return "", fmt.Errorf("temporary error until IBC bug is sorted out, " + diff --git a/x/tokenfactory/keeper/grpc_query.go b/x/tokenfactory/keeper/grpc_query.go index 59c62a1e4..ba8fd43cc 100644 --- a/x/tokenfactory/keeper/grpc_query.go +++ b/x/tokenfactory/keeper/grpc_query.go @@ -40,7 +40,7 @@ func (k Keeper) BeforeSendHookAddress(ctx context.Context, req *types.QueryBefor sdkCtx := sdk.UnwrapSDKContext(ctx) denom := fmt.Sprintf("factory/%s/%s", req.GetCreator(), req.GetSubdenom()) - cosmwasmAddress := k.GetBeforeSendHook(sdkCtx, denom) + contractAddr := k.GetBeforeSendHook(sdkCtx, denom) - return &types.QueryBeforeSendHookAddressResponse{CosmwasmAddress: cosmwasmAddress}, nil + return &types.QueryBeforeSendHookAddressResponse{ContractAddr: contractAddr}, nil } diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index 1bea2bcca..ebb88ea02 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -81,5 +81,6 @@ func (k *Keeper) SetContractKeeper(contractKeeper types.ContractKeeper) { // it purely mints and burns them on behalf of the admin of respective denoms, // and sends to the relevant address. func (k Keeper) CreateModuleAccount(ctx sdk.Context) { + // GetModuleAccount creates new module account if not present under the hood k.accountKeeper.GetModuleAccount(ctx, types.ModuleName) } diff --git a/x/tokenfactory/keeper/msg_server.go b/x/tokenfactory/keeper/msg_server.go index 3df06a489..fb29abf3b 100644 --- a/x/tokenfactory/keeper/msg_server.go +++ b/x/tokenfactory/keeper/msg_server.go @@ -218,7 +218,7 @@ func (server msgServer) SetBeforeSendHook(goCtx context.Context, msg *types.MsgS return nil, types.ErrUnauthorized } - err = server.Keeper.setBeforeSendHook(ctx, msg.Denom, msg.CosmwasmAddress) + err = server.Keeper.setBeforeSendHook(ctx, msg.Denom, msg.ContractAddr) if err != nil { return nil, err } @@ -227,7 +227,7 @@ func (server msgServer) SetBeforeSendHook(goCtx context.Context, msg *types.MsgS sdk.NewEvent( types.TypeMsgSetBeforeSendHook, sdk.NewAttribute(types.AttributeDenom, msg.GetDenom()), - sdk.NewAttribute(types.AttributeBeforeSendHookAddress, msg.GetCosmwasmAddress()), + sdk.NewAttribute(types.AttributeBeforeSendHookAddress, msg.GetContractAddr()), ), }) @@ -236,9 +236,9 @@ func (server msgServer) SetBeforeSendHook(goCtx context.Context, msg *types.MsgS // UpdateParams updates the module parameters func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - //if err := req.ValidateBasic(); err != nil { - // return nil, err - //} + if err := req.ValidateBasic(); err != nil { + return nil, err + } authority := k.GetAuthority() if authority != req.Authority { return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index a4ae0b61f..176834acb 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -14,7 +14,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgCreateDenom{}, "osmosis/tokenfactory/create-denom", nil) cdc.RegisterConcrete(&MsgMint{}, "osmosis/tokenfactory/mint", nil) cdc.RegisterConcrete(&MsgBurn{}, "osmosis/tokenfactory/burn", nil) - //cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) + // cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) cdc.RegisterConcrete(&MsgChangeAdmin{}, "osmosis/tokenfactory/change-admin", nil) cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) cdc.RegisterConcrete(&MsgUpdateParams{}, "osmosis/tokenfactory/update-params", nil) diff --git a/x/tokenfactory/types/constants.go b/x/tokenfactory/types/constants.go index 7cfe7cd30..ba0108ee2 100644 --- a/x/tokenfactory/types/constants.go +++ b/x/tokenfactory/types/constants.go @@ -1,5 +1,3 @@ package types -var ( - TrackBeforeSendGasLimit = uint64(100_000) -) +var TrackBeforeSendGasLimit = uint64(100_000) diff --git a/x/tokenfactory/types/denoms.go b/x/tokenfactory/types/denoms.go index 4a78e42cb..23ad5fa43 100644 --- a/x/tokenfactory/types/denoms.go +++ b/x/tokenfactory/types/denoms.go @@ -40,7 +40,7 @@ func GetTokenDenom(creator, subdenom string) (string, error) { // DeconstructDenom takes a token denom string and verifies that it is a valid // denom of the tokenfactory module, and is of the form `factory/{creator}/{subdenom}` // If valid, it returns the creator address and subdenom -func DeconstructDenom(denom string) (creator string, subdenom string, err error) { +func DeconstructDenom(denom string) (creator, subdenom string, err error) { err = sdk.ValidateDenom(denom) if err != nil { return "", "", err diff --git a/x/tokenfactory/types/expected_keepers.go b/x/tokenfactory/types/expected_keepers.go index 928915056..9da7b744d 100644 --- a/x/tokenfactory/types/expected_keepers.go +++ b/x/tokenfactory/types/expected_keepers.go @@ -18,7 +18,7 @@ type BankKeeper interface { MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error - SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool } diff --git a/x/tokenfactory/types/msgs.go b/x/tokenfactory/types/msgs.go index 356d6f801..eafdc8547 100644 --- a/x/tokenfactory/types/msgs.go +++ b/x/tokenfactory/types/msgs.go @@ -266,11 +266,11 @@ func (m MsgSetDenomMetadata) GetSigners() []sdk.AccAddress { var _ sdk.Msg = &MsgSetBeforeSendHook{} // NewMsgSetBeforeSendHook creates a message to set a new before send hook -func NewMsgSetBeforeSendHook(sender string, denom string, cosmwasmAddress string) *MsgSetBeforeSendHook { +func NewMsgSetBeforeSendHook(sender, denom, contractAddr string) *MsgSetBeforeSendHook { return &MsgSetBeforeSendHook{ - Sender: sender, - Denom: denom, - CosmwasmAddress: cosmwasmAddress, + Sender: sender, + Denom: denom, + ContractAddr: contractAddr, } } @@ -282,8 +282,8 @@ func (m MsgSetBeforeSendHook) ValidateBasic() error { return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) } - if m.CosmwasmAddress != "" { - _, err = sdk.AccAddressFromBech32(m.CosmwasmAddress) + if m.ContractAddr != "" { + _, err = sdk.AccAddressFromBech32(m.ContractAddr) if err != nil { return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid cosmwasm contract address (%s)", err) } diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 648426319..14743767d 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -11,47 +11,58 @@ import ( var ( KeyDenomCreationFee = []byte("DenomCreationFee") KeyDenomCreationGasConsume = []byte("DenomCreationGasConsume") - DefaultNeutronDenom = "untrn" - // chosen as an arbitrary large number, less than the max_gas_wanted_per_tx in config. - DefaultCreationGasFee = 1_000 - DefaultFeeAmount int64 = 1_000_000 + KeyFeeCollectorAddress = []byte("FeeCollectorAddress") + // We don't want to charge users for denom creation + DefaultDenomCreationFee sdk.Coins = nil + DefaultDenomCreationGasConsume uint64 = 0 + DefaultFeeCollectorAddress = "" ) -// ParamTable for tokenfactory module. +// ParamKeyTable the param key table for tokenfactory module. func ParamKeyTable() paramtypes.KeyTable { return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) } -func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64) Params { +func NewParams(denomCreationFee sdk.Coins, denomCreationGasConsume uint64, feeCollectorAddress string) Params { return Params{ DenomCreationFee: denomCreationFee, DenomCreationGasConsume: denomCreationGasConsume, + FeeCollectorAddress: feeCollectorAddress, } } -// default tokenfactory module parameters. +// DefaultParams returns a default set of parameters func DefaultParams() Params { - return Params{ - // We don't want to charge users for denom creation - DenomCreationFee: nil, - DenomCreationGasConsume: 0, - } + return NewParams(DefaultDenomCreationFee, DefaultDenomCreationGasConsume, DefaultFeeCollectorAddress) } -// validate params. +// Validate validates params func (p Params) Validate() error { + // DenomCreationFee and FeeCollectorAddress must be both set, or both unset + hasDenomCreationFee := len(p.DenomCreationFee) > 0 + hasFeeCollectorAddress := p.FeeCollectorAddress != "" + + if hasDenomCreationFee != hasFeeCollectorAddress { + return fmt.Errorf("DenomCreationFee and FeeCollectorAddr must be both set or both unset") + } + if err := validateDenomCreationFee(p.DenomCreationFee); err != nil { return err } + if err := validateAddress(p.FeeCollectorAddress); err != nil { + return err + } + return nil } -// Implements params.ParamSet. +// ParamSetPairs get the params.ParamSet func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { return paramtypes.ParamSetPairs{ paramtypes.NewParamSetPair(KeyDenomCreationFee, &p.DenomCreationFee, validateDenomCreationFee), paramtypes.NewParamSetPair(KeyDenomCreationGasConsume, &p.DenomCreationGasConsume, validateDenomCreationGasConsume), + paramtypes.NewParamSetPair(KeyFeeCollectorAddress, &p.FeeCollectorAddress, validateAddress), } } @@ -76,3 +87,21 @@ func validateDenomCreationGasConsume(i interface{}) error { return nil } + +func validateAddress(i interface{}) error { + v, ok := i.(string) + if !ok { + return fmt.Errorf("invalid parameter type: %T", i) + } + + if len(v) == 0 { + return nil + } + + _, err := sdk.AccAddressFromBech32(v) + if err != nil { + return fmt.Errorf("invalid address: %w", err) + } + + return nil +} diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index 1d06ab5fd..4b58f82a1 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -359,7 +359,7 @@ func (m *QueryBeforeSendHookAddressRequest) GetSubdenom() string { // QueryBeforeSendHookAddressResponse defines the response structure for the // DenomBeforeSendHook gRPC query. type QueryBeforeSendHookAddressResponse struct { - CosmwasmAddress string `protobuf:"bytes,1,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` + ContractAddr string `protobuf:"bytes,1,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty" yaml:"contract_addr"` } func (m *QueryBeforeSendHookAddressResponse) Reset() { *m = QueryBeforeSendHookAddressResponse{} } @@ -395,9 +395,9 @@ func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryBeforeSendHookAddressResponse proto.InternalMessageInfo -func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string { +func (m *QueryBeforeSendHookAddressResponse) GetContractAddr() string { if m != nil { - return m.CosmwasmAddress + return m.ContractAddr } return "" } @@ -418,49 +418,49 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 671 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x4f, 0x4f, 0x53, 0x4d, - 0x14, 0xc6, 0x3b, 0xbc, 0xaf, 0x55, 0xc6, 0x28, 0x32, 0xa0, 0x62, 0xc5, 0x5b, 0x19, 0x89, 0x81, - 0x04, 0x3b, 0xf2, 0x67, 0x25, 0x1a, 0xe1, 0x62, 0x88, 0x89, 0x21, 0xd1, 0x2b, 0x31, 0x91, 0x98, - 0x34, 0xd3, 0x76, 0x28, 0x0d, 0xdc, 0x7b, 0xca, 0xcc, 0x54, 0x6d, 0x08, 0x1b, 0x4c, 0x5c, 0x9b, - 0xb8, 0xf4, 0x3b, 0xf8, 0x39, 0x58, 0x92, 0xb0, 0x71, 0xd5, 0x18, 0xf0, 0x13, 0x74, 0xe1, 0xc6, - 0x8d, 0xe9, 0xcc, 0x14, 0x84, 0x96, 0x9b, 0x0a, 0x89, 0xbb, 0x9b, 0x99, 0x73, 0x9e, 0xf3, 0xfc, - 0xe6, 0x9c, 0x93, 0x8b, 0x47, 0x40, 0x85, 0xa0, 0x4a, 0x8a, 0x69, 0x58, 0x15, 0xd1, 0x32, 0xcf, - 0x6b, 0x90, 0x55, 0xf6, 0x76, 0x3c, 0x27, 0x34, 0x1f, 0x67, 0xeb, 0x15, 0x21, 0xab, 0x99, 0xb2, - 0x04, 0x0d, 0x64, 0xd0, 0x45, 0x66, 0xfe, 0x8c, 0xcc, 0xb8, 0xc8, 0x54, 0x7f, 0x11, 0x8a, 0x60, - 0x02, 0x59, 0xe3, 0xcb, 0xe6, 0xa4, 0x06, 0x8b, 0x00, 0xc5, 0x35, 0xc1, 0x78, 0xb9, 0xc4, 0x78, - 0x14, 0x81, 0xe6, 0xba, 0x04, 0x91, 0x72, 0xb7, 0x53, 0xb1, 0xb5, 0x79, 0x45, 0xaf, 0x80, 0x2c, - 0xe9, 0xea, 0x82, 0xd0, 0xbc, 0xc0, 0x35, 0x77, 0x59, 0xa3, 0xb1, 0x59, 0x65, 0x2e,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a6, 0x3b, 0xc1, 0xcd, 0x2e, 0x4b, 0x08, 0xb3, - 0x0e, 0xf5, 0x90, 0x99, 0xfc, 0x44, 0xf8, 0x6a, 0xdb, 0x29, 0x27, 0x8f, 0x3b, 0x30, 0x17, 0xb7, - 0xa3, 0xa9, 0x99, 0xd3, 0x0b, 0x38, 0xc2, 0x25, 0x43, 0xb8, 0x48, 0x82, 0xb3, 0x37, 0x34, 0x67, - 0x0a, 0x65, 0x95, 0x88, 0x0a, 0xd9, 0x15, 0x80, 0x55, 0x7f, 0x61, 0x7b, 0xcf, 0x43, 0x3b, 0x7b, - 0x1e, 0xfa, 0xbe, 0xe7, 0xa1, 0x4f, 0xfb, 0x5e, 0x62, 0x67, 0xdf, 0x4b, 0x7c, 0xdb, 0xf7, 0x12, - 0x4b, 0x93, 0xc5, 0x92, 0x5e, 0xa9, 0xe4, 0x32, 0x79, 0x08, 0x59, 0x24, 0x2a, 0x5a, 0x42, 0x74, - 0x0f, 0x64, 0xb1, 0xf9, 0xcd, 0xde, 0x1f, 0x75, 0xa1, 0xab, 0x65, 0xa1, 0x72, 0x49, 0xf3, 0x07, - 0x9c, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x90, 0xae, 0xbc, 0xc7, 0xe0, 0x07, 0x00, 0x00, + // 670 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcf, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0x33, 0x55, 0xa3, 0x1d, 0xad, 0xd2, 0x69, 0x95, 0x1a, 0xea, 0xc6, 0x8e, 0x45, 0x5a, + 0xa8, 0x19, 0xfb, 0xe3, 0x64, 0x2d, 0xb6, 0x5b, 0x11, 0x41, 0x0a, 0xba, 0x16, 0xc1, 0x22, 0x84, + 0x49, 0x76, 0x9a, 0x86, 0x76, 0xf7, 0xa5, 0x33, 0x13, 0x31, 0x94, 0x5e, 0x2a, 0x78, 0x16, 0x3c, + 0xfa, 0x3f, 0xf8, 0x77, 0xf4, 0x58, 0xe8, 0xc5, 0x53, 0x90, 0xd6, 0xbf, 0x20, 0x07, 0x2f, 0x5e, + 0x24, 0xb3, 0xb3, 0xfd, 0x61, 0xd2, 0x25, 0xa6, 0xe0, 0x6d, 0x33, 0xf3, 0xde, 0xf7, 0x7d, 0x3f, + 0xf3, 0xde, 0x23, 0x78, 0x0c, 0x54, 0x00, 0xaa, 0xac, 0x98, 0x86, 0x75, 0x11, 0xae, 0xf2, 0xa2, + 0x06, 0x59, 0x63, 0xef, 0x27, 0x0b, 0x42, 0xf3, 0x49, 0xb6, 0x59, 0x15, 0xb2, 0x96, 0xab, 0x48, + 0xd0, 0x40, 0x86, 0x6d, 0x64, 0xee, 0x64, 0x64, 0xce, 0x46, 0x66, 0x06, 0x4b, 0x50, 0x02, 0x13, + 0xc8, 0x9a, 0x5f, 0x51, 0x4e, 0x66, 0xb8, 0x04, 0x50, 0xda, 0x10, 0x8c, 0x57, 0xca, 0x8c, 0x87, + 0x21, 0x68, 0xae, 0xcb, 0x10, 0x2a, 0x7b, 0x3b, 0x93, 0x58, 0x9b, 0x57, 0xf5, 0x1a, 0xc8, 0xb2, + 0xae, 0x2d, 0x09, 0xcd, 0x7d, 0xae, 0xb9, 0xcd, 0x1a, 0x4f, 0xcc, 0xaa, 0x70, 0xc9, 0x03, 0x5b, + 0x80, 0x0e, 0x62, 0xf2, 0xaa, 0x49, 0xf0, 0xd2, 0x1c, 0x7a, 0x62, 0xb3, 0x2a, 0x94, 0xa6, 0x6f, + 0xf1, 0xc0, 0xa9, 0x53, 0x55, 0x81, 0x50, 0x09, 0xe2, 0xe2, 0x74, 0x94, 0x3c, 0x84, 0xee, 0xa2, + 0xb1, 0xab, 0x53, 0xa3, 0xb9, 0x24, 0xe0, 0x5c, 0x94, 0xed, 0x5e, 0xdc, 0xad, 0x67, 0x53, 0x9e, + 0xcd, 0xa4, 0x1f, 0x11, 0xa6, 0x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0, 0x41, + 0x3f, 0x0e, 0x1c, 0xf4, 0xf9, 0xd0, 0x49, 0xed, 0x1d, 0x3a, 0xa9, 0xef, 0x87, 0x4e, 0x6a, 0x65, + 0xba, 0x54, 0xd6, 0x6b, 0xd5, 0x42, 0xae, 0x08, 0x01, 0x0b, 0x45, 0x55, 0x4b, 0x08, 0x1f, 0x80, + 0x2c, 0xc5, 0xdf, 0xec, 0xc3, 0x69, 0x17, 0xba, 0x56, 0x11, 0xaa, 0x90, 0x36, 0x7f, 0x7c, 0xd3, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x15, 0xaa, 0xec, 0xd7, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -912,10 +912,10 @@ func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) ( _ = i var l int _ = l - if len(m.CosmwasmAddress) > 0 { - i -= len(m.CosmwasmAddress) - copy(dAtA[i:], m.CosmwasmAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmwasmAddress))) + if len(m.ContractAddr) > 0 { + i -= len(m.ContractAddr) + copy(dAtA[i:], m.ContractAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddr))) i-- dAtA[i] = 0xa } @@ -1032,7 +1032,7 @@ func (m *QueryBeforeSendHookAddressResponse) Size() (n int) { } var l int _ = l - l = len(m.CosmwasmAddress) + l = len(m.ContractAddr) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -1684,7 +1684,7 @@ func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1712,7 +1712,7 @@ func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) + m.ContractAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index 2a887b635..61a23a8a0 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -440,9 +440,9 @@ var xxx_messageInfo_MsgChangeAdminResponse proto.InternalMessageInfo // MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to // assign a CosmWasm contract to call with a BeforeSend hook type MsgSetBeforeSendHook struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` - CosmwasmAddress string `protobuf:"bytes,3,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` + ContractAddr string `protobuf:"bytes,3,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty" yaml:"contract_addr"` } func (m *MsgSetBeforeSendHook) Reset() { *m = MsgSetBeforeSendHook{} } @@ -492,9 +492,9 @@ func (m *MsgSetBeforeSendHook) GetDenom() string { return "" } -func (m *MsgSetBeforeSendHook) GetCosmwasmAddress() string { +func (m *MsgSetBeforeSendHook) GetContractAddr() string { if m != nil { - return m.CosmwasmAddress + return m.ContractAddr } return "" } @@ -856,72 +856,73 @@ func init() { } var fileDescriptor_283b6c9a90a846b4 = []byte{ - // 1040 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xbf, 0x6f, 0xdb, 0x46, - 0x14, 0x36, 0x93, 0xd4, 0xb1, 0x2f, 0x71, 0x6d, 0xd3, 0x6e, 0x2c, 0x33, 0x0e, 0x99, 0xb2, 0x4d, - 0xe0, 0x18, 0x95, 0x08, 0x3b, 0x69, 0x80, 0x6a, 0x6a, 0x94, 0xc2, 0xcd, 0x50, 0x01, 0x05, 0xed, - 0x2e, 0x45, 0x00, 0xe1, 0x24, 0x9d, 0x28, 0x42, 0xe5, 0x9d, 0x72, 0x77, 0x8a, 0xe2, 0xad, 0x68, - 0xb7, 0x4e, 0x1d, 0xb2, 0x77, 0xed, 0xe8, 0xa1, 0x73, 0x67, 0x8f, 0x41, 0xbb, 0x74, 0x22, 0x0c, - 0x1b, 0xa8, 0x77, 0xfd, 0x05, 0xc5, 0xfd, 0x20, 0x25, 0x51, 0x82, 0x7e, 0x0c, 0x45, 0x16, 0x89, - 0xbc, 0xf7, 0x7d, 0xef, 0xde, 0xf7, 0xee, 0xdd, 0x7b, 0x04, 0x0f, 0x08, 0x8b, 0x08, 0x0b, 0x99, - 0xc7, 0x49, 0x0b, 0xe1, 0x06, 0xac, 0x71, 0x42, 0x4f, 0xbc, 0xd7, 0xfb, 0x55, 0xc4, 0xe1, 0xbe, - 0xc7, 0xdf, 0x14, 0xda, 0x94, 0x70, 0x62, 0xee, 0x68, 0x58, 0x61, 0x10, 0x56, 0xd0, 0x30, 0xeb, - 0xd1, 0x44, 0x27, 0x6d, 0x48, 0x61, 0xc4, 0x94, 0x23, 0x6b, 0x33, 0x20, 0x01, 0x91, 0x8f, 0x9e, - 0x78, 0xd2, 0xab, 0x76, 0x4d, 0x7a, 0xf0, 0xaa, 0x90, 0xa1, 0x94, 0x57, 0x23, 0x21, 0xd6, 0xf6, - 0x2d, 0x6d, 0x8f, 0x58, 0xe0, 0xbd, 0xde, 0x17, 0x7f, 0xda, 0xb0, 0xad, 0x0c, 0x15, 0xe5, 0x51, - 0xbd, 0x68, 0xd3, 0x3a, 0x8c, 0x42, 0x4c, 0x3c, 0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xab, 0x38, 0x3f, 0x27, 0x8d, 0xa2, 0x0b, 0x56, 0x86, 0xdb, 0x60, 0x61, 0xaa, 0xb3, - 0x21, 0xbc, 0xf5, 0x74, 0x3e, 0x7c, 0xba, 0x31, 0x07, 0xb7, 0x87, 0xba, 0xc1, 0xf4, 0x9a, 0x19, - 0x84, 0x5b, 0x9f, 0xcf, 0x05, 0x4f, 0x76, 0x2d, 0x95, 0xcf, 0x2e, 0x6c, 0xe3, 0xdd, 0x85, 0x6d, - 0x9c, 0x5f, 0xd8, 0xc6, 0xaf, 0x97, 0xf6, 0xc2, 0xbb, 0x4b, 0x7b, 0xe1, 0x9f, 0x4b, 0x7b, 0xe1, - 0xfb, 0xc7, 0x41, 0xc8, 0x9b, 0x9d, 0x6a, 0xa1, 0x46, 0x22, 0x0f, 0xa3, 0x0e, 0xa7, 0x04, 0xe7, - 0x09, 0x0d, 0x92, 0x67, 0xef, 0xcd, 0x70, 0xef, 0xe3, 0x27, 0x6d, 0xc4, 0xaa, 0x8b, 0xf2, 0x53, - 0xfe, 0xf1, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x82, 0xd8, 0xa2, 0x17, 0xd9, 0x0c, 0x00, 0x00, + // 1045 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xbd, 0x6f, 0xdb, 0xc6, + 0x1b, 0x36, 0x93, 0xfc, 0x1c, 0xfb, 0x62, 0xff, 0x6c, 0xd3, 0x6e, 0x2c, 0xb3, 0x0e, 0x99, 0xb2, + 0x4d, 0xe0, 0x18, 0x95, 0x08, 0x39, 0x69, 0x80, 0x0a, 0x28, 0xd0, 0x28, 0x85, 0x9b, 0xa1, 0x02, + 0x0a, 0xda, 0x5d, 0x8a, 0x00, 0xc2, 0x49, 0x3a, 0x51, 0x84, 0xca, 0x3b, 0xe5, 0xee, 0x14, 0xc7, + 0x5b, 0xd1, 0x6e, 0x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 0x36, 0xde, 0x5c, 0xd8, 0xc6, 0xdb, 0x0b, 0xdb, 0xf8, 0xf9, 0xd2, 0x5e, 0x78, 0x73, 0x69, 0x2f, + 0xfc, 0x7d, 0x69, 0x2f, 0x7c, 0xfb, 0x30, 0x08, 0x79, 0xab, 0x5b, 0x2b, 0xd4, 0x49, 0xe4, 0x61, + 0xd4, 0xe5, 0x94, 0xe0, 0x3c, 0xa1, 0x41, 0xf2, 0xec, 0xbd, 0xca, 0xde, 0x7d, 0xfc, 0xb4, 0x83, + 0x58, 0x6d, 0x51, 0xfe, 0x82, 0x7f, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x50, 0x90, 0x4a, + 0xf5, 0xd0, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1550,10 +1551,10 @@ func (m *MsgSetBeforeSendHook) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.CosmwasmAddress) > 0 { - i -= len(m.CosmwasmAddress) - copy(dAtA[i:], m.CosmwasmAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.CosmwasmAddress))) + if len(m.ContractAddr) > 0 { + i -= len(m.ContractAddr) + copy(dAtA[i:], m.ContractAddr) + i = encodeVarintTx(dAtA, i, uint64(len(m.ContractAddr))) i-- dAtA[i] = 0x1a } @@ -1941,7 +1942,7 @@ func (m *MsgSetBeforeSendHook) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.CosmwasmAddress) + l = len(m.ContractAddr) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -2924,7 +2925,7 @@ func (m *MsgSetBeforeSendHook) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2952,7 +2953,7 @@ func (m *MsgSetBeforeSendHook) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) + m.ContractAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex From 39c639a4351483991aa1c6d7f33e31c9a67dfba7 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 19 Sep 2023 17:39:24 +0300 Subject: [PATCH 133/307] fix unit tests --- wasmbinding/test/custom_message_test.go | 57 ++++++++++++++--------- wasmbinding/test/custom_query_test.go | 1 + x/tokenfactory/keeper/createdenom_test.go | 3 +- x/tokenfactory/keeper/keeper_test.go | 4 +- 4 files changed, 40 insertions(+), 25 deletions(-) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index ebb4f87b1..d3727bba5 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -67,6 +67,7 @@ func (suite *CustomMessengerTestSuite) SetupTest() { err := suite.messenger.TokenFactory.SetParams(suite.ctx, tokenfactorytypes.NewParams( sdk.NewCoins(sdk.NewInt64Coin(params.DefaultDenom, 10_000_000)), 0, + FeeCollectorAddress, )) suite.Require().NoError(err) } @@ -418,18 +419,23 @@ func (suite *CustomMessengerTestSuite) TestSoftwareUpgradeProposal() { // Set admin so that we can execute this proposal without permission error suite.neutron.AdminmoduleKeeper.SetAdmin(suite.ctx, suite.contractAddress.String()) + executeMsg := fmt.Sprintf(` +{ + "@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + "authority": "%s", + "plan": { + "name": "TestPlane", + "height": "150", + "info": "TestInfo" + } +} +`, suite.neutron.BankKeeper.GetAuthority()) // Craft SubmitAdminProposal message msg, err := json.Marshal(bindings.NeutronMsg{ SubmitAdminProposal: &bindings.SubmitAdminProposal{ AdminProposal: bindings.AdminProposal{ - SoftwareUpgradeProposal: &bindings.SoftwareUpgradeProposal{ - Title: "Test", - Description: "Test", - Plan: bindings.Plan{ - Name: "TestPlan", - Height: 150, - Info: "TestInfo", - }, + ProposalExecuteMessage: &bindings.ProposalExecuteMessage{ + Message: executeMsg, }, }, }, @@ -459,16 +465,16 @@ func (suite *CustomMessengerTestSuite) TestSoftwareUpgradeProposal() { // Check CancelSubmitAdminProposal + executeMsg = fmt.Sprintf(` + { + "@type": "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + "authority": "%s" +} +`, suite.neutron.BankKeeper.GetAuthority()) // Craft CancelSubmitAdminProposal message msg, err = json.Marshal(bindings.NeutronMsg{ SubmitAdminProposal: &bindings.SubmitAdminProposal{ - AdminProposal: bindings.AdminProposal{ - CancelSoftwareUpgradeProposal: &bindings.CancelSoftwareUpgradeProposal{ - Title: "Test", - Description: "Test", - }, - }, - }, + AdminProposal: bindings.AdminProposal{ProposalExecuteMessage: &bindings.ProposalExecuteMessage{Message: executeMsg}}}, }) suite.NoError(err) @@ -494,19 +500,24 @@ func (suite *CustomMessengerTestSuite) TestTooMuchProposals() { err := testutil.SetupICAPath(suite.Path, suite.contractAddress.String()) suite.Require().NoError(err) + executeMsg := fmt.Sprintf(` + { + "@type": "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + "authority": "%s" +} +`, suite.neutron.BankKeeper.GetAuthority()) + // Craft message with 2 proposals msg, err := json.Marshal(bindings.NeutronMsg{ SubmitAdminProposal: &bindings.SubmitAdminProposal{ AdminProposal: bindings.AdminProposal{ - CancelSoftwareUpgradeProposal: &bindings.CancelSoftwareUpgradeProposal{ - Title: "Test", - Description: "Test", - }, - ClearAdminProposal: &bindings.ClearAdminProposal{ - Title: "Test", - Description: "Test", - Contract: "Test", + ClientUpdateProposal: &bindings.ClientUpdateProposal{ + Title: "aaa", + Description: "ddafds", + SubjectClientId: "sdfsdf", + SubstituteClientId: "sdfsd", }, + ProposalExecuteMessage: &bindings.ProposalExecuteMessage{Message: executeMsg}, }, }, }) diff --git a/wasmbinding/test/custom_query_test.go b/wasmbinding/test/custom_query_test.go index b358a712e..9180bf079 100644 --- a/wasmbinding/test/custom_query_test.go +++ b/wasmbinding/test/custom_query_test.go @@ -252,6 +252,7 @@ func (suite *CustomQuerierTestSuite) TestDenomAdmin() { err := neutron.TokenFactoryKeeper.SetParams(ctx, tokenfactorytypes.NewParams( sdk.NewCoins(sdk.NewInt64Coin(params.DefaultDenom, 10_000_000)), 0, + FeeCollectorAddress, )) suite.Require().NoError(err) diff --git a/x/tokenfactory/keeper/createdenom_test.go b/x/tokenfactory/keeper/createdenom_test.go index 423dc4a1d..31f86593f 100644 --- a/x/tokenfactory/keeper/createdenom_test.go +++ b/x/tokenfactory/keeper/createdenom_test.go @@ -5,6 +5,7 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/tokenfactory/types" ) @@ -14,7 +15,7 @@ func (suite *KeeperTestSuite) TestMsgCreateDenom() { // Create denom without enough funds _, err := suite.msgServer.CreateDenom(sdk.WrapSDKContext(suite.ChainA.GetContext()), types.NewMsgCreateDenom(suite.TestAccs[0].String(), "bitcoin")) - suite.Require().ErrorContains(err, "unable to charge for denom creation") + suite.Require().ErrorIs(err, errors.ErrInsufficientFunds) // Creating a denom should work senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() diff --git a/x/tokenfactory/keeper/keeper_test.go b/x/tokenfactory/keeper/keeper_test.go index 4b9d546e8..8bd85595d 100644 --- a/x/tokenfactory/keeper/keeper_test.go +++ b/x/tokenfactory/keeper/keeper_test.go @@ -11,6 +11,7 @@ import ( "github.com/stretchr/testify/suite" sdktypes "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/app/params" "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/x/tokenfactory/keeper" @@ -53,8 +54,9 @@ func (suite *KeeperTestSuite) Setup() { tokenFactoryKeeper := suite.GetNeutronZoneApp(suite.ChainA).TokenFactoryKeeper err := tokenFactoryKeeper.SetParams(suite.ChainA.GetContext(), types.NewParams( - sdktypes.NewCoins(sdktypes.NewInt64Coin(suite.defaultDenom, TopUpCoinsAmount)), + sdktypes.NewCoins(sdktypes.NewInt64Coin(params.DefaultDenom, TopUpCoinsAmount)), 0, + FeeCollectorAddress, )) suite.Require().NoError(err) From 36a87f3f41692de81c3686738a818ce5f6e513a2 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 20 Sep 2023 13:44:03 +0400 Subject: [PATCH 134/307] fix unit tests after merge --- x/contractmanager/keeper/failure_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index 5edd064c3..b76ef3013 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -166,7 +166,7 @@ func TestResubmitFailure(t *testing.T) { failure2, err := k.GetFailure(ctx, contractAddr, failureID2) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure2) - require.ErrorContains(t, err, "cannot resubmit failure ack") + require.ErrorContains(t, err, "cannot resubmit failure") // failure is still there failureAfter2, err := k.GetFailure(ctx, contractAddr, failureID2) require.NoError(t, err) @@ -200,7 +200,7 @@ func TestResubmitFailure(t *testing.T) { failure4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure4) - require.ErrorContains(t, err, "cannot resubmit failure ack") + require.ErrorContains(t, err, "cannot resubmit failure") // failure is still there failureAfter4, err := k.GetFailure(ctx, contractAddr, failureID4) require.NoError(t, err) @@ -234,7 +234,7 @@ func TestResubmitFailure(t *testing.T) { failure6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) err = k.ResubmitFailure(ctx, contractAddr, failure6) - require.ErrorContains(t, err, "cannot resubmit failure ack") + require.ErrorContains(t, err, "cannot resubmit failure") // failure is still there failureAfter6, err := k.GetFailure(ctx, contractAddr, failureID6) require.NoError(t, err) From 8ff65bf7781e9661c3a3f20094ee94874fcfc0c1 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 20 Sep 2023 13:54:05 +0400 Subject: [PATCH 135/307] cleanup --- x/tokenfactory/types/params.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 14743767d..4a109cf73 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -50,7 +50,7 @@ func (p Params) Validate() error { return err } - if err := validateAddress(p.FeeCollectorAddress); err != nil { + if err := validateFeeCollectorAddress(p.FeeCollectorAddress); err != nil { return err } @@ -62,7 +62,7 @@ func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { return paramtypes.ParamSetPairs{ paramtypes.NewParamSetPair(KeyDenomCreationFee, &p.DenomCreationFee, validateDenomCreationFee), paramtypes.NewParamSetPair(KeyDenomCreationGasConsume, &p.DenomCreationGasConsume, validateDenomCreationGasConsume), - paramtypes.NewParamSetPair(KeyFeeCollectorAddress, &p.FeeCollectorAddress, validateAddress), + paramtypes.NewParamSetPair(KeyFeeCollectorAddress, &p.FeeCollectorAddress, validateFeeCollectorAddress), } } @@ -88,7 +88,7 @@ func validateDenomCreationGasConsume(i interface{}) error { return nil } -func validateAddress(i interface{}) error { +func validateFeeCollectorAddress(i interface{}) error { v, ok := i.(string) if !ok { return fmt.Errorf("invalid parameter type: %T", i) @@ -100,7 +100,7 @@ func validateAddress(i interface{}) error { _, err := sdk.AccAddressFromBech32(v) if err != nil { - return fmt.Errorf("invalid address: %w", err) + return fmt.Errorf("invalid fee collector address: %w", err) } return nil From b15a3aa47ec9cb91a4d41557124643d837a70053 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 20 Sep 2023 18:31:56 +0300 Subject: [PATCH 136/307] merged upgrades --- app/app.go | 11 ++ app/upgrades/nextupgrade/constants.go | 8 - app/upgrades/nextupgrade/upgrades.go | 211 ++++++++++++++++++++-- app/upgrades/nextupgrade/upgrades_test.go | 36 ++++ app/upgrades/sdk47/constants.go | 15 -- app/upgrades/sdk47/upgrades.go | 210 --------------------- wasmbinding/message_plugin.go | 2 +- x/interchaintxs/types/params.go | 10 + 8 files changed, 254 insertions(+), 249 deletions(-) delete mode 100644 app/upgrades/sdk47/constants.go delete mode 100644 app/upgrades/sdk47/upgrades.go diff --git a/app/app.go b/app/app.go index 33b5f1d55..2194e8f09 100644 --- a/app/app.go +++ b/app/app.go @@ -1018,6 +1018,8 @@ func (app *App) setupUpgradeHandlers() { SlashingKeeper: app.SlashingKeeper, ParamsKeeper: app.ParamsKeeper, CapabilityKeeper: app.CapabilityKeeper, + BuilderKeeper: app.BuilderKeeper, + ContractManager: app.ContractManagerKeeper, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), CcvConsumerSubspace: app.GetSubspace(ccvconsumertypes.ModuleName), }, @@ -1184,6 +1186,15 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(globalfee.ModuleName) paramsKeeper.Subspace(ccvconsumertypes.ModuleName) + + // MOTE: legacy subspaces for migration sdk47 only + paramsKeeper.Subspace(crontypes.StoreKey).WithKeyTable(crontypes.ParamKeyTable()) + paramsKeeper.Subspace(feeburnertypes.StoreKey).WithKeyTable(feeburnertypes.ParamKeyTable()) + paramsKeeper.Subspace(feetypes.StoreKey).WithKeyTable(feetypes.ParamKeyTable()) + paramsKeeper.Subspace(tokenfactorytypes.StoreKey).WithKeyTable(tokenfactorytypes.ParamKeyTable()) + paramsKeeper.Subspace(interchainqueriesmoduletypes.StoreKey).WithKeyTable(interchainqueriesmoduletypes.ParamKeyTable()) + paramsKeeper.Subspace(interchaintxstypes.StoreKey).WithKeyTable(interchaintxstypes.ParamKeyTable()) + return paramsKeeper } diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index 11ddc35b9..e180e71ef 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -1,9 +1,6 @@ package nextupgrade import ( - store "github.com/cosmos/cosmos-sdk/store/types" - - "github.com/cosmos/gaia/v11/x/globalfee" "github.com/neutron-org/neutron/app/upgrades" ) @@ -15,9 +12,4 @@ const ( var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: CreateUpgradeHandler, - StoreUpgrades: store.StoreUpgrades{ - Added: []string{ - globalfee.ModuleName, - }, - }, } diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 656a5c8c6..eeb484e9a 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -1,27 +1,41 @@ package nextupgrade import ( - "errors" - - ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" - - ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" - + "cosmossdk.io/math" + "fmt" "github.com/cosmos/cosmos-sdk/codec" + storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/bech32" "github.com/cosmos/cosmos-sdk/types/module" + capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee/types" + v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" + ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" "github.com/neutron-org/neutron/app/upgrades" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" + crontypes "github.com/neutron-org/neutron/x/cron/types" + feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" + icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" + interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" + tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" + buildertypes "github.com/skip-mev/pob/x/builder/types" ) func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *upgrades.UpgradeKeepers, - _ upgrades.StoreKeys, - _ codec.Codec, + storeKeys upgrades.StoreKeys, + codec codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { ctx.Logger().Info("Starting module migrations...") @@ -30,36 +44,203 @@ func CreateUpgradeHandler( return vm, err } + ctx.Logger().Info("Migrating channel capability...") + // https://github.com/cosmos/ibc-go/blob/v7.0.1/docs/migrations/v5-to-v6.md#upgrade-proposal + if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, interchaintxstypes.ModuleName); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating cron module parameters...") + if err := migrateCronParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(crontypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating feerefunder module parameters...") + if err := migrateFeeRefunderParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(feerefundertypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating tokenfactory module parameters...") + if err := migrateTokenFactoryParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating feeburner module parameters...") + if err := migrateFeeburnerParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(feeburnertypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating interchainqueries module parameters...") + if err := migrateInterchainQueriesParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(icqtypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating interchaintxs module parameters...") + if err := setInterchainTxsParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(interchaintxstypes.StoreKey), codec); err != nil { + return nil, err + } + + ctx.Logger().Info("Setting pob params...") + err = setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) + if err != nil { + return nil, err + } + + ctx.Logger().Info("Setting sudo callback limit...") + err = setContractManagerParams(ctx, keepers.ContractManager) + if err != nil { + return nil, err + } + + ctx.Logger().Info("Migrating globalminfees module parameters...") err = migrateGlobalFees(ctx, keepers) if err != nil { ctx.Logger().Error("failed to migrate GlobalFees", "err", err) return vm, err } + ctx.Logger().Info("Updating ccv reward denoms...") err = migrateRewardDenoms(ctx, keepers) if err != nil { - ctx.Logger().Error("failed to migrate reward denoms", "err", err) + ctx.Logger().Error("failed to update reward denoms", "err", err) return vm, err } ctx.Logger().Info("Upgrade complete") - return vm, err + return vm, nil + } +} + +func setPobParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, builderKeeper builderkeeper.Keeper) error { + treasury := feeBurnerKeeper.GetParams(ctx).TreasuryAddress + _, data, err := bech32.DecodeAndConvert(treasury) + if err != nil { + return err + } + + builderParams := buildertypes.Params{ + MaxBundleSize: 2, + EscrowAccountAddress: data, + ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, + MinBidIncrement: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, + FrontRunningProtection: true, + ProposerFee: math.LegacyNewDecWithPrec(25, 2), + } + return builderKeeper.SetParams(ctx, builderParams) +} + +func setContractManagerParams(ctx sdk.Context, keeper contractmanagerkeeper.Keeper) error { + cmParams := contractmanagertypes.Params{ + SudoCallGasLimit: contractmanagertypes.DefaultSudoCallGasLimit, } + return keeper.SetParams(ctx, cmParams) +} + +func migrateCronParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams crontypes.Params + subspace, _ := paramsKeepers.GetSubspace(crontypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(crontypes.ParamsKey, bz) + return nil +} + +func migrateFeeRefunderParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams feerefundertypes.Params + subspace, _ := paramsKeepers.GetSubspace(feerefundertypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(feerefundertypes.ParamsKey, bz) + return nil +} + +func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams tokenfactorytypes.Params + subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + currParams.DenomCreationGasConsume = 0 + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(tokenfactorytypes.ParamsKey, bz) + return nil +} + +func migrateFeeburnerParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams feeburnertypes.Params + subspace, _ := paramsKeepers.GetSubspace(feeburnertypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(feeburnertypes.ParamsKey, bz) + return nil +} + +func migrateInterchainQueriesParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams icqtypes.Params + subspace, _ := paramsKeepers.GetSubspace(icqtypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(icqtypes.ParamsKey, bz) + return nil +} + +func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { + store := ctx.KVStore(storeKey) + var currParams interchaintxstypes.Params + subspace, _ := paramsKeepers.GetSubspace(interchaintxstypes.StoreKey) + subspace.GetParamSet(ctx, &currParams) + currParams.RegisterFee = interchaintxstypes.DefaultRegisterFee + + if err := currParams.Validate(); err != nil { + return err + } + + bz := codec.MustMarshal(&currParams) + store.Set(interchaintxstypes.ParamsKey, bz) + return nil } func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { ctx.Logger().Info("Implementing GlobalFee Params...") if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMinGasPrices) { - return errors.New("minimum_gas_prices param not found") + return fmt.Errorf("minimum_gas_prices param not found") } if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes) { - return errors.New("bypass_min_fee_msg_types param not found") + return fmt.Errorf("bypass_min_fee_msg_types param not found") } if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage) { - return errors.New("max_total_bypass_min_fee_msg_gas_usage param not found") + return fmt.Errorf("max_total_bypass_min_fee_msg_gas_usage param not found") } // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin @@ -96,7 +277,7 @@ func migrateRewardDenoms(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) erro ctx.Logger().Info("Migrating reword denoms...") if !keepers.CcvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms) { - return errors.New("key_reward_denoms param not found") + return fmt.Errorf("key_reward_denoms param not found") } var denoms []string diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 4a056b036..07fb6ea7d 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,6 +1,12 @@ package nextupgrade_test import ( + crontypes "github.com/neutron-org/neutron/x/cron/types" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" + icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" + interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" + tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" "testing" "github.com/neutron-org/neutron/app/params" @@ -20,12 +26,42 @@ import ( type UpgradeTestSuite struct { testutil.IBCConnectionTestSuite + ctx sdk.Context } func TestKeeperTestSuite(t *testing.T) { suite.Run(t, new(UpgradeTestSuite)) } +func (suite *UpgradeTestSuite) SetupTest() { + suite.IBCConnectionTestSuite.SetupTest() + app := suite.GetNeutronZoneApp(suite.ChainA) + ctx := suite.ChainA.GetContext() + subspace, _ := app.ParamsKeeper.GetSubspace(crontypes.StoreKey) + pcron := crontypes.DefaultParams() + subspace.SetParamSet(ctx, &pcron) + + subspace, _ = app.ParamsKeeper.GetSubspace(feeburnertypes.StoreKey) + p := feeburnertypes.NewParams(feeburnertypes.DefaultNeutronDenom, "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh") + subspace.SetParamSet(ctx, &p) + + subspace, _ = app.ParamsKeeper.GetSubspace(feerefundertypes.StoreKey) + pFeeRefunder := feerefundertypes.DefaultParams() + subspace.SetParamSet(ctx, &pFeeRefunder) + + subspace, _ = app.ParamsKeeper.GetSubspace(tokenfactorytypes.StoreKey) + pTokenfactory := tokenfactorytypes.DefaultParams() + subspace.SetParamSet(ctx, &pTokenfactory) + + subspace, _ = app.ParamsKeeper.GetSubspace(icqtypes.StoreKey) + pICQTypes := icqtypes.DefaultParams() + subspace.SetParamSet(ctx, &pICQTypes) + + subspace, _ = app.ParamsKeeper.GetSubspace(interchaintxstypes.StoreKey) + pICAtx := interchaintxstypes.DefaultParams() + subspace.SetParamSet(ctx, &pICAtx) +} + func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { var ( app = suite.GetNeutronZoneApp(suite.ChainA) diff --git a/app/upgrades/sdk47/constants.go b/app/upgrades/sdk47/constants.go deleted file mode 100644 index d92b1e06f..000000000 --- a/app/upgrades/sdk47/constants.go +++ /dev/null @@ -1,15 +0,0 @@ -package sdk47 - -import ( - "github.com/neutron-org/neutron/app/upgrades" -) - -const ( - // UpgradeName defines the on-chain upgrades name. - UpgradeName = "cosmos-sdk47" -) - -var Upgrade = upgrades.Upgrade{ - UpgradeName: UpgradeName, - CreateUpgradeHandler: CreateUpgradeHandler, -} diff --git a/app/upgrades/sdk47/upgrades.go b/app/upgrades/sdk47/upgrades.go deleted file mode 100644 index 0c4b81cf6..000000000 --- a/app/upgrades/sdk47/upgrades.go +++ /dev/null @@ -1,210 +0,0 @@ -package sdk47 - -import ( - "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32" - "github.com/cosmos/cosmos-sdk/types/module" - capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" - "github.com/neutron-org/neutron/app/upgrades" - contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" - contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" - crontypes "github.com/neutron-org/neutron/x/cron/types" - feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" - feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" - feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" - icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" - interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" - tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" - buildertypes "github.com/skip-mev/pob/x/builder/types" -) - -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, - keepers *upgrades.UpgradeKeepers, - storeKeys upgrades.StoreKeys, - codec codec.Codec, -) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - ctx.Logger().Info("Starting module migrations...") - vm, err := mm.RunMigrations(ctx, configurator, vm) - if err != nil { - return vm, err - } - - ctx.Logger().Info("Migrating channel capability...") - // https://github.com/cosmos/ibc-go/blob/v7.0.1/docs/migrations/v5-to-v6.md#upgrade-proposal - if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, interchaintxstypes.ModuleName); err != nil { - return nil, err - } - - ctx.Logger().Info("Migrating cron module parameters...") - if err := migrateCronParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(crontypes.StoreKey), codec); err != nil { - return nil, err - } - - ctx.Logger().Info("Migrating feerefunder module parameters...") - if err := migrateFeeRefunderParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(feerefundertypes.StoreKey), codec); err != nil { - return nil, err - } - - ctx.Logger().Info("Migrating tokenfactory module parameters...") - if err := migrateTokenFactoryParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(tokenfactorytypes.StoreKey), codec); err != nil { - return nil, err - } - - ctx.Logger().Info("Migrating feeburner module parameters...") - if err := migrateFeeburnerParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(feeburnertypes.StoreKey), codec); err != nil { - return nil, err - } - - ctx.Logger().Info("Migrating interchainqueries module parameters...") - if err := migrateInterchainQueriesParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(icqtypes.StoreKey), codec); err != nil { - return nil, err - } - - ctx.Logger().Info("Migrating interchaintxs module parameters...") - if err := migrateInterchainTxsParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(interchaintxstypes.StoreKey), codec); err != nil { - return nil, err - } - - ctx.Logger().Info("Setting pob params...") - err = setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) - if err != nil { - return nil, err - } - - ctx.Logger().Info("Setting sudo callback limit...") - err = setContractManagerParams(ctx, keepers.ContractManager) - if err != nil { - return nil, err - } - - ctx.Logger().Info("Upgrade complete") - return vm, nil - } -} - -func setPobParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, builderKeeper builderkeeper.Keeper) error { - treasury := feeBurnerKeeper.GetParams(ctx).TreasuryAddress - _, data, err := bech32.DecodeAndConvert(treasury) - if err != nil { - return err - } - - builderParams := buildertypes.Params{ - MaxBundleSize: 2, - EscrowAccountAddress: data, - ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, - MinBidIncrement: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, - FrontRunningProtection: true, - ProposerFee: math.LegacyNewDecWithPrec(25, 2), - } - return builderKeeper.SetParams(ctx, builderParams) -} - -func setContractManagerParams(ctx sdk.Context, keeper contractmanagerkeeper.Keeper) error { - cmParams := contractmanagertypes.Params{ - SudoCallGasLimit: contractmanagertypes.DefaultSudoCallGasLimit, - } - return keeper.SetParams(ctx, cmParams) -} - -func migrateCronParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { - store := ctx.KVStore(storeKey) - var currParams crontypes.Params - subspace, _ := paramsKeepers.GetSubspace(crontypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) - - if err := currParams.Validate(); err != nil { - return err - } - - bz := codec.MustMarshal(&currParams) - store.Set(crontypes.ParamsKey, bz) - return nil -} - -func migrateFeeRefunderParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { - store := ctx.KVStore(storeKey) - var currParams feerefundertypes.Params - subspace, _ := paramsKeepers.GetSubspace(feerefundertypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) - - if err := currParams.Validate(); err != nil { - return err - } - - bz := codec.MustMarshal(&currParams) - store.Set(feerefundertypes.ParamsKey, bz) - return nil -} - -func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { - store := ctx.KVStore(storeKey) - var currParams tokenfactorytypes.Params - subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) - currParams.DenomCreationGasConsume = 0 - - if err := currParams.Validate(); err != nil { - return err - } - - bz := codec.MustMarshal(&currParams) - store.Set(tokenfactorytypes.ParamsKey, bz) - return nil -} - -func migrateFeeburnerParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { - store := ctx.KVStore(storeKey) - var currParams feeburnertypes.Params - subspace, _ := paramsKeepers.GetSubspace(feeburnertypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) - - if err := currParams.Validate(); err != nil { - return err - } - - bz := codec.MustMarshal(&currParams) - store.Set(feeburnertypes.ParamsKey, bz) - return nil -} - -func migrateInterchainQueriesParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { - store := ctx.KVStore(storeKey) - var currParams icqtypes.Params - subspace, _ := paramsKeepers.GetSubspace(icqtypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) - - if err := currParams.Validate(); err != nil { - return err - } - - bz := codec.MustMarshal(&currParams) - store.Set(icqtypes.ParamsKey, bz) - return nil -} - -func migrateInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { - store := ctx.KVStore(storeKey) - var currParams interchaintxstypes.Params - subspace, _ := paramsKeepers.GetSubspace(interchaintxstypes.StoreKey) - subspace.GetParamSet(ctx, &currParams) - currParams.RegisterFee = interchaintxstypes.DefaultRegisterFee - - if err := currParams.Validate(); err != nil { - return err - } - - bz := codec.MustMarshal(&currParams) - store.Set(interchaintxstypes.ParamsKey, bz) - return nil -} diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 1b1017b20..a130dae31 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -310,7 +310,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. if err != nil { return nil, nil, errors.Wrap(err, "invalid proposal quantity") } - // here we handle pre-sdk47 style of proposals: param change, upgrade, client update + // here we handle pre-nextupgrade style of proposals: param change, upgrade, client update if m.isLegacyProposal(adminProposal) { resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, adminProposal) if err != nil { diff --git a/x/interchaintxs/types/params.go b/x/interchaintxs/types/params.go index 7a9f54638..8c9ad0e9f 100644 --- a/x/interchaintxs/types/params.go +++ b/x/interchaintxs/types/params.go @@ -17,6 +17,16 @@ var ( DefaultRegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) ) +func ParamKeyTable() paramtypes.KeyTable { + return paramtypes.NewKeyTable( + paramtypes.NewParamSetPair( + KeyMsgSubmitTxMaxMessages, + DefaultMsgSubmitTxMaxMessages, + validateMsgSubmitTxMaxMessages, + ), + ) +} + // NewParams creates a new Params instance func NewParams(msgSubmitTxMaxMessages uint64, registerFee sdk.Coins) Params { return Params{ From 2bcd25a62b73e505bb1efaf5e7072049ec85fb30 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 20 Sep 2023 18:51:26 +0300 Subject: [PATCH 137/307] linter fixes --- app/app.go | 52 +++++++++---------- app/upgrades/nextupgrade/upgrades.go | 4 +- app/upgrades/nextupgrade/upgrades_test.go | 4 +- cmd/neutrond/root.go | 4 +- .../contractmanager/keeper/contractmanager.go | 3 +- testutil/cron/keeper/cron.go | 3 +- testutil/feeburner/keeper/feeburner.go | 3 +- testutil/feerefunder/keeper/fee.go | 3 +- .../keeper/interchainqueries.go | 3 +- .../interchaintxs/keeper/interchaintxs.go | 6 ++- .../interchaintxs/keeper/sudo_middleware.go | 5 +- wasmbinding/test/custom_message_test.go | 6 ++- wasmbinding/wasm.go | 3 +- x/contractmanager/genesis_test.go | 4 +- x/contractmanager/ibc_middleware.go | 5 +- x/contractmanager/ibc_middleware_test.go | 3 +- x/cron/module_simulation.go | 2 +- x/feeburner/module_simulation.go | 2 +- x/interchainqueries/module_simulation.go | 2 +- x/interchainqueries/types/tx.go | 6 ++- x/interchaintxs/keeper/ibc_handlers.go | 6 ++- x/interchaintxs/keeper/ibc_handlers_test.go | 4 +- x/interchaintxs/keeper/keeper.go | 4 +- x/interchaintxs/keeper/msg_server_test.go | 5 +- x/interchaintxs/module_simulation.go | 2 +- x/interchaintxs/types/params.go | 1 + x/tokenfactory/keeper/createdenom.go | 7 +-- x/tokenfactory/keeper/genesis.go | 5 +- x/tokenfactory/keeper/grpc_query.go | 2 +- x/tokenfactory/types/msgs.go | 2 +- x/tokenfactory/types/params.go | 10 ++-- x/transfer/ibc_handlers_test.go | 3 +- 32 files changed, 102 insertions(+), 72 deletions(-) diff --git a/app/app.go b/app/app.go index 2194e8f09..f4421740d 100644 --- a/app/app.go +++ b/app/app.go @@ -217,7 +217,7 @@ var ( buildertypes.ModuleName: nil, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, icatypes.ModuleName: nil, - wasm.ModuleName: {authtypes.Burner}, + wasmtypes.ModuleName: {authtypes.Burner}, interchainqueriesmoduletypes.ModuleName: nil, feetypes.ModuleName: nil, feeburnertypes.ModuleName: nil, @@ -307,7 +307,7 @@ type App struct { ConsensusParamsKeeper consensusparamkeeper.Keeper - WasmKeeper wasm.Keeper + WasmKeeper wasmkeeper.Keeper // mm is the module manager mm *module.Manager @@ -347,30 +347,30 @@ func New( invCheckPeriod uint, encodingConfig appparams.EncodingConfig, appOpts servertypes.AppOptions, - wasmOpts []wasm.Option, + wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *App { appCodec := encodingConfig.Marshaler legacyAmino := encodingConfig.Amino interfaceRegistry := encodingConfig.InterfaceRegistry - config := mempool.NewDefaultAuctionFactory(encodingConfig.TxConfig.TxDecoder()) + cfg := mempool.NewDefaultAuctionFactory(encodingConfig.TxConfig.TxDecoder()) // 0 - unlimited amount of txs maxTx := 0 - mempool := mempool.NewAuctionMempool(encodingConfig.TxConfig.TxDecoder(), encodingConfig.TxConfig.TxEncoder(), maxTx, config) + memPool := mempool.NewAuctionMempool(encodingConfig.TxConfig.TxDecoder(), encodingConfig.TxConfig.TxEncoder(), maxTx, cfg) bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) bApp.SetInterfaceRegistry(interfaceRegistry) - bApp.SetMempool(mempool) + bApp.SetMempool(memPool) keys := sdk.NewKVStoreKeys( authzkeeper.StoreKey, authtypes.StoreKey, banktypes.StoreKey, slashingtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, - interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasm.StoreKey, feetypes.StoreKey, + interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, buildertypes.StoreKey, ) @@ -403,7 +403,7 @@ func New( scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName) scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName) scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName) - scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasm.ModuleName) + scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName) scopedInterTxKeeper := app.CapabilityKeeper.ScopeToModule(interchaintxstypes.ModuleName) scopedCCVConsumerKeeper := app.CapabilityKeeper.ScopeToModule(ccvconsumertypes.ModuleName) @@ -598,7 +598,7 @@ func New( wasmDir := filepath.Join(homePath, "wasm") wasmConfig, err := wasm.ReadWasmConfig(appOpts) if err != nil { - panic(fmt.Sprintf("error while reading wasm config: %s", err)) + panic(fmt.Sprintf("error while reading wasm cfg: %s", err)) } // The last arguments can contain custom message handlers, and custom query handlers, @@ -657,9 +657,9 @@ func New( &wasmkeeper.QueryPlugins{Stargate: wasmkeeper.AcceptListStargateQuerier(wasmbinding.AcceptedStargateQueries(), app.GRPCQueryRouter(), appCodec)}) wasmOpts = append(wasmOpts, queryPlugins) - app.WasmKeeper = wasm.NewKeeper( + app.WasmKeeper = wasmkeeper.NewKeeper( appCodec, - keys[wasm.StoreKey], + keys[wasmtypes.StoreKey], app.AccountKeeper, &app.BankKeeper, nil, @@ -721,7 +721,7 @@ func New( AddRoute(icahosttypes.SubModuleName, icaHostIBCModule). AddRoute(ibctransfertypes.ModuleName, ibcStack). AddRoute(interchaintxstypes.ModuleName, icaControllerStack). - AddRoute(wasm.ModuleName, wasm.NewIBCHandler(app.WasmKeeper, app.IBCKeeper.ChannelKeeper, app.IBCKeeper.ChannelKeeper)). + AddRoute(wasmtypes.ModuleName, wasm.NewIBCHandler(app.WasmKeeper, app.IBCKeeper.ChannelKeeper, app.IBCKeeper.ChannelKeeper)). AddRoute(ccvconsumertypes.ModuleName, consumerModule) app.IBCKeeper.SetRouter(ibcRouter) @@ -792,7 +792,7 @@ func New( interchainqueriesmoduletypes.ModuleName, interchaintxstypes.ModuleName, contractmanagermoduletypes.ModuleName, - wasm.ModuleName, + wasmtypes.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, adminmoduletypes.ModuleName, @@ -823,7 +823,7 @@ func New( interchainqueriesmoduletypes.ModuleName, interchaintxstypes.ModuleName, contractmanagermoduletypes.ModuleName, - wasm.ModuleName, + wasmtypes.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, adminmoduletypes.ModuleName, @@ -859,7 +859,7 @@ func New( interchainqueriesmoduletypes.ModuleName, interchaintxstypes.ModuleName, contractmanagermoduletypes.ModuleName, - wasm.ModuleName, + wasmtypes.ModuleName, feetypes.ModuleName, feeburnertypes.ModuleName, adminmoduletypes.ModuleName, @@ -918,10 +918,10 @@ func New( }, IBCKeeper: app.IBCKeeper, WasmConfig: &wasmConfig, - TXCounterStoreKey: keys[wasm.StoreKey], + TXCounterStoreKey: keys[wasmtypes.StoreKey], ConsumerKeeper: app.ConsumerKeeper, buildKeeper: app.BuilderKeeper, - mempool: mempool, + mempool: memPool, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), }, app.Logger(), @@ -934,7 +934,7 @@ func New( app.SetEndBlocker(app.EndBlocker) handler := proposalhandler.NewProposalHandler( - mempool, + memPool, bApp.Logger(), anteHandler, encodingConfig.TxConfig.TxEncoder(), @@ -946,7 +946,7 @@ func New( checkTxHandler := proposalhandler.NewCheckTxHandler( app.BaseApp, encodingConfig.TxConfig.TxDecoder(), - mempool, + memPool, anteHandler, chainID, ) @@ -989,25 +989,25 @@ func New( func (app *App) setupUpgradeStoreLoaders() { upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() if err != nil { - panic(fmt.Sprintf("failed to read upgrade info from disk %s", err)) + panic(fmt.Sprintf("failed to read upgrd info from disk %s", err)) } if app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { return } - for _, upgrade := range Upgrades { - if upgradeInfo.Name == upgrade.UpgradeName { - app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &upgrade.StoreUpgrades)) + for _, upgrd := range Upgrades { + if upgradeInfo.Name == upgrd.UpgradeName { + app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &upgrd.StoreUpgrades)) } } } func (app *App) setupUpgradeHandlers() { - for _, upgrade := range Upgrades { + for _, upgrd := range Upgrades { app.UpgradeKeeper.SetUpgradeHandler( - upgrade.UpgradeName, - upgrade.CreateUpgradeHandler( + upgrd.UpgradeName, + upgrd.CreateUpgradeHandler( app.mm, app.configurator, &upgrades.UpgradeKeepers{ diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index eeb484e9a..0b6334df7 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -1,8 +1,10 @@ package nextupgrade import ( - "cosmossdk.io/math" "fmt" + + "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 07fb6ea7d..55d5fd6a2 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -1,13 +1,14 @@ package nextupgrade_test import ( + "testing" + crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" - "testing" "github.com/neutron-org/neutron/app/params" @@ -26,7 +27,6 @@ import ( type UpgradeTestSuite struct { testutil.IBCConnectionTestSuite - ctx sdk.Context } func TestKeeperTestSuite(t *testing.T) { diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 8f5f651a5..7674d3652 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -225,7 +225,7 @@ func (ac appCreator) newApp( if err != nil { panic(err) } - var wasmOpts []wasm.Option + var wasmOpts []wasmkeeper.Option if cast.ToBool(appOpts.Get("telemetry.enabled")) { wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer)) } @@ -287,7 +287,7 @@ func (ac appCreator) appExport( } loadLatest := height == -1 - var emptyWasmOpts []wasm.Option + var emptyWasmOpts []wasmkeeper.Option interchainapp = app.New( logger, chainID, diff --git a/testutil/contractmanager/keeper/contractmanager.go b/testutil/contractmanager/keeper/contractmanager.go index 9ef0b75ec..f23aa3282 100644 --- a/testutil/contractmanager/keeper/contractmanager.go +++ b/testutil/contractmanager/keeper/contractmanager.go @@ -1,9 +1,10 @@ package keeper import ( + "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "testing" tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" diff --git a/testutil/cron/keeper/cron.go b/testutil/cron/keeper/cron.go index 85fc35392..04987958c 100644 --- a/testutil/cron/keeper/cron.go +++ b/testutil/cron/keeper/cron.go @@ -1,9 +1,10 @@ package keeper import ( + "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "testing" tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" diff --git a/testutil/feeburner/keeper/feeburner.go b/testutil/feeburner/keeper/feeburner.go index 71f1e9e1c..c5e0c51b9 100644 --- a/testutil/feeburner/keeper/feeburner.go +++ b/testutil/feeburner/keeper/feeburner.go @@ -1,9 +1,10 @@ package keeper import ( + "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "testing" tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" diff --git a/testutil/feerefunder/keeper/fee.go b/testutil/feerefunder/keeper/fee.go index d6ecd9a85..71de9bb33 100644 --- a/testutil/feerefunder/keeper/fee.go +++ b/testutil/feerefunder/keeper/fee.go @@ -1,9 +1,10 @@ package keeper import ( + "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "testing" tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" diff --git a/testutil/interchainqueries/keeper/interchainqueries.go b/testutil/interchainqueries/keeper/interchainqueries.go index c6d3cebb2..eb51ce57d 100644 --- a/testutil/interchainqueries/keeper/interchainqueries.go +++ b/testutil/interchainqueries/keeper/interchainqueries.go @@ -1,9 +1,10 @@ package keeper import ( + "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "testing" ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 8f1c62333..83d4114c2 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -1,9 +1,10 @@ package keeper import ( + "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "testing" tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" @@ -26,7 +27,8 @@ func InterchainTxsKeeper( icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper, bankKeeper types.BankKeeper, - feeburnerKeeper types.FeeBurnerKeeper) (*keeper.Keeper, sdk.Context) { + feeburnerKeeper types.FeeBurnerKeeper, +) (*keeper.Keeper, sdk.Context) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) diff --git a/testutil/interchaintxs/keeper/sudo_middleware.go b/testutil/interchaintxs/keeper/sudo_middleware.go index 5d586f342..8ab8742e1 100644 --- a/testutil/interchaintxs/keeper/sudo_middleware.go +++ b/testutil/interchaintxs/keeper/sudo_middleware.go @@ -1,6 +1,8 @@ package keeper import ( + "testing" + tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" @@ -10,7 +12,6 @@ import ( "github.com/neutron-org/neutron/x/contractmanager" "github.com/neutron-org/neutron/x/contractmanager/types" "github.com/stretchr/testify/require" - "testing" ) func NewSudoLimitWrapper(t testing.TB, cmKeeper types.ContractManagerKeeper, wasmKeeper types.WasmKeeper) (types.WasmKeeper, sdk.Context, *storetypes.KVStoreKey) { @@ -19,7 +20,7 @@ func NewSudoLimitWrapper(t testing.TB, cmKeeper types.ContractManagerKeeper, was stateStore := store.NewCommitMultiStore(db) stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) require.NoError(t, stateStore.LoadLatestVersion()) - + limitWrapper := contractmanager.NewSudoLimitWrapper(cmKeeper, wasmKeeper) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 8b6db4bf0..6008a058f 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -3,9 +3,10 @@ package test import ( "encoding/json" "fmt" + "testing" + keeper2 "github.com/neutron-org/neutron/x/contractmanager/keeper" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" - "testing" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -486,7 +487,8 @@ func (suite *CustomMessengerTestSuite) TestSoftwareUpgradeProposal() { // Craft CancelSubmitAdminProposal message msg, err = json.Marshal(bindings.NeutronMsg{ SubmitAdminProposal: &bindings.SubmitAdminProposal{ - AdminProposal: bindings.AdminProposal{ProposalExecuteMessage: &bindings.ProposalExecuteMessage{Message: executeMsg}}}, + AdminProposal: bindings.AdminProposal{ProposalExecuteMessage: &bindings.ProposalExecuteMessage{Message: executeMsg}}, + }, }) suite.NoError(err) diff --git a/wasmbinding/wasm.go b/wasmbinding/wasm.go index cdb9ec5dd..19312011f 100644 --- a/wasmbinding/wasm.go +++ b/wasmbinding/wasm.go @@ -1,7 +1,6 @@ package wasmbinding import ( - "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" @@ -39,7 +38,7 @@ func RegisterCustomPlugins( CustomMessageDecorator(ictxKeeper, icqKeeper, transfer, adminKeeper, bank, tfk, cronKeeper, contractmanagerKeeper), ) - return []wasm.Option{ + return []wasmkeeper.Option{ queryPluginOpt, messagePluginOpt, } diff --git a/x/contractmanager/genesis_test.go b/x/contractmanager/genesis_test.go index ddfa24682..e7633402a 100644 --- a/x/contractmanager/genesis_test.go +++ b/x/contractmanager/genesis_test.go @@ -1,9 +1,10 @@ package contractmanager_test import ( - "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" + "github.com/neutron-org/neutron/x/contractmanager/keeper" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/stretchr/testify/require" @@ -29,6 +30,7 @@ func TestGenesis(t *testing.T) { channeltypes.Packet{ Sequence: 2, }, nil) + require.NoError(t, err) genesisState := types.GenesisState{ Params: types.DefaultParams(), diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go index 739de0860..1b3370f86 100644 --- a/x/contractmanager/ibc_middleware.go +++ b/x/contractmanager/ibc_middleware.go @@ -1,8 +1,10 @@ package contractmanager import ( - "cosmossdk.io/errors" "fmt" + + "cosmossdk.io/errors" + "github.com/cometbft/cometbft/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" @@ -31,7 +33,6 @@ func (k SudoLimitWrapper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, // Actually we have only one kind of error returned from acknowledgement // maybe later we'll retrieve actual errors from events resp, err = k.WasmKeeper.Sudo(cacheCtx, contractAddress, msg) - }() if err != nil { // the contract either returned an error or panicked with `out of gas` diff --git a/x/contractmanager/ibc_middleware_test.go b/x/contractmanager/ibc_middleware_test.go index 0815be992..991d93af7 100644 --- a/x/contractmanager/ibc_middleware_test.go +++ b/x/contractmanager/ibc_middleware_test.go @@ -2,13 +2,14 @@ package contractmanager_test import ( "fmt" + "testing" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/golang/mock/gomock" test_keeper "github.com/neutron-org/neutron/testutil/interchaintxs/keeper" mock_types "github.com/neutron-org/neutron/testutil/mocks/contractmanager/types" "github.com/neutron-org/neutron/x/contractmanager/types" "github.com/stretchr/testify/require" - "testing" ) var ( diff --git a/x/cron/module_simulation.go b/x/cron/module_simulation.go index 45f4ace31..bd9023e3e 100644 --- a/x/cron/module_simulation.go +++ b/x/cron/module_simulation.go @@ -36,7 +36,7 @@ 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 } diff --git a/x/feeburner/module_simulation.go b/x/feeburner/module_simulation.go index 7eefd95cb..80ab87783 100644 --- a/x/feeburner/module_simulation.go +++ b/x/feeburner/module_simulation.go @@ -39,7 +39,7 @@ 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 } diff --git a/x/interchainqueries/module_simulation.go b/x/interchainqueries/module_simulation.go index 55cef2305..51af522ef 100644 --- a/x/interchainqueries/module_simulation.go +++ b/x/interchainqueries/module_simulation.go @@ -35,7 +35,7 @@ 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 } diff --git a/x/interchainqueries/types/tx.go b/x/interchainqueries/types/tx.go index bb698bf83..eafe7de7d 100644 --- a/x/interchainqueries/types/tx.go +++ b/x/interchainqueries/types/tx.go @@ -15,8 +15,10 @@ const ( MaxKVQueryKeysCount = 32 ) -var _ sdk.Msg = &MsgSubmitQueryResult{} -var _ codectypes.UnpackInterfacesMessage = MsgSubmitQueryResult{} +var ( + _ sdk.Msg = &MsgSubmitQueryResult{} + _ codectypes.UnpackInterfacesMessage = MsgSubmitQueryResult{} +) func (msg MsgSubmitQueryResult) Route() string { return RouterKey diff --git a/x/interchaintxs/keeper/ibc_handlers.go b/x/interchaintxs/keeper/ibc_handlers.go index 1540a8c9a..f9aacea39 100644 --- a/x/interchaintxs/keeper/ibc_handlers.go +++ b/x/interchaintxs/keeper/ibc_handlers.go @@ -1,9 +1,10 @@ package keeper import ( - "github.com/neutron-org/neutron/x/contractmanager/keeper" "time" + "github.com/neutron-org/neutron/x/contractmanager/keeper" + "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/telemetry" @@ -100,6 +101,9 @@ func (k *Keeper) HandleChanOpenAck( CounterpartyChannelID: counterpartyChannelID, CounterpartyVersion: counterpartyVersion, }) + if err != nil { + return errors.Wrapf(sdkerrors.ErrJSONMarshal, "failed to marshal OpenAckDetails: %v", err) + } _, err = k.sudoKeeper.Sudo(ctx, icaOwner.GetContract(), payload) if err != nil { diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index c0a8c40b6..d6fd0d88b 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -2,9 +2,10 @@ package keeper_test import ( "fmt" - "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" + "github.com/neutron-org/neutron/x/contractmanager/keeper" + sdk "github.com/cosmos/cosmos-sdk/types" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -105,7 +106,6 @@ func TestHandleTimeout(t *testing.T) { wmKeeper.EXPECT().Sudo(ctx, contractAddress, msgAck).Return(nil, fmt.Errorf("SudoTimeout error")) err = icak.HandleTimeout(ctx, p, relayerAddress) require.NoError(t, err) - } func TestHandleChanOpenAck(t *testing.T) { diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 43e909e7d..fe13695f3 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -1,8 +1,10 @@ package keeper import ( - "cosmossdk.io/errors" "fmt" + + "cosmossdk.io/errors" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cometbft/cometbft/libs/log" diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index 635464474..bbb3d8d04 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -2,11 +2,12 @@ package keeper_test import ( "fmt" - "github.com/neutron-org/neutron/app/params" - feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" "testing" "time" + "github.com/neutron-org/neutron/app/params" + feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" + icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/keeper" diff --git a/x/interchaintxs/module_simulation.go b/x/interchaintxs/module_simulation.go index be6fb51e8..9bc6f895f 100644 --- a/x/interchaintxs/module_simulation.go +++ b/x/interchaintxs/module_simulation.go @@ -33,7 +33,7 @@ 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 } diff --git a/x/interchaintxs/types/params.go b/x/interchaintxs/types/params.go index 8c9ad0e9f..58ae59bbe 100644 --- a/x/interchaintxs/types/params.go +++ b/x/interchaintxs/types/params.go @@ -2,6 +2,7 @@ package types import ( "fmt" + sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/neutron-org/neutron/app/params" diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index ff84e935c..8123dc2ce 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -3,8 +3,9 @@ package keeper import ( "fmt" + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -93,7 +94,7 @@ func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err e feeCollectorAddr, err := sdk.AccAddressFromBech32(params.FeeCollectorAddress) if err != nil { - return sdkerrors.Wrapf(err, "wrong fee collector address: %v", err) + return errors.Wrapf(err, "wrong fee collector address: %v", err) } err = k.bankKeeper.SendCoins( @@ -103,7 +104,7 @@ func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err e ) if err != nil { - return sdkerrors.Wrap(err, "unable to send coins to fee collector") + return errors.Wrap(err, "unable to send coins to fee collector") } } diff --git a/x/tokenfactory/keeper/genesis.go b/x/tokenfactory/keeper/genesis.go index 8bd6e28ec..9b44f2413 100644 --- a/x/tokenfactory/keeper/genesis.go +++ b/x/tokenfactory/keeper/genesis.go @@ -14,7 +14,10 @@ func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { if genState.Params.DenomCreationFee == nil { genState.Params.DenomCreationFee = sdk.NewCoins() } - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic("failed to init params") + } for _, genDenom := range genState.GetFactoryDenoms() { creator, _, err := types.DeconstructDenom(genDenom.GetDenom()) diff --git a/x/tokenfactory/keeper/grpc_query.go b/x/tokenfactory/keeper/grpc_query.go index ba8fd43cc..30b910749 100644 --- a/x/tokenfactory/keeper/grpc_query.go +++ b/x/tokenfactory/keeper/grpc_query.go @@ -11,7 +11,7 @@ import ( var _ types.QueryServer = Keeper{} -func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (k Keeper) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) params := k.GetParams(sdkCtx) diff --git a/x/tokenfactory/types/msgs.go b/x/tokenfactory/types/msgs.go index eafdc8547..4020c3cf2 100644 --- a/x/tokenfactory/types/msgs.go +++ b/x/tokenfactory/types/msgs.go @@ -106,7 +106,7 @@ func NewMsgBurn(sender string, amount sdk.Coin) *MsgBurn { } // NewMsgBurn creates a message to burn tokens -func NewMsgBurnFrom(sender string, amount sdk.Coin, burnFromAddress string) *MsgBurn { +func NewMsgBurnFrom(sender string, amount sdk.Coin, _ string) *MsgBurn { return &MsgBurn{ Sender: sender, Amount: amount, diff --git a/x/tokenfactory/types/params.go b/x/tokenfactory/types/params.go index 4a109cf73..2e587c27a 100644 --- a/x/tokenfactory/types/params.go +++ b/x/tokenfactory/types/params.go @@ -13,9 +13,9 @@ var ( KeyDenomCreationGasConsume = []byte("DenomCreationGasConsume") KeyFeeCollectorAddress = []byte("FeeCollectorAddress") // We don't want to charge users for denom creation - DefaultDenomCreationFee sdk.Coins = nil - DefaultDenomCreationGasConsume uint64 = 0 - DefaultFeeCollectorAddress = "" + DefaultDenomCreationFee sdk.Coins + DefaultDenomCreationGasConsume uint64 + DefaultFeeCollectorAddress = "" ) // ParamKeyTable the param key table for tokenfactory module. @@ -47,11 +47,11 @@ func (p Params) Validate() error { } if err := validateDenomCreationFee(p.DenomCreationFee); err != nil { - return err + return fmt.Errorf("failed to validate params: %w", err) } if err := validateFeeCollectorAddress(p.FeeCollectorAddress); err != nil { - return err + return fmt.Errorf("failed to validate params: %w", err) } return nil diff --git a/x/transfer/ibc_handlers_test.go b/x/transfer/ibc_handlers_test.go index 03ebab6f7..bdb763b56 100644 --- a/x/transfer/ibc_handlers_test.go +++ b/x/transfer/ibc_handlers_test.go @@ -2,9 +2,10 @@ package transfer_test import ( "fmt" - "github.com/neutron-org/neutron/x/contractmanager/keeper" "testing" + "github.com/neutron-org/neutron/x/contractmanager/keeper" + sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" From 2dc47ebc3404c1e3a216564b752e6e979693f9ef Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 20 Sep 2023 19:05:40 +0300 Subject: [PATCH 138/307] linter fixes --- app/simulation_test.go | 4 ++-- x/contractmanager/keeper/sudo.go | 2 +- x/tokenfactory/types/events.go | 2 +- x/transfer/types/tx.go | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/simulation_test.go b/app/simulation_test.go index ebd049780..1645ec375 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -26,7 +26,7 @@ package app_test // simapp.GetSimulatorFlags() // } // -//type SimApp interface { +// type SimApp interface { // GetBaseApp() *baseapp.BaseApp // AppCodec() codec.Codec // SimulationManager() *module.SimulationManager @@ -51,7 +51,7 @@ package app_test //// `starport chain simulate -v --numBlocks 200 --blockSize 50` //// Running as go benchmark test: //// `go test -benchmem -run=^$ -bench ^BenchmarkSimulation ./app -NumBlocks=200 -BlockSize 50 -Commit=true -Verbose=true -Enabled=true` -//func BenchmarkSimulation(b *testing.B) { +// func BenchmarkSimulation(b *testing.B) { // simapp.FlagEnabledValue = true // simapp.FlagCommitValue = true // diff --git a/x/contractmanager/keeper/sudo.go b/x/contractmanager/keeper/sudo.go index 13a5e9e50..b5e574f57 100644 --- a/x/contractmanager/keeper/sudo.go +++ b/x/contractmanager/keeper/sudo.go @@ -22,7 +22,7 @@ func (k Keeper) HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) func PrepareSudoCallbackMessage(request channeltypes.Packet, ack *channeltypes.Acknowledgement) ([]byte, error) { m := types.MessageSudoCallback{} - if ack != nil && ack.GetError() == "" { + if ack != nil && ack.GetError() == "" { //nolint:gocritic // m.Response = &types.ResponseSudoPayload{ Data: ack.GetResult(), Request: request, diff --git a/x/tokenfactory/types/events.go b/x/tokenfactory/types/events.go index 0ccec062f..d6b18483f 100644 --- a/x/tokenfactory/types/events.go +++ b/x/tokenfactory/types/events.go @@ -5,7 +5,7 @@ const ( AttributeAmount = "amount" AttributeCreator = "creator" AttributeSubdenom = "subdenom" - AttributeNewTokenDenom = "new_token_denom" + AttributeNewTokenDenom = "new_token_denom" //nolint:gosec // token name, not a credential AttributeMintToAddress = "mint_to_address" AttributeBurnFromAddress = "burn_from_address" AttributeTransferFromAddress = "transfer_from_address" diff --git a/x/transfer/types/tx.go b/x/transfer/types/tx.go index 661f74b3f..1d1e1ebb2 100644 --- a/x/transfer/types/tx.go +++ b/x/transfer/types/tx.go @@ -26,6 +26,8 @@ func (msg *MsgTransfer) GetSigners() []sdk.AccAddress { // MsgOrigTransferHandler - 1) helps to bind `/neutron.transfer.Msg/Transfer` as a handler for `ibc.applications.transfer.v1.MsgTransfer` // 2) converts `ibc.applications.transfer.v1.MsgTransfer` into neutron.transfer.MsgTransfer` before processing. +// +//nolint:revive // we cant rearrange arguments since we need to meet the type requirement func MsgOrigTransferHandler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(types.MsgTransfer) if err := dec(in); err != nil { From 66f22723b99b84aeff44d530473d6d157a5d3af8 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 21 Sep 2023 12:56:44 +0300 Subject: [PATCH 139/307] bump cosmos-sdk fork version --- go.mod | 10 +++++++++- go.sum | 22 +++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 3e0034c2f..1f7a107c9 100644 --- a/go.mod +++ b/go.mod @@ -57,12 +57,16 @@ require ( 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 + github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // 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/confio/ics23/go v0.9.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect @@ -84,6 +88,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.21.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.6.0 // indirect @@ -121,6 +126,8 @@ require ( github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/klauspost/compress v1.16.5 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.0 // indirect @@ -145,6 +152,7 @@ require ( github.com/prometheus/procfs v0.10.1 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect github.com/rs/cors v1.8.3 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/spf13/afero v1.9.5 // indirect @@ -183,7 +191,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 - github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230831104547-eda3e09a8b71 + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index d81a204f4..e75dab952 100644 --- a/go.sum +++ b/go.sum @@ -286,6 +286,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= @@ -312,7 +314,7 @@ 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.5.1 h1:mixz5lJX4Hiz4FpqFREJHIXLfaLBntfaJv1h+/jS+Qg= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= @@ -356,6 +358,12 @@ github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b80 github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= 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= @@ -498,6 +506,8 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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.21.0 h1:c9l5F1nPF30JIppulk4veau90PK6Smu3abgVtVQWon4= +github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -506,6 +516,7 @@ github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= 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= @@ -825,6 +836,7 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -928,8 +940,8 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230831104547-eda3e09a8b71 h1:weRB37YM9y7HFyEn6SNI8AZzawU3h23l6BLFrNNqZak= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230831104547-eda3e09a8b71/go.mod h1:R5n+uM7vguVPFap4pgkdvQCT1nVo/OtPwrlAU40rvok= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= @@ -985,6 +997,8 @@ github.com/petermattis/goid v0.0.0-20230518223814-80aa455d8761/go.mod h1:pxMtw7c github.com/philhofer/fwd v1.0.0/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/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= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -1043,7 +1057,9 @@ github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRr github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= 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/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= From e4a00b79b7598cecafaaafe531893e4d0ada3096 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 13:28:31 +0300 Subject: [PATCH 140/307] added storeupgrades --- app/upgrades/nextupgrade/constants.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index e180e71ef..7747b7d51 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -1,7 +1,11 @@ package nextupgrade import ( + "github.com/cosmos/cosmos-sdk/store/types" + consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" "github.com/neutron-org/neutron/app/upgrades" + buildertypes "github.com/skip-mev/pob/x/builder/types" ) const ( @@ -12,4 +16,11 @@ const ( var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: CreateUpgradeHandler, + StoreUpgrades: types.StoreUpgrades{ + Added: []string{ + consensusparamtypes.ModuleName, + crisistypes.ModuleName, + buildertypes.ModuleName, + }, + }, } From ef3177ef00cb909363225fae2dddf4af11595f9b Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 13:52:51 +0300 Subject: [PATCH 141/307] added subspaces --- app/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/app.go b/app/app.go index f4421740d..0793f220e 100644 --- a/app/app.go +++ b/app/app.go @@ -1174,6 +1174,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) paramsKeeper.Subspace(authtypes.ModuleName) + paramsKeeper.Subspace(banktypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(crisistypes.ModuleName) paramsKeeper.Subspace(ibctransfertypes.ModuleName) @@ -1188,6 +1189,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(ccvconsumertypes.ModuleName) // MOTE: legacy subspaces for migration sdk47 only + paramsKeeper.Subspace(wasmtypes.ModuleName) paramsKeeper.Subspace(crontypes.StoreKey).WithKeyTable(crontypes.ParamKeyTable()) paramsKeeper.Subspace(feeburnertypes.StoreKey).WithKeyTable(feeburnertypes.ParamKeyTable()) paramsKeeper.Subspace(feetypes.StoreKey).WithKeyTable(feetypes.ParamKeyTable()) From 248e4cc83c0f5a3d3e4674e52d856c6cdbec2978 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 13:54:54 +0300 Subject: [PATCH 142/307] added subspaces --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 0793f220e..2a5d0559f 100644 --- a/app/app.go +++ b/app/app.go @@ -1174,7 +1174,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) paramsKeeper.Subspace(authtypes.ModuleName) - paramsKeeper.Subspace(banktypes.ModuleName) + paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(crisistypes.ModuleName) paramsKeeper.Subspace(ibctransfertypes.ModuleName) @@ -1189,7 +1189,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(ccvconsumertypes.ModuleName) // MOTE: legacy subspaces for migration sdk47 only - paramsKeeper.Subspace(wasmtypes.ModuleName) + paramsKeeper.Subspace(wasmtypes.ModuleName).WithKeyTable(wasmtypes.ParamKeyTable()) paramsKeeper.Subspace(crontypes.StoreKey).WithKeyTable(crontypes.ParamKeyTable()) paramsKeeper.Subspace(feeburnertypes.StoreKey).WithKeyTable(feeburnertypes.ParamKeyTable()) paramsKeeper.Subspace(feetypes.StoreKey).WithKeyTable(feetypes.ParamKeyTable()) From 02604918907503572431132ad62dfaac546c2502 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 13:58:49 +0300 Subject: [PATCH 143/307] initialized tables --- app/app.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/app.go b/app/app.go index 2a5d0559f..e07cbaa6d 100644 --- a/app/app.go +++ b/app/app.go @@ -1173,20 +1173,20 @@ func (app *App) RegisterTendermintService(clientCtx client.Context) { func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper { paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) - paramsKeeper.Subspace(authtypes.ModuleName) + paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable()) paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) - paramsKeeper.Subspace(slashingtypes.ModuleName) - paramsKeeper.Subspace(crisistypes.ModuleName) - paramsKeeper.Subspace(ibctransfertypes.ModuleName) + paramsKeeper.Subspace(slashingtypes.ModuleName).WithKeyTable(slashingtypes.ParamKeyTable()) + paramsKeeper.Subspace(crisistypes.ModuleName).WithKeyTable(crisistypes.ParamKeyTable()) + paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable()) paramsKeeper.Subspace(ibchost.ModuleName) - paramsKeeper.Subspace(icacontrollertypes.SubModuleName) - paramsKeeper.Subspace(icahosttypes.SubModuleName) + paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) + paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) paramsKeeper.Subspace(globalfee.ModuleName) - paramsKeeper.Subspace(ccvconsumertypes.ModuleName) + paramsKeeper.Subspace(ccvconsumertypes.ModuleName).WithKeyTable(ccvconsumertypes.ParamKeyTable()) // MOTE: legacy subspaces for migration sdk47 only paramsKeeper.Subspace(wasmtypes.ModuleName).WithKeyTable(wasmtypes.ParamKeyTable()) From febf3cfd60e930affa18c895700c431e12b5c8aa Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 14:19:19 +0300 Subject: [PATCH 144/307] upgrade fix --- app/upgrades/nextupgrade/upgrades.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 0b6334df7..05961ad3d 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,6 +2,7 @@ package nextupgrade import ( "fmt" + icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" "cosmossdk.io/math" @@ -48,7 +49,7 @@ func CreateUpgradeHandler( ctx.Logger().Info("Migrating channel capability...") // https://github.com/cosmos/ibc-go/blob/v7.0.1/docs/migrations/v5-to-v6.md#upgrade-proposal - if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, interchaintxstypes.ModuleName); err != nil { + if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, icacontrollertypes.SubModuleName); err != nil { return nil, err } From 15a6188e0b7aca7228586b4a3fc4f5486548b808 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 16:24:54 +0300 Subject: [PATCH 145/307] upgrades fixes --- app/app.go | 3 ++- app/upgrades/nextupgrade/upgrades.go | 35 ++++++++-------------------- x/transfer/module.go | 10 ++++++++ 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/app/app.go b/app/app.go index e07cbaa6d..370bfc0b2 100644 --- a/app/app.go +++ b/app/app.go @@ -2,6 +2,7 @@ package app import ( "fmt" + globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" "io" "io/fs" "net/http" @@ -1184,7 +1185,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) - paramsKeeper.Subspace(globalfee.ModuleName) + paramsKeeper.Subspace(globalfee.ModuleName).WithKeyTable(globalfeetypes.ParamKeyTable()) paramsKeeper.Subspace(ccvconsumertypes.ModuleName).WithKeyTable(ccvconsumertypes.ParamKeyTable()) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 05961ad3d..dd635148b 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -1,11 +1,8 @@ package nextupgrade import ( - "fmt" - icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" - "cosmossdk.io/math" - + "fmt" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -41,15 +38,9 @@ func CreateUpgradeHandler( codec codec.Codec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - ctx.Logger().Info("Starting module migrations...") - vm, err := mm.RunMigrations(ctx, configurator, vm) - if err != nil { - return vm, err - } - ctx.Logger().Info("Migrating channel capability...") // https://github.com/cosmos/ibc-go/blob/v7.0.1/docs/migrations/v5-to-v6.md#upgrade-proposal - if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, icacontrollertypes.SubModuleName); err != nil { + if err := v6.MigrateICS27ChannelCapability(ctx, codec, storeKeys.GetKey(capabilitytypes.StoreKey), keepers.CapabilityKeeper, interchaintxstypes.ModuleName); err != nil { return nil, err } @@ -84,7 +75,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Setting pob params...") - err = setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) + err := setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) if err != nil { return nil, err } @@ -109,6 +100,12 @@ func CreateUpgradeHandler( return vm, err } + ctx.Logger().Info("Starting module migrations...") + vm, err = mm.RunMigrations(ctx, configurator, vm) + if err != nil { + return vm, err + } + ctx.Logger().Info("Upgrade complete") return vm, nil } @@ -173,8 +170,8 @@ func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keepe store := ctx.KVStore(storeKey) var currParams tokenfactorytypes.Params subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) + subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationGasConsume, uint64(0)) subspace.GetParamSet(ctx, &currParams) - currParams.DenomCreationGasConsume = 0 if err := currParams.Validate(); err != nil { return err @@ -234,18 +231,6 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { ctx.Logger().Info("Implementing GlobalFee Params...") - if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMinGasPrices) { - return fmt.Errorf("minimum_gas_prices param not found") - } - - if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes) { - return fmt.Errorf("bypass_min_fee_msg_types param not found") - } - - if !keepers.GlobalFeeSubspace.Has(ctx, types.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage) { - return fmt.Errorf("max_total_bypass_min_fee_msg_gas_usage param not found") - } - // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin // As of June 22nd, 2023 this is // 0.9untrn,0.026ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,0.25ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349 diff --git a/x/transfer/module.go b/x/transfer/module.go index 00a0cda63..10da394eb 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -3,6 +3,7 @@ package transfer import ( "cosmossdk.io/core/appmodule" "cosmossdk.io/errors" + "fmt" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -96,6 +97,15 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { neutrontypes.RegisterMsgServer(cfg.MsgServer(), am.keeper) cfg.MsgServer().RegisterService(&neutrontypes.MsgServiceDescOrig, am.keeper) + + m := keeper.NewMigrator(am.keeper.Keeper) + if err := cfg.RegisterMigration(types.ModuleName, 1, m.MigrateTraces); err != nil { + panic(fmt.Sprintf("failed to migrate transfer app from version 1 to 2: %v", err)) + } + + if err := cfg.RegisterMigration(types.ModuleName, 2, m.MigrateTotalEscrowForDenom); err != nil { + panic(fmt.Sprintf("failed to migrate transfer app from version 2 to 3: %v", err)) + } } type AppModuleBasic struct { From 8b7cbf363bd238f2eccaddb359dc734022b33736 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 21 Sep 2023 16:39:02 +0300 Subject: [PATCH 146/307] upgrade fixes --- app/upgrades/nextupgrade/upgrades.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index dd635148b..22d90ee68 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -44,6 +44,12 @@ func CreateUpgradeHandler( return nil, err } + ctx.Logger().Info("Starting module migrations...") + vm, err := mm.RunMigrations(ctx, configurator, vm) + if err != nil { + return vm, err + } + ctx.Logger().Info("Migrating cron module parameters...") if err := migrateCronParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(crontypes.StoreKey), codec); err != nil { return nil, err @@ -75,7 +81,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Setting pob params...") - err := setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) + err = setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) if err != nil { return nil, err } @@ -100,12 +106,6 @@ func CreateUpgradeHandler( return vm, err } - ctx.Logger().Info("Starting module migrations...") - vm, err = mm.RunMigrations(ctx, configurator, vm) - if err != nil { - return vm, err - } - ctx.Logger().Info("Upgrade complete") return vm, nil } From 261f47c30dcfc7cd51eef2b78bd770abd059208b Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 21 Sep 2023 19:13:29 +0300 Subject: [PATCH 147/307] AdminModule upgrade handler and tests --- app/app.go | 4 ++- app/upgrades/nextupgrade/upgrades.go | 24 +++++++++++++++--- app/upgrades/nextupgrade/upgrades_test.go | 30 ++++++++++++++++++++++- app/upgrades/types.go | 5 +++- 4 files changed, 57 insertions(+), 6 deletions(-) diff --git a/app/app.go b/app/app.go index 370bfc0b2..9d4527ad7 100644 --- a/app/app.go +++ b/app/app.go @@ -2,13 +2,14 @@ package app import ( "fmt" - globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" "io" "io/fs" "net/http" "os" "path/filepath" + globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + "github.com/cosmos/interchain-security/v3/testutil/integration" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -1021,6 +1022,7 @@ func (app *App) setupUpgradeHandlers() { CapabilityKeeper: app.CapabilityKeeper, BuilderKeeper: app.BuilderKeeper, ContractManager: app.ContractManagerKeeper, + AdminModule: app.AdminmoduleKeeper, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), CcvConsumerSubspace: app.GetSubspace(ccvconsumertypes.ModuleName), }, diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 22d90ee68..e022bbc91 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -1,8 +1,9 @@ package nextupgrade import ( - "cosmossdk.io/math" "fmt" + + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -16,6 +17,9 @@ import ( ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" + buildertypes "github.com/skip-mev/pob/x/builder/types" + "github.com/neutron-org/neutron/app/upgrades" contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" @@ -26,8 +30,6 @@ import ( icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" - buildertypes "github.com/skip-mev/pob/x/builder/types" ) func CreateUpgradeHandler( @@ -106,6 +108,12 @@ func CreateUpgradeHandler( return vm, err } + err = migrateAdminModule(ctx, keepers) + if err != nil { + ctx.Logger().Error("failed to migrate admin module", "err", err) + return vm, err + } + ctx.Logger().Info("Upgrade complete") return vm, nil } @@ -281,3 +289,13 @@ func migrateRewardDenoms(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) erro return nil } + +func migrateAdminModule(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { + ctx.Logger().Info("Migrating admin module...") + + keepers.AdminModule.SetProposalID(ctx, 1) + + ctx.Logger().Info("Finished migrating admin module") + + return nil +} diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 55d5fd6a2..f3146ae7a 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -3,6 +3,8 @@ package nextupgrade_test import ( "testing" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" @@ -20,9 +22,10 @@ import ( globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + "github.com/stretchr/testify/suite" + "github.com/neutron-org/neutron/app/upgrades/nextupgrade" "github.com/neutron-org/neutron/testutil" - "github.com/stretchr/testify/suite" ) type UpgradeTestSuite struct { @@ -138,3 +141,28 @@ func (suite *UpgradeTestSuite) TestRewardDenomsUpgrade() { requiredDenoms := []string{params.DefaultDenom, "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349"} suite.Require().Equal(requiredDenoms, denoms) } + +func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { + var ( + app = suite.GetNeutronZoneApp(suite.ChainA) + ctx = suite.ChainA.GetContext() + ) + + //emulate lack of ProposalIDKey like on a real mainnet + store := ctx.KVStore(app.GetKey(adminmoduletypes.StoreKey)) + store.Delete(adminmoduletypes.ProposalIDKey) + + _, err := app.AdminmoduleKeeper.GetProposalID(ctx) + suite.Require().Error(err) + + upgrade := upgradetypes.Plan{ + Name: nextupgrade.UpgradeName, + Info: "some text here", + Height: 100, + } + app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) + + id, err := app.AdminmoduleKeeper.GetProposalID(ctx) + suite.Require().NoError(err) + suite.Require().Equal(uint64(1), id) +} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index da3ed055d..6b545d098 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -1,6 +1,7 @@ package upgrades import ( + adminmodulekeeper "github.com/cosmos/admin-module/x/adminmodule/keeper" "github.com/cosmos/cosmos-sdk/codec" store "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" @@ -8,12 +9,13 @@ import ( paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + builderkeeper "github.com/skip-mev/pob/x/builder/keeper" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" icqkeeper "github.com/neutron-org/neutron/x/interchainqueries/keeper" tokenfactorykeeper "github.com/neutron-org/neutron/x/tokenfactory/keeper" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) @@ -44,6 +46,7 @@ type UpgradeKeepers struct { CapabilityKeeper *capabilitykeeper.Keeper BuilderKeeper builderkeeper.Keeper ContractManager contractmanagerkeeper.Keeper + AdminModule adminmodulekeeper.Keeper // subspaces GlobalFeeSubspace paramtypes.Subspace CcvConsumerSubspace paramtypes.Subspace From ae6d38e1e3fdc597ec20764526854386e9d7bd33 Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 27 Sep 2023 19:31:11 +0400 Subject: [PATCH 148/307] feat: increase limit of wasm contracts size to 3mb --- app/app.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/app.go b/app/app.go index 9d4527ad7..1299b528c 100644 --- a/app/app.go +++ b/app/app.go @@ -352,6 +352,8 @@ func New( wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *App { + overrideWasmVariables() + appCodec := encodingConfig.Marshaler legacyAmino := encodingConfig.Amino interfaceRegistry := encodingConfig.InterfaceRegistry @@ -1249,3 +1251,11 @@ func (app *App) GetConsumerKeeper() ccvconsumerkeeper.Keeper { func (app *App) RegisterNodeService(clientCtx client.Context) { nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter()) } + +// overrideWasmVariables overrides the wasm variables to: +// - allow for larger wasm files +func overrideWasmVariables() { + // Override Wasm size limitation from WASMD. + wasmtypes.MaxWasmSize = 3 * 1024 * 1024 + wasmtypes.MaxProposalWasmSize = wasmtypes.MaxWasmSize +} From 9b627a018e98d6601aa6d606da365fec20835985 Mon Sep 17 00:00:00 2001 From: Nikhil Vasan Date: Tue, 3 Oct 2023 13:29:57 -0700 Subject: [PATCH 149/307] block-sdk integration --- app/ante_handler.go | 39 +++++--- app/app.go | 123 ++++++++++++++++++-------- app/upgrades/nextupgrade/constants.go | 4 +- app/upgrades/nextupgrade/upgrades.go | 12 +-- app/upgrades/types.go | 4 +- go.mod | 51 +++++------ go.sum | 113 +++++++++++------------ 7 files changed, 205 insertions(+), 141 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index 88a1845fe..8c966d971 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -15,9 +15,9 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" - "github.com/skip-mev/pob/mempool" - ante2 "github.com/skip-mev/pob/x/builder/ante" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" + auctionante "github.com/skip-mev/block-sdk/x/auction/ante" + auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" + blocksdkanteignore "github.com/skip-mev/block-sdk/block/utils" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -29,9 +29,14 @@ type HandlerOptions struct { ConsumerKeeper ibcconsumerkeeper.Keeper WasmConfig *wasmTypes.WasmConfig TXCounterStoreKey storetypes.StoreKey - buildKeeper builderkeeper.Keeper - txEncoder sdk.TxEncoder - mempool *mempool.AuctionMempool + + // block-sdk deps + // Auction deps + AuctionKeeper auctionkeeper.Keeper + TxEncoder sdk.TxEncoder + MEVLane auctionante.MEVLane + FreeLanes []blocksdkanteignore.Lane + Mempool auctionante.Mempool // globalFee GlobalFeeSubspace paramtypes.Subspace @@ -57,6 +62,13 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, return nil, errors.Wrap(gaiaerrors.ErrNotFound, "globalfee param store is required for AnteHandler") } + if options.Mempool == nil { + return nil, errors.Wrap(gaiaerrors.ErrLogic, "mempool is required for AnteHandler") + } + if options.MEVLane == nil { + return nil, errors.Wrap(gaiaerrors.ErrLogic, "mev lane is required for AnteHandler") + } + sigGasConsumer := options.SigGasConsumer if sigGasConsumer == nil { sigGasConsumer = ante.DefaultSigVerificationGasConsumer @@ -78,7 +90,11 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, // otherwise you will get panic globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), - ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), + // we ignore the fee-deductor for any transactions that match the given free lanes + blocksdkanteignore.NewIgnoreDecorator( + ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), + options.FreeLanes... + ), // SetPubKeyDecorator must be called before all signature verification decorators ante.NewSetPubKeyDecorator(options.AccountKeeper), ante.NewValidateSigCountDecorator(options.AccountKeeper), @@ -86,10 +102,11 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler), ante.NewIncrementSequenceDecorator(options.AccountKeeper), ibcante.NewRedundantRelayDecorator(options.IBCKeeper), - ante2.NewBuilderDecorator( - options.buildKeeper, - options.txEncoder, - options.mempool, + auctionante.NewAuctionDecorator( + options.AuctionKeeper, + options.TxEncoder, + options.MEVLane, + options.Mempool, ), } diff --git a/app/app.go b/app/app.go index 9d4527ad7..250860717 100644 --- a/app/app.go +++ b/app/app.go @@ -17,12 +17,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" tendermint "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" - proposalhandler "github.com/skip-mev/pob/abci" - "github.com/skip-mev/pob/mempool" - "github.com/skip-mev/pob/x/builder" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" - rewardsaddressprovider "github.com/skip-mev/pob/x/builder/rewards_address_provider" - buildertypes "github.com/skip-mev/pob/x/builder/types" "github.com/neutron-org/neutron/docs" @@ -155,6 +149,23 @@ import ( "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router" routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + + // Block-sdk imports + blocksdkabci "github.com/skip-mev/block-sdk/abci" + blocksdk "github.com/skip-mev/block-sdk/block" + "github.com/skip-mev/block-sdk/block/base" + blocksdkbase "github.com/skip-mev/block-sdk/block/base" + blocksdkanteignore "github.com/skip-mev/block-sdk/block/utils" + base_lane "github.com/skip-mev/block-sdk/lanes/base" + "github.com/skip-mev/block-sdk/lanes/free" + free_lane "github.com/skip-mev/block-sdk/lanes/free" + mev_lane "github.com/skip-mev/block-sdk/lanes/mev" + "github.com/skip-mev/block-sdk/x/auction" + auctionante "github.com/skip-mev/block-sdk/x/auction/ante" + auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" + rewardsaddressprovider "github.com/skip-mev/block-sdk/x/auction/rewards" + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" + signer_extraction_adapter "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter" ) const ( @@ -209,14 +220,14 @@ var ( ), ibchooks.AppModuleBasic{}, router.AppModuleBasic{}, - builder.AppModuleBasic{}, + auction.AppModuleBasic{}, globalfee.AppModule{}, ) // module account permissions maccPerms = map[string][]string{ authtypes.FeeCollectorName: nil, - buildertypes.ModuleName: nil, + auctiontypes.ModuleName: nil, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, icatypes.ModuleName: nil, wasmtypes.ModuleName: {authtypes.Burner}, @@ -271,8 +282,8 @@ type App struct { AdminmoduleKeeper adminmodulekeeper.Keeper AuthzKeeper authzkeeper.Keeper BankKeeper bankkeeper.BaseKeeper - // BuilderKeeper is the keeper that handles processing auction transactions - BuilderKeeper builderkeeper.Keeper + // AuctionKeeper is the keeper that handles processing auction transactions + AuctionKeeper auctionkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper SlashingKeeper slashingkeeper.Keeper CrisisKeeper crisiskeeper.Keeper @@ -318,7 +329,12 @@ type App struct { sm *module.SimulationManager // Custom checkTx handler - checkTxHandler proposalhandler.CheckTx + checkTxHandler mev_lane.CheckTx + + // Lanes + Mempool auctionante.Mempool + MEVLane auctionante.MEVLane + FreeLanes []blocksdkanteignore.Lane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -356,16 +372,10 @@ func New( legacyAmino := encodingConfig.Amino interfaceRegistry := encodingConfig.InterfaceRegistry - cfg := mempool.NewDefaultAuctionFactory(encodingConfig.TxConfig.TxDecoder()) - // 0 - unlimited amount of txs - maxTx := 0 - memPool := mempool.NewAuctionMempool(encodingConfig.TxConfig.TxDecoder(), encodingConfig.TxConfig.TxEncoder(), maxTx, cfg) - bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) bApp.SetInterfaceRegistry(interfaceRegistry) - bApp.SetMempool(memPool) keys := sdk.NewKVStoreKeys( authzkeeper.StoreKey, authtypes.StoreKey, banktypes.StoreKey, slashingtypes.StoreKey, @@ -374,7 +384,7 @@ func New( icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, - crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, buildertypes.StoreKey, + crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, feetypes.MemStoreKey) @@ -587,9 +597,9 @@ func New( app.TokenFactoryKeeper.Hooks(), )) - app.BuilderKeeper = builderkeeper.NewKeeperWithRewardsAddressProvider( + app.AuctionKeeper = auctionkeeper.NewKeeperWithRewardsAddressProvider( appCodec, - keys[buildertypes.StoreKey], + keys[auctiontypes.StoreKey], app.AccountKeeper, &app.BankKeeper, // 25% of rewards should be sent to the redistribute address @@ -765,7 +775,7 @@ func New( tokenfactory.NewAppModule(appCodec, *app.TokenFactoryKeeper, app.AccountKeeper, app.BankKeeper), cronModule, globalfee.NewAppModule(app.GetSubspace(globalfee.ModuleName)), - builder.NewAppModule(appCodec, app.BuilderKeeper), + auction.NewAppModule(appCodec, app.AuctionKeeper), crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them ) @@ -774,7 +784,7 @@ func New( // CanWithdrawInvariant invariant. // NOTE: staking module is required if HistoricalEntries param > 0 app.mm.SetOrderBeginBlockers( - buildertypes.ModuleName, + auctiontypes.ModuleName, upgradetypes.ModuleName, capabilitytypes.ModuleName, slashingtypes.ModuleName, @@ -805,7 +815,7 @@ func New( ) app.mm.SetOrderEndBlockers( - buildertypes.ModuleName, + auctiontypes.ModuleName, crisistypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, @@ -841,7 +851,7 @@ func New( // so that other modules that want to create or claim capabilities afterwards in InitChain // can do so safely. app.mm.SetOrderInitGenesis( - buildertypes.ModuleName, + auctiontypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, ibctransfertypes.ModuleName, @@ -909,6 +919,46 @@ func New( app.SetInitChainer(app.InitChainer) app.SetBeginBlocker(app.BeginBlocker) + // initialize block-sdk Mempool + maxTxs := 0 // no limit + cfg := blocksdkbase.LaneConfig{ + Logger: app.Logger(), + TxDecoder: app.GetTxConfig().TxDecoder(), + TxEncoder: app.GetTxConfig().TxEncoder(), + SignerExtractor: signer_extraction_adapter.NewDefaultAdapter(), + MaxBlockSpace: sdk.ZeroDec(), + MaxTxs: maxTxs, + } + + baseLane := base_lane.NewDefaultLane(cfg) + + freeLane := free_lane.NewFreeLane( + cfg, + base.DefaultTxPriority(), + free.DefaultMatchHandler(), // modify this match-handler to determine any other transactions that the chain would like to be free + ) + app.FreeLanes = []blocksdkanteignore.Lane{freeLane} + + mevLane := mev_lane.NewMEVLane( + cfg, + mev_lane.NewDefaultAuctionFactory(app.GetTxConfig().TxDecoder(), signer_extraction_adapter.NewDefaultAdapter()), + ) + app.MEVLane = mevLane + // initialize mempool + mempool := blocksdk.NewLanedMempool( + app.Logger(), + true, + []blocksdk.Lane{ + mevLane, // mev-lane is first to prioritize bids being placed at the TOB + freeLane, // free-lane is second to prioritize free txs + baseLane, // finally, all the rest of txs... + }..., + ) + + // set the mempool first + app.SetMempool(mempool) + app.Mempool = mempool + anteHandler, err := NewAnteHandler( HandlerOptions{ HandlerOptions: ante.HandlerOptions{ @@ -922,9 +972,12 @@ func New( WasmConfig: &wasmConfig, TXCounterStoreKey: keys[wasmtypes.StoreKey], ConsumerKeeper: app.ConsumerKeeper, - buildKeeper: app.BuilderKeeper, - mempool: memPool, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), + AuctionKeeper: app.AuctionKeeper, + TxEncoder: app.GetTxConfig().TxEncoder(), + Mempool: app.Mempool, + MEVLane: app.MEVLane, + FreeLanes: app.FreeLanes, }, app.Logger(), ) @@ -935,20 +988,18 @@ func New( app.SetAnteHandler(anteHandler) app.SetEndBlocker(app.EndBlocker) - handler := proposalhandler.NewProposalHandler( - memPool, - bApp.Logger(), - anteHandler, - encodingConfig.TxConfig.TxEncoder(), - encodingConfig.TxConfig.TxDecoder(), + handler := blocksdkabci.NewProposalHandler( + app.Logger(), + app.GetTxConfig().TxDecoder(), + mempool, ) app.SetPrepareProposal(handler.PrepareProposalHandler()) app.SetProcessProposal(handler.ProcessProposalHandler()) - checkTxHandler := proposalhandler.NewCheckTxHandler( + checkTxHandler := mev_lane.NewCheckTxHandler( app.BaseApp, encodingConfig.TxConfig.TxDecoder(), - memPool, + mevLane, anteHandler, chainID, ) @@ -1020,7 +1071,7 @@ func (app *App) setupUpgradeHandlers() { SlashingKeeper: app.SlashingKeeper, ParamsKeeper: app.ParamsKeeper, CapabilityKeeper: app.CapabilityKeeper, - BuilderKeeper: app.BuilderKeeper, + AuctionKeeper: app.AuctionKeeper, ContractManager: app.ContractManagerKeeper, AdminModule: app.AdminmoduleKeeper, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), @@ -1042,7 +1093,7 @@ func (app *App) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx { } // SetCheckTx sets the checkTxHandler for the app. -func (app *App) SetCheckTx(handler proposalhandler.CheckTx) { +func (app *App) SetCheckTx(handler mev_lane.CheckTx) { app.checkTxHandler = handler } diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index 7747b7d51..e082115a3 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -5,7 +5,7 @@ import ( consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" "github.com/neutron-org/neutron/app/upgrades" - buildertypes "github.com/skip-mev/pob/x/builder/types" + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" ) const ( @@ -20,7 +20,7 @@ var Upgrade = upgrades.Upgrade{ Added: []string{ consensusparamtypes.ModuleName, crisistypes.ModuleName, - buildertypes.ModuleName, + auctiontypes.ModuleName, }, }, } diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index e022bbc91..883627b1d 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -17,8 +17,8 @@ import ( ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" - buildertypes "github.com/skip-mev/pob/x/builder/types" + auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" "github.com/neutron-org/neutron/app/upgrades" contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" @@ -83,7 +83,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Setting pob params...") - err = setPobParams(ctx, keepers.FeeBurnerKeeper, keepers.BuilderKeeper) + err = setAuctionParams(ctx, keepers.FeeBurnerKeeper, keepers.AuctionKeeper) if err != nil { return nil, err } @@ -119,14 +119,14 @@ func CreateUpgradeHandler( } } -func setPobParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, builderKeeper builderkeeper.Keeper) error { +func setAuctionParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, auctionKeeper auctionkeeper.Keeper) error { treasury := feeBurnerKeeper.GetParams(ctx).TreasuryAddress _, data, err := bech32.DecodeAndConvert(treasury) if err != nil { return err } - builderParams := buildertypes.Params{ + auctionParams := auctiontypes.Params{ MaxBundleSize: 2, EscrowAccountAddress: data, ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, @@ -134,7 +134,7 @@ func setPobParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, buil FrontRunningProtection: true, ProposerFee: math.LegacyNewDecWithPrec(25, 2), } - return builderKeeper.SetParams(ctx, builderParams) + return auctionKeeper.SetParams(ctx, auctionParams) } func setContractManagerParams(ctx sdk.Context, keeper contractmanagerkeeper.Keeper) error { diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 6b545d098..406e31e4a 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -9,7 +9,7 @@ import ( paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - builderkeeper "github.com/skip-mev/pob/x/builder/keeper" + auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" @@ -44,7 +44,7 @@ type UpgradeKeepers struct { SlashingKeeper slashingkeeper.Keeper ParamsKeeper paramskeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper - BuilderKeeper builderkeeper.Keeper + AuctionKeeper auctionkeeper.Keeper ContractManager contractmanagerkeeper.Keeper AdminModule adminmodulekeeper.Keeper // subspaces diff --git a/go.mod b/go.mod index 1f7a107c9..25335358b 100644 --- a/go.mod +++ b/go.mod @@ -5,8 +5,8 @@ go 1.20 require ( cosmossdk.io/core v0.5.1 cosmossdk.io/errors v1.0.0 - cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca - cosmossdk.io/math v1.0.1 + cosmossdk.io/log v1.2.1 + cosmossdk.io/math v1.1.2 github.com/CosmWasm/wasmd v0.41.0 github.com/CosmWasm/wasmvm v1.3.0 github.com/armon/go-metrics v0.4.1 @@ -14,7 +14,7 @@ require ( github.com/cometbft/cometbft-db v0.8.0 github.com/cosmos/admin-module v0.0.0-20220204080909-475a98e03f31 github.com/cosmos/cosmos-proto v1.0.0-beta.2 - github.com/cosmos/cosmos-sdk v0.47.4 + github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 @@ -28,38 +28,38 @@ require ( github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 - github.com/rs/zerolog v1.29.1 - github.com/skip-mev/pob v1.0.3 + github.com/rs/zerolog v1.30.0 + github.com/skip-mev/block-sdk v1.0.0 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 - google.golang.org/grpc v1.56.2 + google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 + google.golang.org/grpc v1.58.2 gopkg.in/yaml.v2 v2.4.0 ) require ( cloud.google.com/go v0.110.4 // indirect - cloud.google.com/go/compute v1.20.1 // indirect + cloud.google.com/go/compute v1.21.0 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.0 // indirect + cloud.google.com/go/iam v1.1.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/api v0.3.1 // indirect - cosmossdk.io/depinject v1.0.0-alpha.3 // indirect + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect - github.com/aws/aws-sdk-go v1.44.203 // indirect + github.com/aws/aws-sdk-go v1.44.224 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect - github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cenkalti/backoff/v4 v4.2.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chzyer/readline v1.5.1 // indirect @@ -88,7 +88,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/getsentry/sentry-go v0.21.0 // indirect + github.com/getsentry/sentry-go v0.23.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.6.0 // indirect @@ -125,10 +125,10 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.16.5 // 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/lib/pq v1.10.7 // indirect + github.com/lib/pq v1.10.9 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.0 // indirect github.com/magiconair/properties v1.8.7 // indirect @@ -149,10 +149,10 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_model v0.4.0 // indirect github.com/prometheus/common v0.44.0 // indirect - github.com/prometheus/procfs v0.10.1 // indirect + github.com/prometheus/procfs v0.11.0 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/rogpeppe/go-internal v1.10.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/cors v1.8.3 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/spf13/afero v1.9.5 // indirect @@ -166,17 +166,18 @@ require ( github.com/zondax/ledger-go v0.14.1 // indirect go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.11.0 // indirect - golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect - golang.org/x/net v0.12.0 // indirect - golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sys v0.10.0 // indirect - golang.org/x/term v0.10.0 // indirect - golang.org/x/text v0.11.0 // indirect + golang.org/x/crypto v0.12.0 // indirect + golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect + golang.org/x/net v0.14.0 // indirect + golang.org/x/oauth2 v0.10.0 // indirect + golang.org/x/sync v0.3.0 // indirect + golang.org/x/sys v0.11.0 // indirect + golang.org/x/term v0.11.0 // indirect + golang.org/x/text v0.12.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-20230706204954-ccb25ca9f130 // indirect + google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index e75dab952..d561fd9fa 100644 --- a/go.sum +++ b/go.sum @@ -73,8 +73,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.20.1 h1:6aKEtlUiwEpJzM001l0yFkpXmUVXaN8W+fbkb2AZNbg= -cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute v1.21.0 h1:JNBsyXVoOoNJtTQcnEY5uYpZIbeCTYIeDe0Xh1bySMk= +cloud.google.com/go/compute v1.21.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= 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= @@ -114,8 +114,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.0 h1:67gSqaPukx7O8WLLHMa0PNs3EBGd2eE4d+psbO/CO94= -cloud.google.com/go/iam v1.1.0/go.mod h1:nxdHjaKfCr7fNYx/HJMM8LgiMugmveWlkatear5gVyk= +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/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,14 +195,14 @@ 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.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= -cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= +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.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= -cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca h1:msenprh2BLLRwNT7zN56TbBHOGk/7ARQckXHxXyvjoQ= -cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca/go.mod h1:PkIAKXZvaxrTRc++z53XMRvFk8AcGGWYHcMIPzVYX9c= -cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= -cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= +cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk= +cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/math v1.1.2 h1:ORZetZCTyWkI5GlZ6CZS28fMHi83ZYf+A2vVnHNzZBM= +cosmossdk.io/math v1.1.2/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= 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= @@ -242,7 +242,6 @@ github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -264,8 +263,8 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l 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/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 v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ= +github.com/aws/aws-sdk-go v1.44.224/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= @@ -321,8 +320,8 @@ github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= -github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= +github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= @@ -356,7 +355,6 @@ github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 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/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= 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= @@ -422,8 +420,6 @@ github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJF 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/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= -github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= @@ -506,8 +502,8 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS 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.21.0 h1:c9l5F1nPF30JIppulk4veau90PK6Smu3abgVtVQWon4= -github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +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/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -558,7 +554,6 @@ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= 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= @@ -824,8 +819,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.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= -github.com/klauspost/compress v1.16.5/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/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= @@ -848,8 +843,8 @@ github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2 github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= -github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= 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= @@ -1041,15 +1036,14 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= -github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/procfs v0.11.0 h1:5EAgkfkMl659uZPbe9AS2N68a7Cc1TJbPEuGzFuRbyk= +github.com/prometheus/procfs v0.11.0/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= 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/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= 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= @@ -1058,14 +1052,14 @@ github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6So github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -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.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.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/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/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c= +github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= 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= @@ -1084,9 +1078,9 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/skip-mev/pob v1.0.3 h1:cipN/WUU+xfYbcfUQ4EefSvl3ItocsKgRn3tOtRF2OE= -github.com/skip-mev/pob v1.0.3/go.mod h1:PMs/dqcWOQruSN6zLExU0TzlBfBmGA8iTy+FJhxn0T8= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/skip-mev/block-sdk v1.0.0 h1:unp9laTgcePHPRm5TCr0xHmytDmTnqAwlivsn/LqTWI= +github.com/skip-mev/block-sdk v1.0.0/go.mod h1:+yIvnG/K0o/fnWkX4Iw/Wt7m1ofUO67uz0rsbULuSAY= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -1240,8 +1234,8 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/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.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= -golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= +golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= 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= @@ -1256,8 +1250,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-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc= -golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +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/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -1285,7 +1279,7 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= +golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1352,8 +1346,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= -golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= 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= @@ -1379,8 +1373,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.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= +golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= 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= @@ -1395,7 +1389,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= +golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1504,14 +1499,14 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc 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.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= -golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.10.0 h1:3R7pNqamzBraeqj/Tj8qt1aQ2HpmlC+Cx/qL/7hn4/c= -golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= +golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= +golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1523,8 +1518,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= -golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1595,7 +1590,7 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= +golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1782,10 +1777,10 @@ 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-20230706204954-ccb25ca9f130 h1:Au6te5hbKUV8pIYWHqOUZ1pva5qK/rwbIhoXEUB9Lu8= -google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= -google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 h1:s5YSX+ZH5b5vS9rnpGymvIyMpLRJizowqDlOuyjXnTk= -google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 h1:Z0hjGZePRE0ZBWotvtrwxFNrNE9CUAGtplaDK5NNI/g= +google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98/go.mod h1:S7mY02OqCJTD0E1OiQy1F72PWFB4bZJ87cAtLPYgDR0= +google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 h1:FmF5cCW94Ij59cfpoLiwTgodWmm60eEV0CjlsVg2fuw= +google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= @@ -1829,8 +1824,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.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI= -google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc v1.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= +google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= 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= From 4f285beee5b00b94ae9ee03c7e28089db65038f9 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 4 Oct 2023 16:58:38 +0300 Subject: [PATCH 150/307] added consensus migration --- app/app.go | 1 + app/upgrades/nextupgrade/upgrades.go | 12 ++++++++++++ app/upgrades/types.go | 2 ++ 3 files changed, 15 insertions(+) diff --git a/app/app.go b/app/app.go index 9d4527ad7..1265d44f8 100644 --- a/app/app.go +++ b/app/app.go @@ -1023,6 +1023,7 @@ func (app *App) setupUpgradeHandlers() { BuilderKeeper: app.BuilderKeeper, ContractManager: app.ContractManagerKeeper, AdminModule: app.AdminmoduleKeeper, + ConsensusKeeper: &app.ConsensusParamsKeeper, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), CcvConsumerSubspace: app.GetSubspace(ccvconsumertypes.ModuleName), }, diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index e022bbc91..6a17963e6 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,6 +2,9 @@ package nextupgrade import ( "fmt" + "github.com/cosmos/cosmos-sdk/baseapp" + consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" + paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" @@ -108,12 +111,16 @@ func CreateUpgradeHandler( return vm, err } + ctx.Logger().Info("migrating adminmodule...") err = migrateAdminModule(ctx, keepers) if err != nil { ctx.Logger().Error("failed to migrate admin module", "err", err) return vm, err } + ctx.Logger().Info("Migrating consensus params...") + migrateConsensusParams(ctx, keepers.ParamsKeeper, keepers.ConsensusKeeper) + ctx.Logger().Info("Upgrade complete") return vm, nil } @@ -299,3 +306,8 @@ func migrateAdminModule(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error return nil } + +func migrateConsensusParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, keeper *consensuskeeper.Keeper) { + baseAppLegacySS := paramsKeepers.Subspace(baseapp.Paramspace).WithKeyTable(paramstypes.ConsensusParamsKeyTable()) + baseapp.MigrateParams(ctx, baseAppLegacySS, keeper) +} diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 6b545d098..f8460bf25 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -6,6 +6,7 @@ import ( store "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" + consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" @@ -47,6 +48,7 @@ type UpgradeKeepers struct { BuilderKeeper builderkeeper.Keeper ContractManager contractmanagerkeeper.Keeper AdminModule adminmodulekeeper.Keeper + ConsensusKeeper *consensuskeeper.Keeper // subspaces GlobalFeeSubspace paramtypes.Subspace CcvConsumerSubspace paramtypes.Subspace From ea42c9af01189246ce2c3d506cb845ca50d915ec Mon Sep 17 00:00:00 2001 From: Nikhil Vasan Date: Wed, 4 Oct 2023 08:39:16 -0700 Subject: [PATCH 151/307] linting --- app/ante_handler.go | 12 ++++++------ app/app.go | 19 ++++++++++++------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index 8c966d971..1fce699c7 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -15,9 +15,9 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" + blocksdkanteignore "github.com/skip-mev/block-sdk/block/utils" auctionante "github.com/skip-mev/block-sdk/x/auction/ante" auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" - blocksdkanteignore "github.com/skip-mev/block-sdk/block/utils" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -33,10 +33,10 @@ type HandlerOptions struct { // block-sdk deps // Auction deps AuctionKeeper auctionkeeper.Keeper - TxEncoder sdk.TxEncoder - MEVLane auctionante.MEVLane - FreeLanes []blocksdkanteignore.Lane - Mempool auctionante.Mempool + TxEncoder sdk.TxEncoder + MEVLane auctionante.MEVLane + FreeLanes []blocksdkanteignore.Lane + Mempool auctionante.Mempool // globalFee GlobalFeeSubspace paramtypes.Subspace @@ -93,7 +93,7 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, // we ignore the fee-deductor for any transactions that match the given free lanes blocksdkanteignore.NewIgnoreDecorator( ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), - options.FreeLanes... + options.FreeLanes..., ), // SetPubKeyDecorator must be called before all signature verification decorators ante.NewSetPubKeyDecorator(options.AccountKeeper), diff --git a/app/app.go b/app/app.go index 250860717..bef2486dc 100644 --- a/app/app.go +++ b/app/app.go @@ -152,6 +152,7 @@ import ( // Block-sdk imports blocksdkabci "github.com/skip-mev/block-sdk/abci" + signer_extraction_adapter "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter" blocksdk "github.com/skip-mev/block-sdk/block" "github.com/skip-mev/block-sdk/block/base" blocksdkbase "github.com/skip-mev/block-sdk/block/base" @@ -165,7 +166,6 @@ import ( auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" rewardsaddressprovider "github.com/skip-mev/block-sdk/x/auction/rewards" auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" - signer_extraction_adapter "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter" ) const ( @@ -973,11 +973,11 @@ func New( TXCounterStoreKey: keys[wasmtypes.StoreKey], ConsumerKeeper: app.ConsumerKeeper, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), - AuctionKeeper: app.AuctionKeeper, - TxEncoder: app.GetTxConfig().TxEncoder(), - Mempool: app.Mempool, - MEVLane: app.MEVLane, - FreeLanes: app.FreeLanes, + AuctionKeeper: app.AuctionKeeper, + TxEncoder: app.GetTxConfig().TxEncoder(), + Mempool: app.Mempool, + MEVLane: app.MEVLane, + FreeLanes: app.FreeLanes, }, app.Logger(), ) @@ -986,10 +986,15 @@ func New( } app.SetAnteHandler(anteHandler) + mevLane.SetAnteHandler(anteHandler) + freeLane.SetAnteHandler(anteHandler) + baseLane.SetAnteHandler(anteHandler) + + app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( - app.Logger(), + app.Logger(), app.GetTxConfig().TxDecoder(), mempool, ) From 45904a7162289482793bf287a8531003a47264ef Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 5 Oct 2023 03:44:35 +0300 Subject: [PATCH 152/307] updated cosmos-sdk --- go.mod | 2 +- go.sum | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 1f7a107c9..8edb12b45 100644 --- a/go.mod +++ b/go.mod @@ -191,7 +191,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 - github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index e75dab952..20a82ff6f 100644 --- a/go.sum +++ b/go.sum @@ -942,6 +942,7 @@ github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLW github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= From 0b93ac440d90a0d6f1d4ef235a8cd0938aa00673 Mon Sep 17 00:00:00 2001 From: swelf Date: Sat, 7 Oct 2023 00:18:01 +0300 Subject: [PATCH 153/307] updated go.sum --- go.sum | 1 + 1 file changed, 1 insertion(+) diff --git a/go.sum b/go.sum index 20a82ff6f..3408f4581 100644 --- a/go.sum +++ b/go.sum @@ -942,6 +942,7 @@ github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLW github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= +github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad h1:BvYliP3KHiay2VLQwUSmDNCXm380TSTLDud8PH4RV6A= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= From 7f42c767591bae9313a784f61a1c3bbe7c28c157 Mon Sep 17 00:00:00 2001 From: nhpd Date: Tue, 10 Oct 2023 16:40:10 +0400 Subject: [PATCH 154/307] change to ~1.6 mb --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 1299b528c..21b1761dd 100644 --- a/app/app.go +++ b/app/app.go @@ -1256,6 +1256,6 @@ func (app *App) RegisterNodeService(clientCtx client.Context) { // - allow for larger wasm files func overrideWasmVariables() { // Override Wasm size limitation from WASMD. - wasmtypes.MaxWasmSize = 3 * 1024 * 1024 + wasmtypes.MaxWasmSize = 1_677_722 // ~1.6 mb (1024 * 1024 * 1.6) wasmtypes.MaxProposalWasmSize = wasmtypes.MaxWasmSize } From f9115bdffe48b83e42eef10698587e95ae12a15e Mon Sep 17 00:00:00 2001 From: Nikhil Vasan Date: Tue, 10 Oct 2023 09:15:15 -0700 Subject: [PATCH 155/307] remove free lanes --- app/ante_handler.go | 8 +------- app/app.go | 17 +---------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index 1fce699c7..422b37866 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -15,7 +15,6 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" - blocksdkanteignore "github.com/skip-mev/block-sdk/block/utils" auctionante "github.com/skip-mev/block-sdk/x/auction/ante" auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" ) @@ -35,7 +34,6 @@ type HandlerOptions struct { AuctionKeeper auctionkeeper.Keeper TxEncoder sdk.TxEncoder MEVLane auctionante.MEVLane - FreeLanes []blocksdkanteignore.Lane Mempool auctionante.Mempool // globalFee @@ -90,11 +88,7 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, // otherwise you will get panic globalfeeante.NewFeeDecorator(options.GlobalFeeSubspace, nil), - // we ignore the fee-deductor for any transactions that match the given free lanes - blocksdkanteignore.NewIgnoreDecorator( - ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), - options.FreeLanes..., - ), + ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), // SetPubKeyDecorator must be called before all signature verification decorators ante.NewSetPubKeyDecorator(options.AccountKeeper), ante.NewValidateSigCountDecorator(options.AccountKeeper), diff --git a/app/app.go b/app/app.go index bef2486dc..065db5eca 100644 --- a/app/app.go +++ b/app/app.go @@ -154,12 +154,8 @@ import ( blocksdkabci "github.com/skip-mev/block-sdk/abci" signer_extraction_adapter "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter" blocksdk "github.com/skip-mev/block-sdk/block" - "github.com/skip-mev/block-sdk/block/base" blocksdkbase "github.com/skip-mev/block-sdk/block/base" - blocksdkanteignore "github.com/skip-mev/block-sdk/block/utils" base_lane "github.com/skip-mev/block-sdk/lanes/base" - "github.com/skip-mev/block-sdk/lanes/free" - free_lane "github.com/skip-mev/block-sdk/lanes/free" mev_lane "github.com/skip-mev/block-sdk/lanes/mev" "github.com/skip-mev/block-sdk/x/auction" auctionante "github.com/skip-mev/block-sdk/x/auction/ante" @@ -334,7 +330,6 @@ type App struct { // Lanes Mempool auctionante.Mempool MEVLane auctionante.MEVLane - FreeLanes []blocksdkanteignore.Lane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -932,13 +927,6 @@ func New( baseLane := base_lane.NewDefaultLane(cfg) - freeLane := free_lane.NewFreeLane( - cfg, - base.DefaultTxPriority(), - free.DefaultMatchHandler(), // modify this match-handler to determine any other transactions that the chain would like to be free - ) - app.FreeLanes = []blocksdkanteignore.Lane{freeLane} - mevLane := mev_lane.NewMEVLane( cfg, mev_lane.NewDefaultAuctionFactory(app.GetTxConfig().TxDecoder(), signer_extraction_adapter.NewDefaultAdapter()), @@ -950,7 +938,6 @@ func New( true, []blocksdk.Lane{ mevLane, // mev-lane is first to prioritize bids being placed at the TOB - freeLane, // free-lane is second to prioritize free txs baseLane, // finally, all the rest of txs... }..., ) @@ -977,7 +964,6 @@ func New( TxEncoder: app.GetTxConfig().TxEncoder(), Mempool: app.Mempool, MEVLane: app.MEVLane, - FreeLanes: app.FreeLanes, }, app.Logger(), ) @@ -987,9 +973,8 @@ func New( app.SetAnteHandler(anteHandler) mevLane.SetAnteHandler(anteHandler) - freeLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - + app.SetEndBlocker(app.EndBlocker) From 4612ced68501bf18f8aff3f5238f8300d8425c7b Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 11 Oct 2023 12:04:38 +0300 Subject: [PATCH 156/307] empty bypassMinFee list --- app/upgrades/nextupgrade/upgrades.go | 9 +-------- app/upgrades/nextupgrade/upgrades_test.go | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 6a17963e6..3efecdbc2 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -17,8 +17,6 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee/types" v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" - ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" builderkeeper "github.com/skip-mev/pob/x/builder/keeper" buildertypes "github.com/skip-mev/pob/x/builder/types" @@ -260,12 +258,7 @@ func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error ctx.Logger().Info("Global fees was set successfully") - defaultBypassFeeMessages := []string{ - sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), - sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), - sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), - } - keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes, &defaultBypassFeeMessages) + keepers.GlobalFeeSubspace.Set(ctx, types.ParamStoreKeyBypassMinFeeMsgTypes, &[]string{}) ctx.Logger().Info("Bypass min fee msg types was set successfully") diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index f3146ae7a..453aae2e1 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -20,8 +20,6 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/cosmos/gaia/v11/x/globalfee" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" - ibcchanneltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" "github.com/stretchr/testify/suite" "github.com/neutron-org/neutron/app/upgrades/nextupgrade" @@ -98,12 +96,7 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { var actualBypassFeeMessages []string globalFeeSubspace.Get(ctx, globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes, &actualBypassFeeMessages) - requiredBypassMinFeeMsgTypes := []string{ - sdk.MsgTypeURL(&ibcchanneltypes.MsgRecvPacket{}), - sdk.MsgTypeURL(&ibcchanneltypes.MsgAcknowledgement{}), - sdk.MsgTypeURL(&ibcclienttypes.MsgUpdateClient{}), - } - suite.Require().Equal(requiredBypassMinFeeMsgTypes, actualBypassFeeMessages) + suite.Require().Equal(0, len(actualBypassFeeMessages)) var actualTotalBypassMinFeeMsgGasUsage uint64 globalFeeSubspace.Get(ctx, globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage, &actualTotalBypassMinFeeMsgGasUsage) From 72bfd51eedde1b2708bc2b8fc19e5787fe795e76 Mon Sep 17 00:00:00 2001 From: Nikhil Vasan Date: Fri, 20 Oct 2023 10:27:39 -0700 Subject: [PATCH 157/307] block-sdk update --- app/ante_handler.go | 4 ++-- app/app.go | 3 ++- go.mod | 20 ++++++++++---------- go.sum | 41 ++++++++++++++++++++--------------------- 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index 422b37866..7d67d7d9e 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -17,6 +17,7 @@ import ( ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" auctionante "github.com/skip-mev/block-sdk/x/auction/ante" auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" + blocksdk "github.com/skip-mev/block-sdk/block" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -34,7 +35,7 @@ type HandlerOptions struct { AuctionKeeper auctionkeeper.Keeper TxEncoder sdk.TxEncoder MEVLane auctionante.MEVLane - Mempool auctionante.Mempool + Mempool blocksdk.Mempool // globalFee GlobalFeeSubspace paramtypes.Subspace @@ -100,7 +101,6 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, options.AuctionKeeper, options.TxEncoder, options.MEVLane, - options.Mempool, ), } diff --git a/app/app.go b/app/app.go index 02943caa4..798cc7f48 100644 --- a/app/app.go +++ b/app/app.go @@ -328,7 +328,7 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool auctionante.Mempool + Mempool blocksdk.Mempool MEVLane auctionante.MEVLane } @@ -983,6 +983,7 @@ func New( handler := blocksdkabci.NewProposalHandler( app.Logger(), app.GetTxConfig().TxDecoder(), + app.GetTxConfig().TxEncoder(), mempool, ) app.SetPrepareProposal(handler.PrepareProposalHandler()) diff --git a/go.mod b/go.mod index 884d1ebe1..f60adf450 100644 --- a/go.mod +++ b/go.mod @@ -29,20 +29,20 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.30.0 - github.com/skip-mev/block-sdk v1.0.0 + github.com/skip-mev/block-sdk v1.1.0 github.com/spf13/cast v1.5.1 github.com/spf13/cobra v1.7.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 - google.golang.org/grpc v1.58.2 + google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d + google.golang.org/grpc v1.59.0 gopkg.in/yaml.v2 v2.4.0 ) require ( - cloud.google.com/go v0.110.4 // indirect - cloud.google.com/go/compute v1.21.0 // indirect + cloud.google.com/go v0.110.7 // indirect + cloud.google.com/go/compute v1.23.0 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect @@ -94,7 +94,7 @@ require ( github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect - github.com/golang/glog v1.1.1 // indirect + github.com/golang/glog v1.1.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect @@ -102,7 +102,7 @@ require ( 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/google/uuid v1.3.0 // indirect + github.com/google/uuid v1.3.1 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect github.com/googleapis/gax-go/v2 v2.11.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect @@ -169,7 +169,7 @@ require ( golang.org/x/crypto v0.12.0 // indirect golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect golang.org/x/net v0.14.0 // indirect - golang.org/x/oauth2 v0.10.0 // indirect + golang.org/x/oauth2 v0.11.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.11.0 // indirect golang.org/x/term v0.11.0 // indirect @@ -177,8 +177,8 @@ require ( 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-20230711160842-782d3b101e98 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect + google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 15b257047..cd8dbb486 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,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.4 h1:1JYyxKMN9hd5dR2MYTPWkGUgcoxVVhg0LKNKEo0qvmk= -cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= +cloud.google.com/go v0.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= +cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= 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= @@ -73,8 +73,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.21.0 h1:JNBsyXVoOoNJtTQcnEY5uYpZIbeCTYIeDe0Xh1bySMk= -cloud.google.com/go/compute v1.21.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +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/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= @@ -562,8 +562,8 @@ github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzw 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.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= -github.com/golang/glog v1.1.1/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +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= @@ -661,8 +661,9 @@ github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ 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= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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= @@ -935,8 +936,6 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad h1:BvYliP3KHiay2VLQwUSmDNCXm380TSTLDud8PH4RV6A= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= @@ -1081,8 +1080,8 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/skip-mev/block-sdk v1.0.0 h1:unp9laTgcePHPRm5TCr0xHmytDmTnqAwlivsn/LqTWI= -github.com/skip-mev/block-sdk v1.0.0/go.mod h1:+yIvnG/K0o/fnWkX4Iw/Wt7m1ofUO67uz0rsbULuSAY= +github.com/skip-mev/block-sdk v1.1.0 h1:cYEO/ASxhtasdRStMXhw1cWOjCJ78Z3J+K01n++OHkU= +github.com/skip-mev/block-sdk v1.1.0/go.mod h1:G/ryMdo70R1xOJehV1RqDyTH0x7gffwB1wU9MLMzIHE= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -1375,8 +1374,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.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= -golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= +golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= +golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= 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,12 +1778,12 @@ 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-20230711160842-782d3b101e98 h1:Z0hjGZePRE0ZBWotvtrwxFNrNE9CUAGtplaDK5NNI/g= -google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98/go.mod h1:S7mY02OqCJTD0E1OiQy1F72PWFB4bZJ87cAtLPYgDR0= -google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 h1:FmF5cCW94Ij59cfpoLiwTgodWmm60eEV0CjlsVg2fuw= -google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= +google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY= +google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= +google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= +google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1826,8 +1825,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.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= -google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= 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= From bf6d0105c84c095451a796880bdc87456633432a Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 24 Oct 2023 13:01:34 +0400 Subject: [PATCH 158/307] enable backwards compat feat --- app/app.go | 5 +- app/upgrades/nextupgrade/upgrades.go | 14 ++++- app/upgrades/nextupgrade/upgrades_test.go | 50 +++++++++++++++++ go.sum | 2 - testutil/test_helpers.go | 5 +- wasmbinding/bindings/msg.go | 2 +- wasmbinding/message_plugin.go | 9 ++- wasmbinding/test/custom_message_test.go | 52 +++++++++--------- wasmbinding/test/custom_query_test.go | 28 +++++----- .../testdata/neutron_interchain_txs.wasm | Bin 0 -> 430188 bytes x/contractmanager/types/expected_keepers.go | 2 + x/interchainqueries/keeper/grpc_query_test.go | 4 +- x/interchainqueries/keeper/keeper_test.go | 30 +++++----- .../keeper/process_block_results_test.go | 4 +- x/interchaintxs/keeper/keeper.go | 16 ++++++ x/interchaintxs/keeper/msg_server.go | 6 +- x/interchaintxs/types/expected_keepers.go | 2 + x/interchaintxs/types/keys.go | 4 +- x/transfer/keeper/keeper_test.go | 4 +- 19 files changed, 164 insertions(+), 75 deletions(-) create mode 100644 wasmbinding/testdata/neutron_interchain_txs.wasm diff --git a/app/app.go b/app/app.go index 02943caa4..ea20c0b78 100644 --- a/app/app.go +++ b/app/app.go @@ -328,8 +328,8 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool auctionante.Mempool - MEVLane auctionante.MEVLane + Mempool auctionante.Mempool + MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -977,7 +977,6 @@ func New( mevLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 92a94d7d6..ee062bbd0 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,6 +2,8 @@ package nextupgrade import ( "fmt" + + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/baseapp" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" @@ -79,7 +81,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Migrating interchaintxs module parameters...") - if err := setInterchainTxsParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(interchaintxstypes.StoreKey), codec); err != nil { + if err := setInterchainTxsParams(ctx, keepers.ParamsKeeper, storeKeys.GetKey(interchaintxstypes.StoreKey), storeKeys.GetKey(wasmtypes.StoreKey), codec); err != nil { return nil, err } @@ -225,7 +227,7 @@ func migrateInterchainQueriesParams(ctx sdk.Context, paramsKeepers paramskeeper. return nil } -func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, codec codec.Codec) error { +func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, wasmStoreKey storetypes.StoreKey, codec codec.Codec) error { store := ctx.KVStore(storeKey) var currParams interchaintxstypes.Params subspace, _ := paramsKeepers.GetSubspace(interchaintxstypes.StoreKey) @@ -238,6 +240,14 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, bz := codec.MustMarshal(&currParams) store.Set(interchaintxstypes.ParamsKey, bz) + + wasmStore := ctx.KVStore(wasmStoreKey) + bzWasm := wasmStore.Get(wasmtypes.KeyLastCodeID) + if bzWasm == nil { + return fmt.Errorf("last code ID not found during the upgrade") + } + + store.Set(interchaintxstypes.LastCodeIdBeforeUpgrade, bzWasm) return nil } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 453aae2e1..9763feec8 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -3,6 +3,7 @@ package nextupgrade_test import ( "testing" + "github.com/CosmWasm/wasmd/x/wasm/keeper" adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -54,6 +55,9 @@ func (suite *UpgradeTestSuite) SetupTest() { pTokenfactory := tokenfactorytypes.DefaultParams() subspace.SetParamSet(ctx, &pTokenfactory) + pWasmTypes := icqtypes.DefaultParams() + subspace.SetParamSet(ctx, &pWasmTypes) + subspace, _ = app.ParamsKeeper.GetSubspace(icqtypes.StoreKey) pICQTypes := icqtypes.DefaultParams() subspace.SetParamSet(ctx, &pICQTypes) @@ -159,3 +163,49 @@ func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { suite.Require().NoError(err) suite.Require().Equal(uint64(1), id) } + +func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { + var ( + app = suite.GetNeutronZoneApp(suite.ChainA) + ccvConsumerSubspace = app.GetSubspace(ccvconsumertypes.ModuleName) + ctx = suite.ChainA.GetContext() + ) + + suite.Require().True(ccvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms)) + + // emulate mainnet/testnet state + ccvConsumerSubspace.Set(ctx, ccvconsumertypes.KeyRewardDenoms, &[]string{params.DefaultDenom}) + + var denomsBefore []string + ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denomsBefore) + suite.Require().Equal(denomsBefore, []string{params.DefaultDenom}) + contractKeeper := keeper.NewDefaultPermissionKeeper(app.WasmKeeper) + codeIDBefore := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1weweewe"), "../../wasmbiding/testdata/neutron_interchain_txs.wasm.wasm") + contractAddressBefore := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1weweewe"), codeIDBefore) + + upgrade := upgradetypes.Plan{ + Name: nextupgrade.UpgradeName, + Info: "some text here", + Height: 100, + } + app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) + + // Store code and instantiate reflect contract + codeID := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1weweewe"), "../../wasmbinding/testdata/neutron_interchain_txs.wasm") + contractAddressAfter := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1weweewe"), codeID) + // register w/o actual fees + jsonStringBefore := `{"connection_id":"1","interchain_account_id":"test-1"}` + byteEncodedMsgBefore := []byte(jsonStringBefore) + _, err := contractKeeper.Execute(ctx, contractAddressBefore, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgBefore, nil) + suite.Require().Error(err) + + // register with fees + jsonStringAfter := `{"connection_id":"1","interchain_account_id":"test-2"}` + byteEncodedMsgAfter := []byte(jsonStringAfter) + _, err = contractKeeper.Execute(ctx, contractAddressAfter, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfter, sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(1000)))) + suite.Require().NoError(err) + + // failed register due lack of fees + _, err = contractKeeper.Execute(ctx, contractAddressAfter, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfter, nil) + suite.Require().Error(err) +} diff --git a/go.sum b/go.sum index 15b257047..d4361788f 100644 --- a/go.sum +++ b/go.sum @@ -935,8 +935,6 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad h1:BvYliP3KHiay2VLQwUSmDNCXm380TSTLDud8PH4RV6A= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index edab3f004..54ad72935 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -281,8 +281,9 @@ func (suite *IBCConnectionTestSuite) GetNeutronZoneApp(chain *ibctesting.TestCha return testApp } -func (suite *IBCConnectionTestSuite) StoreReflectCode(ctx sdk.Context, addr sdk.AccAddress, path string) uint64 { +func (suite *IBCConnectionTestSuite) StoreTestCode(ctx sdk.Context, addr sdk.AccAddress, path string) uint64 { // wasm file built with https://github.com/neutron-org/neutron-contracts/tree/main/contracts/reflect + // wasm file built with https://github.com/neutron-org/neutron-dev/tree/feat/ica-register-fee-update/contracts/neutron_interchain_txs wasmCode, err := os.ReadFile(path) suite.Require().NoError(err) @@ -292,7 +293,7 @@ func (suite *IBCConnectionTestSuite) StoreReflectCode(ctx sdk.Context, addr sdk. return codeID } -func (suite *IBCConnectionTestSuite) InstantiateReflectContract(ctx sdk.Context, funder sdk.AccAddress, codeID uint64) sdk.AccAddress { +func (suite *IBCConnectionTestSuite) InstantiateTestContract(ctx sdk.Context, funder sdk.AccAddress, codeID uint64) sdk.AccAddress { initMsgBz := []byte("{}") contractKeeper := keeper.NewDefaultPermissionKeeper(suite.GetNeutronZoneApp(suite.ChainA).WasmKeeper) addr, _, err := contractKeeper.Instantiate(ctx, codeID, funder, funder, initMsgBz, "demo contract", nil) diff --git a/wasmbinding/bindings/msg.go b/wasmbinding/bindings/msg.go index 83ff57763..e4d8142f1 100644 --- a/wasmbinding/bindings/msg.go +++ b/wasmbinding/bindings/msg.go @@ -79,7 +79,7 @@ type SubmitTxResponse struct { type RegisterInterchainAccount struct { ConnectionId string `json:"connection_id"` InterchainAccountId string `json:"interchain_account_id"` - RegisterFee sdk.Coins `json:"register_fee"` + RegisterFee sdk.Coins `json:"register_fee,omitempty"` } // RegisterInterchainAccountResponse holds response for RegisterInterchainAccount. diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index a130dae31..3a12a7e4f 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -707,7 +707,7 @@ func (m *CustomMessenger) performRegisterInterchainAccount(ctx sdk.Context, cont FromAddress: contractAddr.String(), ConnectionId: reg.ConnectionId, InterchainAccountId: reg.InterchainAccountId, - RegisterFee: reg.RegisterFee, + RegisterFee: getRegisterFee(reg.RegisterFee), } if err := msg.ValidateBasic(); err != nil { return nil, errors.Wrap(err, "failed to validate incoming RegisterInterchainAccount message") @@ -921,3 +921,10 @@ func (m *CustomMessenger) isAdmin(ctx sdk.Context, contractAddr sdk.AccAddress) return false } + +func getRegisterFee(fee sdk.Coins) sdk.Coins { + if fee == nil { + return make(sdk.Coins, 0) + } + return fee +} diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index 6008a058f..a79dd73db 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -75,8 +75,8 @@ func (suite *CustomMessengerTestSuite) SetupTest() { func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccount() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) err := suite.neutron.FeeBurnerKeeper.SetParams(suite.ctx, feeburnertypes.Params{ @@ -111,8 +111,8 @@ func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccount() { func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccountLongID() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) // Craft RegisterInterchainAccount message @@ -135,8 +135,8 @@ func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccountLongID() { func (suite *CustomMessengerTestSuite) TestRegisterInterchainQuery() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) err := testutil.SetupICAPath(suite.Path, suite.contractAddress.String()) @@ -173,8 +173,8 @@ func (suite *CustomMessengerTestSuite) TestRegisterInterchainQuery() { } func (suite *CustomMessengerTestSuite) TestCreateDenomMsg() { - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() @@ -201,8 +201,8 @@ func (suite *CustomMessengerTestSuite) TestMintMsg() { lucky = keeper.RandomAccountAddress(suite.T()) // We don't care what this address is ) - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() @@ -377,8 +377,8 @@ func (suite *CustomMessengerTestSuite) TestRemoveInterchainQueryFailed() { func (suite *CustomMessengerTestSuite) TestSubmitTx() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() @@ -410,8 +410,8 @@ func (suite *CustomMessengerTestSuite) TestSubmitTx() { func (suite *CustomMessengerTestSuite) TestSubmitTxTooMuchTxs() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) err := testutil.SetupICAPath(suite.Path, suite.contractAddress.String()) @@ -507,8 +507,8 @@ func (suite *CustomMessengerTestSuite) TestSoftwareUpgradeProposal() { func (suite *CustomMessengerTestSuite) TestTooMuchProposals() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) err := testutil.SetupICAPath(suite.Path, suite.contractAddress.String()) @@ -547,8 +547,8 @@ func (suite *CustomMessengerTestSuite) TestTooMuchProposals() { func (suite *CustomMessengerTestSuite) TestNoProposals() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) err := testutil.SetupICAPath(suite.Path, suite.contractAddress.String()) @@ -572,8 +572,8 @@ func (suite *CustomMessengerTestSuite) TestNoProposals() { func (suite *CustomMessengerTestSuite) TestAddRemoveSchedule() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) // Set admin so that we can execute this proposal without permission error @@ -625,8 +625,8 @@ func (suite *CustomMessengerTestSuite) TestAddRemoveSchedule() { func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) // Add failure @@ -660,8 +660,8 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) // Add failure @@ -692,8 +692,8 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract() { // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") - suite.contractAddress = suite.InstantiateReflectContract(suite.ctx, suite.contractOwner, codeID) + codeID := suite.StoreTestCode(suite.ctx, suite.contractOwner, "../testdata/reflect.wasm") + suite.contractAddress = suite.InstantiateTestContract(suite.ctx, suite.contractOwner, codeID) suite.Require().NotEmpty(suite.contractAddress) // Add failure diff --git a/wasmbinding/test/custom_query_test.go b/wasmbinding/test/custom_query_test.go index 9180bf079..cdc185060 100644 --- a/wasmbinding/test/custom_query_test.go +++ b/wasmbinding/test/custom_query_test.go @@ -37,8 +37,8 @@ func (suite *CustomQuerierTestSuite) TestInterchainQueryResult() { ) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) // Register and submit query result @@ -109,8 +109,8 @@ func (suite *CustomQuerierTestSuite) TestInterchainQueryResultNotFound() { ) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) // Query interchain query result @@ -132,8 +132,8 @@ func (suite *CustomQuerierTestSuite) TestInterchainAccountAddress() { ) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) @@ -164,8 +164,8 @@ func (suite *CustomQuerierTestSuite) TestUnknownInterchainAcc() { ) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) @@ -192,8 +192,8 @@ func (suite *CustomQuerierTestSuite) TestMinIbcFee() { ) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) query := bindings.NeutronQuery{ @@ -224,8 +224,8 @@ func (suite *CustomQuerierTestSuite) TestFullDenom() { ) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) query := bindings.NeutronQuery{ @@ -257,8 +257,8 @@ func (suite *CustomQuerierTestSuite) TestDenomAdmin() { suite.Require().NoError(err) // Store code and instantiate reflect contract - codeID := suite.StoreReflectCode(ctx, owner, "../testdata/reflect.wasm") - contractAddress := suite.InstantiateReflectContract(ctx, owner, codeID) + codeID := suite.StoreTestCode(ctx, owner, "../testdata/reflect.wasm") + contractAddress := suite.InstantiateTestContract(ctx, owner, codeID) suite.Require().NotEmpty(contractAddress) senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() diff --git a/wasmbinding/testdata/neutron_interchain_txs.wasm b/wasmbinding/testdata/neutron_interchain_txs.wasm new file mode 100644 index 0000000000000000000000000000000000000000..6f3dc56be1f8351a518f68cc9fe4ac3417f169d1 GIT binary patch literal 430188 zcmeFa54>GhRqwn0?f-k9vrm(>X;XCVP1KY3nh(KOlK{QBUUX6n2SZryXfuH%B_NOzrQi( zT>H=2`<#=K8stOLX05&EoMX;8=9puSImVb{MpwM>`Ee9Q@i*h|*_GUIL!^J=8+N5P z=w1KvBj&Zjt3GA!5$k)^zVWf6D#%J@<>qZR7m$;a8DpL*rfnz2v*bJ;)-ibqDnUK%C0B(v$Bt6x;P;yEuk za4^dBUfcbg%Ma|iVs}*2uR6be`oL8O_e7C?HZ1Y^FL=?OLFN}e_lm2dG!(sh&-Djg z(asgScOSU?MOW;BX*+^@Gm`_B@xC9Ju_N>z=c3&x@lo1Zif^?jQW2AA0grM#`)W zAD?r@!RKB%l2qBf=Q-Cs&-JEt?R9$&y!i6xUU|h;SJU3#%RZeYNfzmEk|j}=K{Suy zPn^X`lEg_I$5}N=*2GB^B}p~nJ&scY*l1+2GTEOj{Gmqs6Gs(_xIb!86jkhp&kx+V zUa3?oeD$BwR3ED$ms(!Y7yhJV;k{Bx^dJ8?*!6m~Ql}BF8F7s&?N246rEU73#qBs= zs|@^!;u`t6qHdmhoV_Sty0`usi5 zf5CwlCsFIFt6zBVimMM^r8)G8xVGo|J5Av>(M)*Z zRWG>u^6h-CU$KAx3!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d-Gx2&Ya6ZS0#c*_DiH@7yHHwJ2gp(E$*+Hyhg{5cEGTQqxa$#!(GzI=Wl z zWt&Pu8#gT66zneF90*PPeq(5{=c3K6o*BWAzdaB-(lS4=%Cl&XIkTbshPwx{r4vv6 z_10+l(YlH`w|?mQi|+sI_3eT4z5D#?(=;h89Z+l?YI)cQVe+VA^*7+q5 z{Om~MOmne+hBtWRZEx`&@RfT?0u}G*yQn0ydgAw?ba3>njaTs~>@Ar;@mEJK^4!=t z^Q@ygm-_t^FI?bTTWOB2^epgNN7gN!7514&o;&~gf1UWRD}#H*km1--;Z}^UPmZ#h^=I!<4e9bKLwqbJB!K&>? zdde1KEG@wqC|VMj_{VcYNBz^{aD~fzc?ke$Jb$53UOJpqFK@UtUYw9Lvk9o3eAT|} z)wy^5NS}?MKh@yox!OTj-03jVLN?0@X+ndI-x0%))(Po^A0;ZRvkG+{ME}+3VLX@&KHzLiV<)K_Et z#cp}ut9>nhHhQM&V+&5)7Dy zf99sry0a=w2iVlIOz+v|l7*L-hD%D!d0w*w$j5hqXLa!Wd8XZp3f>^FW*}rOHp8s$ z4WdZMT3}jMJFt}30+u$HSRS*KX&(xhv#mM6VJMBZgJ!@JvX+>uP`3;PLl|w?O7SoHYc8pK=ve?{YdT|@nG=t_PrWGg)_M28oX<)Op5bc>}>kJb;`by1n zO3VST>Bpd~`IgsH;Vs9b-<)Y;?LCXFCHS|_G6O-=DlIWVJIt(AWghf+trFAk`92l_ zqYbb{E9ehdX5G?yZynM;v$~|rvN1{1(}qk`^n`D? zyMuhQpX-5K$AeAv86~FmJM26l!n_Urc}+W1?H4=cw>&jia4>2py=xAJf>y5bqXVot zpp9Lb26nf}=i`&%GOYq*PvF1WJz@6V<&Hq)$ literal 0 HcmV?d00001 diff --git a/x/contractmanager/types/expected_keepers.go b/x/contractmanager/types/expected_keepers.go index 88db20887..f30e346b8 100644 --- a/x/contractmanager/types/expected_keepers.go +++ b/x/contractmanager/types/expected_keepers.go @@ -1,12 +1,14 @@ package types import ( + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" ) // WasmKeeper defines the expected interface needed to cam cosmwasm contracts. type WasmKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool + GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } diff --git a/x/interchainqueries/keeper/grpc_query_test.go b/x/interchainqueries/keeper/grpc_query_test.go index ee3eb7a5c..391d58d0f 100644 --- a/x/interchainqueries/keeper/grpc_query_test.go +++ b/x/interchainqueries/keeper/grpc_query_test.go @@ -476,8 +476,8 @@ func (suite *KeeperTestSuite) TestQueryResult() { clientKey := host.FullClientStateKey(suite.Path.EndpointB.ClientID) ctx := suite.ChainA.GetContext() contractOwner := wasmKeeper.RandomAccountAddress(suite.T()) - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) registerMsg := iqtypes.MsgRegisterInterchainQuery{ ConnectionId: suite.Path.EndpointA.ConnectionID, Keys: []*iqtypes.KVKey{ diff --git a/x/interchainqueries/keeper/keeper_test.go b/x/interchainqueries/keeper/keeper_test.go index beaca0287..704815240 100644 --- a/x/interchainqueries/keeper/keeper_test.go +++ b/x/interchainqueries/keeper/keeper_test.go @@ -126,8 +126,8 @@ func (suite *KeeperTestSuite) TestRegisterInterchainQuery() { ) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) @@ -383,8 +383,8 @@ func (suite *KeeperTestSuite) TestUpdateInterchainQuery() { ctx = suite.ChainA.GetContext() contractOwner = wasmKeeper.RandomAccountAddress(suite.T()) ) - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - newContractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + newContractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(newContractAddress) msg = iqtypes.MsgUpdateInterchainQueryRequest{ QueryId: 1, @@ -411,8 +411,8 @@ func (suite *KeeperTestSuite) TestUpdateInterchainQuery() { ) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) @@ -553,8 +553,8 @@ func (suite *KeeperTestSuite) TestRemoveInterchainQuery() { ctx = suite.ChainA.GetContext() contractOwner = wasmKeeper.RandomAccountAddress(suite.T()) ) - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - newContractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + newContractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(newContractAddress) msg = iqtypes.MsgRemoveInterchainQueryRequest{ QueryId: 1, @@ -583,8 +583,8 @@ func (suite *KeeperTestSuite) TestRemoveInterchainQuery() { ) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) @@ -1421,8 +1421,8 @@ func (suite *KeeperTestSuite) TestSubmitInterchainQueryResult() { ) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) @@ -1691,8 +1691,8 @@ func (suite *KeeperTestSuite) TestRemoveFreshlyCreatedICQ() { ) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(contractAddress) // Top up contract address with native coins for deposit @@ -1724,7 +1724,7 @@ func (suite *KeeperTestSuite) TestRemoveFreshlyCreatedICQ() { suite.Require().Equal(params.QuerySubmitTimeout, registeredQuery.SubmitTimeout) suite.Require().Greater(uint64(ctx.BlockHeight()), registeredQuery.LastSubmittedResultLocalHeight+registeredQuery.SubmitTimeout) - newContractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + newContractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(newContractAddress) resp, err := msgSrv.RemoveInterchainQuery(sdk.WrapSDKContext(ctx), &iqtypes.MsgRemoveInterchainQueryRequest{ QueryId: 1, diff --git a/x/interchainqueries/keeper/process_block_results_test.go b/x/interchainqueries/keeper/process_block_results_test.go index 8313f6a71..198acffca 100644 --- a/x/interchainqueries/keeper/process_block_results_test.go +++ b/x/interchainqueries/keeper/process_block_results_test.go @@ -272,8 +272,8 @@ func (suite *KeeperTestSuite) TestUnpackAndVerifyHeaders() { ) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, contractOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, contractOwner, codeID) + codeID := suite.StoreTestCode(ctx, contractOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, contractOwner, codeID) suite.Require().NotEmpty(contractAddress) err := testutil.SetupICAPath(suite.Path, contractAddress.String()) diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index fe13695f3..2bc4aff43 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -92,3 +92,19 @@ func (k Keeper) ChargeFee(ctx sdk.Context, payer sdk.AccAddress, fee sdk.Coins) func (k Keeper) GetAuthority() string { return k.authority } + +func (k Keeper) GetLastCodeIDBeforeUpgrade(ctx sdk.Context) (codeID uint64) { + store := ctx.KVStore(k.storeKey) + bytes := store.Get(types.LastCodeIdBeforeUpgrade) + + if bytes == nil { + k.Logger(ctx).Debug("Last code id key don't exists, GetLastCodeID returns 0") + return 0 + } + return sdk.BigEndianToUint64(bytes) +} + +func (k Keeper) SetLastCodeIDBeforeUpgrade(ctx sdk.Context, id uint64) { + store := ctx.KVStore(k.storeKey) + store.Set(types.LastCodeIdBeforeUpgrade, sdk.Uint64ToBigEndian(id)) +} diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index 9e79b0690..f940deeba 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -47,8 +47,10 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } - if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { - return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) + if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID > k.GetLastCodeIDBeforeUpgrade(ctx) { + if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { + return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) + } } icaOwner := ictxtypes.NewICAOwnerFromAddress(senderAddr, msg.InterchainAccountId) diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 23648d88d..8cb3e813b 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -1,6 +1,7 @@ package types import ( + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" @@ -26,6 +27,7 @@ type BankKeeper interface { type WasmKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool + GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) } diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index beaf14ae2..aa4a6f048 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -18,7 +18,9 @@ const ( ) const ( - prefixParamsKey = iota + 1 + prefixParamsKey = iota + 1 + prefixLastCodeIdBeforeUpgrade = iota + 2 ) var ParamsKey = []byte{prefixParamsKey} +var LastCodeIdBeforeUpgrade = []byte{prefixLastCodeIdBeforeUpgrade} diff --git a/x/transfer/keeper/keeper_test.go b/x/transfer/keeper/keeper_test.go index f9636cf35..c8b857836 100644 --- a/x/transfer/keeper/keeper_test.go +++ b/x/transfer/keeper/keeper_test.go @@ -90,8 +90,8 @@ func (suite KeeperTestSuite) TestTransfer() { //nolint:govet // it's a test so i testOwner := sdktypes.MustAccAddressFromBech32(testutil.TestOwnerAddress) // Store code and instantiate reflect contract. - codeID := suite.StoreReflectCode(ctx, testOwner, reflectContractPath) - contractAddress := suite.InstantiateReflectContract(ctx, testOwner, codeID) + codeID := suite.StoreTestCode(ctx, testOwner, reflectContractPath) + contractAddress := suite.InstantiateTestContract(ctx, testOwner, codeID) suite.Require().NotEmpty(contractAddress) ctx = suite.ChainA.GetContext() From f48eafc66685d56b06e3d1010602a9a2f489f070 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 24 Oct 2023 16:23:13 +0300 Subject: [PATCH 159/307] update wasmd to v0.43 --- go.mod | 34 +++++++++++++++--------------- go.sum | 65 +++++++++++++++++++++++++++++----------------------------- 2 files changed, 51 insertions(+), 48 deletions(-) diff --git a/go.mod b/go.mod index 884d1ebe1..b0a297a10 100644 --- a/go.mod +++ b/go.mod @@ -7,8 +7,8 @@ require ( cosmossdk.io/errors v1.0.0 cosmossdk.io/log v1.2.1 cosmossdk.io/math v1.1.2 - github.com/CosmWasm/wasmd v0.41.0 - github.com/CosmWasm/wasmvm v1.3.0 + github.com/CosmWasm/wasmd v0.43.0 + github.com/CosmWasm/wasmvm v1.4.1 github.com/armon/go-metrics v0.4.1 github.com/cometbft/cometbft v0.37.2 github.com/cometbft/cometbft-db v0.8.0 @@ -18,7 +18,7 @@ require ( github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 - github.com/cosmos/ibc-go/v7 v7.2.0 + github.com/cosmos/ibc-go/v7 v7.3.0 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 github.com/gogo/protobuf v1.3.3 @@ -26,6 +26,7 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.30.0 @@ -35,14 +36,14 @@ require ( github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 + google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d google.golang.org/grpc v1.58.2 gopkg.in/yaml.v2 v2.4.0 ) require ( - cloud.google.com/go v0.110.4 // indirect - cloud.google.com/go/compute v1.21.0 // indirect + cloud.google.com/go v0.110.6 // indirect + cloud.google.com/go/compute v1.23.0 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect @@ -72,7 +73,7 @@ require ( github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/iavl v0.20.0 // indirect + github.com/cosmos/iavl v0.20.1 // indirect github.com/cosmos/ledger-cosmos-go v0.13.0 // indirect github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect github.com/creachadair/taskgroup v0.4.2 // indirect @@ -89,6 +90,7 @@ require ( github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/getsentry/sentry-go v0.23.0 // indirect + github.com/ghodss/yaml v1.0.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.6.0 // indirect @@ -166,19 +168,19 @@ require ( github.com/zondax/ledger-go v0.14.1 // indirect go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.12.0 // indirect + golang.org/x/crypto v0.13.0 // indirect golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect - golang.org/x/net v0.14.0 // indirect - golang.org/x/oauth2 v0.10.0 // indirect + golang.org/x/net v0.15.0 // indirect + golang.org/x/oauth2 v0.12.0 // indirect golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.11.0 // indirect - golang.org/x/term v0.11.0 // indirect - golang.org/x/text v0.12.0 // indirect + golang.org/x/sys v0.12.0 // indirect + golang.org/x/term v0.12.0 // indirect + golang.org/x/text v0.13.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-20230711160842-782d3b101e98 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect + google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect @@ -190,7 +192,7 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d - github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.41.1-0.20231024125505-4e32ed6dc344 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 diff --git a/go.sum b/go.sum index 15b257047..9d6202982 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,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.4 h1:1JYyxKMN9hd5dR2MYTPWkGUgcoxVVhg0LKNKEo0qvmk= -cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= +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/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= @@ -73,8 +73,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.21.0 h1:JNBsyXVoOoNJtTQcnEY5uYpZIbeCTYIeDe0Xh1bySMk= -cloud.google.com/go/compute v1.21.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +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/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= @@ -221,8 +221,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= -github.com/CosmWasm/wasmvm v1.3.0 h1:x12X4bKlUPS7TT9QQP45+fJo2sp30GEbiSSgb9jsec8= -github.com/CosmWasm/wasmvm v1.3.0/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= +github.com/CosmWasm/wasmvm v1.4.1 h1:YgodVlBrXa2HJZzOXjWDH0EIRwQzK3zuA73dDPRRLS4= +github.com/CosmWasm/wasmvm v1.4.1/go.mod h1:fXB+m2gyh4v9839zlIXdMZGeLAxqUdYdFQqYsTha2hc= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= @@ -397,12 +397,12 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ 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.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= -github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= +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-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 h1:n+PjYB3JnbKN+sGmX6khST4xMP+D0UdrMNj7O91fuOg= github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= -github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= -github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= +github.com/cosmos/ibc-go/v7 v7.3.0 h1:QtGeVMi/3JeLWuvEuC60sBHpAF40Oenx/y+bP8+wRRw= +github.com/cosmos/ibc-go/v7 v7.3.0/go.mod h1:mUmaHFXpXrEdcxfdXyau+utZf14pGKVUiXwYftRZZfQ= 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/interchain-security/v3 v3.1.0 h1:EKDJCIKIDLG45tvKwfoANrRPgqvqfUt/f1TNKx3b7Uo= @@ -504,6 +504,7 @@ github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW 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/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -703,6 +704,8 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf 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= @@ -935,12 +938,10 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad h1:BvYliP3KHiay2VLQwUSmDNCXm380TSTLDud8PH4RV6A= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= -github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= -github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= +github.com/neutron-org/wasmd v0.41.1-0.20231024125505-4e32ed6dc344 h1:5Nl05LZIk13ek1i3fuZlj4rDu47VQrx3DWN1Cn1hIk0= +github.com/neutron-org/wasmd v0.41.1-0.20231024125505-4e32ed6dc344/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -1236,8 +1237,8 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/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.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= +golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= 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= @@ -1348,8 +1349,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= 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= @@ -1375,8 +1376,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.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= -golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= +golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= +golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= 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= @@ -1501,14 +1502,14 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc 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.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= +golang.org/x/term v0.12.0 h1:/ZfYdc3zq+q02Rv9vGqTeSItdzZTSNDmfTi0mBAuidU= +golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1520,8 +1521,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1779,12 +1780,12 @@ 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-20230711160842-782d3b101e98 h1:Z0hjGZePRE0ZBWotvtrwxFNrNE9CUAGtplaDK5NNI/g= -google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98/go.mod h1:S7mY02OqCJTD0E1OiQy1F72PWFB4bZJ87cAtLPYgDR0= -google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 h1:FmF5cCW94Ij59cfpoLiwTgodWmm60eEV0CjlsVg2fuw= -google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= +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-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= +google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= From dc0a52a3f0739ed6b9b1b8c93ab8a9d56b09463f Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 25 Oct 2023 00:34:51 +0300 Subject: [PATCH 160/307] removed key escape --- x/interchainqueries/keeper/msg_server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 219c07e21..ca9c9ce13 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "fmt" - "net/url" "strconv" "time" @@ -230,7 +229,7 @@ func (m msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit return nil, errors.Wrapf(types.ErrInvalidSubmittedResult, "KV path from result is not equal to registered query storage prefix: %v != %v", result.StoragePrefix, query.Keys[index].Path) } - path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, url.PathEscape(string(result.Key))) + path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, string(result.Key)) // identify what kind proofs (non-existence proof always has *ics23.CommitmentProof_Nonexist as the first item) we got // and call corresponding method to verify it switch proof.GetProofs()[0].GetProof().(type) { From 0cbcf88c4a603b66ae1c5047178b17ec820ac8c3 Mon Sep 17 00:00:00 2001 From: Lockwarr Date: Wed, 25 Oct 2023 09:15:10 +0300 Subject: [PATCH 161/307] fix: modify interchain keeper's accepted parameteres --- go.sum | 2 - .../interchaintxs/keeper/interchaintxs.go | 4 +- .../interchaintxs/types/expected_keepers.go | 45 +++++++++---------- x/feeburner/keeper/keeper.go | 6 +++ x/interchaintxs/keeper/ibc_handlers_test.go | 12 ++--- x/interchaintxs/keeper/keeper.go | 8 ++-- x/interchaintxs/keeper/msg_server_test.go | 21 +++------ x/interchaintxs/types/expected_keepers.go | 7 +-- 8 files changed, 51 insertions(+), 54 deletions(-) diff --git a/go.sum b/go.sum index 15b257047..d4361788f 100644 --- a/go.sum +++ b/go.sum @@ -935,8 +935,6 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265 h1:CIyjGN+/WTIgGyUEAiL7HcxQ2/XYX3r2Nv4RWBbhl8o= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230921074823-5d5ff8b93265/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad h1:BvYliP3KHiay2VLQwUSmDNCXm380TSTLDud8PH4RV6A= github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 83d4114c2..412297b09 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -27,7 +27,7 @@ func InterchainTxsKeeper( icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper, bankKeeper types.BankKeeper, - feeburnerKeeper types.FeeBurnerKeeper, + treasuryKeeper types.TreasuryKeeper, ) (*keeper.Keeper, sdk.Context) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) @@ -50,7 +50,7 @@ func InterchainTxsKeeper( managerKeeper, refunderKeeper, bankKeeper, - feeburnerKeeper, + treasuryKeeper, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 97633afb9..1d9fb7aa3 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -14,8 +14,7 @@ import ( types3 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" exported "github.com/cosmos/ibc-go/v7/modules/core/exported" gomock "github.com/golang/mock/gomock" - types4 "github.com/neutron-org/neutron/x/feeburner/types" - types5 "github.com/neutron-org/neutron/x/feerefunder/types" + types4 "github.com/neutron-org/neutron/x/feerefunder/types" ) // MockAccountKeeper is a mock of AccountKeeper interface. @@ -264,7 +263,7 @@ func (m *MockFeeRefunderKeeper) EXPECT() *MockFeeRefunderKeeperMockRecorder { } // DistributeAcknowledgementFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types5.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeAcknowledgementFee", ctx, receiver, packetID) } @@ -276,7 +275,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeAcknowledgementFee(ctx, r } // DistributeTimeoutFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types5.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeTimeoutFee", ctx, receiver, packetID) } @@ -288,7 +287,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeTimeoutFee(ctx, receiver, } // LockFees mocks base method. -func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types5.PacketID, fee types5.Fee) error { +func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types4.PacketID, fee types4.Fee) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockFees", ctx, payer, packetID, fee) ret0, _ := ret[0].(error) @@ -369,39 +368,39 @@ func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(ctx, portID, channe return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextSequenceSend", reflect.TypeOf((*MockChannelKeeper)(nil).GetNextSequenceSend), ctx, portID, channelID) } -// MockFeeBurnerKeeper is a mock of FeeBurnerKeeper interface. -type MockFeeBurnerKeeper struct { +// MockTreasuryKeeper is a mock of TreasuryKeeper interface. +type MockTreasuryKeeper struct { ctrl *gomock.Controller - recorder *MockFeeBurnerKeeperMockRecorder + recorder *MockTreasuryKeeperMockRecorder } -// MockFeeBurnerKeeperMockRecorder is the mock recorder for MockFeeBurnerKeeper. -type MockFeeBurnerKeeperMockRecorder struct { - mock *MockFeeBurnerKeeper +// MockTreasuryKeeperMockRecorder is the mock recorder for MockTreasuryKeeper. +type MockTreasuryKeeperMockRecorder struct { + mock *MockTreasuryKeeper } -// NewMockFeeBurnerKeeper creates a new mock instance. -func NewMockFeeBurnerKeeper(ctrl *gomock.Controller) *MockFeeBurnerKeeper { - mock := &MockFeeBurnerKeeper{ctrl: ctrl} - mock.recorder = &MockFeeBurnerKeeperMockRecorder{mock} +// NewMockTreasuryKeeper creates a new mock instance. +func NewMockTreasuryKeeper(ctrl *gomock.Controller) *MockTreasuryKeeper { + mock := &MockTreasuryKeeper{ctrl: ctrl} + mock.recorder = &MockTreasuryKeeperMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockFeeBurnerKeeper) EXPECT() *MockFeeBurnerKeeperMockRecorder { +func (m *MockTreasuryKeeper) EXPECT() *MockTreasuryKeeperMockRecorder { return m.recorder } -// GetParams mocks base method. -func (m *MockFeeBurnerKeeper) GetParams(ctx types.Context) types4.Params { +// GetTreasury mocks base method. +func (m *MockTreasuryKeeper) GetTreasury(ctx types.Context) string { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetParams", ctx) - ret0, _ := ret[0].(types4.Params) + ret := m.ctrl.Call(m, "GetTreasury", ctx) + ret0, _ := ret[0].(string) return ret0 } -// GetParams indicates an expected call of GetParams. -func (mr *MockFeeBurnerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call { +// GetTreasury indicates an expected call of GetTreasury. +func (mr *MockTreasuryKeeperMockRecorder) GetTreasury(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParams", reflect.TypeOf((*MockFeeBurnerKeeper)(nil).GetParams), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTreasury", reflect.TypeOf((*MockTreasuryKeeper)(nil).GetTreasury), ctx) } diff --git a/x/feeburner/keeper/keeper.go b/x/feeburner/keeper/keeper.go index e65220b29..32f65b525 100644 --- a/x/feeburner/keeper/keeper.go +++ b/x/feeburner/keeper/keeper.go @@ -142,3 +142,9 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { func (k Keeper) FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error { return k.bankKeeper.SendCoinsFromAccountToModule(ctx, sender, authtypes.FeeCollectorName, amount) } + +// GetTreasury is used to satisfy the interface requirement for interchaintxs module. +// The single point of truth for the treasury address is in the feeburner module params. +func (k Keeper) GetTreasury(ctx sdk.Context) string { + return k.GetParams(ctx).TreasuryAddress +} diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index d6fd0d88b..d1ab98bae 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -26,8 +26,8 @@ func TestHandleAcknowledgement(t *testing.T) { wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) - icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, feeburnerKeeper) + treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, treasuryKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) resACK := channeltypes.Acknowledgement{ @@ -75,8 +75,8 @@ func TestHandleTimeout(t *testing.T) { wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) - icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, feeburnerKeeper) + treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, treasuryKeeper) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" @@ -113,8 +113,8 @@ func TestHandleChanOpenAck(t *testing.T) { defer ctrl.Finish() wmKeeper := mock_types.NewMockWasmKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil, bankKeeper, feeburnerKeeper) + treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil, bankKeeper, treasuryKeeper) portID := icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0" contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) channelID := "channel-0" diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index fe13695f3..7e2238b0a 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -32,7 +32,7 @@ type ( icaControllerKeeper types.ICAControllerKeeper sudoKeeper types.WasmKeeper bankKeeper types.BankKeeper - feeBurnerKeeper types.FeeBurnerKeeper + treasuryKeeper types.TreasuryKeeper authority string } ) @@ -46,7 +46,7 @@ func NewKeeper( sudoKeeper types.WasmKeeper, feeKeeper types.FeeRefunderKeeper, bankKeeper types.BankKeeper, - feeBurnerKeeper types.FeeBurnerKeeper, + treasuryKeeper types.TreasuryKeeper, authority string, ) *Keeper { return &Keeper{ @@ -58,7 +58,7 @@ func NewKeeper( sudoKeeper: sudoKeeper, feeKeeper: feeKeeper, bankKeeper: bankKeeper, - feeBurnerKeeper: feeBurnerKeeper, + treasuryKeeper: treasuryKeeper, authority: authority, } } @@ -76,7 +76,7 @@ func (k Keeper) ChargeFee(ctx sdk.Context, payer sdk.AccAddress, fee sdk.Coins) return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided fee is less than min governance set ack fee: %s < %s", fee, params.RegisterFee) } - treasury := k.feeBurnerKeeper.GetParams(ctx).TreasuryAddress + treasury := k.treasuryKeeper.GetTreasury(ctx) treasuryAddress, err := sdk.AccAddressFromBech32(treasury) if err != nil { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert treasury, bech32 to AccAddress: %s: %s", treasury, err.Error()) diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index bbb3d8d04..b38b511ff 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -6,7 +6,6 @@ import ( "time" "github.com/neutron-org/neutron/app/params" - feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" @@ -32,8 +31,8 @@ func TestRegisterInterchainAccount(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) wmKeeper := mock_types.NewMockWasmKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil, bankKeeper, feeburnerKeeper) + treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil, bankKeeper, treasuryKeeper) goCtx := sdk.WrapSDKContext(ctx) msgRegAcc := types.MsgRegisterInterchainAccount{ @@ -61,9 +60,7 @@ func TestRegisterInterchainAccount(t *testing.T) { msgRegAcc.RegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - feeburnerKeeper.EXPECT().GetParams(ctx).Return(feeburnertypes.Params{ - TreasuryAddress: TestTreasury, - }) + treasuryKeeper.EXPECT().GetTreasury(ctx).Return(TestTreasury) bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(fmt.Errorf("failed to register ica")) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) @@ -71,9 +68,7 @@ func TestRegisterInterchainAccount(t *testing.T) { require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - feeburnerKeeper.EXPECT().GetParams(ctx).Return(feeburnertypes.Params{ - TreasuryAddress: TestTreasury, - }) + treasuryKeeper.EXPECT().GetTreasury(ctx).Return(TestTreasury) bankKeeper.EXPECT(). SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee). Return(fmt.Errorf("failed to send coins")) @@ -82,9 +77,7 @@ func TestRegisterInterchainAccount(t *testing.T) { require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - feeburnerKeeper.EXPECT().GetParams(ctx).Return(feeburnertypes.Params{ - TreasuryAddress: TestTreasury, - }) + treasuryKeeper.EXPECT().GetTreasury(ctx).Return(TestTreasury) bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(nil) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) @@ -100,8 +93,8 @@ func TestSubmitTx(t *testing.T) { refundKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) channelKeeper := mock_types.NewMockChannelKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - feeburnerKeeper := mock_types.NewMockFeeBurnerKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper, bankKeeper, feeburnerKeeper) + treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper, bankKeeper, treasuryKeeper) goCtx := sdk.WrapSDKContext(ctx) cosmosMsg := codectypes.Any{ diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 23648d88d..5b054d857 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -7,7 +7,6 @@ import ( icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" - feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" ) @@ -49,6 +48,8 @@ type ChannelKeeper interface { GetConnection(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error) } -type FeeBurnerKeeper interface { - GetParams(ctx sdk.Context) feeburnertypes.Params +// TreasuryKeeper is a keeper of a module that keeps and maintains the treasury address. +// This could be different module for each chain. +type TreasuryKeeper interface { + GetTreasury(ctx sdk.Context) string } From 41fa1a4f98dd55ef848006f6c19d3ccbd40eb7ad Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 24 Oct 2023 16:10:30 +0400 Subject: [PATCH 162/307] rm rudiment --- .../testdata/neutron_interchain_txs.wasm | Bin app/upgrades/nextupgrade/upgrades.go | 1 - app/upgrades/nextupgrade/upgrades_test.go | 45 ++++++++++-------- x/interchaintxs/keeper/msg_server.go | 2 +- 4 files changed, 27 insertions(+), 21 deletions(-) rename {wasmbinding => app/upgrades/nextupgrade}/testdata/neutron_interchain_txs.wasm (100%) diff --git a/wasmbinding/testdata/neutron_interchain_txs.wasm b/app/upgrades/nextupgrade/testdata/neutron_interchain_txs.wasm similarity index 100% rename from wasmbinding/testdata/neutron_interchain_txs.wasm rename to app/upgrades/nextupgrade/testdata/neutron_interchain_txs.wasm diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index ee062bbd0..29c439db6 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -246,7 +246,6 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, if bzWasm == nil { return fmt.Errorf("last code ID not found during the upgrade") } - store.Set(interchaintxstypes.LastCodeIdBeforeUpgrade, bzWasm) return nil } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 9763feec8..9ace8ba4a 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -55,9 +55,6 @@ func (suite *UpgradeTestSuite) SetupTest() { pTokenfactory := tokenfactorytypes.DefaultParams() subspace.SetParamSet(ctx, &pTokenfactory) - pWasmTypes := icqtypes.DefaultParams() - subspace.SetParamSet(ctx, &pWasmTypes) - subspace, _ = app.ParamsKeeper.GetSubspace(icqtypes.StoreKey) pICQTypes := icqtypes.DefaultParams() subspace.SetParamSet(ctx, &pICQTypes) @@ -65,6 +62,9 @@ func (suite *UpgradeTestSuite) SetupTest() { subspace, _ = app.ParamsKeeper.GetSubspace(interchaintxstypes.StoreKey) pICAtx := interchaintxstypes.DefaultParams() subspace.SetParamSet(ctx, &pICAtx) + + codeIDBefore := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1weweewe"), "testdata/neutron_interchain_txs.wasm") + suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1weweewe"), codeIDBefore) } func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { @@ -172,7 +172,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { ) suite.Require().True(ccvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms)) - + suite.FundAcc(sdk.AccAddress("neutron1weweewe"), sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(10000)))) // emulate mainnet/testnet state ccvConsumerSubspace.Set(ctx, ccvconsumertypes.KeyRewardDenoms, &[]string{params.DefaultDenom}) @@ -180,8 +180,11 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denomsBefore) suite.Require().Equal(denomsBefore, []string{params.DefaultDenom}) contractKeeper := keeper.NewDefaultPermissionKeeper(app.WasmKeeper) - codeIDBefore := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1weweewe"), "../../wasmbiding/testdata/neutron_interchain_txs.wasm.wasm") - contractAddressBefore := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1weweewe"), codeIDBefore) + // store contract just to increase code_id + _ = suite.StoreTestCode(ctx, sdk.AccAddress("neutron1_ica"), "testdata/neutron_interchain_txs.wasm") + // store contract for register ica w/o fees + codeIDBefore := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1_ica"), "testdata/neutron_interchain_txs.wasm") + contractAddressBeforeUpgrade := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1_ica"), codeIDBefore) upgrade := upgradetypes.Plan{ Name: nextupgrade.UpgradeName, @@ -190,22 +193,26 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { } app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) - // Store code and instantiate reflect contract - codeID := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1weweewe"), "../../wasmbinding/testdata/neutron_interchain_txs.wasm") - contractAddressAfter := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1weweewe"), codeID) + lastCodeID := app.InterchainTxsKeeper.GetLastCodeIDBeforeUpgrade(ctx) + // ensure that wasm module stores next code id + suite.Require().Equal(lastCodeID, codeIDBefore+1) + + // store contract after upgrade + codeID := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1_ica"), "testdata/neutron_interchain_txs.wasm") + contractAddressAfterUpgrade := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1_ica"), codeID) // register w/o actual fees - jsonStringBefore := `{"connection_id":"1","interchain_account_id":"test-1"}` - byteEncodedMsgBefore := []byte(jsonStringBefore) - _, err := contractKeeper.Execute(ctx, contractAddressBefore, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgBefore, nil) - suite.Require().Error(err) + jsonStringBeforeUpgrade := `{"register": {"connection_id":"connection-1","interchain_account_id":"test-2"}}` + byteEncodedMsgBeforeUpgrade := []byte(jsonStringBeforeUpgrade) + _, err := contractKeeper.Execute(ctx, contractAddressBeforeUpgrade, sdk.AccAddress("neutron1_ica"), byteEncodedMsgBeforeUpgrade, nil) + suite.Require().NoError(err) // register with fees - jsonStringAfter := `{"connection_id":"1","interchain_account_id":"test-2"}` - byteEncodedMsgAfter := []byte(jsonStringAfter) - _, err = contractKeeper.Execute(ctx, contractAddressAfter, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfter, sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(1000)))) + jsonStringAfterUpgrade := `{"register": {"connection_id":"connection-1","interchain_account_id":"test-3"}}` + byteEncodedMsgAfterUpgrade := []byte(jsonStringAfterUpgrade) + _, err = contractKeeper.Execute(ctx, contractAddressAfterUpgrade, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfterUpgrade, sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(1000)))) suite.Require().NoError(err) - // failed register due lack of fees - _, err = contractKeeper.Execute(ctx, contractAddressAfter, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfter, nil) - suite.Require().Error(err) + // failed register due lack of fees (fees required) + _, err = contractKeeper.Execute(ctx, contractAddressAfterUpgrade, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfterUpgrade, nil) + suite.Error(err) } diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index f940deeba..ddfee769b 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -47,7 +47,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } - if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID > k.GetLastCodeIDBeforeUpgrade(ctx) { + if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetLastCodeIDBeforeUpgrade(ctx) { if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) } From 54ab137ffc79dca212a97dee3a9ebcdd9273f8ab Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 25 Oct 2023 12:50:24 +0400 Subject: [PATCH 163/307] fix expected keepers --- testutil/mocks/contractmanager/types/expected_keepers.go | 6 ++++++ testutil/mocks/interchaintxs/types/expected_keepers.go | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/testutil/mocks/contractmanager/types/expected_keepers.go b/testutil/mocks/contractmanager/types/expected_keepers.go index d27f64e5f..c69dcf649 100644 --- a/testutil/mocks/contractmanager/types/expected_keepers.go +++ b/testutil/mocks/contractmanager/types/expected_keepers.go @@ -7,6 +7,7 @@ package mock_types import ( reflect "reflect" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" types "github.com/cosmos/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" types0 "github.com/neutron-org/neutron/x/contractmanager/types" @@ -18,6 +19,11 @@ type MockWasmKeeper struct { recorder *MockWasmKeeperMockRecorder } +func (m *MockWasmKeeper) GetContractInfo(ctx types.Context, contractAddress types.AccAddress) *wasmtypes.ContractInfo { + //TODO implement me + panic("implement me") +} + // MockWasmKeeperMockRecorder is the mock recorder for MockWasmKeeper. type MockWasmKeeperMockRecorder struct { mock *MockWasmKeeper diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 97633afb9..e5ee509bf 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -7,6 +7,7 @@ package mock_types import ( reflect "reflect" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" types "github.com/cosmos/cosmos-sdk/types" types0 "github.com/cosmos/cosmos-sdk/x/auth/types" types1 "github.com/cosmos/cosmos-sdk/x/capability/types" @@ -112,6 +113,10 @@ type MockWasmKeeper struct { recorder *MockWasmKeeperMockRecorder } +func (m *MockWasmKeeper) GetContractInfo(ctx types.Context, contractAddress types.AccAddress) *wasmtypes.ContractInfo { + return &wasmtypes.ContractInfo{CodeID: 1} +} + // MockWasmKeeperMockRecorder is the mock recorder for MockWasmKeeper. type MockWasmKeeperMockRecorder struct { mock *MockWasmKeeper From fc94bbe2ab714dc150eaf10980f851e8035b41a8 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 25 Oct 2023 13:35:57 +0300 Subject: [PATCH 164/307] uniform import name --- wasmbinding/stargate_allowlist.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 3c3eac22a..1a1ca5483 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -4,7 +4,7 @@ import ( wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" + icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types" ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" @@ -29,7 +29,7 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress": &tokenfactorytypes.QueryBeforeSendHookAddressResponse{}, // interchain accounts - "/ibc.applications.interchain_accounts.controller.v1.Query/InterchainAccount": &types.QueryInterchainAccountResponse{}, + "/ibc.applications.interchain_accounts.controller.v1.Query/InterchainAccount": &icacontrollertypes.QueryInterchainAccountResponse{}, // transfer "/ibc.applications.transfer.v1.Query/DenomTrace": &ibctransfertypes.QueryDenomTraceResponse{}, From 7e91506fb6d733163bab7a4a20960558c1674d97 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 30 Oct 2023 11:24:57 +0400 Subject: [PATCH 165/307] rm unused --- x/interchaintxs/keeper/keeper.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 2bc4aff43..8bc17a709 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -103,8 +103,3 @@ func (k Keeper) GetLastCodeIDBeforeUpgrade(ctx sdk.Context) (codeID uint64) { } return sdk.BigEndianToUint64(bytes) } - -func (k Keeper) SetLastCodeIDBeforeUpgrade(ctx sdk.Context, id uint64) { - store := ctx.KVStore(k.storeKey) - store.Set(types.LastCodeIdBeforeUpgrade, sdk.Uint64ToBigEndian(id)) -} From 86dc405e4388c9bdce88780146a23261916384f0 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Mon, 30 Oct 2023 18:10:28 +0200 Subject: [PATCH 166/307] bump cosmos-sdk --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index f60adf450..a0f9c16f7 100644 --- a/go.mod +++ b/go.mod @@ -192,7 +192,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 - github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index cd8dbb486..1d2952b0f 100644 --- a/go.sum +++ b/go.sum @@ -936,8 +936,8 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad h1:BvYliP3KHiay2VLQwUSmDNCXm380TSTLDud8PH4RV6A= -github.com/neutron-org/cosmos-sdk v0.47.5-0.20230929200416-6c59762e84ad/go.mod h1:4xMyIVekAs2OEUz/yh9JwzhLBMk+olM2sxgKuQdlhLg= +github.com/neutron-org/cosmos-sdk v0.47.5 h1:BUBqUPI5I8rF9ql3RfSCo9XkpZBJPhTZSIWexyxutA4= +github.com/neutron-org/cosmos-sdk v0.47.5/go.mod h1:3uZbdGpMOT5usEich5wHANLxz0VbKE9lL1PUq+rzkS4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e/go.mod h1:Oagy36cU49438NzxKG/gmGTG903tiAI7LIUdH7x2qNY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= From 04ffcb4610a283169624d2d581d156345869b2ba Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 31 Oct 2023 12:17:31 +0400 Subject: [PATCH 167/307] rename getter & prefix, rm unnec step, check error explicitly --- app/upgrades/nextupgrade/upgrades.go | 2 +- app/upgrades/nextupgrade/upgrades_test.go | 19 +++++-------------- x/interchaintxs/keeper/keeper.go | 4 ++-- x/interchaintxs/keeper/msg_server.go | 2 +- x/interchaintxs/types/keys.go | 6 +++--- 5 files changed, 12 insertions(+), 21 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 29c439db6..409a7e1ad 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -246,7 +246,7 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, if bzWasm == nil { return fmt.Errorf("last code ID not found during the upgrade") } - store.Set(interchaintxstypes.LastCodeIdBeforeUpgrade, bzWasm) + store.Set(interchaintxstypes.LastFreeRegisterICACodeID, bzWasm) return nil } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 9ace8ba4a..af355651b 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -5,6 +5,7 @@ import ( "github.com/CosmWasm/wasmd/x/wasm/keeper" adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" + "github.com/cosmos/cosmos-sdk/types/errors" crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" @@ -166,22 +167,12 @@ func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { var ( - app = suite.GetNeutronZoneApp(suite.ChainA) - ccvConsumerSubspace = app.GetSubspace(ccvconsumertypes.ModuleName) - ctx = suite.ChainA.GetContext() + app = suite.GetNeutronZoneApp(suite.ChainA) + ctx = suite.ChainA.GetContext() ) - suite.Require().True(ccvConsumerSubspace.Has(ctx, ccvconsumertypes.KeyRewardDenoms)) suite.FundAcc(sdk.AccAddress("neutron1weweewe"), sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(10000)))) - // emulate mainnet/testnet state - ccvConsumerSubspace.Set(ctx, ccvconsumertypes.KeyRewardDenoms, &[]string{params.DefaultDenom}) - - var denomsBefore []string - ccvConsumerSubspace.Get(ctx, ccvconsumertypes.KeyRewardDenoms, &denomsBefore) - suite.Require().Equal(denomsBefore, []string{params.DefaultDenom}) contractKeeper := keeper.NewDefaultPermissionKeeper(app.WasmKeeper) - // store contract just to increase code_id - _ = suite.StoreTestCode(ctx, sdk.AccAddress("neutron1_ica"), "testdata/neutron_interchain_txs.wasm") // store contract for register ica w/o fees codeIDBefore := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1_ica"), "testdata/neutron_interchain_txs.wasm") contractAddressBeforeUpgrade := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1_ica"), codeIDBefore) @@ -193,7 +184,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { } app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) - lastCodeID := app.InterchainTxsKeeper.GetLastCodeIDBeforeUpgrade(ctx) + lastCodeID := app.InterchainTxsKeeper.GetLastFreeRegisterICACodeID(ctx) // ensure that wasm module stores next code id suite.Require().Equal(lastCodeID, codeIDBefore+1) @@ -214,5 +205,5 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { // failed register due lack of fees (fees required) _, err = contractKeeper.Execute(ctx, contractAddressAfterUpgrade, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfterUpgrade, nil) - suite.Error(err) + suite.ErrorIs(err, errors.ErrInsufficientFunds) } diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 8bc17a709..8856fac89 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -93,9 +93,9 @@ func (k Keeper) GetAuthority() string { return k.authority } -func (k Keeper) GetLastCodeIDBeforeUpgrade(ctx sdk.Context) (codeID uint64) { +func (k Keeper) GetLastFreeRegisterICACodeID(ctx sdk.Context) (codeID uint64) { store := ctx.KVStore(k.storeKey) - bytes := store.Get(types.LastCodeIdBeforeUpgrade) + bytes := store.Get(types.LastFreeRegisterICACodeID) if bytes == nil { k.Logger(ctx).Debug("Last code id key don't exists, GetLastCodeID returns 0") diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index ddfee769b..2da974f0c 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -47,7 +47,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } - if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetLastCodeIDBeforeUpgrade(ctx) { + if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetLastFreeRegisterICACodeID(ctx) { if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) } diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index aa4a6f048..4838bae12 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -18,9 +18,9 @@ const ( ) const ( - prefixParamsKey = iota + 1 - prefixLastCodeIdBeforeUpgrade = iota + 2 + prefixParamsKey = iota + 1 + prefixLastFreeRegisterICACodeID = iota + 2 ) var ParamsKey = []byte{prefixParamsKey} -var LastCodeIdBeforeUpgrade = []byte{prefixLastCodeIdBeforeUpgrade} +var LastFreeRegisterICACodeID = []byte{prefixLastFreeRegisterICACodeID} From 3bb84e08edc98cc4fdbdef81d3a49fe1da325a99 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 31 Oct 2023 12:23:07 +0400 Subject: [PATCH 168/307] add couple of comments --- x/interchaintxs/keeper/msg_server.go | 1 + x/interchaintxs/types/keys.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index 2da974f0c..b4487921b 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -47,6 +47,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } + // if contract is stored after [last] upgrade, we're not going charge fees for register ICA if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetLastFreeRegisterICACodeID(ctx) { if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index 4838bae12..b9cd3b80b 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -18,7 +18,9 @@ const ( ) const ( - prefixParamsKey = iota + 1 + // parameters key + prefixParamsKey = iota + 1 + // prefix of code id, starting from which we charge fee for ICA registration prefixLastFreeRegisterICACodeID = iota + 2 ) From 5c4484c7d0137bb56b3d67155385a90b8caec663 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 31 Oct 2023 13:09:42 +0300 Subject: [PATCH 169/307] merged update-sdk47 branch --- go.mod | 2 +- go.sum | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index c76de410c..d8f0a0f8b 100644 --- a/go.mod +++ b/go.mod @@ -179,7 +179,7 @@ require ( 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 v0.0.0-20230822172742-b8732ec3820d // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index 9d6202982..e58113803 100644 --- a/go.sum +++ b/go.sum @@ -36,6 +36,7 @@ cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34h 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.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= 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= @@ -565,6 +566,7 @@ github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgR github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.1.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= github.com/golang/glog v1.1.1/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +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= @@ -664,6 +666,7 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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= @@ -1084,6 +1087,7 @@ github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/skip-mev/block-sdk v1.0.0 h1:unp9laTgcePHPRm5TCr0xHmytDmTnqAwlivsn/LqTWI= github.com/skip-mev/block-sdk v1.0.0/go.mod h1:+yIvnG/K0o/fnWkX4Iw/Wt7m1ofUO67uz0rsbULuSAY= +github.com/skip-mev/block-sdk v1.1.0/go.mod h1:G/ryMdo70R1xOJehV1RqDyTH0x7gffwB1wU9MLMzIHE= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -1782,6 +1786,7 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz 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 v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= @@ -1829,6 +1834,7 @@ google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCD google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= 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= From 8cbc90bab9a5a414783ff8b664c4c80b1d91e1b8 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 31 Oct 2023 13:32:52 +0300 Subject: [PATCH 170/307] updated go.sum --- go.sum | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/go.sum b/go.sum index e58113803..280f420be 100644 --- a/go.sum +++ b/go.sum @@ -36,6 +36,7 @@ cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34h 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.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= @@ -566,6 +567,7 @@ github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgR github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.1.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= github.com/golang/glog v1.1.1/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +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= @@ -666,6 +668,7 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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= @@ -1087,6 +1090,7 @@ github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/skip-mev/block-sdk v1.0.0 h1:unp9laTgcePHPRm5TCr0xHmytDmTnqAwlivsn/LqTWI= github.com/skip-mev/block-sdk v1.0.0/go.mod h1:+yIvnG/K0o/fnWkX4Iw/Wt7m1ofUO67uz0rsbULuSAY= +github.com/skip-mev/block-sdk v1.1.0 h1:cYEO/ASxhtasdRStMXhw1cWOjCJ78Z3J+K01n++OHkU= github.com/skip-mev/block-sdk v1.1.0/go.mod h1:G/ryMdo70R1xOJehV1RqDyTH0x7gffwB1wU9MLMzIHE= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= @@ -1786,6 +1790,7 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz 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 v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY= google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= @@ -1834,6 +1839,7 @@ google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCD google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= 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= From 09bfbcf608a068811ac4567f2a06c830152f8e1e Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 1 Nov 2023 13:00:23 +0400 Subject: [PATCH 171/307] rename method and prefix --- app/upgrades/nextupgrade/upgrades.go | 2 +- app/upgrades/nextupgrade/upgrades_test.go | 2 +- x/interchaintxs/keeper/keeper.go | 6 +++--- x/interchaintxs/keeper/msg_server.go | 2 +- x/interchaintxs/types/keys.go | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 409a7e1ad..34f26a21d 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -246,7 +246,7 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, if bzWasm == nil { return fmt.Errorf("last code ID not found during the upgrade") } - store.Set(interchaintxstypes.LastFreeRegisterICACodeID, bzWasm) + store.Set(interchaintxstypes.FeeRegisterICACodeID, bzWasm) return nil } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index af355651b..80aaf32b3 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -184,7 +184,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { } app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) - lastCodeID := app.InterchainTxsKeeper.GetLastFreeRegisterICACodeID(ctx) + lastCodeID := app.InterchainTxsKeeper.GetFeeRegisterICACodeID(ctx) // ensure that wasm module stores next code id suite.Require().Equal(lastCodeID, codeIDBefore+1) diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 8856fac89..74fd546ea 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -93,12 +93,12 @@ func (k Keeper) GetAuthority() string { return k.authority } -func (k Keeper) GetLastFreeRegisterICACodeID(ctx sdk.Context) (codeID uint64) { +func (k Keeper) GetFeeRegisterICACodeID(ctx sdk.Context) (codeID uint64) { store := ctx.KVStore(k.storeKey) - bytes := store.Get(types.LastFreeRegisterICACodeID) + bytes := store.Get(types.FeeRegisterICACodeID) if bytes == nil { - k.Logger(ctx).Debug("Last code id key don't exists, GetLastCodeID returns 0") + k.Logger(ctx).Debug("Fee register ICA code id key don't exists, GetLastCodeID returns 0") return 0 } return sdk.BigEndianToUint64(bytes) diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index b4487921b..07baf510c 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -48,7 +48,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. } // if contract is stored after [last] upgrade, we're not going charge fees for register ICA - if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetLastFreeRegisterICACodeID(ctx) { + if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetFeeRegisterICACodeID(ctx) { if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) } diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index b9cd3b80b..8b4d7a499 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -21,8 +21,8 @@ const ( // parameters key prefixParamsKey = iota + 1 // prefix of code id, starting from which we charge fee for ICA registration - prefixLastFreeRegisterICACodeID = iota + 2 + prefixFeeRegisterICACodeID = iota + 2 ) var ParamsKey = []byte{prefixParamsKey} -var LastFreeRegisterICACodeID = []byte{prefixLastFreeRegisterICACodeID} +var FeeRegisterICACodeID = []byte{prefixFeeRegisterICACodeID} From 90c64f095b52da2c5173dce678acba2261e667f2 Mon Sep 17 00:00:00 2001 From: Lockwarr Date: Wed, 1 Nov 2023 14:45:19 +0200 Subject: [PATCH 172/307] fix: make module more independent --- app/app.go | 7 ++-- .../interchaintxs/keeper/interchaintxs.go | 4 +- .../interchaintxs/types/expected_keepers.go | 37 ------------------- x/feeburner/keeper/keeper.go | 6 --- x/interchaintxs/keeper/ibc_handlers_test.go | 15 +++++--- x/interchaintxs/keeper/keeper.go | 16 ++++---- x/interchaintxs/keeper/msg_server_test.go | 21 +++++------ x/interchaintxs/types/expected_keepers.go | 6 --- x/interchaintxs/types/types.go | 3 ++ 9 files changed, 35 insertions(+), 80 deletions(-) diff --git a/app/app.go b/app/app.go index 798cc7f48..738fd1ec6 100644 --- a/app/app.go +++ b/app/app.go @@ -328,8 +328,8 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool blocksdk.Mempool - MEVLane auctionante.MEVLane + Mempool blocksdk.Mempool + MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -655,7 +655,7 @@ func New( contractmanager.NewSudoLimitWrapper(app.ContractManagerKeeper, &app.WasmKeeper), app.FeeKeeper, app.BankKeeper, - app.FeeBurnerKeeper, + func(ctx sdk.Context) string { return app.FeeBurnerKeeper.GetParams(ctx).TreasuryAddress }, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) @@ -977,7 +977,6 @@ func New( mevLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( diff --git a/testutil/interchaintxs/keeper/interchaintxs.go b/testutil/interchaintxs/keeper/interchaintxs.go index 412297b09..9a98022e1 100644 --- a/testutil/interchaintxs/keeper/interchaintxs.go +++ b/testutil/interchaintxs/keeper/interchaintxs.go @@ -27,7 +27,7 @@ func InterchainTxsKeeper( icaControllerKeeper types.ICAControllerKeeper, channelKeeper types.ChannelKeeper, bankKeeper types.BankKeeper, - treasuryKeeper types.TreasuryKeeper, + getFeeCollectorAddr types.GetFeeCollectorAddr, ) (*keeper.Keeper, sdk.Context) { storeKey := sdk.NewKVStoreKey(types.StoreKey) memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) @@ -50,7 +50,7 @@ func InterchainTxsKeeper( managerKeeper, refunderKeeper, bankKeeper, - treasuryKeeper, + getFeeCollectorAddr, authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index 1d9fb7aa3..4b098863c 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -367,40 +367,3 @@ func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(ctx, portID, channe mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextSequenceSend", reflect.TypeOf((*MockChannelKeeper)(nil).GetNextSequenceSend), ctx, portID, channelID) } - -// MockTreasuryKeeper is a mock of TreasuryKeeper interface. -type MockTreasuryKeeper struct { - ctrl *gomock.Controller - recorder *MockTreasuryKeeperMockRecorder -} - -// MockTreasuryKeeperMockRecorder is the mock recorder for MockTreasuryKeeper. -type MockTreasuryKeeperMockRecorder struct { - mock *MockTreasuryKeeper -} - -// NewMockTreasuryKeeper creates a new mock instance. -func NewMockTreasuryKeeper(ctrl *gomock.Controller) *MockTreasuryKeeper { - mock := &MockTreasuryKeeper{ctrl: ctrl} - mock.recorder = &MockTreasuryKeeperMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockTreasuryKeeper) EXPECT() *MockTreasuryKeeperMockRecorder { - return m.recorder -} - -// GetTreasury mocks base method. -func (m *MockTreasuryKeeper) GetTreasury(ctx types.Context) string { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetTreasury", ctx) - ret0, _ := ret[0].(string) - return ret0 -} - -// GetTreasury indicates an expected call of GetTreasury. -func (mr *MockTreasuryKeeperMockRecorder) GetTreasury(ctx interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTreasury", reflect.TypeOf((*MockTreasuryKeeper)(nil).GetTreasury), ctx) -} diff --git a/x/feeburner/keeper/keeper.go b/x/feeburner/keeper/keeper.go index 32f65b525..e65220b29 100644 --- a/x/feeburner/keeper/keeper.go +++ b/x/feeburner/keeper/keeper.go @@ -142,9 +142,3 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { func (k Keeper) FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error { return k.bankKeeper.SendCoinsFromAccountToModule(ctx, sender, authtypes.FeeCollectorName, amount) } - -// GetTreasury is used to satisfy the interface requirement for interchaintxs module. -// The single point of truth for the treasury address is in the feeburner module params. -func (k Keeper) GetTreasury(ctx sdk.Context) string { - return k.GetParams(ctx).TreasuryAddress -} diff --git a/x/interchaintxs/keeper/ibc_handlers_test.go b/x/interchaintxs/keeper/ibc_handlers_test.go index d1ab98bae..4b8e0d546 100644 --- a/x/interchaintxs/keeper/ibc_handlers_test.go +++ b/x/interchaintxs/keeper/ibc_handlers_test.go @@ -26,8 +26,9 @@ func TestHandleAcknowledgement(t *testing.T) { wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) - icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, treasuryKeeper) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, func(ctx sdk.Context) string { + return TestFeeCollectorAddr + }) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) resACK := channeltypes.Acknowledgement{ @@ -75,8 +76,9 @@ func TestHandleTimeout(t *testing.T) { wmKeeper := mock_types.NewMockWasmKeeper(ctrl) feeKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) - icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, treasuryKeeper) + icak, infCtx := testkeeper.InterchainTxsKeeper(t, wmKeeper, feeKeeper, icaKeeper, nil, bankKeeper, func(ctx sdk.Context) string { + return TestFeeCollectorAddr + }) ctx := infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) relayerBech32 := "neutron1fxudpred77a0grgh69u0j7y84yks5ev4n5050z45kecz792jnd6scqu98z" @@ -113,8 +115,9 @@ func TestHandleChanOpenAck(t *testing.T) { defer ctrl.Finish() wmKeeper := mock_types.NewMockWasmKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil, bankKeeper, treasuryKeeper) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, nil, nil, bankKeeper, func(ctx sdk.Context) string { + return TestFeeCollectorAddr + }) portID := icatypes.ControllerPortPrefix + testutil.TestOwnerAddress + ".ica0" contractAddress := sdk.MustAccAddressFromBech32(testutil.TestOwnerAddress) channelID := "channel-0" diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 7e2238b0a..ac0cc37ce 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -32,7 +32,7 @@ type ( icaControllerKeeper types.ICAControllerKeeper sudoKeeper types.WasmKeeper bankKeeper types.BankKeeper - treasuryKeeper types.TreasuryKeeper + getFeeCollectorAddr types.GetFeeCollectorAddr authority string } ) @@ -46,7 +46,7 @@ func NewKeeper( sudoKeeper types.WasmKeeper, feeKeeper types.FeeRefunderKeeper, bankKeeper types.BankKeeper, - treasuryKeeper types.TreasuryKeeper, + getFeeCollectorAddr types.GetFeeCollectorAddr, authority string, ) *Keeper { return &Keeper{ @@ -58,7 +58,7 @@ func NewKeeper( sudoKeeper: sudoKeeper, feeKeeper: feeKeeper, bankKeeper: bankKeeper, - treasuryKeeper: treasuryKeeper, + getFeeCollectorAddr: getFeeCollectorAddr, authority: authority, } } @@ -76,15 +76,15 @@ func (k Keeper) ChargeFee(ctx sdk.Context, payer sdk.AccAddress, fee sdk.Coins) return errors.Wrapf(sdkerrors.ErrInsufficientFee, "provided fee is less than min governance set ack fee: %s < %s", fee, params.RegisterFee) } - treasury := k.treasuryKeeper.GetTreasury(ctx) - treasuryAddress, err := sdk.AccAddressFromBech32(treasury) + feeCollector := k.getFeeCollectorAddr(ctx) + feeCollectorAddress, err := sdk.AccAddressFromBech32(feeCollector) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert treasury, bech32 to AccAddress: %s: %s", treasury, err.Error()) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert fee collecor, bech32 to AccAddress: %s: %s", feeCollector, err.Error()) } - err = k.bankKeeper.SendCoins(ctx, payer, treasuryAddress, fee) + err = k.bankKeeper.SendCoins(ctx, payer, feeCollectorAddress, fee) if err != nil { - return errors.Wrapf(err, "failed send fee(%s) from %s to %s", fee, payer, treasury) + return errors.Wrapf(err, "failed send fee(%s) from %s to %s", fee, payer, feeCollectorAddress) } return nil } diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index b38b511ff..c4c173deb 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -23,7 +23,7 @@ import ( "github.com/neutron-org/neutron/x/interchaintxs/types" ) -const TestTreasury = "neutron1dua3d89szsmd3vwg0y5a2689ah0g4x68ps8vew" +const TestFeeCollectorAddr = "neutron1dua3d89szsmd3vwg0y5a2689ah0g4x68ps8vew" func TestRegisterInterchainAccount(t *testing.T) { ctrl := gomock.NewController(t) @@ -31,8 +31,9 @@ func TestRegisterInterchainAccount(t *testing.T) { icaKeeper := mock_types.NewMockICAControllerKeeper(ctrl) wmKeeper := mock_types.NewMockWasmKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil, bankKeeper, treasuryKeeper) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, nil, icaKeeper, nil, bankKeeper, func(ctx sdk.Context) string { + return TestFeeCollectorAddr + }) goCtx := sdk.WrapSDKContext(ctx) msgRegAcc := types.MsgRegisterInterchainAccount{ @@ -60,25 +61,22 @@ func TestRegisterInterchainAccount(t *testing.T) { msgRegAcc.RegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - treasuryKeeper.EXPECT().GetTreasury(ctx).Return(TestTreasury) - bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee) + bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(fmt.Errorf("failed to register ica")) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.ErrorContains(t, err, "failed to RegisterInterchainAccount") require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - treasuryKeeper.EXPECT().GetTreasury(ctx).Return(TestTreasury) bankKeeper.EXPECT(). - SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee). + SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee). Return(fmt.Errorf("failed to send coins")) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.ErrorContains(t, err, "failed to send coins") require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) - treasuryKeeper.EXPECT().GetTreasury(ctx).Return(TestTreasury) - bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestTreasury), msgRegAcc.RegisterFee) + bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(nil) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.NoError(t, err) @@ -93,8 +91,9 @@ func TestSubmitTx(t *testing.T) { refundKeeper := mock_types.NewMockFeeRefunderKeeper(ctrl) channelKeeper := mock_types.NewMockChannelKeeper(ctrl) bankKeeper := mock_types.NewMockBankKeeper(ctrl) - treasuryKeeper := mock_types.NewMockTreasuryKeeper(ctrl) - icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper, bankKeeper, treasuryKeeper) + icak, ctx := testkeeper.InterchainTxsKeeper(t, wmKeeper, refundKeeper, icaKeeper, channelKeeper, bankKeeper, func(ctx sdk.Context) string { + return TestFeeCollectorAddr + }) goCtx := sdk.WrapSDKContext(ctx) cosmosMsg := codectypes.Any{ diff --git a/x/interchaintxs/types/expected_keepers.go b/x/interchaintxs/types/expected_keepers.go index 5b054d857..6c777acbf 100644 --- a/x/interchaintxs/types/expected_keepers.go +++ b/x/interchaintxs/types/expected_keepers.go @@ -47,9 +47,3 @@ type ChannelKeeper interface { GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) GetConnection(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error) } - -// TreasuryKeeper is a keeper of a module that keeps and maintains the treasury address. -// This could be different module for each chain. -type TreasuryKeeper interface { - GetTreasury(ctx sdk.Context) string -} diff --git a/x/interchaintxs/types/types.go b/x/interchaintxs/types/types.go index 247c7821d..0f417c613 100644 --- a/x/interchaintxs/types/types.go +++ b/x/interchaintxs/types/types.go @@ -54,3 +54,6 @@ func (i ICAOwner) GetContract() sdk.AccAddress { func (i ICAOwner) GetInterchainAccountID() string { return i.interchainAccountID } + +// GetFeeCollectorAddr is a function to return the current fee collector address +type GetFeeCollectorAddr func(ctx sdk.Context) string From 6cdcbf2ea85edda5ce1cd1524ddaac4d9f8cb2af Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 22 Sep 2023 09:02:27 -0600 Subject: [PATCH 173/307] copy over duality files --- proto/neutron/dex/deposit_record.proto | 20 + proto/neutron/dex/genesis.proto | 26 + .../neutron/dex/limit_order_expiration.proto | 18 + proto/neutron/dex/limit_order_tranche.proto | 60 + .../dex/limit_order_tranche_user.proto | 34 + proto/neutron/dex/pair_id.proto | 9 + proto/neutron/dex/params.proto | 12 + proto/neutron/dex/pool.proto | 14 + proto/neutron/dex/pool_metadata.proto | 13 + proto/neutron/dex/pool_reserves.proto | 35 + proto/neutron/dex/query.proto | 327 + proto/neutron/dex/tick_liquidity.proto | 17 + proto/neutron/dex/trade_pair_id.proto | 9 + proto/neutron/dex/tx.proto | 186 + proto/neutron/epochs/genesis.proto | 72 + proto/neutron/epochs/query.proto | 30 + .../neutron/incentives/account_history.proto | 19 + proto/neutron/incentives/gauge.proto | 115 + proto/neutron/incentives/genesis.proto | 26 + proto/neutron/incentives/params.proto | 17 + proto/neutron/incentives/query.proto | 161 + proto/neutron/incentives/stake.proto | 41 + proto/neutron/incentives/tx.proto | 96 + tests/ibc/gmp_swap_forward_test.go | 117 + tests/ibc/ibc_setup_test.go | 392 + tests/ibc/swap_forward_test.go | 481 + tests/ibc/swap_test.go | 214 + testutil/apptesting/events.go | 41 + testutil/apptesting/test_suite.go | 153 + testutil/common/sample/sample.go | 13 + testutil/dex/keeper/dex.go | 89 + testutil/dex/nullify/nullify.go | 57 + testutil/integration_test_setup.go | 308 + utils/bank.go | 110 + utils/cache_ctx.go | 79 + utils/cli_helpers.go | 68 + utils/dcli/cli_tester.go | 111 + utils/dcli/flag_advice.go | 79 + utils/dcli/index_cmd.go | 31 + utils/dcli/parsers.go | 366 + utils/dcli/parsers_test.go | 167 + utils/dcli/query_cmd_wrap.go | 181 + utils/dcli/string_formatter.go | 49 + utils/dcli/tx_cmd_wrap.go | 103 + utils/generic_helper.go | 17 + utils/math/prec_dec.go | 970 ++ utils/slice_helper.go | 51 + wasmbinding/stargate_allowlist.go | 29 +- x/dex/client/cli/flags.go | 13 + x/dex/client/cli/query.go | 50 + .../cli/query_inactive_limit_order_tranche.go | 90 + x/dex/client/cli/query_limit_order_tranche.go | 98 + .../cli/query_limit_order_tranche_user.go | 73 + x/dex/client/cli/query_params.go | 34 + x/dex/client/cli/query_pool.go | 95 + x/dex/client/cli/query_pool_metadata.go | 82 + x/dex/client/cli/query_pool_reserves.go | 105 + x/dex/client/cli/query_test.go | 450 + x/dex/client/cli/query_tick_liquidity.go | 50 + x/dex/client/cli/query_user_deposits.go | 43 + x/dex/client/cli/query_user_limit_orders.go | 43 + x/dex/client/cli/tx.go | 34 + x/dex/client/cli/tx_cancel_limit_order.go | 38 + x/dex/client/cli/tx_deposit.go | 121 + x/dex/client/cli/tx_multi_hop_swap.go | 75 + x/dex/client/cli/tx_place_limit_order.go | 107 + x/dex/client/cli/tx_test.go | 657 ++ x/dex/client/cli/tx_withdrawl.go | 91 + .../cli/tx_withdrawl_filled_limit_order.go | 38 + x/dex/genesis.go | 54 + x/dex/genesis_test.go | 125 + x/dex/keeper/core.go | 581 ++ x/dex/keeper/core_helper.go | 106 + x/dex/keeper/core_helper_test.go | 159 + x/dex/keeper/deposit_record.go | 38 + x/dex/keeper/deposit_record_test.go | 61 + x/dex/keeper/grpc_query.go | 7 + .../grpc_query_estimate_multi_hop_swap.go | 50 + ...grpc_query_estimate_multi_hop_swap_test.go | 365 + .../grpc_query_estimate_place_limit_order.go | 70 + ...grpc_query_inactive_limit_order_tranche.go | 74 + ...query_inactive_limit_order_tranche_test.go | 135 + .../keeper/grpc_query_limit_order_tranche.go | 90 + .../grpc_query_limit_order_tranche_test.go | 135 + .../grpc_query_limit_order_tranche_user.go | 102 + ...rpc_query_limit_order_tranche_user_test.go | 185 + x/dex/keeper/grpc_query_params.go | 19 + x/dex/keeper/grpc_query_params_test.go | 21 + x/dex/keeper/grpc_query_pool.go | 51 + x/dex/keeper/grpc_query_pool_metadata.go | 54 + x/dex/keeper/grpc_query_pool_metadata_test.go | 118 + x/dex/keeper/grpc_query_pool_reserves.go | 87 + x/dex/keeper/grpc_query_pool_reserves_test.go | 135 + x/dex/keeper/grpc_query_pool_test.go | 122 + x/dex/keeper/grpc_query_tick_liquidity.go | 53 + .../keeper/grpc_query_tick_liquidity_test.go | 72 + x/dex/keeper/grpc_query_user_deposits.go | 71 + x/dex/keeper/grpc_query_user_deposits_test.go | 142 + x/dex/keeper/inactive_limit_order_tranche.go | 68 + .../inactive_limit_order_tranche_test.go | 73 + .../integration_cancellimitorder_test.go | 286 + .../integration_deposit_autoswap_unit_test.go | 108 + .../integration_deposit_doublesided_test.go | 248 + .../keeper/integration_deposit_multi_test.go | 45 + .../integration_deposit_singlesided_test.go | 435 + x/dex/keeper/integration_multihopswap_test.go | 389 + .../integration_placelimitorder_test.go | 771 ++ .../keeper/integration_withdraw_multi_test.go | 54 + x/dex/keeper/integration_withdraw_test.go | 263 + .../keeper/integration_withdrawfilled_test.go | 229 + .../keeper/internal/testutils/test_helpers.go | 23 + x/dex/keeper/keeper.go | 50 + x/dex/keeper/limit_order_expiration.go | 155 + x/dex/keeper/limit_order_expiration_test.go | 227 + x/dex/keeper/limit_order_tranche.go | 241 + x/dex/keeper/limit_order_tranche_test.go | 60 + x/dex/keeper/limit_order_tranche_user.go | 129 + x/dex/keeper/limit_order_tranche_user_test.go | 109 + x/dex/keeper/liquidity.go | 108 + x/dex/keeper/liquidity_iterator.go | 94 + x/dex/keeper/liquidity_test.go | 746 ++ x/dex/keeper/msg_server.go | 183 + x/dex/keeper/msg_server_test.go | 1543 +++ x/dex/keeper/multihop_swap.go | 167 + x/dex/keeper/pair_helper.go | 34 + x/dex/keeper/params.go | 17 + x/dex/keeper/params_test.go | 26 + x/dex/keeper/pool.go | 163 + x/dex/keeper/pool_metadata.go | 71 + x/dex/keeper/pool_metadata_test.go | 54 + x/dex/keeper/pool_reserves.go | 41 + x/dex/keeper/pool_reserves_test.go | 44 + x/dex/keeper/pool_test.go | 92 + x/dex/keeper/tick_iterator.go | 42 + x/dex/keeper/tick_liquidity.go | 23 + x/dex/keeper/tick_liquidity_test.go | 46 + x/dex/module.go | 180 + x/dex/module_simulation.go | 167 + x/dex/simulation/cancel_limit_order.go | 28 + x/dex/simulation/deposit.go | 28 + x/dex/simulation/multi_hop_swap.go | 28 + x/dex/simulation/place_limit_order.go | 28 + x/dex/simulation/simap.go | 16 + x/dex/simulation/withdrawl.go | 28 + .../withdrawl_filled_limit_order.go | 28 + x/dex/types/branchable_cache.go | 34 + x/dex/types/codec.go | 50 + x/dex/types/deposit_record.pb.go | 524 + x/dex/types/errors.go | 163 + x/dex/types/events.go | 227 + x/dex/types/expected_keepers.go | 17 + x/dex/types/genesis.go | 74 + x/dex/types/genesis.pb.go | 616 ++ x/dex/types/genesis_test.go | 196 + x/dex/types/keys.go | 296 + x/dex/types/limit_order_expiration.pb.go | 381 + x/dex/types/limit_order_tranche.go | 162 + x/dex/types/limit_order_tranche.pb.go | 918 ++ x/dex/types/limit_order_tranche_key.go | 75 + x/dex/types/limit_order_tranche_user.go | 6 + x/dex/types/limit_order_tranche_user.pb.go | 658 ++ x/dex/types/limit_order_type.go | 29 + x/dex/types/liquidity.go | 11 + x/dex/types/message_cancel_limit_order.go | 48 + .../types/message_cancel_limit_order_test.go | 43 + x/dex/types/message_deposit.go | 90 + x/dex/types/message_deposit_test.go | 137 + x/dex/types/message_multi_hop_swap.go | 85 + x/dex/types/message_multi_hop_swap_test.go | 85 + x/dex/types/message_place_limit_order.go | 105 + x/dex/types/message_place_limit_order_test.go | 107 + x/dex/types/message_withdrawl.go | 81 + .../message_withdrawl_filled_limit_order.go | 48 + ...ssage_withdrawl_filled_limit_order_test.go | 43 + x/dex/types/message_withdrawl_test.go | 117 + x/dex/types/pair_id.go | 95 + x/dex/types/pair_id.pb.go | 365 + x/dex/types/params.go | 67 + x/dex/types/params.pb.go | 374 + x/dex/types/pool.go | 291 + x/dex/types/pool.pb.go | 424 + x/dex/types/pool_denom.go | 41 + x/dex/types/pool_denom_test.go | 55 + x/dex/types/pool_liquidity.go | 26 + x/dex/types/pool_metadata.go | 5 + x/dex/types/pool_metadata.pb.go | 432 + x/dex/types/pool_reserves.go | 52 + x/dex/types/pool_reserves.pb.go | 734 ++ x/dex/types/pool_reserves_key.go | 87 + x/dex/types/pool_test.go | 208 + x/dex/types/price.go | 37 + x/dex/types/price_test.go | 11 + x/dex/types/query.pb.go | 9224 +++++++++++++++++ x/dex/types/query.pb.gw.go | 2200 ++++ x/dex/types/tick_liquidity.go | 44 + x/dex/types/tick_liquidity.pb.go | 469 + x/dex/types/tick_liquidity_key.go | 8 + x/dex/types/tick_liquidity_test.go | 34 + x/dex/types/trade_pair_id.go | 103 + x/dex/types/trade_pair_id.pb.go | 366 + x/dex/types/tx.pb.go | 4608 ++++++++ x/dex/types/types.go | 1 + x/dex/utils/abci.go | 28 + x/dex/utils/errors.go | 15 + x/dex/utils/math.go | 67 + x/epochs/README.md | 187 + x/epochs/client/cli/cli_test.go | 33 + x/epochs/client/cli/query.go | 36 + x/epochs/keeper/abci.go | 81 + x/epochs/keeper/abci_test.go | 300 + x/epochs/keeper/epoch.go | 114 + x/epochs/keeper/epoch_test.go | 97 + x/epochs/keeper/genesis.go | 24 + x/epochs/keeper/genesis_test.go | 96 + x/epochs/keeper/grpc_query.go | 60 + x/epochs/keeper/grpc_query_test.go | 30 + x/epochs/keeper/hooks.go | 22 + x/epochs/keeper/keeper.go | 41 + x/epochs/keeper/keeper_test.go | 24 + x/epochs/module.go | 173 + x/epochs/types/doc.go | 4 + x/epochs/types/events.go | 9 + x/epochs/types/genesis.go | 68 + x/epochs/types/genesis.pb.go | 821 ++ x/epochs/types/hooks.go | 67 + x/epochs/types/hooks_test.go | 167 + x/epochs/types/identifier.go | 23 + x/epochs/types/keys.go | 18 + x/epochs/types/query.pb.go | 912 ++ x/epochs/types/query.pb.gw.go | 236 + x/gmp/ibc_middleware.go | 148 + x/gmp/types.go | 21 + x/ibcswap/ibc_middleware.go | 373 + x/ibcswap/keeper/keeper.go | 188 + x/ibcswap/module.go | 133 + x/ibcswap/types/errors.go | 9 + x/ibcswap/types/expected_keepers.go | 14 + x/ibcswap/types/keys.go | 8 + x/ibcswap/types/swap.go | 102 + x/ibcswap/types/swap_test.go | 243 + x/incentives/README GAUGES.md | 651 ++ x/incentives/README LOCKUP.md | 1054 ++ x/incentives/client/cli/cli_test.go | 351 + x/incentives/client/cli/flags.go | 22 + x/incentives/client/cli/query.go | 113 + x/incentives/client/cli/query_test.go | 131 + x/incentives/client/cli/tx.go | 173 + x/incentives/keeper/account_history.go | 83 + x/incentives/keeper/distribute.go | 184 + x/incentives/keeper/distribute_test.go | 362 + x/incentives/keeper/distributor.go | 91 + x/incentives/keeper/distributor_test.go | 140 + x/incentives/keeper/export_test.go | 44 + x/incentives/keeper/gas_test.go | 77 + x/incentives/keeper/gauge.go | 309 + x/incentives/keeper/gauge_test.go | 280 + x/incentives/keeper/genesis.go | 78 + x/incentives/keeper/genesis_test.go | 57 + x/incentives/keeper/hooks.go | 60 + x/incentives/keeper/iterator.go | 58 + x/incentives/keeper/keeper.go | 81 + x/incentives/keeper/keeper_test.go | 52 + x/incentives/keeper/msg_server.go | 183 + x/incentives/keeper/params.go | 18 + x/incentives/keeper/query_server.go | 267 + x/incentives/keeper/query_server_test.go | 126 + x/incentives/keeper/stake.go | 249 + x/incentives/keeper/stake_refs.go | 72 + x/incentives/keeper/stake_test.go | 120 + x/incentives/keeper/store_test.go | 54 + x/incentives/keeper/suite_test.go | 123 + x/incentives/keeper/utils.go | 78 + x/incentives/keeper/utils_test.go | 126 + x/incentives/module.go | 212 + x/incentives/types/account.pb.go | 391 + x/incentives/types/account_history.pb.go | 391 + x/incentives/types/codec.go | 35 + x/incentives/types/distribution_spec.go | 25 + x/incentives/types/distribution_spec_test.go | 44 + x/incentives/types/errors.go | 43 + x/incentives/types/events.go | 21 + x/incentives/types/expected_keepers.go | 34 + x/incentives/types/gauge.go | 82 + x/incentives/types/gauge.pb.go | 1021 ++ x/incentives/types/gauge_test.go | 65 + x/incentives/types/gauges.go | 24 + x/incentives/types/genesis.go | 23 + x/incentives/types/genesis.pb.go | 590 ++ x/incentives/types/hooks.go | 82 + x/incentives/types/keys.go | 175 + x/incentives/types/keys_test.go | 18 + x/incentives/types/msgs.go | 230 + x/incentives/types/msgs_test.go | 323 + x/incentives/types/params.go | 50 + x/incentives/types/params.pb.go | 359 + x/incentives/types/query.pb.go | 3584 +++++++ x/incentives/types/query.pb.gw.go | 842 ++ x/incentives/types/query_condition.go | 18 + x/incentives/types/query_condition_test.go | 62 + x/incentives/types/stake.go | 53 + x/incentives/types/stake.pb.go | 531 + x/incentives/types/stakes.go | 16 + x/incentives/types/tx.pb.go | 2314 +++++ 303 files changed, 67593 insertions(+), 1 deletion(-) create mode 100644 proto/neutron/dex/deposit_record.proto create mode 100644 proto/neutron/dex/genesis.proto create mode 100644 proto/neutron/dex/limit_order_expiration.proto create mode 100644 proto/neutron/dex/limit_order_tranche.proto create mode 100644 proto/neutron/dex/limit_order_tranche_user.proto create mode 100644 proto/neutron/dex/pair_id.proto create mode 100644 proto/neutron/dex/params.proto create mode 100644 proto/neutron/dex/pool.proto create mode 100644 proto/neutron/dex/pool_metadata.proto create mode 100644 proto/neutron/dex/pool_reserves.proto create mode 100644 proto/neutron/dex/query.proto create mode 100644 proto/neutron/dex/tick_liquidity.proto create mode 100644 proto/neutron/dex/trade_pair_id.proto create mode 100644 proto/neutron/dex/tx.proto create mode 100644 proto/neutron/epochs/genesis.proto create mode 100644 proto/neutron/epochs/query.proto create mode 100644 proto/neutron/incentives/account_history.proto create mode 100644 proto/neutron/incentives/gauge.proto create mode 100644 proto/neutron/incentives/genesis.proto create mode 100644 proto/neutron/incentives/params.proto create mode 100644 proto/neutron/incentives/query.proto create mode 100644 proto/neutron/incentives/stake.proto create mode 100644 proto/neutron/incentives/tx.proto create mode 100644 tests/ibc/gmp_swap_forward_test.go create mode 100644 tests/ibc/ibc_setup_test.go create mode 100644 tests/ibc/swap_forward_test.go create mode 100644 tests/ibc/swap_test.go create mode 100644 testutil/apptesting/events.go create mode 100644 testutil/apptesting/test_suite.go create mode 100644 testutil/common/sample/sample.go create mode 100644 testutil/dex/keeper/dex.go create mode 100644 testutil/dex/nullify/nullify.go create mode 100644 testutil/integration_test_setup.go create mode 100644 utils/bank.go create mode 100644 utils/cache_ctx.go create mode 100644 utils/cli_helpers.go create mode 100644 utils/dcli/cli_tester.go create mode 100644 utils/dcli/flag_advice.go create mode 100644 utils/dcli/index_cmd.go create mode 100644 utils/dcli/parsers.go create mode 100644 utils/dcli/parsers_test.go create mode 100644 utils/dcli/query_cmd_wrap.go create mode 100644 utils/dcli/string_formatter.go create mode 100644 utils/dcli/tx_cmd_wrap.go create mode 100644 utils/generic_helper.go create mode 100644 utils/math/prec_dec.go create mode 100644 utils/slice_helper.go create mode 100644 x/dex/client/cli/flags.go create mode 100644 x/dex/client/cli/query.go create mode 100644 x/dex/client/cli/query_inactive_limit_order_tranche.go create mode 100644 x/dex/client/cli/query_limit_order_tranche.go create mode 100644 x/dex/client/cli/query_limit_order_tranche_user.go create mode 100644 x/dex/client/cli/query_params.go create mode 100644 x/dex/client/cli/query_pool.go create mode 100644 x/dex/client/cli/query_pool_metadata.go create mode 100644 x/dex/client/cli/query_pool_reserves.go create mode 100644 x/dex/client/cli/query_test.go create mode 100644 x/dex/client/cli/query_tick_liquidity.go create mode 100644 x/dex/client/cli/query_user_deposits.go create mode 100644 x/dex/client/cli/query_user_limit_orders.go create mode 100644 x/dex/client/cli/tx.go create mode 100644 x/dex/client/cli/tx_cancel_limit_order.go create mode 100644 x/dex/client/cli/tx_deposit.go create mode 100644 x/dex/client/cli/tx_multi_hop_swap.go create mode 100644 x/dex/client/cli/tx_place_limit_order.go create mode 100644 x/dex/client/cli/tx_test.go create mode 100644 x/dex/client/cli/tx_withdrawl.go create mode 100644 x/dex/client/cli/tx_withdrawl_filled_limit_order.go create mode 100644 x/dex/genesis.go create mode 100644 x/dex/genesis_test.go create mode 100644 x/dex/keeper/core.go create mode 100644 x/dex/keeper/core_helper.go create mode 100644 x/dex/keeper/core_helper_test.go create mode 100644 x/dex/keeper/deposit_record.go create mode 100644 x/dex/keeper/deposit_record_test.go create mode 100644 x/dex/keeper/grpc_query.go create mode 100644 x/dex/keeper/grpc_query_estimate_multi_hop_swap.go create mode 100644 x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go create mode 100644 x/dex/keeper/grpc_query_estimate_place_limit_order.go create mode 100644 x/dex/keeper/grpc_query_inactive_limit_order_tranche.go create mode 100644 x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go create mode 100644 x/dex/keeper/grpc_query_limit_order_tranche.go create mode 100644 x/dex/keeper/grpc_query_limit_order_tranche_test.go create mode 100644 x/dex/keeper/grpc_query_limit_order_tranche_user.go create mode 100644 x/dex/keeper/grpc_query_limit_order_tranche_user_test.go create mode 100644 x/dex/keeper/grpc_query_params.go create mode 100644 x/dex/keeper/grpc_query_params_test.go create mode 100644 x/dex/keeper/grpc_query_pool.go create mode 100644 x/dex/keeper/grpc_query_pool_metadata.go create mode 100644 x/dex/keeper/grpc_query_pool_metadata_test.go create mode 100644 x/dex/keeper/grpc_query_pool_reserves.go create mode 100644 x/dex/keeper/grpc_query_pool_reserves_test.go create mode 100644 x/dex/keeper/grpc_query_pool_test.go create mode 100644 x/dex/keeper/grpc_query_tick_liquidity.go create mode 100644 x/dex/keeper/grpc_query_tick_liquidity_test.go create mode 100644 x/dex/keeper/grpc_query_user_deposits.go create mode 100644 x/dex/keeper/grpc_query_user_deposits_test.go create mode 100644 x/dex/keeper/inactive_limit_order_tranche.go create mode 100644 x/dex/keeper/inactive_limit_order_tranche_test.go create mode 100644 x/dex/keeper/integration_cancellimitorder_test.go create mode 100644 x/dex/keeper/integration_deposit_autoswap_unit_test.go create mode 100644 x/dex/keeper/integration_deposit_doublesided_test.go create mode 100644 x/dex/keeper/integration_deposit_multi_test.go create mode 100644 x/dex/keeper/integration_deposit_singlesided_test.go create mode 100644 x/dex/keeper/integration_multihopswap_test.go create mode 100644 x/dex/keeper/integration_placelimitorder_test.go create mode 100644 x/dex/keeper/integration_withdraw_multi_test.go create mode 100644 x/dex/keeper/integration_withdraw_test.go create mode 100644 x/dex/keeper/integration_withdrawfilled_test.go create mode 100644 x/dex/keeper/internal/testutils/test_helpers.go create mode 100644 x/dex/keeper/keeper.go create mode 100644 x/dex/keeper/limit_order_expiration.go create mode 100644 x/dex/keeper/limit_order_expiration_test.go create mode 100644 x/dex/keeper/limit_order_tranche.go create mode 100644 x/dex/keeper/limit_order_tranche_test.go create mode 100644 x/dex/keeper/limit_order_tranche_user.go create mode 100644 x/dex/keeper/limit_order_tranche_user_test.go create mode 100644 x/dex/keeper/liquidity.go create mode 100644 x/dex/keeper/liquidity_iterator.go create mode 100644 x/dex/keeper/liquidity_test.go create mode 100644 x/dex/keeper/msg_server.go create mode 100644 x/dex/keeper/msg_server_test.go create mode 100644 x/dex/keeper/multihop_swap.go create mode 100644 x/dex/keeper/pair_helper.go create mode 100644 x/dex/keeper/params.go create mode 100644 x/dex/keeper/params_test.go create mode 100644 x/dex/keeper/pool.go create mode 100644 x/dex/keeper/pool_metadata.go create mode 100644 x/dex/keeper/pool_metadata_test.go create mode 100644 x/dex/keeper/pool_reserves.go create mode 100644 x/dex/keeper/pool_reserves_test.go create mode 100644 x/dex/keeper/pool_test.go create mode 100644 x/dex/keeper/tick_iterator.go create mode 100644 x/dex/keeper/tick_liquidity.go create mode 100644 x/dex/keeper/tick_liquidity_test.go create mode 100644 x/dex/module.go create mode 100644 x/dex/module_simulation.go create mode 100644 x/dex/simulation/cancel_limit_order.go create mode 100644 x/dex/simulation/deposit.go create mode 100644 x/dex/simulation/multi_hop_swap.go create mode 100644 x/dex/simulation/place_limit_order.go create mode 100644 x/dex/simulation/simap.go create mode 100644 x/dex/simulation/withdrawl.go create mode 100644 x/dex/simulation/withdrawl_filled_limit_order.go create mode 100644 x/dex/types/branchable_cache.go create mode 100644 x/dex/types/codec.go create mode 100644 x/dex/types/deposit_record.pb.go create mode 100644 x/dex/types/errors.go create mode 100644 x/dex/types/events.go create mode 100644 x/dex/types/expected_keepers.go create mode 100644 x/dex/types/genesis.go create mode 100644 x/dex/types/genesis.pb.go create mode 100644 x/dex/types/genesis_test.go create mode 100644 x/dex/types/keys.go create mode 100644 x/dex/types/limit_order_expiration.pb.go create mode 100644 x/dex/types/limit_order_tranche.go create mode 100644 x/dex/types/limit_order_tranche.pb.go create mode 100644 x/dex/types/limit_order_tranche_key.go create mode 100644 x/dex/types/limit_order_tranche_user.go create mode 100644 x/dex/types/limit_order_tranche_user.pb.go create mode 100644 x/dex/types/limit_order_type.go create mode 100644 x/dex/types/liquidity.go create mode 100644 x/dex/types/message_cancel_limit_order.go create mode 100644 x/dex/types/message_cancel_limit_order_test.go create mode 100644 x/dex/types/message_deposit.go create mode 100644 x/dex/types/message_deposit_test.go create mode 100644 x/dex/types/message_multi_hop_swap.go create mode 100644 x/dex/types/message_multi_hop_swap_test.go create mode 100644 x/dex/types/message_place_limit_order.go create mode 100644 x/dex/types/message_place_limit_order_test.go create mode 100644 x/dex/types/message_withdrawl.go create mode 100644 x/dex/types/message_withdrawl_filled_limit_order.go create mode 100644 x/dex/types/message_withdrawl_filled_limit_order_test.go create mode 100644 x/dex/types/message_withdrawl_test.go create mode 100644 x/dex/types/pair_id.go create mode 100644 x/dex/types/pair_id.pb.go create mode 100644 x/dex/types/params.go create mode 100644 x/dex/types/params.pb.go create mode 100644 x/dex/types/pool.go create mode 100644 x/dex/types/pool.pb.go create mode 100644 x/dex/types/pool_denom.go create mode 100644 x/dex/types/pool_denom_test.go create mode 100644 x/dex/types/pool_liquidity.go create mode 100644 x/dex/types/pool_metadata.go create mode 100644 x/dex/types/pool_metadata.pb.go create mode 100644 x/dex/types/pool_reserves.go create mode 100644 x/dex/types/pool_reserves.pb.go create mode 100644 x/dex/types/pool_reserves_key.go create mode 100644 x/dex/types/pool_test.go create mode 100644 x/dex/types/price.go create mode 100644 x/dex/types/price_test.go create mode 100644 x/dex/types/query.pb.go create mode 100644 x/dex/types/query.pb.gw.go create mode 100644 x/dex/types/tick_liquidity.go create mode 100644 x/dex/types/tick_liquidity.pb.go create mode 100644 x/dex/types/tick_liquidity_key.go create mode 100644 x/dex/types/tick_liquidity_test.go create mode 100644 x/dex/types/trade_pair_id.go create mode 100644 x/dex/types/trade_pair_id.pb.go create mode 100644 x/dex/types/tx.pb.go create mode 100644 x/dex/types/types.go create mode 100644 x/dex/utils/abci.go create mode 100644 x/dex/utils/errors.go create mode 100644 x/dex/utils/math.go create mode 100644 x/epochs/README.md create mode 100644 x/epochs/client/cli/cli_test.go create mode 100644 x/epochs/client/cli/query.go create mode 100644 x/epochs/keeper/abci.go create mode 100644 x/epochs/keeper/abci_test.go create mode 100644 x/epochs/keeper/epoch.go create mode 100644 x/epochs/keeper/epoch_test.go create mode 100644 x/epochs/keeper/genesis.go create mode 100644 x/epochs/keeper/genesis_test.go create mode 100644 x/epochs/keeper/grpc_query.go create mode 100644 x/epochs/keeper/grpc_query_test.go create mode 100644 x/epochs/keeper/hooks.go create mode 100644 x/epochs/keeper/keeper.go create mode 100644 x/epochs/keeper/keeper_test.go create mode 100644 x/epochs/module.go create mode 100644 x/epochs/types/doc.go create mode 100644 x/epochs/types/events.go create mode 100644 x/epochs/types/genesis.go create mode 100644 x/epochs/types/genesis.pb.go create mode 100644 x/epochs/types/hooks.go create mode 100644 x/epochs/types/hooks_test.go create mode 100644 x/epochs/types/identifier.go create mode 100644 x/epochs/types/keys.go create mode 100644 x/epochs/types/query.pb.go create mode 100644 x/epochs/types/query.pb.gw.go create mode 100644 x/gmp/ibc_middleware.go create mode 100644 x/gmp/types.go create mode 100644 x/ibcswap/ibc_middleware.go create mode 100644 x/ibcswap/keeper/keeper.go create mode 100644 x/ibcswap/module.go create mode 100644 x/ibcswap/types/errors.go create mode 100644 x/ibcswap/types/expected_keepers.go create mode 100644 x/ibcswap/types/keys.go create mode 100644 x/ibcswap/types/swap.go create mode 100644 x/ibcswap/types/swap_test.go create mode 100644 x/incentives/README GAUGES.md create mode 100644 x/incentives/README LOCKUP.md create mode 100644 x/incentives/client/cli/cli_test.go create mode 100644 x/incentives/client/cli/flags.go create mode 100644 x/incentives/client/cli/query.go create mode 100644 x/incentives/client/cli/query_test.go create mode 100644 x/incentives/client/cli/tx.go create mode 100644 x/incentives/keeper/account_history.go create mode 100644 x/incentives/keeper/distribute.go create mode 100644 x/incentives/keeper/distribute_test.go create mode 100644 x/incentives/keeper/distributor.go create mode 100644 x/incentives/keeper/distributor_test.go create mode 100644 x/incentives/keeper/export_test.go create mode 100644 x/incentives/keeper/gas_test.go create mode 100644 x/incentives/keeper/gauge.go create mode 100644 x/incentives/keeper/gauge_test.go create mode 100644 x/incentives/keeper/genesis.go create mode 100644 x/incentives/keeper/genesis_test.go create mode 100644 x/incentives/keeper/hooks.go create mode 100644 x/incentives/keeper/iterator.go create mode 100644 x/incentives/keeper/keeper.go create mode 100644 x/incentives/keeper/keeper_test.go create mode 100644 x/incentives/keeper/msg_server.go create mode 100644 x/incentives/keeper/params.go create mode 100644 x/incentives/keeper/query_server.go create mode 100644 x/incentives/keeper/query_server_test.go create mode 100644 x/incentives/keeper/stake.go create mode 100644 x/incentives/keeper/stake_refs.go create mode 100644 x/incentives/keeper/stake_test.go create mode 100644 x/incentives/keeper/store_test.go create mode 100644 x/incentives/keeper/suite_test.go create mode 100644 x/incentives/keeper/utils.go create mode 100644 x/incentives/keeper/utils_test.go create mode 100644 x/incentives/module.go create mode 100644 x/incentives/types/account.pb.go create mode 100644 x/incentives/types/account_history.pb.go create mode 100644 x/incentives/types/codec.go create mode 100644 x/incentives/types/distribution_spec.go create mode 100644 x/incentives/types/distribution_spec_test.go create mode 100644 x/incentives/types/errors.go create mode 100644 x/incentives/types/events.go create mode 100644 x/incentives/types/expected_keepers.go create mode 100644 x/incentives/types/gauge.go create mode 100644 x/incentives/types/gauge.pb.go create mode 100644 x/incentives/types/gauge_test.go create mode 100644 x/incentives/types/gauges.go create mode 100644 x/incentives/types/genesis.go create mode 100644 x/incentives/types/genesis.pb.go create mode 100644 x/incentives/types/hooks.go create mode 100644 x/incentives/types/keys.go create mode 100644 x/incentives/types/keys_test.go create mode 100644 x/incentives/types/msgs.go create mode 100644 x/incentives/types/msgs_test.go create mode 100644 x/incentives/types/params.go create mode 100644 x/incentives/types/params.pb.go create mode 100644 x/incentives/types/query.pb.go create mode 100644 x/incentives/types/query.pb.gw.go create mode 100644 x/incentives/types/query_condition.go create mode 100644 x/incentives/types/query_condition_test.go create mode 100644 x/incentives/types/stake.go create mode 100644 x/incentives/types/stake.pb.go create mode 100644 x/incentives/types/stakes.go create mode 100644 x/incentives/types/tx.pb.go diff --git a/proto/neutron/dex/deposit_record.proto b/proto/neutron/dex/deposit_record.proto new file mode 100644 index 000000000..a637d24b9 --- /dev/null +++ b/proto/neutron/dex/deposit_record.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "gogoproto/gogo.proto"; +import "duality/dex/pair_id.proto"; + +message DepositRecord { + PairID pairID = 1; + string sharesOwned = 2 [ + (gogoproto.moretags) = "yaml:\"totalShares\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "totalShares" + ]; + int64 centerTickIndex = 3; + int64 lowerTickIndex = 4; + int64 upperTickIndex = 5; + uint64 fee = 6; +} diff --git a/proto/neutron/dex/genesis.proto b/proto/neutron/dex/genesis.proto new file mode 100644 index 000000000..da8d5add4 --- /dev/null +++ b/proto/neutron/dex/genesis.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package duality.dex; + +import "gogoproto/gogo.proto"; +import "duality/dex/params.proto"; +import "duality/dex/limit_order_tranche_user.proto"; +import "duality/dex/limit_order_tranche.proto"; +import "duality/dex/tick_liquidity.proto"; +import "duality/dex/pool_metadata.proto"; + +// this line is used by starport scaffolding # genesis/proto/import + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; + +// GenesisState defines the dex module's genesis state. +message GenesisState { + Params params = 1 [(gogoproto.nullable) = false]; + repeated TickLiquidity tickLiquidityList = 2 [(gogoproto.nullable) = true ]; + repeated LimitOrderTranche inactiveLimitOrderTrancheList = 3 [(gogoproto.nullable) = true ]; + repeated LimitOrderTrancheUser limitOrderTrancheUserList = 4 [(gogoproto.nullable) = true ]; + repeated PoolMetadata poolMetadataList = 5 [(gogoproto.nullable) = false]; + uint64 poolCount = 6; + // this line is used by starport scaffolding # genesis/proto/state +} + diff --git a/proto/neutron/dex/limit_order_expiration.proto b/proto/neutron/dex/limit_order_expiration.proto new file mode 100644 index 000000000..2c7f1af5c --- /dev/null +++ b/proto/neutron/dex/limit_order_expiration.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "google/protobuf/timestamp.proto"; + +import "gogoproto/gogo.proto"; + +message LimitOrderExpiration { + // see limitOrderTranche.proto for details on goodTilDate + google.protobuf.Timestamp expirationTime = 1 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false + ]; + bytes trancheRef = 2; + +} + diff --git a/proto/neutron/dex/limit_order_tranche.proto b/proto/neutron/dex/limit_order_tranche.proto new file mode 100644 index 000000000..b2ffd2749 --- /dev/null +++ b/proto/neutron/dex/limit_order_tranche.proto @@ -0,0 +1,60 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "google/protobuf/timestamp.proto"; + +import "duality/dex/trade_pair_id.proto"; +import "gogoproto/gogo.proto"; +import "duality/dex/pair_id.proto"; + +message LimitOrderTrancheKey { + TradePairID tradePairID = 1; + int64 tickIndexTakerToMaker = 2; + string trancheKey = 3; +} + +message LimitOrderTranche { + LimitOrderTrancheKey key = 1; + string reservesMakerDenom = 2 [ + (gogoproto.moretags) = "yaml:\"reservesMakerDenom\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "reservesMakerDenom" + ]; + string reservesTakerDenom = 3 [ + (gogoproto.moretags) = "yaml:\"reservesTakerDenom\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "reservesTakerDenom" + ]; + string totalMakerDenom = 4 [ + (gogoproto.moretags) = "yaml:\"totalMakerDenom\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "totalTokenIn" + ]; + string totalTakerDenom = 5 [ + (gogoproto.moretags) = "yaml:\"totalTakerDenom\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "totalTakerDenom" + ]; + // GoodTilDate is represented as seconds since January 1, year 1, 00:00:00.00 UTC + // LimitOrders with goodTilDate set are valid as long as blockTime <= goodTilDate + + // JIT orders also use goodTilDate to handle deletion but represent a special case + // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live + // Order deletion still functions the same and the orders will be deleted at the end of the block + google.protobuf.Timestamp expirationTime = 6 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = true + ]; + string priceTakerToMaker = 7 [ + (gogoproto.moretags) = "yaml:\"priceTakerToMaker\"", + (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "priceTakerToMaker" + ]; +} + diff --git a/proto/neutron/dex/limit_order_tranche_user.proto b/proto/neutron/dex/limit_order_tranche_user.proto new file mode 100644 index 000000000..e316b08ce --- /dev/null +++ b/proto/neutron/dex/limit_order_tranche_user.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "gogoproto/gogo.proto"; +import "duality/dex/trade_pair_id.proto"; +import "duality/dex/tx.proto"; + +message LimitOrderTrancheUser { + TradePairID tradePairID = 1; + int64 tickIndexTakerToMaker = 2; + string trancheKey = 3; + string address = 4; + string sharesOwned = 5 [ + (gogoproto.moretags) = "yaml:\"sharesOwned\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "sharesOwned" + ]; + string sharesWithdrawn = 6 [ + (gogoproto.moretags) = "yaml:\"sharesWithdrawn\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "sharesWithdrawn" + ]; + string sharesCancelled = 7 [ + (gogoproto.moretags) = "yaml:\"sharesCancelled\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "sharesCancelled" + ]; + LimitOrderType orderType = 8; +} + diff --git a/proto/neutron/dex/pair_id.proto b/proto/neutron/dex/pair_id.proto new file mode 100644 index 000000000..65a675ba3 --- /dev/null +++ b/proto/neutron/dex/pair_id.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; + +message PairID { + string token0 = 1; + string token1 = 2; +} diff --git a/proto/neutron/dex/params.proto b/proto/neutron/dex/params.proto new file mode 100644 index 000000000..4545c871d --- /dev/null +++ b/proto/neutron/dex/params.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package duality.dex; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; + +// Params defines the parameters for the module. +message Params { + option (gogoproto.goproto_stringer) = false; + repeated uint64 fee_tiers = 1; +} diff --git a/proto/neutron/dex/pool.proto b/proto/neutron/dex/pool.proto new file mode 100644 index 000000000..56ec8d8b3 --- /dev/null +++ b/proto/neutron/dex/pool.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "gogoproto/gogo.proto"; +import "duality/dex/pool_reserves.proto"; + +// NOTE: This struct is never actually stored in the KV store. It is merely a convenience wrapper for holding both sides of a pool. + +message Pool { + uint64 ID = 1; + PoolReserves lower_tick0 = 2; + PoolReserves upper_tick1 = 3; +} diff --git a/proto/neutron/dex/pool_metadata.proto b/proto/neutron/dex/pool_metadata.proto new file mode 100644 index 000000000..f54d42303 --- /dev/null +++ b/proto/neutron/dex/pool_metadata.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; + +import "duality/dex/pair_id.proto"; + +message PoolMetadata { + uint64 ID = 1; + int64 tick = 2; + uint64 fee = 3; + PairID pairID = 4; +} diff --git a/proto/neutron/dex/pool_reserves.proto b/proto/neutron/dex/pool_reserves.proto new file mode 100644 index 000000000..7bab4ab8e --- /dev/null +++ b/proto/neutron/dex/pool_reserves.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "gogoproto/gogo.proto"; +import "duality/dex/trade_pair_id.proto"; + +message PoolReservesKey { + TradePairID tradePairID = 1; + int64 TickIndexTakerToMaker = 2; + uint64 Fee = 3; +} + +message PoolReserves { + PoolReservesKey key = 1; + string reservesMakerDenom = 2 [ + (gogoproto.moretags) = "yaml:\"reservesMakerDenom\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "reservesMakerDenom", + (gogoproto.nullable) = false + ]; + string priceTakerToMaker = 3 [ + (gogoproto.moretags) = "yaml:\"priceTakerToMaker\"", + (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "priceTakerToMaker" + ]; + string priceOppositeTakerToMaker = 4 [ + (gogoproto.moretags) = "yaml:\"priceOppositeTakerToMaker\"", + (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "priceOppositeTakerToMaker" + ]; +} + diff --git a/proto/neutron/dex/query.proto b/proto/neutron/dex/query.proto new file mode 100644 index 000000000..69a055ea8 --- /dev/null +++ b/proto/neutron/dex/query.proto @@ -0,0 +1,327 @@ +syntax = "proto3"; + +package duality.dex; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "duality/dex/params.proto"; +import "duality/dex/limit_order_tranche_user.proto"; +import "duality/dex/limit_order_tranche.proto"; +import "duality/dex/deposit_record.proto"; +import "duality/dex/tick_liquidity.proto"; +import "duality/dex/pool_reserves.proto"; +import "duality/dex/tx.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "google/protobuf/timestamp.proto"; +import "duality/dex/pool.proto"; +import "duality/dex/pool_metadata.proto"; + +// this line is used by starport scaffolding # 1 + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; + +// Query defines the gRPC querier service. +service Query { + // Parameters queries the parameters of the module. + rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/duality/dex/params"; + + } + + // Queries a LimitOrderTrancheUser by index. + rpc LimitOrderTrancheUser (QueryGetLimitOrderTrancheUserRequest) returns (QueryGetLimitOrderTrancheUserResponse) { + option (google.api.http).get = "/duality/dex/limit_order_tranche_user/{address}/{trancheKey}"; + + } + + // Queries a list of LimitOrderTrancheMap items. + rpc LimitOrderTrancheUserAll (QueryAllLimitOrderTrancheUserRequest) returns (QueryAllLimitOrderTrancheUserResponse) { + option (google.api.http).get = "/duality/dex/limit_order_tranche_user"; + + } + + // Queries a list of LimitOrderTrancheUser items for a given address. + rpc LimitOrderTrancheUserAllByAddress(QueryAllUserLimitOrdersRequest) returns (QueryAllUserLimitOrdersResponse) { + option (google.api.http).get = "/duality/dex/user/limit_orders/{address}"; + } + + // Queries a LimitOrderTranche by index. + rpc LimitOrderTranche (QueryGetLimitOrderTrancheRequest) returns (QueryGetLimitOrderTrancheResponse) { + option (google.api.http).get = "/duality/dex/limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; + } + + // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. + rpc LimitOrderTrancheAll (QueryAllLimitOrderTrancheRequest) returns (QueryAllLimitOrderTrancheResponse) { + option (google.api.http).get = "/duality/dex/limit_order_tranche/{pairID}/{tokenIn}"; + } + + // Queries a list of UserDeposits items. + rpc UserDepositsAll (QueryAllUserDepositsRequest) returns (QueryAllUserDepositsResponse) { + option (google.api.http).get = "/duality/dex/user/deposits/{address}"; + } + + // Queries a list of TickLiquidity items. + rpc TickLiquidityAll (QueryAllTickLiquidityRequest) returns (QueryAllTickLiquidityResponse) { + option (google.api.http).get = "/duality/dex/tick_liquidity/{pairID}/{tokenIn}"; + } + + // Queries a InactiveLimitOrderTranche by index. + rpc InactiveLimitOrderTranche (QueryGetInactiveLimitOrderTrancheRequest) returns (QueryGetInactiveLimitOrderTrancheResponse) { + option (google.api.http).get = "/duality/dex/filled_limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; + } + + // Queries a list of InactiveLimitOrderTranche items. + rpc InactiveLimitOrderTrancheAll (QueryAllInactiveLimitOrderTrancheRequest) returns (QueryAllInactiveLimitOrderTrancheResponse) { + option (google.api.http).get = "/duality/dex/filled_limit_order_tranche"; + } + + // Queries a list of PoolReserves items. + rpc PoolReservesAll (QueryAllPoolReservesRequest) returns (QueryAllPoolReservesResponse) { + option (google.api.http).get = "/duality/dex/pool_reserves/{pairID}/{tokenIn}"; + } + + // Queries a PoolReserve by index + rpc PoolReserves (QueryGetPoolReservesRequest) returns (QueryGetPoolReservesResponse) { + option (google.api.http).get = "/duality/dex/pool_reserves/{pairID}/{tokenIn}/{tickIndex}/{fee}"; + } + + // Queries the simulated result of a multihop swap + rpc EstimateMultiHopSwap (QueryEstimateMultiHopSwapRequest) returns (QueryEstimateMultiHopSwapResponse) { + option (google.api.http).get = "/duality/dex/estimate_multi_hop_swap"; + } + + // Queries the simulated result of a multihop swap + rpc EstimatePlaceLimitOrder (QueryEstimatePlaceLimitOrderRequest) returns (QueryEstimatePlaceLimitOrderResponse) { + option (google.api.http).get = "/duality/dex/estimate_place_limit_order"; + } + + // Queries a pool by pair, tick and fee + rpc Pool (QueryPoolRequest) returns (QueryPoolResponse) { + option (google.api.http).get = "/duality/dex/pool/{pairID}/{tickIndex}/{fee}"; + + } + + // Queries a pool by ID + rpc PoolByID (QueryPoolByIDRequest) returns (QueryPoolResponse) { + option (google.api.http).get = "/duality/dex/pool/{poolID}"; + + } + + // Queries a PoolMetadata by ID + rpc PoolMetadata (QueryGetPoolMetadataRequest) returns (QueryGetPoolMetadataResponse) { + option (google.api.http).get = "/duality/dex/pool_metadata/{id}"; + + } + + // Queries a list of PoolMetadata items. + rpc PoolMetadataAll (QueryAllPoolMetadataRequest) returns (QueryAllPoolMetadataResponse) { + option (google.api.http).get = "/duality/dex/pool_metadata"; + + } + +// this line is used by starport scaffolding # 2 + +} +// QueryParamsRequest is request type for the Query/Params RPC method. +message QueryParamsRequest {} + +// QueryParamsResponse is response type for the Query/Params RPC method. +message QueryParamsResponse { + + // params holds all the parameters of this module. + Params params = 1 [(gogoproto.nullable) = false]; +} + +message QueryGetLimitOrderTrancheUserRequest { + string address = 1; + string trancheKey = 2; +} + +message QueryGetLimitOrderTrancheUserResponse { + LimitOrderTrancheUser LimitOrderTrancheUser = 1 [(gogoproto.nullable) = true]; +} + +message QueryAllLimitOrderTrancheUserRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +message QueryAllLimitOrderTrancheUserResponse { + repeated LimitOrderTrancheUser LimitOrderTrancheUser = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryGetLimitOrderTrancheRequest { + string pairID = 1; + int64 tickIndex = 2; + string tokenIn = 3; + string trancheKey = 4; +} + +message QueryGetLimitOrderTrancheResponse { + LimitOrderTranche LimitOrderTranche = 1 [(gogoproto.nullable) = true]; +} + +message QueryAllLimitOrderTrancheRequest { + string pairID = 1; + string tokenIn = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +message QueryAllLimitOrderTrancheResponse { + repeated LimitOrderTranche LimitOrderTranche = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryAllUserDepositsRequest { + string address = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +message QueryAllUserDepositsResponse { + repeated DepositRecord Deposits = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryAllUserLimitOrdersRequest { + string address = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +message QueryAllUserLimitOrdersResponse { + repeated LimitOrderTrancheUser limitOrders = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryAllTickLiquidityRequest { + string pairID = 1; + string tokenIn = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +message QueryAllTickLiquidityResponse { + repeated TickLiquidity tickLiquidity = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryGetInactiveLimitOrderTrancheRequest { + string pairID = 1; + string tokenIn = 2; + int64 tickIndex = 3; + string trancheKey = 4; +} + +message QueryGetInactiveLimitOrderTrancheResponse { + LimitOrderTranche inactiveLimitOrderTranche = 1 [(gogoproto.nullable) = true]; +} + +message QueryAllInactiveLimitOrderTrancheRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +message QueryAllInactiveLimitOrderTrancheResponse { + repeated LimitOrderTranche inactiveLimitOrderTranche = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryAllPoolReservesRequest { + string pairID = 1; + string tokenIn = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 3; +} + +message QueryAllPoolReservesResponse { + repeated PoolReserves poolReserves = 1 [(gogoproto.nullable) = true]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryGetPoolReservesRequest { + string pairID = 1; + string tokenIn = 2; + int64 tickIndex = 3; + uint64 fee = 4; +} + +message QueryGetPoolReservesResponse { + PoolReserves poolReserves = 1 [(gogoproto.nullable) = true]; +} + +message QueryEstimateMultiHopSwapRequest { + string creator = 1; + string receiver = 2; + repeated MultiHopRoute routes = 3; + string amountIn = 4 [(gogoproto.moretags) = "yaml:\"amountIn\"" , (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn" ]; + string exitLimitPrice = 5 [(gogoproto.moretags) = "yaml:\"exitLimitPrice\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "exitLimitPrice"]; + + // If pickBestRoute == true then all routes are run and the route with the best price is chosen + // otherwise, the first succesful route is used. + bool pickBestRoute = 6; +} + +message QueryEstimateMultiHopSwapResponse { + cosmos.base.v1beta1.Coin coinOut = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "coinOut"]; +} + +message QueryEstimatePlaceLimitOrderRequest { + string creator = 1; + string receiver = 2; + string tokenIn = 3; + string tokenOut = 4; + int64 tickIndexInToOut = 5; + string amountIn = 6 [(gogoproto.moretags) = "yaml:\"amountIn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn"]; + LimitOrderType orderType = 7; + + // expirationTime is only valid iff orderType == GOOD_TIL_TIME. + google.protobuf.Timestamp expirationTime = 8 [(gogoproto.stdtime) = true , (gogoproto.nullable) = true ] ; + string maxAmountOut = 9 [(gogoproto.moretags) = "yaml:\"maxAmountOut\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, (gogoproto.jsontag) = "maxAmountOut"]; +} + +message QueryEstimatePlaceLimitOrderResponse { + + // Total amount of coin used for the limit order + // You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin + cosmos.base.v1beta1.Coin totalInCoin = 1 [(gogoproto.moretags) = "yaml:\"totalInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "totalInCoin"]; + + // Total amount of the token in that was immediately swapped for swapOutCoin + cosmos.base.v1beta1.Coin swapInCoin = 2 [(gogoproto.moretags) = "yaml:\"swapInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapInCoin"]; + + // Total amount of coin received from the taker portion of the limit order + // This is the amount of coin immediately available in the users account after executing the + // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future + cosmos.base.v1beta1.Coin swapOutCoin = 3 [(gogoproto.moretags) = "yaml:\"swapOutCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapOutCoin"]; +} + +message QueryPoolRequest { + string pairID = 1; + int64 tickIndex = 2; + uint64 fee = 3; +} + +message QueryPoolByIDRequest { + uint64 poolID = 1; +} + +message QueryPoolResponse { + Pool pool = 1 [(gogoproto.nullable) = true]; +} + + +message QueryGetPoolMetadataRequest { + uint64 id = 1; +} + +message QueryGetPoolMetadataResponse { + PoolMetadata PoolMetadata = 1 [(gogoproto.nullable) = false]; +} + +message QueryAllPoolMetadataRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +message QueryAllPoolMetadataResponse { + repeated PoolMetadata PoolMetadata = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// this line is used by starport scaffolding # 3 + diff --git a/proto/neutron/dex/tick_liquidity.proto b/proto/neutron/dex/tick_liquidity.proto new file mode 100644 index 000000000..3fec914bc --- /dev/null +++ b/proto/neutron/dex/tick_liquidity.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "gogoproto/gogo.proto"; +import "duality/dex/limit_order_tranche.proto"; +import "duality/dex/pool_reserves.proto"; + + +message TickLiquidity { + oneof liquidity { + PoolReserves poolReserves = 1; + LimitOrderTranche limitOrderTranche = 2; + } + +} + diff --git a/proto/neutron/dex/trade_pair_id.proto b/proto/neutron/dex/trade_pair_id.proto new file mode 100644 index 000000000..bd66e0e25 --- /dev/null +++ b/proto/neutron/dex/trade_pair_id.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package duality.dex; + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; + +message TradePairID { + string makerDenom = 2; + string takerDenom = 3; +} diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto new file mode 100644 index 000000000..8cf92c529 --- /dev/null +++ b/proto/neutron/dex/tx.proto @@ -0,0 +1,186 @@ +syntax = "proto3"; +package duality.dex; + +// this line is used by starport scaffolding # proto/tx/import + +option go_package = "github.com/neutron-org/neutron/x/dex/types"; +import "gogoproto/gogo.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "google/protobuf/timestamp.proto"; + +// Msg defines the Msg service. +service Msg { + rpc Deposit(MsgDeposit) returns (MsgDepositResponse); + rpc Withdrawal(MsgWithdrawal) returns (MsgWithdrawalResponse); + rpc PlaceLimitOrder(MsgPlaceLimitOrder) returns (MsgPlaceLimitOrderResponse); + rpc WithdrawFilledLimitOrder(MsgWithdrawFilledLimitOrder) returns (MsgWithdrawFilledLimitOrderResponse); + rpc CancelLimitOrder(MsgCancelLimitOrder) returns (MsgCancelLimitOrderResponse); + rpc MultiHopSwap(MsgMultiHopSwap) returns (MsgMultiHopSwapResponse); +// this line is used by starport scaffolding # proto/tx/rpc +} + +message DepositOptions { + bool disable_autoswap = 1; +} + +message MsgDeposit { + string creator = 1; + string receiver = 2; + string tokenA = 3; + string tokenB = 4; + repeated string amountsA = 5 [ + (gogoproto.moretags) = "yaml:\"amountsA\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "amountA" + ]; + repeated string amountsB = 6 [ + (gogoproto.moretags) = "yaml:\"amountsB\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "amountB" + ]; + repeated int64 tickIndexesAToB = 7; + repeated uint64 fees = 8; + repeated DepositOptions Options = 9; +} + +message MsgDepositResponse { + repeated string Reserve0Deposited = 1 [ + (gogoproto.moretags) = "yaml:\"reserve0Deposited\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "reserve0Deposited" + ]; + repeated string Reserve1Deposited = 2[ + (gogoproto.moretags) = "yaml:\"reserve1Deposited\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "reserve1Deposited" + ]; +} + +message MsgWithdrawal { + string creator = 1; + string receiver = 2; + string tokenA = 3; + string tokenB = 4; + repeated string sharesToRemove = 5 [ + (gogoproto.moretags) = "yaml:\"sharesToRemove\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "sharesToRemove" + ]; + repeated int64 tickIndexesAToB = 6; + repeated uint64 fees = 7; + +} + +message MsgWithdrawalResponse { +} + +enum LimitOrderType{ + GOOD_TIL_CANCELLED = 0; + FILL_OR_KILL = 1; + IMMEDIATE_OR_CANCEL = 2; + JUST_IN_TIME = 3; + GOOD_TIL_TIME = 4; +} + +message MsgPlaceLimitOrder { + string creator = 1; + string receiver = 2; + string tokenIn = 3; + string tokenOut = 4; + int64 tickIndexInToOut = 5; + string amountIn = 7 [ + (gogoproto.moretags) = "yaml:\"amountIn\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "amountIn" + ]; + LimitOrderType orderType = 8; + // expirationTime is only valid iff orderType == GOOD_TIL_TIME. + google.protobuf.Timestamp expirationTime = 9 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = true + ]; + string maxAmountOut = 10 [ + (gogoproto.moretags) = "yaml:\"maxAmountOut\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = true, + (gogoproto.jsontag) = "maxAmountOut" + ]; +} + +message MsgPlaceLimitOrderResponse { + string trancheKey = 1; + // Total amount of coin used for the limit order + cosmos.base.v1beta1.Coin coinIn = 2 [ + (gogoproto.moretags) = "yaml:\"coinIn\"", + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.jsontag) = "coinIn" + ]; + // Total amount of coin received from the taker portion of the limit order + // This is the amount of coin immediately available in the users account after executing the + // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future + cosmos.base.v1beta1.Coin takerCoinOut = 3 [ + (gogoproto.moretags) = "yaml:\"takerCoinOut\"", + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.jsontag) = "takerCoinOut" + ]; + +} + +message MsgWithdrawFilledLimitOrder { + string creator = 1; + string trancheKey = 2; +} + +message MsgWithdrawFilledLimitOrderResponse { +} + +message MsgCancelLimitOrder { + string creator = 1; + string trancheKey = 2; +} + +message MsgCancelLimitOrderResponse { +} + +message MultiHopRoute { + repeated string hops = 1; +} + +message MsgMultiHopSwap { + string creator = 1; + string receiver = 2; + repeated MultiHopRoute routes = 3; + string amountIn = 4 [ + (gogoproto.moretags) = "yaml:\"amountIn\"", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "amountIn" + ]; + string exitLimitPrice = 5 [ + (gogoproto.moretags) = "yaml:\"exitLimitPrice\"", + (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "exitLimitPrice" + ]; + // If pickBestRoute == true then all routes are run and the route with the best price is chosen + // otherwise, the first succesful route is used. + bool pickBestRoute = 6; +} + +message MsgMultiHopSwapResponse { + cosmos.base.v1beta1.Coin coinOut = 1 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.jsontag) = "coinOut" + ]; +} + +// this line is used by starport scaffolding # proto/tx/message diff --git a/proto/neutron/epochs/genesis.proto b/proto/neutron/epochs/genesis.proto new file mode 100644 index 000000000..97bc08221 --- /dev/null +++ b/proto/neutron/epochs/genesis.proto @@ -0,0 +1,72 @@ +syntax = "proto3"; +package duality.epochs; + +import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/neutron-org/neutron/x/epochs/types"; + +// EpochInfo is a struct that describes the data going into +// a timer defined by the x/epochs module. +message EpochInfo { + // identifier is a unique reference to this particular timer. + string identifier = 1; + // start_time is the time at which the timer first ever ticks. + // If start_time is in the future, the epoch will not begin until the start + // time. + google.protobuf.Timestamp start_time = 2 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false, + (gogoproto.moretags) = "yaml:\"start_time\"" + ]; + // duration is the time in between epoch ticks. + // In order for intended behavior to be met, duration should + // be greater than the chains expected block time. + // Duration must be non-zero. + google.protobuf.Duration duration = 3 [ + (gogoproto.nullable) = false, + (gogoproto.stdduration) = true, + (gogoproto.jsontag) = "duration,omitempty", + (gogoproto.moretags) = "yaml:\"duration\"" + ]; + // current_epoch is the current epoch number, or in other words, + // how many times has the timer 'ticked'. + // The first tick (current_epoch=1) is defined as + // the first block whose blocktime is greater than the EpochInfo start_time. + int64 current_epoch = 4; + // current_epoch_start_time describes the start time of the current timer + // interval. The interval is (current_epoch_start_time, + // current_epoch_start_time + duration] When the timer ticks, this is set to + // current_epoch_start_time = last_epoch_start_time + duration only one timer + // tick for a given identifier can occur per block. + // + // NOTE! The current_epoch_start_time may diverge significantly from the + // wall-clock time the epoch began at. Wall-clock time of epoch start may be + // >> current_epoch_start_time. Suppose current_epoch_start_time = 10, + // duration = 5. Suppose the chain goes offline at t=14, and comes back online + // at t=30, and produces blocks at every successive time. (t=31, 32, etc.) + // * The t=30 block will start the epoch for (10, 15] + // * The t=31 block will start the epoch for (15, 20] + // * The t=32 block will start the epoch for (20, 25] + // * The t=33 block will start the epoch for (25, 30] + // * The t=34 block will start the epoch for (30, 35] + // * The **t=36** block will start the epoch for (35, 40] + google.protobuf.Timestamp current_epoch_start_time = 5 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false, + (gogoproto.moretags) = "yaml:\"current_epoch_start_time\"" + ]; + // epoch_counting_started is a boolean, that indicates whether this + // epoch timer has began yet. + bool epoch_counting_started = 6; + reserved 7; + // current_epoch_start_height is the block height at which the current epoch + // started. (The block height at which the timer last ticked) + int64 current_epoch_start_height = 8; +} + +// GenesisState defines the epochs module's genesis state. +message GenesisState { + repeated EpochInfo epochs = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/proto/neutron/epochs/query.proto b/proto/neutron/epochs/query.proto new file mode 100644 index 000000000..cb9a8c3c7 --- /dev/null +++ b/proto/neutron/epochs/query.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package duality.epochs; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "duality/epochs/genesis.proto"; + +option go_package = "github.com/neutron-org/neutron/x/epochs/types"; + +// Query defines the gRPC querier service. +service Query { + // EpochInfos provide running epochInfos + rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { + option (google.api.http).get = "/duality/epochs/epochs"; + } + // CurrentEpoch provide current epoch of specified identifier + rpc CurrentEpoch(QueryCurrentEpochRequest) + returns (QueryCurrentEpochResponse) { + option (google.api.http).get = "/duality/epochs/current_epoch"; + } +} + +message QueryEpochsInfoRequest {} +message QueryEpochsInfoResponse { + repeated EpochInfo epochs = 1 [ (gogoproto.nullable) = false ]; +} + +message QueryCurrentEpochRequest { string identifier = 1; } +message QueryCurrentEpochResponse { int64 current_epoch = 1; } \ No newline at end of file diff --git a/proto/neutron/incentives/account_history.proto b/proto/neutron/incentives/account_history.proto new file mode 100644 index 000000000..bd0866436 --- /dev/null +++ b/proto/neutron/incentives/account_history.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +// Describes the total distributions to an account over time +message AccountHistory { + // the address of this account + string account = 1; + + // coins describes the total amount of coins that have been distributed to this user over time + repeated cosmos.base.v1beta1.Coin coins = 2 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} diff --git a/proto/neutron/incentives/gauge.proto b/proto/neutron/incentives/gauge.proto new file mode 100644 index 000000000..bb5a4714e --- /dev/null +++ b/proto/neutron/incentives/gauge.proto @@ -0,0 +1,115 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "duality/dex/pair_id.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +// Gauge is an object that describes an LP incentivization plan and its state. +message Gauge { + // id is the unique ID of a Gauge + uint64 id = 1; + + // There are two kinds of gauges: perpetual and non-perpetual. Perpetual + // gauges describe an incentivization program for which the token rewards + // distributed on any given day must be added to the gauge prior to that day's + // distribution using an AddToGauge message. When distribute is called on a + // perpetual gauge, all of the remaining rewards in the gauge are distributed. + // Because of this, all perpetual gauges must have `num_epochs_paid_over` set + // to 1. A non-perpetual gauge by contrast distributes its rewards over a + // schedule as determined by `num_epochs_paid_over`. If a non-perpetual gauge + // is created with coins=[100atom] and num_epochs_paid_over=10, this means + // that for 10 days (10 epochs) the gauge will distribute 10atom each day to + // the staked LP positions qualifying for the gauge. + bool is_perpetual = 2; + + // distribute_to describes a set of staked LP positions that should be + // distributed to from this gauge. + QueryCondition distribute_to = 3 + [ (gogoproto.nullable) = false ]; + + // coins describes the total amount of coins that have been added to this + // gauge for distribution. + repeated cosmos.base.v1beta1.Coin coins = 4 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // start_time describes when this gauge should begin distributing rewards. + // This allows gauge creators to schedule gauges into the future, in the event + // that an earlier gauge is expected to expire. + google.protobuf.Timestamp start_time = 5 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false, + (gogoproto.moretags) = "yaml:\"start_time\"" + ]; + + // num_epochs_paid_over is the number of total epochs (days) the rewards in + // this gauge will be distributed over. + uint64 num_epochs_paid_over = 6; + + // filled_epochs describes the number of epochs distribution have been completed + // already + uint64 filled_epochs = 7; + + // distributed_coins describes coins that have been distributed already from + // this gauge. + repeated cosmos.base.v1beta1.Coin distributed_coins = 8 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // pricing_tick is necessary for fairly distributing rewards over a range of + // ticks. Without pricing_tick, we might naively distribute rewards in + // proportion to the number of deposit shares staked within the gauge's + // qualifying tick range. + // + // For example, a gauge with a distribute_to tick range of [-10, 10] would + // distribute to staked LP tokens where both tick-fee and tick+fee are within + // [-10, 10]. Let's say for pair "tokenA<>tokenB", the current trading tick is + // 0. If Alice were to LP (10tokenA, 0tokenB) @ tick -8, fee 2, this would + // mean Alice would be issued 10 shares (10 + 0 * 1.0001^-8), since shares are + // in terms of token0. Let's further assume Bob LPs (0tokenA, 10tokenB) @ tick + // 8, fee 2, such that Bob is issued 10.008 shares (0 + 10 * 1.0001^8). Under + // this naive approach, if Alice and Bob were to stake their shares, Bob would + // receive more in rewards, purely on the basis of the relative locations of + // their liquidity. + // + // This disparity originates in the fact that LP deposit denominations are not + // fungible across ticks. To avoid this, we can use a single price throughout + // the gauge's tick range for relating the relative value of token0 and + // token1, as specified by pricing_tick. + // + // Let's run through the earier example using the more sophisticated approach, + // where the gauge has pricing_tick set to 0. For the purpose of calculating + // reward distribution weight, Alice's shares are worth 10 + 0 * 1.0001^0 = 10 + // and Bob's shares are worth 0 + 10 * 1.0001^0 = 10. With the distribution + // weight of both shares set according to a gauge-specific tick, we do not + // distribute more or less rewards according to the relative location of + // liquidity within the gauge's tick range, freeing users to place liquidity + // whereever they deem most profitable in the gauge's range and still equally + // qualify for rewards. + int64 pricing_tick = 9; +} + +// QueryCondition describes a set of staked LP positions that a gauge is +// configured to distribute to. LP tokens qualifying for a given QueryCondition +// must have both tick-fee and tick+fee fall within the range [startTick, endTick], +// such that all of the tradable liquidity for the pool is within that range. +message QueryCondition { + + // pairID is the token pair which should be distributed to. + duality.dex.PairID pairID = 1; + + // start_tick is the inclusive lower bound on the location of LP tokens that + // qualify for a gauge's distribution. + int64 startTick = 2; + + // end_tick is the inclusive upper bound on the location of LP tokens that + // qualify for a gauge's distribution. + int64 endTick = 3; +} \ No newline at end of file diff --git a/proto/neutron/incentives/genesis.proto b/proto/neutron/incentives/genesis.proto new file mode 100644 index 000000000..dfbf299a3 --- /dev/null +++ b/proto/neutron/incentives/genesis.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; +import "duality/incentives/params.proto"; +import "duality/incentives/gauge.proto"; +import "duality/incentives/stake.proto"; +import "duality/incentives/account_history.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +// GenesisState defines the incentives module's various parameters when first +// initialized +message GenesisState { + // params are all the parameters of the module + Params params = 1 [ (gogoproto.nullable) = false ]; + // gauges are all gauges that should exist at genesis + repeated Gauge gauges = 2; + // last_gauge_id is what the gauge number will increment from when creating + // the next gauge after genesis + uint64 last_gauge_id = 3; + + uint64 last_stake_id = 4; + repeated Stake stakes = 5; + repeated AccountHistory accountHistories = 6; +} diff --git a/proto/neutron/incentives/params.proto b/proto/neutron/incentives/params.proto new file mode 100644 index 000000000..25311f0f9 --- /dev/null +++ b/proto/neutron/incentives/params.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +// Params holds parameters for the incentives module +message Params { + // distr_epoch_identifier is what epoch type distribution will be triggered by + // (day, week, etc.) + string distr_epoch_identifier = 1 + [ (gogoproto.moretags) = "yaml:\"distr_epoch_identifier\"" ]; + + uint64 max_gauges = 2 + [ (gogoproto.moretags) = "yaml:\"max_gauges\"" ]; +} diff --git a/proto/neutron/incentives/query.proto b/proto/neutron/incentives/query.proto new file mode 100644 index 000000000..4cb3875a3 --- /dev/null +++ b/proto/neutron/incentives/query.proto @@ -0,0 +1,161 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "duality/incentives/gauge.proto"; +import "duality/incentives/stake.proto"; +import "duality/incentives/params.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +// Query defines the gRPC querier service +service Query { + // GetModuleStatus returns a rundown of coins in the module and their status + rpc GetModuleStatus(GetModuleStatusRequest) + returns (GetModuleStatusResponse) { + option (google.api.http).get = + "/duality/incentives/v1beta1/module_status"; + } + + // GetGaugeByID returns a gauge by its ID + rpc GetGaugeByID(GetGaugeByIDRequest) returns (GetGaugeByIDResponse) { + option (google.api.http).get = + "/duality/incentives/v1beta1/gauges/{id}"; + } + + // GetGauges returns gauges according to the filter provided + rpc GetGauges(GetGaugesRequest) returns (GetGaugesResponse) { + option (google.api.http).get = "/duality/incentives/v1beta1/gauges"; + } + + // GetStakeByID returns a stake by its ID + rpc GetStakeByID(GetStakeByIDRequest) returns (GetStakeByIDResponse) { + option (google.api.http).get = + "/duality/incentives/stakes/{stake_id}"; + } + + // GetStakes returns stakes by the filter provided. At least one filter must be provided. + rpc GetStakes(GetStakesRequest) returns (GetStakesResponse) { + option (google.api.http).get = + "/duality/incentives/stakes"; + } + + // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified + // time in the future. The requestor either provides an address or a set of locks + // for which they want to find the associated rewards. + rpc GetFutureRewardEstimate(GetFutureRewardEstimateRequest) returns (GetFutureRewardEstimateResponse) { + option (google.api.http).get = + "/duality/incentives/v1beta1/future_rewards_estimate/{owner}"; + } + + // GetAccountHistory returns the total accumulated rewards per denom for a given user. + rpc GetAccountHistory(GetAccountHistoryRequest) returns (GetAccountHistoryResponse) { + option (google.api.http).get = + "/duality/incentives/v1beta1/account_history/{account}"; + } + + // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating + // the prospective future rewards of staking. + rpc GetGaugeQualifyingValue(GetGaugeQualifyingValueRequest) returns (GetGaugeQualifyingValueResponse) { + option (google.api.http).get = + "/duality/incentives/v1beta1/get_gauge_qualifying_value/{id}"; + } +} + +message GetModuleStatusRequest {} +message GetModuleStatusResponse { + // Coins that have yet to be distributed + repeated cosmos.base.v1beta1.Coin reward_coins = 1 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + repeated cosmos.base.v1beta1.Coin staked_coins = 2 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + Params params = 3 [ (gogoproto.nullable) = false ]; +} + +message GetGaugeByIDRequest { + // Gague ID being queried + uint64 id = 1; +} +message GetGaugeByIDResponse { + // Gauge that corresponds to provided gague ID + Gauge gauge = 1; +} + +message GetGaugeQualifyingValueRequest { + // Gague ID being queried + uint64 id = 1; +} +message GetGaugeQualifyingValueResponse { + // The amount of value at the gauge's pricing tick currently qualifying for the gauge. + uint64 qualifying_value = 1; +} + +enum GaugeStatus { + ACTIVE_UPCOMING = 0; + ACTIVE = 1; + UPCOMING = 2; + FINISHED = 3; +} + +message GetGaugesRequest { + // Pagination defines pagination for the request + + GaugeStatus status = 1; + string denom = 2; +} +message GetGaugesResponse { + // Upcoming and active gauges + repeated Gauge gauges = 1; +} + +message GetStakeByIDRequest { + uint64 stake_id = 1; +}; +message GetStakeByIDResponse { + Stake stake = 1; +}; + +message GetStakesRequest { + string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; +}; + +message GetStakesResponse { + repeated Stake stakes = 1; +}; + +message GetFutureRewardEstimateRequest { + // Address that is being queried for future estimated rewards + string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; + // Stake IDs included in future reward estimation + repeated uint64 stake_ids = 2; + // Determines upper time limit of reward estimation + // reward estimation goes up to current_epoch + num_epochs + int64 num_epochs = 3; +} +message GetFutureRewardEstimateResponse { + // Estimated coin rewards that will be recieved at provided address + // from specified locks between current time and end epoch + repeated cosmos.base.v1beta1.Coin coins = 1 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} + +message GetAccountHistoryRequest { + // Address that is being queried for account history + string account = 1 [ (gogoproto.moretags) = "yaml:\"account\"" ]; +} +message GetAccountHistoryResponse { + // Gauge rewards that have been distributed to this address to date + repeated cosmos.base.v1beta1.Coin coins = 1 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} diff --git a/proto/neutron/incentives/stake.proto b/proto/neutron/incentives/stake.proto new file mode 100644 index 000000000..16e26fde2 --- /dev/null +++ b/proto/neutron/incentives/stake.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +// Stake records what coins are staked when by who for the purpose of +// calculating gauge reward distributions. +message Stake { + + // ID is the "autoincrementing" id of the stake, assigned at creation. + uint64 ID = 1; + + // owner is the account originating the stake. Only the owner can withdraw + // coins from the stake. + string owner = 2 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; + + // start_time is the time at which the coins in the lock were staked. + google.protobuf.Timestamp start_time = 3 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "start_time,omitempty", + (gogoproto.moretags) = "yaml:\"start_time\"" + ]; + + // coins are the tokens staked, and managed by the module account. + repeated cosmos.base.v1beta1.Coin coins = 4 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + + // start_dist_epoch is the dist epoch (defaulting to the day) at which the + // coins in the lock were staked. This is used by distribution logic to filter + // on stakes that have existed for longer than the distribution period (you + // can only qualify for today's rewards if you staked your LP tokens + // yesterday). We use int64 instead of uint64 to make testing easier. + int64 start_dist_epoch = 5; +} \ No newline at end of file diff --git a/proto/neutron/incentives/tx.proto b/proto/neutron/incentives/tx.proto new file mode 100644 index 000000000..50f38c892 --- /dev/null +++ b/proto/neutron/incentives/tx.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; +package duality.incentives; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "duality/incentives/gauge.proto"; +import "duality/incentives/stake.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "github.com/neutron-org/neutron/x/incentives/types"; + +service Msg { + // Create an incentive program + rpc CreateGauge(MsgCreateGauge) returns (MsgCreateGaugeResponse); + // Add rewards to an existing incentives program + rpc AddToGauge(MsgAddToGauge) returns (MsgAddToGaugeResponse); + // Deposit LP tokens to the module, qualifying for rewards from gauges + rpc Stake(MsgStake) returns (MsgStakeResponse); + // Withdraw LP tokens from the module, forfeiting future rewards from gauges + rpc Unstake(MsgUnstake) returns (MsgUnstakeResponse); +} + +// MsgCreateGauge creates a gague to distribute rewards to users +message MsgCreateGauge { + // is_perpetual shows if it's a perpetual or non-perpetual gauge + // Non-perpetual gauges distribute their tokens equally per epoch while the + // gauge is in the active period. Perpetual gauges distribute all their tokens + // at a single time and only distribute their tokens again once the gauge is + // refilled + bool is_perpetual = 1; + + // owner is the address of gauge creator, should be the module authority + string owner = 2 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; + + // distribute_to show which lock the gauge should distribute to by time + // duration or by timestamp + QueryCondition distribute_to = 3 + [ (gogoproto.nullable) = false ]; + // coins are coin(s) to be distributed by the gauge + repeated cosmos.base.v1beta1.Coin coins = 4 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + // start_time is the distribution start time + google.protobuf.Timestamp start_time = 5 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = false, + (gogoproto.moretags) = "yaml:\"timestamp\"" + ]; + // num_epochs_paid_over is the number of epochs distribution will be completed + // over + uint64 num_epochs_paid_over = 6; + + // pricing_tick is the price that liquidity within the gauge range will be priced at + int64 pricing_tick = 7; +} +message MsgCreateGaugeResponse {} + +// MsgAddToGauge adds coins to a previously created gauge +message MsgAddToGauge { + // owner is the gauge owner's address + string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; + // gauge_id is the ID of gauge that rewards are getting added to + uint64 gauge_id = 2; + // rewards are the coin(s) to add to gauge + repeated cosmos.base.v1beta1.Coin rewards = 3 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} +message MsgAddToGaugeResponse {} + +message MsgStake { + string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; + repeated cosmos.base.v1beta1.Coin coins = 2 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} +message MsgStakeResponse { uint64 ID = 1; } + +message MsgUnstake { + message UnstakeDescriptor { + uint64 ID = 1; + repeated cosmos.base.v1beta1.Coin coins = 2 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + } + string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; + + // If unstake is left empty, this is interpreted as "unstake all" + repeated UnstakeDescriptor unstakes = 2; +} +message MsgUnstakeResponse {} \ No newline at end of file diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go new file mode 100644 index 000000000..023c957a5 --- /dev/null +++ b/tests/ibc/gmp_swap_forward_test.go @@ -0,0 +1,117 @@ +package ibc_test + +import ( + "encoding/json" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + "github.com/duality-labs/duality/x/dex/types" + "github.com/duality-labs/duality/x/gmp" + swaptypes "github.com/duality-labs/duality/x/ibcswap/types" +) + +// TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Duality running as a +// consumer chain connected to two other chains via IBC. +func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { + // Send an IBC transfer from provider to Duality, so we can initialize a pool with the IBC denom token + native Duality token + s.IBCTransferProviderToDuality(s.providerAddr, s.dualityAddr, nativeDenom, ibcTransferAmount, "") + + // Assert that the funds are gone from the acc on provider and present in the acc on Duality + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Duality + depositAmount := sdk.NewInt(100_000) + s.dualityDeposit( + nativeDenom, + s.providerToDualityDenom, + depositAmount, + depositAmount, + 0, + 1, + s.dualityAddr) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := sdk.NewInt(100000) + expectedAmountOut := sdk.NewInt(99990) + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.dualityChainBPath.EndpointA.ChannelID, + Timeout: forwardtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + forwardBz, err := json.Marshal(forwardMetadata) + s.Require().NoError(err) + + forwardNextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(forwardBz, forwardNextJSON) + s.Require().NoError(err) + + swapMetadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: forwardNextJSON, + }, + } + swapMetadataBz, err := json.Marshal(swapMetadata) + + s.Require().NoError(err) + + gmpMetadata := gmp.Message{ + SourceChain: "axelar", + SourceAddress: "alice", + Payload: swapMetadataBz, + Type: gmp.TypeGeneralMessageWithToken, + } + + gmpMetadataBz, err := json.Marshal(gmpMetadata) + s.Require().NoError(err) + + // Send an IBC transfer from chainA to chainB with packet memo containing the swap metadata + + s.IBCTransferProviderToDuality(s.providerAddr, s.dualityAddr, nativeDenom, ibcTransferAmount, string(gmpMetadataBz)) + + // Relay the packet + err = s.RelayAllPacketsAToB(s.dualityChainBPath) + s.Assert().NoError(err) + + // Check that the funds are moved out of the acc on providerChain + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) + + // Check that the amountIn is deduced from the duality account + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + // Check that duality account did not keep any of the transfer denom + s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.dualityChainBPath.EndpointA.ChannelID, + nativeDenom, + ) + transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + + // Check that the funds are now present in the acc on chainB + s.assertChainBBalance(chainBAddr, transferDenomDuality_B, expectedAmountOut) + + s.Assert().NoError(err) +} diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go new file mode 100644 index 000000000..98b50c608 --- /dev/null +++ b/tests/ibc/ibc_setup_test.go @@ -0,0 +1,392 @@ +package ibc_test + +import ( + "encoding/json" + "fmt" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + + ibctesting "github.com/cosmos/ibc-go/v7/testing" + icsibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" + + dbm "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + icstestingutils "github.com/cosmos/interchain-security/v3/testutil/ibc_testing" + testutil "github.com/cosmos/interchain-security/v3/testutil/integration" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + ccv "github.com/cosmos/interchain-security/v3/x/ccv/types" + appduality "github.com/duality-labs/duality/app" + dextypes "github.com/duality-labs/duality/x/dex/types" + "github.com/stretchr/testify/suite" +) + +var ( + nativeDenom = sdk.DefaultBondDenom + ibcTransferAmount = sdk.NewInt(100_000) + genesisWalletAmount, _ = sdk.NewIntFromString("10000000000000000000") +) + +type IBCTestSuite struct { + suite.Suite + + coordinator *icsibctesting.Coordinator + providerChain *icsibctesting.TestChain + providerApp testutil.ProviderApp + dualityChain *icsibctesting.TestChain // aka chainA + dualityApp testutil.ConsumerApp + bundleB *icstestingutils.ConsumerBundle + bundleC *icstestingutils.ConsumerBundle + + dualityCCVPath *icsibctesting.Path + dualityTransferPath *icsibctesting.Path + dualityChainBPath *icsibctesting.Path + chainBChainCPath *icsibctesting.Path + + providerAddr sdk.AccAddress + dualityAddr sdk.AccAddress + providerToDualityDenom string +} + +func TestIBCTestSuite(t *testing.T) { + suite.Run(t, new(IBCTestSuite)) +} + +func (s *IBCTestSuite) SetupTest() { + // Create coordinator + s.coordinator = icsibctesting.NewCoordinator(s.T(), 0) + s.providerChain, s.providerApp = icstestingutils.AddProvider[testutil.ProviderApp]( + s.T(), + s.coordinator, + icstestingutils.ProviderAppIniter, + ) + + // Setup duality as a consumer chain + dualityBundle := s.addConsumerChain(dualityAppIniter, 1) + s.dualityChain = dualityBundle.Chain + s.dualityApp = dualityBundle.App + s.dualityCCVPath = dualityBundle.Path + s.dualityTransferPath = dualityBundle.TransferPath + + // Setup consumer chainB + // NOTE: using dualityAppIniter otherwise the consumer chain doesn't have the packetForwarding middleware + s.bundleB = s.addConsumerChain(dualityAppIniter, 2) + // Setup consumer chainC + s.bundleC = s.addConsumerChain(icstestingutils.ConsumerAppIniter, 3) + + // setup transfer channel between duality and consumerChainB + s.dualityChainBPath = s.setupConsumerToConsumerTransferChannel(dualityBundle, s.bundleB) + + // setup transfer channel between consumerChainB and consumerChainC + s.chainBChainCPath = s.setupConsumerToConsumerTransferChannel(s.bundleB, s.bundleC) + + // Store ibc transfer denom for providerChain=>duality for test convenience + fullTransferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.dualityTransferPath.EndpointB.ChannelID, + nativeDenom, + ) + transferDenom := transfertypes.ParseDenomTrace(fullTransferDenomPath).IBCDenom() + s.providerToDualityDenom = transferDenom + + // Store default addresses from duality and provider chain for test convenience + s.providerAddr = s.providerChain.SenderAccount.GetAddress() + s.dualityAddr = s.dualityChain.SenderAccount.GetAddress() + + // ensure genesis balances are as expected + s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) +} + +func (s *IBCTestSuite) addConsumerChain( + appIniter icsibctesting.AppIniter, + chainIdx int, +) *icstestingutils.ConsumerBundle { + bundle := icstestingutils.AddConsumer[testutil.ProviderApp, testutil.ConsumerApp]( + s.coordinator, + &s.Suite, + chainIdx, + appIniter, + ) + providerKeeper := s.providerApp.GetProviderKeeper() + consumerKeeper := bundle.GetKeeper() + genesisState, found := providerKeeper.GetConsumerGenesis( + s.providerCtx(), + bundle.Chain.ChainID, + ) + s.Require().True(found, "consumer genesis not found") + consumerKeeper.InitGenesis(bundle.GetCtx(), &genesisState) + bundle.Path = s.setupCCVChannel(bundle) + bundle.TransferPath = s.setupTransferChannel( + bundle.Path, + bundle.App, + bundle.Chain, + s.providerChain, + ) + + return bundle +} + +func (s *IBCTestSuite) setupCCVChannel(bundle *icstestingutils.ConsumerBundle) *icsibctesting.Path { + ccvPath := icsibctesting.NewPath(bundle.Chain, s.providerChain) + + providerKeeper := s.providerApp.GetProviderKeeper() + dualityKeeper := bundle.GetKeeper() + + providerEndpointClientID, found := providerKeeper.GetConsumerClientId( + s.providerCtx(), + bundle.Chain.ChainID, + ) + s.Require().True(found, "provider endpoint clientID not found") + ccvPath.EndpointB.ClientID = providerEndpointClientID + + consumerEndpointClientID, found := dualityKeeper.GetProviderClientID(bundle.GetCtx()) + s.Require().True(found, "consumer endpoint clientID not found") + ccvPath.EndpointA.ClientID = consumerEndpointClientID + + ccvPath.EndpointA.ChannelConfig.PortID = ccv.ConsumerPortID + ccvPath.EndpointB.ChannelConfig.PortID = ccv.ProviderPortID + ccvPath.EndpointA.ChannelConfig.Version = ccv.Version + ccvPath.EndpointB.ChannelConfig.Version = ccv.Version + ccvPath.EndpointA.ChannelConfig.Order = channeltypes.ORDERED + ccvPath.EndpointB.ChannelConfig.Order = channeltypes.ORDERED + + // Create ccv connection + s.coordinator.CreateConnections(ccvPath) + + // create ccv channel + s.coordinator.CreateChannels(ccvPath) + + return ccvPath +} + +func (s *IBCTestSuite) setupConsumerToConsumerTransferChannel( + bundleA, bundleB *icstestingutils.ConsumerBundle, +) *icsibctesting.Path { + path := icsibctesting.NewPath(bundleA.Chain, bundleB.Chain) + + // Set the correct client unbonding period + clientConfig := icsibctesting.NewTendermintConfig() + clientConfig.UnbondingPeriod = ccvconsumertypes.DefaultConsumerUnbondingPeriod + path.EndpointA.ClientConfig = clientConfig + path.EndpointB.ClientConfig = clientConfig + + path.EndpointA.ChannelConfig.PortID = "transfer" + path.EndpointB.ChannelConfig.PortID = "transfer" + path.EndpointA.ChannelConfig.Version = transfertypes.Version + path.EndpointB.ChannelConfig.Version = transfertypes.Version + + s.coordinator.Setup(path) + + return path +} + +func (s *IBCTestSuite) setupTransferChannel( + ccvPath *icsibctesting.Path, + appA testutil.ConsumerApp, + chainA, chainB *icsibctesting.TestChain, +) *icsibctesting.Path { + // transfer path will use the same connection as ibc path + transferPath := icsibctesting.NewPath(chainA, chainB) + transferPath.EndpointA.ChannelConfig.PortID = transfertypes.PortID + transferPath.EndpointB.ChannelConfig.PortID = transfertypes.PortID + transferPath.EndpointA.ChannelConfig.Version = transfertypes.Version + transferPath.EndpointB.ChannelConfig.Version = transfertypes.Version + transferPath.EndpointA.ClientID = ccvPath.EndpointA.ClientID + transferPath.EndpointA.ConnectionID = ccvPath.EndpointA.ConnectionID + transferPath.EndpointB.ClientID = ccvPath.EndpointB.ClientID + transferPath.EndpointB.ConnectionID = ccvPath.EndpointB.ConnectionID + + // IBC channel handshake will automatically initiate transfer channel handshake on ACK + // so transfer channel will be on stage INIT when CompleteSetupIBCChannel returns + destinationChannelID := appA.GetConsumerKeeper(). + GetDistributionTransmissionChannel(chainA.GetContext()) + transferPath.EndpointA.ChannelID = destinationChannelID + + // Complete TRY, ACK, CONFIRM for transfer path + err := transferPath.EndpointB.ChanOpenTry() + s.Require().NoError(err) + + err = transferPath.EndpointA.ChanOpenAck() + s.Require().NoError(err) + + err = transferPath.EndpointB.ChanOpenConfirm() + s.Require().NoError(err) + + // ensure counterparty is up to date + err = transferPath.EndpointA.UpdateClient() + s.Require().NoError(err) + + return transferPath +} + +func dualityAppIniter() (icsibctesting.TestingApp, map[string]json.RawMessage) { + encoding := appduality.MakeEncodingConfig() + testApp := appduality.NewApp( + log.NewNopLogger(), + dbm.NewMemDB(), + nil, + true, + map[int64]bool{}, + appduality.DefaultNodeHome, + 5, + appduality.EmptyAppOptions{}, + encoding, + nil, + ) + + return testApp, appduality.NewDefaultGenesisState(testApp.AppCodec()) +} + +func (s *IBCTestSuite) providerCtx() sdk.Context { + return s.providerChain.GetContext() +} + +func (s *IBCTestSuite) dualityCtx() sdk.Context { + return s.dualityChain.GetContext() +} + +// Helper Methods ///////////////////////////////////////////////////////////// + +func (s *IBCTestSuite) IBCTransfer( + path *icsibctesting.Path, + sourceEndpoint *icsibctesting.Endpoint, + fromAddr sdk.AccAddress, + toAddr sdk.AccAddress, + transferDenom string, + transferAmount sdk.Int, + memo string, +) { + timeoutHeight := clienttypes.NewHeight(1, 110) + + // Create Transfer Msg + transferMsg := transfertypes.NewMsgTransfer(sourceEndpoint.ChannelConfig.PortID, + sourceEndpoint.ChannelID, + sdk.NewCoin(transferDenom, transferAmount), + fromAddr.String(), + toAddr.String(), + timeoutHeight, + 0, + memo, + ) + + // Send message from provider chain + res, err := sourceEndpoint.Chain.SendMsgs(transferMsg) + s.Assert().NoError(err) + + // Relay transfer msg to Duality chain + packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents()) + s.Require().NoError(err) + + path.RelayPacket(packet) + s.Assert().NoError(err) +} + +func (s *IBCTestSuite) IBCTransferProviderToDuality( + providerAddr sdk.AccAddress, + dualityAddr sdk.AccAddress, + transferDenom string, + transferAmount sdk.Int, + memo string, +) { + s.IBCTransfer( + s.dualityTransferPath, + s.dualityTransferPath.EndpointB, + providerAddr, + dualityAddr, + transferDenom, + transferAmount, + memo, + ) +} + +func (s *IBCTestSuite) getBalance( + bk testutil.TestBankKeeper, + chain *icsibctesting.TestChain, + addr sdk.AccAddress, + denom string, +) sdk.Coin { + ctx := chain.GetContext() + return bk.GetBalance(ctx, addr, denom) +} + +func (s *IBCTestSuite) assertBalance( + bk testutil.TestBankKeeper, + chain *icsibctesting.TestChain, + addr sdk.AccAddress, + denom string, + expectedAmt sdk.Int, +) { + actualAmt := s.getBalance(bk, chain, addr, denom).Amount + s.Assert(). + Equal(expectedAmt, actualAmt, "Expected amount of %s: %s; Got: %s", denom, expectedAmt, actualAmt) +} + +func (s *IBCTestSuite) assertDualityBalance( + addr sdk.AccAddress, + denom string, + expectedAmt sdk.Int, +) { + s.assertBalance(s.dualityApp.GetTestBankKeeper(), s.dualityChain, addr, denom, expectedAmt) +} + +func (s *IBCTestSuite) assertProviderBalance( + addr sdk.AccAddress, + denom string, + expectedAmt sdk.Int, +) { + s.assertBalance(s.providerApp.GetTestBankKeeper(), s.providerChain, addr, denom, expectedAmt) +} + +func (s *IBCTestSuite) assertChainBBalance(addr sdk.AccAddress, denom string, expectedAmt sdk.Int) { + s.assertBalance(s.bundleB.App.GetTestBankKeeper(), s.bundleB.Chain, addr, denom, expectedAmt) +} + +func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, expectedAmt sdk.Int) { + s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) +} + +func (s *IBCTestSuite) dualityDeposit( + token0 string, + token1 string, + depositAmount0 sdk.Int, + depositAmount1 sdk.Int, + tickIndex int64, + fee uint64, + creator sdk.AccAddress, +) { + // create deposit msg + msgDeposit := dextypes.NewMsgDeposit( + creator.String(), + creator.String(), + token0, + token1, + []sdk.Int{depositAmount0}, + []sdk.Int{depositAmount1}, + []int64{tickIndex}, + []uint64{fee}, + []*dextypes.DepositOptions{{false}}, + ) + + // execute deposit msg + _, err := s.dualityChain.SendMsgs(msgDeposit) + s.Assert().NoError(err, "Deposit Failed") +} + +func (s *IBCTestSuite) RelayAllPacketsAToB(path *icsibctesting.Path) error { + sentPackets := path.EndpointA.Chain.SentPackets + if len(sentPackets) == 0 { + return fmt.Errorf("No packets to send") + } + + for _, packet := range sentPackets { + err := path.RelayPacket(packet) + if err != nil { + return err + } + } + return nil +} diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go new file mode 100644 index 000000000..522db1a72 --- /dev/null +++ b/tests/ibc/swap_forward_test.go @@ -0,0 +1,481 @@ +package ibc_test + +import ( + "encoding/json" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + "github.com/duality-labs/duality/x/dex/types" + swaptypes "github.com/duality-labs/duality/x/ibcswap/types" + "github.com/iancoleman/orderedmap" + "golang.org/x/exp/maps" +) + +func (s *IBCTestSuite) TestSwapAndForward_Success() { + // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + + // Assert that the funds are gone from the acc on provider and present in the acc on Duality + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Duality + depositAmount := sdk.NewInt(100_000) + s.dualityDeposit( + nativeDenom, + s.providerToDualityDenom, + depositAmount, + depositAmount, + 0, + 1, + s.dualityAddr) + + // Assert that the deposit was successful and the funds are moved out of the Duality user acc + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := sdk.NewInt(100000) + expectedAmountOut := sdk.NewInt(99990) + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.dualityChainBPath.EndpointA.ChannelID, + Timeout: forwardtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send an IBC transfer from provider to duality with packet memo containing the swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Relay the packets + err = s.RelayAllPacketsAToB(s.dualityChainBPath) + s.Assert().NoError(err) + + // Check that the funds are moved out of the acc on providerChain + s.assertProviderBalance( + s.providerAddr, + nativeDenom, + newProviderBalNative.Sub(ibcTransferAmount), + ) + + // Check that the amountIn is deduced from the duality account + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + // Check that duality account did not keep any of the transfer denom + s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.dualityChainBPath.EndpointA.ChannelID, + nativeDenom, + ) + transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + + // Check that the funds are now present in the acc on chainB + s.assertChainBBalance(chainBAddr, transferDenomDuality_B, expectedAmountOut) + + s.Assert().NoError(err) +} + +func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { + // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + + // Assert that the funds are gone from the acc on provider and present in the acc on Duality + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Duality + depositAmount := sdk.NewInt(100_000) + s.dualityDeposit( + nativeDenom, + s.providerToDualityDenom, + depositAmount, + depositAmount, + 0, + 1, + s.dualityAddr) + + // Assert that the deposit was successful and the funds are moved out of the Duality user acc + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := sdk.NewInt(100000) + + expectedOut := sdk.NewInt(99_990) + + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + nextForward := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: chainCAddr.String(), + Port: s.chainBChainCPath.EndpointA.ChannelConfig.PortID, + Channel: s.chainBChainCPath.EndpointA.ChannelID, + Timeout: forwardtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + nextForwardBz, err := json.Marshal(nextForward) + s.Assert().NoError(err) + nextForwardJSON := forwardtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) + + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.dualityChainBPath.EndpointA.ChannelID, + Timeout: forwardtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nextForwardJSON, + }, + } + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Assert().NoError(err) + + // Send an IBC transfer from provider to duality with packet memo containing the swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + dualityPacket := maps.Values(s.dualityChain.SentPackets)[0] + err = s.dualityChainBPath.EndpointB.UpdateClient() + s.Require().NoError(err) + err = s.dualityChainBPath.EndpointB.RecvPacket(dualityPacket) + s.Require().NoError(err) + err = s.RelayAllPacketsAToB(s.chainBChainCPath) + s.Require().NoError(err) + + transferDenomPathDuality_B := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.dualityChainBPath.EndpointB.ChannelID, + nativeDenom, + ) + transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPathDuality_B).IBCDenom() + transferDenomPathB_C := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.chainBChainCPath.EndpointB.ChannelID, + transferDenomPathDuality_B, + ) + transferDenomB_C := transfertypes.ParseDenomTrace(transferDenomPathB_C).IBCDenom() + + // Check that the funds are moved out of the acc on chainA + s.assertProviderBalance( + s.providerAddr, + nativeDenom, + newProviderBalNative.Sub(ibcTransferAmount), + ) + // Check that chain B balance is unchanged + s.assertChainBBalance(chainBAddr, transferDenomDuality_B, sdk.ZeroInt()) + + // Check that funds made it to chainC + s.assertChainCBalance(chainCAddr, transferDenomB_C, expectedOut) +} + +// TestSwapAndForward_UnwindIBCDenomSuccess asserts that the swap and forward middleware stack works as intended in the +// case that a native token from ChainB is sent to ChainA and then ChainA initiates a swap and forward with the token. +// This asserts that denom unwinding works as intended when going provider->duality->provider +func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { + // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + + // Assert that the funds are gone from the acc on provider and present in the acc on Duality + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Duality + depositAmount := sdk.NewInt(100_000) + s.dualityDeposit( + nativeDenom, + s.providerToDualityDenom, + depositAmount, + depositAmount, + 0, + 1, + s.dualityAddr) + + // Assert that the deposit was successful and the funds are moved out of the Duality user acc + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + + swapAmount := sdk.NewInt(100000) + expectedAmountOut := sdk.NewInt(99990) + + retries := uint8(0) + + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: s.providerAddr.String(), + Port: s.dualityTransferPath.EndpointA.ChannelConfig.PortID, + Channel: s.dualityTransferPath.EndpointA.ChannelID, + Timeout: forwardtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: nativeDenom, + TokenOut: s.providerToDualityDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send an IBC transfer from provider to duality with packet memo containing the swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Relay the packets + s.RelayAllPacketsAToB(s.dualityTransferPath) + s.coordinator.CommitBlock(s.dualityChain) + + // Check that the amountIn is deduced from the duality account + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Sub(swapAmount)) + // Check that the amountIn has been deducted from the duality chain + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Sub(swapAmount)) + // Check that the funds are now present on the provider chainer + s.assertProviderBalance( + s.providerAddr, + nativeDenom, + newProviderBalNative.Sub(ibcTransferAmount).Add(expectedAmountOut), + ) + + s.Assert().NoError(err) +} + +// TestSwapAndForward_ForwardFails asserts that the swap and forward middleware stack works as intended in the case +// that an incoming IBC swap succeeds but the forward fails. +func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { + // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + + // Assert that the funds are gone from the acc on provider and present in the acc on Duality + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Duality + depositAmount := sdk.NewInt(100_000) + s.dualityDeposit( + nativeDenom, + s.providerToDualityDenom, + depositAmount, + depositAmount, + 0, + 1, + s.dualityAddr) + + // Assert that the deposit was successful and the funds are moved out of the Duality user acc + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := sdk.NewInt(100000) + expectedAmountOut := sdk.NewInt(99990) + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, + Channel: "invalid-channel", // add an invalid channel identifier so the forward fails + Timeout: forwardtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send an IBC transfer from provider to duality with packet memo containing the swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Relay the packets from duality => ChainB + err = s.RelayAllPacketsAToB(s.dualityChainBPath) + // Relay Fails + s.Assert().Error(err) + + // Check that the funds are moved out of the acc on providerChain + s.assertProviderBalance( + s.providerAddr, + nativeDenom, + newProviderBalNative.Sub(ibcTransferAmount), + ) + + // Check that the amountIn is deduced from the duality account + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + // Check that the amountOut stays on the dualitychain + s.assertDualityBalance( + s.dualityAddr, + nativeDenom, + postDepositDualityBalNative.Add(expectedAmountOut), + ) + + // Check that nothing made it to chainB + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.dualityChainBPath.EndpointA.ChannelID, + nativeDenom, + ) + transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + + s.assertChainBBalance(chainBAddr, transferDenomDuality_B, sdk.ZeroInt()) +} diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go new file mode 100644 index 000000000..8cb1a8c0f --- /dev/null +++ b/tests/ibc/swap_test.go @@ -0,0 +1,214 @@ +package ibc_test + +import ( + "encoding/json" + + sdk "github.com/cosmos/cosmos-sdk/types" + dextypes "github.com/duality-labs/duality/x/dex/types" + swaptypes "github.com/duality-labs/duality/x/ibcswap/types" +) + +// TestIBCSwapMiddleware_Success asserts that the IBC swap middleware works as intended with Duality running as a +// consumer chain connected to the Cosmos Hub. +func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { + // Send an IBC transfer from provider to Duality, so we can initialize a pool with the IBC denom token + native Duality token + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + + // Assert that the funds are gone from the acc on provider and present in the acc on Duality + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Duality + depositAmount := sdk.NewInt(100_000) + s.dualityDeposit( + nativeDenom, + s.providerToDualityDenom, + depositAmount, + depositAmount, + 0, + 1, + s.dualityAddr) + + // Assert that the deposit was successful and the funds are moved out of the Duality user acc + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + + // Send an IBC transfer from providerChain to Duality with packet memo containing the swap metadata + swapAmount := sdk.NewInt(100000) + expectedOut := sdk.NewInt(99_990) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 1, + OrderType: dextypes.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Check that the funds are moved out of the acc on providerChain + s.assertProviderBalance( + s.providerAddr, + nativeDenom, + newProviderBalNative.Sub(ibcTransferAmount), + ) + + // Check that the swap funds are now present in the acc on Duality + s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Add(expectedOut)) + + // Check that all of the IBC transfer denom have been used up + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) +} + +// TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Duality running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and a refund to the src chain should take place. +func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { + // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair + swapAmount := sdk.NewInt(100000) + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 1, + OrderType: dextypes.LimitOrderType_FILL_OR_KILL, + }, + NonRefundable: false, + Next: nil, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send (failing) IBC transfer with swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Check that the funds are not present in the account on Duality + s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + + // Check that the refund takes place and the funds are moved back to the account on Gaia + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) +} + +// TestIBCSwapMiddleware_FailNoRefund asserts that the IBC swap middleware works as intended with Duality running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Duality. +func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { + // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair + swapAmount := sdk.NewInt(100000) + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 1, + OrderType: dextypes.LimitOrderType_FILL_OR_KILL, + }, + NonRefundable: true, + Next: nil, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send (failing) IBC transfer with swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Check that the funds are present in the account on Duality + s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + + // Check that no refund takes place and the funds are not in the account on provider + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) +} + +// TestIBCSwapMiddleware_FailWithRefundAddr asserts that the IBC swap middleware works as intended with Duality running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Duality but be moved +// to the refund address. + +func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { + // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair + refundAddr := s.dualityChain.SenderAccounts[1].SenderAccount.GetAddress() + swapAmount := sdk.NewInt(100000) + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ + Creator: s.dualityAddr.String(), + Receiver: s.dualityAddr.String(), + TokenIn: s.providerToDualityDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 1, + OrderType: dextypes.LimitOrderType_FILL_OR_KILL, + }, + RefundAddress: refundAddr.String(), + NonRefundable: true, + Next: nil, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send (failing) IBC transfer with swap metadata + s.IBCTransferProviderToDuality( + s.providerAddr, + s.dualityAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Check that the funds have been moved to the refund address + s.assertDualityBalance(refundAddr, nativeDenom, genesisWalletAmount) + s.assertDualityBalance(refundAddr, s.providerToDualityDenom, ibcTransferAmount) + + // Check that no refund takes place and the funds are not in the account on provider + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) +} diff --git a/testutil/apptesting/events.go b/testutil/apptesting/events.go new file mode 100644 index 000000000..354f87a9e --- /dev/null +++ b/testutil/apptesting/events.go @@ -0,0 +1,41 @@ +package apptesting + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "golang.org/x/exp/slices" +) + +// AssertEventEmitted asserts that ctx's event manager has emitted the given number of events +// of the given type. +func (s *KeeperTestHelper) AssertEventEmitted(ctx sdk.Context, eventTypeExpected string, numEventsExpected int) { + allEvents := ctx.EventManager().Events() + // filter out other events + actualEvents := make([]sdk.Event, 0) + for _, event := range allEvents { + if event.Type == eventTypeExpected { + actualEvents = append(actualEvents, event) + } + } + s.Equal(numEventsExpected, len(actualEvents)) +} + +func (s *KeeperTestHelper) FindEvent(events []sdk.Event, name string) sdk.Event { + index := slices.IndexFunc(events, func(e sdk.Event) bool { return e.Type == name }) + if index == -1 { + return sdk.Event{} + } + + return events[index] +} + +func (s *KeeperTestHelper) ExtractAttributes(event sdk.Event) map[string]string { + attrs := make(map[string]string) + if event.Attributes == nil { + return attrs + } + for _, a := range event.Attributes { + attrs[string(a.Key)] = string(a.Value) + } + + return attrs +} diff --git a/testutil/apptesting/test_suite.go b/testutil/apptesting/test_suite.go new file mode 100644 index 000000000..4d11c3cbc --- /dev/null +++ b/testutil/apptesting/test_suite.go @@ -0,0 +1,153 @@ +package apptesting + +import ( + "context" + "crypto/rand" + "fmt" + "time" + + dbm "github.com/cometbft/cometbft-db" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/crypto/ed25519" + "github.com/cometbft/cometbft/libs/log" + tmtypes "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/store/rootmulti" + sdk "github.com/cosmos/cosmos-sdk/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" + "github.com/stretchr/testify/suite" +) + +type KeeperTestHelper struct { + suite.Suite + + App *app.App + Ctx sdk.Context + GoCtx context.Context + // Used for testing queries end to end. + // You can wrap this in a module-specific QueryClient() + // and then make calls as you would a normal GRPC client. + QueryHelper *baseapp.QueryServiceTestHelper +} + +// Setup sets up basic environment for suite (App, Ctx, and test accounts) +func (s *KeeperTestHelper) Setup() { + s.App, _ = testutil.SetupTestingApp("neutron-1")() + s.Ctx = s.App.BaseApp.NewContext( + false, + tmtypes.Header{Height: 1, ChainID: "neutron-1", Time: time.Now().UTC()}, + ) + s.GoCtx = sdk.WrapSDKContext(s.Ctx) + s.QueryHelper = &baseapp.QueryServiceTestHelper{ + GRPCQueryRouter: s.App.GRPCQueryRouter(), + Ctx: s.Ctx, + } + + s.SetEpochStartTime() +} + +// func (s *KeeperTestHelper) SetupTestForInitGenesis() { +// // Setting to True, leads to init genesis not running +// s.App = app.Setup(true) +// s.Ctx = s.App.BaseApp.NewContext(true, tmtypes.Header{}) +// } + +func (s *KeeperTestHelper) SetEpochStartTime() { + epochsKeeper := s.App.EpochsKeeper + + for _, epoch := range epochsKeeper.AllEpochInfos(s.Ctx) { + epoch.StartTime = s.Ctx.BlockTime() + epochsKeeper.DeleteEpochInfo(s.Ctx, epoch.Identifier) + err := epochsKeeper.AddEpochInfo(s.Ctx, epoch) + if err != nil { + panic(err) + } + } +} + +// setupAddr takes a balance, prefix, and address number. Then returns the respective account address byte array. +// If prefix is left blank, it will be replaced with a random prefix. +func SetupAddr(index int) sdk.AccAddress { + prefixBz := make([]byte, 8) + _, _ = rand.Read(prefixBz) + prefix := string(prefixBz) + addr := sdk.AccAddress([]byte(fmt.Sprintf("addr%s%8d", prefix, index))) + return addr +} + +func (s *KeeperTestHelper) SetupAddr(index int) sdk.AccAddress { + return SetupAddr(index) +} + +func SetupAddrs(numAddrs int) []sdk.AccAddress { + addrs := make([]sdk.AccAddress, numAddrs) + for i := 0; i < numAddrs; i++ { + addrs[i] = SetupAddr(i) + } + return addrs +} + +func (s *KeeperTestHelper) SetupAddrs(numAddrs int) []sdk.AccAddress { + return SetupAddrs(numAddrs) +} + +// These are for testing msg.ValidateBasic() functions +// which need to validate for valid/invalid addresses. +// Should not be used for anything else because these addresses +// are totally uninterpretable (100% random). +func GenerateTestAddrs() (string, string) { + pk1 := ed25519.GenPrivKey().PubKey() + validAddr := sdk.AccAddress(pk1.Address()).String() + invalidAddr := sdk.AccAddress("").String() + return validAddr, invalidAddr +} + +// CreateTestContext creates a test context. +func (s *KeeperTestHelper) CreateTestContext() sdk.Context { + ctx, _ := s.CreateTestContextWithMultiStore() + return ctx +} + +// CreateTestContextWithMultiStore creates a test context and returns it together with multi store. +func (s *KeeperTestHelper) CreateTestContextWithMultiStore() (sdk.Context, sdk.CommitMultiStore) { + db := dbm.NewMemDB() + logger := log.NewNopLogger() + + ms := rootmulti.NewStore(db, logger) + + return sdk.NewContext(ms, tmtypes.Header{}, false, logger), ms +} + +// CreateTestContext creates a test context. +func (s *KeeperTestHelper) Commit() { + s.App.EndBlock(abci.RequestEndBlock{Height: s.Ctx.BlockHeight()}) + oldHeight := s.Ctx.BlockHeight() + oldHeader := s.Ctx.BlockHeader() + s.App.Commit() + newHeader := tmtypes.Header{ + Height: oldHeight + 1, + ChainID: oldHeader.ChainID, + Time: oldHeader.Time.Add(time.Minute), + } + s.App.BeginBlock(abci.RequestBeginBlock{Header: newHeader}) + s.Ctx = s.App.GetBaseApp().NewContext(false, newHeader) +} + +// FundAcc funds target address with specified amount. +func (s *KeeperTestHelper) FundAcc(acc sdk.AccAddress, amounts sdk.Coins) { + err := s.App.BankKeeper.MintCoins(s.Ctx, banktypes.ModuleName, amounts) + s.Require().NoError(err) + + err = s.App.BankKeeper.SendCoinsFromModuleToAccount(s.Ctx, banktypes.ModuleName, acc, amounts) + s.Require().NoError(err) +} + +// StateNotAltered validates that app state is not altered. Fails if it is. +func (s *KeeperTestHelper) StateNotAltered() { + oldState := s.App.ExportState(s.Ctx) + s.App.Commit() + newState := s.App.ExportState(s.Ctx) + s.Require().Equal(oldState, newState) +} diff --git a/testutil/common/sample/sample.go b/testutil/common/sample/sample.go new file mode 100644 index 000000000..98f2153ed --- /dev/null +++ b/testutil/common/sample/sample.go @@ -0,0 +1,13 @@ +package sample + +import ( + "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// AccAddress returns a sample account address +func AccAddress() string { + pk := ed25519.GenPrivKey().PubKey() + addr := pk.Address() + return sdk.AccAddress(addr).String() +} diff --git a/testutil/dex/keeper/dex.go b/testutil/dex/keeper/dex.go new file mode 100644 index 000000000..65c078c17 --- /dev/null +++ b/testutil/dex/keeper/dex.go @@ -0,0 +1,89 @@ +package keeper + +import ( + "testing" + + cmdb "github.com/cometbft/cometbft-db" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/store" + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + typesparams "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func DexKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { + storeKey := sdk.NewKVStoreKey(types.StoreKey) + memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) + + db := cmdb.NewMemDB() + stateStore := store.NewCommitMultiStore(db) + stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) + stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) + require.NoError(t, stateStore.LoadLatestVersion()) + + registry := codectypes.NewInterfaceRegistry() + cdc := codec.NewProtoCodec(registry) + + paramsSubspace := typesparams.NewSubspace(cdc, + types.Amino, + storeKey, + memStoreKey, + "DexParams", + ) + k := keeper.NewKeeper( + cdc, + storeKey, + memStoreKey, + paramsSubspace, + nil, + ) + + ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) + + // Initialize params + k.SetParams(ctx, types.DefaultParams()) + + return k, ctx +} + +func AssertEventEmitted(t *testing.T, ctx sdk.Context, eventValue, message string) { + allEvents := ctx.EventManager().Events() + for _, event := range allEvents { + for _, attr := range event.Attributes { + if string(attr.Value) == eventValue { + return + } + } + } + require.Fail(t, message) +} + +func AssertNEventsEmitted(t *testing.T, ctx sdk.Context, eventValue string, nEvents int) { + emissions := 0 + allEvents := ctx.EventManager().Events() + for _, event := range allEvents { + for _, attr := range event.Attributes { + if string(attr.Value) == eventValue { + emissions++ + } + } + } + require.Equal(t, nEvents, emissions, "Expected %v events, got %v", nEvents, emissions) +} + +func AssertEventNotEmitted(t *testing.T, ctx sdk.Context, eventValue, message string) { + allEvents := ctx.EventManager().Events() + if len(allEvents) != 0 { + for _, attr := range allEvents[len(allEvents)-1].Attributes { + if string(attr.Value) == eventValue { + require.Fail(t, message) + } + } + } +} diff --git a/testutil/dex/nullify/nullify.go b/testutil/dex/nullify/nullify.go new file mode 100644 index 000000000..3b968c09c --- /dev/null +++ b/testutil/dex/nullify/nullify.go @@ -0,0 +1,57 @@ +// Package nullify provides methods to init nil values structs for test assertion. +package nullify + +import ( + "reflect" + "unsafe" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var ( + coinType = reflect.TypeOf(sdk.Coin{}) + coinsType = reflect.TypeOf(sdk.Coins{}) +) + +// Fill analyze all struct fields and slices with +// reflection and initialize the nil and empty slices, +// structs, and pointers. +func Fill(x interface{}) interface{} { + v := reflect.Indirect(reflect.ValueOf(x)) + switch v.Kind() { + case reflect.Slice: + for i := 0; i < v.Len(); i++ { + obj := v.Index(i) + objPt := reflect.NewAt(obj.Type(), unsafe.Pointer(obj.UnsafeAddr())).Interface() + objPt = Fill(objPt) + obj.Set(reflect.ValueOf(objPt)) + } + case reflect.Struct: + for i := 0; i < v.NumField(); i++ { + f := reflect.Indirect(v.Field(i)) + if !f.CanSet() { + continue + } + switch f.Kind() { + case reflect.Slice: + f.Set(reflect.MakeSlice(f.Type(), 0, 0)) + case reflect.Struct: + switch f.Type() { + case coinType: + coin := reflect.New(coinType).Interface() + s := reflect.ValueOf(coin).Elem() + f.Set(s) + case coinsType: + coins := reflect.New(coinsType).Interface() + s := reflect.ValueOf(coins).Elem() + f.Set(s) + default: + objPt := reflect.NewAt(f.Type(), unsafe.Pointer(f.UnsafeAddr())).Interface() + s := Fill(objPt) + f.Set(reflect.ValueOf(s)) + } + } + } + } + return reflect.Indirect(v).Interface() +} diff --git a/testutil/integration_test_setup.go b/testutil/integration_test_setup.go new file mode 100644 index 000000000..4e2189617 --- /dev/null +++ b/testutil/integration_test_setup.go @@ -0,0 +1,308 @@ +package testutil + +import ( + "encoding/json" + "fmt" + "testing" + "time" + + "cosmossdk.io/math" + dbm "github.com/cometbft/cometbft-db" + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cometbft/cometbft/libs/log" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + tmtypes "github.com/cometbft/cometbft/types" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/cosmos/cosmos-sdk/testutil/mock" + "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil/consumer" + + "github.com/stretchr/testify/require" +) + +func setup(withGenesis bool, invCheckPeriod uint) (*app.App, app.GenesisState) { + encoding := app.MakeEncodingConfig() + db := dbm.NewMemDB() + testApp := app.New( + log.NewNopLogger(), + "neutron-1", + db, + nil, + true, + map[int64]bool{}, + app.DefaultNodeHome, + 0, + encoding, + sims.EmptyAppOptions{}, + nil, + ) + if withGenesis { + return testApp, app.NewDefaultGenesisState(encoding.Marshaler) + } + + return testApp, app.GenesisState{} +} + +func Setup(t *testing.T, isCheckTx bool) *app.App { + t.Helper() + + privVal := mock.NewPV() + pubKey, err := privVal.GetPubKey() + require.NoError(t, err) + + // JCP TODO: need? + // // Give bank module minter permissions for testing (ie. KeeperTestHelper.FundAcc) + // maccPerms[banktypes.ModuleName] = []string{authtypes.Minter} + + // create validator set with single validator + validator := tmtypes.NewValidator(pubKey, 1) + valSet := tmtypes.NewValidatorSet([]*tmtypes.Validator{validator}) + + // generate genesis account + senderPrivKey := secp256k1.GenPrivKey() + acc := authtypes.NewBaseAccount( + senderPrivKey.PubKey().Address().Bytes(), + senderPrivKey.PubKey(), + 0, + 0, + ) + balance := banktypes.Balance{ + Address: acc.GetAddress().String(), + Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100000000000000))), + } + + app := SetupWithGenesisValSet(t, valSet, []authtypes.GenesisAccount{acc}, balance) + + return app +} + +// SetupWithGenesisValSet initializes a new SimApp with a validator set and genesis accounts +// that also act as delegators. For simplicity, each validator is bonded with a delegation +// of one consensus engine unit in the default token of the simapp from first genesis +// account. A Nop logger is set in SimApp. +func SetupWithGenesisValSet( + t *testing.T, + valSet *tmtypes.ValidatorSet, + genAccs []authtypes.GenesisAccount, + balances ...banktypes.Balance, +) *app.App { + t.Helper() + + app, genesisState := setup(true, 5) + genesisState, err := GenesisStateWithValSet( + app.AppCodec(), + genesisState, + valSet, + genAccs, + balances...) + require.NoError(t, err) + + stateBytes, err := json.MarshalIndent(genesisState, "", " ") + require.NoError(t, err) + + // init chain will set the validator set and initialize the genesis accounts + app.InitChain( + abci.RequestInitChain{ + Validators: []abci.ValidatorUpdate{}, + ConsensusParams: sims.DefaultConsensusParams, + AppStateBytes: stateBytes, + }, + ) + + // commit genesis changes + app.Commit() + app.BeginBlock(abci.RequestBeginBlock{Header: tmproto.Header{ + Height: app.LastBlockHeight() + 1, + AppHash: app.LastCommitID().Hash, + ValidatorsHash: valSet.Hash(), + NextValidatorsHash: valSet.Hash(), + }}) + + return app +} + +// GenesisStateWithValSet returns a new genesis state with the validator set +func GenesisStateWithValSet( + codec codec.Codec, + genesisState map[string]json.RawMessage, + valSet *tmtypes.ValidatorSet, + genAccs []authtypes.GenesisAccount, + balances ...banktypes.Balance, +) (map[string]json.RawMessage, error) { + // set genesis accounts + authGenesis := authtypes.NewGenesisState(authtypes.DefaultParams(), genAccs) + genesisState[authtypes.ModuleName] = codec.MustMarshalJSON(authGenesis) + + validators := make([]stakingtypes.Validator, 0, len(valSet.Validators)) + delegations := make([]stakingtypes.Delegation, 0, len(valSet.Validators)) + + bondAmt := sdk.DefaultPowerReduction + initValPowers := []abci.ValidatorUpdate{} + + for _, val := range valSet.Validators { + pk, err := cryptocodec.FromTmPubKeyInterface(val.PubKey) + if err != nil { + return nil, fmt.Errorf("failed to convert pubkey: %w", err) + } + + pkAny, err := codectypes.NewAnyWithValue(pk) + if err != nil { + return nil, fmt.Errorf("failed to create new any: %w", err) + } + + validator := stakingtypes.Validator{ + OperatorAddress: sdk.ValAddress(val.Address).String(), + ConsensusPubkey: pkAny, + Jailed: false, + Status: stakingtypes.Bonded, + Tokens: bondAmt, + DelegatorShares: math.LegacyOneDec(), + Description: stakingtypes.Description{}, + UnbondingHeight: int64(0), + UnbondingTime: time.Unix(0, 0).UTC(), + Commission: stakingtypes.NewCommission( + math.LegacyZeroDec(), + math.LegacyZeroDec(), + math.LegacyZeroDec(), + ), + MinSelfDelegation: math.ZeroInt(), + } + validators = append(validators, validator) + delegations = append( + delegations, + stakingtypes.NewDelegation( + genAccs[0].GetAddress(), + val.Address.Bytes(), + math.LegacyOneDec(), + ), + ) + + // add initial validator powers so consumer InitGenesis runs correctly + pub, _ := val.ToProto() + initValPowers = append(initValPowers, abci.ValidatorUpdate{ + Power: val.VotingPower, + PubKey: pub.PubKey, + }) + } + + // set validators and delegations + stakingGenesis := stakingtypes.NewGenesisState( + stakingtypes.DefaultParams(), + validators, + delegations, + ) + genesisState[stakingtypes.ModuleName] = codec.MustMarshalJSON(stakingGenesis) + + totalSupply := sdk.NewCoins() + for _, b := range balances { + // add genesis acc tokens to total supply + totalSupply = totalSupply.Add(b.Coins...) + } + + for range delegations { + // add delegated tokens to total supply + totalSupply = totalSupply.Add(sdk.NewCoin(sdk.DefaultBondDenom, bondAmt)) + } + + // add bonded amount to bonded pool module account + balances = append(balances, banktypes.Balance{ + Address: authtypes.NewModuleAddress(stakingtypes.BondedPoolName).String(), + Coins: sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, bondAmt)}, + }) + + // update total supply + bankGenesis := banktypes.NewGenesisState( + banktypes.DefaultGenesisState().Params, + balances, + totalSupply, + []banktypes.Metadata{}, + []banktypes.SendEnabled{}, + ) + genesisState[banktypes.ModuleName] = codec.MustMarshalJSON(bankGenesis) + + vals, err := tmtypes.PB2TM.ValidatorUpdates(initValPowers) + if err != nil { + panic("failed to get vals") + } + + consumerGenesisState := consumer.CreateMinimalConsumerTestGenesis() + consumerGenesisState.InitialValSet = initValPowers + consumerGenesisState.ProviderConsensusState.NextValidatorsHash = tmtypes.NewValidatorSet(vals). + Hash() + consumerGenesisState.Params.Enabled = true + genesisState[consumertypes.ModuleName] = codec.MustMarshalJSON(consumerGenesisState) + + return genesisState, nil +} + +// type EmptyAppOptions struct { +// servertypes.AppOptions +// } + +// // Get implements AppOptions +// func (ao EmptyAppOptions) Get(_ string) interface{} { +// return nil +// } + +// var _ network.TestFixtureFactory = NewTestNetworkFixture + +// func NewTestNetworkFixture() network.TestFixture { +// dir, err := os.MkdirTemp("", "duality") +// if err != nil { +// panic(fmt.Sprintf("failed creating temporary directory: %v", err)) +// } +// defer os.RemoveAll(dir) + +// encConfig := MakeEncodingConfig() + +// app := NewApp( +// log.NewNopLogger(), +// dbm.NewMemDB(), +// nil, +// true, +// map[int64]bool{}, +// DefaultNodeHome, +// 5, +// EmptyAppOptions{}, +// encConfig, +// nil, +// ) + +// appCtr := func(val network.ValidatorI) servertypes.Application { +// return NewApp( +// val.GetCtx().Logger, +// dbm.NewMemDB(), +// nil, +// true, +// map[int64]bool{}, +// DefaultNodeHome, +// 5, +// EmptyAppOptions{}, +// encConfig, +// nil, +// bam.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), +// bam.SetMinGasPrices(val.GetAppConfig().MinGasPrices), +// bam.SetChainID(val.GetCtx().Viper.GetString(flags.FlagChainID)), +// ) +// } + +// return network.TestFixture{ +// AppConstructor: appCtr, +// GenesisState: NewDefaultGenesisState(app.AppCodec()), +// EncodingConfig: moduletestutil.TestEncodingConfig{ +// InterfaceRegistry: app.InterfaceRegistry(), +// Codec: app.AppCodec(), +// TxConfig: encConfig.TxConfig, +// Amino: app.LegacyAmino(), +// }, +// } +// } diff --git a/utils/bank.go b/utils/bank.go new file mode 100644 index 000000000..a9740a8fa --- /dev/null +++ b/utils/bank.go @@ -0,0 +1,110 @@ +package utils + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + + "github.com/cosmos/cosmos-sdk/types/query" +) + +func FilteredPaginateAccountBalances( + ctx sdk.Context, + bankKeeper types.BankKeeper, + address sdk.AccAddress, + pageRequest *query.PageRequest, + onResult func(coin sdk.Coin, accumulate bool) bool, +) (*query.PageResponse, error) { + // if the PageRequest is nil, use default PageRequest + if pageRequest == nil { + pageRequest = &query.PageRequest{} + } + + offset := pageRequest.Offset + key := pageRequest.Key + limit := pageRequest.Limit + countTotal := pageRequest.CountTotal + + if pageRequest.Reverse { + return nil, fmt.Errorf("invalid request, reverse pagination is not enabled") + } + if offset > 0 && key != nil { + return nil, fmt.Errorf("invalid request, either offset or key is expected, got both") + } + + if limit == 0 { + limit = query.DefaultLimit + + // count total results when the limit is zero/not supplied + countTotal = true + } + + if len(key) != 0 { + // paginate with key + var ( + numHits uint64 + nextKey []byte + ) + startAccum := false + + bankKeeper.IterateAccountBalances(ctx, address, func(coin sdk.Coin) bool { + if coin.Denom == string(key) { + startAccum = true + } + if numHits == limit { + nextKey = []byte(coin.Denom) + return true + } + if startAccum { + hit := onResult(coin, true) + if hit { + numHits++ + } + } + + return false + }) + + return &query.PageResponse{ + NextKey: nextKey, + }, nil + } else { + // default pagination (with offset) + + end := offset + limit + + var ( + numHits uint64 + nextKey []byte + ) + + bankKeeper.IterateAccountBalances(ctx, address, func(coin sdk.Coin) bool { + accumulate := numHits >= offset && numHits < end + hit := onResult(coin, accumulate) + + if hit { + numHits++ + } + + if numHits == end+1 { + if nextKey == nil { + nextKey = []byte(coin.Denom) + } + + if !countTotal { + return true + } + } + + return false + }) + + res := &query.PageResponse{NextKey: nextKey} + if countTotal { + res.Total = numHits + } + + return res, nil + } +} diff --git a/utils/cache_ctx.go b/utils/cache_ctx.go new file mode 100644 index 000000000..9924bba1f --- /dev/null +++ b/utils/cache_ctx.go @@ -0,0 +1,79 @@ +package utils + +import ( + "errors" + "fmt" + "runtime" + "runtime/debug" + + "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// This function lets you run the function f, but if theres an error or panic +// drop the state machine change and log the error. +// If there is no error, proceeds as normal (but with some slowdown due to SDK store weirdness) +// Try to avoid usage of iterators in f. +// +// If its an out of gas panic, this function will also panic like in normal tx execution flow. +// This is still safe for beginblock / endblock code though, as they do not have out of gas panics. +func ApplyFuncIfNoError(ctx sdk.Context, f func(ctx sdk.Context) error) (err error) { + // Add a panic safeguard + defer func() { + if recoveryError := recover(); recoveryError != nil { + if isErr, _ := IsOutOfGasError(recoveryError); isErr { + // We panic with the same error, to replicate the normal tx execution flow. + panic(recoveryError) + } else { + PrintPanicRecoveryError(ctx, recoveryError) + err = errors.New("panic occurred during execution") + } + } + }() + // makes a new cache context, which all state changes get wrapped inside of. + cacheCtx, write := ctx.CacheContext() + err = f(cacheCtx) + if err != nil { + ctx.Logger().Error(err.Error()) + } else { + // no error, write the output of f + write() + } + return err +} + +// Frustratingly, this has to return the error descriptor, not an actual error itself +// because the SDK errors here are not actually errors. (They don't implement error interface) +func IsOutOfGasError(err any) (bool, string) { + switch e := err.(type) { + case types.ErrorOutOfGas: + return true, e.Descriptor + case types.ErrorGasOverflow: + return true, e.Descriptor + default: + return false, "" + } +} + +// PrintPanicRecoveryError error logs the recoveryError, along with the stacktrace, if it can be parsed. +// If not emits them to stdout. +func PrintPanicRecoveryError(ctx sdk.Context, recoveryError interface{}) { + errStackTrace := string(debug.Stack()) + switch e := recoveryError.(type) { + case types.ErrorOutOfGas: + ctx.Logger().Debug("out of gas error inside panic recovery block: " + e.Descriptor) + return + case string: + ctx.Logger().Error("Recovering from (string) panic: " + e) + case runtime.Error: + ctx.Logger().Error("recovered (runtime.Error) panic: " + e.Error()) + case error: + ctx.Logger().Error("recovered (error) panic: " + e.Error()) + default: + ctx.Logger().Error("recovered (default) panic. Could not capture logs in ctx, see stdout") + fmt.Println("Recovering from panic ", recoveryError) + debug.PrintStack() + return + } + ctx.Logger().Error("stack trace: " + errStackTrace) +} diff --git a/utils/cli_helpers.go b/utils/cli_helpers.go new file mode 100644 index 000000000..8dc123204 --- /dev/null +++ b/utils/cli_helpers.go @@ -0,0 +1,68 @@ +package utils + +import ( + "strconv" + "strings" + + "github.com/cometbft/cometbft/crypto/ed25519" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +const ( + base = 10 + bitlen = 64 +) + +func ParseUint64SliceFromString(s, separator string) ([]uint64, error) { + var parsedInts []uint64 + for _, s := range strings.Split(s, separator) { + s = strings.TrimSpace(s) + + parsed, err := strconv.ParseUint(s, base, bitlen) + if err != nil { + return []uint64{}, err + } + parsedInts = append(parsedInts, parsed) + } + return parsedInts, nil +} + +func ParseSdkIntFromString(s, separator string) ([]sdk.Int, error) { + var parsedInts []sdk.Int + for _, weightStr := range strings.Split(s, separator) { + weightStr = strings.TrimSpace(weightStr) + + parsed, err := strconv.ParseUint(weightStr, base, bitlen) + if err != nil { + return parsedInts, err + } + parsedInts = append(parsedInts, sdk.NewIntFromUint64(parsed)) + } + return parsedInts, nil +} + +func ParseSdkDecFromString(s, separator string) ([]sdk.Dec, error) { + var parsedDec []sdk.Dec + for _, weightStr := range strings.Split(s, separator) { + weightStr = strings.TrimSpace(weightStr) + + parsed, err := sdk.NewDecFromStr(weightStr) + if err != nil { + return parsedDec, err + } + + parsedDec = append(parsedDec, parsed) + } + return parsedDec, nil +} + +// CreateRandomAccounts is a function return a list of randomly generated AccAddresses +func CreateRandomAccounts(numAccts int) []sdk.AccAddress { + testAddrs := make([]sdk.AccAddress, numAccts) + for i := 0; i < numAccts; i++ { + pk := ed25519.GenPrivKey().PubKey() + testAddrs[i] = sdk.AccAddress(pk.Address()) + } + + return testAddrs +} diff --git a/utils/dcli/cli_tester.go b/utils/dcli/cli_tester.go new file mode 100644 index 000000000..7c16aac5d --- /dev/null +++ b/utils/dcli/cli_tester.go @@ -0,0 +1,111 @@ +package dcli + +import ( + "strings" + "testing" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" + "github.com/spf13/cobra" + "github.com/spf13/pflag" + "github.com/stretchr/testify/require" +) + +type TxCliTestCase[M sdk.Msg] struct { + Cmd string + ExpectedMsg M + ExpectedErr bool + OnlyCheckValidateBasic bool +} + +type QueryCliTestCase[Q proto.Message] struct { + Cmd string + ExpectedQuery Q + ExpectedErr bool +} + +func RunTxTestCases[M sdk.Msg](t *testing.T, desc *TxCliDesc, testcases map[string]TxCliTestCase[M]) { + for name, tc := range testcases { + t.Run(name, func(t *testing.T) { + RunTxTestCase(t, desc, &tc) + }) + } +} + +func RunQueryTestCases[Q proto.Message](t *testing.T, desc *QueryDescriptor, testcases map[string]QueryCliTestCase[Q]) { + for name, tc := range testcases { + t.Run(name, func(t *testing.T) { + RunQueryTestCase(t, desc, &tc) + }) + } +} + +func RunTxTestCase[M sdk.Msg](t *testing.T, desc *TxCliDesc, tc *TxCliTestCase[M]) { + cmd := BuildTxCli[M](desc) + err := resetCommandFlagValues(cmd) + require.NoError(t, err, "error in resetCommandFlagValues") + args := strings.Split(tc.Cmd, " ") + err = cmd.Flags().Parse(args) + require.NoError(t, err, "error in cmd.Flags().Parse(args)") + clientCtx := newClientContextWithFrom(t, cmd.Flags()) + + msg, err := desc.ParseAndBuildMsg(clientCtx, args, cmd.Flags()) + if tc.ExpectedErr { + require.Error(t, err) + return + } + require.NoError(t, err, "error in desc.ParseAndBuildMsg") + if tc.OnlyCheckValidateBasic { + require.NoError(t, msg.ValidateBasic()) + return + } + + require.Equal(t, tc.ExpectedMsg, msg) +} + +func RunQueryTestCase[Q proto.Message](t *testing.T, desc *QueryDescriptor, tc *QueryCliTestCase[Q]) { + cmd := BuildQueryCli[Q, int](desc, nil) + err := resetCommandFlagValues(cmd) + require.NoError(t, err, "error in resetCommandFlagValues") + args := strings.Split(tc.Cmd, " ") + err = cmd.Flags().Parse(args) + require.NoError(t, err, "error in cmd.Flags().Parse(args)") + + req, err := desc.ParseQuery(args, cmd.Flags()) + if tc.ExpectedErr { + require.Error(t, err) + return + } + require.NoError(t, err, "error in desc.ParseQuery") + require.Equal(t, tc.ExpectedQuery, req) +} + +// This logic is copied from the SDK, it should've just been publicly exposed. +// But instead its buried within a mega-method. +func newClientContextWithFrom(t *testing.T, fs *pflag.FlagSet) client.Context { + clientCtx := client.Context{GenerateOnly: true} + from, _ := fs.GetString(flags.FlagFrom) + fromAddr, fromName, _, err := client.GetFromFields(clientCtx, nil, from) + require.NoError(t, err) + + clientCtx = clientCtx.WithFrom(from).WithFromAddress(fromAddr).WithFromName(fromName) + return clientCtx +} + +// taken from https://github.com/golang/debug/pull/8, +// due to no cobra command for resetting flag value +func resetCommandFlagValues(cmd *cobra.Command) error { + var retErr error = nil + cmd.Flags().VisitAll(func(f *pflag.Flag) { + if f.Changed { + err := f.Value.Set(f.DefValue) + if err != nil { + retErr = err + } + f.Changed = false + } + }) + return retErr +} diff --git a/utils/dcli/flag_advice.go b/utils/dcli/flag_advice.go new file mode 100644 index 000000000..a3fd1ef29 --- /dev/null +++ b/utils/dcli/flag_advice.go @@ -0,0 +1,79 @@ +package dcli + +import ( + "strings" + + "github.com/spf13/cobra" + "github.com/spf13/pflag" +) + +type FlagAdvice struct { + HasPagination bool + + // Map of FieldName -> FlagName + CustomFlagOverrides map[string]string + CustomFieldParsers map[string]CustomFieldParserFn + + // Tx sender value + IsTx bool + TxSenderFieldName string + FromValue string +} + +type FlagDesc struct { + RequiredFlags []*pflag.FlagSet + OptionalFlags []*pflag.FlagSet +} + +type FieldReadLocation = bool + +const ( + UsedArg FieldReadLocation = true + UsedFlag FieldReadLocation = false +) + +// CustomFieldParser function. +type CustomFieldParserFn = func(arg string, flags *pflag.FlagSet) (valueToSet any, usedArg FieldReadLocation, err error) + +func (f FlagAdvice) Sanitize() FlagAdvice { + // map CustomFlagOverrides & CustomFieldParser keys to lower-case + // initialize if uninitialized + newFlagOverrides := make(map[string]string, len(f.CustomFlagOverrides)) + for k, v := range f.CustomFlagOverrides { + newFlagOverrides[strings.ToLower(k)] = v + } + f.CustomFlagOverrides = newFlagOverrides + newFlagParsers := make(map[string]CustomFieldParserFn, len(f.CustomFieldParsers)) + for k, v := range f.CustomFieldParsers { + newFlagParsers[strings.ToLower(k)] = v + } + f.CustomFieldParsers = newFlagParsers + return f +} + +func FlagOnlyParser[v any](f func(fs *pflag.FlagSet) (v, error)) CustomFieldParserFn { + return func(_arg string, fs *pflag.FlagSet) (any, FieldReadLocation, error) { + t, err := f(fs) + return t, UsedFlag, err + } +} + +// AddFlags from desc to cmd. +// Required flags are marked as required. +func AddFlags(cmd *cobra.Command, desc FlagDesc) { + for i := 0; i < len(desc.OptionalFlags); i++ { + cmd.Flags().AddFlagSet(desc.OptionalFlags[i]) + } + for i := 0; i < len(desc.RequiredFlags); i++ { + fs := desc.RequiredFlags[i] + cmd.Flags().AddFlagSet(fs) + + // mark all these flags as required. + fs.VisitAll(func(flag *pflag.Flag) { + err := cmd.MarkFlagRequired(flag.Name) + if err != nil { + panic(err) + } + }) + } +} diff --git a/utils/dcli/index_cmd.go b/utils/dcli/index_cmd.go new file mode 100644 index 000000000..b332189f1 --- /dev/null +++ b/utils/dcli/index_cmd.go @@ -0,0 +1,31 @@ +package dcli + +import ( + "fmt" + + "github.com/spf13/cobra" +) + +// Index command, but short is not set. That is left to caller. +func IndexCmd(moduleName string) *cobra.Command { + return &cobra.Command{ + Use: moduleName, + Short: fmt.Sprintf("Querying commands for the %s module", moduleName), + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: indexRunCmd, + } +} + +func indexRunCmd(cmd *cobra.Command, args []string) error { + usageTemplate := `Usage:{{if .HasAvailableSubCommands}} + {{.CommandPath}} [command]{{end}} + +{{if .HasAvailableSubCommands}}Available Commands:{{range .Commands}}{{if .IsAvailableCommand}} + {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}} + +Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}} +` + cmd.SetUsageTemplate(usageTemplate) + return cmd.Help() +} diff --git a/utils/dcli/parsers.go b/utils/dcli/parsers.go new file mode 100644 index 000000000..0575ded5c --- /dev/null +++ b/utils/dcli/parsers.go @@ -0,0 +1,366 @@ +package dcli + +import ( + "encoding/json" + "fmt" + "reflect" + "strconv" + "strings" + "time" + + "github.com/cosmos/cosmos-sdk/client" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/spf13/pflag" + + utils "github.com/neutron-org/neutron/utils" +) + +// Parses arguments 1-1 from args +// makes an exception, where it allows Pagination to come from flags. +func ParseFieldsFromFlagsAndArgs[reqP any](flagAdvice FlagAdvice, flags *pflag.FlagSet, args []string) (reqP, error) { + req := utils.MakeNew[reqP]() + v := reflect.ValueOf(req).Elem() + t := v.Type() + + argIndexOffset := 0 + // Iterate over the fields in the struct + for i := 0; i < t.NumField(); i++ { + arg := "" + if len(args) > i+argIndexOffset { + arg = args[i+argIndexOffset] + } + usedArg, err := ParseField(v, t, i, arg, flagAdvice, flags) + if err != nil { + return req, err + } + if !usedArg { + argIndexOffset-- + } + } + return req, nil +} + +func ParseNumFields[reqP any]() int { + req := utils.MakeNew[reqP]() + v := reflect.ValueOf(req).Elem() + t := v.Type() + return t.NumField() +} + +func ParseExpectedQueryFnName[reqP any]() string { + req := utils.MakeNew[reqP]() + v := reflect.ValueOf(req).Elem() + s := v.Type().String() + // handle some non-std queries + var prefixTrimmed string + if strings.Contains(s, "Query") { + prefixTrimmed = strings.Split(s, "Query")[1] + } else { + prefixTrimmed = strings.Split(s, ".")[1] + } + suffixTrimmed := strings.TrimSuffix(prefixTrimmed, "Request") + return suffixTrimmed +} + +func ParseHasPagination[reqP any]() bool { + req := utils.MakeNew[reqP]() + t := reflect.ValueOf(req).Elem().Type() + for i := 0; i < t.NumField(); i++ { + fType := t.Field(i) + if fType.Type.String() == paginationType { + return true + } + } + return false +} + +const paginationType = "*query.PageRequest" + +// ParseField parses field #fieldIndex from either an arg or a flag. +// Returns true if it was parsed from an argument. +// Returns error if there was an issue in parsing this field. +func ParseField( + v reflect.Value, + t reflect.Type, + fieldIndex int, + arg string, + flagAdvice FlagAdvice, + flags *pflag.FlagSet, +) (bool, error) { + fVal := v.Field(fieldIndex) + fType := t.Field(fieldIndex) + // fmt.Printf("Field %d: %s %s %s\n", fieldIndex, fType.Name, fType.Type, fType.Type.Kind()) + + lowercaseFieldNameStr := strings.ToLower(fType.Name) + if parseFn, ok := flagAdvice.CustomFieldParsers[lowercaseFieldNameStr]; ok { + v, usedArg, err := parseFn(arg, flags) + if err == nil { + fVal.Set(reflect.ValueOf(v)) + } + return usedArg, err + } + + parsedFromFlag, err := ParseFieldFromFlag(fVal, fType, flagAdvice, flags) + if err != nil { + return false, err + } + if parsedFromFlag { + return false, nil + } + return true, ParseFieldFromArg(fVal, fType, arg) +} + +// ParseFieldFromFlag attempts to parses the value of a field in a struct from a flag. +// The field is identified by the provided `reflect.StructField`. +// The flag advice and `pflag.FlagSet` are used to determine the flag to parse the field from. +// If the field corresponds to a value from a flag, true is returned. +// Otherwise, `false` is returned. +// In the true case, the parsed value is set on the provided `reflect.Value`. +// An error is returned if there is an issue parsing the field from the flag. +func ParseFieldFromFlag( + fVal reflect.Value, + fType reflect.StructField, + flagAdvice FlagAdvice, + flags *pflag.FlagSet, +) (bool, error) { + lowercaseFieldNameStr := strings.ToLower(fType.Name) + if flagName, ok := flagAdvice.CustomFlagOverrides[lowercaseFieldNameStr]; ok { + return true, parseFieldFromDirectlySetFlag(fVal, fType, flagAdvice, flagName, flags) + } + + kind := fType.Type.Kind() + switch kind { + case reflect.String: + if flagAdvice.IsTx { + // matchesFieldName is true if lowercaseFieldNameStr is the same as TxSenderFieldName, + // or if TxSenderFieldName is left blank, then matches fields named "sender" or "owner" + matchesFieldName := (flagAdvice.TxSenderFieldName == lowercaseFieldNameStr) || + (flagAdvice.TxSenderFieldName == "" && (lowercaseFieldNameStr == "sender" || lowercaseFieldNameStr == "owner")) + if matchesFieldName { + fVal.SetString(flagAdvice.FromValue) + return true, nil + } + } + case reflect.Ptr: + if flagAdvice.HasPagination { + typeStr := fType.Type.String() + if typeStr == paginationType { + pageReq, err := client.ReadPageRequest(flags) + if err != nil { + return true, err + } + fVal.Set(reflect.ValueOf(pageReq)) + return true, nil + } + } + } + return false, nil +} + +func parseFieldFromDirectlySetFlag( + fVal reflect.Value, + fType reflect.StructField, + _ FlagAdvice, + flagName string, + flags *pflag.FlagSet, +) error { + // get string. If its a string great, run through arg parser. Otherwise try setting directly + s, err := flags.GetString(flagName) + if err != nil { + flag := flags.Lookup(flagName) + if flag == nil { + return fmt.Errorf("programmer set the flag name wrong. Flag %s does not exist", flagName) + } + t := flag.Value.Type() + if t == "uint64" { + u, err := flags.GetUint64(flagName) + if err != nil { + return err + } + fVal.SetUint(u) + return nil + } + } + return ParseFieldFromArg(fVal, fType, s) +} + +func ParseFieldFromArg(fVal reflect.Value, fType reflect.StructField, arg string) error { + // We cant pass in a negative number due to the way pflags works... + // This is an (extraordinarily ridiculous) workaround that checks if a negative int is encapsulated in square brackets, + // and if so, trims the square brackets + if strings.HasPrefix(arg, "[") && strings.HasSuffix(arg, "]") && arg[1] == '-' { + arg = strings.TrimPrefix(arg, "[") + arg = strings.TrimSuffix(arg, "]") + } + + switch fType.Type.Kind() { + // SetUint allows anyof type u8, u16, u32, u64, and uint + case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: + u, err := ParseUint(arg, fType.Name) + if err != nil { + return err + } + fVal.SetUint(u) + return nil + // SetInt allows anyof type i8,i16,i32,i64 and int + case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: + typeStr := fType.Type.String() + var i int64 + var err error + if typeStr == "time.Duration" { + dur, err2 := time.ParseDuration(arg) + i, err = int64(dur), err2 + } else { + i, err = ParseInt(arg, fType.Name) + } + if err != nil { + return err + } + fVal.SetInt(i) + return nil + case reflect.Float32, reflect.Float64: + typeStr := fType.Type.String() + f, err := ParseFloat(arg, typeStr) + if err != nil { + return err + } + fVal.SetFloat(f) + return nil + case reflect.String: + s, err := ParseDenom(arg, fType.Name) + if err != nil { + return err + } + fVal.SetString(s) + return nil + case reflect.Ptr: + case reflect.Slice: + typeStr := fType.Type.String() + if typeStr == "types.Coins" { + coins, err := ParseCoins(arg, fType.Name) + if err != nil { + return err + } + fVal.Set(reflect.ValueOf(coins)) + return nil + } + case reflect.Struct: + typeStr := fType.Type.String() + var v any + var err error + if typeStr == "types.Coin" { + v, err = ParseCoin(arg, fType.Name) + } else if typeStr == "types.Int" { + v, err = ParseSdkInt(arg, fType.Name) + } else if typeStr == "time.Time" { + v, err = ParseUnixTime(arg, fType.Name) + } else if typeStr == "math.LegacyDec" { + v, err = ParseSdkDec(arg, fType.Name) + } else { + return fmt.Errorf("struct field type not recognized. Got type %v", fType) + } + + if err != nil { + return err + } + fVal.Set(reflect.ValueOf(v)) + return nil + } + return fmt.Errorf("field type not recognized. Got type %v", fType) +} + +func ParseUint(arg, fieldName string) (uint64, error) { + v, err := strconv.ParseUint(arg, 10, 64) + if err != nil { + return 0, fmt.Errorf("could not parse %s as uint for field %s: %w", arg, fieldName, err) + } + return v, nil +} + +func ParseFloat(arg, fieldName string) (float64, error) { + v, err := strconv.ParseFloat(arg, 64) + if err != nil { + return 0, fmt.Errorf("could not parse %s as float for field %s: %w", arg, fieldName, err) + } + return v, nil +} + +func ParseInt(arg, fieldName string) (int64, error) { + v, err := strconv.ParseInt(arg, 10, 64) + if err != nil { + return 0, fmt.Errorf("could not parse %s as int for field %s: %w", arg, fieldName, err) + } + return v, nil +} + +func ParseIntMaybeNegative(arg, fieldName string) (int64, error) { + if strings.HasPrefix(arg, "[") && strings.HasSuffix(arg, "]") { + arg = strings.TrimPrefix(arg, "[") + arg = strings.TrimSuffix(arg, "]") + } + + return ParseInt(arg, fieldName) +} + +func ParseUnixTime(arg, fieldName string) (time.Time, error) { + timeUnix, err := strconv.ParseInt(arg, 10, 64) + if err != nil { + parsedTime, err := time.Parse(sdk.SortableTimeFormat, arg) + if err != nil { + return time.Time{}, fmt.Errorf("could not parse %s as time for field %s: %w", arg, fieldName, err) + } + + return parsedTime, nil + } + startTime := time.Unix(timeUnix, 0) + return startTime, nil +} + +func ParseDenom(arg, fieldName string) (string, error) { + return strings.TrimSpace(arg), nil +} + +// TODO: Make this able to read from some local alias file for denoms. +func ParseCoin(arg, fieldName string) (sdk.Coin, error) { + coin, err := sdk.ParseCoinNormalized(arg) + if err != nil { + return sdk.Coin{}, fmt.Errorf("could not parse %s as sdk.Coin for field %s: %w", arg, fieldName, err) + } + return coin, nil +} + +// TODO: Make this able to read from some local alias file for denoms. +func ParseCoins(arg, fieldName string) (sdk.Coins, error) { + coins, err := sdk.ParseCoinsNormalized(arg) + if err != nil { + return sdk.Coins{}, fmt.Errorf("could not parse %s as sdk.Coins for field %s: %w", arg, fieldName, err) + } + return coins, nil +} + +// TODO: This really shouldn't be getting used in the CLI, its misdesign on the CLI ux +func ParseSdkInt(arg, fieldName string) (sdk.Int, error) { + i, ok := sdk.NewIntFromString(arg) + if !ok { + return sdk.Int{}, fmt.Errorf("could not parse %s as sdk.Int for field %s", arg, fieldName) + } + return i, nil +} + +func ParseSdkDec(arg, fieldName string) (sdk.Dec, error) { + i, err := sdk.NewDecFromStr(arg) + if err != nil { + return sdk.Dec{}, fmt.Errorf("could not parse %s as sdk.Dec for field %s: %w", arg, fieldName, err) + } + return i, nil +} + +func ParseUintArray(arg string, _ *pflag.FlagSet) (any, FieldReadLocation, error) { + var arr []uint64 + err := json.Unmarshal([]byte(arg), &arr) + if err != nil { + return nil, UsedArg, err + } + + return arr, UsedArg, err +} diff --git a/utils/dcli/parsers_test.go b/utils/dcli/parsers_test.go new file mode 100644 index 000000000..5748dc6d6 --- /dev/null +++ b/utils/dcli/parsers_test.go @@ -0,0 +1,167 @@ +package dcli_test + +import ( + "reflect" + "testing" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + . "github.com/neutron-org/neutron/utils/dcli" + "github.com/stretchr/testify/require" +) + +type testingStruct struct { + Int int64 + UInt uint64 + String string + Float float64 + Duration time.Duration + Pointer *testingStruct + Slice sdk.Coins + Struct interface{} + Dec sdk.Dec +} + +func TestParseFieldFromArg(t *testing.T) { + tests := map[string]struct { + testingStruct + arg string + fieldIndex int + + expectedStruct testingStruct + expectingErr bool + }{ + "Int value changes from -20 to 10": { + testingStruct: testingStruct{Int: -20}, + arg: "10", + fieldIndex: 0, + expectedStruct: testingStruct{Int: 10}, + }, + "Attempt to change Int value 20 to string value": { // does not return error, simply does not change the struct + testingStruct: testingStruct{Int: 20}, + arg: "hello", + fieldIndex: 0, + expectedStruct: testingStruct{Int: 20}, + }, + "UInt value changes from 20 to 10": { + testingStruct: testingStruct{UInt: 20}, + arg: "10", + fieldIndex: 1, + expectedStruct: testingStruct{UInt: 10}, + }, + "String value change": { + testingStruct: testingStruct{String: "hello"}, + arg: "world", + fieldIndex: 2, + expectedStruct: testingStruct{String: "world"}, + }, + "Changing unset value (simply sets the value)": { + testingStruct: testingStruct{Int: 20}, + arg: "hello", + fieldIndex: 2, + expectedStruct: testingStruct{Int: 20, String: "hello"}, + }, + "Float value change": { + testingStruct: testingStruct{Float: 20.0}, + arg: "30.0", + fieldIndex: 3, + expectedStruct: testingStruct{Float: 30.0}, + }, + "Duration value changes from .Hour to .Second": { + testingStruct: testingStruct{Duration: time.Hour}, + arg: "1s", + fieldIndex: 4, + expectedStruct: testingStruct{Duration: time.Second}, + }, + "Attempt to change pointer": { // for reflect.Ptr kind ParseFieldFromArg does nothing, hence no changes take place + testingStruct: testingStruct{Pointer: &testingStruct{}}, + arg: "*whatever", + fieldIndex: 5, + expectedStruct: testingStruct{Pointer: &testingStruct{}}, + }, + "Slice change": { + testingStruct: testingStruct{Slice: sdk.Coins{ + sdk.NewCoin("foo", sdk.NewInt(100)), + sdk.NewCoin("bar", sdk.NewInt(100)), + }}, + arg: "10foo,10bar", // Should be of a format suitable for ParseCoinsNormalized + fieldIndex: 6, + expectedStruct: testingStruct{Slice: sdk.Coins{ // swapped places due to lexicographic order + sdk.NewCoin("bar", sdk.NewInt(10)), + sdk.NewCoin("foo", sdk.NewInt(10)), + }}, + }, + "Struct (sdk.Coin) change": { + testingStruct: testingStruct{Struct: sdk.NewCoin("bar", sdk.NewInt(10))}, // only supports sdk.Int, sdk.Coin or time.Time, other structs are not recognized + arg: "100bar", + fieldIndex: 7, + expectedStruct: testingStruct{Struct: sdk.NewCoin("bar", sdk.NewInt(10))}, + }, + "Unrecognizable struct": { + testingStruct: testingStruct{Struct: testingStruct{}}, // only supports sdk.Int, sdk.Coin or time.Time, other structs are not recognized + arg: "whatever", + fieldIndex: 7, + expectingErr: true, + }, + "Multiple fields in struct are set": { + testingStruct: testingStruct{Int: 20, UInt: 10, String: "hello", Pointer: &testingStruct{}}, + arg: "world", + fieldIndex: 2, + expectedStruct: testingStruct{Int: 20, UInt: 10, String: "world", Pointer: &testingStruct{}}, + }, + "All fields in struct set": { + testingStruct: testingStruct{ + Int: 20, + UInt: 10, + String: "hello", + Float: 30.0, + Duration: time.Second, + Pointer: &testingStruct{}, + Slice: sdk.Coins{ + sdk.NewCoin("foo", sdk.NewInt(100)), + sdk.NewCoin("bar", sdk.NewInt(100)), + }, + Struct: sdk.NewCoin("bar", sdk.NewInt(10)), + }, + arg: "1foo,15bar", + fieldIndex: 6, + expectedStruct: testingStruct{ + Int: 20, + UInt: 10, + String: "hello", + Float: 30.0, + Duration: time.Second, + Pointer: &testingStruct{}, + Slice: sdk.Coins{ + sdk.NewCoin("bar", sdk.NewInt(15)), + sdk.NewCoin("foo", sdk.NewInt(1)), + }, + Struct: sdk.NewCoin("bar", sdk.NewInt(10)), + }, + }, + "Dec struct": { + testingStruct: testingStruct{Dec: sdk.MustNewDecFromStr("100")}, + arg: "10", + fieldIndex: 8, + expectedStruct: testingStruct{Dec: sdk.MustNewDecFromStr("10")}, + }, + } + + for name, tc := range tests { + t.Run(name, func(t *testing.T) { + val := reflect.ValueOf(&tc.testingStruct).Elem() + typ := reflect.TypeOf(&tc.testingStruct).Elem() + + fVal := val.Field(tc.fieldIndex) + fType := typ.Field(tc.fieldIndex) + + err := ParseFieldFromArg(fVal, fType, tc.arg) + + if !tc.expectingErr { + require.Equal(t, tc.expectedStruct, tc.testingStruct) + } else { + require.Error(t, err) + } + }) + } +} diff --git a/utils/dcli/query_cmd_wrap.go b/utils/dcli/query_cmd_wrap.go new file mode 100644 index 000000000..2dbfb8b9a --- /dev/null +++ b/utils/dcli/query_cmd_wrap.go @@ -0,0 +1,181 @@ +package dcli + +import ( + "context" + "fmt" + "reflect" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + grpc1 "github.com/cosmos/gogoproto/grpc" + "github.com/cosmos/gogoproto/proto" + "github.com/spf13/cobra" + "github.com/spf13/pflag" +) + +// global variable set on index command. +// helps populate Longs, when not set in QueryDescriptor. +var lastQueryModuleName string + +type QueryDescriptor struct { + Use string + Short string + Long string + + HasPagination bool + + QueryFnName string + + Flags FlagDesc + // Map of FieldName -> FlagName + CustomFlagOverrides map[string]string + // Map of FieldName -> CustomParseFn + CustomFieldParsers map[string]CustomFieldParserFn + + ParseQuery func(args []string, flags *pflag.FlagSet) (proto.Message, error) + + ModuleName string + numArgs int +} + +func QueryIndexCmd(moduleName string) *cobra.Command { + cmd := IndexCmd(moduleName) + cmd.Short = fmt.Sprintf("Querying commands for the %s module", moduleName) + lastQueryModuleName = moduleName + return cmd +} + +func AddQueryCmd[Q proto.Message, querier any](cmd *cobra.Command, newQueryClientFn func(grpc1.ClientConn) querier, f func() (*QueryDescriptor, Q)) { + desc, _ := f() + subCmd := BuildQueryCli[Q](desc, newQueryClientFn) + cmd.AddCommand(subCmd) +} + +func (desc *QueryDescriptor) FormatLong(moduleName string) { + desc.Long = FormatLongDesc(desc.Long, NewLongMetadata(moduleName).WithShort(desc.Short)) +} + +func prepareDescriptor[reqP proto.Message](desc *QueryDescriptor) { + if !desc.HasPagination { + desc.HasPagination = ParseHasPagination[reqP]() + } + if desc.QueryFnName == "" { + desc.QueryFnName = ParseExpectedQueryFnName[reqP]() + } + if strings.Contains(desc.Long, "{") { + if desc.ModuleName == "" { + desc.ModuleName = lastQueryModuleName + } + desc.FormatLong(desc.ModuleName) + } + + desc.numArgs = ParseNumFields[reqP]() - len(desc.CustomFlagOverrides) + if desc.HasPagination { + desc.numArgs = desc.numArgs - 1 + } +} + +func BuildQueryCli[reqP proto.Message, querier any](desc *QueryDescriptor, newQueryClientFn func(grpc1.ClientConn) querier) *cobra.Command { + prepareDescriptor[reqP](desc) + if desc.ParseQuery == nil { + desc.ParseQuery = func(args []string, fs *pflag.FlagSet) (proto.Message, error) { + flagAdvice := FlagAdvice{ + HasPagination: desc.HasPagination, + CustomFlagOverrides: desc.CustomFlagOverrides, + CustomFieldParsers: desc.CustomFieldParsers, + }.Sanitize() + return ParseFieldsFromFlagsAndArgs[reqP](flagAdvice, fs, args) + } + } + + cmd := &cobra.Command{ + Use: desc.Use, + Short: desc.Short, + Long: desc.Long, + Args: cobra.ExactArgs(desc.numArgs), + RunE: queryLogic(desc, newQueryClientFn), + } + flags.AddQueryFlagsToCmd(cmd) + AddFlags(cmd, desc.Flags) + if desc.HasPagination { + cmdName := strings.Split(desc.Use, " ")[0] + flags.AddPaginationFlagsToCmd(cmd, cmdName) + } + + return cmd +} + +// SimpleQueryCmd builds a query, for the common, simple case. +// It detects that the querier function name is the same as the ProtoMessage name, +// with just the "Query" and "Request" args chopped off. +// It expects all proto fields to appear as arguments, in order. +func SimpleQueryCmd[reqP proto.Message, querier any](use, short, long string, + moduleName string, newQueryClientFn func(grpc1.ClientConn) querier, +) *cobra.Command { + desc := QueryDescriptor{ + Use: use, + Short: short, + Long: FormatLongDesc(long, NewLongMetadata(moduleName).WithShort(short)), + } + return BuildQueryCli[reqP](&desc, newQueryClientFn) +} + +func GetParams[reqP proto.Message, querier any](moduleName string, + newQueryClientFn func(grpc1.ClientConn) querier, +) *cobra.Command { + return BuildQueryCli[reqP](&QueryDescriptor{ + Use: "params [flags]", + Short: fmt.Sprintf("Get the params for the x/%s module", moduleName), + QueryFnName: "Params", + }, newQueryClientFn) +} + +func callQueryClientFn(ctx context.Context, fnName string, req proto.Message, q any) (res proto.Message, err error) { + qVal := reflect.ValueOf(q) + method := qVal.MethodByName(fnName) + if (method == reflect.Value{}) { + return nil, fmt.Errorf("Method %s does not exist on the querier."+ + " You likely need to override QueryFnName in your Query descriptor", fnName) + } + args := []reflect.Value{ + reflect.ValueOf(ctx), + reflect.ValueOf(req), + } + results := method.Call(args) + if len(results) != 2 { + panic("We got something wrong") + } + if !results[1].IsNil() { + //nolint:forcetypeassert + err = results[1].Interface().(error) + return res, err + } + //nolint:forcetypeassert + res = results[0].Interface().(proto.Message) + return res, nil +} + +func queryLogic[querier any](desc *QueryDescriptor, + newQueryClientFn func(grpc1.ClientConn) querier, +) func(cmd *cobra.Command, args []string) error { + return func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := newQueryClientFn(clientCtx) + + req, err := desc.ParseQuery(args, cmd.Flags()) + if err != nil { + return err + } + + res, err := callQueryClientFn(cmd.Context(), desc.QueryFnName, req, queryClient) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + } +} diff --git a/utils/dcli/string_formatter.go b/utils/dcli/string_formatter.go new file mode 100644 index 000000000..279ef4666 --- /dev/null +++ b/utils/dcli/string_formatter.go @@ -0,0 +1,49 @@ +package dcli + +import ( + "fmt" + "strings" + "text/template" + + "github.com/cosmos/cosmos-sdk/version" +) + +type LongMetadata struct { + BinaryName string + CommandPrefix string + Short string + + // Newline Example: + ExampleHeader string +} + +func NewLongMetadata(moduleName string) *LongMetadata { + commandPrefix := fmt.Sprintf("$ %s q %s", version.AppName, moduleName) + return &LongMetadata{ + BinaryName: version.AppName, + CommandPrefix: commandPrefix, + } +} + +func (m *LongMetadata) WithShort(short string) *LongMetadata { + m.Short = short + return m +} + +func FormatLongDesc(longString string, meta *LongMetadata) string { + template, err := template.New("long_description").Parse(longString) + if err != nil { + panic("incorrectly configured long message") + } + bld := strings.Builder{} + meta.ExampleHeader = "\n\nExample:" + err = template.Execute(&bld, meta) + if err != nil { + panic("incorrectly configured long message") + } + return strings.TrimSpace(bld.String()) +} + +func FormatLongDescDirect(longString, moduleName string) string { + return FormatLongDesc(longString, NewLongMetadata(moduleName)) +} diff --git a/utils/dcli/tx_cmd_wrap.go b/utils/dcli/tx_cmd_wrap.go new file mode 100644 index 000000000..f1a68cf1b --- /dev/null +++ b/utils/dcli/tx_cmd_wrap.go @@ -0,0 +1,103 @@ +package dcli + +import ( + "fmt" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/spf13/cobra" + "github.com/spf13/pflag" +) + +func TxIndexCmd(moduleName string) *cobra.Command { + cmd := IndexCmd(moduleName) + cmd.Short = fmt.Sprintf("%s transactions subcommands", moduleName) + return cmd +} + +type TxCliDesc struct { + Use string + Short string + Long string + Example string + + NumArgs int + // Contract: len(args) = NumArgs + ParseAndBuildMsg func(clientCtx client.Context, args []string, flags *pflag.FlagSet) (sdk.Msg, error) + TxSignerFieldName string + + Flags FlagDesc + // Map of FieldName -> FlagName + CustomFlagOverrides map[string]string + // Map of FieldName -> CustomParseFn + CustomFieldParsers map[string]CustomFieldParserFn +} + +func AddTxCmd[M sdk.Msg](cmd *cobra.Command, f func() (*TxCliDesc, M)) { + desc, _ := f() + subCmd := BuildTxCli[M](desc) + cmd.AddCommand(subCmd) +} + +func BuildTxCli[M sdk.Msg](desc *TxCliDesc) *cobra.Command { + desc.TxSignerFieldName = strings.ToLower(desc.TxSignerFieldName) + if desc.NumArgs == 0 { + // NumArgs = NumFields - 1, since 1 field is from the msg + desc.NumArgs = ParseNumFields[M]() - 1 - len(desc.CustomFlagOverrides) - len(desc.CustomFieldParsers) + } + if desc.ParseAndBuildMsg == nil { + desc.ParseAndBuildMsg = func(clientCtx client.Context, args []string, flags *pflag.FlagSet) (sdk.Msg, error) { + flagAdvice := FlagAdvice{ + IsTx: true, + TxSenderFieldName: desc.TxSignerFieldName, + FromValue: clientCtx.GetFromAddress().String(), + CustomFlagOverrides: desc.CustomFlagOverrides, + CustomFieldParsers: desc.CustomFieldParsers, + }.Sanitize() + return ParseFieldsFromFlagsAndArgs[M](flagAdvice, flags, args) + } + } + return desc.BuildCommandCustomFn() +} + +// Creates a new cobra command given the description. +// Its up to then caller to add CLI flags, aside from `flags.AddTxFlagsToCmd(cmd)` +func (desc TxCliDesc) BuildCommandCustomFn() *cobra.Command { + cmd := &cobra.Command{ + Use: desc.Use, + Short: desc.Short, + Args: cobra.ExactArgs(desc.NumArgs), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + txf, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) + if err != nil { + return err + } + txf = txf.WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) + + msg, err := desc.ParseAndBuildMsg(clientCtx, args, cmd.Flags()) + if err != nil { + return err + } + + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) + }, + } + if desc.Example != "" { + cmd.Example = desc.Example + } + if desc.Long != "" { + cmd.Long = desc.Long + } + + flags.AddTxFlagsToCmd(cmd) + AddFlags(cmd, desc.Flags) + return cmd +} diff --git a/utils/generic_helper.go b/utils/generic_helper.go new file mode 100644 index 000000000..e05ead8ae --- /dev/null +++ b/utils/generic_helper.go @@ -0,0 +1,17 @@ +package utils + +import "reflect" + +// MakeNew makes a new instance of generic T. +// if T is a pointer, makes a new instance of the underlying struct via reflection, +// and then a pointer to it. +func MakeNew[T any]() T { + var v T + if typ := reflect.TypeOf(v); typ.Kind() == reflect.Ptr { + elem := typ.Elem() + //nolint:forcetypeassert + return reflect.New(elem).Interface().(T) // must use reflect + } else { + return *new(T) // v is not ptr, alloc with new + } +} diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go new file mode 100644 index 000000000..f0cb85370 --- /dev/null +++ b/utils/math/prec_dec.go @@ -0,0 +1,970 @@ +package math_utils + +import ( + "encoding/json" + "errors" + "fmt" + "math/big" + "strconv" + "strings" + "testing" + + "cosmossdk.io/math" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// NOTE: This file is nearly direct copy from cosmossdk.io/math/dec.go @v1.01 +// The Precesion has been changed from 18 to 26 + +// NOTE: never use new(Dec) or else we will panic unmarshalling into the +// nil embedded big.Int +type PrecDec struct { + i *big.Int +} + +const ( + // number of decimal places + Precision = 26 + + // bits required to represent the above precision + // Ceiling[Log2[10^Precision - 1]] + PrecDecimalPrecisionBits = 87 + + // decimalTruncateBits is the minimum number of bits removed + // by a truncate operation. It is equal to + // Floor[Log2[10^Precision - 1]]. + decimalTruncateBits = PrecDecimalPrecisionBits - 1 + + MaxBitLen = 256 + + maxPrecDecBitLen = MaxBitLen + decimalTruncateBits + + // max number of iterations in ApproxRoot function + maxApproxRootIterations = 300 +) + +var ( + precisionReuse = new(big.Int).Exp(big.NewInt(10), big.NewInt(Precision), nil) + fivePrecision = new(big.Int).Quo(precisionReuse, big.NewInt(2)) + precisionMultipliers []*big.Int + zeroInt = big.NewInt(0) + oneInt = big.NewInt(1) + tenInt = big.NewInt(10) +) + +// PrecDecimal errors +var ( + ErrEmptyPrecDecimalStr = errors.New("decimal string cannot be empty") + ErrInvalidPrecDecimalLength = errors.New("invalid decimal length") + ErrInvalidPrecDecimalStr = errors.New("invalid decimal string") +) + +// Set precision multipliers +func init() { + precisionMultipliers = make([]*big.Int, Precision+1) + for i := 0; i <= Precision; i++ { + precisionMultipliers[i] = calcPrecisionMultiplier(int64(i)) + } +} + +func precisionInt() *big.Int { + return new(big.Int).Set(precisionReuse) +} + +func ZeroPrecDec() PrecDec { return PrecDec{new(big.Int).Set(zeroInt)} } +func OnePrecDec() PrecDec { return PrecDec{precisionInt()} } +func SmallestPrecDec() PrecDec { return PrecDec{new(big.Int).Set(oneInt)} } + +// calculate the precision multiplier +func calcPrecisionMultiplier(prec int64) *big.Int { + if prec < 0 { + panic(fmt.Sprintf("negative precision %v", prec)) + } + + if prec > Precision { + panic(fmt.Sprintf("too much precision, maximum %v, provided %v", Precision, prec)) + } + zerosToAdd := Precision - prec + multiplier := new(big.Int).Exp(tenInt, big.NewInt(zerosToAdd), nil) + return multiplier +} + +// get the precision multiplier, do not mutate result +func precisionMultiplier(prec int64) *big.Int { + if prec < 0 { + panic(fmt.Sprintf("negative precision %v", prec)) + } + + if prec > Precision { + panic(fmt.Sprintf("too much precision, maximum %v, provided %v", Precision, prec)) + } + return precisionMultipliers[prec] +} + +// create a new PrecDec from integer assuming whole number +func NewPrecDec(i int64) PrecDec { + return NewPrecDecWithPrec(i, 0) +} + +// create a new PrecDec from integer with decimal place at prec +// CONTRACT: prec <= Precision +func NewPrecDecWithPrec(i, prec int64) PrecDec { + return PrecDec{ + new(big.Int).Mul(big.NewInt(i), precisionMultiplier(prec)), + } +} + +// create a new PrecDec from big integer assuming whole numbers +// CONTRACT: prec <= Precision +func NewPrecDecFromBigInt(i *big.Int) PrecDec { + return NewPrecDecFromBigIntWithPrec(i, 0) +} + +// create a new PrecDec from big integer assuming whole numbers +// CONTRACT: prec <= Precision +func NewPrecDecFromBigIntWithPrec(i *big.Int, prec int64) PrecDec { + return PrecDec{ + new(big.Int).Mul(i, precisionMultiplier(prec)), + } +} + +// create a new PrecDec from big integer assuming whole numbers +// CONTRACT: prec <= Precision +func NewPrecDecFromInt(i sdk.Int) PrecDec { + return NewPrecDecFromIntWithPrec(i, 0) +} + +// create a new PrecDec from big integer with decimal place at prec +// CONTRACT: prec <= Precision +func NewPrecDecFromIntWithPrec(i sdk.Int, prec int64) PrecDec { + return PrecDec{ + new(big.Int).Mul(i.BigInt(), precisionMultiplier(prec)), + } +} + +// create a decimal from an input decimal string. +// valid must come in the form: +// +// (-) whole integers (.) decimal integers +// +// examples of acceptable input include: +// +// -123.456 +// 456.7890 +// 345 +// -456789 +// +// NOTE - An error will return if more decimal places +// are provided in the string than the constant Precision. +// +// CONTRACT - This function does not mutate the input str. +func NewPrecDecFromStr(str string) (PrecDec, error) { + // first extract any negative symbol + neg := false + if len(str) > 0 && str[0] == '-' { + neg = true + str = str[1:] + } + + if len(str) == 0 { + return PrecDec{}, ErrEmptyPrecDecimalStr + } + + strs := strings.Split(str, ".") + lenPrecDecs := 0 + combinedStr := strs[0] + + if len(strs) == 2 { // has a decimal place + lenPrecDecs = len(strs[1]) + if lenPrecDecs == 0 || len(combinedStr) == 0 { + return PrecDec{}, ErrInvalidPrecDecimalLength + } + combinedStr += strs[1] + } else if len(strs) > 2 { + return PrecDec{}, ErrInvalidPrecDecimalStr + } + + if lenPrecDecs > Precision { + return PrecDec{}, fmt.Errorf("value '%s' exceeds max precision by %d decimal places: max precision %d", str, Precision-lenPrecDecs, Precision) + } + + // add some extra zero's to correct to the Precision factor + zerosToAdd := Precision - lenPrecDecs + zeros := strings.Repeat("0", zerosToAdd) + combinedStr += zeros + + combined, ok := new(big.Int).SetString(combinedStr, 10) // base 10 + if !ok { + return PrecDec{}, fmt.Errorf("failed to set decimal string with base 10: %s", combinedStr) + } + if combined.BitLen() > maxPrecDecBitLen { + return PrecDec{}, fmt.Errorf("decimal '%s' out of range; bitLen: got %d, max %d", str, combined.BitLen(), maxPrecDecBitLen) + } + if neg { + combined = new(big.Int).Neg(combined) + } + + return PrecDec{combined}, nil +} + +// PrecDecimal from string, panic on error +func MustNewPrecDecFromStr(s string) PrecDec { + dec, err := NewPrecDecFromStr(s) + if err != nil { + panic(err) + } + return dec +} + +func (d PrecDec) IsNil() bool { return d.i == nil } // is decimal nil +func (d PrecDec) IsZero() bool { return (d.i).Sign() == 0 } // is equal to zero +func (d PrecDec) IsNegative() bool { return (d.i).Sign() == -1 } // is negative +func (d PrecDec) IsPositive() bool { return (d.i).Sign() == 1 } // is positive +func (d PrecDec) Equal(d2 PrecDec) bool { return (d.i).Cmp(d2.i) == 0 } // equal decimals +func (d PrecDec) GT(d2 PrecDec) bool { return (d.i).Cmp(d2.i) > 0 } // greater than +func (d PrecDec) GTE(d2 PrecDec) bool { return (d.i).Cmp(d2.i) >= 0 } // greater than or equal +func (d PrecDec) LT(d2 PrecDec) bool { return (d.i).Cmp(d2.i) < 0 } // less than +func (d PrecDec) LTE(d2 PrecDec) bool { return (d.i).Cmp(d2.i) <= 0 } // less than or equal +func (d PrecDec) Neg() PrecDec { return PrecDec{new(big.Int).Neg(d.i)} } // reverse the decimal sign +func (d PrecDec) NegMut() PrecDec { d.i.Neg(d.i); return d } // reverse the decimal sign, mutable +func (d PrecDec) Abs() PrecDec { return PrecDec{new(big.Int).Abs(d.i)} } // absolute value +func (d PrecDec) AbsMut() PrecDec { d.i.Abs(d.i); return d } // absolute value, mutable +func (d PrecDec) Set(d2 PrecDec) PrecDec { d.i.Set(d2.i); return d } // set to existing dec value +func (d PrecDec) Clone() PrecDec { return PrecDec{new(big.Int).Set(d.i)} } // clone new dec + +// BigInt returns a copy of the underlying big.Int. +func (d PrecDec) BigInt() *big.Int { + if d.IsNil() { + return nil + } + + cp := new(big.Int) + return cp.Set(d.i) +} + +func (d PrecDec) ImmutOp(op func(PrecDec, PrecDec) PrecDec, d2 PrecDec) PrecDec { + return op(d.Clone(), d2) +} + +func (d PrecDec) ImmutOpInt(op func(PrecDec, sdk.Int) PrecDec, d2 sdk.Int) PrecDec { + return op(d.Clone(), d2) +} + +func (d PrecDec) ImmutOpInt64(op func(PrecDec, int64) PrecDec, d2 int64) PrecDec { + // TODO: use already allocated operand bigint to avoid + // newint each time, add mutex for race condition + // Issue: https://github.com/cosmos/cosmos-sdk/issues/11166 + return op(d.Clone(), d2) +} + +func (d PrecDec) SetInt64(i int64) PrecDec { + d.i.SetInt64(i) + d.i.Mul(d.i, precisionReuse) + return d +} + +// addition +func (d PrecDec) Add(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.AddMut, d2) +} + +// mutable addition +func (d PrecDec) AddMut(d2 PrecDec) PrecDec { + d.i.Add(d.i, d2.i) + + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// subtraction +func (d PrecDec) Sub(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.SubMut, d2) +} + +// mutable subtraction +func (d PrecDec) SubMut(d2 PrecDec) PrecDec { + d.i.Sub(d.i, d2.i) + + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// multiplication +func (d PrecDec) Mul(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.MulMut, d2) +} + +// mutable multiplication +func (d PrecDec) MulMut(d2 PrecDec) PrecDec { + d.i.Mul(d.i, d2.i) + chopped := chopPrecisionAndRound(d.i) + + if chopped.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + *d.i = *chopped + return d +} + +// multiplication truncate +func (d PrecDec) MulTruncate(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.MulTruncateMut, d2) +} + +// mutable multiplication truncage +func (d PrecDec) MulTruncateMut(d2 PrecDec) PrecDec { + d.i.Mul(d.i, d2.i) + chopPrecisionAndTruncate(d.i) + + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// multiplication +func (d PrecDec) MulInt(i sdk.Int) PrecDec { + return d.ImmutOpInt(PrecDec.MulIntMut, i) +} + +func (d PrecDec) MulIntMut(i sdk.Int) PrecDec { + d.i.Mul(d.i, i.BigInt()) + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// MulInt64 - multiplication with int64 +func (d PrecDec) MulInt64(i int64) PrecDec { + return d.ImmutOpInt64(PrecDec.MulInt64Mut, i) +} + +func (d PrecDec) MulInt64Mut(i int64) PrecDec { + d.i.Mul(d.i, big.NewInt(i)) + + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// quotient +func (d PrecDec) Quo(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.QuoMut, d2) +} + +var squaredPrecisionReuse = new(big.Int).Mul(precisionReuse, precisionReuse) + +// mutable quotient +func (d PrecDec) QuoMut(d2 PrecDec) PrecDec { + // multiply by precision twice + d.i.Mul(d.i, squaredPrecisionReuse) + d.i.Quo(d.i, d2.i) + + chopPrecisionAndRound(d.i) + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// quotient truncate +func (d PrecDec) QuoTruncate(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.QuoTruncateMut, d2) +} + +// mutable quotient truncate +func (d PrecDec) QuoTruncateMut(d2 PrecDec) PrecDec { + // multiply precision twice + d.i.Mul(d.i, squaredPrecisionReuse) + d.i.Quo(d.i, d2.i) + + chopPrecisionAndTruncate(d.i) + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// quotient, round up +func (d PrecDec) QuoRoundUp(d2 PrecDec) PrecDec { + return d.ImmutOp(PrecDec.QuoRoundupMut, d2) +} + +// mutable quotient, round up +func (d PrecDec) QuoRoundupMut(d2 PrecDec) PrecDec { + // multiply precision twice + d.i.Mul(d.i, squaredPrecisionReuse) + d.i.Quo(d.i, d2.i) + + chopPrecisionAndRoundUp(d.i) + if d.i.BitLen() > maxPrecDecBitLen { + panic("Int overflow") + } + return d +} + +// quotient +func (d PrecDec) QuoInt(i sdk.Int) PrecDec { + return d.ImmutOpInt(PrecDec.QuoIntMut, i) +} + +func (d PrecDec) QuoIntMut(i sdk.Int) PrecDec { + d.i.Quo(d.i, i.BigInt()) + return d +} + +// QuoInt64 - quotient with int64 +func (d PrecDec) QuoInt64(i int64) PrecDec { + return d.ImmutOpInt64(PrecDec.QuoInt64Mut, i) +} + +func (d PrecDec) QuoInt64Mut(i int64) PrecDec { + d.i.Quo(d.i, big.NewInt(i)) + return d +} + +// ApproxRoot returns an approximate estimation of a PrecDec's positive real nth root +// using Newton's method (where n is positive). The algorithm starts with some guess and +// computes the sequence of improved guesses until an answer converges to an +// approximate answer. It returns `|d|.ApproxRoot() * -1` if input is negative. +// A maximum number of 100 iterations is used a backup boundary condition for +// cases where the answer never converges enough to satisfy the main condition. +func (d PrecDec) ApproxRoot(root uint64) (guess PrecDec, err error) { + defer func() { + if r := recover(); r != nil { + var ok bool + err, ok = r.(error) + if !ok { + err = errors.New("out of bounds") + } + } + }() + + if d.IsNegative() { + absRoot, err := d.Neg().ApproxRoot(root) + return absRoot.NegMut(), err + } + + // One decimal, that we invalidate later. Helps us save a heap allocation. + scratchOnePrecDec := OnePrecDec() + if root == 1 || d.IsZero() || d.Equal(scratchOnePrecDec) { + return d, nil + } + + if root == 0 { + return scratchOnePrecDec, nil + } + + guess, delta := scratchOnePrecDec, OnePrecDec() + smallestPrecDec := SmallestPrecDec() + + for iter := 0; delta.AbsMut().GT(smallestPrecDec) && iter < maxApproxRootIterations; iter++ { + // Set prev = guess^{root - 1}, with an optimization for sqrt + // where root=2 => prev = guess. (And thus no extra heap allocations) + prev := guess + if root != 2 { + prev = guess.Power(root - 1) + } + if prev.IsZero() { + prev = smallestPrecDec + } + delta.Set(d).QuoMut(prev) + delta.SubMut(guess) + // delta = delta / root. + // We optimize for sqrt, where root=2 => delta = delta >> 1 + if root == 2 { + delta.i.Rsh(delta.i, 1) + } else { + delta.QuoInt64Mut(int64(root)) + } + + guess.AddMut(delta) + } + + return guess, nil +} + +// Power returns a the result of raising to a positive integer power +func (d PrecDec) Power(power uint64) PrecDec { + res := PrecDec{new(big.Int).Set(d.i)} + return res.PowerMut(power) +} + +func (d PrecDec) PowerMut(power uint64) PrecDec { + if power == 0 { + d.SetInt64(1) + return d + } + tmp := OnePrecDec() + + for i := power; i > 1; { + if i%2 != 0 { + tmp.MulMut(d) + } + i /= 2 + d.MulMut(d) + } + + return d.MulMut(tmp) +} + +// ApproxSqrt is a wrapper around ApproxRoot for the common special case +// of finding the square root of a number. It returns -(sqrt(abs(d)) if input is negative. +func (d PrecDec) ApproxSqrt() (PrecDec, error) { + return d.ApproxRoot(2) +} + +// is integer, e.g. decimals are zero +func (d PrecDec) IsInteger() bool { + return new(big.Int).Rem(d.i, precisionReuse).Sign() == 0 +} + +// format decimal state +func (d PrecDec) Format(s fmt.State, verb rune) { + _, err := s.Write([]byte(d.String())) + if err != nil { + panic(err) + } +} + +func (d PrecDec) String() string { + if d.i == nil { + return d.i.String() + } + + isNeg := d.IsNegative() + + if isNeg { + d = d.Neg() + } + + bzInt, err := d.i.MarshalText() + if err != nil { + return "" + } + inputSize := len(bzInt) + + var bzStr []byte + + // TODO: Remove trailing zeros + // case 1, purely decimal + if inputSize <= Precision { + bzStr = make([]byte, Precision+2) + + // 0. prefix + bzStr[0] = byte('0') + bzStr[1] = byte('.') + + // set relevant digits to 0 + for i := 0; i < Precision-inputSize; i++ { + bzStr[i+2] = byte('0') + } + + // set final digits + copy(bzStr[2+(Precision-inputSize):], bzInt) + } else { + // inputSize + 1 to account for the decimal point that is being added + bzStr = make([]byte, inputSize+1) + decPointPlace := inputSize - Precision + + copy(bzStr, bzInt[:decPointPlace]) // pre-decimal digits + bzStr[decPointPlace] = byte('.') // decimal point + copy(bzStr[decPointPlace+1:], bzInt[decPointPlace:]) // post-decimal digits + } + + if isNeg { + return "-" + string(bzStr) + } + + return string(bzStr) +} + +// Float64 returns the float64 representation of a PrecDec. +// Will return the error if the conversion failed. +func (d PrecDec) Float64() (float64, error) { + return strconv.ParseFloat(d.String(), 64) +} + +// MustFloat64 returns the float64 representation of a PrecDec. +// Would panic if the conversion failed. +func (d PrecDec) MustFloat64() float64 { + if value, err := strconv.ParseFloat(d.String(), 64); err != nil { + panic(err) + } else { + return value + } +} + +// ____ +// __| |__ "chop 'em +// ` \ round!" +// ___|| ~ _ -bankers +// | | __ +// | | | __|__|__ +// |_____: / | $$$ | +// |________| + +// Remove a Precision amount of rightmost digits and perform bankers rounding +// on the remainder (gaussian rounding) on the digits which have been removed. +// +// Mutates the input. Use the non-mutative version if that is undesired +func chopPrecisionAndRound(d *big.Int) *big.Int { + // remove the negative and add it back when returning + if d.Sign() == -1 { + // make d positive, compute chopped value, and then un-mutate d + d = d.Neg(d) + d = chopPrecisionAndRound(d) + d = d.Neg(d) + return d + } + + // get the truncated quotient and remainder + quo, rem := d, big.NewInt(0) + quo, rem = quo.QuoRem(d, precisionReuse, rem) + + if rem.Sign() == 0 { // remainder is zero + return quo + } + + switch rem.Cmp(fivePrecision) { + case -1: + return quo + case 1: + return quo.Add(quo, oneInt) + default: // bankers rounding must take place + // always round to an even number + if quo.Bit(0) == 0 { + return quo + } + return quo.Add(quo, oneInt) + } +} + +func chopPrecisionAndRoundUp(d *big.Int) *big.Int { + // remove the negative and add it back when returning + if d.Sign() == -1 { + // make d positive, compute chopped value, and then un-mutate d + d = d.Neg(d) + // truncate since d is negative... + chopPrecisionAndTruncate(d) + d = d.Neg(d) + return d + } + + // get the truncated quotient and remainder + quo, rem := d, big.NewInt(0) + quo, rem = quo.QuoRem(d, precisionReuse, rem) + + if rem.Sign() == 0 { // remainder is zero + return quo + } + + return quo.Add(quo, oneInt) +} + +func chopPrecisionAndRoundNonMutative(d *big.Int) *big.Int { + tmp := new(big.Int).Set(d) + return chopPrecisionAndRound(tmp) +} + +// RoundInt64 rounds the decimal using bankers rounding +func (d PrecDec) RoundInt64() int64 { + chopped := chopPrecisionAndRoundNonMutative(d.i) + if !chopped.IsInt64() { + panic("Int64() out of bound") + } + return chopped.Int64() +} + +// RoundInt round the decimal using bankers rounding +func (d PrecDec) RoundInt() sdk.Int { + return sdk.NewIntFromBigInt(chopPrecisionAndRoundNonMutative(d.i)) +} + +// chopPrecisionAndTruncate is similar to chopPrecisionAndRound, +// but always rounds down. It does not mutate the input. +func chopPrecisionAndTruncate(d *big.Int) { + d.Quo(d, precisionReuse) +} + +func chopPrecisionAndTruncateNonMutative(d *big.Int) *big.Int { + tmp := new(big.Int).Set(d) + chopPrecisionAndTruncate(tmp) + return tmp +} + +// TruncateInt64 truncates the decimals from the number and returns an int64 +func (d PrecDec) TruncateInt64() int64 { + chopped := chopPrecisionAndTruncateNonMutative(d.i) + if !chopped.IsInt64() { + panic("Int64() out of bound") + } + return chopped.Int64() +} + +// TruncateInt truncates the decimals from the number and returns an Int +func (d PrecDec) TruncateInt() sdk.Int { + return sdk.NewIntFromBigInt(chopPrecisionAndTruncateNonMutative(d.i)) +} + +// TruncatePrecDec truncates the decimals from the number and returns a PrecDec +func (d PrecDec) TruncatePrecDec() PrecDec { + return NewPrecDecFromBigInt(chopPrecisionAndTruncateNonMutative(d.i)) +} + +// Ceil returns the smallest interger value (as a decimal) that is greater than +// or equal to the given decimal. +func (d PrecDec) Ceil() PrecDec { + tmp := new(big.Int).Set(d.i) + + quo, rem := tmp, big.NewInt(0) + quo, rem = quo.QuoRem(tmp, precisionReuse, rem) + + // no need to round with a zero remainder regardless of sign + if rem.Cmp(zeroInt) == 0 { + return NewPrecDecFromBigInt(quo) + } + + if rem.Sign() == -1 { + return NewPrecDecFromBigInt(quo) + } + + return NewPrecDecFromBigInt(quo.Add(quo, oneInt)) +} + +// MaxSortablePrecDec is the largest PrecDec that can be passed into SortablePrecDecBytes() +// Its negative form is the least PrecDec that can be passed in. +var MaxSortablePrecDec PrecDec + +func init() { + MaxSortablePrecDec = OnePrecDec().Quo(SmallestPrecDec()) +} + +// ValidSortablePrecDec ensures that a PrecDec is within the sortable bounds, +// a PrecDec can't have a precision of less than 10^-18. +// Max sortable decimal was set to the reciprocal of SmallestPrecDec. +func ValidSortablePrecDec(dec PrecDec) bool { + return dec.Abs().LTE(MaxSortablePrecDec) +} + +// SortablePrecDecBytes returns a byte slice representation of a PrecDec that can be sorted. +// Left and right pads with 0s so there are 18 digits to left and right of the decimal point. +// For this reason, there is a maximum and minimum value for this, enforced by ValidSortablePrecDec. +func SortablePrecDecBytes(dec PrecDec) []byte { + if !ValidSortablePrecDec(dec) { + panic("dec must be within bounds") + } + // Instead of adding an extra byte to all sortable decs in order to handle max sortable, we just + // makes its bytes be "max" which comes after all numbers in ASCIIbetical order + if dec.Equal(MaxSortablePrecDec) { + return []byte("max") + } + // For the same reason, we make the bytes of minimum sortable dec be --, which comes before all numbers. + if dec.Equal(MaxSortablePrecDec.Neg()) { + return []byte("--") + } + // We move the negative sign to the front of all the left padded 0s, to make negative numbers come before positive numbers + if dec.IsNegative() { + return append([]byte("-"), []byte(fmt.Sprintf(fmt.Sprintf("%%0%ds", Precision*2+1), dec.Abs().String()))...) + } + return []byte(fmt.Sprintf(fmt.Sprintf("%%0%ds", Precision*2+1), dec.String())) +} + +// reuse nil values +var nilJSON []byte + +func init() { + empty := new(big.Int) + bz, _ := empty.MarshalText() + nilJSON, _ = json.Marshal(string(bz)) +} + +// MarshalJSON marshals the decimal +func (d PrecDec) MarshalJSON() ([]byte, error) { + if d.i == nil { + return nilJSON, nil + } + return json.Marshal(d.String()) +} + +// UnmarshalJSON defines custom decoding scheme +func (d *PrecDec) UnmarshalJSON(bz []byte) error { + if d.i == nil { + d.i = new(big.Int) + } + + var text string + err := json.Unmarshal(bz, &text) + if err != nil { + return err + } + + // TODO: Reuse dec allocation + newPrecDec, err := NewPrecDecFromStr(text) + if err != nil { + return err + } + + d.i = newPrecDec.i + return nil +} + +// MarshalYAML returns the YAML representation. +func (d PrecDec) MarshalYAML() (interface{}, error) { + return d.String(), nil +} + +// Marshal implements the gogo proto custom type interface. +func (d PrecDec) Marshal() ([]byte, error) { + i := d.i + if i == nil { + i = new(big.Int) + } + return i.MarshalText() +} + +// MarshalTo implements the gogo proto custom type interface. +func (d *PrecDec) MarshalTo(data []byte) (n int, err error) { + i := d.i + if i == nil { + i = new(big.Int) + } + + if i.Cmp(zeroInt) == 0 { + copy(data, []byte{0x30}) + return 1, nil + } + + bz, err := d.Marshal() + if err != nil { + return 0, err + } + + copy(data, bz) + return len(bz), nil +} + +// Unmarshal implements the gogo proto custom type interface. +func (d *PrecDec) Unmarshal(data []byte) error { + if len(data) == 0 { + d = nil + return nil + } + + if d.i == nil { + d.i = new(big.Int) + } + + if err := d.i.UnmarshalText(data); err != nil { + return err + } + + if d.i.BitLen() > maxPrecDecBitLen { + return fmt.Errorf("decimal out of range; got: %d, max: %d", d.i.BitLen(), maxPrecDecBitLen) + } + + return nil +} + +// Size implements the gogo proto custom type interface. +func (d *PrecDec) Size() int { + bz, _ := d.Marshal() + return len(bz) +} + +// Override Amino binary serialization by proxying to protobuf. +func (d PrecDec) MarshalAmino() ([]byte, error) { return d.Marshal() } +func (d *PrecDec) UnmarshalAmino(bz []byte) error { return d.Unmarshal(bz) } + +// helpers + +// test if two decimal arrays are equal +func PrecDecsEqual(d1s, d2s []PrecDec) bool { + if len(d1s) != len(d2s) { + return false + } + + for i, d1 := range d1s { + if !d1.Equal(d2s[i]) { + return false + } + } + return true +} + +// minimum decimal between two +func MinPrecDec(d1, d2 PrecDec) PrecDec { + if d1.LT(d2) { + return d1 + } + return d2 +} + +// maximum decimal between two +func MaxPrecDec(d1, d2 PrecDec) PrecDec { + if d1.LT(d2) { + return d2 + } + return d1 +} + +// intended to be used with require/assert: require.True(PrecDecEq(...)) +func PrecDecEq(t *testing.T, exp, got PrecDec) (*testing.T, bool, string, string, string) { + return t, exp.Equal(got), "expected:\t%v\ngot:\t\t%v", exp.String(), got.String() +} + +func PrecDecApproxEq(t *testing.T, d1, d2, tol PrecDec) (*testing.T, bool, string, string, string) { + diff := d1.Sub(d2).Abs() + return t, diff.LTE(tol), "expected |d1 - d2| <:\t%v\ngot |d1 - d2| = \t\t%v", tol.String(), diff.String() +} + +func hasOnlyDigits(s string) bool { + if s == "" { + return false + } + for _, r := range s { + if r < '0' || r > '9' { + return false + } + } + return true +} + +// FormatPrecDec formats a decimal (as encoded in protobuf) into a value-rendered +// string following ADR-050. This function operates with string manipulation +// (instead of manipulating the sdk.PrecDec object). +func FormatPrecDec(v string) (string, error) { + parts := strings.Split(v, ".") + if len(parts) > 2 { + return "", fmt.Errorf("invalid decimal: too many points in %s", v) + } + + intPart, err := math.FormatInt(parts[0]) + if err != nil { + return "", err + } + + if len(parts) == 1 { + return intPart, nil + } + + decPart := strings.TrimRight(parts[1], "0") + if len(decPart) == 0 { + return intPart, nil + } + + // Ensure that the decimal part has only digits. + // https://github.com/cosmos/cosmos-sdk/issues/12811 + if !hasOnlyDigits(decPart) { + return "", fmt.Errorf("non-digits detected after decimal point in: %q", decPart) + } + + return intPart + "." + decPart, nil +} diff --git a/utils/slice_helper.go b/utils/slice_helper.go new file mode 100644 index 000000000..933542e62 --- /dev/null +++ b/utils/slice_helper.go @@ -0,0 +1,51 @@ +package utils + +import ( + "sort" + + "golang.org/x/exp/constraints" +) + +// SortSlice sorts a slice of type T elements that implement constraints.Ordered. +// Mutates input slice s +func SortSlice[T constraints.Ordered](s []T) { + sort.Slice(s, func(i, j int) bool { + return s[i] < s[j] + }) +} + +func Filter[T interface{}](filter func(T) bool, s []T) []T { + filteredSlice := []T{} + for _, s := range s { + if filter(s) { + filteredSlice = append(filteredSlice, s) + } + } + return filteredSlice +} + +// ReverseSlice reverses the input slice in place. +// Does mutate argument. +func ReverseSlice[T any](s []T) []T { + maxIndex := len(s) + for i := 0; i < maxIndex/2; i++ { + temp := s[i] + s[i] = s[maxIndex-i-1] + s[maxIndex-1-i] = temp + } + return s +} + +// ContainsDuplicate checks if there are any duplicate +// elements in the slice. +func ContainsDuplicate[T any](arr []T) bool { + visited := make(map[any]bool, 0) + for i := 0; i < len(arr); i++ { + if visited[arr[i]] { + return true + } else { + visited[arr[i]] = true + } + } + return false +} diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 1a1ca5483..2526ca97b 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -8,8 +8,10 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" - + dextypes "github.com/neutron-org/neutron/x/dex/types" + epochstypes "github.com/neutron-org/neutron/x/epochs/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" + incentivestypes "github.com/neutron-org/neutron/x/incentives/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -52,5 +54,30 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { // feeburner "/neutron.feeburner.Query/Params": &feeburnertypes.QueryParamsResponse{}, + + // dex + "/dualitylabs.duality.dex.Query/Params": &dextypes.QueryParamsResponse{}, + "/dualitylabs.duality.dex.Query/LimitOrderTrancheUser": &dextypes.QueryGetLimitOrderTrancheUserResponse{}, + "/dualitylabs.duality.dex.Query/LimitOrderTranche": &dextypes.QueryGetLimitOrderTrancheResponse{}, + "/dualitylabs.duality.dex.Query/UserDepositsAll": &dextypes.QueryAllUserDepositsResponse{}, + "/dualitylabs.duality.dex.Query/UserLimitOrdersAll": &dextypes.QueryAllUserLimitOrdersResponse{}, + "/dualitylabs.duality.dex.Query/InactiveLimitOrderTranche": &dextypes.QueryGetInactiveLimitOrderTrancheResponse{}, + "/dualitylabs.duality.dex.Query/PoolReserves": &dextypes.QueryGetPoolReservesResponse{}, + "/dualitylabs.duality.dex.Query/EstimateMultiHopSwap": &dextypes.QueryEstimateMultiHopSwapResponse{}, + "/dualitylabs.duality.dex.Query/EstimatePlaceLimitOrder": &dextypes.QueryEstimatePlaceLimitOrderResponse{}, + + // incentives + "/dualitylabs.duality.incentives.Query/GetModuleStatus": &incentivestypes.GetModuleStatusResponse{}, + "/dualitylabs.duality.incentives.Query/GetGaugeByID": &incentivestypes.GetGaugeByIDResponse{}, + "/dualitylabs.duality.incentives.Query/GetGauges": &incentivestypes.GetGaugesResponse{}, + "/dualitylabs.duality.incentives.Query/GetStakeByID": &incentivestypes.GetStakeByIDResponse{}, + "/dualitylabs.duality.incentives.Query/GetStakes": &incentivestypes.GetStakesResponse{}, + "/dualitylabs.duality.incentives.Query/GetFutureRewardEstimate": &incentivestypes.GetFutureRewardEstimateResponse{}, + "/dualitylabs.duality.incentives.Query/GetAccountHistory": &incentivestypes.GetAccountHistoryResponse{}, + "/dualitylabs.duality.incentives.Query/GetGaugeQualifyingValue": &incentivestypes.GetGaugeQualifyingValueResponse{}, + + // epochs + "/dualitylabs.duality.epochs.Query/EpochInfos": &epochstypes.QueryEpochsInfoResponse{}, + "/dualitylabs.duality.epochs.Query/CurrentEpoch": &epochstypes.QueryCurrentEpochResponse{}, } } diff --git a/x/dex/client/cli/flags.go b/x/dex/client/cli/flags.go new file mode 100644 index 000000000..d2e060f6c --- /dev/null +++ b/x/dex/client/cli/flags.go @@ -0,0 +1,13 @@ +package cli + +import flag "github.com/spf13/pflag" + +const ( + FlagMaxAmountOut = "max-amount-out" +) + +func FlagSetMaxAmountOut() *flag.FlagSet { + fs := flag.NewFlagSet("", flag.ContinueOnError) + fs.String(FlagMaxAmountOut, "", "Max amount to be returned from trade") + return fs +} diff --git a/x/dex/client/cli/query.go b/x/dex/client/cli/query.go new file mode 100644 index 000000000..40609ab72 --- /dev/null +++ b/x/dex/client/cli/query.go @@ -0,0 +1,50 @@ +package cli + +import ( + "fmt" + // "strings" + + "github.com/spf13/cobra" + + "github.com/cosmos/cosmos-sdk/client" + // "github.com/cosmos/cosmos-sdk/client/flags" + // sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/neutron-org/neutron/x/dex/types" +) + +// GetQueryCmd returns the cli query commands for this module +func GetQueryCmd(_ string) *cobra.Command { + // Group dex queries under a subcommand + cmd := &cobra.Command{ + Use: types.ModuleName, + Short: fmt.Sprintf( + "Querying commands for the %s module", + types.ModuleName, + ), + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand(CmdQueryParams()) + cmd.AddCommand(CmdListLimitOrderTrancheUser()) + cmd.AddCommand(CmdShowLimitOrderTrancheUser()) + cmd.AddCommand(CmdListLimitOrderTranche()) + cmd.AddCommand(CmdShowLimitOrderTranche()) + cmd.AddCommand(CmdListUserDeposits()) + cmd.AddCommand(CmdListUserLimitOrders()) + cmd.AddCommand(CmdListTickLiquidity()) + cmd.AddCommand(CmdListInactiveLimitOrderTranche()) + cmd.AddCommand(CmdShowInactiveLimitOrderTranche()) + cmd.AddCommand(CmdListPoolReserves()) + cmd.AddCommand(CmdShowPoolReserves()) + cmd.AddCommand(CmdShowPool()) + cmd.AddCommand(CmdShowPoolByID()) + + cmd.AddCommand(CmdListPoolMetadata()) + cmd.AddCommand(CmdShowPoolMetadata()) + // this line is used by starport scaffolding # 1 + + return cmd +} diff --git a/x/dex/client/cli/query_inactive_limit_order_tranche.go b/x/dex/client/cli/query_inactive_limit_order_tranche.go new file mode 100644 index 000000000..f3a29df7e --- /dev/null +++ b/x/dex/client/cli/query_inactive_limit_order_tranche.go @@ -0,0 +1,90 @@ +package cli + +import ( + "context" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cast" + "github.com/spf13/cobra" +) + +func CmdListInactiveLimitOrderTranche() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-filled-limit-order-tranche", + Short: "list all InactiveLimitOrderTranche", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllInactiveLimitOrderTrancheRequest{ + Pagination: pageReq, + } + + res, err := queryClient.InactiveLimitOrderTrancheAll(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowInactiveLimitOrderTranche() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-filled-limit-order-tranche [pair-id] [token-in] [tick-index] [tranche-key]", + Short: "shows a InactiveLimitOrderTranche", + Example: "show-filled limit-order-tranche tokenA<>tokenB tokenA [10] 0", + Args: cobra.ExactArgs(4), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + argPairID := args[0] + argTokenIn := args[1] + + if strings.HasPrefix(args[2], "[") && strings.HasSuffix(args[2], "]") { + args[2] = strings.TrimPrefix(args[2], "[") + args[2] = strings.TrimSuffix(args[2], "]") + } + argTickIndex, err := cast.ToInt64E(args[2]) + argTrancheKey := args[3] + if err != nil { + return err + } + + params := &types.QueryGetInactiveLimitOrderTrancheRequest{ + PairID: argPairID, + TokenIn: argTokenIn, + TickIndex: argTickIndex, + TrancheKey: argTrancheKey, + } + + res, err := queryClient.InactiveLimitOrderTranche(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_limit_order_tranche.go b/x/dex/client/cli/query_limit_order_tranche.go new file mode 100644 index 000000000..8185f0b23 --- /dev/null +++ b/x/dex/client/cli/query_limit_order_tranche.go @@ -0,0 +1,98 @@ +package cli + +import ( + "context" + "strconv" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListLimitOrderTranche() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-limit-order-tranche [pair-id] [token-in]", + Short: "list all LimitOrderTranches", + Example: "list-limit-order-tranche tokenA<>tokenB tokenA", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + argPairID := args[0] + argTokenIn := args[1] + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllLimitOrderTrancheRequest{ + Pagination: pageReq, + PairID: argPairID, + TokenIn: argTokenIn, + } + + res, err := queryClient.LimitOrderTrancheAll(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowLimitOrderTranche() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-limit-order-tranche [pair-id] [tick-index] [token-in] [tranche-key]", + Short: "shows a LimitOrderTranche", + Example: "show-limit-order-tranche tokenA<>tokenB [5] tokenA 0", + Args: cobra.ExactArgs(4), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + argPairID := args[0] + if strings.HasPrefix(args[1], "[") && strings.HasSuffix(args[1], "]") { + args[1] = strings.TrimPrefix(args[1], "[") + args[1] = strings.TrimSuffix(args[1], "]") + } + argTickIndex := args[1] + argTokenIn := args[2] + argTrancheKey := args[3] + + argTickIndexInt, err := strconv.ParseInt(argTickIndex, 10, 0) + if err != nil { + return err + } + + params := &types.QueryGetLimitOrderTrancheRequest{ + PairID: argPairID, + TickIndex: argTickIndexInt, + TokenIn: argTokenIn, + TrancheKey: argTrancheKey, + } + + res, err := queryClient.LimitOrderTranche(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_limit_order_tranche_user.go b/x/dex/client/cli/query_limit_order_tranche_user.go new file mode 100644 index 000000000..c273e5d50 --- /dev/null +++ b/x/dex/client/cli/query_limit_order_tranche_user.go @@ -0,0 +1,73 @@ +package cli + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListLimitOrderTrancheUser() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-limit-order-tranche-user", + Short: "list all LimitOrderTrancheUser", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllLimitOrderTrancheUserRequest{ + Pagination: pageReq, + } + + res, err := queryClient.LimitOrderTrancheUserAll(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowLimitOrderTrancheUser() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-limit-order-tranche-user [address] [tranche-key]", + Short: "shows a LimitOrderTrancheUser", + Example: "show-limit-order-tranche-user TRANCHEKEY123 alice", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryGetLimitOrderTrancheUserRequest{ + Address: args[0], + TrancheKey: args[1], + } + + res, err := queryClient.LimitOrderTrancheUser(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_params.go b/x/dex/client/cli/query_params.go new file mode 100644 index 000000000..2deda9bd7 --- /dev/null +++ b/x/dex/client/cli/query_params.go @@ -0,0 +1,34 @@ +package cli + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdQueryParams() *cobra.Command { + cmd := &cobra.Command{ + Use: "params", + Short: "shows the parameters of the module", + Args: cobra.NoArgs, + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + res, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{}) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_pool.go b/x/dex/client/cli/query_pool.go new file mode 100644 index 000000000..44c4914fd --- /dev/null +++ b/x/dex/client/cli/query_pool.go @@ -0,0 +1,95 @@ +package cli + +import ( + "context" + "strconv" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdShowPool() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-pool '[pair-id]' [tick-index] [fee]", + Short: "shows a pool. Make sure to wrap your pair-id in quotes otherwise the shell will interpret <> as a separator token", + Example: "show-pool 'tokenA<>tokenB' [-5] 1", + Args: cobra.ExactArgs(3), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + argPairID := args[0] + if strings.HasPrefix(args[1], "[") && strings.HasSuffix(args[1], "]") { + args[1] = strings.TrimPrefix(args[1], "[") + args[1] = strings.TrimSuffix(args[1], "]") + } + argTickIndex := args[1] + argFee := args[2] + + argFeeInt, err := strconv.ParseUint(argFee, 10, 0) + if err != nil { + return err + } + + argTickIndexInt, err := strconv.ParseInt(argTickIndex, 10, 0) + if err != nil { + return err + } + + params := &types.QueryPoolRequest{ + PairID: argPairID, + TickIndex: argTickIndexInt, + Fee: argFeeInt, + } + + res, err := queryClient.Pool(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowPoolByID() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-pool-by-id [poolID]", + Short: "shows a pool by poolID", + Example: "show-pool-by-id 5", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + argPoolID, err := strconv.ParseUint(args[0], 10, 0) + if err != nil { + return err + } + + params := &types.QueryPoolByIDRequest{ + PoolID: argPoolID, + } + + res, err := queryClient.PoolByID(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_pool_metadata.go b/x/dex/client/cli/query_pool_metadata.go new file mode 100644 index 000000000..5412f789d --- /dev/null +++ b/x/dex/client/cli/query_pool_metadata.go @@ -0,0 +1,82 @@ +package cli + +import ( + "strconv" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListPoolMetadata() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-pool-metadata", + Short: "list all PoolMetadata", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllPoolMetadataRequest{ + Pagination: pageReq, + } + + res, err := queryClient.PoolMetadataAll(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowPoolMetadata() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-pool-metadata [id]", + Short: "shows a PoolMetadata", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + id, err := strconv.ParseUint(args[0], 10, 64) + if err != nil { + return err + } + + params := &types.QueryGetPoolMetadataRequest{ + Id: id, + } + + res, err := queryClient.PoolMetadata(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_pool_reserves.go b/x/dex/client/cli/query_pool_reserves.go new file mode 100644 index 000000000..ce36eb937 --- /dev/null +++ b/x/dex/client/cli/query_pool_reserves.go @@ -0,0 +1,105 @@ +package cli + +import ( + "context" + "strconv" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListPoolReserves() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-pool-reserves [pair-id] [token-in]", + Short: "Query AllPoolReserves", + Example: "list-pool-reserves tokenA<>tokenB tokenA", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) (err error) { + reqPairID := args[0] + reqTokenIn := args[1] + + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllPoolReservesRequest{ + PairID: reqPairID, + TokenIn: reqTokenIn, + } + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + params.Pagination = pageReq + + res, err := queryClient.PoolReservesAll(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowPoolReserves() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-pool-reserves [pair-id] [tick-index] [token-in] [fee]", + Short: "shows a PoolReserves", + Example: "show-pool-reserves tokenA<>tokenB [-5] tokenA 1", + Args: cobra.ExactArgs(4), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + argPairID := args[0] + if strings.HasPrefix(args[1], "[") && strings.HasSuffix(args[1], "]") { + args[1] = strings.TrimPrefix(args[1], "[") + args[1] = strings.TrimSuffix(args[1], "]") + } + argTickIndex := args[1] + argTokenIn := args[2] + argFee := args[3] + + argTrancheKeyInt, err := strconv.ParseUint(argFee, 10, 0) + if err != nil { + return err + } + + argTickIndexInt, err := strconv.ParseInt(argTickIndex, 10, 0) + if err != nil { + return err + } + + params := &types.QueryGetPoolReservesRequest{ + PairID: argPairID, + TickIndex: argTickIndexInt, + TokenIn: argTokenIn, + Fee: argTrancheKeyInt, + } + + res, err := queryClient.PoolReserves(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_test.go b/x/dex/client/cli/query_test.go new file mode 100644 index 000000000..bccd16375 --- /dev/null +++ b/x/dex/client/cli/query_test.go @@ -0,0 +1,450 @@ +package cli + +// import ( +// "testing" + +// "github.com/cosmos/cosmos-sdk/testutil/cli" +// "github.com/cosmos/cosmos-sdk/testutil/network" +// sdk "github.com/cosmos/cosmos-sdk/types" +// "github.com/neutron-org/neutron/app" +// dexclient "github.com/neutron-org/neutron/x/dex/client/cli" +// "github.com/neutron-org/neutron/x/dex/types" +// "github.com/stretchr/testify/require" +// "github.com/stretchr/testify/suite" +// ) + +// type QueryTestSuite struct { +// suite.Suite + +// cfg network.Config +// network *network.Network + +// addr1 sdk.AccAddress +// addr2 sdk.AccAddress +// } + +// func (s *QueryTestSuite) SetupSuite() { +// var err error +// s.T().Log("setting up integration test suite") + +// s.cfg = network.DefaultConfig(app.NewTestNetworkFixture) +// s.cfg.NumValidators = 1 + +// s.network, err = network.New(s.T(), s.T().TempDir(), s.cfg) +// s.Require().NoError(err) + +// _, err = s.network.WaitForHeight(2) +// s.Require().NoError(err) +// } + +// func TestQueryTestSuite(t *testing.T) { +// suite.Run(t, new(QueryTestSuite)) +// } + +// var testAddress = sdk.AccAddress([]byte("testAddr")) + +// var limitOrderTrancheList = []types.TickLiquidity{ +// { +// Liquidity: &types.TickLiquidity_LimitOrderTranche{ +// LimitOrderTranche: &types.LimitOrderTranche{ +// PairID: &types.PairID{ +// Token0: "TokenA", +// Token1: "TokenB", +// }, +// TokenIn: "TokenB", +// TickIndex: 1, +// TrancheKey: "0", +// ReservesTokenIn: sdk.NewInt(10), +// ReservesTokenOut: sdk.ZeroInt(), +// TotalTokenIn: sdk.NewInt(10), +// TotalTokenOut: sdk.ZeroInt(), +// }, +// }, +// }, +// { +// Liquidity: &types.TickLiquidity_LimitOrderTranche{ +// LimitOrderTranche: &types.LimitOrderTranche{ +// PairID: &types.PairID{ +// Token0: "TokenA", +// Token1: "TokenB", +// }, +// TokenIn: "TokenB", +// TickIndex: 2, +// TrancheKey: "1", +// ReservesTokenIn: sdk.NewInt(10), +// ReservesTokenOut: sdk.ZeroInt(), +// TotalTokenIn: sdk.NewInt(10), +// TotalTokenOut: sdk.ZeroInt(), +// }, +// }, +// }, +// } + +// var inactiveLimitOrderTrancheList = []types.LimitOrderTranche{ +// { +// PairID: &types.PairID{Token0: "TokenA", Token1: "TokenB"}, +// TokenIn: "TokenB", +// TickIndex: 0, +// TrancheKey: "0", +// TotalTokenIn: sdk.NewInt(10), +// TotalTokenOut: sdk.NewInt(10), +// ReservesTokenOut: sdk.NewInt(10), +// ReservesTokenIn: sdk.NewInt(0), +// }, +// { +// PairID: &types.PairID{Token0: "TokenA", Token1: "TokenB"}, +// TokenIn: "TokenB", +// TickIndex: 0, +// TrancheKey: "1", +// TotalTokenIn: sdk.NewInt(10), +// TotalTokenOut: sdk.NewInt(10), +// ReservesTokenOut: sdk.NewInt(10), +// ReservesTokenIn: sdk.NewInt(0), +// }, +// } + +// var poolReservesList = []types.TickLiquidity{ +// { +// Liquidity: &types.TickLiquidity_PoolReserves{ +// PoolReserves: &types.PoolReserves{ +// PairID: &types.PairID{ +// Token0: "TokenA", +// Token1: "TokenB", +// }, +// TokenIn: "TokenB", +// TickIndex: 0, +// Fee: 1, +// Reserves: sdk.NewInt(10), +// }, +// }, +// }, +// { +// Liquidity: &types.TickLiquidity_PoolReserves{ +// PoolReserves: &types.PoolReserves{ +// PairID: &types.PairID{ +// Token0: "TokenA", +// Token1: "TokenB", +// }, +// TokenIn: "TokenB", +// TickIndex: 0, +// Fee: 3, +// Reserves: sdk.NewInt(10), +// }, +// }, +// }, +// } + +// var limitOrderTrancheUserList = []types.LimitOrderTrancheUser{ +// { +// PairID: &types.PairID{Token0: "TokenA", Token1: "TokenB"}, +// Token: "TokenA", +// TickIndex: 1, +// TrancheKey: "0", +// Address: testAddress.String(), +// SharesOwned: sdk.NewInt(10), +// SharesWithdrawn: sdk.NewInt(0), +// SharesCancelled: sdk.NewInt(0), +// }, +// { +// PairID: &types.PairID{Token0: "TokenA", Token1: "TokenB"}, +// Token: "TokenB", +// TickIndex: 20, +// TrancheKey: "1", +// Address: testAddress.String(), +// SharesOwned: sdk.NewInt(10), +// SharesWithdrawn: sdk.NewInt(0), +// SharesCancelled: sdk.NewInt(0), +// }, +// } + +// var genesisState types.GenesisState = types.GenesisState{ +// TickLiquidityList: append(poolReservesList, limitOrderTrancheList...), +// LimitOrderTrancheUserList: limitOrderTrancheUserList, +// InactiveLimitOrderTrancheList: inactiveLimitOrderTrancheList, +// } + +// func (s *QueryTestSuite) TestQueryCmdListTickLiquidity() { +// val := s.network.Validators[0] +// clientCtx := val.ClientCtx +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// expOutput []types.TickLiquidity +// }{ +// { +// name: "valid", +// args: []string{"TokenA<>TokenB", "TokenB"}, +// expOutput: append(poolReservesList, limitOrderTrancheList...), +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexclient.CmdListTickLiquidity() +// out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res types.QueryAllTickLiquidityResponse +// require.NoError(s.T(), clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.NotEmpty(s.T(), res) +// require.Equal(s.T(), tc.expOutput, res.TickLiquidity) +// } +// }) +// } +// } + +// func (s *QueryTestSuite) TestQueryCmdShowLimitOrderTranche() { +// val := s.network.Validators[0] +// clientCtx := val.ClientCtx +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// expOutput types.LimitOrderTranche +// }{ +// // show-limit-order-tranche [pair-id] [tick-index] [token-in] [tranche-key] +// { +// name: "valid", +// args: []string{"TokenA<>TokenB", "1", "TokenB", "0"}, +// expOutput: *limitOrderTrancheList[0].GetLimitOrderTranche(), +// }, +// { +// name: "invalid pair", +// args: []string{"TokenC<>TokenB", "20", "TokenB", "1"}, +// expErr: true, +// expErrMsg: "key not found", +// }, +// { +// name: "too many parameters", +// args: []string{"TokenA<>B", "20", "TokenB", "1", "10"}, +// expErr: true, +// expErrMsg: "Error: accepts 4 arg(s), received 5", +// }, +// { +// name: "no parameters", +// args: []string{}, +// expErr: true, +// expErrMsg: "Error: accepts 4 arg(s), received 0", +// }, +// { +// name: "too few parameters", +// args: []string{"TokenA<>B", "20", "TokenB"}, +// expErr: true, +// expErrMsg: "Error: accepts 4 arg(s), received 3", +// }, +// } +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexclient.CmdShowLimitOrderTranche() +// out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res types.QueryGetLimitOrderTrancheResponse +// require.NoError(s.T(), clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.NotEmpty(s.T(), res) +// require.Equal(s.T(), tc.expOutput, res.LimitOrderTranche) +// } +// }) +// } +// } + +// func (s *QueryTestSuite) TestQueryCmdShowLimitOrderTrancheUser() { +// val := s.network.Validators[0] +// clientCtx := val.ClientCtx +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// expOutput types.LimitOrderTrancheUser +// }{ +// // "show-limit-order-tranche-user [address] [tranche-key]" +// { +// name: "valid", +// args: []string{testAddress.String(), "0"}, +// expOutput: limitOrderTrancheUserList[0], +// }, +// { +// name: "invalid pair", +// args: []string{testAddress.String(), "BADKEY"}, +// expErr: true, +// expErrMsg: "key not found", +// }, +// { +// name: "too many parameters", +// args: []string{testAddress.String(), "0", "EXTRAARG"}, +// expErr: true, +// expErrMsg: "Error: accepts 2 arg(s), received 3", +// }, +// { +// name: "no parameters", +// args: []string{}, +// expErr: true, +// expErrMsg: "Error: accepts 2 arg(s), received 0", +// }, +// { +// name: "too few parameters", +// args: []string{testAddress.String()}, +// expErr: true, +// expErrMsg: "Error: accepts 2 arg(s), received 1", +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexclient.CmdShowLimitOrderTrancheUser() +// out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) + +// var res types.QueryGetLimitOrderTrancheUserResponse +// require.NoError(s.T(), clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.NotEmpty(s.T(), res) +// require.Equal(s.T(), tc.expOutput, res.LimitOrderTrancheUser) +// } +// }) +// } +// } + +// func (s *QueryTestSuite) TestQueryCmdListLimitOrderTrancheUser() { +// val := s.network.Validators[0] +// clientCtx := val.ClientCtx +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// expOutput []types.LimitOrderTrancheUser +// }{ +// { +// name: "valid", +// args: []string{}, +// expOutput: limitOrderTrancheUserList, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexclient.CmdListLimitOrderTrancheUser() +// out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) + +// var res types.QueryAllLimitOrderTrancheUserResponse +// require.NoError(s.T(), clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.NotEmpty(s.T(), res) +// require.Equal(s.T(), tc.expOutput, res.LimitOrderTrancheUser) +// } +// }) +// } +// } + +// func (s *QueryTestSuite) TestQueryCmdListInactiveLimitOrderTranche() { +// val := s.network.Validators[0] +// clientCtx := val.ClientCtx +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// expOutput []types.LimitOrderTranche +// }{ +// { +// name: "valid", +// args: []string{}, +// expOutput: inactiveLimitOrderTrancheList, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexclient.CmdListInactiveLimitOrderTranche() +// out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) + +// var res types.QueryAllInactiveLimitOrderTrancheResponse +// require.NoError(s.T(), clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.NotEmpty(s.T(), res) +// require.Equal(s.T(), tc.expOutput, res.InactiveLimitOrderTranche) +// } +// }) +// } +// } + +// func (s *QueryTestSuite) TestQueryCmdShowInactiveLimitOrderTranche() { +// val := s.network.Validators[0] +// clientCtx := val.ClientCtx +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// expOutput types.LimitOrderTranche +// }{ +// // show-filled-limit-order-tranche [pair-id] [token-in] [tick-index] [tranche-index]", +// { +// name: "valid", +// args: []string{"TokenA<>TokenB", "TokenB", "0", "0"}, +// expOutput: inactiveLimitOrderTrancheList[0], +// }, +// { +// name: "invalid pair", +// args: []string{"TokenC<>TokenB", "TokenB", "0", "0"}, +// expErr: true, +// expErrMsg: "key not found", +// }, +// { +// name: "too many parameters", +// args: []string{"TokenC<>TokenB", "TokenB", "0", "0", "Extra arg"}, +// expErr: true, +// expErrMsg: "Error: accepts 4 arg(s), received 5", +// }, +// { +// name: "no parameters", +// args: []string{}, +// expErr: true, +// expErrMsg: "Error: accepts 4 arg(s), received 0", +// }, +// { +// name: "too few parameters", +// args: []string{"TokenC<>TokenB", "TokenB", "0"}, +// expErr: true, +// expErrMsg: "Error: accepts 4 arg(s), received 3", +// }, +// } +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexclient.CmdShowInactiveLimitOrderTranche() +// out, err := cli.ExecTestCLICmd(clientCtx, cmd, tc.args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res types.QueryGetInactiveLimitOrderTrancheResponse +// require.NoError(s.T(), clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.NotEmpty(s.T(), res) +// require.Equal(s.T(), tc.expOutput, res.InactiveLimitOrderTranche) +// } +// }) +// } +// } diff --git a/x/dex/client/cli/query_tick_liquidity.go b/x/dex/client/cli/query_tick_liquidity.go new file mode 100644 index 000000000..2076f5d34 --- /dev/null +++ b/x/dex/client/cli/query_tick_liquidity.go @@ -0,0 +1,50 @@ +package cli + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListTickLiquidity() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-tick-liquidity [pair-id] [token-in]", + Short: "list all tickLiquidity", + Example: "list-tick-liquidity tokenA<>tokenB tokenA", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + argPairID := args[0] + argTokenIn := args[1] + + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllTickLiquidityRequest{ + PairID: argPairID, + TokenIn: argTokenIn, + Pagination: pageReq, + } + + res, err := queryClient.TickLiquidityAll(context.Background(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query_user_deposits.go b/x/dex/client/cli/query_user_deposits.go new file mode 100644 index 000000000..410e44f63 --- /dev/null +++ b/x/dex/client/cli/query_user_deposits.go @@ -0,0 +1,43 @@ +package cli + +import ( + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListUserDeposits() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-user-deposits [address]", + Short: "list all users deposits", + Example: "list-user-deposits alice", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + reqAddress := args[0] + + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllUserDepositsRequest{ + Address: reqAddress, + } + + res, err := queryClient.UserDepositsAll(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + + return cmd +} diff --git a/x/dex/client/cli/query_user_limit_orders.go b/x/dex/client/cli/query_user_limit_orders.go new file mode 100644 index 000000000..2800a6943 --- /dev/null +++ b/x/dex/client/cli/query_user_limit_orders.go @@ -0,0 +1,43 @@ +package cli + +import ( + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdListUserLimitOrders() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-user-limit-orders [address]", + Short: "list all users limit orders", + Example: "list-user-limit-orders alice", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + reqAddress := args[0] + + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllUserLimitOrdersRequest{ + Address: reqAddress, + } + + res, err := queryClient.LimitOrderTrancheUserAllByAddress(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + + return cmd +} diff --git a/x/dex/client/cli/tx.go b/x/dex/client/cli/tx.go new file mode 100644 index 000000000..7628cad30 --- /dev/null +++ b/x/dex/client/cli/tx.go @@ -0,0 +1,34 @@ +package cli + +import ( + "fmt" + "time" + + "github.com/spf13/cobra" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/neutron-org/neutron/x/dex/types" +) + +var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) + +// GetTxCmd returns the transaction commands for this module +func GetTxCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: types.ModuleName, + Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand(CmdDeposit()) + cmd.AddCommand(CmdWithdrawal()) + cmd.AddCommand(CmdPlaceLimitOrder()) + cmd.AddCommand(CmdWithdrawFilledLimitOrder()) + cmd.AddCommand(CmdCancelLimitOrder()) + cmd.AddCommand(CmdMultiHopSwap()) + // this line is used by starport scaffolding # 1 + + return cmd +} diff --git a/x/dex/client/cli/tx_cancel_limit_order.go b/x/dex/client/cli/tx_cancel_limit_order.go new file mode 100644 index 000000000..2eb7340f3 --- /dev/null +++ b/x/dex/client/cli/tx_cancel_limit_order.go @@ -0,0 +1,38 @@ +package cli + +import ( + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdCancelLimitOrder() *cobra.Command { + cmd := &cobra.Command{ + Use: "cancel-limit-order [tranche-key]", + Short: "Broadcast message CancelLimitOrder", + Example: "cancel-limit-order TRANCHEKEY123 --from alice", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgCancelLimitOrder( + clientCtx.GetFromAddress().String(), + args[0], + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/tx_deposit.go b/x/dex/client/cli/tx_deposit.go new file mode 100644 index 000000000..23c6300e4 --- /dev/null +++ b/x/dex/client/cli/tx_deposit.go @@ -0,0 +1,121 @@ +package cli + +import ( + "log" + "strconv" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdDeposit() *cobra.Command { + cmd := &cobra.Command{ + //nolint:lll + Use: "deposit [receiver] [token-a] [token-b] [list of amount-0] [list of amount-1] [list of tick-index] [list of fees] [disable_autoswap]", + Short: "Broadcast message deposit", + Example: "deposit alice tokenA tokenB 100,0 0,50 [-10,5] 1,1 false,false --from alice", + Args: cobra.ExactArgs(8), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argReceiver := args[0] + argTokenA := args[1] + argTokenB := args[2] + argAmountsA := strings.Split(args[3], ",") + argAmountsB := strings.Split(args[4], ",") + + if args[5] == "-" { + log.Printf("\"this is a test\": %v\n", "this is a test") + } + + if strings.HasPrefix(args[5], "[") && strings.HasSuffix(args[5], "]") { + args[5] = strings.TrimPrefix(args[5], "[") + args[5] = strings.TrimSuffix(args[5], "]") + } + argTicksIndexes := strings.Split(args[5], ",") + + argFees := strings.Split(args[6], ",") + argDepositOptions := strings.Split(args[7], ",") + + var AmountsA []sdk.Int + var AmountsB []sdk.Int + var TicksIndexesInt []int64 + var FeesUint []uint64 + var DepositOptions []*types.DepositOptions + + for _, s := range argAmountsA { + amountA, ok := sdk.NewIntFromString(s) + if !ok { + return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer overflow for amountsA") + } + + AmountsA = append(AmountsA, amountA) + } + + for _, s := range argAmountsB { + amountB, ok := sdk.NewIntFromString(s) + if !ok { + return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer overflow for amountsB") + } + + AmountsB = append(AmountsB, amountB) + } + + for _, s := range argTicksIndexes { + TickIndexInt, err := strconv.ParseInt(s, 10, 0) + if err != nil { + return err + } + + TicksIndexesInt = append(TicksIndexesInt, TickIndexInt) + } + + for _, s := range argFees { + FeeInt, err := strconv.ParseUint(s, 10, 0) + if err != nil { + return err + } + + FeesUint = append(FeesUint, FeeInt) + } + + for _, s := range argDepositOptions { + disableAutoswap, err := strconv.ParseBool(s) + if err != nil { + return err + } + DepositOptions = append(DepositOptions, &types.DepositOptions{DisableAutoswap: disableAutoswap}) + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgDeposit( + clientCtx.GetFromAddress().String(), + argReceiver, + argTokenA, + argTokenB, + AmountsA, + AmountsB, + TicksIndexesInt, + FeesUint, + DepositOptions, + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/tx_multi_hop_swap.go b/x/dex/client/cli/tx_multi_hop_swap.go new file mode 100644 index 000000000..ff3eb34f9 --- /dev/null +++ b/x/dex/client/cli/tx_multi_hop_swap.go @@ -0,0 +1,75 @@ +package cli + +import ( + "strconv" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +var _ = strconv.Itoa(0) + +func CmdMultiHopSwap() *cobra.Command { + cmd := &cobra.Command{ + Use: "multi-hop-swap [receiver] [routes] [amount-in] [exit-limit-price] [pick-best-route]", + Short: "Broadcast message multiHopSwap", + Args: cobra.ExactArgs(5), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argReceiever := args[0] + argRoutes := strings.Split(args[1], ";") + argAmountIn := args[2] + argExitLimitPrice := args[3] + argPickBest := args[4] + + routesArr := make([][]string, len(argRoutes)) + for i, route := range argRoutes { + routesArr[i] = strings.Split(route, ",") + } + + amountInInt, ok := sdk.NewIntFromString(argAmountIn) + if !ok { + return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Invalid value for amount-in") + } + + exitLimitPriceDec, err := math_utils.NewPrecDecFromStr(argExitLimitPrice) + if err != nil { + return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Invalid value for exit-limit-price") + } + + pickBest, err := strconv.ParseBool(argPickBest) + if err != nil { + return err + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgMultiHopSwap( + clientCtx.GetFromAddress().String(), + argReceiever, + routesArr, + amountInInt, + exitLimitPriceDec, + pickBest, + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/tx_place_limit_order.go b/x/dex/client/cli/tx_place_limit_order.go new file mode 100644 index 000000000..4e4faa95d --- /dev/null +++ b/x/dex/client/cli/tx_place_limit_order.go @@ -0,0 +1,107 @@ +package cli + +import ( + "strconv" + "strings" + "time" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdPlaceLimitOrder() *cobra.Command { + cmd := &cobra.Command{ + //nolint:lll + Use: "place-limit-order [receiver] [token-in] [token-out] [tick-index] [amount-in] ?[order-type] ?[expirationTime] ?(--max-amout-out)", + Short: "Broadcast message PlaceLimitOrder", + Example: "place-limit-order alice tokenA tokenB [-10] tokenA 50 GOOD_TIL_TIME '01/02/2006 15:04:05' --max-amount-out 20 --from alice", + Args: cobra.RangeArgs(5, 7), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argReceiver := args[0] + argTokenIn := args[1] + argTokenOut := args[2] + if strings.HasPrefix(args[3], "[") && strings.HasSuffix(args[3], "]") { + args[3] = strings.TrimPrefix(args[3], "[") + args[3] = strings.TrimSuffix(args[3], "]") + } + argTickIndex := args[3] + argTickIndexInt, err := strconv.ParseInt(argTickIndex, 10, 0) + if err != nil { + return err + } + argAmountIn := args[4] + + amountInInt, ok := sdk.NewIntFromString(argAmountIn) + if !ok { + return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer overflow for amount-in") + } + + orderType := types.LimitOrderType_GOOD_TIL_CANCELLED + if len(args) >= 6 { + orderTypeInt, ok := types.LimitOrderType_value[args[5]] + if !ok { + return types.ErrInvalidOrderType + } + orderType = types.LimitOrderType(orderTypeInt) + } + + var goodTil *time.Time + if len(args) == 7 { + const timeFormat = "01/02/2006 15:04:05" + tm, err := time.Parse(timeFormat, args[6]) + if err != nil { + return sdkerrors.Wrapf(types.ErrInvalidTimeString, err.Error()) + } + goodTil = &tm + } + + maxAmountOutArg, err := cmd.Flags().GetString(FlagMaxAmountOut) + if err != nil { + return err + } + var maxAmountOutIntP *sdk.Int = nil + if maxAmountOutArg != "" { + maxAmountOutInt, ok := sdk.NewIntFromString(maxAmountOutArg) + if !ok { + return sdkerrors.Wrapf( + types.ErrIntOverflowTx, + "Integer overflow for max-amount-out", + ) + } + maxAmountOutIntP = &maxAmountOutInt + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgPlaceLimitOrder( + clientCtx.GetFromAddress().String(), + argReceiver, + argTokenIn, + argTokenOut, + argTickIndexInt, + amountInInt, + orderType, + goodTil, + maxAmountOutIntP, + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + cmd.Flags().AddFlagSet(FlagSetMaxAmountOut()) + + return cmd +} diff --git a/x/dex/client/cli/tx_test.go b/x/dex/client/cli/tx_test.go new file mode 100644 index 000000000..389138114 --- /dev/null +++ b/x/dex/client/cli/tx_test.go @@ -0,0 +1,657 @@ +package cli + +// import ( +// "fmt" +// "regexp" +// "testing" + +// "github.com/cosmos/cosmos-sdk/client" +// "github.com/cosmos/cosmos-sdk/client/flags" +// "github.com/cosmos/cosmos-sdk/crypto/hd" +// "github.com/cosmos/cosmos-sdk/crypto/keyring" +// kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" +// "github.com/cosmos/cosmos-sdk/testutil" +// "github.com/cosmos/cosmos-sdk/testutil/cli" +// clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" +// "github.com/cosmos/cosmos-sdk/testutil/network" +// sdk "github.com/cosmos/cosmos-sdk/types" + +// // "github.com/neutron-org/neutron/testutil/network" +// cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" +// "github.com/neutron-org/neutron/app" +// dexClient "github.com/neutron-org/neutron/x/dex/client/cli" +// "github.com/neutron-org/neutron/x/dex/types" +// "github.com/stretchr/testify/require" +// "github.com/stretchr/testify/suite" +// ) + +// type TxTestSuite struct { +// suite.Suite + +// kr *keyring.Keyring +// cfg network.Config +// network *network.Network + +// addrs []sdk.AccAddress +// trancheKey string +// } + +// func NewTxTestSuite(cfg network.Config) *TxTestSuite { +// return &TxTestSuite{cfg: cfg} +// } + +// func TestTxTestSuite(t *testing.T) { +// cfg := network.DefaultConfig(app.NewTestNetworkFixture) +// cfg.NumValidators = 1 +// suite.Run(t, NewTxTestSuite(cfg)) +// } + +// func findTrancheKeyInTx(tx string) string { +// re := regexp.MustCompile(`TrancheKey.*?:\\"([a-z0-9]+)`) +// return re.FindStringSubmatch(tx)[1] +// } + +// func (s *TxTestSuite) SetupSuite() { +// s.T().Log("setting up e2e test suite") +// var err error +// s.network, err = network.New(s.T(), s.T().TempDir(), s.cfg) +// s.Require().NoError(err) + +// kb := s.network.Validators[0].ClientCtx.Keyring +// _, _, err = kb.NewMnemonic( +// "newAccount", +// keyring.English, +// sdk.FullFundraiserPath, +// keyring.DefaultBIP39Passphrase, +// hd.Secp256k1, +// ) +// s.Require().NoError(err) + +// account1, _, err := kb.NewMnemonic( +// "newAccount1", +// keyring.English, +// sdk.FullFundraiserPath, +// keyring.DefaultBIP39Passphrase, +// hd.Secp256k1, +// ) +// s.Require().NoError(err) + +// account2, _, err := kb.NewMnemonic( +// "newAccount2", +// keyring.English, +// sdk.FullFundraiserPath, +// keyring.DefaultBIP39Passphrase, +// hd.Secp256k1, +// ) +// s.Require().NoError(err) +// pub1, err := account1.GetPubKey() +// s.Require().NoError(err) +// pub2, err := account2.GetPubKey() +// s.Require().NoError(err) + +// // Create a dummy account for testing purpose +// _, _, err = kb.NewMnemonic( +// "dummyAccount", +// keyring.English, +// sdk.FullFundraiserPath, +// keyring.DefaultBIP39Passphrase, +// hd.Secp256k1, +// ) +// s.Require().NoError(err) + +// multi := kmultisig.NewLegacyAminoPubKey(2, []cryptotypes.PubKey{pub1, pub2}) +// _, err = kb.SaveMultisig("multi", multi) +// s.Require().NoError(err) +// s.Require().NoError(s.network.WaitForNextBlock()) + +// // s.encCfg = app.MakeEncodingConfig() +// // s.kr = keyring.NewInMemory(s.encCfg.Marshaler) +// // s.baseCtx = client.Context{}. +// // WithKeyring(s.kr). +// // WithTxConfig(s.encCfg.TxConfig). +// // WithCodec(s.encCfg.Marshaler). +// // WithClient(clitestutil.MockTendermintRPC{Client: rpcclientmock.Client{}}). +// // WithAccountRetriever(client.MockAccountRetriever{}). +// // WithOutput(io.Discard). +// // WithChainID("test-chain") + +// // ctxGen := func() client.Context { +// // bz, _ := s.encCfg.Marshaler.Marshal(&sdk.TxResponse{}) +// // c := clitestutil.NewMockTendermintRPC(abci.ResponseQuery{ +// // Value: bz, +// // }) +// // return s.baseCtx.WithClient(c) +// // } +// // s.clientCtx = ctxGen() + +// // s.addrs = make([]sdk.AccAddress, 0) +// // for i := 0; i < 3; i++ { +// // k, _, err := s.clientCtx.Keyring.NewMnemonic( +// // "NewValidator", +// // keyring.English, +// // sdk.FullFundraiserPath, +// // keyring.DefaultBIP39Passphrase, +// // hd.Secp256k1, +// // ) +// // s.Require().NoError(err) + +// // pub, err := k.GetPubKey() +// // s.Require().NoError(err) + +// // newAddr := sdk.AccAddress(pub.Address()) +// // s.addrs = append(s.addrs, newAddr) +// // } +// } + +// func (s *TxTestSuite) fundAccount( +// clientCtx client.Context, +// from, to sdk.AccAddress, +// coins sdk.Coins, +// ) { +// require := s.Require() + +// commonFlags := []string{ +// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), +// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), +// fmt.Sprintf( +// "--%s=%s", +// flags.FlagFees, +// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// ), +// } +// out, err := clitestutil.MsgSendExec( +// clientCtx, +// from, +// to, +// coins, +// commonFlags..., +// ) +// require.NoError(err) +// var res sdk.TxResponse +// require.NoError(clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.Zero(res.Code, res.RawLog) +// } + +// func (s *TxTestSuite) TestTxCmdDeposit() { +// val := testutil.CreateKeyringAccounts(s.T(), s.kr, 1) +// commonFlags := []string{ +// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), +// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), +// fmt.Sprintf( +// "--%s=%s", +// flags.FlagFees, +// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// ), +// fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), +// fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), +// } + +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// errInRes bool +// }{ +// { +// name: "missing arguments", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "10", +// "10", +// "[0]", +// "false", +// }, +// expErr: true, +// expErrMsg: "Error: accepts 8 arg(s), received 7", +// }, +// { +// name: "too many arguments", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "10", +// "10", +// "[0]", +// "1", +// "false", +// s.addrs[0].String(), +// }, +// expErr: true, +// expErrMsg: "Error: accepts 8 arg(s), received 9", +// }, +// { +// name: "valid", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "10", +// "10", +// "[0]", +// "1", +// "false", +// }, +// errInRes: false, +// }, +// { +// name: "valid: multiple case", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "0,0", +// "10,10", +// "[25,25]", +// "1,1", +// "false,false", +// }, +// errInRes: false, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexClient.CmdDeposit() +// args := append(tc.args, commonFlags...) +// out, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// if tc.errInRes { +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res sdk.TxResponse +// require.NoError(s.T(), s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.Zero(s.T(), res.Code, res.RawLog) +// } +// } +// }) +// } +// } + +// func (s *TxTestSuite) TestTx2CmdWithdraw() { +// val := testutil.CreateKeyringAccounts(s.T(), s.kr, 1) +// commonFlags := []string{ +// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), +// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), +// fmt.Sprintf( +// "--%s=%s", +// flags.FlagFees, +// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// ), +// fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), +// fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), +// } + +// // Deposit Funds +// args := append( +// []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "10", +// "10", +// "[0]", +// "0", +// "false", +// }, +// commonFlags...) +// cmd := dexClient.CmdDeposit() +// _, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// require.NoError(s.T(), err) + +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// errInRes bool +// }{ +// { +// // "withdrawal [receiver] [token-a] [token-b] [list of shares-to-remove] [list of tick-index] [list of fee indexes] ", +// name: "missing arguments", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "[10]", +// "0", +// }, +// expErr: true, +// expErrMsg: "Error: accepts 6 arg(s), received 5", +// }, +// { +// name: "too many arguments", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "10", +// "[0]", +// "1", +// s.addrs[0].String(), +// }, +// expErr: true, +// expErrMsg: "Error: accepts 6 arg(s), received 7", +// }, +// { +// name: "valid", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "10", +// "[0]", +// "1", +// }, +// errInRes: false, +// }, +// { +// name: "valid: multiple case", +// args: []string{ +// val[0].Address.String(), +// "TokenA", +// "TokenB", +// "2,2", +// "[0,0]", +// "0,1", +// }, +// errInRes: false, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexClient.CmdWithdrawal() +// args := append(tc.args, commonFlags...) +// out, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// if tc.errInRes { +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res sdk.TxResponse +// require.NoError(s.T(), s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.Zero(s.T(), res.Code, res.RawLog) +// } +// } +// }) +// } +// } + +// func (s *TxTestSuite) TestTx4Cmd4PlaceLimitOrder() { +// val := testutil.CreateKeyringAccounts(s.T(), s.kr, 1) +// commonFlags := []string{ +// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), +// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), +// fmt.Sprintf( +// "--%s=%s", +// flags.FlagFees, +// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// ), +// fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), +// fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), +// } + +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// errInRes bool +// }{ +// { +// // "place-limit-order [receiver] [token-in] [token-out] [tick-index] [amount-in] ?[order-type] ?[expirationTime] ?(--max-amout-out)" +// name: "missing arguments", +// args: []string{s.addrs[0].String(), "TokenA", "TokenB", "[0]"}, +// expErr: true, +// expErrMsg: "Error: accepts between 5 and 7 arg(s), received 4", +// }, +// { +// name: "too many arguments", +// args: []string{ +// s.addrs[0].String(), +// "TokenA", +// "TokenB", +// "[0]", +// "10", +// "1", +// "1", +// "BAD", +// }, +// expErr: true, +// expErrMsg: "Error: accepts between 5 and 7 arg(s), received 8", +// }, +// { +// name: "invalid orderType", +// args: []string{ +// s.addrs[0].String(), +// "TokenA", +// "TokenB", +// "[0]", +// "10", +// "JUST_SEND_IT", +// }, +// expErr: true, +// expErrMsg: types.ErrInvalidOrderType.Error(), +// }, +// { +// name: "invalid goodTil", +// args: []string{ +// s.addrs[0].String(), +// "TokenA", +// "TokenB", +// "[0]", +// "10", +// "GOOD_TIL_TIME", +// "january", +// }, +// expErr: true, +// expErrMsg: types.ErrInvalidTimeString.Error(), +// }, +// { +// name: "valid", +// args: []string{s.addrs[0].String(), "TokenB", "TokenA", "[0]", "10"}, +// errInRes: false, +// }, +// { +// name: "valid goodTil", +// args: []string{ +// s.addrs[0].String(), +// "TokenB", +// "TokenA", +// "[0]", +// "10", +// "GOOD_TIL_TIME", +// "06/15/2025 02:00:00", +// }, +// errInRes: false, +// }, +// { +// name: "valid with maxAmountOut", +// args: []string{ +// s.addrs[0].String(), +// "TokenB", +// "TokenA", +// "[2]", +// "10", +// "FILL_OR_KILL", +// "--max-amount-out=10", +// }, +// errInRes: false, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexClient.CmdPlaceLimitOrder() +// args := append(tc.args, commonFlags...) +// out, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// if tc.errInRes { +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res sdk.TxResponse +// require.NoError(s.T(), s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.Zero(s.T(), res.Code, res.RawLog) +// } +// } +// }) +// } +// } + +// func (s *TxTestSuite) TestTx5CmdCancelLimitOrder() { +// val := testutil.CreateKeyringAccounts(s.T(), s.kr, 1) +// commonFlags := []string{ +// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), +// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), +// fmt.Sprintf( +// "--%s=%s", +// flags.FlagFees, +// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// ), +// fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), +// fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), +// } + +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// errInRes bool +// }{ +// { +// // "cancel-limit-order [tranche-key]" +// name: "missing arguments", +// args: []string{}, +// expErr: true, +// expErrMsg: "Error: accepts 1 arg(s), received 0", +// }, +// { +// name: "too many arguments", +// args: []string{"trancheKey123", "extraarg"}, +// expErr: true, +// expErrMsg: "Error: accepts 1 arg(s), received 2", +// }, +// { +// name: "valid", +// args: []string{s.trancheKey}, +// errInRes: false, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexClient.CmdCancelLimitOrder() +// args := append(tc.args, commonFlags...) +// out, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// if tc.errInRes { +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res sdk.TxResponse +// require.NoError(s.T(), s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.Zero(s.T(), res.Code, res.RawLog) +// } +// } +// }) +// } +// } + +// func (s *TxTestSuite) TestTx6CmdWithdrawFilledLimitOrder() { +// val := testutil.CreateKeyringAccounts(s.T(), s.kr, 1) + +// commonFlags := []string{ +// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), +// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), +// fmt.Sprintf( +// "--%s=%s", +// flags.FlagFees, +// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// ), +// fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), +// fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), +// } + +// // Place Limit Order +// args := append( +// []string{val[0].Address.String(), "TokenB", "TokenA", "[0]", "10"}, +// commonFlags...) +// cmd := dexClient.CmdPlaceLimitOrder() +// txBuff, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// require.NoError(s.T(), err) +// trancheKey := findTrancheKeyInTx(txBuff.String()) + +// argsSwap := append( +// []string{s.addrs[0].String(), "TokenA", "TokenB", "0", "30", "IMMEDIATE_OR_CANCEL"}, +// commonFlags...) +// cmd = dexClient.CmdPlaceLimitOrder() +// _, err = cli.ExecTestCLICmd(s.clientCtx, cmd, argsSwap) +// require.NoError(s.T(), err) + +// testCases := []struct { +// name string +// args []string +// expErr bool +// expErrMsg string +// errInRes bool +// }{ +// { +// // "withdraw-filled-limit-order [tranche-key]" +// name: "missing arguments", +// args: []string{}, +// expErr: true, +// expErrMsg: "Error: accepts 1 arg(s), received 0", +// }, +// { +// name: "too many arguments", +// args: []string{"trancheKey123", "EXTRA-ARG"}, +// expErr: true, +// expErrMsg: "Error: accepts 1 arg(s), received 2", +// }, +// { +// name: "valid", +// args: []string{trancheKey}, +// errInRes: false, +// }, +// } + +// for _, tc := range testCases { +// s.Run(tc.name, func() { +// cmd := dexClient.CmdWithdrawFilledLimitOrder() +// args := append(tc.args, commonFlags...) +// out, err := cli.ExecTestCLICmd(s.clientCtx, cmd, args) +// if tc.expErr { +// require.Error(s.T(), err) +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// if tc.errInRes { +// require.Contains(s.T(), out.String(), tc.expErrMsg) +// } else { +// require.NoError(s.T(), err) +// var res sdk.TxResponse +// require.NoError(s.T(), s.clientCtx.Codec.UnmarshalJSON(out.Bytes(), &res)) +// require.Zero(s.T(), res.Code, res.RawLog) +// } +// } +// }) +// } +// } diff --git a/x/dex/client/cli/tx_withdrawl.go b/x/dex/client/cli/tx_withdrawl.go new file mode 100644 index 000000000..534ee2613 --- /dev/null +++ b/x/dex/client/cli/tx_withdrawl.go @@ -0,0 +1,91 @@ +package cli + +import ( + "strconv" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdWithdrawal() *cobra.Command { + cmd := &cobra.Command{ + Use: "withdrawal [receiver] [token-a] [token-b] [list of shares-to-remove] [list of tick-index] [list of fees] ", + Short: "Broadcast message withdrawal", + Example: "withdrawal alice tokenA tokenB 100,50 [-10,5] 1,1 --from alice", + Args: cobra.ExactArgs(6), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argReceiver := args[0] + argTokenA := args[1] + argTokenB := args[2] + argSharesToRemove := strings.Split(args[3], ",") + + if strings.HasPrefix(args[4], "[") && strings.HasSuffix(args[4], "]") { + args[4] = strings.TrimPrefix(args[4], "[") + args[4] = strings.TrimSuffix(args[4], "]") + } + argTickIndexes := strings.Split(args[4], ",") + argFees := strings.Split(args[5], ",") + + var SharesToRemoveInt []sdk.Int + var TicksIndexesInt []int64 + var FeesUint []uint64 + for _, s := range argSharesToRemove { + sharesToRemoveInt, ok := sdk.NewIntFromString(s) + + if !ok { + return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer Overflow for shares-to-remove") + } + + SharesToRemoveInt = append(SharesToRemoveInt, sharesToRemoveInt) + } + + for _, s := range argTickIndexes { + TickIndexInt, err := strconv.ParseInt(s, 10, 0) + if err != nil { + return err + } + + TicksIndexesInt = append(TicksIndexesInt, TickIndexInt) + } + + for _, s := range argFees { + feeInt, err := strconv.ParseUint(s, 10, 0) + if err != nil { + return err + } + + FeesUint = append(FeesUint, feeInt) + } + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgWithdrawal( + clientCtx.GetFromAddress().String(), + argReceiver, + argTokenA, + argTokenB, + SharesToRemoveInt, + TicksIndexesInt, + FeesUint, + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/tx_withdrawl_filled_limit_order.go b/x/dex/client/cli/tx_withdrawl_filled_limit_order.go new file mode 100644 index 000000000..9809c1cd5 --- /dev/null +++ b/x/dex/client/cli/tx_withdrawl_filled_limit_order.go @@ -0,0 +1,38 @@ +package cli + +import ( + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" +) + +func CmdWithdrawFilledLimitOrder() *cobra.Command { + cmd := &cobra.Command{ + Use: "withdraw-filled-limit-order [tranche-key]", + Short: "Broadcast message WithdrawFilledLimitOrder", + Example: "withdraw-filled-limit-order TRANCHEKEY123 --from alice", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgWithdrawFilledLimitOrder( + clientCtx.GetFromAddress().String(), + args[0], + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/genesis.go b/x/dex/genesis.go new file mode 100644 index 000000000..d0d9ff1b2 --- /dev/null +++ b/x/dex/genesis.go @@ -0,0 +1,54 @@ +package dex + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/keeper" + + "github.com/neutron-org/neutron/x/dex/types" +) + +// InitGenesis initializes the capability module's state from a provided genesis +// state. +func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { + // Set all the tickLiquidity + for _, elem := range genState.TickLiquidityList { + switch elem.Liquidity.(type) { + case *types.TickLiquidity_PoolReserves: + k.SetPoolReserves(ctx, elem.GetPoolReserves()) + case *types.TickLiquidity_LimitOrderTranche: + k.SetLimitOrderTranche(ctx, elem.GetLimitOrderTranche()) + } + } + // Set all the inactiveLimitOrderTranche + for _, elem := range genState.InactiveLimitOrderTrancheList { + k.SetInactiveLimitOrderTranche(ctx, elem) + } + + // Set all the LimitOrderTrancheUser + for _, elem := range genState.LimitOrderTrancheUserList { + k.SetLimitOrderTrancheUser(ctx, elem) + } + // Set all the poolMetadata + for _, elem := range genState.PoolMetadataList { + k.SetPoolMetadata(ctx, elem) + } + + // Set poolMetadata count + k.SetPoolCount(ctx, genState.PoolCount) + // this line is used by starport scaffolding # genesis/module/init + k.SetParams(ctx, genState.Params) +} + +// ExportGenesis returns the capability module's exported genesis. +func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { + genesis := types.DefaultGenesis() + genesis.Params = k.GetParams(ctx) + genesis.LimitOrderTrancheUserList = k.GetAllLimitOrderTrancheUser(ctx) + genesis.TickLiquidityList = k.GetAllTickLiquidity(ctx) + genesis.InactiveLimitOrderTrancheList = k.GetAllInactiveLimitOrderTranche(ctx) + genesis.PoolMetadataList = k.GetAllPoolMetadata(ctx) + genesis.PoolCount = k.GetPoolCount(ctx) + // this line is used by starport scaffolding # genesis/module/export + + return genesis +} diff --git a/x/dex/genesis_test.go b/x/dex/genesis_test.go new file mode 100644 index 000000000..3984887c7 --- /dev/null +++ b/x/dex/genesis_test.go @@ -0,0 +1,125 @@ +package dex_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestGenesis(t *testing.T) { + genesisState := types.GenesisState{ + Params: types.DefaultParams(), + LimitOrderTrancheUserList: []*types.LimitOrderTrancheUser{ + { + TradePairID: &types.TradePairID{ + TakerDenom: "TokenA", + MakerDenom: "TokenB", + }, + TickIndexTakerToMaker: 1, + TrancheKey: "0", + Address: "fakeAddr", + SharesOwned: sdk.NewInt(10), + SharesWithdrawn: sdk.NewInt(0), + SharesCancelled: sdk.NewInt(0), + }, + { + TradePairID: &types.TradePairID{ + TakerDenom: "TokenB", + MakerDenom: "TokenA", + }, + TickIndexTakerToMaker: 20, + TrancheKey: "0", + Address: "fakeAddr", + SharesOwned: sdk.NewInt(10), + SharesWithdrawn: sdk.NewInt(0), + SharesCancelled: sdk.NewInt(0), + }, + }, + TickLiquidityList: []*types.TickLiquidity{ + { + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: types.MustNewLimitOrderTranche( + "TokenB", + "TokenA", + "0", + 0, + sdk.ZeroInt(), + sdk.ZeroInt(), + sdk.ZeroInt(), + sdk.ZeroInt(), + ), + }, + }, + { + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: types.MustNewLimitOrderTranche( + "TokenB", + "TokenA", + "0", + 0, + sdk.ZeroInt(), + sdk.ZeroInt(), + sdk.ZeroInt(), + sdk.ZeroInt(), + ), + }, + }, + }, + InactiveLimitOrderTrancheList: []*types.LimitOrderTranche{ + { + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{ + TakerDenom: "TokenA", + MakerDenom: "TokenB", + }, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + { + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{ + TakerDenom: "TokenA", + MakerDenom: "TokenB", + }, + TickIndexTakerToMaker: 1, + TrancheKey: "1", + }, + }, + }, + PoolMetadataList: []types.PoolMetadata{ + { + ID: 0, + }, + { + ID: 1, + }, + }, + PoolCount: 2, + // this line is used by starport scaffolding # genesis/test/state + } + + k, ctx := keepertest.DexKeeper(t) + dex.InitGenesis(ctx, *k, genesisState) + got := dex.ExportGenesis(ctx, *k) + require.NotNil(t, got) + + nullify.Fill(&genesisState) + nullify.Fill(got) + + require.ElementsMatch(t, genesisState.LimitOrderTrancheUserList, got.LimitOrderTrancheUserList) + require.ElementsMatch(t, genesisState.TickLiquidityList, got.TickLiquidityList) + require.ElementsMatch( + t, + genesisState.InactiveLimitOrderTrancheList, + got.InactiveLimitOrderTrancheList, + ) + require.ElementsMatch(t, genesisState.PoolMetadataList, got.PoolMetadataList) + require.Equal(t, genesisState.PoolCount, got.PoolCount) + // this line is used by starport scaffolding # genesis/test/assert +} diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go new file mode 100644 index 000000000..5e35eae1a --- /dev/null +++ b/x/dex/keeper/core.go @@ -0,0 +1,581 @@ +package keeper + +import ( + "context" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/dex/utils" +) + +// NOTE: Currently we are using TruncateInt in multiple places for converting Decs back into sdk.Ints. +// This may create some accounting anomalies but seems preferable to other alternatives. +// See full ADR here: https://www.notion.so/dualityxyz/A-Modest-Proposal-For-Truncating-696a919d59254876a617f82fb9567895 + +// Handles core logic for MsgDeposit, checking and initializing data structures (tick, pair), calculating +// shares based on amount deposited, and sending funds to moduleAddress. +func (k Keeper) DepositCore( + goCtx context.Context, + pairID *types.PairID, + callerAddr sdk.AccAddress, + receiverAddr sdk.AccAddress, + amounts0 []sdk.Int, + amounts1 []sdk.Int, + tickIndices []int64, + fees []uint64, + options []*types.DepositOptions, +) (amounts0Deposit, amounts1Deposit []sdk.Int, sharesIssued sdk.Coins, err error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + totalAmountReserve0 := sdk.ZeroInt() + totalAmountReserve1 := sdk.ZeroInt() + amounts0Deposited := make([]sdk.Int, len(amounts0)) + amounts1Deposited := make([]sdk.Int, len(amounts1)) + sharesIssued = sdk.Coins{} + + for i := 0; i < len(amounts0); i++ { + amounts0Deposited[i] = sdk.ZeroInt() + amounts1Deposited[i] = sdk.ZeroInt() + } + + for i, amount0 := range amounts0 { + amount1 := amounts1[i] + tickIndex := tickIndices[i] + fee := fees[i] + + if err := k.ValidateFee(ctx, fee); err != nil { + return nil, nil, nil, err + } + autoswap := !options[i].DisableAutoswap + + pool, err := k.GetOrInitPool( + ctx, + pairID, + tickIndex, + fee, + ) + if err != nil { + return nil, nil, nil, err + } + + existingShares := k.bankKeeper.GetSupply(ctx, pool.GetPoolDenom()).Amount + + inAmount0, inAmount1, outShares := pool.Deposit(amount0, amount1, existingShares, autoswap) + + k.SetPool(ctx, pool) + + if inAmount0.IsZero() && inAmount1.IsZero() { + return nil, nil, nil, types.ErrZeroTrueDeposit + } + + if outShares.IsZero() { + return nil, nil, nil, types.ErrDepositShareUnderflow + } + + if err := k.MintShares(ctx, receiverAddr, outShares); err != nil { + return nil, nil, nil, err + } + sharesIssued = sharesIssued.Add(outShares) + + amounts0Deposited[i] = inAmount0 + amounts1Deposited[i] = inAmount1 + totalAmountReserve0 = totalAmountReserve0.Add(inAmount0) + totalAmountReserve1 = totalAmountReserve1.Add(inAmount1) + + ctx.EventManager().EmitEvent(types.CreateDepositEvent( + callerAddr, + receiverAddr, + pairID.Token0, + pairID.Token1, + tickIndex, + fee, + inAmount0, + inAmount1, + outShares.Amount, + )) + } + + if totalAmountReserve0.IsPositive() { + coin0 := sdk.NewCoin(pairID.Token0, totalAmountReserve0) + if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, callerAddr, types.ModuleName, sdk.Coins{coin0}); err != nil { + return nil, nil, nil, err + } + } + + if totalAmountReserve1.IsPositive() { + coin1 := sdk.NewCoin(pairID.Token1, totalAmountReserve1) + if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, callerAddr, types.ModuleName, sdk.Coins{coin1}); err != nil { + return nil, nil, nil, err + } + } + + return amounts0Deposited, amounts1Deposited, sharesIssued, nil +} + +// Handles core logic for MsgWithdrawal; calculating and withdrawing reserve0,reserve1 from a specified tick +// given a specfied number of shares to remove. +// Calculates the amount of reserve0, reserve1 to withdraw based on the percentage of the desired +// number of shares to remove compared to the total number of shares at the given tick. +func (k Keeper) WithdrawCore( + goCtx context.Context, + pairID *types.PairID, + callerAddr sdk.AccAddress, + receiverAddr sdk.AccAddress, + sharesToRemoveList []sdk.Int, + tickIndicesNormalized []int64, + fees []uint64, +) error { + ctx := sdk.UnwrapSDKContext(goCtx) + totalReserve0ToRemove := sdk.ZeroInt() + totalReserve1ToRemove := sdk.ZeroInt() + + for i, fee := range fees { + sharesToRemove := sharesToRemoveList[i] + tickIndex := tickIndicesNormalized[i] + + pool, err := k.GetOrInitPool(ctx, pairID, tickIndex, fee) + if err != nil { + return err + } + + poolDenom := pool.GetPoolDenom() + + totalShares := k.bankKeeper.GetSupply(ctx, poolDenom).Amount + if totalShares.LT(sharesToRemove) { + return sdkerrors.Wrapf( + types.ErrInsufficientShares, + "%s does not have %s shares of type %s", + callerAddr, + sharesToRemove, + poolDenom, + ) + } + + outAmount0, outAmount1 := pool.Withdraw(sharesToRemove, totalShares) + k.SetPool(ctx, pool) + + if sharesToRemove.IsPositive() { + if err := k.BurnShares(ctx, callerAddr, sharesToRemove, poolDenom); err != nil { + return err + } + } + + totalReserve0ToRemove = totalReserve0ToRemove.Add(outAmount0) + totalReserve1ToRemove = totalReserve1ToRemove.Add(outAmount1) + + ctx.EventManager().EmitEvent(types.CreateWithdrawEvent( + callerAddr, + receiverAddr, + pairID.Token0, + pairID.Token1, + tickIndex, + fee, + outAmount0, + outAmount1, + sharesToRemove, + )) + } + + if totalReserve0ToRemove.IsPositive() { + coin0 := sdk.NewCoin(pairID.Token0, totalReserve0ToRemove) + + err := k.bankKeeper.SendCoinsFromModuleToAccount( + ctx, + types.ModuleName, + receiverAddr, + sdk.Coins{coin0}, + ) + if err != nil { + return err + } + } + + // sends totalReserve1ToRemove to receiverAddr + if totalReserve1ToRemove.IsPositive() { + coin1 := sdk.NewCoin(pairID.Token1, totalReserve1ToRemove) + err := k.bankKeeper.SendCoinsFromModuleToAccount( + ctx, + types.ModuleName, + receiverAddr, + sdk.Coins{coin1}, + ) + if err != nil { + return err + } + } + + return nil +} + +func (k Keeper) MultiHopSwapCore( + goCtx context.Context, + amountIn sdk.Int, + routes []*types.MultiHopRoute, + exitLimitPrice math_utils.PrecDec, + pickBestRoute bool, + callerAddr sdk.AccAddress, + receiverAddr sdk.AccAddress, +) (coinOut sdk.Coin, err error) { + ctx := sdk.UnwrapSDKContext(goCtx) + var routeErrors []error + initialInCoin := sdk.NewCoin(routes[0].Hops[0], amountIn) + stepCache := make(map[multihopCacheKey]StepResult) + var bestRoute struct { + write func() + coinOut sdk.Coin + route []string + } + bestRoute.coinOut = sdk.Coin{Amount: sdk.ZeroInt()} + + for _, route := range routes { + routeCoinOut, writeRoute, err := k.RunMultihopRoute( + ctx, + *route, + initialInCoin, + exitLimitPrice, + stepCache, + ) + if err != nil { + routeErrors = append(routeErrors, err) + continue + } + + if !pickBestRoute || bestRoute.coinOut.Amount.LT(routeCoinOut.Amount) { + bestRoute.coinOut = routeCoinOut + bestRoute.write = writeRoute + bestRoute.route = route.Hops + } + if !pickBestRoute { + break + } + } + + if len(routeErrors) == len(routes) { + // All routes have failed + + allErr := utils.JoinErrors(types.ErrAllMultiHopRoutesFailed, routeErrors...) + + return sdk.Coin{}, allErr + } + + bestRoute.write() + err = k.bankKeeper.SendCoinsFromAccountToModule( + ctx, + callerAddr, + types.ModuleName, + sdk.Coins{initialInCoin}, + ) + if err != nil { + return sdk.Coin{}, err + } + + err = k.bankKeeper.SendCoinsFromModuleToAccount( + ctx, + types.ModuleName, + receiverAddr, + sdk.Coins{bestRoute.coinOut}, + ) + if err != nil { + return sdk.Coin{}, err + } + ctx.EventManager().EmitEvent(types.CreateMultihopSwapEvent( + callerAddr, + receiverAddr, + initialInCoin.Denom, + bestRoute.coinOut.Denom, + initialInCoin.Amount, + bestRoute.coinOut.Amount, + bestRoute.route, + )) + + return bestRoute.coinOut, nil +} + +// Handles MsgPlaceLimitOrder, initializing (tick, pair) data structures if needed, calculating and +// storing information for a new limit order at a specific tick. +func (k Keeper) PlaceLimitOrderCore( + goCtx context.Context, + tokenIn string, + tokenOut string, + amountIn sdk.Int, + tickIndexInToOut int64, + orderType types.LimitOrderType, + goodTil *time.Time, + maxAmountOut *sdk.Int, + callerAddr sdk.AccAddress, + receiverAddr sdk.AccAddress, +) (trancheKey string, totalInCoin sdk.Coin, swapInCoin sdk.Coin, swapOutCoin sdk.Coin, err error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + var pairID *types.PairID + pairID, err = types.NewPairIDFromUnsorted(tokenIn, tokenOut) + if err != nil { + return + } + + amountLeft, totalIn := amountIn, sdk.ZeroInt() + + // For everything except just-in-time (JIT) orders try to execute as a swap first + if !orderType.IsJIT() { + // This is ok because tokenOut is provided to the constructor of PairID above + takerTradePairID := pairID.MustTradePairIDFromMaker(tokenOut) + var limitPrice math_utils.PrecDec + limitPrice, err = types.CalcPrice(tickIndexInToOut) + err = err + if err != nil { + return + } + + var orderFilled bool + swapInCoin, swapOutCoin, orderFilled, err = k.SwapWithCache( + ctx, + takerTradePairID, + amountIn, + maxAmountOut, + &limitPrice, + ) + if err != nil { + return + } + + if orderType.IsFoK() && !orderFilled { + err = types.ErrFoKLimitOrderNotFilled + return + } + + totalIn = swapInCoin.Amount + amountLeft = amountLeft.Sub(swapInCoin.Amount) + + if swapOutCoin.IsPositive() { + err = k.bankKeeper.SendCoinsFromModuleToAccount( + ctx, + types.ModuleName, + receiverAddr, + sdk.Coins{swapOutCoin}, + ) + if err != nil { + return + } + } + } + + // This is ok because pairID was constructed from tokenIn above. + makerTradePairID := pairID.MustTradePairIDFromMaker(tokenIn) + makerTickIndexTakerToMaker := tickIndexInToOut * -1 + var placeTranche *types.LimitOrderTranche + placeTranche, err = k.GetOrInitPlaceTranche( + ctx, + makerTradePairID, + makerTickIndexTakerToMaker, + goodTil, + orderType, + ) + if err != nil { + return + } + + trancheKey = placeTranche.Key.TrancheKey + trancheUser := k.GetOrInitLimitOrderTrancheUser( + ctx, + makerTradePairID, + makerTickIndexTakerToMaker, + trancheKey, + orderType, + receiverAddr.String(), + ) + + sharesIssued := sdk.ZeroInt() + // FOR GTC, JIT & GoodTil try to place a maker limitOrder with remaining Amount + if amountLeft.IsPositive() && + (orderType.IsGTC() || orderType.IsJIT() || orderType.IsGoodTil()) { + placeTranche.PlaceMakerLimitOrder(amountLeft) + trancheUser.SharesOwned = trancheUser.SharesOwned.Add(amountLeft) + + if orderType.HasExpiration() { + goodTilRecord := NewLimitOrderExpiration(placeTranche) + k.SetLimitOrderExpiration(ctx, goodTilRecord) + ctx.GasMeter().ConsumeGas(types.ExpiringLimitOrderGas, "Expiring LimitOrder Fee") + } + + k.SaveTranche(ctx, placeTranche) + + totalIn = totalIn.Add(amountLeft) + sharesIssued = amountLeft + } + + k.SaveTrancheUser(ctx, trancheUser) + + if totalIn.IsPositive() { + totalInCoin = sdk.NewCoin(tokenIn, totalIn) + + err = k.bankKeeper.SendCoinsFromAccountToModule( + ctx, + callerAddr, + types.ModuleName, + sdk.Coins{totalInCoin}, + ) + if err != nil { + return + } + } + + ctx.EventManager().EmitEvent(types.CreatePlaceLimitOrderEvent( + callerAddr, + receiverAddr, + pairID.Token0, + pairID.Token1, + tokenIn, + tokenOut, + totalIn, + tickIndexInToOut, + orderType.String(), + sharesIssued, + trancheKey, + )) + + return +} + +// Handles MsgCancelLimitOrder, removing a specified number of shares from a limit order +// and returning the respective amount in terms of the reserve to the user. +func (k Keeper) CancelLimitOrderCore( + goCtx context.Context, + trancheKey string, + callerAddr sdk.AccAddress, +) error { + ctx := sdk.UnwrapSDKContext(goCtx) + + trancheUser, found := k.GetLimitOrderTrancheUser(ctx, callerAddr.String(), trancheKey) + if !found { + return types.ErrActiveLimitOrderNotFound + } + + tradePairID, tickIndex := trancheUser.TradePairID, trancheUser.TickIndexTakerToMaker + tranche := k.GetLimitOrderTranche( + ctx, + &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndex, + TrancheKey: trancheKey, + }, + ) + if tranche == nil { + return types.ErrActiveLimitOrderNotFound + } + + amountToCancel := tranche.RemoveTokenIn(trancheUser) + trancheUser.SharesCancelled = trancheUser.SharesCancelled.Add(amountToCancel) + + if amountToCancel.IsPositive() { + coinOut := sdk.NewCoin(tradePairID.MakerDenom, amountToCancel) + + err := k.bankKeeper.SendCoinsFromModuleToAccount( + ctx, + types.ModuleName, + callerAddr, + sdk.Coins{coinOut}, + ) + if err != nil { + return err + } + + k.SaveTrancheUser(ctx, trancheUser) + k.SaveTranche(ctx, tranche) + + if trancheUser.OrderType.HasExpiration() { + k.RemoveLimitOrderExpiration(ctx, *tranche.ExpirationTime, tranche.Key.KeyMarshal()) + } + } else { + return sdkerrors.Wrapf(types.ErrCancelEmptyLimitOrder, "%s", tranche.Key.TrancheKey) + } + + pairID := tradePairID.MustPairID() + ctx.EventManager().EmitEvent(types.CancelLimitOrderEvent( + callerAddr, + pairID.Token0, + pairID.Token1, + tradePairID.MakerDenom, + tradePairID.TakerDenom, + amountToCancel, + trancheKey, + )) + + return nil +} + +// Handles MsgWithdrawFilledLimitOrder, calculates and sends filled liqudity from module to user +// for a limit order based on amount wished to receive. +func (k Keeper) WithdrawFilledLimitOrderCore( + goCtx context.Context, + trancheKey string, + callerAddr sdk.AccAddress, +) error { + ctx := sdk.UnwrapSDKContext(goCtx) + + trancheUser, found := k.GetLimitOrderTrancheUser( + ctx, + callerAddr.String(), + trancheKey, + ) + if !found { + return sdkerrors.Wrapf(types.ErrValidLimitOrderTrancheNotFound, "%s", trancheKey) + } + + tradePairID, tickIndex := trancheUser.TradePairID, trancheUser.TickIndexTakerToMaker + pairID := tradePairID.MustPairID() + + tranche, wasFilled, found := k.FindLimitOrderTranche( + ctx, + &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndex, + TrancheKey: trancheKey, + }, + ) + + amountOutTokenOut := math_utils.ZeroPrecDec() + remainingTokenIn := sdk.ZeroInt() + // It's possible that a TrancheUser exists but tranche does not if LO was filled entirely through a swap + if found { + var amountOutTokenIn sdk.Int + amountOutTokenIn, amountOutTokenOut = tranche.Withdraw(trancheUser) + + if wasFilled { + // This is only relevant for inactive JIT and GoodTil limit orders + remainingTokenIn = tranche.RemoveTokenIn(trancheUser) + k.SaveInactiveTranche(ctx, tranche) + } else { + k.SetLimitOrderTranche(ctx, tranche) + } + + trancheUser.SharesWithdrawn = trancheUser.SharesWithdrawn.Add(amountOutTokenIn) + } + + k.SaveTrancheUser(ctx, trancheUser) + + if amountOutTokenOut.IsPositive() || remainingTokenIn.IsPositive() { + coinTakerDenomOut := sdk.NewCoin(tradePairID.TakerDenom, amountOutTokenOut.TruncateInt()) + coinMakerDenomRefund := sdk.NewCoin(tradePairID.MakerDenom, remainingTokenIn) + coins := sdk.NewCoins(coinTakerDenomOut, coinMakerDenomRefund) + if err := k.bankKeeper.SendCoinsFromModuleToAccount(ctx, types.ModuleName, callerAddr, coins); err != nil { + return err + } + } else { + return types.ErrWithdrawEmptyLimitOrder + } + + ctx.EventManager().EmitEvent(types.WithdrawFilledLimitOrderEvent( + callerAddr, + pairID.Token0, + pairID.Token1, + tradePairID.MakerDenom, + tradePairID.TakerDenom, + amountOutTokenOut.TruncateInt(), + trancheKey, + )) + + return nil +} diff --git a/x/dex/keeper/core_helper.go b/x/dex/keeper/core_helper.go new file mode 100644 index 000000000..b6089cf83 --- /dev/null +++ b/x/dex/keeper/core_helper.go @@ -0,0 +1,106 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" + "golang.org/x/exp/slices" +) + +/////////////////////////////////////////////////////////////////////////////// +// STATE CALCULATIONS // +/////////////////////////////////////////////////////////////////////////////// + +func (k Keeper) GetCurrPrice(ctx sdk.Context, tradePairID *types.TradePairID) (math_utils.PrecDec, bool) { + liq := k.GetCurrLiq(ctx, tradePairID) + if liq != nil { + return liq.Price(), true + } + return math_utils.ZeroPrecDec(), false +} + +// Returns a takerToMaker tick index +func (k Keeper) GetCurrTickIndexTakerToMaker( + ctx sdk.Context, + tradePairID *types.TradePairID, +) (int64, bool) { + liq := k.GetCurrLiq(ctx, tradePairID) + if liq != nil { + return liq.TickIndex(), true + } + return 0, false +} + +// Returns a takerToMaker tick index +func (k Keeper) GetCurrTickIndexTakerToMakerNormalized( + ctx sdk.Context, + tradePairID *types.TradePairID, +) (int64, bool) { + tickIndexTakerToMaker, found := k.GetCurrTickIndexTakerToMaker(ctx, tradePairID) + if found { + tickIndexTakerToMakerNormalized := tradePairID.TickIndexNormalized(tickIndexTakerToMaker) + return tickIndexTakerToMakerNormalized, true + } + + return 0, false +} + +func (k Keeper) GetCurrLiq(ctx sdk.Context, tradePairID *types.TradePairID) *types.TickLiquidity { + ti := k.NewTickIterator(ctx, tradePairID) + defer ti.Close() + for ; ti.Valid(); ti.Next() { + tick := ti.Value() + if tick.HasToken() { + return &tick + } + } + + return nil +} + +func (k Keeper) GetValidFees(ctx sdk.Context) []uint64 { + return k.GetParams(ctx).FeeTiers +} + +func (k Keeper) ValidateFee(ctx sdk.Context, fee uint64) error { + validFees := k.GetValidFees(ctx) + if !slices.Contains(validFees, fee) { + return sdkerrors.Wrapf(types.ErrInvalidFee, "%s", validFees) + } + + return nil +} + +/////////////////////////////////////////////////////////////////////////////// +// TOKENIZER UTILS // +/////////////////////////////////////////////////////////////////////////////// + +func (k Keeper) MintShares(ctx sdk.Context, addr sdk.AccAddress, shareCoin sdk.Coin) error { + // mint share tokens + sharesCoins := sdk.Coins{shareCoin} + if err := k.bankKeeper.MintCoins(ctx, types.ModuleName, sharesCoins); err != nil { + return err + } + // transfer them to addr + err := k.bankKeeper.SendCoinsFromModuleToAccount(ctx, types.ModuleName, addr, sharesCoins) + + return err +} + +func (k Keeper) BurnShares( + ctx sdk.Context, + addr sdk.AccAddress, + amount sdk.Int, + sharesID string, +) error { + sharesCoins := sdk.Coins{sdk.NewCoin(sharesID, amount)} + // transfer tokens to module + if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, addr, types.ModuleName, sharesCoins); err != nil { + return err + } + // burn tokens + err := k.bankKeeper.BurnCoins(ctx, types.ModuleName, sharesCoins) + + return err +} diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go new file mode 100644 index 000000000..6735567fc --- /dev/null +++ b/x/dex/keeper/core_helper_test.go @@ -0,0 +1,159 @@ +package keeper_test + +import ( + "testing" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + dualityapp "github.com/neutron-org/neutron/app" + . "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/suite" +) + +// Test Suite /////////////////////////////////////////////////////////////// +type CoreHelpersTestSuite struct { + suite.Suite + app *dualityapp.App + msgServer types.MsgServer + ctx sdk.Context + queryClient types.QueryClient + alice sdk.AccAddress + bob sdk.AccAddress + carol sdk.AccAddress + dan sdk.AccAddress +} + +func TestCoreHelpersTestSuite(t *testing.T) { + suite.Run(t, new(CoreHelpersTestSuite)) +} + +func (s *CoreHelpersTestSuite) SetupTest() { + app := dualityapp.Setup(s.T(), false) + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + + app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams()) + app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) + + queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) + types.RegisterQueryServer(queryHelper, app.DexKeeper) + queryClient := types.NewQueryClient(queryHelper) + + accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) + app.AccountKeeper.SetAccount(ctx, accAlice) + accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) + app.AccountKeeper.SetAccount(ctx, accBob) + accCarol := app.AccountKeeper.NewAccountWithAddress(ctx, s.carol) + app.AccountKeeper.SetAccount(ctx, accCarol) + accDan := app.AccountKeeper.NewAccountWithAddress(ctx, s.dan) + app.AccountKeeper.SetAccount(ctx, accDan) + + s.app = app + s.msgServer = NewMsgServerImpl(app.DexKeeper) + s.ctx = ctx + s.queryClient = queryClient + s.alice = sdk.AccAddress([]byte("alice")) + s.bob = sdk.AccAddress([]byte("bob")) + s.carol = sdk.AccAddress([]byte("carol")) + s.dan = sdk.AccAddress([]byte("dan")) +} + +func (s *CoreHelpersTestSuite) setLPAtFee1Pool(tickIndex int64, amountA int, amountB int) { + pairID := &types.PairID{Token0: "TokenA", Token1: "TokenB"} + pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, pairID, tickIndex, 1) + if err != nil { + panic(err) + } + lowerTick, upperTick := pool.LowerTick0, pool.UpperTick1 + amountAInt := sdk.NewInt(int64(amountA)) + amountBInt := sdk.NewInt(int64(amountB)) + + existingShares := s.app.BankKeeper.GetSupply(s.ctx, pool.GetPoolDenom()).Amount + + totalShares := pool.CalcSharesMinted(amountAInt, amountBInt, existingShares) + + s.app.DexKeeper.MintShares(s.ctx, s.alice, totalShares) + + lowerTick.ReservesMakerDenom = amountAInt + upperTick.ReservesMakerDenom = amountBInt + s.app.DexKeeper.SetPool(s.ctx, pool) +} + +// FindNextTick //////////////////////////////////////////////////// + +func (s *CoreHelpersTestSuite) TestFindNextTick1To0NoLiq() { + // GIVEN there is no ticks with token0 in the pool + + s.setLPAtFee1Pool(1, 0, 10) + + // THEN GetCurrTick1To0 doesn't find a tick + + _, found := s.app.DexKeeper.GetCurrTickIndexTakerToMaker(s.ctx, defaultTradePairID1To0) + s.Assert().False(found) +} + +func (s *CoreHelpersTestSuite) TestGetCurrTick1To0WithLiq() { + // Given multiple locations of token0 + s.setLPAtFee1Pool(-1, 10, 0) + s.setLPAtFee1Pool(0, 10, 0) + + // THEN GetCurrTick1To0 finds the tick at -1 + + tickIdx, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized(s.ctx, defaultTradePairID1To0) + s.Require().True(found) + s.Assert().Equal(int64(-1), tickIdx) +} + +func (s *CoreHelpersTestSuite) TestGetCurrTick1To0WithMinLiq() { + // GIVEN tick with token0 @ index -1 + s.setLPAtFee1Pool(-1, 10, 0) + s.setLPAtFee1Pool(1, 0, 0) + + // THEN GetCurrTick1To0 finds the tick at -2 + + tickIdx, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized(s.ctx, defaultTradePairID1To0) + s.Require().True(found) + s.Assert().Equal(int64(-2), tickIdx) +} + +// GetCurrTick0To1 /////////////////////////////////////////////////////////// + +func (s *CoreHelpersTestSuite) TestGetCurrTick0To1NoLiq() { + // GIVEN there are no tick with Token1 in the pool + + s.setLPAtFee1Pool(0, 10, 0) + + // THEN GetCurrTick0To1 doesn't find a tick + + _, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized(s.ctx, defaultTradePairID0To1) + s.Assert().False(found) +} + +func (s *CoreHelpersTestSuite) TestGetCurrTick0To1WithLiq() { + // GIVEN multiple locations of token1 + + s.setLPAtFee1Pool(-1, 10, 0) + s.setLPAtFee1Pool(0, 0, 10) + s.setLPAtFee1Pool(1, 0, 10) + + // THEN GetCurrTick0To1 finds the tick at 1 + + tickIdx, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized(s.ctx, defaultTradePairID0To1) + s.Require().True(found) + s.Assert().Equal(int64(1), tickIdx) +} + +func (s *CoreHelpersTestSuite) TestGetCurrTick0To1WithMinLiq() { + // WHEN tick with token1 @ index 1 + s.setLPAtFee1Pool(-1, 0, 0) + s.setLPAtFee1Pool(1, 0, 10) + + // THEN GetCurrTick0To1 finds the tick at 2 + + tickIdx, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized(s.ctx, defaultTradePairID0To1) + s.Require().True(found) + s.Assert().Equal(int64(2), tickIdx) +} diff --git a/x/dex/keeper/deposit_record.go b/x/dex/keeper/deposit_record.go new file mode 100644 index 000000000..5b2673368 --- /dev/null +++ b/x/dex/keeper/deposit_record.go @@ -0,0 +1,38 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/dex/utils" +) + +func (k Keeper) GetAllDepositsForAddress(ctx sdk.Context, addr sdk.AccAddress) []*types.DepositRecord { + var depositArr []*types.DepositRecord + k.bankKeeper.IterateAccountBalances(ctx, addr, + func(sharesMaybe sdk.Coin) bool { + err := types.ValidatePoolDenom(sharesMaybe.Denom) + if err != nil { + return false + } + + poolMetadata, err := k.GetPoolMetadataByDenom(ctx, sharesMaybe.Denom) + if err != nil { + panic("Can't get info for PoolDenom") + } + fee := utils.MustSafeUint64ToInt64(poolMetadata.Fee) + depositRecord := &types.DepositRecord{ + PairID: poolMetadata.PairID, + SharesOwned: sharesMaybe.Amount, + CenterTickIndex: poolMetadata.Tick, + LowerTickIndex: poolMetadata.Tick - fee, + UpperTickIndex: poolMetadata.Tick + fee, + Fee: poolMetadata.Fee, + } + depositArr = append(depositArr, depositRecord) + + return false + }, + ) + + return depositArr +} diff --git a/x/dex/keeper/deposit_record_test.go b/x/dex/keeper/deposit_record_test.go new file mode 100644 index 000000000..aed7bcc1d --- /dev/null +++ b/x/dex/keeper/deposit_record_test.go @@ -0,0 +1,61 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestGetAllDeposits() { + s.fundAliceBalances(20, 20) + // GIVEN Alice Deposits 3 positions and withdraws the first + s.aliceDeposits( + &Deposit{ + AmountA: sdk.NewInt(1), + AmountB: sdk.NewInt(0), + TickIndex: -50, + Fee: 1, + }, + &Deposit{ + AmountA: sdk.NewInt(5), + AmountB: sdk.NewInt(5), + TickIndex: 0, + Fee: 1, + }, + &Deposit{ + AmountA: sdk.NewInt(0), + AmountB: sdk.NewInt(10), + TickIndex: 2, + Fee: 1, + }, + ) + s.aliceWithdraws(&Withdrawal{ + TickIndex: -50, + Fee: 1, + Shares: sdk.NewInt(1), + }, + ) + + // THEN GetAllDeposits returns the two remaining LP positions + depositList := s.app.DexKeeper.GetAllDepositsForAddress(s.ctx, s.alice) + s.Assert().Equal(2, len(depositList)) + s.Assert().Equal(&types.DepositRecord{ + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 0, + LowerTickIndex: -1, + UpperTickIndex: 1, + Fee: 1, + }, + depositList[0], + ) + s.Assert().Equal(&types.DepositRecord{ + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 2, + LowerTickIndex: 1, + UpperTickIndex: 3, + Fee: 1, + }, + depositList[1], + ) +} diff --git a/x/dex/keeper/grpc_query.go b/x/dex/keeper/grpc_query.go new file mode 100644 index 000000000..456161826 --- /dev/null +++ b/x/dex/keeper/grpc_query.go @@ -0,0 +1,7 @@ +package keeper + +import ( + "github.com/neutron-org/neutron/x/dex/types" +) + +var _ types.QueryServer = Keeper{} diff --git a/x/dex/keeper/grpc_query_estimate_multi_hop_swap.go b/x/dex/keeper/grpc_query_estimate_multi_hop_swap.go new file mode 100644 index 000000000..a178f5ca4 --- /dev/null +++ b/x/dex/keeper/grpc_query_estimate_multi_hop_swap.go @@ -0,0 +1,50 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +// TODO: This doesn't run ValidateBasic() checks. +func (k Keeper) EstimateMultiHopSwap( + goCtx context.Context, + req *types.QueryEstimateMultiHopSwapRequest, +) (*types.QueryEstimateMultiHopSwapResponse, error) { + msg := types.MsgMultiHopSwap{ + Creator: req.Creator, + Receiver: req.Receiver, + Routes: req.Routes, + AmountIn: req.AmountIn, + ExitLimitPrice: req.ExitLimitPrice, + PickBestRoute: req.PickBestRoute, + } + if err := msg.ValidateBasic(); err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(goCtx) + cacheCtx, _ := ctx.CacheContext() + cacheGoCtx := sdk.WrapSDKContext(cacheCtx) + + callerAddr := sdk.MustAccAddressFromBech32(req.Creator) + receiverAddr := sdk.MustAccAddressFromBech32(req.Receiver) + + coinOut, err := k.MultiHopSwapCore( + cacheGoCtx, + req.AmountIn, + req.Routes, + req.ExitLimitPrice, + req.PickBestRoute, + callerAddr, + receiverAddr, + ) + if err != nil { + return nil, err + } + + // NB: Critically, we do not write the best route's buffered state context since this is only an estimate. + + return &types.QueryEstimateMultiHopSwapResponse{CoinOut: coinOut}, nil +} diff --git a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go new file mode 100644 index 000000000..c2830469e --- /dev/null +++ b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go @@ -0,0 +1,365 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/keeper" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapSingleRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in pools A<>B, B<>C, C<>D, + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, 0, 1), + ) + + // WHEN alice multihopswaps A<>B => B<>C => C<>D, + route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} + coinOut := s.aliceEstimatesMultiHopSwap(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + + // THEN alice would get out 99 TokenD + s.Assert().Equal(sdk.NewInt(97), coinOut.Amount) + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) + s.assertAccountBalanceWithDenom(s.alice, "TokenD", 0) + + s.assertDexBalanceWithDenom("TokenA", 0) + s.assertDexBalanceWithDenom("TokenB", 100) + s.assertDexBalanceWithDenom("TokenC", 100) + s.assertDexBalanceWithDenom("TokenD", 100) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapInsufficientLiquiditySingleRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 50, 0, 1), + ) + + // THEN estimate multihopswap fails + route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} + s.aliceEstimatesMultiHopSwapFails( + types.ErrInsufficientLiquidity, + route, + 100, + math_utils.MustNewPrecDecFromStr("0.9"), + false, + ) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLimitPriceNotMetSingleRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, 1200, 1), + ) + + // THEN estimate multihopswap fails + route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} + s.aliceEstimatesMultiHopSwapFails( + types.ErrExitLimitPriceHit, + route, + 50, + math_utils.MustNewPrecDecFromStr("0.9"), + false, + ) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { + s.fundAliceBalances(100, 0) + + // GIVEN viable liquidity in pools A<>B, B<>E, E<>X + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenE", 0, 100, 0, 1), + NewPoolSetup("TokenE", "TokenX", 0, 100, 0, 1), + ) + + // WHEN estimate multihopswaps with three routes the first two routes fail and the third works + routes := [][]string{ + {"TokenA", "TokenB", "TokenC", "TokenX"}, + {"TokenA", "TokenB", "TokenD", "TokenX"}, + {"TokenA", "TokenB", "TokenE", "TokenX"}, + } + + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenA", Token1: "TokenB"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + + coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + _ = coinOut + + // THEN swap estimation succeeds through route A<>B, B<>E, E<>X + + s.Assert().Equal(sdk.NewInt(97), coinOut.Amount) + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) + s.assertAccountBalanceWithDenom(s.alice, "TokenX", 0) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenA", Token1: "TokenB"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenE"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenE", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + + // Other pools are unaffected + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenC"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenC", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenC", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 2200, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenD"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenD", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenD", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 2200, + 1, + ) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteAllFail() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in sufficient liquidity but inadequate prices + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenE", 0, 50, 0, 1), + NewPoolSetup("TokenE", "TokenX", 0, 50, 2200, 1), + ) + + // WHEN alice multihopswaps with three routes they all fail + routes := [][]string{ + {"TokenA", "TokenB", "TokenC", "TokenX"}, + {"TokenA", "TokenB", "TokenD", "TokenX"}, + {"TokenA", "TokenB", "TokenE", "TokenX"}, + } + + // Then fails with findBestRoute + s.aliceEstimatesMultiHopSwapFails( + types.ErrExitLimitPriceHit, + routes, + 100, + math_utils.MustNewPrecDecFromStr("0.9"), + true, + ) + + // and with findFirstRoute + + s.aliceEstimatesMultiHopSwapFails( + types.ErrExitLimitPriceHit, + routes, + 100, + math_utils.MustNewPrecDecFromStr("0.9"), + false, + ) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN viable liquidity in pools but with a best route through E<>X + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 1000, -1000, 1), + NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 1000, -2000, 1), + NewPoolSetup("TokenB", "TokenE", 0, 100, 0, 1), + NewPoolSetup("TokenE", "TokenX", 0, 1000, -3000, 1), + ) + + // WHEN alice multihopswaps with three routes + routes := [][]string{ + {"TokenA", "TokenB", "TokenC", "TokenX"}, + {"TokenA", "TokenB", "TokenD", "TokenX"}, + {"TokenA", "TokenB", "TokenE", "TokenX"}, + } + coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.9"), true) + + // THEN swap succeeds through route A<>B, B<>E, E<>X + + s.Assert().Equal(sdk.NewCoin("TokenX", sdk.NewInt(132)), coinOut) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenA", Token1: "TokenB"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenE"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenE", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(1000), + -3000, + 1, + ) + + // Other pools are unaffected + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenC"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenC", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(1000), + -1000, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenD"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenD", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(1000), + -2000, + 1, + ) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLongRouteWithCache() { + s.fundAliceBalances(100, 0) + + // GIVEN viable route from A->B->C...->L but last leg to X only possible through K->M->X + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenE", 0, 100, 0, 1), + NewPoolSetup("TokenE", "TokenF", 0, 100, 0, 1), + NewPoolSetup("TokenF", "TokenG", 0, 100, 0, 1), + NewPoolSetup("TokenG", "TokenH", 0, 100, 0, 1), + NewPoolSetup("TokenH", "TokenI", 0, 100, 0, 1), + NewPoolSetup("TokenI", "TokenJ", 0, 100, 0, 1), + NewPoolSetup("TokenJ", "TokenK", 0, 100, 0, 1), + NewPoolSetup("TokenK", "TokenL", 0, 100, 0, 1), + NewPoolSetup("TokenL", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenL", "TokenX", 0, 50, 100, 1), + + NewPoolSetup("TokenK", "TokenM", 0, 100, 0, 1), + NewPoolSetup("TokenM", "TokenX", 0, 100, 0, 1), + ) + + // WHEN alice multihopswaps with two overlapping routes with only the last leg different + routes := [][]string{ + { + "TokenA", "TokenB", "TokenC", "TokenD", "TokenE", "TokenF", + "TokenG", "TokenH", "TokenI", "TokenJ", "TokenK", "TokenL", "TokenX", + }, + { + "TokenA", "TokenB", "TokenC", "TokenD", "TokenE", "TokenF", + "TokenG", "TokenH", "TokenI", "TokenJ", "TokenK", "TokenM", "TokenX", + }, + } + coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.8"), true) + + // THEN swap succeeds with second route + s.Assert().Equal(coinOut, sdk.NewCoin("TokenX", sdk.NewInt(88))) + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenM", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) +} + +func (s *MsgServerTestSuite) TestEstimateMultiHopSwapEventsEmitted() { + s.fundAliceBalances(100, 0) + + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + ) + + route := [][]string{{"TokenA", "TokenB", "TokenC"}} + _ = s.aliceEstimatesMultiHopSwap(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + + // 8 tickUpdateEvents are emitted 4x for pool setup 4x for two swaps + keepertest.AssertEventNotEmitted(s.T(), s.ctx, types.TickUpdateEventKey, "Expected no events") +} diff --git a/x/dex/keeper/grpc_query_estimate_place_limit_order.go b/x/dex/keeper/grpc_query_estimate_place_limit_order.go new file mode 100644 index 000000000..26069379e --- /dev/null +++ b/x/dex/keeper/grpc_query_estimate_place_limit_order.go @@ -0,0 +1,70 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/dex/types" +) + +// TODO: This doesn't run ValidateBasic() checks. +func (k Keeper) EstimatePlaceLimitOrder( + goCtx context.Context, + req *types.QueryEstimatePlaceLimitOrderRequest, +) (*types.QueryEstimatePlaceLimitOrderResponse, error) { + msg := types.MsgPlaceLimitOrder{ + Creator: req.Creator, + Receiver: req.Receiver, + TokenIn: req.TokenIn, + TokenOut: req.TokenOut, + TickIndexInToOut: req.TickIndexInToOut, + AmountIn: req.AmountIn, + OrderType: req.OrderType, + ExpirationTime: req.ExpirationTime, + MaxAmountOut: req.MaxAmountOut, + } + if err := msg.ValidateBasic(); err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(goCtx) + cacheCtx, _ := ctx.CacheContext() + cacheGoCtx := sdk.WrapSDKContext(cacheCtx) + + callerAddr := sdk.MustAccAddressFromBech32(req.Creator) + receiverAddr := sdk.MustAccAddressFromBech32(req.Receiver) + + blockTime := cacheCtx.BlockTime() + if req.OrderType.IsGoodTil() && !req.ExpirationTime.After(blockTime) { + return nil, sdkerrors.Wrapf(types.ErrExpirationTimeInPast, + "Current BlockTime: %s; Provided ExpirationTime: %s", + blockTime.String(), + req.ExpirationTime.String(), + ) + } + + _, totalInCoin, swapInCoin, swapOutCoin, err := k.PlaceLimitOrderCore( + cacheGoCtx, + req.TokenIn, + req.TokenOut, + req.AmountIn, + req.TickIndexInToOut, + req.OrderType, + req.ExpirationTime, + req.MaxAmountOut, + callerAddr, + receiverAddr, + ) + if err != nil { + return nil, err + } + + // NB: We're only using a cache context so we don't expect any writes to happen. + + return &types.QueryEstimatePlaceLimitOrderResponse{ + TotalInCoin: totalInCoin, + SwapInCoin: swapInCoin, + SwapOutCoin: swapOutCoin, + }, nil +} diff --git a/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go b/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go new file mode 100644 index 000000000..d33740e2b --- /dev/null +++ b/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go @@ -0,0 +1,74 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) InactiveLimitOrderTrancheAll( + c context.Context, + req *types.QueryAllInactiveLimitOrderTrancheRequest, +) (*types.QueryAllInactiveLimitOrderTrancheResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + var inactiveLimitOrderTranches []*types.LimitOrderTranche + ctx := sdk.UnwrapSDKContext(c) + + store := ctx.KVStore(k.storeKey) + inactiveLimitOrderTrancheStore := prefix.NewStore(store, types.KeyPrefix(types.InactiveLimitOrderTrancheKeyPrefix)) + + pageRes, err := query.Paginate(inactiveLimitOrderTrancheStore, req.Pagination, func(key, value []byte) error { + inactiveLimitOrderTranche := &types.LimitOrderTranche{} + if err := k.cdc.Unmarshal(value, inactiveLimitOrderTranche); err != nil { + return err + } + + inactiveLimitOrderTranches = append(inactiveLimitOrderTranches, inactiveLimitOrderTranche) + + return nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllInactiveLimitOrderTrancheResponse{ + InactiveLimitOrderTranche: inactiveLimitOrderTranches, + Pagination: pageRes, + }, nil +} + +func (k Keeper) InactiveLimitOrderTranche( + c context.Context, + req *types.QueryGetInactiveLimitOrderTrancheRequest, +) (*types.QueryGetInactiveLimitOrderTrancheResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(c) + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) + val, found := k.GetInactiveLimitOrderTranche( + ctx, + &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: req.TickIndex, + TrancheKey: req.TrancheKey, + }, + ) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryGetInactiveLimitOrderTrancheResponse{InactiveLimitOrderTranche: val}, nil +} diff --git a/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go b/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go new file mode 100644 index 000000000..66a694709 --- /dev/null +++ b/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go @@ -0,0 +1,135 @@ +package keeper_test + +import ( + "strconv" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/types" +) + +// Prevent strconv unused error +var _ = strconv.IntSize + +func TestInactiveLimitOrderTrancheQuerySingle(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNInactiveLimitOrderTranche(keeper, ctx, 2) + for _, tc := range []struct { + desc string + request *types.QueryGetInactiveLimitOrderTrancheRequest + response *types.QueryGetInactiveLimitOrderTrancheResponse + err error + }{ + { + desc: "First", + request: &types.QueryGetInactiveLimitOrderTrancheRequest{ + PairID: msgs[0].Key.TradePairID.MustPairID().CanonicalString(), + TokenIn: msgs[0].Key.TradePairID.MakerDenom, + TickIndex: msgs[0].Key.TickIndexTakerToMaker, + TrancheKey: msgs[0].Key.TrancheKey, + }, + response: &types.QueryGetInactiveLimitOrderTrancheResponse{InactiveLimitOrderTranche: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryGetInactiveLimitOrderTrancheRequest{ + PairID: msgs[1].Key.TradePairID.MustPairID().CanonicalString(), + TokenIn: msgs[1].Key.TradePairID.MakerDenom, + TickIndex: msgs[1].Key.TickIndexTakerToMaker, + TrancheKey: msgs[1].Key.TrancheKey, + }, + response: &types.QueryGetInactiveLimitOrderTrancheResponse{InactiveLimitOrderTranche: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryGetInactiveLimitOrderTrancheRequest{ + PairID: "TokenZ<>TokenQ", + TokenIn: strconv.Itoa(100000), + TickIndex: 100000, + TrancheKey: "100000", + }, + err: status.Error(codes.NotFound, "not found"), + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.InactiveLimitOrderTranche(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} + +func TestInactiveLimitOrderTrancheQueryPaginated(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNInactiveLimitOrderTranche(keeper, ctx, 5) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllInactiveLimitOrderTrancheRequest { + return &types.QueryAllInactiveLimitOrderTrancheRequest{ + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.InactiveLimitOrderTrancheAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.InactiveLimitOrderTranche), step) + require.Subset(t, + msgs, + resp.InactiveLimitOrderTranche, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.InactiveLimitOrderTrancheAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.InactiveLimitOrderTranche), step) + require.Subset(t, + msgs, + resp.InactiveLimitOrderTranche, + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.InactiveLimitOrderTrancheAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.InactiveLimitOrderTranche, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.InactiveLimitOrderTrancheAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/grpc_query_limit_order_tranche.go b/x/dex/keeper/grpc_query_limit_order_tranche.go new file mode 100644 index 000000000..0665dd481 --- /dev/null +++ b/x/dex/keeper/grpc_query_limit_order_tranche.go @@ -0,0 +1,90 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// Returns all ACTIVE limit order tranches for a given pairID/tokenIn combination +// Does NOT return inactiveLimitOrderTranches +func (k Keeper) LimitOrderTrancheAll( + c context.Context, + req *types.QueryAllLimitOrderTrancheRequest, +) (*types.QueryAllLimitOrderTrancheResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + var limitOrderTranches []*types.LimitOrderTranche + ctx := sdk.UnwrapSDKContext(c) + + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) + + store := ctx.KVStore(k.storeKey) + limitOrderTrancheStore := prefix.NewStore(store, types.TickLiquidityPrefix(tradePairID)) + + pageRes, err := query.FilteredPaginate( + limitOrderTrancheStore, + req.Pagination, func(key, value []byte, accum bool) (hit bool, err error) { + var tick types.TickLiquidity + + if err := k.cdc.Unmarshal(value, &tick); err != nil { + return false, err + } + tranche := tick.GetLimitOrderTranche() + // Check if this is a LimitOrderTranche and not PoolReserves + if tranche != nil { + if accum { + limitOrderTranches = append(limitOrderTranches, tranche) + } + + return true, nil + } + + return false, nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllLimitOrderTrancheResponse{LimitOrderTranche: limitOrderTranches, Pagination: pageRes}, nil +} + +// Returns a specific limit order tranche either from the tickLiquidity index or from the FillLimitOrderTranche index +func (k Keeper) LimitOrderTranche( + c context.Context, + req *types.QueryGetLimitOrderTrancheRequest, +) (*types.QueryGetLimitOrderTrancheResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(c) + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) + val, _, found := k.FindLimitOrderTranche( + ctx, + &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: req.TickIndex, + TrancheKey: req.TrancheKey, + }, + ) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryGetLimitOrderTrancheResponse{LimitOrderTranche: val}, nil +} diff --git a/x/dex/keeper/grpc_query_limit_order_tranche_test.go b/x/dex/keeper/grpc_query_limit_order_tranche_test.go new file mode 100644 index 000000000..448777e57 --- /dev/null +++ b/x/dex/keeper/grpc_query_limit_order_tranche_test.go @@ -0,0 +1,135 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/types" +) + +func TestLimitOrderTrancheQuerySingle(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNLimitOrderTranches(keeper, ctx, 2) + for _, tc := range []struct { + desc string + request *types.QueryGetLimitOrderTrancheRequest + response *types.QueryGetLimitOrderTrancheResponse + err error + }{ + { + desc: "First", + request: &types.QueryGetLimitOrderTrancheRequest{ + PairID: "TokenA<>TokenB", + TickIndex: msgs[0].Key.TickIndexTakerToMaker, + TokenIn: "TokenA", + TrancheKey: msgs[0].Key.TrancheKey, + }, + response: &types.QueryGetLimitOrderTrancheResponse{LimitOrderTranche: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryGetLimitOrderTrancheRequest{ + PairID: "TokenA<>TokenB", + TickIndex: msgs[1].Key.TickIndexTakerToMaker, + TokenIn: "TokenA", + TrancheKey: msgs[1].Key.TrancheKey, + }, + response: &types.QueryGetLimitOrderTrancheResponse{LimitOrderTranche: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryGetLimitOrderTrancheRequest{ + PairID: "TokenA<>TokenB", + TickIndex: 0, + TokenIn: "TokenA", + TrancheKey: "100000", + }, + err: status.Error(codes.NotFound, "not found"), + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.LimitOrderTranche(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} + +func TestLimitOrderTrancheQueryPaginated(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNLimitOrderTranches(keeper, ctx, 2) + // Add more data to make sure only LO tranches are returned + createNPoolReserves(keeper, ctx, 2) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllLimitOrderTrancheRequest { + return &types.QueryAllLimitOrderTrancheRequest{ + PairID: "TokenA<>TokenB", + TokenIn: "TokenA", + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.LimitOrderTrancheAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.LimitOrderTranche), step) + require.Subset(t, + msgs, + resp.LimitOrderTranche, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.LimitOrderTrancheAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.LimitOrderTranche), step) + require.Subset(t, + msgs, + resp.LimitOrderTranche, + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.LimitOrderTrancheAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.LimitOrderTranche, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.LimitOrderTrancheAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/grpc_query_limit_order_tranche_user.go b/x/dex/keeper/grpc_query_limit_order_tranche_user.go new file mode 100644 index 000000000..7d89ae772 --- /dev/null +++ b/x/dex/keeper/grpc_query_limit_order_tranche_user.go @@ -0,0 +1,102 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) LimitOrderTrancheUserAll( + c context.Context, + req *types.QueryAllLimitOrderTrancheUserRequest, +) (*types.QueryAllLimitOrderTrancheUserResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + var limitOrderTrancheUsers []*types.LimitOrderTrancheUser + ctx := sdk.UnwrapSDKContext(c) + + store := ctx.KVStore(k.storeKey) + limitOrderTrancheUserStore := prefix.NewStore(store, types.KeyPrefix(types.LimitOrderTrancheUserKeyPrefix)) + + pageRes, err := query.Paginate(limitOrderTrancheUserStore, req.Pagination, func(key, value []byte) error { + limitOrderTrancheUser := &types.LimitOrderTrancheUser{} + if err := k.cdc.Unmarshal(value, limitOrderTrancheUser); err != nil { + return err + } + + limitOrderTrancheUsers = append(limitOrderTrancheUsers, limitOrderTrancheUser) + + return nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllLimitOrderTrancheUserResponse{ + LimitOrderTrancheUser: limitOrderTrancheUsers, + Pagination: pageRes, + }, nil +} + +func (k Keeper) LimitOrderTrancheUser(c context.Context, + req *types.QueryGetLimitOrderTrancheUserRequest, +) (*types.QueryGetLimitOrderTrancheUserResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(c) + val, found := k.GetLimitOrderTrancheUser( + ctx, + req.Address, + req.TrancheKey, + ) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryGetLimitOrderTrancheUserResponse{LimitOrderTrancheUser: val}, nil +} + +func (k Keeper) LimitOrderTrancheUserAllByAddress( + goCtx context.Context, + req *types.QueryAllUserLimitOrdersRequest, +) (*types.QueryAllUserLimitOrdersResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + addr, err := sdk.AccAddressFromBech32(req.Address) + if err != nil { + return nil, err + } + ctx := sdk.UnwrapSDKContext(goCtx) + var limitOrderTrancheUserList []*types.LimitOrderTrancheUser + addressPrefix := types.LimitOrderTrancheUserAddressPrefix(addr.String()) + store := prefix.NewStore(ctx.KVStore(k.storeKey), addressPrefix) + + pageRes, err := query.Paginate(store, req.Pagination, func(key, value []byte) error { + trancheUser := &types.LimitOrderTrancheUser{} + if err := k.cdc.Unmarshal(value, trancheUser); err != nil { + return err + } + + limitOrderTrancheUserList = append(limitOrderTrancheUserList, trancheUser) + + return nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllUserLimitOrdersResponse{ + LimitOrders: limitOrderTrancheUserList, + Pagination: pageRes, + }, nil +} diff --git a/x/dex/keeper/grpc_query_limit_order_tranche_user_test.go b/x/dex/keeper/grpc_query_limit_order_tranche_user_test.go new file mode 100644 index 000000000..0780777b0 --- /dev/null +++ b/x/dex/keeper/grpc_query_limit_order_tranche_user_test.go @@ -0,0 +1,185 @@ +package keeper_test + +import ( + "strconv" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/testutil/common/sample" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/types" +) + +func TestLimitOrderTrancheUserQuerySingle(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNLimitOrderTrancheUser(keeper, ctx, 2) + for _, tc := range []struct { + desc string + request *types.QueryGetLimitOrderTrancheUserRequest + response *types.QueryGetLimitOrderTrancheUserResponse + err error + }{ + { + desc: "First", + request: &types.QueryGetLimitOrderTrancheUserRequest{ + TrancheKey: msgs[0].TrancheKey, + Address: msgs[0].Address, + }, + response: &types.QueryGetLimitOrderTrancheUserResponse{LimitOrderTrancheUser: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryGetLimitOrderTrancheUserRequest{ + TrancheKey: msgs[1].TrancheKey, + Address: msgs[1].Address, + }, + response: &types.QueryGetLimitOrderTrancheUserResponse{LimitOrderTrancheUser: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryGetLimitOrderTrancheUserRequest{ + TrancheKey: "100000", + Address: strconv.Itoa(100000), + }, + err: status.Error(codes.NotFound, "not found"), + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.LimitOrderTrancheUser(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} + +func TestLimitOrderTrancheUserQueryPaginated(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNLimitOrderTrancheUser(keeper, ctx, 5) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllLimitOrderTrancheUserRequest { + return &types.QueryAllLimitOrderTrancheUserRequest{ + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.LimitOrderTrancheUserAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.LimitOrderTrancheUser), step) + require.Subset(t, + msgs, + resp.LimitOrderTrancheUser, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.LimitOrderTrancheUserAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.LimitOrderTrancheUser), step) + require.Subset(t, + msgs, + resp.LimitOrderTrancheUser, + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.LimitOrderTrancheUserAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.LimitOrderTrancheUser, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.LimitOrderTrancheUserAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} + +func TestLimitOrderTrancheUserAllByAddress(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + address := sample.AccAddress() + msgs := createNLimitOrderTrancheUserWithAddress(keeper, ctx, address, 5) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllUserLimitOrdersRequest { + return &types.QueryAllUserLimitOrdersRequest{ + Address: address, + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.LimitOrderTrancheUserAllByAddress(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.LimitOrders), step) + require.Subset(t, + msgs, + resp.LimitOrders, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.LimitOrderTrancheUserAllByAddress(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.LimitOrders), step) + require.Subset(t, + msgs, + resp.LimitOrders, + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.LimitOrderTrancheUserAllByAddress(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.LimitOrders, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.LimitOrderTrancheUserAllByAddress(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/grpc_query_params.go b/x/dex/keeper/grpc_query_params.go new file mode 100644 index 000000000..0ea6f35ab --- /dev/null +++ b/x/dex/keeper/grpc_query_params.go @@ -0,0 +1,19 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(c) + + return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil +} diff --git a/x/dex/keeper/grpc_query_params_test.go b/x/dex/keeper/grpc_query_params_test.go new file mode 100644 index 000000000..daa26bd2e --- /dev/null +++ b/x/dex/keeper/grpc_query_params_test.go @@ -0,0 +1,21 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + testkeeper "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestParamsQuery(t *testing.T) { + keeper, ctx := testkeeper.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + params := types.DefaultParams() + keeper.SetParams(ctx, params) + + response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) + require.NoError(t, err) + require.Equal(t, &types.QueryParamsResponse{Params: params}, response) +} diff --git a/x/dex/keeper/grpc_query_pool.go b/x/dex/keeper/grpc_query_pool.go new file mode 100644 index 000000000..6783dac68 --- /dev/null +++ b/x/dex/keeper/grpc_query_pool.go @@ -0,0 +1,51 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) Pool( + goCtx context.Context, + req *types.QueryPoolRequest, +) (*types.QueryPoolResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + + pool, found := k.GetPool(ctx, pairID, req.TickIndex, req.Fee) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryPoolResponse{Pool: pool}, nil +} + +func (k Keeper) PoolByID( + goCtx context.Context, + req *types.QueryPoolByIDRequest, +) (*types.QueryPoolResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + pool, found := k.GetPoolByID(ctx, req.PoolID) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryPoolResponse{Pool: pool}, nil +} diff --git a/x/dex/keeper/grpc_query_pool_metadata.go b/x/dex/keeper/grpc_query_pool_metadata.go new file mode 100644 index 000000000..628d2bf2a --- /dev/null +++ b/x/dex/keeper/grpc_query_pool_metadata.go @@ -0,0 +1,54 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) PoolMetadataAll(goCtx context.Context, req *types.QueryAllPoolMetadataRequest) (*types.QueryAllPoolMetadataResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + var poolMetadatas []types.PoolMetadata + ctx := sdk.UnwrapSDKContext(goCtx) + + store := ctx.KVStore(k.storeKey) + poolMetadataStore := prefix.NewStore(store, types.KeyPrefix(types.PoolMetadataKeyPrefix)) + + pageRes, err := query.Paginate(poolMetadataStore, req.Pagination, func(key []byte, value []byte) error { + var poolMetadata types.PoolMetadata + if err := k.cdc.Unmarshal(value, &poolMetadata); err != nil { + return err + } + + poolMetadatas = append(poolMetadatas, poolMetadata) + return nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllPoolMetadataResponse{PoolMetadata: poolMetadatas, Pagination: pageRes}, nil +} + +func (k Keeper) PoolMetadata(goCtx context.Context, req *types.QueryGetPoolMetadataRequest) (*types.QueryGetPoolMetadataResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + poolMetadata, found := k.GetPoolMetadata(ctx, req.Id) + if !found { + return nil, sdkerrors.ErrKeyNotFound + } + + return &types.QueryGetPoolMetadataResponse{PoolMetadata: poolMetadata}, nil +} diff --git a/x/dex/keeper/grpc_query_pool_metadata_test.go b/x/dex/keeper/grpc_query_pool_metadata_test.go new file mode 100644 index 000000000..13153e102 --- /dev/null +++ b/x/dex/keeper/grpc_query_pool_metadata_test.go @@ -0,0 +1,118 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/types" +) + +func TestPoolMetadataQuerySingle(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNPoolMetadata(keeper, ctx, 2) + tests := []struct { + desc string + request *types.QueryGetPoolMetadataRequest + response *types.QueryGetPoolMetadataResponse + err error + }{ + { + desc: "First", + request: &types.QueryGetPoolMetadataRequest{Id: msgs[0].ID}, + response: &types.QueryGetPoolMetadataResponse{PoolMetadata: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryGetPoolMetadataRequest{Id: msgs[1].ID}, + response: &types.QueryGetPoolMetadataResponse{PoolMetadata: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryGetPoolMetadataRequest{Id: uint64(len(msgs))}, + err: sdkerrors.ErrKeyNotFound, + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } + for _, tc := range tests { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.PoolMetadata(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} + +func TestPoolMetadataQueryPaginated(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNPoolMetadata(keeper, ctx, 5) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllPoolMetadataRequest { + return &types.QueryAllPoolMetadataRequest{ + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.PoolMetadataAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.PoolMetadata), step) + require.Subset(t, + nullify.Fill(msgs), + nullify.Fill(resp.PoolMetadata), + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.PoolMetadataAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.PoolMetadata), step) + require.Subset(t, + nullify.Fill(msgs), + nullify.Fill(resp.PoolMetadata), + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.PoolMetadataAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + nullify.Fill(msgs), + nullify.Fill(resp.PoolMetadata), + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.PoolMetadataAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/grpc_query_pool_reserves.go b/x/dex/keeper/grpc_query_pool_reserves.go new file mode 100644 index 000000000..b44af3958 --- /dev/null +++ b/x/dex/keeper/grpc_query_pool_reserves.go @@ -0,0 +1,87 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) PoolReservesAll( + goCtx context.Context, + req *types.QueryAllPoolReservesRequest, +) (*types.QueryAllPoolReservesResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) + + store := ctx.KVStore(k.storeKey) + PoolReservesStore := prefix.NewStore(store, types.TickLiquidityPrefix(tradePairID)) + + var poolReserves []*types.PoolReserves + pageRes, err := query.FilteredPaginate( + PoolReservesStore, + req.Pagination, + func(key, value []byte, accum bool) (hit bool, err error) { + var tick types.TickLiquidity + + if err := k.cdc.Unmarshal(value, &tick); err != nil { + return false, err + } + reserves := tick.GetPoolReserves() + // Check if this is a LimitOrderTranche and not PoolReserves + if reserves != nil { + if accum { + poolReserves = append(poolReserves, reserves) + } + + return true, nil + } + + return false, nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllPoolReservesResponse{PoolReserves: poolReserves, Pagination: pageRes}, nil +} + +func (k Keeper) PoolReserves( + goCtx context.Context, + req *types.QueryGetPoolReservesRequest, +) (*types.QueryGetPoolReservesResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) + + poolReservesID := &types.PoolReservesKey{ + tradePairID, + req.TickIndex, + req.Fee, + } + val, found := k.GetPoolReserves(ctx, poolReservesID) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryGetPoolReservesResponse{PoolReserves: val}, nil +} diff --git a/x/dex/keeper/grpc_query_pool_reserves_test.go b/x/dex/keeper/grpc_query_pool_reserves_test.go new file mode 100644 index 000000000..60d197dd4 --- /dev/null +++ b/x/dex/keeper/grpc_query_pool_reserves_test.go @@ -0,0 +1,135 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/types" +) + +func TestPoolReservesQuerySingle(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNPoolReserves(keeper, ctx, 2) + for _, tc := range []struct { + desc string + request *types.QueryGetPoolReservesRequest + response *types.QueryGetPoolReservesResponse + err error + }{ + { + desc: "First", + request: &types.QueryGetPoolReservesRequest{ + PairID: "TokenA<>TokenB", + TickIndex: msgs[0].Key.TickIndexTakerToMaker, + TokenIn: "TokenA", + Fee: msgs[0].Key.Fee, + }, + response: &types.QueryGetPoolReservesResponse{PoolReserves: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryGetPoolReservesRequest{ + PairID: "TokenA<>TokenB", + TickIndex: msgs[1].Key.TickIndexTakerToMaker, + TokenIn: "TokenA", + Fee: msgs[1].Key.Fee, + }, + response: &types.QueryGetPoolReservesResponse{PoolReserves: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryGetPoolReservesRequest{ + PairID: "TokenA<>TokenB", + TickIndex: 0, + TokenIn: "TokenA", + Fee: 100000, + }, + err: status.Error(codes.NotFound, "not found"), + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.PoolReserves(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} + +func TestPoolReservesQueryPaginated(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNPoolReserves(keeper, ctx, 2) + // Add more data to make sure only LO tranches are returned + createNLimitOrderTranches(keeper, ctx, 2) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllPoolReservesRequest { + return &types.QueryAllPoolReservesRequest{ + PairID: "TokenA<>TokenB", + TokenIn: "TokenA", + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.PoolReservesAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.PoolReserves), step) + require.Subset(t, + msgs, + resp.PoolReserves, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.PoolReservesAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.PoolReserves), step) + require.Subset(t, + msgs, + resp.PoolReserves, + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.PoolReservesAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.PoolReserves, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.PoolReservesAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/grpc_query_pool_test.go b/x/dex/keeper/grpc_query_pool_test.go new file mode 100644 index 000000000..634df80dd --- /dev/null +++ b/x/dex/keeper/grpc_query_pool_test.go @@ -0,0 +1,122 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/types" +) + +func TestPoolQuerySingle(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNPools(keeper, ctx, 2) + for _, tc := range []struct { + desc string + request *types.QueryPoolRequest + response *types.QueryPoolResponse + err error + }{ + { + desc: "First", + request: &types.QueryPoolRequest{ + PairID: "TokenA<>TokenB", + TickIndex: msgs[0].CenterTickIndex(), + Fee: msgs[0].Fee(), + }, + response: &types.QueryPoolResponse{Pool: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryPoolRequest{ + PairID: "TokenA<>TokenB", + TickIndex: msgs[1].CenterTickIndex(), + Fee: msgs[1].Fee(), + }, + response: &types.QueryPoolResponse{Pool: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryPoolRequest{ + PairID: "TokenA<>TokenB", + TickIndex: 0, + Fee: 100000, + }, + err: status.Error(codes.NotFound, "not found"), + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.Pool(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} + +func TestPoolQueryByID(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := createNPools(keeper, ctx, 2) + for _, tc := range []struct { + desc string + request *types.QueryPoolByIDRequest + response *types.QueryPoolResponse + err error + }{ + { + desc: "First", + request: &types.QueryPoolByIDRequest{ + PoolID: 0, + }, + response: &types.QueryPoolResponse{Pool: msgs[0]}, + }, + { + desc: "Second", + request: &types.QueryPoolByIDRequest{ + PoolID: 1, + }, + response: &types.QueryPoolResponse{Pool: msgs[1]}, + }, + { + desc: "KeyNotFound", + request: &types.QueryPoolByIDRequest{ + PoolID: 100, + }, + err: status.Error(codes.NotFound, "not found"), + }, + { + desc: "InvalidRequest", + err: status.Error(codes.InvalidArgument, "invalid request"), + }, + } { + t.Run(tc.desc, func(t *testing.T) { + response, err := keeper.PoolByID(wctx, tc.request) + if tc.err != nil { + require.ErrorIs(t, err, tc.err) + } else { + require.NoError(t, err) + require.Equal(t, + nullify.Fill(tc.response), + nullify.Fill(response), + ) + } + }) + } +} diff --git a/x/dex/keeper/grpc_query_tick_liquidity.go b/x/dex/keeper/grpc_query_tick_liquidity.go new file mode 100644 index 000000000..6da6a9640 --- /dev/null +++ b/x/dex/keeper/grpc_query_tick_liquidity.go @@ -0,0 +1,53 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// NOTE: For single queries of tick liquidity use explicty typed queries +// (ie. the k.LimitOrderTranche & k.PoolReserves) + +func (k Keeper) TickLiquidityAll( + c context.Context, + req *types.QueryAllTickLiquidityRequest, +) (*types.QueryAllTickLiquidityResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + var tickLiquidities []*types.TickLiquidity + ctx := sdk.UnwrapSDKContext(c) + + pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + if err != nil { + return nil, err + } + + tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) + + store := ctx.KVStore(k.storeKey) + tickLiquidityStore := prefix.NewStore(store, types.TickLiquidityPrefix(tradePairID)) + + pageRes, err := query.Paginate(tickLiquidityStore, req.Pagination, func(key, value []byte) error { + tickLiquidity := &types.TickLiquidity{} + if err := k.cdc.Unmarshal(value, tickLiquidity); err != nil { + return err + } + + tickLiquidities = append(tickLiquidities, tickLiquidity) + + return nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllTickLiquidityResponse{TickLiquidity: tickLiquidities, Pagination: pageRes}, nil +} diff --git a/x/dex/keeper/grpc_query_tick_liquidity_test.go b/x/dex/keeper/grpc_query_tick_liquidity_test.go new file mode 100644 index 000000000..0de6968b1 --- /dev/null +++ b/x/dex/keeper/grpc_query_tick_liquidity_test.go @@ -0,0 +1,72 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func TestTickLiquidityQueryPaginated(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + wctx := sdk.WrapSDKContext(ctx) + msgs := CreateNTickLiquidity(keeper, ctx, 5) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllTickLiquidityRequest { + return &types.QueryAllTickLiquidityRequest{ + PairID: "TokenA<>TokenB", + TokenIn: "TokenA", + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.TickLiquidityAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.TickLiquidity), step) + require.Subset(t, + msgs, + resp.TickLiquidity, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + for i := 0; i < len(msgs); i += step { + resp, err := keeper.TickLiquidityAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.TickLiquidity), step) + require.Subset(t, + msgs, + resp.TickLiquidity, + ) + next = resp.Pagination.NextKey + } + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.TickLiquidityAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.TickLiquidity, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.TickLiquidityAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/grpc_query_user_deposits.go b/x/dex/keeper/grpc_query_user_deposits.go new file mode 100644 index 000000000..a94fe3ff1 --- /dev/null +++ b/x/dex/keeper/grpc_query_user_deposits.go @@ -0,0 +1,71 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/utils" + "github.com/neutron-org/neutron/x/dex/types" + dexutils "github.com/neutron-org/neutron/x/dex/utils" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) UserDepositsAll( + goCtx context.Context, + req *types.QueryAllUserDepositsRequest, +) (*types.QueryAllUserDepositsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + addr, err := sdk.AccAddressFromBech32(req.Address) + if err != nil { + return nil, err + } + ctx := sdk.UnwrapSDKContext(goCtx) + + var depositArr []*types.DepositRecord + + pageRes, err := utils.FilteredPaginateAccountBalances( + ctx, + k.bankKeeper, + addr, + req.Pagination, + func(poolCoinMaybe sdk.Coin, accumulate bool) bool { + err := types.ValidatePoolDenom(poolCoinMaybe.Denom) + if err != nil { + return false + } + + poolMetadata, err := k.GetPoolMetadataByDenom(ctx, poolCoinMaybe.Denom) + if err != nil { + panic("Can't get info for PoolDenom") + } + + fee := dexutils.MustSafeUint64ToInt64(poolMetadata.Fee) + + if accumulate { + depositRecord := &types.DepositRecord{ + PairID: poolMetadata.PairID, + SharesOwned: poolCoinMaybe.Amount, + CenterTickIndex: poolMetadata.Tick, + LowerTickIndex: poolMetadata.Tick - fee, + UpperTickIndex: poolMetadata.Tick + fee, + Fee: poolMetadata.Fee, + } + + depositArr = append(depositArr, depositRecord) + } + + return true + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllUserDepositsResponse{ + Deposits: depositArr, + Pagination: pageRes, + }, nil +} diff --git a/x/dex/keeper/grpc_query_user_deposits_test.go b/x/dex/keeper/grpc_query_user_deposits_test.go new file mode 100644 index 000000000..d9fe413ac --- /dev/null +++ b/x/dex/keeper/grpc_query_user_deposits_test.go @@ -0,0 +1,142 @@ +package keeper_test + +import ( + "testing" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + dualityapp "github.com/neutron-org/neutron/app" + keepertest "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func simulateDeposit(ctx sdk.Context, app *dualityapp.App, addr sdk.AccAddress, deposit *types.DepositRecord) { + // NOTE: For simplicyt sake, we are not actually doing a deposit, we are just initializing + // the pool and adding the poolDenom to the users account + pool, err := app.DexKeeper.InitPool(ctx, deposit.PairID, deposit.CenterTickIndex, deposit.Fee) + if err != nil { + panic("Cannot init pool") + } + coin := sdk.NewCoin(pool.GetPoolDenom(), deposit.SharesOwned) + keepertest.FundAccount(app.BankKeeper, ctx, addr, sdk.Coins{coin}) +} + +func TestUserDepositsAllQueryPaginated(t *testing.T) { + app := dualityapp.Setup(t, false) + keeper := app.DexKeeper + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + wctx := sdk.WrapSDKContext(ctx) + addr := sdk.AccAddress([]byte("test_addr")) + msgs := []*types.DepositRecord{ + { + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 2, + LowerTickIndex: 1, + UpperTickIndex: 3, + Fee: 1, + }, + { + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 3, + LowerTickIndex: 2, + UpperTickIndex: 4, + Fee: 1, + }, + { + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 4, + LowerTickIndex: 3, + UpperTickIndex: 5, + Fee: 1, + }, + { + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 5, + LowerTickIndex: 4, + UpperTickIndex: 6, + Fee: 1, + }, + { + PairID: defaultPairID, + SharesOwned: sdk.NewInt(10), + CenterTickIndex: 6, + LowerTickIndex: 5, + UpperTickIndex: 7, + Fee: 1, + }, + } + + for _, d := range msgs { + simulateDeposit(ctx, app, addr, d) + } + + // Add random noise to make sure only pool denoms are picked up + randomCoins := sdk.Coins{sdk.NewInt64Coin("TokenA", 10), sdk.NewInt64Coin("TokenZ", 10)} + keepertest.FundAccount(app.BankKeeper, ctx, addr, randomCoins) + + request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllUserDepositsRequest { + return &types.QueryAllUserDepositsRequest{ + Address: addr.String(), + Pagination: &query.PageRequest{ + Key: next, + Offset: offset, + Limit: limit, + CountTotal: total, + }, + } + } + t.Run("ByOffset", func(t *testing.T) { + step := 2 + for i := 0; i < len(msgs); i += step { + resp, err := keeper.UserDepositsAll(wctx, request(nil, uint64(i), uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.Deposits), step) + require.Subset(t, + msgs, + resp.Deposits, + ) + } + }) + t.Run("ByKey", func(t *testing.T) { + step := 2 + var next []byte + var allRecords []*types.DepositRecord + for i := 0; i < len(msgs); i += step { + resp, err := keeper.UserDepositsAll(wctx, request(next, 0, uint64(step), false)) + require.NoError(t, err) + require.LessOrEqual(t, len(resp.Deposits), step) + require.Subset(t, + msgs, + resp.Deposits, + ) + + allRecords = append(allRecords, resp.Deposits...) + next = resp.Pagination.NextKey + } + require.ElementsMatch(t, + msgs, + allRecords, + ) + }) + t.Run("Total", func(t *testing.T) { + resp, err := keeper.UserDepositsAll(wctx, request(nil, 0, 0, true)) + require.NoError(t, err) + require.Equal(t, len(msgs), int(resp.Pagination.Total)) + require.ElementsMatch(t, + msgs, + resp.Deposits, + ) + }) + t.Run("InvalidRequest", func(t *testing.T) { + _, err := keeper.UserDepositsAll(wctx, nil) + require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) + }) +} diff --git a/x/dex/keeper/inactive_limit_order_tranche.go b/x/dex/keeper/inactive_limit_order_tranche.go new file mode 100644 index 000000000..339be79c4 --- /dev/null +++ b/x/dex/keeper/inactive_limit_order_tranche.go @@ -0,0 +1,68 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +// SetInactiveLimitOrderTranche set a specific inactiveLimitOrderTranche in the store from its index +func (k Keeper) SetInactiveLimitOrderTranche(ctx sdk.Context, limitOrderTranche *types.LimitOrderTranche) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.InactiveLimitOrderTrancheKeyPrefix)) + b := k.cdc.MustMarshal(limitOrderTranche) + store.Set(limitOrderTranche.Key.KeyMarshal(), b) +} + +// GetInactiveLimitOrderTranche returns a inactiveLimitOrderTranche from its index +func (k Keeper) GetInactiveLimitOrderTranche( + ctx sdk.Context, + limitOrderTrancheKey *types.LimitOrderTrancheKey, +) (val *types.LimitOrderTranche, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.InactiveLimitOrderTrancheKeyPrefix)) + + b := store.Get(limitOrderTrancheKey.KeyMarshal()) + if b == nil { + return val, false + } + + val = &types.LimitOrderTranche{} + k.cdc.MustUnmarshal(b, val) + + return val, true +} + +// RemoveInactiveLimitOrderTranche removes a inactiveLimitOrderTranche from the store +func (k Keeper) RemoveInactiveLimitOrderTranche( + ctx sdk.Context, + limitOrderTrancheKey *types.LimitOrderTrancheKey, +) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.InactiveLimitOrderTrancheKeyPrefix)) + store.Delete(limitOrderTrancheKey.KeyMarshal()) +} + +// GetAllInactiveLimitOrderTranche returns all inactiveLimitOrderTranche +func (k Keeper) GetAllInactiveLimitOrderTranche(ctx sdk.Context) (list []*types.LimitOrderTranche) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.InactiveLimitOrderTrancheKeyPrefix)) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + val := &types.LimitOrderTranche{} + k.cdc.MustUnmarshal(iterator.Value(), val) + list = append(list, val) + } + + return +} + +func (k Keeper) SaveInactiveTranche(sdkCtx sdk.Context, tranche *types.LimitOrderTranche) { + if tranche.HasTokenIn() || tranche.HasTokenOut() { + k.SetInactiveLimitOrderTranche(sdkCtx, tranche) + } else { + k.RemoveInactiveLimitOrderTranche( + sdkCtx, + tranche.Key, + ) + } +} diff --git a/x/dex/keeper/inactive_limit_order_tranche_test.go b/x/dex/keeper/inactive_limit_order_tranche_test.go new file mode 100644 index 000000000..4dc47b2cc --- /dev/null +++ b/x/dex/keeper/inactive_limit_order_tranche_test.go @@ -0,0 +1,73 @@ +package keeper_test + +import ( + "strconv" + "testing" + + math "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func createNInactiveLimitOrderTranche( + keeper *keeper.Keeper, + ctx sdk.Context, + n int, +) []*types.LimitOrderTranche { + items := make([]*types.LimitOrderTranche, n) + for i := range items { + items[i] = types.MustNewLimitOrderTranche( + "TokenA", + "TokenB", + strconv.Itoa(i), + int64(i), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + ) + keeper.SetInactiveLimitOrderTranche(ctx, items[i]) + } + + return items +} + +func TestInactiveLimitOrderTrancheGet(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNInactiveLimitOrderTranche(keeper, ctx, 10) + for _, item := range items { + rst, found := keeper.GetInactiveLimitOrderTranche(ctx, item.Key) + require.True(t, found) + require.Equal(t, + nullify.Fill(&item), + nullify.Fill(&rst), + ) + } +} + +func TestInactiveLimitOrderTrancheRemove(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNInactiveLimitOrderTranche(keeper, ctx, 10) + for _, item := range items { + keeper.RemoveInactiveLimitOrderTranche(ctx, item.Key) + _, found := keeper.GetInactiveLimitOrderTranche(ctx, item.Key) + require.False(t, found) + } +} + +func TestInactiveLimitOrderTrancheGetAll(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNInactiveLimitOrderTranche(keeper, ctx, 10) + pointerItems := make([]*types.LimitOrderTranche, len(items)) + for i := range items { + pointerItems[i] = items[i] + } + require.ElementsMatch(t, + pointerItems, + keeper.GetAllInactiveLimitOrderTranche(ctx), + ) +} diff --git a/x/dex/keeper/integration_cancellimitorder_test.go b/x/dex/keeper/integration_cancellimitorder_test.go new file mode 100644 index 000000000..00aadff0b --- /dev/null +++ b/x/dex/keeper/integration_cancellimitorder_test.go @@ -0,0 +1,286 @@ +package keeper_test + +import ( + "math" + "time" + + abci "github.com/cometbft/cometbft/abci/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestCancelEntireLimitOrderAOneExists() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds a limit order of A for B and cancels it right away + + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(50, 50) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + // Assert that the LimitOrderTrancheUser has been deleted + _, found := s.app.DexKeeper.GetLimitOrderTrancheUser(s.ctx, s.alice.String(), trancheKey) + s.Assert().False(found) +} + +func (s *MsgServerTestSuite) TestCancelEntireLimitOrderBOneExists() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds a limit order of B for A and cancels it right away + + trancheKey := s.aliceLimitSells("TokenB", 0, 10) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(0) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(50, 50) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestCancelHigherEntireLimitOrderATwoExistDiffTicksSameDirection() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds two limit orders from A to B and removes the one at the higher tick (0) + + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + s.aliceLimitSells("TokenA", -1, 10) + + s.assertAliceBalances(30, 50) + s.assertDexBalances(20, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksSameDirection() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds two limit orders from A to B and removes the one at the lower tick (-1) + + s.aliceLimitSells("TokenA", 0, 10) + trancheKey := s.aliceLimitSells("TokenA", -1, 10) + + s.assertAliceBalances(30, 50) + s.assertDexBalances(20, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksDiffDirection() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds one limit orders from A to B and one from B to A and removes the one from A to B + + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + s.aliceLimitSells("TokenB", 1, 10) + + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(0) + s.assertCurr0To1(1) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestCancelHigherEntireLimitOrderBTwoExistDiffTicksSameDirection() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds two limit orders from B to A and removes the one at tick 0 + + trancheKey := s.aliceLimitSells("TokenB", 0, 10) + s.aliceLimitSells("TokenB", -1, 10) + + s.assertAliceBalances(50, 30) + s.assertDexBalances(0, 20) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(-1) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(-1) +} + +func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderBTwoExistDiffTicksSameDirection() { + s.fundAliceBalances(50, 50) + // CASE + // Alice adds two limit orders from B to A and removes the one at tick 0 + + s.aliceLimitSells("TokenB", 0, 10) + trancheKey := s.aliceLimitSells("TokenB", -1, 10) + + s.assertAliceBalances(50, 30) + s.assertDexBalances(0, 20) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(-1) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(0) +} + +func (s *MsgServerTestSuite) TestCancelTwiceFails() { + s.fundAliceBalances(50, 50) + // CASE + // Alice tries to cancel the same limit order twice + + trancheKey := s.aliceLimitSells("TokenB", 0, 10) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + + s.aliceCancelsLimitSell(trancheKey) + + s.assertAliceBalances(50, 50) + s.assertDexBalances(0, 0) + + s.aliceCancelsLimitSellFails(trancheKey, types.ErrActiveLimitOrderNotFound) +} + +func (s *MsgServerTestSuite) TestCancelPartiallyFilled() { + s.fundAliceBalances(50, 0) + s.fundBobBalances(0, 50) + + // GIVEN alice limit sells 50 TokenA + trancheKey := s.aliceLimitSells("TokenA", 0, 50) + // Bob swaps 25 TokenB for TokenA + s.bobLimitSells("TokenB", -10, 25, types.LimitOrderType_FILL_OR_KILL) + + s.assertDexBalances(25, 25) + s.assertAliceBalances(0, 0) + + // WHEN alice cancels her limit order + s.aliceCancelsLimitSell(trancheKey) + + // Then alice gets back remaining 25 TokenA LO reserves + s.assertAliceBalances(25, 0) + s.assertDexBalances(0, 25) +} + +func (s *MsgServerTestSuite) TestCancelPartiallyFilledMultiUser() { + s.fundAliceBalances(50, 0) + s.fundBobBalances(0, 50) + s.fundCarolBalances(100, 0) + + // GIVEN alice limit sells 50 TokenA; carol sells 100 tokenA + trancheKey := s.aliceLimitSells("TokenA", 0, 50) + s.carolLimitSells("TokenA", 0, 100) + // Bob swaps 25 TokenB for TokenA + s.bobLimitSells("TokenB", -10, 25, types.LimitOrderType_FILL_OR_KILL) + + s.assertLimitLiquidityAtTick("TokenA", 0, 125) + s.assertDexBalances(125, 25) + s.assertAliceBalances(0, 0) + + // WHEN alice and carol cancel their limit orders + s.aliceCancelsLimitSell(trancheKey) + s.carolCancelsLimitSell(trancheKey) + + // THEN alice gets back 41 TokenA (125 * 1/3) + s.assertAliceBalances(41, 0) + + // Carol gets back 83 TokenA (125 * 2/3) + s.assertCarolBalances(83, 0) + s.assertDexBalances(1, 25) +} + +func (s *MsgServerTestSuite) TestCancelGoodTil() { + s.fundAliceBalances(50, 0) + tomorrow := time.Now().AddDate(0, 0, 1) + // GIVEN alice limit sells 50 TokenA with goodTil date of tommrow + trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 50, tomorrow) + s.assertLimitLiquidityAtTick("TokenA", 0, 50) + s.assertNLimitOrderExpiration(1) + + // WHEN alice cancels the limit order + s.aliceCancelsLimitSell(trancheKey) + // THEN there is no liquidity left + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // and the LimitOrderExpiration has been removed + s.assertNLimitOrderExpiration(0) +} + +func (s *MsgServerTestSuite) TestCancelGoodTilAfterExpirationFails() { + s.fundAliceBalances(50, 0) + tomorrow := time.Now().AddDate(0, 0, 1) + // GIVEN alice limit sells 50 TokenA with goodTil date of tommrow + trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 50, tomorrow) + s.assertLimitLiquidityAtTick("TokenA", 0, 50) + s.assertNLimitOrderExpiration(1) + + // WHEN expiration date has passed + s.nextBlockWithTime(time.Now().AddDate(0, 0, 2)) + s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + + // THEN alice cancellation fails + s.aliceCancelsLimitSellFails(trancheKey, types.ErrActiveLimitOrderNotFound) +} + +func (s *MsgServerTestSuite) TestCancelJITSameBlock() { + s.fundAliceBalances(50, 0) + // GIVEN alice limit sells 50 TokenA as JIT + trancheKey := s.aliceLimitSells("TokenA", 0, 50, types.LimitOrderType_JUST_IN_TIME) + s.assertLimitLiquidityAtTick("TokenA", 0, 50) + s.assertNLimitOrderExpiration(1) + + // WHEN alice cancels the limit order + s.aliceCancelsLimitSell(trancheKey) + // THEN there is no liquidity left + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // and the LimitOrderExpiration has been removed + s.assertNLimitOrderExpiration(0) +} + +func (s *MsgServerTestSuite) TestCancelJITNextBlock() { + s.fundAliceBalances(50, 0) + // GIVEN alice limit sells 50 TokenA as JIT + trancheKey := s.aliceLimitSells("TokenA", 0, 50, types.LimitOrderType_JUST_IN_TIME) + s.assertLimitLiquidityAtTick("TokenA", 0, 50) + s.assertNLimitOrderExpiration(1) + + // WHEN we move to block N+1 + s.nextBlockWithTime(time.Now()) + s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + + // THEN alice cancellation fails + s.aliceCancelsLimitSellFails(trancheKey, types.ErrActiveLimitOrderNotFound) + s.assertAliceBalances(0, 0) +} diff --git a/x/dex/keeper/integration_deposit_autoswap_unit_test.go b/x/dex/keeper/integration_deposit_autoswap_unit_test.go new file mode 100644 index 000000000..e7236da73 --- /dev/null +++ b/x/dex/keeper/integration_deposit_autoswap_unit_test.go @@ -0,0 +1,108 @@ +package keeper_test + +func (s *MsgServerTestSuite) TestAutoswapperWithdraws() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + bobDep0 := 10 + bobDep1 := 10 + tickIndex := 200 + fee := 5 + + bobSharesMinted := s.calcSharesMinted(int64(tickIndex), int64(bobDep0), int64(bobDep1)) + + s.bobDeposits(NewDeposit(bobDep0, bobDep1, tickIndex, fee)) + s.assertBobBalances(40, 40) + s.assertDexBalances(10, 10) + + // Alice deposits at a different balance ratio + s.aliceDepositsWithOptions(NewDepositWithOptions(12, 5, tickIndex, fee, DepositOptions{DisableAutoswap: false})) + s.assertAliceBalances(38, 45) + s.assertDexBalances(22, 15) + + // Calculated expected amounts out + autoswapSharesMinted := s.calcAutoswapSharesMinted(int64(tickIndex), uint64(fee), 7, 0, 5, 5, bobSharesMinted.Int64(), bobSharesMinted.Int64()) + // totalShares := autoswapSharesMinted.Add(sdk.NewInt(20)) + + aliceExpectedBalance0, aliceExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(autoswapSharesMinted, s.alice, int64(tickIndex), uint64(fee)) + + s.aliceWithdraws(NewWithdrawalInt(autoswapSharesMinted, int64(tickIndex), uint64(fee))) + + s.assertAliceBalances(aliceExpectedBalance0.Int64(), aliceExpectedBalance1.Int64()) + s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) +} + +func (s *MsgServerTestSuite) TestAutoswapOtherDepositorWithdraws() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + bobDep0 := 10 + bobDep1 := 10 + tickIndex := 150 + fee := 10 + + bobSharesMinted := s.calcSharesMinted(int64(tickIndex), int64(bobDep0), int64(bobDep1)) + + s.bobDeposits(NewDeposit(bobDep0, bobDep1, tickIndex, fee)) + s.assertBobBalances(40, 40) + s.assertDexBalances(10, 10) + + // Alice deposits at a different balance ratio + s.aliceDepositsWithOptions(NewDepositWithOptions(10, 7, tickIndex, fee, DepositOptions{DisableAutoswap: false})) + s.assertAliceBalances(40, 43) + s.assertDexBalances(20, 17) + + // Calculated expected amounts out + + bobExpectedBalance0, bobExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(bobSharesMinted, s.bob, int64(tickIndex), uint64(fee)) + + s.bobWithdraws(NewWithdrawal(bobSharesMinted.Int64(), int64(tickIndex), uint64(fee))) + + s.assertBobBalances(bobExpectedBalance0.Int64(), bobExpectedBalance1.Int64()) + s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) +} + +func (s *MsgServerTestSuite) TestAutoswapBothWithdraws() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + bobDep0 := 10 + bobDep1 := 10 + tickIndex := 10000 + fee := 5 + + bobSharesMinted := s.calcSharesMinted(int64(tickIndex), int64(bobDep0), int64(bobDep1)) + + s.bobDeposits(NewDeposit(bobDep0, bobDep1, tickIndex, fee)) + s.assertBobBalances(40, 40) + s.assertDexBalances(10, 10) + + // Alice deposits at a different balance ratio + s.aliceDepositsWithOptions(NewDepositWithOptions(10, 5, tickIndex, fee, DepositOptions{DisableAutoswap: false})) + s.assertAliceBalances(40, 45) + s.assertDexBalances(20, 15) + + // Calculated expected amounts out + autoswapSharesMinted := s.calcAutoswapSharesMinted(int64(tickIndex), uint64(fee), 5, 0, 5, 5, bobSharesMinted.Int64(), bobSharesMinted.Int64()) + // totalShares := autoswapSharesMinted.Add(sdk.NewInt(20)) + + bobExpectedBalance0, bobExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(bobSharesMinted, s.bob, int64(tickIndex), uint64(fee)) + + s.bobWithdraws(NewWithdrawal(bobSharesMinted.Int64(), int64(tickIndex), uint64(fee))) + + s.assertBobBalances(bobExpectedBalance0.Int64(), bobExpectedBalance1.Int64()) + s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) + + aliceExpectedBalance0, aliceExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(autoswapSharesMinted, s.alice, int64(tickIndex), uint64(fee)) + + s.aliceWithdraws(NewWithdrawalInt(autoswapSharesMinted, int64(tickIndex), uint64(fee))) + + s.assertAliceBalances(aliceExpectedBalance0.Int64(), aliceExpectedBalance1.Int64()) + s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) +} diff --git a/x/dex/keeper/integration_deposit_doublesided_test.go b/x/dex/keeper/integration_deposit_doublesided_test.go new file mode 100644 index 000000000..dc03f571f --- /dev/null +++ b/x/dex/keeper/integration_deposit_doublesided_test.go @@ -0,0 +1,248 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestDepositDoubleSidedInSpreadCurrTickAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // deposit in spread (10 of A,B at tick 0 fee 1) + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(30, 30) + s.assertDexBalances(20, 20) + + // THEN + // assert currentTick1To0, currTick0to1 moved + s.assertCurr1To0(-1) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedAroundSpreadCurrTickNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // deposit around spread (10 of A,B at tick 0 fee 3) + s.aliceDeposits(NewDeposit(10, 10, 0, 3)) + s.assertAliceBalances(30, 30) + s.assertDexBalances(20, 20) + + // THEN + // assert CurrentTick0To1, CurrentTick1To0 unchanged + s.assertCurr1To0(-1) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick0To1Adjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // deposit half in spread (10 of A,B at tick 1 fee 5) + s.aliceDeposits(NewDeposit(10, 10, 1, 5)) + s.assertAliceBalances(30, 30) + s.assertDexBalances(20, 20) + + // THEN + // assert CurrTick1to0 unchanged, CurrTick0to1 adjusted + s.assertCurr1To0(-4) + s.assertCurr0To1(5) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick1To0Adjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // deposit half in spread (10 of A,B at tick -1 fee 5) + s.aliceDeposits(NewDeposit(10, 10, -1, 5)) + s.assertAliceBalances(30, 30) + s.assertDexBalances(20, 20) + + // THEN + // assert CurrTick0to1 unchanged, CurrTick1to0 adjusted + s.assertCurr1To0(-5) + s.assertCurr0To1(4) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedCreatingArbBelow() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // deposit 10 of token A at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertPoolLiquidity(10, 0, 0, 1) + + // WHEN + // depositing below enemy lines at tick -5 + // THEN + // deposit should not fail with BEL error, balances and liquidity should not change at deposited tick + + s.aliceDeposits(NewDeposit(10, 10, -5, 1)) + + // buying liquidity behind enemy lines doesn't break anything + s.bobLimitSells("TokenA", 0, 10, types.LimitOrderType_FILL_OR_KILL) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedCreatingArbAbove() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // deposit 10 of token A at tick 0 fee 1 + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertPoolLiquidity(0, 10, 0, 1) + + // WHEN + // depositing above enemy lines at tick 5 + // THEN + // deposit should not fail with BEL error, balances and liquidity should not change at deposited tick + + s.aliceDeposits(NewDeposit(10, 10, 5, 1)) + + // buying liquidity behind enemy lines doesn't break anything + s.bobLimitSells("TokenB", 0, 10, types.LimitOrderType_FILL_OR_KILL) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedFirstSharesMintedTotal() { + s.fundAliceBalances(50, 50) + + // GIVEN + // empty pool + s.assertPoolShares(0, 1, 0) + s.assertPoolLiquidity(0, 0, 0, 1) + + // WHEN + // depositing 10, 5 at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 5, 0, 1)) + + // THEN + // 15 shares are minted and are the total + s.assertPoolShares(0, 1, 15) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedFirstSharesMintedUser() { + s.fundAliceBalances(50, 50) + + // GIVEN + // empty pool + s.assertAliceShares(0, 1, 0) + s.assertPoolLiquidity(0, 0, 0, 1) + s.assertAliceShares(0, 1, 0) + + // WHEN + // depositing 10, 5 at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 5, 0, 1)) + + // THEN + // 15 shares are minted for alice + s.assertAliceShares(0, 1, 15) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedExistingSharesMintedTotal() { + s.fundAliceBalances(50, 50) + + // GIVEN + // tick 0 fee 1 has existing liquidity of 10 tokenA and 5 tokenB, shares are 15 + s.aliceDeposits(NewDeposit(10, 5, 0, 1)) + s.assertPoolShares(0, 1, 15) + s.assertPoolLiquidity(10, 5, 0, 1) + + // WHEN + // depositing 10, 5 at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 5, 0, 1)) + + // THEN + // 15 more shares are minted and the total is 30 + s.assertPoolShares(0, 1, 30) +} + +func (s *MsgServerTestSuite) TestDepositDoubleSidedExistingSharesMintedUser() { + s.fundAliceBalances(50, 50) + + // GIVEN + // tick 0 fee 1 has existing liquidity of 10 tokenA and 5 tokenB, shares are 15 + s.aliceDeposits(NewDeposit(10, 5, 0, 1)) + s.assertAliceShares(0, 1, 15) + s.assertPoolShares(0, 1, 15) + s.assertPoolLiquidity(10, 5, 0, 1) + + // WHEN + // alice deposits 6, 3 at tick 0 fee 1 + s.aliceDeposits(NewDeposit(6, 3, 0, 1)) + + // THEN + // 9 more shares are minted for alice for a total of 24 + s.assertAliceShares(0, 1, 24) +} + +func (s *MsgServerTestSuite) TestDepositValueAccural() { + s.fundAliceBalances(100, 0) + s.fundBobBalances(1000, 1000) + s.fundCarolBalances(100, 1) + + // Alice deposits 100TokenA @ tick0 => 100 shares + s.aliceDeposits(NewDeposit(100, 0, 0, 10)) + s.assertAliceShares(0, 10, 100) + s.assertLiquidityAtTick(sdk.NewInt(100), sdk.ZeroInt(), 0, 10) + + // Lots of trade activity => ~200 ExistingValueToken0 + + for i := 0; i < 100; i++ { + liquidityA, liquidityB := s.getLiquidityAtTick(0, 10) + if i%2 == 0 { + s.bobLimitSells("TokenB", -10, int(liquidityA.Int64())+10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + } else { + s.bobLimitSells("TokenA", 10, int(liquidityB.Int64())+10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + } + } + s.assertLiquidityAtTick(sdk.NewInt(200), sdk.NewInt(0), 0, 10) + s.assertDexBalances(200, 0) + + // Carol deposits 100TokenA @tick0 + s.carolDeposits(NewDeposit(100, 1, 0, 10)) + s.assertCarolShares(0, 10, 50) + + s.aliceWithdraws(NewWithdrawal(100, 0, 10)) + s.assertAliceBalances(200, 0) + + s.carolWithdraws(NewWithdrawal(50, 0, 10)) + s.assertCarolBalances(100, 1) +} diff --git a/x/dex/keeper/integration_deposit_multi_test.go b/x/dex/keeper/integration_deposit_multi_test.go new file mode 100644 index 000000000..330ab70d9 --- /dev/null +++ b/x/dex/keeper/integration_deposit_multi_test.go @@ -0,0 +1,45 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestDepositMultiCompleteFailure() { + s.fundAliceBalances(50, 50) + + // GIVEN + // no existing liquidity + + // WHEN + // alice deposits 0 A, 5 B at tick 0 fee 0 and 5 A, 0 B at tick 0 fee 0 + // THEN + // second deposit's ratio is different than pool after the first, so amounts will be rounded to 0,0 and tx will fail + + err := types.ErrZeroTrueDeposit + s.assertAliceDepositFails( + err, + NewDeposit(5, 0, 0, 1), + NewDeposit(0, 5, 0, 1), + ) +} + +func (s *MsgServerTestSuite) TestDepositMultiSuccess() { + s.fundAliceBalances(50, 50) + + // GIVEN + // no existing liquidity + + // WHEN + // alice deposits 5 A, 5 B at tick 0 fee 0 and then 10 A, 10 B at tick 5 fee 0 + s.aliceDeposits( + NewDeposit(5, 5, 0, 1), + NewDeposit(10, 10, 0, 1), + ) + + // THEN + // both deposits should go through + s.assertAliceBalances(35, 35) + s.assertLiquidityAtTick(sdk.NewInt(15), sdk.NewInt(15), 0, 1) + s.assertDexBalances(15, 15) +} diff --git a/x/dex/keeper/integration_deposit_singlesided_test.go b/x/dex/keeper/integration_deposit_singlesided_test.go new file mode 100644 index 000000000..a7a85e3df --- /dev/null +++ b/x/dex/keeper/integration_deposit_singlesided_test.go @@ -0,0 +1,435 @@ +package keeper_test + +import ( + "math" + + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestDepositSingleSidedInSpread1To0() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // deposit in spread (10 of A at tick 0 fee 1) + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert currentTick1To0 moved + s.assertCurr1To0(-1) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedInSpread0To1() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // deposit in spread (10 of B at tick 0 fee 1) + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // THEN + // assert currentTick0To1 moved + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedInSpreadMinMaxNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + + // WHEN + // deposit in spread (10 of A at tick 0 fee 1) + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert min, max not moved +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpread0To1NotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // deposit out of spread (10 of B at tick 0 fee 3) + s.aliceDeposits(NewDeposit(0, 10, 0, 3)) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // THEN + // assert currentTick0To1 not moved + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpread1To0NotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // deposit out of spread (10 of A at tick 0 fee 3) + s.aliceDeposits(NewDeposit(10, 0, 0, 3)) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert currentTick1To0 not moved + s.assertCurr1To0(-1) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMinAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // deposit out of spread (10 of A at tick 0 fee 3) + s.aliceDeposits(NewDeposit(10, 0, 0, 3)) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert min moved +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMaxAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // deposit out of spread (10 of B at tick 0 fee 3) + s.aliceDeposits(NewDeposit(0, 10, 0, 3)) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // THEN + // assert max moved +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMinNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + // deposit new min at -5 + s.aliceDeposits(NewDeposit(10, 0, 0, 5)) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // WHEN + // deposit in spread (10 of A at tick 0 fee 3) + s.aliceDeposits(NewDeposit(10, 0, 0, 3)) + s.assertAliceBalances(20, 40) + s.assertDexBalances(30, 10) + + // THEN + // assert min not moved +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMaxNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + // deposit new max at 5 + s.aliceDeposits(NewDeposit(0, 10, 0, 5)) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // WHEN + // deposit out of spread (10 of B at tick 0 fee 3) + s.aliceDeposits(NewDeposit(0, 10, 0, 3)) + s.assertAliceBalances(40, 20) + s.assertDexBalances(10, 30) + + // THEN + // assert max not moved +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedExistingLiquidityA() { + s.fundAliceBalances(50, 50) + + // GIVEN + // deposit 10 of token A at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertPoolLiquidity(10, 0, 0, 1) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) + + // WHEN + // deposit 10 of token A on the same tick + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + + // THEN + // assert 20 of token A deposited at tick 0 fee 0 and ticks unchanged + s.assertAliceBalances(30, 50) + s.assertDexBalances(20, 0) + s.assertPoolLiquidity(20, 0, 0, 1) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedExistingLiquidityB() { + s.fundAliceBalances(50, 50) + + // GIVEN + // deposit 10 of token B at tick 1 fee 0 + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertPoolLiquidity(0, 10, 0, 1) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) + + // WHEN + // deposit 10 of token B on the same tick + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + + // THEN + // assert 20 of token B deposited at tick 0 fee 0 and ticks unchanged + s.assertPoolLiquidity(0, 20, 0, 1) + s.assertAliceBalances(50, 30) + s.assertDexBalances(0, 20) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedCreatingArbToken0() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // deposit 10 of token B at tick 0 fee 1 + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertPoolLiquidity(0, 10, 0, 1) + s.assertCurr0To1(1) + + // WHEN + // depositing above enemy lines at tick 1 + // THEN + // deposit should not fail with BEL error, balances and liquidity should not change at deposited tick + s.aliceDeposits(NewDeposit(10, 0, 4000, 1)) + + // Bob arbs + s.bobLimitSells("TokenB", -1, 50, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + s.bobLimitSells("TokenA", 1, 10) + s.assertBobBalances(50, 52) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedCreatingArbToken1() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // deposit 10 of token A at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertPoolLiquidity(10, 0, 0, 1) + s.assertCurr1To0(-1) + + // WHEN + // depositing above enemy lines at tick -1 + // THEN + // deposit should not fail with BEL error, balances and liquidity should not change at deposited tick + + s.aliceDeposits(NewDeposit(0, 10, -4000, 0)) + + // Bob arbs + s.bobLimitSells("TokenA", -1, 50, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + s.bobLimitSells("TokenB", -1, 10) + s.assertBobBalances(52, 50) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedMultiA() { + s.fundAliceBalances(50, 50) + + // GIVEN + // deposit 10 of token A at tick 0 fee 1 + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertPoolLiquidity(10, 0, 0, 1) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) + + // WHEN + // multi deposit + s.aliceDeposits( + NewDeposit(10, 0, 0, 1), + NewDeposit(10, 0, 0, 3), + ) + + // THEN + // assert 20 of token B deposited at tick 1 fee 0 and ticks unchanged + s.assertAliceBalances(20, 50) + s.assertDexBalances(30, 0) + s.assertPoolLiquidity(20, 0, 0, 1) + s.assertPoolLiquidity(10, 0, 0, 3) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedMultiB() { + s.fundAliceBalances(50, 50) + + // GIVEN + // deposit 10 of token B at tick 1 fee 0 + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertPoolLiquidity(0, 10, 0, 1) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) + + // WHEN + // multi deposit at + s.aliceDeposits( + NewDeposit(0, 10, 0, 1), + NewDeposit(0, 10, 0, 3), + ) + + // THEN + // assert 20 of token B deposited at tick 1 fee 0 and ticks unchanged + s.assertAliceBalances(50, 20) + s.assertDexBalances(0, 30) + s.assertPoolLiquidity(0, 20, 0, 1) + s.assertPoolLiquidity(0, 10, 0, 3) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedLowerTickOutsideRange() { + s.fundAliceBalances(50, 50) + + // GIVEN + // no existing liquidity + + // WHEN + // depositing at the lower end of the acceptable range for ticks + // THEN + // deposit should fail with TickOutsideRange + + tickIndex := -1 * int(types.MaxTickExp) + err := types.ErrTickOutsideRange + s.assertAliceDepositFails(err, NewDeposit(10, 0, tickIndex, 1)) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedUpperTickOutsideRange() { + s.fundAliceBalances(50, 50) + + // GIVEN + // no existing liquidity + + // WHEN + // depositing at the lower end of the acceptable range for ticks + // THEN + // deposit should fail with TickOutsideRange + + tickIndex := int(types.MaxTickExp) + err := types.ErrTickOutsideRange + s.assertAliceDepositFails(err, NewDeposit(0, 10, tickIndex, 1)) +} + +func (s *MsgServerTestSuite) TestDepositSingleSidedZeroTrueAmountsFail() { + s.fundAliceBalances(50, 50) + + // GIVEN + // alice deposits 5 A, 0 B at tick 0 fee 0 + s.aliceDeposits(NewDeposit(5, 0, 0, 1)) + + // WHEN + // alice deposits 0 A, 5 B at tick 0 fee 0 + // THEN + // second deposit's ratio is different than pool after the first, so amounts will be rounded to 0,0 and tx will fail + + err := types.ErrZeroTrueDeposit + s.assertAliceDepositFails(err, NewDeposit(0, 5, 0, 1)) +} + +func (s *MsgServerTestSuite) TestDepositSingleLowTickUnderflowFails() { + s.fundAliceBalances(0, 50) + + // GIVEN + // deposit 50 of token B at tick -352436 fee 0 + // THEN 0 shares would be issued so deposit fails + s.assertAliceDepositFails( + types.ErrDepositShareUnderflow, + NewDeposit(0, 50, -352436, 0), + ) +} + +func (s *MsgServerTestSuite) TestDepositSingleInvalidFeeFails() { + s.fundAliceBalances(0, 50) + + // GIVEN + // Deposit at fee 43 (invalid) + // THEN FAILURE + s.assertAliceDepositFails( + types.ErrInvalidFee, + NewDeposit(0, 50, 10, 43), + ) +} diff --git a/x/dex/keeper/integration_multihopswap_test.go b/x/dex/keeper/integration_multihopswap_test.go new file mode 100644 index 000000000..08b28dbf2 --- /dev/null +++ b/x/dex/keeper/integration_multihopswap_test.go @@ -0,0 +1,389 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/keeper" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" +) + +type PoolSetup struct { + TokenA string + TokenB string + AmountA int + AmountB int + TickIndex int + Fee int +} + +func NewPoolSetup(tokenA, tokenB string, amountA, amountB, tickIndex, fee int) PoolSetup { + return PoolSetup{ + TokenA: tokenA, + TokenB: tokenB, + AmountA: amountA, + AmountB: amountB, + TickIndex: tickIndex, + Fee: fee, + } +} + +func (s *MsgServerTestSuite) SetupMultiplePools(poolSetups ...PoolSetup) { + for _, p := range poolSetups { + coins := sdk.NewCoins( + sdk.NewCoin(p.TokenA, sdk.NewInt(int64(p.AmountA))), + sdk.NewCoin(p.TokenB, sdk.NewInt(int64(p.AmountB))), + ) + s.fundAccountBalancesWithDenom(s.bob, coins) + pairID := types.PairID{Token0: p.TokenA, Token1: p.TokenB} + s.deposits( + s.bob, + []*Deposit{NewDeposit(p.AmountA, p.AmountB, p.TickIndex, p.Fee)}, + pairID, + ) + } +} + +func (s *MsgServerTestSuite) TestMultiHopSwapSingleRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in pools A<>B, B<>C, C<>D, + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, 0, 1), + ) + + // WHEN alice multihopswaps A<>B => B<>C => C<>D, + route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} + s.aliceMultiHopSwaps(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + + // THEN alice gets out 99 TokenD + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) + s.assertAccountBalanceWithDenom(s.alice, "TokenD", 97) + + s.assertDexBalanceWithDenom("TokenA", 100) + s.assertDexBalanceWithDenom("TokenB", 100) + s.assertDexBalanceWithDenom("TokenC", 100) + s.assertDexBalanceWithDenom("TokenD", 3) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapInsufficientLiquiditySingleRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 50, 0, 1), + ) + + // THEN alice multihopswap fails + route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} + s.aliceMultiHopSwapFails( + types.ErrInsufficientLiquidity, + route, + 100, + math_utils.MustNewPrecDecFromStr("0.9"), + false, + ) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapLimitPriceNotMetSingleRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, 1200, 1), + ) + + // THEN alice multihopswap fails + route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} + s.aliceMultiHopSwapFails( + types.ErrExitLimitPriceHit, + route, + 50, + math_utils.MustNewPrecDecFromStr("0.9"), + false, + ) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteOneGood() { + s.fundAliceBalances(100, 0) + + // GIVEN viable liquidity in pools A<>B, B<>E, E<>X + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenE", 0, 100, 0, 1), + NewPoolSetup("TokenE", "TokenX", 0, 100, 0, 1), + ) + + // WHEN alice multihopswaps with three routes the first two routes fail and the third works + routes := [][]string{ + {"TokenA", "TokenB", "TokenC", "TokenX"}, + {"TokenA", "TokenB", "TokenD", "TokenX"}, + {"TokenA", "TokenB", "TokenE", "TokenX"}, + } + s.aliceMultiHopSwaps(routes, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + + // THEN swap succeeds through route A<>B, B<>E, E<>X + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) + s.assertAccountBalanceWithDenom(s.alice, "TokenX", 97) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenA", Token1: "TokenB"}, + sdk.NewInt(100), + sdk.NewInt(1), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenE"}, + sdk.NewInt(99), + sdk.NewInt(2), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenE", Token1: "TokenX"}, + sdk.NewInt(98), + sdk.NewInt(3), + 0, + 1, + ) + + // Other pools are unaffected + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenC"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenC", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenC", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 2200, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenD"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenD", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenD", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(50), + 2200, + 1, + ) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteAllFail() { + s.fundAliceBalances(100, 0) + + // GIVEN liquidity in sufficient liquidity but inadequate prices + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 50, 2200, 1), + NewPoolSetup("TokenB", "TokenE", 0, 50, 0, 1), + NewPoolSetup("TokenE", "TokenX", 0, 50, 2200, 1), + ) + + // WHEN alice multihopswaps with three routes they all fail + routes := [][]string{ + {"TokenA", "TokenB", "TokenC", "TokenX"}, + {"TokenA", "TokenB", "TokenD", "TokenX"}, + {"TokenA", "TokenB", "TokenE", "TokenX"}, + } + + // Then fails with findBestRoute + s.aliceMultiHopSwapFails( + types.ErrExitLimitPriceHit, + routes, + 100, + math_utils.MustNewPrecDecFromStr("0.9"), + true, + ) + + // and with findFirstRoute + + s.aliceMultiHopSwapFails( + types.ErrExitLimitPriceHit, + routes, + 100, + math_utils.MustNewPrecDecFromStr("0.9"), + false, + ) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { + s.fundAliceBalances(100, 0) + + // GIVEN viable liquidity in pools but with a best route through E<>X + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenX", 0, 1000, -1000, 1), + NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenX", 0, 1000, -2000, 1), + NewPoolSetup("TokenB", "TokenE", 0, 100, 0, 1), + NewPoolSetup("TokenE", "TokenX", 0, 1000, -3000, 1), + ) + + // WHEN alice multihopswaps with three routes + routes := [][]string{ + {"TokenA", "TokenB", "TokenC", "TokenX"}, + {"TokenA", "TokenB", "TokenD", "TokenX"}, + {"TokenA", "TokenB", "TokenE", "TokenX"}, + } + s.aliceMultiHopSwaps(routes, 100, math_utils.MustNewPrecDecFromStr("0.9"), true) + + // THEN swap succeeds through route A<>B, B<>E, E<>X + + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) + s.assertAccountBalanceWithDenom(s.alice, "TokenX", 132) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenA", Token1: "TokenB"}, + sdk.NewInt(100), + sdk.NewInt(1), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenE"}, + sdk.NewInt(99), + sdk.NewInt(2), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenE", Token1: "TokenX"}, + sdk.NewInt(98), + sdk.NewInt(868), + -3000, + 1, + ) + + // Other pools are unaffected + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenC"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenC", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(1000), + -1000, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenB", Token1: "TokenD"}, + sdk.NewInt(0), + sdk.NewInt(100), + 0, + 1, + ) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenD", Token1: "TokenX"}, + sdk.NewInt(0), + sdk.NewInt(1000), + -2000, + 1, + ) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapLongRouteWithCache() { + s.fundAliceBalances(100, 0) + + // GIVEN viable route from A->B->C...->L but last leg to X only possible through K->M->X + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenD", "TokenE", 0, 100, 0, 1), + NewPoolSetup("TokenE", "TokenF", 0, 100, 0, 1), + NewPoolSetup("TokenF", "TokenG", 0, 100, 0, 1), + NewPoolSetup("TokenG", "TokenH", 0, 100, 0, 1), + NewPoolSetup("TokenH", "TokenI", 0, 100, 0, 1), + NewPoolSetup("TokenI", "TokenJ", 0, 100, 0, 1), + NewPoolSetup("TokenJ", "TokenK", 0, 100, 0, 1), + NewPoolSetup("TokenK", "TokenL", 0, 100, 0, 1), + NewPoolSetup("TokenL", "TokenX", 0, 50, 0, 1), + NewPoolSetup("TokenL", "TokenX", 0, 50, 100, 1), + + NewPoolSetup("TokenK", "TokenM", 0, 100, 0, 1), + NewPoolSetup("TokenM", "TokenX", 0, 100, 0, 1), + ) + + // WHEN alice multihopswaps with two overlapping routes with only the last leg different + routes := [][]string{ + { + "TokenA", "TokenB", "TokenC", "TokenD", "TokenE", "TokenF", + "TokenG", "TokenH", "TokenI", "TokenJ", "TokenK", "TokenL", "TokenX", + }, + { + "TokenA", "TokenB", "TokenC", "TokenD", "TokenE", "TokenF", + "TokenG", "TokenH", "TokenI", "TokenJ", "TokenK", "TokenM", "TokenX", + }, + } + s.aliceMultiHopSwaps(routes, 100, math_utils.MustNewPrecDecFromStr("0.8"), true) + + // THEN swap succeeds with second route + s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) + s.assertAccountBalanceWithDenom(s.alice, "TokenX", 88) + s.assertLiquidityAtTickWithDenom( + &types.PairID{Token0: "TokenM", Token1: "TokenX"}, + sdk.NewInt(89), + sdk.NewInt(12), + 0, + 1, + ) +} + +func (s *MsgServerTestSuite) TestMultiHopSwapEventsEmitted() { + s.fundAliceBalances(100, 0) + + s.SetupMultiplePools( + NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), + ) + + route := [][]string{{"TokenA", "TokenB", "TokenC"}} + s.aliceMultiHopSwaps(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + + // 8 tickUpdateEvents are emitted 4x for pool setup 4x for two swaps + keepertest.AssertNEventsEmitted(s.T(), s.ctx, types.TickUpdateEventKey, 8) +} diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go new file mode 100644 index 000000000..59ce4ad3f --- /dev/null +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -0,0 +1,771 @@ +package keeper_test + +import ( + "math" + "time" + + abci "github.com/cometbft/cometbft/abci/types" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/dex/types" +) + +// Core tests w/ GTC limitOrders ////////////////////////////////////////////// +func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpread1To0() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // place limit order for B at tick -1 + s.aliceLimitSells("TokenA", -1, 10) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert currentTick1To0 moved + s.assertCurr1To0(-1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpread0To1() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-5) + s.assertCurr0To1(5) + + // WHEN + // place limit order for A at tick 1 + s.aliceLimitSells("TokenB", 1, 10) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // THEN + // assert currentTick0To1 moved + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpreadMinMaxNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -5, 5 + s.aliceDeposits(NewDeposit(10, 10, 0, 5)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + + // WHEN + // place limit order for B at tick -1 + s.aliceLimitSells("TokenA", -1, 10) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert min, max not moved +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpread0To1NotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // place limit order out of spread (for A at tick 3) + s.aliceLimitSells("TokenB", 3, 10) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // THEN + // assert currentTick0To1 not moved + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpread1To0NotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // place limit order out of spread (for B at tick -3) + s.aliceLimitSells("TokenA", -3, 10) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert currentTick1To0 not moved + s.assertCurr1To0(-1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMinAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // place limit order out of spread (for B at tick -3) + s.aliceLimitSells("TokenA", -3, 10) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // THEN + // assert min moved +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMaxAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + // WHEN + // place limit order out of spread (for A at tick 3) + s.aliceLimitSells("TokenB", 3, 10) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // THEN + // assert max moved +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMinNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + // deposit new min at -5 + s.aliceDeposits(NewDeposit(10, 0, 0, 5)) + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + + // WHEN + // place limit order in spread (for B at tick -3) + s.aliceLimitSells("TokenA", -3, 10) + s.assertAliceBalances(20, 40) + s.assertDexBalances(30, 10) + + // THEN + // assert min not moved +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMaxNotAdjusted() { + s.fundAliceBalances(50, 50) + + // GIVEN + // create spread around -1, 1 + s.aliceDeposits(NewDeposit(10, 10, 0, 1)) + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + // deposit new max at 5 + s.aliceDeposits(NewDeposit(0, 10, 0, 5)) + s.assertAliceBalances(40, 30) + s.assertDexBalances(10, 20) + + // WHEN + // place limit order in spread (for A at tick 3) + s.aliceLimitSells("TokenB", 3, 10) + s.assertAliceBalances(40, 20) + s.assertDexBalances(10, 30) + + // THEN + // assert max not moved +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderExistingLiquidityA() { + s.fundAliceBalances(50, 50) + + // GIVEN + // deposit 10 of token A at tick 0 fee 1 + s.aliceLimitSells("TokenA", -1, 10) + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertLimitLiquidityAtTick("TokenA", -1, 10) + s.assertAliceLimitLiquidityAtTick("TokenA", 10, -1) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) + + // // WHEN + // // place limit order on same tick (for B at tick -1) + // s.aliceLimitSells("TokenA", -1, 10) + + // // THEN + // // assert 20 of token A deposited at tick 0 fee 0 and ticks unchanged + // s.assertLimitLiquidityAtTick("TokenA", -1, 20) + // s.assertAliceLimitLiquidityAtTick("TokenA", 20, -1) + // s.assertAliceBalances(30, 50) + // s.assertDexBalances(20, 0) + // s.assertCurr1To0(-1) + // s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderExistingLiquidityB() { + s.fundAliceBalances(50, 50) + + // GIVEN + // deposit 10 of token B at tick 1 fee 0 + s.aliceLimitSells("TokenB", 1, 10) + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertLimitLiquidityAtTick("TokenB", 1, 10) + s.assertAliceLimitLiquidityAtTick("TokenB", 10, 1) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) + + // WHEN + // place limit order on same tick (for A at tick 1) + s.aliceLimitSells("TokenB", 1, 10) + + // THEN + // assert 20 of token B deposited at tick 0 fee 0 and ticks unchanged + s.assertLimitLiquidityAtTick("TokenB", 1, 20) + s.assertAliceLimitLiquidityAtTick("TokenB", 20, 1) + s.assertAliceBalances(50, 30) + s.assertDexBalances(0, 20) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderNoLOPlaceLODoesntIncrementPlaceTrancheKey() { + s.fundAliceBalances(50, 50) + + // GIVEN + // no previous LO on existing tick + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + s.assertPoolLiquidity(10, 0, 0, 1) + s.assertFillAndPlaceTrancheKeys("TokenA", -1, "", "") + + // WHEN + // placing order on same tick + trancheKey := s.aliceLimitSells("TokenA", -1, 10) + + // THEN + // fill and place tranche keys don't change + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey, trancheKey) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderUnfilledLOPlaceLODoesntIncrementPlaceTrancheKey() { + s.fundAliceBalances(50, 50) + + // GIVEN + // unfilled limit order exists on tick -1 + trancheKey := s.aliceLimitSells("TokenA", -1, 10) + s.assertLimitLiquidityAtTick("TokenA", -1, 10) + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey, trancheKey) + + // WHEN + // placing order on same tick + s.aliceLimitSells("TokenA", -1, 10) + + // THEN + // fill and place tranche keys don't change + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey, trancheKey) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderPartiallyFilledLOPlaceLOIncrementsPlaceTrancheKey() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // partially filled limit order exists on tick -1 + trancheKey0 := s.aliceLimitSells("TokenA", -1, 10) + s.bobLimitSells("TokenB", -10, 5, types.LimitOrderType_FILL_OR_KILL) + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey0, "") + + // WHEN + // placing order on same tick + trancheKey1 := s.aliceLimitSells("TokenA", -1, 10) + + // THEN + // place tranche key changes + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey0, trancheKey1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFilledLOPlaceLODoesntIncrementsPlaceTrancheKey() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // filled LO with partially filled place tranche + trancheKey0 := s.aliceLimitSells("TokenA", -1, 10) + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + trancheKey1 := s.aliceLimitSells("TokenA", -1, 10) + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey0, trancheKey1) + + // WHEN + // placing order on same tick + s.aliceLimitSells("TokenA", -1, 5) + + // THEN + // fill and place tranche keys don't change + s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey0, trancheKey1) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderInsufficientFunds() { + // GIVEN + // alice has no funds + s.assertAliceBalances(0, 0) + + // WHEN + // place limit order selling non zero amount of token A for token B + // THEN + // deposit should fail with InsufficientFunds error + + err := sdkerrors.ErrInsufficientFunds + s.assertAliceLimitSellFails(err, "TokenA", 0, 10) +} + +func (s *MsgServerTestSuite) TestLimitOrderPartialFillDepositCancel() { + s.fundAliceBalances(100, 100) + s.fundBobBalances(100, 100) + s.assertDexBalances(0, 0) + + trancheKey0 := s.aliceLimitSells("TokenB", 0, 50) + + s.assertAliceBalances(100, 50) + s.assertBobBalances(100, 100) + s.assertDexBalances(0, 50) + s.assertCurrentTicks(math.MinInt64, 0) + + s.bobLimitSells("TokenA", 10, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + s.assertAliceBalances(100, 50) + s.assertBobBalances(90, 110) + s.assertDexBalances(10, 40) + s.assertCurrentTicks(math.MinInt64, 0) + + trancheKey1 := s.aliceLimitSells("TokenB", 0, 50) + + s.assertAliceBalances(100, 0) + s.assertBobBalances(90, 110) + s.assertDexBalances(10, 90) + s.assertCurrentTicks(math.MinInt64, 0) + + s.aliceCancelsLimitSell(trancheKey0) + + s.assertAliceBalances(100, 40) + s.assertBobBalances(90, 110) + s.assertDexBalances(10, 50) + s.assertCurrentTicks(math.MinInt64, 0) + + s.bobLimitSells("TokenA", 10, 10, types.LimitOrderType_FILL_OR_KILL) + + s.assertAliceBalances(100, 40) + s.assertBobBalances(80, 120) + s.assertDexBalances(20, 40) + + s.aliceCancelsLimitSell(trancheKey1) + + s.assertAliceBalances(100, 80) + s.assertBobBalances(80, 120) + s.assertDexBalances(20, 0) + + s.aliceWithdrawsLimitSell(trancheKey0) + + s.assertAliceBalances(110, 80) + s.assertBobBalances(80, 120) + s.assertDexBalances(10, 0) + + s.aliceWithdrawsLimitSell(trancheKey1) + + s.assertAliceBalances(120, 80) + s.assertBobBalances(80, 120) + s.assertDexBalances(0, 0) +} + +// Fill Or Kill limit orders /////////////////////////////////////////////////////////// +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKNoLiq() { + s.fundAliceBalances(10, 0) + // GIVEN no liquidity + // THEN alice's LimitOrder fails + s.assertAliceLimitSellFails( + types.ErrFoKLimitOrderNotFilled, + "TokenA", + 0, + 10, + types.LimitOrderType_FILL_OR_KILL, + ) + + s.assertDexBalances(0, 0) + s.assertAliceBalances(10, 0) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKWithLPFills() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + // GIVEN LP liq at tick -1 + s.bobDeposits(NewDeposit(0, 20, -1, 1)) + // WHEN alice submits FoK limitOrder + s.aliceLimitSells("TokenA", 0, 10, types.LimitOrderType_FILL_OR_KILL) + // THEN alice's LimitOrder fills via swap and auto-withdraws + s.assertDexBalances(10, 10) + s.assertAliceBalances(0, 10) + + // No maker LO is placed + s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") + s.assertLimitLiquidityAtTick("TokenA", 1, 0) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKFailsWithInsufficientLiq() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + // GIVEN LP liq at tick -1 of 9 tokenB + s.bobDeposits(NewDeposit(0, 9, -1, 1)) + // WHEN alice submits FoK limitOrder for 10 at tick 0 it fails + s.assertAliceLimitSellFails( + types.ErrFoKLimitOrderNotFilled, + "TokenA", + 0, + 10, + types.LimitOrderType_FILL_OR_KILL, + ) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrder0FoKFailsWithLowLimit() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + // GIVEN LP liq at tick -1 of 20 tokenB + s.bobDeposits(NewDeposit(0, 20, -1, 1)) + // WHEN alice submits FoK limitOrder for 10 at tick -1 it fails + s.assertAliceLimitSellFails( + types.ErrFoKLimitOrderNotFilled, + "TokenA", + -1, + 10, + types.LimitOrderType_FILL_OR_KILL, + ) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrder1FoKFailsWithHighLimit() { + s.fundAliceBalances(0, 10) + s.fundBobBalances(20, 0) + // GIVEN LP liq at tick 20 of 20 tokenA + s.bobDeposits(NewDeposit(20, 0, 20, 1)) + // WHEN alice submits FoK limitOrder for 10 at tick -1 it fails + s.assertAliceLimitSellFails( + types.ErrFoKLimitOrderNotFilled, + "TokenB", + 21, + 10, + types.LimitOrderType_FILL_OR_KILL, + ) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoK0TotalAmountInNotUsed() { + s.fundAliceBalances(9998, 0) + s.fundBobBalances(0, 5000) + // GIVEN LP liq at tick 20,000 & 20,001 of 1000 TokenB + s.bobDeposits( + NewDeposit(0, 1000, 20000, 1), + NewDeposit(0, 1000, 20001, 1), + ) + // WHEN alice submits FoK limitOrder for 9998 it succeeds + // even though trueAmountIn < specifiedAmountIn due to rounding + s.aliceLimitSells("TokenA", 21000, 9998, types.LimitOrderType_FILL_OR_KILL) + s.assertAliceBalances(6, 1352) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { + s.fundAliceBalances(0, 9998) + s.fundBobBalances(5000, 0) + // GIVEN LP liq at tick -20,000 & -20,001 of 1000 tokenA + s.bobDeposits( + NewDeposit(1000, 0, -20000, 1), + NewDeposit(1000, 0, -20001, 1), + ) + // WHEN alice submits FoK limitOrder for 9998 it succeeds + // even though trueAmountIn < specifiedAmountIn due to rounding + s.aliceLimitSells("TokenB", -21000, 9998, types.LimitOrderType_FILL_OR_KILL) + s.assertAliceBalances(1352, 6) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { + s.fundAliceBalances(0, 50) + s.fundBobBalances(50, 0) + // GIVEN LP 50 TokenA at tick 600 + s.bobDeposits( + NewDeposit(50, 0, 600, 1), + ) + // WHEN alice submits FoK limitOrder of 50 TokenB with maxOut of 20 + s.aliceLimitSellsWithMaxOut("TokenB", 0, 50, 20) + + // THEN alice swap 19 TokenB and gets back 20 TokenA + s.assertAliceBalances(20, 31) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { + s.fundAliceBalances(0, 50) + s.fundBobBalances(50, 0) + // GIVEN LP 30 TokenA at tick 600-602 + s.bobDeposits( + NewDeposit(10, 0, 600, 1), + NewDeposit(10, 0, 601, 1), + NewDeposit(10, 0, 602, 1), + ) + // WHEN alice submits FoK limitOrder of 50 TokenB with maxOut of 20 + s.aliceLimitSellsWithMaxOut("TokenB", 0, 50, 20) + + // THEN alice swap 20 TokenB and gets back 20 TokenA + s.assertAliceBalances(20, 30) +} + +// Immediate Or Cancel LimitOrders //////////////////////////////////////////////////////////////////// + +func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCNoLiq() { + s.fundAliceBalances(10, 0) + // GIVEN no liquidity + // WHEN alice submits IoC limitOrder + s.aliceLimitSells("TokenA", 0, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + // THEN alice's LimitOrder is not filled + s.assertDexBalances(0, 0) + s.assertAliceBalances(10, 0) + + // No maker LO is placed + s.assertLimitLiquidityAtTick("TokenA", 1, 0) + s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPFills() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + // GIVEN LP liq at tick -1 + s.bobDeposits(NewDeposit(0, 20, -1, 1)) + // WHEN alice submits IoC limitOrder + s.aliceLimitSells("TokenA", 0, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + // THEN alice's LimitOrder fills via swap and auto-withdraws + s.assertDexBalances(10, 10) + s.assertAliceBalances(0, 10) + + // No maker LO is placed + s.assertLimitLiquidityAtTick("TokenA", 1, 0) + s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPPartialFill() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + // GIVEN LP of 5 tokenB at tick -1 + s.bobDeposits(NewDeposit(0, 5, -1, 1)) + // WHEN alice submits IoC limitOrder for 10 tokenA + s.aliceLimitSells("TokenA", 0, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + // THEN alice's LimitOrder swaps 5 TokenA and auto-withdraws + s.assertDexBalances(5, 0) + s.assertAliceBalances(5, 5) + + // No maker LO is placed + s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") + s.assertLimitLiquidityAtTick("TokenA", 1, 0) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPNoFill() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + // GIVEN LP of 5 tokenB at tick -1 + s.bobDeposits(NewDeposit(0, 5, -1, 1)) + // WHEN alice submits IoC limitOrder for 10 tokenA below current 0To1 price + s.aliceLimitSells("TokenA", -1, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + // THEN alice's LimitOrder doesn't fill and is canceled + s.assertDexBalances(0, 5) + s.assertAliceBalances(10, 0) + // No maker LO is placed + s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") + s.assertLimitLiquidityAtTick("TokenA", 1, 0) +} + +// Just In Time Limit Orders ////////////////////////////////////////////////// + +func (s *MsgServerTestSuite) TestPlaceLimitOrderJITFills() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + + // GIVEN Alice submits JIT limitOrder for 10 tokenA at tick 0 + trancheKey := s.aliceLimitSells("TokenA", 0, 10, types.LimitOrderType_JUST_IN_TIME) + s.assertLimitLiquidityAtTick("TokenA", 0, 10) + s.assertAliceBalances(0, 0) + + // WHEN bob swaps through all the liquidity + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + + // THEN all liquidity is depleted + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // Alice can withdraw 10 TokenB + s.aliceWithdrawsLimitSell(trancheKey) + s.assertAliceBalances(0, 10) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderJITBehindEnemyLines() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + + // GIVEN 10 LP liquidity for token exists at tick 0 + s.bobDeposits(NewDeposit(0, 10, 0, 1)) + + // WHEN alice places a JIT limit order for TokenA at tick 1 (above enemy lines) + trancheKey := s.aliceLimitSells("TokenA", 1, 10, types.LimitOrderType_JUST_IN_TIME) + s.assertLimitLiquidityAtTick("TokenA", 1, 10) + s.assertAliceBalances(0, 0) + // AND bob swaps through all the liquidity + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + + // THEN all liquidity is depleted + s.assertLimitLiquidityAtTick("TokenA", 1, 0) + // Alice can withdraw 9 TokenB + s.aliceWithdrawsLimitSell(trancheKey) + s.assertAliceBalances(0, 9) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderJITNextBlock() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + + // GIVEN Alice submits JIT limitOrder for 10 tokenA at tick 0 for block N + trancheKey := s.aliceLimitSells("TokenA", 0, 10, types.LimitOrderType_JUST_IN_TIME) + s.assertLimitLiquidityAtTick("TokenA", 0, 10) + s.assertAliceBalances(0, 0) + + // WHEN we move to block N+1 + s.nextBlockWithTime(time.Now()) + s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + + // THEN there is no liquidity available + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // Alice can withdraw the entirety of the unfilled limitOrder + s.aliceWithdrawsLimitSell(trancheKey) + s.assertAliceBalances(10, 0) +} + +// GoodTilLimitOrders ////////////////////////////////////////////////// + +func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilFills() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + tomorrow := time.Now().AddDate(0, 0, 1) + // GIVEN Alice submits JIT limitOrder for 10 tokenA expiring tomorrow + trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 10, tomorrow) + s.assertLimitLiquidityAtTick("TokenA", 0, 10) + s.assertAliceBalances(0, 0) + + // WHEN bob swaps through all the liquidity + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + + // THEN all liquidity is depleted + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // Alice can withdraw 10 TokenB + s.aliceWithdrawsLimitSell(trancheKey) + s.assertAliceBalances(0, 10) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpires() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + tomorrow := time.Now().AddDate(0, 0, 1) + // GIVEN Alice submits JIT limitOrder for 10 tokenA expiring tomorrow + trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 10, tomorrow) + s.assertLimitLiquidityAtTick("TokenA", 0, 10) + s.assertAliceBalances(0, 0) + + // When two days go by and multiple blocks are created (ie. purge is run) + s.nextBlockWithTime(time.Now().AddDate(0, 0, 2)) + s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + // THEN there is no liquidity available + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // Alice can withdraw the entirety of the unfilled limitOrder + s.aliceWithdrawsLimitSell(trancheKey) + s.assertAliceBalances(10, 0) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpiresNotPurged() { + // This is testing the case where the limitOrder has expired but has not yet been purged + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 20) + tomorrow := time.Now().AddDate(0, 0, 1) + // GIVEN Alice submits JIT limitOrder for 10 tokenA expiring tomorrow + trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 10, tomorrow) + s.assertLimitLiquidityAtTick("TokenA", 0, 10) + s.assertAliceBalances(0, 0) + + // When two days go by + // for simplicity sake we never run endBlock, it reality it would be run, but gas limit would be hit + s.nextBlockWithTime(time.Now().AddDate(0, 0, 2)) + + // THEN there is no liquidity available + s.assertLimitLiquidityAtTick("TokenA", 0, 0) + // Alice can cancel the entirety of the unfilled limitOrder + s.aliceCancelsLimitSell(trancheKey) + s.assertAliceBalances(10, 0) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilHandlesTimezoneCorrectly() { + s.fundAliceBalances(10, 0) + timeInPST, _ := time.Parse(time.RFC3339, "2050-01-02T15:04:05-08:00") + trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 10, timeInPST) + tranche := s.app.DexKeeper.GetLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ + TradePairID: defaultTradePairID1To0, + TickIndexTakerToMaker: 0, + TrancheKey: trancheKey, + }) + + s.Assert().Equal(tranche.ExpirationTime.Unix(), timeInPST.Unix()) +} + +func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilAlreadyExpiredFails() { + s.fundAliceBalances(10, 0) + + now := time.Now() + yesterday := time.Now().AddDate(0, 0, -1) + s.nextBlockWithTime(now) + + _, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + Creator: s.alice.String(), + Receiver: s.alice.String(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.NewInt(50), + OrderType: types.LimitOrderType_GOOD_TIL_TIME, + ExpirationTime: &yesterday, + }) + s.Assert().ErrorIs(err, types.ErrExpirationTimeInPast) +} diff --git a/x/dex/keeper/integration_withdraw_multi_test.go b/x/dex/keeper/integration_withdraw_multi_test.go new file mode 100644 index 000000000..ae4485ff9 --- /dev/null +++ b/x/dex/keeper/integration_withdraw_multi_test.go @@ -0,0 +1,54 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestWithdrawMultiFailure() { + s.fundAliceBalances(50, 50) + // GIVEN + // alice deposits 5 A, 5 B in tick 0 fee 0 + s.aliceDeposits(NewDeposit(5, 5, 0, 1)) + s.assertAliceShares(0, 1, 10) + s.assertLiquidityAtTick(sdk.NewInt(5), sdk.NewInt(5), 0, 1) + s.assertAliceBalances(45, 45) + s.assertDexBalances(5, 5) + + // WHEN + // alice withdraws 6 shares, then 10 shares + // THEN + // failure on second withdraw (insufficient shares) will trigger ErrNotEnoughShares + err := types.ErrInsufficientShares + s.aliceWithdrawFails(err, + NewWithdrawal(6, 0, 1), + NewWithdrawal(10, 0, 1), + ) +} + +func (s *MsgServerTestSuite) TestWithdrawMultiSuccess() { + s.fundAliceBalances(50, 50) + + // GIVEN + // alice deposits 5 A, 5 B in tick 0 fee 1 + s.aliceDeposits(NewDeposit(5, 5, 0, 1)) + s.assertAliceShares(0, 1, 10) + s.assertLiquidityAtTick(sdk.NewInt(5), sdk.NewInt(5), 0, 1) + s.assertAliceBalances(45, 45) + s.assertDexBalances(5, 5) + + // WHEN + // alice withdraws 6 shares, then 4 shares + s.aliceWithdraws( + NewWithdrawal(6, 0, 1), + NewWithdrawal(4, 0, 1), + ) + + // THEN + // both withdraws should work + // i.e. no shares remaining and entire balance transferred out + s.assertAliceShares(0, 1, 0) + s.assertLiquidityAtTick(sdk.ZeroInt(), sdk.ZeroInt(), 0, 1) + s.assertAliceBalances(50, 50) + s.assertDexBalances(0, 0) +} diff --git a/x/dex/keeper/integration_withdraw_test.go b/x/dex/keeper/integration_withdraw_test.go new file mode 100644 index 000000000..afd7f4ece --- /dev/null +++ b/x/dex/keeper/integration_withdraw_test.go @@ -0,0 +1,263 @@ +package keeper_test + +import ( + "math" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestPartialWithdrawOnlyA() { + s.fundAliceBalances(50, 50) + // CASE + // Alice deposits 10 of A at tick 0, fee tier 0 + // and then withdraws only 5 shares of A + + // DATA + // Alice should be credited 10 total shares + // Shares = amount0 + price1to0 * amount1 + // Shares = 10 + 0 * 0 = 10 + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) + + s.aliceWithdraws(NewWithdrawal(5, 0, 1)) + + s.assertAliceBalances(45, 50) + s.assertDexBalances(5, 0) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestPartialWithdrawOnlyB() { + s.fundAliceBalances(50, 50) + // CASE + // Alice deposits 10 of B at tick 0, fee tier 0 + // and then withdraws only 5 shares of B + + // DATA + // Alice should be credited 10 total shares + // Shares = amount0 + price1to0 * amount1 + // Shares = 10 + 0 * 0 = 10 + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) + + s.aliceWithdraws(NewWithdrawal(5, 0, 1)) + + s.assertAliceBalances(50, 45) + s.assertDexBalances(0, 5) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) +} + +func (s *MsgServerTestSuite) TestFullWithdrawOnlyB() { + s.fundAliceBalances(50, 50) + // CASE + // Alice deposits 10 of B at tick 0, fee tier 0 + // and then withdraws 10 shares of B + + // DATA + // Alice should be credited 10 total shares + // Shares = amount0 + price1to0 * amount1 + // Shares = 10 + 0 * 0 = 10 + s.aliceDeposits(NewDeposit(0, 10, 0, 1)) + + s.assertAliceBalances(50, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(1) + + s.aliceWithdraws(NewWithdrawal(10, 0, 1)) + + s.assertAliceBalances(50, 50) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSidedDepositAndPartialWithdrawal() { + s.fundAliceBalances(50, 50) + // CASE + // Alice deposits 10 of A and B with a spread (fee) of +- 3 ticks + // Alice then deposits 10 A with a spread (fee) of -1 ticks + // Finally Alice withdraws from the first pool they deposited to + + s.aliceDeposits(NewDeposit(10, 10, 0, 3)) + + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-3) + s.assertCurr0To1(3) + + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(3) + + // DEBUG + s.aliceWithdraws(NewWithdrawal(10, 0, 3)) + + s.assertAliceBalances(35, 45) + s.assertDexBalances(15, 5) + s.assertCurr1To0(-1) + s.assertCurr0To1(3) +} + +func (s *MsgServerTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSidedDepositAndFulllWithdrawal() { + s.fundAliceBalances(50, 50) + // CASE + // Alice deposits 10 of A and B with a spread (fee) of +- 3 ticks + // Alice then deposits 10 A with a spread (fee) of -1 ticks + // Finally Alice withdraws from the first pool they deposited to + + s.aliceDeposits(NewDeposit(10, 10, 0, 3)) + + s.assertAliceBalances(40, 40) + s.assertDexBalances(10, 10) + s.assertCurr1To0(-3) + s.assertCurr0To1(3) + + s.aliceDeposits(NewDeposit(10, 0, 0, 1)) + + s.assertAliceBalances(30, 40) + s.assertDexBalances(20, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(3) + + s.aliceWithdraws(NewWithdrawal(20, 0, 3)) + + s.assertAliceBalances(40, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestTwoFullDoubleSidedRebalancedAtooMuchTick0() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + // CASE + // Alice deposits 5 of A and 10 of B at tick 0, fee tier 0 + // Bob tries to deposit 10 of A and 10 of B + // Thus Bob should only end up depositing 5 of A and 10 of B + // Alice then withdraws + // David then withdraws + + s.aliceDepositsWithOptions(NewDepositWithOptions(5, 10, 0, 1, DepositOptions{DisableAutoswap: true})) + + s.assertAliceBalances(45, 40) + s.assertBobBalances(50, 50) + s.assertDexBalances(5, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + s.bobDepositsWithOptions(NewDepositWithOptions(10, 10, 0, 1, DepositOptions{DisableAutoswap: true})) + + s.assertAliceBalances(45, 40) + s.assertBobBalances(45, 40) + s.assertDexBalances(10, 20) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + s.aliceWithdraws(NewWithdrawal(15, 0, 1)) + + s.assertAliceBalances(50, 50) + s.assertBobBalances(45, 40) + s.assertDexBalances(5, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + s.bobWithdraws(NewWithdrawal(15, 0, 1)) + + s.assertAliceBalances(50, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestTwoFullDoubleSidedRebalancedBtooMuchTick0() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + // CASE + // Alice deposits 10 of B and 5 of Aat tick 0, fee tier 0 + // Bob tries to deposit 10 of A and 10 of B + // Thus Bob should only end up depositing 5 of A and 10 of B + // Alice then withdraws + // David then withdraws + + s.aliceDepositsWithOptions(NewDepositWithOptions(10, 5, 0, 1, DepositOptions{DisableAutoswap: true})) + + s.assertAliceBalances(40, 45) + s.assertBobBalances(50, 50) + s.assertDexBalances(10, 5) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + s.bobDepositsWithOptions(NewDepositWithOptions(10, 10, 0, 1, DepositOptions{DisableAutoswap: true})) + + s.assertAliceBalances(40, 45) + s.assertBobBalances(40, 45) + s.assertDexBalances(20, 10) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + s.aliceWithdraws(NewWithdrawal(15, 0, 1)) + + s.assertAliceBalances(50, 50) + s.assertBobBalances(40, 45) + s.assertDexBalances(10, 5) + s.assertCurr1To0(-1) + s.assertCurr0To1(1) + + s.bobWithdraws(NewWithdrawal(15, 0, 1)) + + s.assertAliceBalances(50, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestWithdrawalFailsWhenNotEnoughShares() { + s.fundAliceBalances(100, 0) + + // IF Alice deposits 100 + s.aliceDeposits(NewDeposit(100, 0, 0, 1)) + + // WHEN Alice tries to withdraw 200 + // THEN ensure error is thrown and Alice and Dex balances remain unchanged + err := types.ErrInsufficientShares + s.aliceWithdrawFails(err, NewWithdrawal(200, 0, 1)) +} + +func (s *MsgServerTestSuite) TestWithdrawalFailsWithNonExistentPair() { + s.fundAliceBalances(100, 0) + + // IF Alice Deposists 100 + s.aliceDeposits(NewDeposit(100, 0, 0, 1)) + + // WHEN Alice tries to withdraw from a nonexistent tokenPair + _, err := s.msgServer.Withdrawal(s.goCtx, &types.MsgWithdrawal{ + Creator: s.alice.String(), + Receiver: s.alice.String(), + TokenA: "TokenX", + TokenB: "TokenZ", + SharesToRemove: []sdk.Int{sdk.NewInt(10)}, + TickIndexesAToB: []int64{0}, + Fees: []uint64{0}, + }) + + // NOTE: As code is currently written we hit not enough shares check + // before validating pair existence. This is correct from a + // UX perspective --users should not care whether tick is initialized + s.Assert().ErrorIs(err, types.ErrInsufficientShares) +} diff --git a/x/dex/keeper/integration_withdrawfilled_test.go b/x/dex/keeper/integration_withdrawfilled_test.go new file mode 100644 index 000000000..2ff2cd1a1 --- /dev/null +++ b/x/dex/keeper/integration_withdrawfilled_test.go @@ -0,0 +1,229 @@ +package keeper_test + +import ( + "math" + + "github.com/neutron-org/neutron/x/dex/types" +) + +func (s *MsgServerTestSuite) TestWithdrawFilledSimpleFull() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + // CASE + // Alice places a limit order of A for B + // Bob swaps from B to A + // Alice withdraws the limit order + + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(60, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + s.aliceWithdrawsLimitSell(trancheKey) + + s.assertAliceBalances(40, 60) + s.assertBobBalances(60, 40) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + // Assert that the LimitOrderTrancheUser has been deleted + _, found := s.app.DexKeeper.GetLimitOrderTrancheUser(s.ctx, s.alice.String(), trancheKey) + s.Assert().False(found) +} + +func (s *MsgServerTestSuite) TestWithdrawFilledPartial() { + s.fundAliceBalances(100, 100) + s.fundBobBalances(100, 100) + + // GIVEN + // alice limit sells 50 B at tick 0 + trancheKey := s.aliceLimitSells("TokenB", 0, 50) + s.assertAliceLimitLiquidityAtTick("TokenB", 50, 0) + // bob market sells 10 A + s.bobLimitSells("TokenA", 10, 10, types.LimitOrderType_FILL_OR_KILL) + // alice has 10 A filled + s.assertAliceLimitFilledAtTickAtIndex("TokenB", 10, 0, trancheKey) + // balances are 50, 100 for alice and 90, 100 for bob + s.assertAliceBalances(100, 50) + s.assertBobBalances(90, 110) + + // WHEN + // alice withdraws filled limit order proceeds from tick 0 tranche 0 + s.aliceWithdrawsLimitSell(trancheKey) + + // THEN + // limit order has been partially filled + s.assertAliceLimitLiquidityAtTick("TokenB", 40, 0) + // the filled reserved have been withdrawn from + s.assertAliceLimitFilledAtTickAtIndex("TokenB", 0, 0, trancheKey) + // balances are 110, 100 for alice and 90, 100 for bob + s.assertAliceBalances(110, 50) + s.assertBobBalances(90, 110) + + // the LimitOrderTrancheUser still exists + _, found := s.app.DexKeeper.GetLimitOrderTrancheUser(s.ctx, s.alice.String(), trancheKey) + s.Assert().True(found) +} + +func (s *MsgServerTestSuite) TestWithdrawFilledTwiceFullSameDirection() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + // CASE + // Alice places a limit order of A for B + // Bob swaps through + // Alice withdraws the limit order and places a new one + // Bob swaps through again + // Alice withdraws the limit order + + trancheKey0 := s.aliceLimitSells("TokenA", 0, 10) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(60, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + s.aliceWithdrawsLimitSell(trancheKey0) + trancheKey1 := s.aliceLimitSells("TokenA", 0, 10) + + s.assertAliceBalances(30, 60) + s.assertBobBalances(60, 40) + s.assertDexBalances(10, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + + s.assertAliceBalances(30, 60) + s.assertBobBalances(70, 30) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + s.aliceWithdrawsLimitSell(trancheKey1) + + s.assertAliceBalances(30, 70) + s.assertBobBalances(70, 30) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestWithdrawFilledTwiceFullDifferentDirection() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + // CASE + // Alice places a limit order of A for B + // Bob swaps through + // Alice withdraws the limit order and places a new one + // Bob swaps through again + // Alice withdraws the limit order + + trancheKeyA := s.aliceLimitSells("TokenA", 0, 10) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(0) + s.assertCurr0To1(math.MaxInt64) + + s.bobLimitSells("TokenB", 0, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(60, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + s.aliceWithdrawsLimitSell(trancheKeyA) + trancheKeyB := s.aliceLimitSells("TokenB", 0, 10) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(60, 40) + s.assertDexBalances(0, 10) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(0) + + s.bobLimitSells("TokenA", 10, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + s.assertAliceBalances(40, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(10, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) + + s.aliceWithdrawsLimitSell(trancheKeyB) + + s.assertAliceBalances(50, 50) + s.assertBobBalances(50, 50) + s.assertDexBalances(0, 0) + s.assertCurr1To0(math.MinInt64) + s.assertCurr0To1(math.MaxInt64) +} + +func (s *MsgServerTestSuite) TestWithdrawFilledEmptyFilled() { + s.fundAliceBalances(50, 50) + + // GIVEN + // alice places limit order selling A for B at tick 0 + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + + // WHEN + // order is unfilled, i.e. trachne.filled = 0 + // THEN + + err := types.ErrWithdrawEmptyLimitOrder + s.aliceWithdrawLimitSellFails(err, trancheKey) +} + +func (s *MsgServerTestSuite) TestWithdrawFilledNoExistingOrderByUser() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // only alice has an existing order placed + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + + // WHEN + // bob tries to withdraw filled from tick 0 tranche 0 + // THEN + + err := types.ErrValidLimitOrderTrancheNotFound + s.bobWithdrawLimitSellFails(err, trancheKey) +} + +func (s *MsgServerTestSuite) TestWithdrawFilledOtherUserOrder() { + s.fundAliceBalances(50, 50) + s.fundBobBalances(50, 50) + + // GIVEN + // only alice has a single existing order placed + trancheKey := s.aliceLimitSells("TokenA", 0, 10) + + // WHEN + // bob tries to withdraw with allice's TrancheKey + // THEN + + err := types.ErrValidLimitOrderTrancheNotFound + s.bobWithdrawLimitSellFails(err, trancheKey) +} diff --git a/x/dex/keeper/internal/testutils/test_helpers.go b/x/dex/keeper/internal/testutils/test_helpers.go new file mode 100644 index 000000000..fc72286eb --- /dev/null +++ b/x/dex/keeper/internal/testutils/test_helpers.go @@ -0,0 +1,23 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + dexmoduletypes "github.com/neutron-org/neutron/x/dex/types" +) + +func NewACoin(amt sdk.Int) sdk.Coin { + return sdk.NewCoin("TokenA", amt) +} + +func NewBCoin(amt sdk.Int) sdk.Coin { + return sdk.NewCoin("TokenB", amt) +} + +func FundAccount(bankKeeper bankkeeper.Keeper, ctx sdk.Context, addr sdk.AccAddress, amounts sdk.Coins) error { + if err := bankKeeper.MintCoins(ctx, dexmoduletypes.ModuleName, amounts); err != nil { + return err + } + + return bankKeeper.SendCoinsFromModuleToAccount(ctx, dexmoduletypes.ModuleName, addr, amounts) +} diff --git a/x/dex/keeper/keeper.go b/x/dex/keeper/keeper.go new file mode 100644 index 000000000..082084f62 --- /dev/null +++ b/x/dex/keeper/keeper.go @@ -0,0 +1,50 @@ +package keeper + +import ( + "fmt" + + "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" + paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +type ( + Keeper struct { + cdc codec.BinaryCodec + storeKey storetypes.StoreKey + memKey storetypes.StoreKey + paramstore paramtypes.Subspace + + bankKeeper types.BankKeeper + } +) + +func NewKeeper( + cdc codec.BinaryCodec, + storeKey, + memKey storetypes.StoreKey, + ps paramtypes.Subspace, + + bankKeeper types.BankKeeper, +) *Keeper { + // set KeyTable if it has not already been set + if !ps.HasKeyTable() { + ps = ps.WithKeyTable(types.ParamKeyTable()) + } + + return &Keeper{ + cdc: cdc, + storeKey: storeKey, + memKey: memKey, + paramstore: ps, + bankKeeper: bankKeeper, + } +} + +func (k Keeper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) +} diff --git a/x/dex/keeper/limit_order_expiration.go b/x/dex/keeper/limit_order_expiration.go new file mode 100644 index 000000000..a06886131 --- /dev/null +++ b/x/dex/keeper/limit_order_expiration.go @@ -0,0 +1,155 @@ +package keeper + +import ( + "time" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func NewLimitOrderExpiration(tranche *types.LimitOrderTranche) *types.LimitOrderExpiration { + trancheExpiry := tranche.ExpirationTime + if trancheExpiry == nil { + panic("Cannot create LimitOrderExpiration from tranche with nil ExpirationTime") + } + + return &types.LimitOrderExpiration{ + TrancheRef: tranche.Key.KeyMarshal(), + ExpirationTime: *tranche.ExpirationTime, + } +} + +// SetLimitOrderExpiration set a specific goodTilRecord in the store from its index +func (k Keeper) SetLimitOrderExpiration( + ctx sdk.Context, + goodTilRecord *types.LimitOrderExpiration, +) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefix(types.LimitOrderExpirationKeyPrefix), + ) + b := k.cdc.MustMarshal(goodTilRecord) + store.Set(types.LimitOrderExpirationKey( + goodTilRecord.ExpirationTime, + goodTilRecord.TrancheRef, + ), b) +} + +// GetLimitOrderExpiration returns a goodTilRecord from its index +func (k Keeper) GetLimitOrderExpiration( + ctx sdk.Context, + goodTilDate time.Time, + trancheRef []byte, +) (val *types.LimitOrderExpiration, found bool) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefix(types.LimitOrderExpirationKeyPrefix), + ) + + b := store.Get(types.LimitOrderExpirationKey( + goodTilDate, + trancheRef, + )) + if b == nil { + return val, false + } + + val = &types.LimitOrderExpiration{} + k.cdc.MustUnmarshal(b, val) + + return val, true +} + +// RemoveLimitOrderExpiration removes a goodTilRecord from the store +func (k Keeper) RemoveLimitOrderExpiration( + ctx sdk.Context, + goodTilDate time.Time, + trancheRef []byte, +) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefix(types.LimitOrderExpirationKeyPrefix), + ) + store.Delete(types.LimitOrderExpirationKey( + goodTilDate, + trancheRef, + )) +} + +func (k Keeper) RemoveLimitOrderExpirationByKey(ctx sdk.Context, key []byte) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefix(types.LimitOrderExpirationKeyPrefix), + ) + store.Delete(key) +} + +// GetAllLimitOrderExpiration returns all goodTilRecord +func (k Keeper) GetAllLimitOrderExpiration(ctx sdk.Context) (list []*types.LimitOrderExpiration) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefix(types.LimitOrderExpirationKeyPrefix), + ) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + val := &types.LimitOrderExpiration{} + k.cdc.MustUnmarshal(iterator.Value(), val) + list = append(list, val) + } + + return +} + +func (k Keeper) PurgeExpiredLimitOrders(ctx sdk.Context, curTime time.Time) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefix(types.LimitOrderExpirationKeyPrefix), + ) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + inGoodTilSegment := false + + archivedTranches := make(map[string]bool) + defer iterator.Close() + + gasCutoff := ctx.BlockGasMeter().Limit() - types.GoodTilPurgeGasBuffer + curBlockGas := ctx.BlockGasMeter().GasConsumed() + + for ; iterator.Valid(); iterator.Next() { + var val types.LimitOrderExpiration + k.cdc.MustUnmarshal(iterator.Value(), &val) + if val.ExpirationTime.After(curTime) { + return + } + + inGoodTilSegment = inGoodTilSegment || val.ExpirationTime != types.JITGoodTilTime() + gasConsumed := curBlockGas + ctx.GasMeter().GasConsumed() + if inGoodTilSegment && gasConsumed >= gasCutoff { + // If we hit our gas cutoff stop deleting so as not to timeout the block. + // We can only do this if we are proccesing normal GT limitOrders + // and not JIT limit orders, since there is not protection in place + // to prevent JIT order from being traded on the next block. + // This is ok since only GT limit orders pose a meaningful attack + // vector since there is no upper bound on how many GT limit orders can be + // canceled in a single block. + ctx.EventManager().EmitEvent(types.GoodTilPurgeHitLimitEvent(gasConsumed)) + + return + } + + if _, ok := archivedTranches[string(val.TrancheRef)]; !ok { + tranche, found := k.GetLimitOrderTrancheByKey(ctx, val.TrancheRef) + if found { + // Convert the tranche to an inactiveTranche + k.SetInactiveLimitOrderTranche(ctx, tranche) + k.RemoveLimitOrderTranche(ctx, tranche.Key) + archivedTranches[string(val.TrancheRef)] = true + } + } + + k.RemoveLimitOrderExpirationByKey(ctx, iterator.Key()) + } +} diff --git a/x/dex/keeper/limit_order_expiration_test.go b/x/dex/keeper/limit_order_expiration_test.go new file mode 100644 index 000000000..9e5b2c6af --- /dev/null +++ b/x/dex/keeper/limit_order_expiration_test.go @@ -0,0 +1,227 @@ +package keeper_test + +import ( + "strconv" + "testing" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +// Prevent strconv unused error +var _ = strconv.IntSize + +func createNLimitOrderExpiration( + keeper *keeper.Keeper, + ctx sdk.Context, + n int, +) []types.LimitOrderExpiration { + items := make([]types.LimitOrderExpiration, n) + for i := range items { + items[i].ExpirationTime = time.Unix(int64(i), 10).UTC() + items[i].TrancheRef = []byte(strconv.Itoa(i)) + + keeper.SetLimitOrderExpiration(ctx, &items[i]) + } + + return items +} + +func createLimitOrderExpirationAndTranches( + keeper *keeper.Keeper, + ctx sdk.Context, + expTimes []time.Time, +) { + items := make([]types.LimitOrderExpiration, len(expTimes)) + for i := range items { + tranche := &types.LimitOrderTranche{ + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{ + MakerDenom: "TokenA", + TakerDenom: "TokenB", + }, + TickIndexTakerToMaker: 0, + TrancheKey: strconv.Itoa(i), + }, + ReservesMakerDenom: sdk.NewInt(10), + ReservesTakerDenom: sdk.NewInt(10), + TotalMakerDenom: sdk.NewInt(10), + TotalTakerDenom: sdk.NewInt(10), + ExpirationTime: &expTimes[i], + } + items[i].ExpirationTime = expTimes[i] + items[i].TrancheRef = tranche.Key.KeyMarshal() + + keeper.SetLimitOrderExpiration(ctx, &items[i]) + keeper.SetLimitOrderTranche(ctx, tranche) + } +} + +func TestLimitOrderExpirationGet(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderExpiration(keeper, ctx, 10) + for _, item := range items { + rst, found := keeper.GetLimitOrderExpiration(ctx, + item.ExpirationTime, + item.TrancheRef, + ) + require.True(t, found) + require.Equal(t, + item, + *rst, + ) + } +} + +func TestLimitOrderExpirationRemove(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderExpiration(keeper, ctx, 10) + for _, item := range items { + keeper.RemoveLimitOrderExpiration(ctx, + item.ExpirationTime, + item.TrancheRef, + ) + _, found := keeper.GetLimitOrderExpiration(ctx, + item.ExpirationTime, + item.TrancheRef, + ) + require.False(t, found) + } +} + +func TestLimitOrderExpirationGetAll(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderExpiration(keeper, ctx, 10) + pointerItems := make([]*types.LimitOrderExpiration, len(items)) + for i := range items { + pointerItems[i] = &items[i] + } + require.ElementsMatch(t, + pointerItems, + keeper.GetAllLimitOrderExpiration(ctx), + ) +} + +func TestPurgeExpiredLimitOrders(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + now := time.Now().UTC() + ctx = ctx.WithBlockTime(now) + ctx = ctx.WithBlockGasMeter(sdk.NewGasMeter(1000000)) + + yesterday := now.AddDate(0, 0, -1) + tomorrow := now.AddDate(0, 0, 1) + nextWeek := now.AddDate(0, 0, 7) + + expTimes := []time.Time{ + yesterday, + yesterday, + now, + tomorrow, + nextWeek, + } + + createLimitOrderExpirationAndTranches(keeper, ctx, expTimes) + keeper.PurgeExpiredLimitOrders(ctx, now) + + // Only future LimitOrderExpiration items still exist + expList := keeper.GetAllLimitOrderExpiration(ctx) + require.Equal(t, 2, len(expList)) + require.Equal(t, tomorrow, expList[0].ExpirationTime) + require.Equal(t, nextWeek, expList[1].ExpirationTime) + + // Only future LimitOrderTranches Exist + trancheList := keeper.GetAllLimitOrderTrancheAtIndex(ctx, defaultTradePairID1To0, 0) + require.Equal(t, 2, len(trancheList)) + require.Equal(t, tomorrow, *trancheList[0].ExpirationTime) + require.Equal(t, nextWeek, *trancheList[1].ExpirationTime) + + // InactiveLimitOrderTranches have been created for the expired tranched + inactiveTrancheList := keeper.GetAllInactiveLimitOrderTranche(ctx) + require.Equal(t, 3, len(inactiveTrancheList)) + require.Equal(t, yesterday, *inactiveTrancheList[0].ExpirationTime) + require.Equal(t, yesterday, *inactiveTrancheList[1].ExpirationTime) + require.Equal(t, now, *inactiveTrancheList[2].ExpirationTime) +} + +func TestPurgeExpiredLimitOrdersAtBlockGasLimit(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + now := time.Now().UTC() + ctx = ctx.WithBlockTime(now) + gasLimit := 1000000 + ctx = ctx.WithBlockGasMeter(sdk.NewGasMeter(uint64(gasLimit))) + timeRequiredToPurgeOneNonJIT := 35000 + gasUsed := gasLimit - types.GoodTilPurgeGasBuffer - timeRequiredToPurgeOneNonJIT + + yesterday := now.AddDate(0, 0, -1) + + expTimes := []time.Time{ + types.JITGoodTilTime(), + types.JITGoodTilTime(), + yesterday, + yesterday, + yesterday, + } + createLimitOrderExpirationAndTranches(keeper, ctx, expTimes) + + // IF blockGasMeter is nearing the GoodTilPurgeBuffer + ctx = ctx.WithGasMeter(sdk.NewGasMeter(uint64(gasLimit))) + ctx.BlockGasMeter().ConsumeGas(uint64(gasUsed), "stub block gas usage") + + // WHEN PurgeExpiredLimitOrders is run + keeper.PurgeExpiredLimitOrders(ctx, now) + + // THEN GoodTilPurgeHitGasLimit event is emitted + keepertest.AssertEventEmitted( + t, + ctx, + types.GoodTilPurgeHitGasLimitEventKey, + "Gas Limit Event not emitted", + ) + + // All JIT expirations are purged but other expirations remain + expList := keeper.GetAllLimitOrderExpiration(ctx) + // NOTE: this test is very brittle because it relies on an estimated cost + // for deleting expirations. If this cost changes the number of remaining + // expirations may change + require.Equal(t, 1, len(expList)) +} + +func TestPurgeExpiredLimitOrdersAtBlockGasLimitOnlyJIT(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + now := time.Now().UTC() + ctx = ctx.WithBlockTime(now) + gasLimt := 1000000 + ctx = ctx.WithBlockGasMeter(sdk.NewGasMeter(uint64(gasLimt))) + gasUsed := gasLimt - types.GoodTilPurgeGasBuffer - 30000 + + expTimes := []time.Time{ + types.JITGoodTilTime(), + types.JITGoodTilTime(), + types.JITGoodTilTime(), + types.JITGoodTilTime(), + types.JITGoodTilTime(), + types.JITGoodTilTime(), + types.JITGoodTilTime(), + } + + createLimitOrderExpirationAndTranches(keeper, ctx, expTimes) + ctx = ctx.WithGasMeter(sdk.NewGasMeter(100000)) + ctx.BlockGasMeter().ConsumeGas(uint64(gasUsed), "stub block gas usage") + keeper.PurgeExpiredLimitOrders(ctx, now) + + // GoodTilPurgeHitGasLimit event is not been emitted + keepertest.AssertEventNotEmitted( + t, + ctx, + types.GoodTilPurgeHitGasLimitEventGas, + "Hit gas limit purging JIT expirations", + ) + + // All JIT expirations are purged + expList := keeper.GetAllLimitOrderExpiration(ctx) + require.Equal(t, 0, len(expList)) +} diff --git a/x/dex/keeper/limit_order_tranche.go b/x/dex/keeper/limit_order_tranche.go new file mode 100644 index 000000000..6628c4e12 --- /dev/null +++ b/x/dex/keeper/limit_order_tranche.go @@ -0,0 +1,241 @@ +package keeper + +import ( + "fmt" + "time" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/dex/utils" +) + +func NewLimitOrderTranche( + limitOrderTrancheKey *types.LimitOrderTrancheKey, + goodTil *time.Time, +) (*types.LimitOrderTranche, error) { + priceTakerToMaker, err := limitOrderTrancheKey.PriceTakerToMaker() + if err != nil { + return nil, err + } + return &types.LimitOrderTranche{ + Key: limitOrderTrancheKey, + ReservesMakerDenom: sdk.ZeroInt(), + ReservesTakerDenom: sdk.ZeroInt(), + TotalMakerDenom: sdk.ZeroInt(), + TotalTakerDenom: sdk.ZeroInt(), + ExpirationTime: goodTil, + PriceTakerToMaker: priceTakerToMaker, + }, nil +} + +func (k Keeper) FindLimitOrderTranche( + ctx sdk.Context, + limitOrderTrancheKey *types.LimitOrderTrancheKey, +) (val *types.LimitOrderTranche, fromFilled, found bool) { + // Try to find the tranche in the active liq index + tick := k.GetLimitOrderTranche(ctx, limitOrderTrancheKey) + if tick != nil { + return tick, false, true + } + // Look for filled limit orders + tranche, found := k.GetInactiveLimitOrderTranche(ctx, limitOrderTrancheKey) + if found { + return tranche, true, true + } + + return nil, false, false +} + +func (k Keeper) SaveTranche(ctx sdk.Context, tranche *types.LimitOrderTranche) { + if tranche.HasTokenIn() { + k.SetLimitOrderTranche(ctx, tranche) + } else { + k.SetInactiveLimitOrderTranche(ctx, tranche) + k.RemoveLimitOrderTranche(ctx, tranche.Key) + } + + ctx.EventManager().EmitEvent(types.CreateTickUpdateLimitOrderTranche(tranche)) +} + +func (k Keeper) SetLimitOrderTranche(ctx sdk.Context, tranche *types.LimitOrderTranche) { + // Wrap tranche back into TickLiquidity + tick := types.TickLiquidity{ + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: tranche, + }, + } + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + b := k.cdc.MustMarshal(&tick) + store.Set(tranche.Key.KeyMarshal(), b) +} + +func (k Keeper) GetLimitOrderTranche( + ctx sdk.Context, + limitOrderTrancheKey *types.LimitOrderTrancheKey, +) (tranche *types.LimitOrderTranche) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + b := store.Get(limitOrderTrancheKey.KeyMarshal()) + + if b == nil { + return nil + } + + var tick types.TickLiquidity + k.cdc.MustUnmarshal(b, &tick) + + return tick.GetLimitOrderTranche() +} + +func (k Keeper) GetLimitOrderTrancheByKey( + ctx sdk.Context, + key []byte, +) (tranche *types.LimitOrderTranche, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + b := store.Get(key) + + if b == nil { + return nil, false + } + + var tick types.TickLiquidity + k.cdc.MustUnmarshal(b, &tick) + + return tick.GetLimitOrderTranche(), true +} + +func (k Keeper) RemoveLimitOrderTranche(ctx sdk.Context, trancheKey *types.LimitOrderTrancheKey) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + store.Delete(trancheKey.KeyMarshal()) +} + +func (k Keeper) GetPlaceTranche( + sdkCtx sdk.Context, + tradePairID *types.TradePairID, + tickIndexTakerToMaker int64, +) *types.LimitOrderTranche { + prefixStore := prefix.NewStore( + sdkCtx.KVStore(k.storeKey), + types.TickLiquidityLimitOrderPrefix(tradePairID, tickIndexTakerToMaker), + ) + iter := prefixStore.Iterator(nil, nil) + + defer iter.Close() + for ; iter.Valid(); iter.Next() { + var tick types.TickLiquidity + k.cdc.MustUnmarshal(iter.Value(), &tick) + tranche := tick.GetLimitOrderTranche() + if tranche.IsPlaceTranche() { + return tranche + } + } + + return nil +} + +func (k Keeper) GetFillTranche( + sdkCtx sdk.Context, + tradePairID *types.TradePairID, + tickIndexTakerToMaker int64, +) (*types.LimitOrderTranche, bool) { + prefixStore := prefix.NewStore( + sdkCtx.KVStore(k.storeKey), + types.TickLiquidityLimitOrderPrefix(tradePairID, tickIndexTakerToMaker), + ) + iter := sdk.KVStorePrefixIterator(prefixStore, []byte{}) + + defer iter.Close() + for ; iter.Valid(); iter.Next() { + var tick types.TickLiquidity + k.cdc.MustUnmarshal(iter.Value(), &tick) + + return tick.GetLimitOrderTranche(), true + } + + return &types.LimitOrderTranche{}, false +} + +func (k Keeper) GetAllLimitOrderTrancheAtIndex( + sdkCtx sdk.Context, + tradePairID *types.TradePairID, + tickIndexTakerToMaker int64, +) (trancheList []types.LimitOrderTranche) { + prefixStore := prefix.NewStore( + sdkCtx.KVStore(k.storeKey), + types.TickLiquidityLimitOrderPrefix(tradePairID, tickIndexTakerToMaker), + ) + iter := sdk.KVStorePrefixIterator(prefixStore, []byte{}) + + defer iter.Close() + for ; iter.Valid(); iter.Next() { + var tick types.TickLiquidity + k.cdc.MustUnmarshal(iter.Value(), &tick) + maybeTranche := tick.GetLimitOrderTranche() + if maybeTranche != nil { + trancheList = append(trancheList, *maybeTranche) + } + } + + return trancheList +} + +func NewTrancheKey(ctx sdk.Context) string { + blockHeight := ctx.BlockHeight() + txGas := ctx.GasMeter().GasConsumed() + blockGas := utils.MustGetBlockGasUsed(ctx) + totalGas := blockGas + txGas + + blockStr := utils.Uint64ToSortableString(uint64(blockHeight)) + gasStr := utils.Uint64ToSortableString(totalGas) + + return fmt.Sprintf("%s%s", blockStr, gasStr) +} + +func (k Keeper) GetOrInitPlaceTranche(ctx sdk.Context, + tradePairID *types.TradePairID, + tickIndexTakerToMaker int64, + goodTil *time.Time, + orderType types.LimitOrderType, +) (placeTranche *types.LimitOrderTranche, err error) { + // NOTE: Right now we are not indexing by goodTil date so we can't easily check if there's already a tranche + // with the same goodTil date so instead we create a new tranche for each goodTil order + // if there is a large number of limitOrders with the same goodTilTime (most likely JIT) + // aggregating might be more efficient particularly for deletion, but if they are relatively sparse + // it will incur fewer lookups to just create a new limitOrderTranche + // Also trying to cancel aggregated good_til orders will be a PITA + JITGoodTilTime := types.JITGoodTilTime() + switch orderType { + case types.LimitOrderType_JUST_IN_TIME: + limitOrderTrancheKey := &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndexTakerToMaker, + TrancheKey: NewTrancheKey(ctx), + } + placeTranche, err = NewLimitOrderTranche(limitOrderTrancheKey, &JITGoodTilTime) + case types.LimitOrderType_GOOD_TIL_TIME: + limitOrderTrancheKey := &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndexTakerToMaker, + TrancheKey: NewTrancheKey(ctx), + } + placeTranche, err = NewLimitOrderTranche(limitOrderTrancheKey, goodTil) + default: + placeTranche = k.GetPlaceTranche(ctx, tradePairID, tickIndexTakerToMaker) + if placeTranche == nil { + limitOrderTrancheKey := &types.LimitOrderTrancheKey{ + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndexTakerToMaker, + TrancheKey: NewTrancheKey(ctx), + } + placeTranche, err = NewLimitOrderTranche(limitOrderTrancheKey, nil) + if err != nil { + return nil, err + } + } + } + if err != nil { + return nil, err + } + + return placeTranche, nil +} diff --git a/x/dex/keeper/limit_order_tranche_test.go b/x/dex/keeper/limit_order_tranche_test.go new file mode 100644 index 000000000..36e9374af --- /dev/null +++ b/x/dex/keeper/limit_order_tranche_test.go @@ -0,0 +1,60 @@ +package keeper_test + +import ( + "strconv" + "testing" + + math "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func createNLimitOrderTranches( + keeper *keeper.Keeper, + ctx sdk.Context, + n int, +) []*types.LimitOrderTranche { + items := make([]*types.LimitOrderTranche, n) + for i := range items { + items[i] = types.MustNewLimitOrderTranche( + "TokenA", + "TokenB", + strconv.Itoa(i), + int64(i), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + ) + keeper.SetLimitOrderTranche(ctx, items[i]) + } + + return items +} + +func TestGetLimitOrderTranche(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderTranches(keeper, ctx, 10) + for _, item := range items { + rst := keeper.GetLimitOrderTranche(ctx, item.Key) + require.NotNil(t, rst) + require.Equal(t, + nullify.Fill(&item), + nullify.Fill(&rst), + ) + } +} + +func TestRemoveLimitOrderTranche(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderTranches(keeper, ctx, 10) + for _, item := range items { + keeper.RemoveLimitOrderTranche(ctx, item.Key) + rst := keeper.GetLimitOrderTranche(ctx, item.Key) + require.Nil(t, rst) + } +} diff --git a/x/dex/keeper/limit_order_tranche_user.go b/x/dex/keeper/limit_order_tranche_user.go new file mode 100644 index 000000000..077982a41 --- /dev/null +++ b/x/dex/keeper/limit_order_tranche_user.go @@ -0,0 +1,129 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (k Keeper) GetOrInitLimitOrderTrancheUser( + ctx sdk.Context, + tradePairID *types.TradePairID, + tickIndex int64, + trancheKey string, + orderType types.LimitOrderType, + receiver string, +) *types.LimitOrderTrancheUser { + userShareData, found := k.GetLimitOrderTrancheUser(ctx, receiver, trancheKey) + + if !found { + return &types.LimitOrderTrancheUser{ + TrancheKey: trancheKey, + Address: receiver, + SharesOwned: sdk.ZeroInt(), + SharesWithdrawn: sdk.ZeroInt(), + SharesCancelled: sdk.ZeroInt(), + TickIndexTakerToMaker: tickIndex, + TradePairID: tradePairID, + OrderType: orderType, + } + } + + return userShareData +} + +// SetLimitOrderTrancheUser set a specific LimitOrderTrancheUser in the store from its index +func (k Keeper) SetLimitOrderTrancheUser(ctx sdk.Context, limitOrderTrancheUser *types.LimitOrderTrancheUser) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.LimitOrderTrancheUserKeyPrefix)) + b := k.cdc.MustMarshal(limitOrderTrancheUser) + store.Set(types.LimitOrderTrancheUserKey( + limitOrderTrancheUser.Address, + limitOrderTrancheUser.TrancheKey, + ), b) +} + +// GetLimitOrderTrancheUser returns a LimitOrderTrancheUser from its index +func (k Keeper) GetLimitOrderTrancheUser( + ctx sdk.Context, + address string, + trancheKey string, +) (val *types.LimitOrderTrancheUser, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.LimitOrderTrancheUserKeyPrefix)) + + b := store.Get(types.LimitOrderTrancheUserKey( + address, + trancheKey, + )) + if b == nil { + return nil, false + } + + val = &types.LimitOrderTrancheUser{} + k.cdc.MustUnmarshal(b, val) + + return val, true +} + +// RemoveLimitOrderTrancheUserByKey removes a LimitOrderTrancheUser from the store +func (k Keeper) RemoveLimitOrderTrancheUserByKey( + ctx sdk.Context, + trancheKey string, + address string, +) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.LimitOrderTrancheUserKeyPrefix)) + store.Delete(types.LimitOrderTrancheUserKey( + address, + trancheKey, + )) +} + +func (k Keeper) RemoveLimitOrderTrancheUser(ctx sdk.Context, trancheUser *types.LimitOrderTrancheUser) { + k.RemoveLimitOrderTrancheUserByKey( + ctx, + trancheUser.TrancheKey, + trancheUser.Address, + ) +} + +func (k Keeper) SaveTrancheUser(ctx sdk.Context, trancheUser *types.LimitOrderTrancheUser) { + if trancheUser.IsEmpty() { + k.RemoveLimitOrderTrancheUser(ctx, trancheUser) + } else { + k.SetLimitOrderTrancheUser(ctx, trancheUser) + } +} + +// GetAllLimitOrderTrancheUser returns all LimitOrderTrancheUser +func (k Keeper) GetAllLimitOrderTrancheUser(ctx sdk.Context) (list []*types.LimitOrderTrancheUser) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.LimitOrderTrancheUserKeyPrefix)) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + val := &types.LimitOrderTrancheUser{} + k.cdc.MustUnmarshal(iterator.Value(), val) + list = append(list, val) + } + + return +} + +func (k Keeper) GetAllLimitOrderTrancheUserForAddress( + ctx sdk.Context, + address sdk.AccAddress, +) (list []*types.LimitOrderTrancheUser) { + addressPrefix := types.LimitOrderTrancheUserAddressPrefix(address.String()) + store := prefix.NewStore(ctx.KVStore(k.storeKey), addressPrefix) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + val := &types.LimitOrderTrancheUser{} + k.cdc.MustUnmarshal(iterator.Value(), val) + list = append(list, val) + } + + return +} diff --git a/x/dex/keeper/limit_order_tranche_user_test.go b/x/dex/keeper/limit_order_tranche_user_test.go new file mode 100644 index 000000000..7ac9acbbc --- /dev/null +++ b/x/dex/keeper/limit_order_tranche_user_test.go @@ -0,0 +1,109 @@ +package keeper_test + +import ( + "strconv" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func createNLimitOrderTrancheUser(keeper *keeper.Keeper, ctx sdk.Context, n int) []*types.LimitOrderTrancheUser { + items := make([]*types.LimitOrderTrancheUser, n) + for i := range items { + val := &types.LimitOrderTrancheUser{ + TrancheKey: strconv.Itoa(i), + Address: strconv.Itoa(i), + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + SharesOwned: sdk.ZeroInt(), + SharesWithdrawn: sdk.ZeroInt(), + SharesCancelled: sdk.ZeroInt(), + } + items[i] = val + keeper.SetLimitOrderTrancheUser(ctx, items[i]) + } + + return items +} + +func createNLimitOrderTrancheUserWithAddress(keeper *keeper.Keeper, ctx sdk.Context, address string, n int) []*types.LimitOrderTrancheUser { + items := make([]*types.LimitOrderTrancheUser, n) + for i := range items { + val := &types.LimitOrderTrancheUser{ + TrancheKey: strconv.Itoa(i), + Address: address, + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + SharesOwned: sdk.ZeroInt(), + SharesWithdrawn: sdk.ZeroInt(), + SharesCancelled: sdk.ZeroInt(), + } + items[i] = val + keeper.SetLimitOrderTrancheUser(ctx, items[i]) + } + + return items +} + +func TestLimitOrderTrancheUserGet(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderTrancheUser(keeper, ctx, 10) + for _, item := range items { + rst, found := keeper.GetLimitOrderTrancheUser(ctx, item.Address, item.TrancheKey) + require.True(t, found) + require.Equal(t, + nullify.Fill(&item), + nullify.Fill(&rst), + ) + } +} + +func TestLimitOrderTrancheUserRemove(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNLimitOrderTrancheUser(keeper, ctx, 10) + for _, item := range items { + keeper.RemoveLimitOrderTrancheUserByKey(ctx, item.TrancheKey, item.Address) + _, found := keeper.GetLimitOrderTrancheUser(ctx, item.Address, item.TrancheKey) + require.False(t, found) + } +} + +func (s *MsgServerTestSuite) TestGetAllLimitOrders() { + // WHEN Alice places 2 limit orders + s.fundAliceBalances(20, 20) + s.fundBobBalances(20, 20) + trancheKeyA := s.aliceLimitSells("TokenA", -1, 10) + trancheKeyB := s.aliceLimitSells("TokenB", 0, 10) + s.bobLimitSells("TokenA", -1, 10) + + // THEN GetAllLimitOrders returns alice's same two orders + LOList := s.app.DexKeeper.GetAllLimitOrderTrancheUserForAddress(s.ctx, s.alice) + s.Assert().Equal(2, len(LOList)) + s.Assert().Equal(&types.LimitOrderTrancheUser{ + TradePairID: defaultTradePairID1To0, + TickIndexTakerToMaker: 1, + TrancheKey: trancheKeyA, + Address: s.alice.String(), + SharesOwned: sdk.NewInt(10), + SharesWithdrawn: sdk.NewInt(0), + SharesCancelled: sdk.NewInt(0), + }, + LOList[0], + ) + s.Assert().Equal(&types.LimitOrderTrancheUser{ + TradePairID: defaultTradePairID0To1, + TickIndexTakerToMaker: 0, + TrancheKey: trancheKeyB, + Address: s.alice.String(), + SharesOwned: sdk.NewInt(10), + SharesWithdrawn: sdk.NewInt(0), + SharesCancelled: sdk.NewInt(0), + }, + LOList[1], + ) +} diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go new file mode 100644 index 000000000..4615f7741 --- /dev/null +++ b/x/dex/keeper/liquidity.go @@ -0,0 +1,108 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (k Keeper) Swap( + ctx sdk.Context, + tradePairID *types.TradePairID, + maxAmountTakerDenom sdk.Int, + maxAmountMakerDenom *sdk.Int, + limitPrice *math_utils.PrecDec, +) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool, err error) { + useMaxOut := maxAmountMakerDenom != nil + var remainingMakerDenom *sdk.Int + if useMaxOut { + copy := *maxAmountMakerDenom + remainingMakerDenom = © + } + + remainingTakerDenom := maxAmountTakerDenom + totalMakerDenom := sdk.ZeroInt() + orderFilled = false + + // verify that amount left is not zero and that there are additional valid ticks to check + liqIter := k.NewLiquidityIterator(ctx, tradePairID) + defer liqIter.Close() + for { + liq := liqIter.Next() + if liq == nil { + break + } + + // break as soon as we iterated past limitPrice + if limitPrice != nil && liq.Price().LT(*limitPrice) { + break + } + + inAmount, outAmount := liq.Swap(remainingTakerDenom, remainingMakerDenom) + k.SaveLiquidity(ctx, liq) + + remainingTakerDenom = remainingTakerDenom.Sub(inAmount) + totalMakerDenom = totalMakerDenom.Add(outAmount) + + // break if remainingTakerDenom will yield less than 1 tokenOut at current price + // this avoids unnecessary iteration since outAmount will always be 0 going forward + // this also catches the normal exit case where remainingTakerDenom == 0 + if liq.Price().MulInt(remainingTakerDenom).LT(math_utils.OnePrecDec()) { + orderFilled = true + break + } + + if useMaxOut { + copy := remainingMakerDenom.Sub(outAmount) + remainingMakerDenom = © + + // if maxAmountOut has been used up then exit + if remainingMakerDenom.LTE(sdk.ZeroInt()) { + orderFilled = true + break + } + } + } + totalTakerDenom := maxAmountTakerDenom.Sub(remainingTakerDenom) + + return sdk.NewCoin( + tradePairID.TakerDenom, + totalTakerDenom, + ), sdk.NewCoin( + tradePairID.MakerDenom, + totalMakerDenom, + ), orderFilled, nil +} + +func (k Keeper) SwapWithCache( + ctx sdk.Context, + tradePairID *types.TradePairID, + maxAmountIn sdk.Int, + maxAmountOut *sdk.Int, + limitPrice *math_utils.PrecDec, +) (totalIn, totalOut sdk.Coin, orderFilled bool, err error) { + cacheCtx, writeCache := ctx.CacheContext() + totalIn, totalOut, orderFilled, err = k.Swap( + cacheCtx, + tradePairID, + maxAmountIn, + maxAmountOut, + limitPrice, + ) + + writeCache() + + return totalIn, totalOut, orderFilled, err +} + +func (k Keeper) SaveLiquidity(sdkCtx sdk.Context, liquidityI types.Liquidity) { + switch liquidity := liquidityI.(type) { + case *types.LimitOrderTranche: + k.SaveTranche(sdkCtx, liquidity) + + case *types.PoolLiquidity: + k.SetPool(sdkCtx, liquidity.Pool) + default: + panic("Invalid liquidity type") + } +} diff --git a/x/dex/keeper/liquidity_iterator.go b/x/dex/keeper/liquidity_iterator.go new file mode 100644 index 000000000..64420363c --- /dev/null +++ b/x/dex/keeper/liquidity_iterator.go @@ -0,0 +1,94 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +type LiquidityIterator struct { + keeper *Keeper + tradePairID *types.TradePairID + ctx sdk.Context + iter TickIterator +} + +func (k Keeper) NewLiquidityIterator( + ctx sdk.Context, + tradePairID *types.TradePairID, +) *LiquidityIterator { + return &LiquidityIterator{ + iter: k.NewTickIterator(ctx, tradePairID), + keeper: &k, + ctx: ctx, + tradePairID: tradePairID, + } +} + +func (s *LiquidityIterator) Next() types.Liquidity { + // Move iterator to the next tick after each call + // iter must be in valid state to call next + defer func() { + if s.iter.Valid() { + s.iter.Next() + } + }() + + for ; s.iter.Valid(); s.iter.Next() { + tick := s.iter.Value() + // Don't bother to look up pool counter-liquidities if there's no liquidity here + if !tick.HasToken() { + continue + } + + liq := s.WrapTickLiquidity(tick) + if liq != nil { + return liq + } + } + + return nil +} + +func (s *LiquidityIterator) Close() { + s.iter.Close() +} + +func (s *LiquidityIterator) WrapTickLiquidity(tick types.TickLiquidity) types.Liquidity { + switch liquidity := tick.Liquidity.(type) { + case *types.TickLiquidity_PoolReserves: + poolReserves := liquidity.PoolReserves + counterpartKey := poolReserves.Key.Counterpart() + counterpartReserves, counterpartReservesFound := s.keeper.GetPoolReserves(s.ctx, counterpartKey) + if !counterpartReservesFound { + counterpartReserves = types.NewPoolReservesFromCounterpart(poolReserves) + } + + var lowerTick0, upperTick1 *types.PoolReserves + if s.tradePairID.IsTakerDenomToken0() { + lowerTick0 = counterpartReserves + upperTick1 = poolReserves + } else { + lowerTick0 = poolReserves + upperTick1 = counterpartReserves + } + return &types.PoolLiquidity{ + TradePairID: s.tradePairID, + Pool: &types.Pool{ + LowerTick0: lowerTick0, + UpperTick1: upperTick1, + }, + } + + case *types.TickLiquidity_LimitOrderTranche: + tranche := liquidity.LimitOrderTranche + // If we hit a tranche with an expired goodTil date keep iterating + if tranche.IsExpired(s.ctx) { + return nil + } + + return tranche + + default: + panic("Tick does not have liquidity") + } +} diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go new file mode 100644 index 000000000..013080f4c --- /dev/null +++ b/x/dex/keeper/liquidity_test.go @@ -0,0 +1,746 @@ +package keeper_test + +import ( + "math" + "testing" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + sdk "github.com/cosmos/cosmos-sdk/types" + dualityapp "github.com/neutron-org/neutron/app" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/suite" +) + +type LiquidityTestSuite struct { + suite.Suite + app *dualityapp.App + ctx sdk.Context +} + +// TODO: In an ideal world, there should be enough lower level testing that the swap tests +// don't need to test both LO and LP. At the level of swap testing these should be indistinguishable. + +func (s *LiquidityTestSuite) SetupTest() { + s.app = dualityapp.Setup(s.T(), false) + ctx := s.app.BaseApp.NewContext(false, tmproto.Header{}) + ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) + s.ctx = ctx +} + +func TestLiquidityTestSuite(t *testing.T) { + suite.Run(t, new(LiquidityTestSuite)) +} + +func (s *LiquidityTestSuite) TestSwap0To1NoLiquidity() { + // GIVEN no liqudity of token B (deposit only token A and LO of token A) + s.addDeposit(NewDeposit(10, 0, 0, 1)) + s.placeGTCLimitOrder("TokenA", 1000, 10) + + // WHEN swap 10 of tokenB + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 10) + + // THEN swap should do nothing + s.assertSwapOutput(tokenIn, 0, tokenOut, 0) + s.assertDexBalances(1010, 0) + + s.assertCurr0To1(math.MaxInt64) +} + +func (s *LiquidityTestSuite) TestSwap1To0NoLiquidity() { + // GIVEN no liqudity of token A (deposit only token B and LO of token B) + s.addDeposit(NewDeposit(0, 10, 0, 1)) + s.placeGTCLimitOrder("TokenB", 1000, 10) + + // WHEN swap 10 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 10) + + // THEN swap should do nothing + s.assertSwapOutput(tokenIn, 0, tokenOut, 0) + s.assertDexBalances(0, 1010) + + s.assertCurr1To0(math.MinInt64) +} + +// swaps against LPs only ///////////////////////////////////////////////////// + +func (s *LiquidityTestSuite) TestSwap0To1PartialFillLP() { + // GIVEN 10 tokenB LP @ tick 0 fee 1 + s.addDeposit(NewDeposit(0, 10, 0, 1)) + + // WHEN swap 20 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 20) + + // THEN swap should return 11 TokenA in and 10 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 11, tokenOut, 10) + s.assertDexBalances(11, 0) + + s.assertCurr0To1(math.MaxInt64) + s.assertCurr1To0(-1) +} + +func (s *LiquidityTestSuite) TestSwap1To0PartialFillLP() { + // GIVEN 10 tokenA LP @ tick 0 fee 1 + s.addDeposit(NewDeposit(10, 0, 0, 1)) + + // WHEN swap 20 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 20) + + // THEN swap should return 11 TokenB in and 10 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 11, tokenOut, 10) + s.assertDexBalances(0, 11) + + s.assertCurr0To1(1) + s.assertCurr1To0(math.MinInt64) +} + +func (s *LiquidityTestSuite) TestSwap0To1FillLP() { + // GIVEN 100 tokenB LP @ tick 200 fee 5 + s.addDeposit(NewDeposit(0, 100, 200, 5)) + + // WHEN swap 100 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + + // THEN swap should return 100 TokenA in and 97 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 100, tokenOut, 97) + s.assertDexBalances(100, 3) + + s.assertCurr0To1(205) + s.assertCurr1To0(195) +} + +func (s *LiquidityTestSuite) TestSwap1To0FillLP() { + // GIVEN 100 tokenA LP @ tick -20,000 fee 1 + s.addDeposit(NewDeposit(100, 0, -20_000, 1)) + + // WHEN swap 100 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) + + // THEN swap should return 97 TokenB in and 13 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + // NOTE: Given rounding for amountOut, amountIn does not use the full maxAmount + s.assertSwapOutput(tokenIn, 97, tokenOut, 13) + s.assertDexBalances(87, 97) + + s.assertCurr0To1(-19_999) + s.assertCurr1To0(-20_001) +} + +func (s *LiquidityTestSuite) TestSwap0To1FillLPHighFee() { + // GIVEN 100 tokenB LP @ tick 20,000 fee 1,000 + s.addDeposit(NewDeposit(0, 100, 20_000, 1_000)) + + // WHEN swap 100 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + + // THEN swap should return 98 TokenA in and 12 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 98, tokenOut, 12) + s.assertDexBalances(98, 88) + + s.assertCurr0To1(21_000) + s.assertCurr1To0(19_000) +} + +func (s *LiquidityTestSuite) TestSwap1To0FillLPHighFee() { + // GIVEN 1000 tokenA LP @ tick 20,000 fee 1000 + s.addDeposit(NewDeposit(1000, 0, 20_000, 1000)) + + // WHEN swap 100 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) + + // THEN swap should return 100 TokenB in and 668 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 100, tokenOut, 668) + s.assertDexBalances(332, 100) + + s.assertCurr0To1(21_000) + s.assertCurr1To0(19_000) +} + +func (s *LiquidityTestSuite) TestSwap0To1PartialFillMultipleLP() { + // GIVEN 300 worth of tokenB LPs + s.addDeposits( + NewDeposit(0, 100, -20_000, 1), + NewDeposit(0, 100, -20_001, 1), + NewDeposit(0, 100, -20_002, 1), + ) + + // WHEN swap 100 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + + // THEN swap should return 42 TokenA in and 300 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 42, tokenOut, 300) + s.assertDexBalances(42, 0) + + s.assertCurr0To1(math.MaxInt64) + s.assertCurr1To0(-20_001) +} + +func (s *LiquidityTestSuite) TestSwap1To0PartialFillMultipleLP() { + // GIVEN 300 worth of tokenA LPs + s.addDeposits( + NewDeposit(100, 0, 20_000, 1), + NewDeposit(100, 0, 20_001, 1), + NewDeposit(100, 0, 20_002, 1), + ) + + // WHEN swap 100 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) + + // THEN swap should return 42 TokenB in and 300 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 42, tokenOut, 300) + s.assertDexBalances(0, 42) + + s.assertCurr0To1(20_001) + s.assertCurr1To0(math.MinInt64) +} + +func (s *LiquidityTestSuite) TestSwap0To1FillMultipleLP() { + // GIVEN 400 worth of tokenB LPs + s.addDeposits( + NewDeposit(0, 100, -20, 1), + NewDeposit(0, 100, -21, 1), + NewDeposit(0, 100, -22, 1), + NewDeposit(0, 100, -23, 1), + ) + + // WHEN swap 100 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 400) + + // THEN swap should return 400 TokenA in and 400 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 400, tokenOut, 400) + s.assertDexBalances(400, 0) + + s.assertCurr0To1(math.MaxInt64) + s.assertCurr1To0(-21) +} + +func (s *LiquidityTestSuite) TestSwap1To0FillMultipleLP() { + // GIVEN 400 worth of tokenA LPs + s.addDeposits( + NewDeposit(100, 0, 20, 1), + NewDeposit(100, 0, 21, 1), + NewDeposit(100, 0, 22, 1), + NewDeposit(100, 0, 23, 1), + ) + + // WHEN swap 400 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 400) + + // THEN swap should return 400 TokenB in and 400 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 400, tokenOut, 400) + s.assertDexBalances(0, 400) + + s.assertCurr0To1(21) + s.assertCurr1To0(math.MinInt64) +} + +func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountUsed() { + // GIVEN 10 TokenB available + s.addDeposits(NewDeposit(0, 10, 0, 1)) + + // WHEN swap 50 TokenA with maxOut of 5 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 5) + + // THEN swap should return 6 TokenA in and 5 TokenB out + s.assertSwapOutput(tokenIn, 6, tokenOut, 5) + s.assertDexBalances(6, 5) +} + +func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountUsed() { + // GIVEN 10 TokenA available + s.addDeposits(NewDeposit(10, 0, 0, 1)) + + // WHEN swap 50 TokenB with maxOut of 5 + tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 5) + + // THEN swap should return 6 TokenB in and 5 TokenA out + s.assertSwapOutput(tokenIn, 6, tokenOut, 5) + s.assertDexBalances(5, 6) +} + +func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountNotUsed() { + // GIVEN 10 TokenB available + s.addDeposits(NewDeposit(0, 10, 0, 1)) + + // WHEN swap 8 with maxOut of 15 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 8, 15) + + // THEN swap should return 8 TokenA in and 7 TokenB out + s.assertSwapOutput(tokenIn, 8, tokenOut, 7) + s.assertDexBalances(8, 3) +} + +func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountNotUsed() { + // GIVEN 10 TokenA available + s.addDeposits(NewDeposit(10, 0, 0, 1)) + + // WHEN swap 8 with maxOut of 15 + tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 8, 15) + + // THEN swap should return 8 TokenB in and 7 TokenA out + s.assertSwapOutput(tokenIn, 8, tokenOut, 7) + s.assertDexBalances(3, 8) +} + +func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { + // GIVEN 50 TokenB available + s.addDeposits( + NewDeposit(0, 5, 0, 1), + NewDeposit(0, 5, 1, 1), + NewDeposit(0, 5, 2, 1), + NewDeposit(0, 5, 3, 1), + NewDeposit(0, 30, 4, 1), + ) + + // WHEN swap 50 TokenA with maxOut of 20 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 20) + + // THEN swap should return 24 TokenA in and 20 TokenB out + s.assertSwapOutput(tokenIn, 24, tokenOut, 20) + s.assertDexBalances(24, 30) +} + +func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { + // GIVEN 50 TokenA available + s.addDeposits( + NewDeposit(5, 0, 0, 1), + NewDeposit(5, 0, 1, 1), + NewDeposit(5, 0, 2, 1), + NewDeposit(5, 0, 3, 1), + NewDeposit(30, 0, 4, 1), + ) + + // WHEN swap 50 TokenB with maxOut of 20 + tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 20) + + // THEN swap should return 20 TokenB in and 20 TokenA out + s.assertSwapOutput(tokenIn, 20, tokenOut, 20) + s.assertDexBalances(30, 20) +} + +func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { + // GIVEN 50 TokenB available + s.addDeposits( + NewDeposit(0, 5, 0, 1), + NewDeposit(0, 5, 1, 1), + NewDeposit(0, 5, 2, 1), + NewDeposit(0, 5, 3, 1), + NewDeposit(0, 30, 4, 1), + ) + + // WHEN swap 19 TokenA with maxOut of 20 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 19, 20) + + // THEN swap should return 19 TokenA in and 15 TokenB out + s.assertSwapOutput(tokenIn, 18, tokenOut, 15) + s.assertDexBalances(18, 35) +} + +// swaps against LOs only ///////////////////////////////////////////////////// + +func (s *LiquidityTestSuite) TestSwap0To1PartialFillLO() { + // GIVEN 10 tokenB LO @ tick 1,000 + s.placeGTCLimitOrder("TokenB", 10, 1_000) + + // WHEN swap 20 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 20) + + // THEN swap should return 12 TokenA in and 10 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 12, tokenOut, 10) + s.assertDexBalances(12, 0) +} + +func (s *LiquidityTestSuite) TestSwap1To0PartialFillLO() { + // GIVEN 10 tokenA LO @ tick -1,000 + s.placeGTCLimitOrder("TokenA", 10, -1_000) + + // WHEN swap 20 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 20) + + // THEN swap should return 12 TokenB in and 10 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 12, tokenOut, 10) + s.assertDexBalances(0, 12) + + s.assertCurr0To1(math.MaxInt64) + s.assertCurr1To0(math.MinInt64) +} + +func (s *LiquidityTestSuite) TestSwap0To1FillLO() { + // GIVEN 100 tokenB LO @ tick 10,000 + s.placeGTCLimitOrder("TokenB", 100, 10_000) + + // WHEN swap 100 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + + // THEN swap should return 98 TokenA in and 36 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 98, tokenOut, 36) + s.assertDexBalances(98, 64) + + s.assertCurr0To1(10_000) + s.assertCurr1To0(math.MinInt64) +} + +func (s *LiquidityTestSuite) TestSwap1To0FillLO() { + // GIVEN 100 tokenA LO @ tick 10,000 + s.placeGTCLimitOrder("TokenA", 100, -10_000) + + // WHEN swap 10 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 10) + + // THEN swap should return 9 TokenB in and 3 TokenA out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 9, tokenOut, 3) + s.assertDexBalances(97, 9) + + s.assertCurr0To1(math.MaxInt64) + s.assertCurr1To0(-10_000) +} + +func (s *LiquidityTestSuite) TestSwap0To1FillMultipleLO() { + // GIVEN 300 tokenB across multiple LOs + s.placeGTCLimitOrder("TokenB", 100, 1_000) + s.placeGTCLimitOrder("TokenB", 100, 1_001) + s.placeGTCLimitOrder("TokenB", 100, 1_002) + + // WHEN swap 300 of tokenA + tokenIn, tokenOut := s.swap("TokenA", "TokenB", 300) + + // THEN swap should return 300 TokenA in and 270 TokenB out + s.Assert().Equal("TokenA", tokenIn.Denom) + s.Assert().Equal("TokenB", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 300, tokenOut, 270) + s.assertDexBalances(300, 30) + + s.assertCurr0To1(1_002) + s.assertCurr1To0(math.MinInt64) +} + +func (s *LiquidityTestSuite) TestSwap1To0FillMultipleLO() { + // GIVEN 300 tokenA across multiple LOs + s.placeGTCLimitOrder("TokenA", 100, -1_000) + s.placeGTCLimitOrder("TokenA", 100, -1_001) + s.placeGTCLimitOrder("TokenA", 100, -1_002) + + // WHEN swap 300 of tokenB + tokenIn, tokenOut := s.swap("TokenB", "TokenA", 300) + + // THEN swap should return 300 TokenB in and 270 TokenB out + s.Assert().Equal("TokenB", tokenIn.Denom) + s.Assert().Equal("TokenA", tokenOut.Denom) + s.assertSwapOutput(tokenIn, 300, tokenOut, 270) + s.assertDexBalances(30, 300) + + s.assertCurr0To1(math.MaxInt64) + s.assertCurr1To0(-1_002) +} + +func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountUsed() { + // GIVEN 10 TokenB available + s.placeGTCLimitOrder("TokenB", 10, 1) + + // WHEN swap 50 TokenA with maxOut of 5 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 5) + + // THEN swap should return 6 TokenA in and 5 TokenB out + s.assertSwapOutput(tokenIn, 6, tokenOut, 5) + s.assertDexBalances(6, 5) +} + +func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountUsed() { + // GIVEN 10 TokenA available + s.placeGTCLimitOrder("TokenA", 10, 0) + + // WHEN swap 50 TokenB with maxOut of 5 + tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 5) + + // THEN swap should return 5 TokenB in and 5 TokenA out + s.assertSwapOutput(tokenIn, 5, tokenOut, 5) + s.assertDexBalances(5, 5) +} + +func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountNotUsed() { + // GIVEN 10 TokenB available + s.placeGTCLimitOrder("TokenB", 10, 1) + + // WHEN swap 8 with maxOut of 15 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 8, 15) + + // THEN swap should return 8 TokenA in and 7 TokenB out + s.assertSwapOutput(tokenIn, 8, tokenOut, 7) + s.assertDexBalances(8, 3) +} + +func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountNotUsed() { + // GIVEN 10 TokenA available + s.placeGTCLimitOrder("TokenA", 10, 1) + + // WHEN swap 8 with maxOut of 15 + tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 8, 15) + + // THEN swap should return 8 TokenB in and 8 TokenA out + s.assertSwapOutput(tokenIn, 8, tokenOut, 8) + s.assertDexBalances(2, 8) +} + +func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { + // GIVEN 50 TokenB available + s.placeGTCLimitOrder("TokenB", 5, 0) + s.placeGTCLimitOrder("TokenB", 5, 1) + s.placeGTCLimitOrder("TokenB", 5, 2) + s.placeGTCLimitOrder("TokenB", 5, 3) + s.placeGTCLimitOrder("TokenB", 30, 4) + + // WHEN swap 50 TokenA with maxOut of 20 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 20) + + // THEN swap should return 23 TokenA in and 20 TokenB out + s.assertSwapOutput(tokenIn, 23, tokenOut, 20) + s.assertDexBalances(23, 30) +} + +func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { + // GIVEN 50 TokenA available + s.placeGTCLimitOrder("TokenA", 5, 0) + s.placeGTCLimitOrder("TokenA", 5, 1) + s.placeGTCLimitOrder("TokenA", 5, 2) + s.placeGTCLimitOrder("TokenA", 5, 3) + s.placeGTCLimitOrder("TokenA", 30, 4) + + // WHEN swap 50 TokenB with maxOut of 20 + tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 20) + + // THEN swap should return 20 TokenB in and 20 TokenA out + s.assertSwapOutput(tokenIn, 20, tokenOut, 20) + s.assertDexBalances(30, 20) +} + +func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { + // GIVEN 50 TokenB available + s.placeGTCLimitOrder("TokenB", 5, 0) + s.placeGTCLimitOrder("TokenB", 5, 1) + s.placeGTCLimitOrder("TokenB", 5, 2) + s.placeGTCLimitOrder("TokenB", 5, 3) + s.placeGTCLimitOrder("TokenB", 30, 4) + + // WHEN swap 19 TokenA with maxOut of 20 + tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 19, 20) + + // THEN swap should return 19 TokenA in and 16 TokenB out + s.assertSwapOutput(tokenIn, 19, tokenOut, 16) + s.assertDexBalances(19, 34) +} + +// Swap LO and LP //////////////////////////////////////////////////////////// + +func (s *LiquidityTestSuite) TestSwapExhaustsLOAndLP() { + s.placeGTCLimitOrder("TokenB", 10, 0) + + s.addDeposits(NewDeposit(0, 10, 0, 1)) + + s.swapWithMaxOut("TokenA", "TokenB", 19, 20) + + // There should be total of 6 tick updates + // (limitOrder, 2x deposit, 2x swap LP, swap LO) + keepertest.AssertNEventsEmitted(s.T(), s.ctx, types.TickUpdateEventKey, 6) +} + +// Test helpers /////////////////////////////////////////////////////////////// + +func (s *LiquidityTestSuite) addDeposit(deposit *Deposit) { + pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, defaultPairID, deposit.TickIndex, deposit.Fee) + s.Assert().NoError(err) + pool.LowerTick0.ReservesMakerDenom = pool.LowerTick0.ReservesMakerDenom.Add(deposit.AmountA) + pool.UpperTick1.ReservesMakerDenom = pool.UpperTick1.ReservesMakerDenom.Add(deposit.AmountB) + s.app.DexKeeper.SetPool(s.ctx, pool) +} + +func (s *LiquidityTestSuite) addDeposits(deposits ...*Deposit) { + for _, deposit := range deposits { + s.addDeposit(deposit) + } +} + +func (s *LiquidityTestSuite) placeGTCLimitOrder( + makerDenom string, + amountIn int64, + tickIndex int64, +) { + tradePairID := defaultPairID.MustTradePairIDFromMaker(makerDenom) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndex) + tranche, err := s.app.DexKeeper.GetOrInitPlaceTranche( + s.ctx, + tradePairID, + tickIndexTakerToMaker, + nil, + types.LimitOrderType_GOOD_TIL_CANCELLED, + ) + s.Assert().NoError(err) + tranche.PlaceMakerLimitOrder(sdk.NewInt(amountIn)) + s.app.DexKeeper.SaveTranche(s.ctx, tranche) +} + +func (s *LiquidityTestSuite) swap( + tokenIn string, + tokenOut string, + maxAmountIn int64, +) (coinIn, coinOut sdk.Coin) { + tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) + s.Assert().NoError(err) + coinIn, coinOut, _, err = s.app.DexKeeper.Swap( + s.ctx, + tradePairID, + sdk.NewInt(maxAmountIn), + nil, + nil, + ) + s.Assert().NoError(err) + return coinIn, coinOut +} + +func (s *LiquidityTestSuite) swapWithMaxOut( + tokenIn string, + tokenOut string, + maxAmountIn int64, + maxAmountOut int64, +) (coinIn, coinOut sdk.Coin) { + tradePairID := types.MustNewTradePairID(tokenIn, tokenOut) + maxAmountOutInt := sdk.NewInt(maxAmountOut) + coinIn, coinOut, _, err := s.app.DexKeeper.Swap( + s.ctx, + tradePairID, + sdk.NewInt(maxAmountIn), + &maxAmountOutInt, + nil, + ) + s.Assert().NoError(err) + + return coinIn, coinOut +} + +func (s *LiquidityTestSuite) assertSwapOutput( + actualIn sdk.Coin, + expectedIn int64, + actualOut sdk.Coin, + expectedOut int64, +) { + amtIn := actualIn.Amount + amtOut := actualOut.Amount + + s.Assert(). + True(amtIn.Equal(sdk.NewInt(expectedIn)), "Expected amountIn %d != %s", expectedIn, amtIn) + s.Assert(). + True(amtOut.Equal(sdk.NewInt(expectedOut)), "Expected amountOut %d != %s", expectedOut, amtOut) +} + +func (s *LiquidityTestSuite) assertDexBalances(expectedABalance int64, expectedBBalance int64) { + // NOTE: We can't just check the actual DEX bank balances since we are testing swap + // before any transfers take place. Instead we have to sum up the total amount of coins + // at each tick + expectedAInt := sdk.NewInt(expectedABalance) + expectedBInt := sdk.NewInt(expectedBBalance) + allCoins := sdk.Coins{} + ticks := s.app.DexKeeper.GetAllTickLiquidity(s.ctx) + inactiveLOs := s.app.DexKeeper.GetAllInactiveLimitOrderTranche(s.ctx) + + for _, tick := range ticks { + switch liquidity := tick.Liquidity.(type) { + case *types.TickLiquidity_LimitOrderTranche: + tokenIn := liquidity.LimitOrderTranche.Key.TradePairID.MakerDenom + amountIn := liquidity.LimitOrderTranche.ReservesMakerDenom + allCoins = allCoins.Add(sdk.NewCoin(tokenIn, amountIn)) + + tokenOut := liquidity.LimitOrderTranche.Key.TradePairID.TakerDenom + amountOut := liquidity.LimitOrderTranche.ReservesTakerDenom + allCoins = allCoins.Add(sdk.NewCoin(tokenOut, amountOut)) + + case *types.TickLiquidity_PoolReserves: + tokenIn := liquidity.PoolReserves.Key.TradePairID.MakerDenom + reserves := liquidity.PoolReserves.ReservesMakerDenom + allCoins = allCoins.Add(sdk.NewCoin(tokenIn, reserves)) + } + } + + for _, lo := range inactiveLOs { + tokenOut := lo.Key.TradePairID.TakerDenom + amountOut := lo.ReservesTakerDenom + allCoins = allCoins.Add(sdk.NewCoin(tokenOut, amountOut)) + } + + actualA := allCoins.AmountOf("TokenA") + actualB := allCoins.AmountOf("TokenB") + + s.Assert(). + True(actualA.Equal(expectedAInt), "TokenA: expected %s != actual %s", expectedAInt, actualA) + s.Assert(). + True(actualB.Equal(expectedBInt), "TokenB: expected %s != actual %s", expectedBInt, actualB) +} + +func (s *LiquidityTestSuite) assertCurr0To1(curr0To1Expected int64) { + curr0To1Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( + s.ctx, + defaultTradePairID0To1, + ) + if curr0To1Expected == math.MaxInt64 { + s.Assert().False(found) + } else { + s.Assert().Equal(curr0To1Expected, curr0To1Actual) + } +} + +func (s *LiquidityTestSuite) assertCurr1To0(curr1To0Expected int64) { + curr1to0Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( + s.ctx, + defaultTradePairID1To0, + ) + if curr1To0Expected == math.MinInt64 { + s.Assert().False(found) + } else { + s.Assert().Equal(curr1To0Expected, curr1to0Actual) + } +} + +func (s *LiquidityTestSuite) assertFillAndPlaceTrancheKeys( + selling string, + tickIndex int64, + expectedFill, expectedPlace string, +) { + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + placeTranche := s.app.DexKeeper.GetPlaceTranche(s.ctx, tradePairID, tickIndex) + fillTranche, foundFill := s.app.DexKeeper.GetFillTranche(s.ctx, tradePairID, tickIndex) + placeKey, fillKey := "", "" + if placeTranche != nil { + placeKey = placeTranche.Key.TrancheKey + } + + if foundFill { + fillKey = fillTranche.Key.TrancheKey + } + s.Assert().Equal(expectedFill, fillKey) + s.Assert().Equal(expectedPlace, placeKey) +} diff --git a/x/dex/keeper/msg_server.go b/x/dex/keeper/msg_server.go new file mode 100644 index 000000000..1f36797b0 --- /dev/null +++ b/x/dex/keeper/msg_server.go @@ -0,0 +1,183 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +type MsgServer struct { + Keeper +} + +// NewMsgServerImpl returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServerImpl(keeper Keeper) types.MsgServer { + return &MsgServer{Keeper: keeper} +} + +var _ types.MsgServer = MsgServer{} + +func (k MsgServer) Deposit( + goCtx context.Context, + msg *types.MsgDeposit, +) (*types.MsgDepositResponse, error) { + callerAddr := sdk.MustAccAddressFromBech32(msg.Creator) + receiverAddr := sdk.MustAccAddressFromBech32(msg.Receiver) + + pairID, err := types.NewPairIDFromUnsorted(msg.TokenA, msg.TokenB) + if err != nil { + return nil, err + } + + // sort amounts + amounts0, amounts1 := SortAmounts(msg.TokenA, pairID.Token0, msg.AmountsA, msg.AmountsB) + + tickIndexes := NormalizeAllTickIndexes(msg.TokenA, pairID.Token0, msg.TickIndexesAToB) + + Amounts0Deposit, Amounts1Deposit, _, err := k.DepositCore( + goCtx, + pairID, + callerAddr, + receiverAddr, + amounts0, + amounts1, + tickIndexes, + msg.Fees, + msg.Options, + ) + if err != nil { + return nil, err + } + + return &types.MsgDepositResponse{ + Reserve0Deposited: Amounts0Deposit, + Reserve1Deposited: Amounts1Deposit, + }, nil +} + +func (k MsgServer) Withdrawal( + goCtx context.Context, + msg *types.MsgWithdrawal, +) (*types.MsgWithdrawalResponse, error) { + callerAddr := sdk.MustAccAddressFromBech32(msg.Creator) + receiverAddr := sdk.MustAccAddressFromBech32(msg.Receiver) + + pairID, err := types.NewPairIDFromUnsorted(msg.TokenA, msg.TokenB) + if err != nil { + return nil, err + } + + tickIndexes := NormalizeAllTickIndexes(msg.TokenA, pairID.Token0, msg.TickIndexesAToB) + + err = k.WithdrawCore( + goCtx, + pairID, + callerAddr, + receiverAddr, + msg.SharesToRemove, + tickIndexes, + msg.Fees, + ) + if err != nil { + return nil, err + } + + return &types.MsgWithdrawalResponse{}, nil +} + +func (k MsgServer) PlaceLimitOrder( + goCtx context.Context, + msg *types.MsgPlaceLimitOrder, +) (*types.MsgPlaceLimitOrderResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + callerAddr := sdk.MustAccAddressFromBech32(msg.Creator) + receiverAddr := sdk.MustAccAddressFromBech32(msg.Receiver) + + err := msg.ValidateGoodTilExpiration(ctx.BlockTime()) + if err != nil { + return &types.MsgPlaceLimitOrderResponse{}, err + } + trancheKey, coinIn, _, coinOutSwap, err := k.PlaceLimitOrderCore( + goCtx, + msg.TokenIn, + msg.TokenOut, + msg.AmountIn, + msg.TickIndexInToOut, + msg.OrderType, + msg.ExpirationTime, + msg.MaxAmountOut, + callerAddr, + receiverAddr, + ) + if err != nil { + return &types.MsgPlaceLimitOrderResponse{}, err + } + + return &types.MsgPlaceLimitOrderResponse{ + TrancheKey: trancheKey, + CoinIn: coinIn, + TakerCoinOut: coinOutSwap, + }, nil +} + +func (k MsgServer) WithdrawFilledLimitOrder( + goCtx context.Context, + msg *types.MsgWithdrawFilledLimitOrder, +) (*types.MsgWithdrawFilledLimitOrderResponse, error) { + callerAddr := sdk.MustAccAddressFromBech32(msg.Creator) + + err := k.WithdrawFilledLimitOrderCore( + goCtx, + msg.TrancheKey, + callerAddr, + ) + if err != nil { + return &types.MsgWithdrawFilledLimitOrderResponse{}, err + } + + return &types.MsgWithdrawFilledLimitOrderResponse{}, nil +} + +func (k MsgServer) CancelLimitOrder( + goCtx context.Context, + msg *types.MsgCancelLimitOrder, +) (*types.MsgCancelLimitOrderResponse, error) { + callerAddr := sdk.MustAccAddressFromBech32(msg.Creator) + + err := k.CancelLimitOrderCore( + goCtx, + msg.TrancheKey, + callerAddr, + ) + if err != nil { + return &types.MsgCancelLimitOrderResponse{}, err + } + + return &types.MsgCancelLimitOrderResponse{}, nil +} + +func (k MsgServer) MultiHopSwap( + goCtx context.Context, + msg *types.MsgMultiHopSwap, +) (*types.MsgMultiHopSwapResponse, error) { + callerAddr := sdk.MustAccAddressFromBech32(msg.Creator) + receiverAddr := sdk.MustAccAddressFromBech32(msg.Receiver) + + coinOut, err := k.MultiHopSwapCore( + goCtx, + msg.AmountIn, + msg.Routes, + msg.ExitLimitPrice, + msg.PickBestRoute, + callerAddr, + receiverAddr, + ) + if err != nil { + return &types.MsgMultiHopSwapResponse{}, err + } + + return &types.MsgMultiHopSwapResponse{CoinOut: coinOut}, nil +} diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go new file mode 100644 index 000000000..51955b5e4 --- /dev/null +++ b/x/dex/keeper/msg_server_test.go @@ -0,0 +1,1543 @@ +package keeper_test + +import ( + "context" + "math" + "testing" + "time" + + abci "github.com/cometbft/cometbft/abci/types" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + dualityapp "github.com/neutron-org/neutron/app" + math_utils "github.com/neutron-org/neutron/utils/math" + . "github.com/neutron-org/neutron/x/dex/keeper" + . "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/suite" +) + +// / Test suite +type MsgServerTestSuite struct { + suite.Suite + app *dualityapp.App + msgServer types.MsgServer + ctx sdk.Context + queryClient types.QueryClient + alice sdk.AccAddress + bob sdk.AccAddress + carol sdk.AccAddress + dan sdk.AccAddress + goCtx context.Context +} + +var defaultPairID *types.PairID = &types.PairID{Token0: "TokenA", Token1: "TokenB"} + +var defaultTradePairID0To1 *types.TradePairID = &types.TradePairID{ + TakerDenom: "TokenA", + MakerDenom: "TokenB", +} + +var defaultTradePairID1To0 *types.TradePairID = &types.TradePairID{ + TakerDenom: "TokenB", + MakerDenom: "TokenA", +} + +func TestMsgServerTestSuite(t *testing.T) { + suite.Run(t, new(MsgServerTestSuite)) +} + +func (s *MsgServerTestSuite) SetupTest() { + app := dualityapp.Setup(s.T(), false) + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) + + app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams()) + app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) + + queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) + types.RegisterQueryServer(queryHelper, app.DexKeeper) + queryClient := types.NewQueryClient(queryHelper) + + accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) + app.AccountKeeper.SetAccount(ctx, accAlice) + accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) + app.AccountKeeper.SetAccount(ctx, accBob) + accCarol := app.AccountKeeper.NewAccountWithAddress(ctx, s.carol) + app.AccountKeeper.SetAccount(ctx, accCarol) + accDan := app.AccountKeeper.NewAccountWithAddress(ctx, s.dan) + app.AccountKeeper.SetAccount(ctx, accDan) + + s.app = app + s.msgServer = NewMsgServerImpl(app.DexKeeper) + s.ctx = ctx + s.goCtx = sdk.WrapSDKContext(ctx) + s.queryClient = queryClient + s.alice = sdk.AccAddress([]byte("alice")) + s.bob = sdk.AccAddress([]byte("bob")) + s.carol = sdk.AccAddress([]byte("carol")) + s.dan = sdk.AccAddress([]byte("dan")) +} + +/// Fund accounts + +func (s *MsgServerTestSuite) fundAccountBalances(account sdk.AccAddress, aBalance, bBalance int64) { + aBalanceInt := sdk.NewInt(aBalance) + bBalanceInt := sdk.NewInt(bBalance) + balances := sdk.NewCoins(NewACoin(aBalanceInt), NewBCoin(bBalanceInt)) + err := FundAccount(s.app.BankKeeper, s.ctx, account, balances) + s.Assert().NoError(err) + s.assertAccountBalances(account, aBalance, bBalance) +} + +func (s *MsgServerTestSuite) fundAccountBalancesWithDenom( + addr sdk.AccAddress, + amounts sdk.Coins, +) error { + if err := s.app.BankKeeper.MintCoins(s.ctx, types.ModuleName, amounts); err != nil { + return err + } + + return s.app.BankKeeper.SendCoinsFromModuleToAccount(s.ctx, types.ModuleName, addr, amounts) +} + +func (s *MsgServerTestSuite) fundAliceBalances(a, b int64) { + s.fundAccountBalances(s.alice, a, b) +} + +func (s *MsgServerTestSuite) fundBobBalances(a, b int64) { + s.fundAccountBalances(s.bob, a, b) +} + +func (s *MsgServerTestSuite) fundCarolBalances(a, b int64) { + s.fundAccountBalances(s.carol, a, b) +} + +func (s *MsgServerTestSuite) fundDanBalances(a, b int64) { + s.fundAccountBalances(s.dan, a, b) +} + +/// Assert balances + +func (s *MsgServerTestSuite) assertAccountBalancesInt( + account sdk.AccAddress, + aBalance sdk.Int, + bBalance sdk.Int, +) { + aActual := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenA").Amount + s.Assert().True(aBalance.Equal(aActual), "expected %s != actual %s", aBalance, aActual) + + bActual := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenB").Amount + s.Assert().True(bBalance.Equal(bActual), "expected %s != actual %s", bBalance, bActual) +} + +func (s *MsgServerTestSuite) assertAccountBalances( + account sdk.AccAddress, + aBalance int64, + bBalance int64, +) { + s.assertAccountBalancesInt(account, sdk.NewInt(aBalance), sdk.NewInt(bBalance)) +} + +func (s *MsgServerTestSuite) assertAccountBalanceWithDenom( + account sdk.AccAddress, + denom string, + expBalance int64, +) { + actualBalance := s.app.BankKeeper.GetBalance(s.ctx, account, denom).Amount + expBalanceInt := sdk.NewInt(expBalance) + s.Assert(). + True(expBalanceInt.Equal(actualBalance), "expected %s != actual %s", expBalance, actualBalance) +} + +func (s *MsgServerTestSuite) assertAliceBalances(a, b int64) { + s.assertAccountBalances(s.alice, a, b) +} + +func (s *MsgServerTestSuite) assertAliceBalancesInt(a, b sdk.Int) { + s.assertAccountBalancesInt(s.alice, a, b) +} + +func (s *MsgServerTestSuite) assertBobBalances(a, b int64) { + s.assertAccountBalances(s.bob, a, b) +} + +func (s *MsgServerTestSuite) assertBobBalancesInt(a, b sdk.Int) { + s.assertAccountBalancesInt(s.bob, a, b) +} + +func (s *MsgServerTestSuite) assertCarolBalances(a, b int64) { + s.assertAccountBalances(s.carol, a, b) +} + +func (s *MsgServerTestSuite) assertCarolBalancesInt(a, b sdk.Int) { + s.assertAccountBalancesInt(s.carol, a, b) +} + +func (s *MsgServerTestSuite) assertDanBalances(a, b int64) { + s.assertAccountBalances(s.dan, a, b) +} + +func (s *MsgServerTestSuite) assertDanBalancesInt(a, b sdk.Int) { + s.assertAccountBalancesInt(s.dan, a, b) +} + +func (s *MsgServerTestSuite) assertDexBalances(a, b int64) { + s.assertAccountBalances(s.app.AccountKeeper.GetModuleAddress("dex"), a, b) +} + +func (s *MsgServerTestSuite) assertDexBalanceWithDenom(denom string, expectedAmount int64) { + s.assertAccountBalanceWithDenom( + s.app.AccountKeeper.GetModuleAddress("dex"), + denom, + expectedAmount, + ) +} + +func (s *MsgServerTestSuite) assertDexBalancesInt(a, b sdk.Int) { + s.assertAccountBalancesInt(s.app.AccountKeeper.GetModuleAddress("dex"), a, b) +} + +func (s *MsgServerTestSuite) traceBalances() { + aliceA := s.app.BankKeeper.GetBalance(s.ctx, s.alice, "TokenA") + aliceB := s.app.BankKeeper.GetBalance(s.ctx, s.alice, "TokenB") + bobA := s.app.BankKeeper.GetBalance(s.ctx, s.bob, "TokenA") + bobB := s.app.BankKeeper.GetBalance(s.ctx, s.bob, "TokenB") + carolA := s.app.BankKeeper.GetBalance(s.ctx, s.carol, "TokenA") + carolB := s.app.BankKeeper.GetBalance(s.ctx, s.carol, "TokenB") + danA := s.app.BankKeeper.GetBalance(s.ctx, s.dan, "TokenA") + danB := s.app.BankKeeper.GetBalance(s.ctx, s.dan, "TokenB") + s.T().Logf( + "Alice: %+v %+v\nBob: %+v %+v\nCarol: %+v %+v\nDan: %+v %+v", + aliceA, aliceB, + bobA, bobB, + carolA, carolB, + danA, danB, + ) +} + +/// Place limit order + +func (s *MsgServerTestSuite) aliceLimitSells( + selling string, + tick, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) string { + return s.limitSellsSuccess(s.alice, selling, tick, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) bobLimitSells( + selling string, + tick, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) string { + return s.limitSellsSuccess(s.bob, selling, tick, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) carolLimitSells( + selling string, + tick, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) string { + return s.limitSellsSuccess(s.carol, selling, tick, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) danLimitSells( + selling string, + tick, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) string { + return s.limitSellsSuccess(s.dan, selling, tick, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) limitSellsSuccess( + account sdk.AccAddress, + tokenIn string, + tick, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) string { + trancheKey, err := s.limitSells(account, tokenIn, tick, amountIn, orderTypeOpt...) + s.Assert().Nil(err) + return trancheKey +} + +func (s *MsgServerTestSuite) aliceLimitSellsGoodTil( + selling string, + tick, amountIn int, + goodTil time.Time, +) string { + return s.limitSellsGoodTil(s.alice, selling, tick, amountIn, goodTil) +} + +func (s *MsgServerTestSuite) bobLimitSellsGoodTil( + selling string, + tick, amountIn int, + goodTil time.Time, +) string { + return s.limitSellsGoodTil(s.bob, selling, tick, amountIn, goodTil) +} + +func (s *MsgServerTestSuite) carolLimitSellsGoodTil( + selling string, + tick, amountIn int, + goodTil time.Time, +) string { + return s.limitSellsGoodTil(s.carol, selling, tick, amountIn, goodTil) +} + +func (s *MsgServerTestSuite) danLimitSellsGoodTil( + selling string, + tick, amountIn int, + goodTil time.Time, +) string { + return s.limitSellsGoodTil(s.dan, selling, tick, amountIn, goodTil) +} + +func (s *MsgServerTestSuite) assertAliceLimitSellFails( + err error, + selling string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) { + s.assertLimitSellFails(s.alice, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) assertBobLimitSellFails( + err error, + selling string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) { + s.assertLimitSellFails(s.bob, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) assertCarolLimitSellFails( + err error, + selling string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) { + s.assertLimitSellFails(s.carol, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) assertDanLimitSellFails( + err error, + selling string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) { + s.assertLimitSellFails(s.dan, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) +} + +func (s *MsgServerTestSuite) assertLimitSellFails( + account sdk.AccAddress, + expectedErr error, + tokenIn string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) { + _, err := s.limitSells(account, tokenIn, tickIndexNormalized, amountIn, orderTypeOpt...) + s.Assert().ErrorIs(err, expectedErr) +} + +func (s *MsgServerTestSuite) aliceLimitSellsWithMaxOut( + selling string, + tick, amountIn, maxAmountOut int, +) string { + return s.limitSellsWithMaxOut(s.alice, selling, tick, amountIn, maxAmountOut) +} + +func (s *MsgServerTestSuite) bobLimitSellsWithMaxOut( + selling string, + tick, amountIn, maxAmountOut int, +) string { + return s.limitSellsWithMaxOut(s.bob, selling, tick, amountIn, maxAmountOut) +} + +func (s *MsgServerTestSuite) carolLimitSellsWithMaxOut( + selling string, + tick, amountIn, maxAmountOut int, +) string { + return s.limitSellsWithMaxOut(s.carol, selling, tick, amountIn, maxAmountOut) +} + +func (s *MsgServerTestSuite) danLimitSellsWithMaxOut( + selling string, + tick, amountIn, maxAmountOut int, +) string { + return s.limitSellsWithMaxOut(s.dan, selling, tick, amountIn, maxAmountOut) +} + +func (s *MsgServerTestSuite) limitSellsWithMaxOut( + account sdk.AccAddress, + tokenIn string, + tick, amountIn int, + maxAmoutOut int, +) string { + tokenIn, tokenOut := GetInOutTokens(tokenIn, "TokenA", "TokenB") + maxAmountOutInt := sdk.NewInt(int64(maxAmoutOut)) + + msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + Creator: account.String(), + Receiver: account.String(), + TokenIn: tokenIn, + TokenOut: tokenOut, + TickIndexInToOut: int64(tick), + AmountIn: sdk.NewInt(int64(amountIn)), + OrderType: types.LimitOrderType_FILL_OR_KILL, + MaxAmountOut: &maxAmountOutInt, + }) + + s.Assert().NoError(err) + + return msg.TrancheKey +} + +func (s *MsgServerTestSuite) limitSells( + account sdk.AccAddress, + tokenIn string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) (string, error) { + var orderType types.LimitOrderType + if len(orderTypeOpt) == 0 { + orderType = types.LimitOrderType_GOOD_TIL_CANCELLED + } else { + orderType = orderTypeOpt[0] + } + + tradePairID := types.NewTradePairIDFromTaker(defaultPairID, tokenIn) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(int64(tickIndexNormalized)) + msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + Creator: account.String(), + Receiver: account.String(), + TokenIn: tradePairID.TakerDenom, + TokenOut: tradePairID.MakerDenom, + TickIndexInToOut: tickIndexTakerToMaker, + AmountIn: sdk.NewInt(int64(amountIn)), + OrderType: orderType, + }) + + return msg.TrancheKey, err +} + +func (s *MsgServerTestSuite) limitSellsGoodTil( + account sdk.AccAddress, + tokenIn string, + tick, amountIn int, + goodTil time.Time, +) string { + tradePairID := types.NewTradePairIDFromTaker(defaultPairID, tokenIn) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(int64(tick)) + + msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + Creator: account.String(), + Receiver: account.String(), + TokenIn: tradePairID.TakerDenom, + TokenOut: tradePairID.MakerDenom, + TickIndexInToOut: tickIndexTakerToMaker, + AmountIn: sdk.NewInt(int64(amountIn)), + OrderType: types.LimitOrderType_GOOD_TIL_TIME, + ExpirationTime: &goodTil, + }) + + s.Assert().NoError(err) + + return msg.TrancheKey +} + +// / Deposit +type Deposit struct { + AmountA sdk.Int + AmountB sdk.Int + TickIndex int64 + Fee uint64 +} + +type DepositOptions struct { + DisableAutoswap bool +} + +type DepositWithOptions struct { + AmountA sdk.Int + AmountB sdk.Int + TickIndex int64 + Fee uint64 + Options DepositOptions +} + +func NewDeposit(amountA, amountB, tickIndex, fee int) *Deposit { + return &Deposit{ + AmountA: sdk.NewInt(int64(amountA)), + AmountB: sdk.NewInt(int64(amountB)), + TickIndex: int64(tickIndex), + Fee: uint64(fee), + } +} + +func NewDepositWithOptions( + amountA, amountB, tickIndex, fee int, + options DepositOptions, +) *DepositWithOptions { + return &DepositWithOptions{ + AmountA: sdk.NewInt(int64(amountA)), + AmountB: sdk.NewInt(int64(amountB)), + TickIndex: int64(tickIndex), + Fee: uint64(fee), + Options: options, + } +} + +func (s *MsgServerTestSuite) aliceDeposits(deposits ...*Deposit) { + s.deposits(s.alice, deposits) +} + +func (s *MsgServerTestSuite) aliceDepositsWithOptions(deposits ...*DepositWithOptions) { + s.depositsWithOptions(s.alice, deposits...) +} + +func (s *MsgServerTestSuite) bobDeposits(deposits ...*Deposit) { + s.deposits(s.bob, deposits) +} + +func (s *MsgServerTestSuite) bobDepositsWithOptions(deposits ...*DepositWithOptions) { + s.depositsWithOptions(s.bob, deposits...) +} + +func (s *MsgServerTestSuite) carolDeposits(deposits ...*Deposit) { + s.deposits(s.carol, deposits) +} + +func (s *MsgServerTestSuite) danDeposits(deposits ...*Deposit) { + s.deposits(s.dan, deposits) +} + +func (s *MsgServerTestSuite) deposits( + account sdk.AccAddress, + deposits []*Deposit, + pairID ...types.PairID, +) { + amountsA := make([]sdk.Int, len(deposits)) + amountsB := make([]sdk.Int, len(deposits)) + tickIndexes := make([]int64, len(deposits)) + fees := make([]uint64, len(deposits)) + options := make([]*types.DepositOptions, len(deposits)) + for i, e := range deposits { + amountsA[i] = e.AmountA + amountsB[i] = e.AmountB + tickIndexes[i] = e.TickIndex + fees[i] = e.Fee + options[i] = &types.DepositOptions{DisableAutoswap: false} + } + + var tokenA, tokenB string + switch { + case len(pairID) == 0: + tokenA = "TokenA" + tokenB = "TokenB" + case len(pairID) == 1: + tokenA = pairID[0].Token0 + tokenB = pairID[0].Token1 + case len(pairID) > 1: + s.Assert().Fail("Only 1 pairID can be provided") + } + + _, err := s.msgServer.Deposit(s.goCtx, &types.MsgDeposit{ + Creator: account.String(), + Receiver: account.String(), + TokenA: tokenA, + TokenB: tokenB, + AmountsA: amountsA, + AmountsB: amountsB, + TickIndexesAToB: tickIndexes, + Fees: fees, + Options: options, + }) + s.Assert().Nil(err) +} + +func (s *MsgServerTestSuite) depositsWithOptions( + account sdk.AccAddress, + deposits ...*DepositWithOptions, +) { + amountsA := make([]sdk.Int, len(deposits)) + amountsB := make([]sdk.Int, len(deposits)) + tickIndexes := make([]int64, len(deposits)) + fees := make([]uint64, len(deposits)) + options := make([]*types.DepositOptions, len(deposits)) + for i, e := range deposits { + amountsA[i] = e.AmountA + amountsB[i] = e.AmountB + tickIndexes[i] = e.TickIndex + fees[i] = e.Fee + options[i] = &types.DepositOptions{ + DisableAutoswap: e.Options.DisableAutoswap, + } + } + + _, err := s.msgServer.Deposit(s.goCtx, &types.MsgDeposit{ + Creator: account.String(), + Receiver: account.String(), + TokenA: "TokenA", + TokenB: "TokenB", + AmountsA: amountsA, + AmountsB: amountsB, + TickIndexesAToB: tickIndexes, + Fees: fees, + Options: options, + }) + s.Assert().Nil(err) +} + +func (s *MsgServerTestSuite) getLiquidityAtTick(tickIndex int64, fee uint64) (sdk.Int, sdk.Int) { + pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, defaultPairID, tickIndex, fee) + s.Assert().NoError(err) + + liquidityA := pool.LowerTick0.ReservesMakerDenom + liquidityB := pool.UpperTick1.ReservesMakerDenom + + return liquidityA, liquidityB +} + +func (s *MsgServerTestSuite) getLiquidityAtTickWithDenom( + pairID *types.PairID, + tickIndex int64, + fee uint64, +) (sdk.Int, sdk.Int) { + pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, pairID, tickIndex, fee) + s.Assert().NoError(err) + + liquidityA := pool.LowerTick0.ReservesMakerDenom + liquidityB := pool.UpperTick1.ReservesMakerDenom + + return liquidityA, liquidityB +} + +func (s *MsgServerTestSuite) assertAliceDepositFails(err error, deposits ...*Deposit) { + s.assertDepositFails(s.alice, err, deposits...) +} + +func (s *MsgServerTestSuite) assertBobDepositFails(err error, deposits ...*Deposit) { + s.assertDepositFails(s.bob, err, deposits...) +} + +func (s *MsgServerTestSuite) assertCarolDepositFails(err error, deposits ...*Deposit) { + s.assertDepositFails(s.carol, err, deposits...) +} + +func (s *MsgServerTestSuite) assertDanDepositFails(err error, deposits ...*Deposit) { + s.assertDepositFails(s.dan, err, deposits...) +} + +func (s *MsgServerTestSuite) assertDepositFails( + account sdk.AccAddress, + expectedErr error, + deposits ...*Deposit, +) { + amountsA := make([]sdk.Int, len(deposits)) + amountsB := make([]sdk.Int, len(deposits)) + tickIndexes := make([]int64, len(deposits)) + fees := make([]uint64, len(deposits)) + options := make([]*types.DepositOptions, len(deposits)) + for i, e := range deposits { + amountsA[i] = e.AmountA + amountsB[i] = e.AmountB + tickIndexes[i] = e.TickIndex + fees[i] = e.Fee + options[i] = &types.DepositOptions{DisableAutoswap: true} + } + + _, err := s.msgServer.Deposit(s.goCtx, &types.MsgDeposit{ + Creator: account.String(), + Receiver: account.String(), + TokenA: "TokenA", + TokenB: "TokenB", + AmountsA: amountsA, + AmountsB: amountsB, + TickIndexesAToB: tickIndexes, + Fees: fees, + Options: options, + }) + s.Assert().NotNil(err) + s.Assert().ErrorIs(err, expectedErr) +} + +func (s *MsgServerTestSuite) assertDepositReponse( + depositResponse, expectedDepositResponse DepositReponse, +) { + for i := range expectedDepositResponse.amountsA { + s.Assert().Equal( + depositResponse.amountsA[i], + expectedDepositResponse.amountsA[i], + "Assertion failed for response.amountsA[%d]", i, + ) + s.Assert().Equal( + depositResponse.amountsB[i], + expectedDepositResponse.amountsB[i], + "Assertion failed for response.amountsB[%d]", i, + ) + } +} + +type DepositReponse struct { + amountsA []sdk.Int + amountsB []sdk.Int +} + +// Withdraw +type Withdrawal struct { + TickIndex int64 + Fee uint64 + Shares sdk.Int +} + +func NewWithdrawalInt(shares sdk.Int, tick int64, fee uint64) *Withdrawal { + return &Withdrawal{ + Shares: shares, + Fee: fee, + TickIndex: tick, + } +} + +func NewWithdrawal(shares, tick int64, fee uint64) *Withdrawal { + return NewWithdrawalInt(sdk.NewInt(shares), tick, fee) +} + +func (s *MsgServerTestSuite) aliceWithdraws(withdrawals ...*Withdrawal) { + s.withdraws(s.alice, withdrawals...) +} + +func (s *MsgServerTestSuite) bobWithdraws(withdrawals ...*Withdrawal) { + s.withdraws(s.bob, withdrawals...) +} + +func (s *MsgServerTestSuite) carolWithdraws(withdrawals ...*Withdrawal) { + s.withdraws(s.carol, withdrawals...) +} + +func (s *MsgServerTestSuite) danWithdraws(withdrawals ...*Withdrawal) { + s.withdraws(s.dan, withdrawals...) +} + +func (s *MsgServerTestSuite) withdraws(account sdk.AccAddress, withdrawals ...*Withdrawal) { + tickIndexes := make([]int64, len(withdrawals)) + fee := make([]uint64, len(withdrawals)) + sharesToRemove := make([]sdk.Int, len(withdrawals)) + for i, e := range withdrawals { + tickIndexes[i] = e.TickIndex + fee[i] = e.Fee + sharesToRemove[i] = e.Shares + } + + _, err := s.msgServer.Withdrawal(s.goCtx, &types.MsgWithdrawal{ + Creator: account.String(), + Receiver: account.String(), + TokenA: "TokenA", + TokenB: "TokenB", + SharesToRemove: sharesToRemove, + TickIndexesAToB: tickIndexes, + Fees: fee, + }) + s.Assert().Nil(err) +} + +func (s *MsgServerTestSuite) aliceWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { + s.withdrawFails(s.alice, expectedErr, withdrawals...) +} + +func (s *MsgServerTestSuite) bobWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { + s.withdrawFails(s.bob, expectedErr, withdrawals...) +} + +func (s *MsgServerTestSuite) carolWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { + s.withdrawFails(s.carol, expectedErr, withdrawals...) +} + +func (s *MsgServerTestSuite) danWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { + s.withdrawFails(s.dan, expectedErr, withdrawals...) +} + +func (s *MsgServerTestSuite) withdrawFails( + account sdk.AccAddress, + expectedErr error, + withdrawals ...*Withdrawal, +) { + tickIndexes := make([]int64, len(withdrawals)) + fee := make([]uint64, len(withdrawals)) + sharesToRemove := make([]sdk.Int, len(withdrawals)) + for i, e := range withdrawals { + tickIndexes[i] = e.TickIndex + fee[i] = e.Fee + sharesToRemove[i] = e.Shares + } + + _, err := s.msgServer.Withdrawal(s.goCtx, &types.MsgWithdrawal{ + Creator: account.String(), + Receiver: account.String(), + TokenA: "TokenA", + TokenB: "TokenB", + SharesToRemove: sharesToRemove, + TickIndexesAToB: tickIndexes, + Fees: fee, + }) + s.Assert().NotNil(err) + s.Assert().ErrorIs(err, expectedErr) +} + +/// Cancel limit order + +func (s *MsgServerTestSuite) aliceCancelsLimitSell(trancheKey string) { + s.cancelsLimitSell(s.alice, trancheKey) +} + +func (s *MsgServerTestSuite) bobCancelsLimitSell(trancheKey string) { + s.cancelsLimitSell(s.bob, trancheKey) +} + +func (s *MsgServerTestSuite) carolCancelsLimitSell(trancheKey string) { + s.cancelsLimitSell(s.carol, trancheKey) +} + +func (s *MsgServerTestSuite) danCancelsLimitSell(trancheKey string) { + s.cancelsLimitSell(s.dan, trancheKey) +} + +func (s *MsgServerTestSuite) cancelsLimitSell(account sdk.AccAddress, trancheKey string) { + _, err := s.msgServer.CancelLimitOrder(s.goCtx, &types.MsgCancelLimitOrder{ + Creator: account.String(), + TrancheKey: trancheKey, + }) + s.Assert().Nil(err) +} + +func (s *MsgServerTestSuite) aliceCancelsLimitSellFails(trancheKey string, expectedErr error) { + s.cancelsLimitSellFails(s.alice, trancheKey, expectedErr) +} + +func (s *MsgServerTestSuite) bobCancelsLimitSellFails(trancheKey string, expectedErr error) { + s.cancelsLimitSellFails(s.bob, trancheKey, expectedErr) +} + +func (s *MsgServerTestSuite) carolCancelsLimitSellFails(trancheKey string, expectedErr error) { + s.cancelsLimitSellFails(s.carol, trancheKey, expectedErr) +} + +func (s *MsgServerTestSuite) danCancelsLimitSellFails(trancheKey string, expectedErr error) { + s.cancelsLimitSellFails(s.dan, trancheKey, expectedErr) +} + +func (s *MsgServerTestSuite) cancelsLimitSellFails( + account sdk.AccAddress, + trancheKey string, + expectedErr error, +) { + _, err := s.msgServer.CancelLimitOrder(s.goCtx, &types.MsgCancelLimitOrder{ + Creator: account.String(), + TrancheKey: trancheKey, + }) + s.Assert().ErrorIs(err, expectedErr) +} + +/// MultiHopSwap + +func (s *MsgServerTestSuite) aliceMultiHopSwaps( + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwaps(s.alice, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) bobMultiHopSwaps( + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwaps(s.bob, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) carolMultiHopSwaps( + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwaps(s.carol, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) danMultiHopSwaps( + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwaps(s.dan, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) multiHopSwaps( + account sdk.AccAddress, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + msg := types.NewMsgMultiHopSwap( + account.String(), + account.String(), + routes, + sdk.NewInt(int64(amountIn)), + exitLimitPrice, + pickBest, + ) + _, err := s.msgServer.MultiHopSwap(s.goCtx, msg) + s.Assert().Nil(err) +} + +func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwap( + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) (coinOut sdk.Coin) { + multiHopRoutes := make([]*types.MultiHopRoute, len(routes)) + for i, hops := range routes { + multiHopRoutes[i] = &types.MultiHopRoute{Hops: hops} + } + msg := &types.QueryEstimateMultiHopSwapRequest{ + Creator: s.alice.String(), + Receiver: s.alice.String(), + Routes: multiHopRoutes, + AmountIn: sdk.NewInt(int64(amountIn)), + ExitLimitPrice: exitLimitPrice, + PickBestRoute: pickBest, + } + res, err := s.queryClient.EstimateMultiHopSwap(s.goCtx, msg) + s.Require().Nil(err) + return res.CoinOut +} + +func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwapFails( + expectedErr error, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + multiHopRoutes := make([]*types.MultiHopRoute, len(routes)) + for i, hops := range routes { + multiHopRoutes[i] = &types.MultiHopRoute{Hops: hops} + } + msg := &types.QueryEstimateMultiHopSwapRequest{ + Creator: s.alice.String(), + Receiver: s.alice.String(), + Routes: multiHopRoutes, + AmountIn: sdk.NewInt(int64(amountIn)), + ExitLimitPrice: exitLimitPrice, + PickBestRoute: pickBest, + } + _, err := s.queryClient.EstimateMultiHopSwap(s.goCtx, msg) + s.Assert().ErrorIs(err, expectedErr) +} + +func (s *MsgServerTestSuite) aliceMultiHopSwapFails( + err error, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwapFails(s.alice, err, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) bobMultiHopSwapFails( + err error, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwapFails(s.bob, err, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) carolMultiHopSwapFails( + err error, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwapFails(s.carol, err, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) danMultiHopSwapFails( + err error, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + s.multiHopSwapFails(s.dan, err, routes, amountIn, exitLimitPrice, pickBest) +} + +func (s *MsgServerTestSuite) multiHopSwapFails( + account sdk.AccAddress, + expectedErr error, + routes [][]string, + amountIn int, + exitLimitPrice math_utils.PrecDec, + pickBest bool, +) { + msg := types.NewMsgMultiHopSwap( + account.String(), + account.String(), + routes, + sdk.NewInt(int64(amountIn)), + exitLimitPrice, + pickBest, + ) + _, err := s.msgServer.MultiHopSwap(s.goCtx, msg) + s.Assert().ErrorIs(err, expectedErr) +} + +/// Withdraw filled limit order + +func (s *MsgServerTestSuite) aliceWithdrawsLimitSell(trancheKey string) { + s.withdrawsLimitSell(s.alice, trancheKey) +} + +func (s *MsgServerTestSuite) bobWithdrawsLimitSell(trancheKey string) { + s.withdrawsLimitSell(s.bob, trancheKey) +} + +func (s *MsgServerTestSuite) carolWithdrawsLimitSell(trancheKey string) { + s.withdrawsLimitSell(s.carol, trancheKey) +} + +func (s *MsgServerTestSuite) danWithdrawsLimitSell(trancheKey string) { + s.withdrawsLimitSell(s.dan, trancheKey) +} + +func (s *MsgServerTestSuite) withdrawsLimitSell(account sdk.AccAddress, trancheKey string) { + _, err := s.msgServer.WithdrawFilledLimitOrder(s.goCtx, &types.MsgWithdrawFilledLimitOrder{ + Creator: account.String(), + TrancheKey: trancheKey, + }) + s.Assert().Nil(err) +} + +func (s *MsgServerTestSuite) aliceWithdrawLimitSellFails(expectedErr error, trancheKey string) { + s.withdrawLimitSellFails(s.alice, expectedErr, trancheKey) +} + +func (s *MsgServerTestSuite) bobWithdrawLimitSellFails(expectedErr error, trancheKey string) { + s.withdrawLimitSellFails(s.bob, expectedErr, trancheKey) +} + +func (s *MsgServerTestSuite) carolWithdrawLimitSellFails(expectedErr error, trancheKey string) { + s.withdrawLimitSellFails(s.carol, expectedErr, trancheKey) +} + +func (s *MsgServerTestSuite) danWithdrawLimitSellFails(expectedErr error, trancheKey string) { + s.withdrawLimitSellFails(s.dan, expectedErr, trancheKey) +} + +func (s *MsgServerTestSuite) withdrawLimitSellFails( + account sdk.AccAddress, + expectedErr error, + trancheKey string, +) { + _, err := s.msgServer.WithdrawFilledLimitOrder(s.goCtx, &types.MsgWithdrawFilledLimitOrder{ + Creator: account.String(), + TrancheKey: trancheKey, + }) + s.Assert().ErrorIs(err, expectedErr) +} + +// Shares +func (s *MsgServerTestSuite) getPoolShares( + token0 string, + token1 string, + tick int64, + fee uint64, +) (shares sdk.Int) { + poolID, found := s.app.DexKeeper.GetPoolIDByParams(s.ctx, &types.PairID{Token0: token0, Token1: token1}, tick, fee) + if !found { + return sdk.ZeroInt() + } + poolDenom := types.NewPoolDenom(poolID) + return s.app.BankKeeper.GetSupply(s.ctx, poolDenom).Amount +} + +func (s *MsgServerTestSuite) assertPoolShares( + tick int64, + fee uint64, + sharesExpected uint64, +) { + sharesExpectedInt := sdk.NewIntFromUint64(sharesExpected) + sharesOwned := s.getPoolShares("TokenA", "TokenB", tick, fee) + s.Assert().Equal(sharesExpectedInt, sharesOwned) +} + +func (s *MsgServerTestSuite) getAccountShares( + account sdk.AccAddress, + token0 string, + token1 string, + tick int64, + fee uint64, +) (shares sdk.Int) { + id, found := s.app.DexKeeper.GetPoolIDByParams(s.ctx, types.MustNewPairID(token0, token1), tick, fee) + if !found { + return sdk.ZeroInt() + } + + poolDenom := types.NewPoolDenom(id) + return s.app.BankKeeper.GetBalance(s.ctx, account, poolDenom).Amount +} + +func (s *MsgServerTestSuite) assertAccountShares( + account sdk.AccAddress, + tick int64, + fee uint64, + sharesExpected uint64, +) { + sharesExpectedInt := sdk.NewIntFromUint64(sharesExpected) + sharesOwned := s.getAccountShares(account, "TokenA", "TokenB", tick, fee) + s.Assert(). + Equal(sharesExpectedInt, sharesOwned, "expected %s != actual %s", sharesExpected, sharesOwned) +} + +func (s *MsgServerTestSuite) assertAliceShares(tick int64, fee, sharesExpected uint64) { + s.assertAccountShares(s.alice, tick, fee, sharesExpected) +} + +func (s *MsgServerTestSuite) assertBobShares(tick int64, fee, sharesExpected uint64) { + s.assertAccountShares(s.bob, tick, fee, sharesExpected) +} + +func (s *MsgServerTestSuite) assertCarolShares(tick int64, fee, sharesExpected uint64) { + s.assertAccountShares(s.carol, tick, fee, sharesExpected) +} + +func (s *MsgServerTestSuite) assertDanShares(tick int64, fee, sharesExpected uint64) { + s.assertAccountShares(s.dan, tick, fee, sharesExpected) +} + +// Ticks +func (s *MsgServerTestSuite) assertCurrentTicks( + expected1To0 int64, + expected0To1 int64, +) { + s.assertCurr0To1(expected0To1) + s.assertCurr1To0(expected1To0) +} + +func (s *MsgServerTestSuite) assertCurr0To1(curr0To1Expected int64) { + curr0To1Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( + s.ctx, + defaultTradePairID0To1, + ) + if curr0To1Expected == math.MaxInt64 { + s.Assert().False(found) + } else { + s.Assert().Equal(curr0To1Expected, curr0To1Actual) + } +} + +func (s *MsgServerTestSuite) assertCurr1To0(curr1To0Expected int64) { + curr1to0Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( + s.ctx, + defaultTradePairID1To0, + ) + if curr1To0Expected == math.MinInt64 { + s.Assert().False(found) + } else { + s.Assert().Equal(curr1To0Expected, curr1to0Actual) + } +} + +// Pool liquidity (i.e. deposited rather than LO) +func (s *MsgServerTestSuite) assertLiquidityAtTick( + amountA, amountB sdk.Int, + tickIndex int64, + fee uint64, +) { + liquidityA, liquidityB := s.getLiquidityAtTick(tickIndex, fee) + s.Assert(). + True(amountA.Equal(liquidityA), "liquidity A: actual %s, expected %s", liquidityA, amountA) + s.Assert(). + True(amountB.Equal(liquidityB), "liquidity B: actual %s, expected %s", liquidityB, amountB) +} + +func (s *MsgServerTestSuite) assertLiquidityAtTickWithDenom( + pairID *types.PairID, + expected0, expected1 sdk.Int, + tickIndex int64, + fee uint64, +) { + liquidity0, liquidity1 := s.getLiquidityAtTickWithDenom(pairID, tickIndex, fee) + s.Assert(). + True(expected0.Equal(liquidity0), "liquidity 0: actual %s, expected %s", liquidity0, expected0) + s.Assert(). + True(expected1.Equal(liquidity1), "liquidity 1: actual %s, expected %s", liquidity1, expected1) +} + +func (s *MsgServerTestSuite) assertPoolLiquidity( + amountA, amountB int, + tickIndex int64, + fee uint64, +) { + s.assertLiquidityAtTick(sdk.NewInt(int64(amountA)), sdk.NewInt(int64(amountB)), tickIndex, fee) +} + +func (s *MsgServerTestSuite) assertNoLiquidityAtTick(tickIndex int64, fee uint64) { + s.assertLiquidityAtTick(sdk.ZeroInt(), sdk.ZeroInt(), tickIndex, fee) +} + +// Filled limit liquidity +func (s *MsgServerTestSuite) assertAliceLimitFilledAtTickAtIndex( + selling string, + amount int, + tickIndex int64, + trancheKey string, +) { + s.assertLimitFilledAtTickAtIndex(s.alice, selling, amount, tickIndex, trancheKey) +} + +func (s *MsgServerTestSuite) assertBobLimitFilledAtTickAtIndex( + selling string, + amount int, + tickIndex int64, + trancheKey string, +) { + s.assertLimitFilledAtTickAtIndex(s.bob, selling, amount, tickIndex, trancheKey) +} + +func (s *MsgServerTestSuite) assertCarolLimitFilledAtTickAtIndex( + selling string, + amount int, + tickIndex int64, + trancheKey string, +) { + s.assertLimitFilledAtTickAtIndex(s.carol, selling, amount, tickIndex, trancheKey) +} + +func (s *MsgServerTestSuite) assertDanLimitFilledAtTickAtIndex( + selling string, + amount int, + tickIndex int64, + trancheKey string, +) { + s.assertLimitFilledAtTickAtIndex(s.dan, selling, amount, tickIndex, trancheKey) +} + +func (s *MsgServerTestSuite) assertLimitFilledAtTickAtIndex( + account sdk.AccAddress, + selling string, + amount int, + tickIndex int64, + trancheKey string, +) { + userShares, totalShares := s.getLimitUserSharesAtTick( + account, + selling, + tickIndex, + ), s.getLimitTotalSharesAtTick( + selling, + tickIndex, + ) + userRatio := math_utils.NewPrecDecFromInt(userShares).QuoInt(totalShares) + filled := s.getLimitFilledLiquidityAtTickAtIndex(selling, tickIndex, trancheKey) + amt := sdk.NewInt(int64(amount)) + userFilled := userRatio.MulInt(filled).RoundInt() + s.Assert().True(amt.Equal(userFilled)) +} + +// Limit liquidity +func (s *MsgServerTestSuite) assertAliceLimitLiquidityAtTick( + selling string, + amount int, + tickIndex int64, +) { + s.assertAccountLimitLiquidityAtTick(s.alice, selling, amount, tickIndex) +} + +func (s *MsgServerTestSuite) assertBobLimitLiquidityAtTick( + selling string, + amount int, + tickIndex int64, +) { + s.assertAccountLimitLiquidityAtTick(s.bob, selling, amount, tickIndex) +} + +func (s *MsgServerTestSuite) assertCarolLimitLiquidityAtTick( + selling string, + amount int, + tickIndex int64, +) { + s.assertAccountLimitLiquidityAtTick(s.carol, selling, amount, tickIndex) +} + +func (s *MsgServerTestSuite) assertDanLimitLiquidityAtTick( + selling string, + amount int, + tickIndex int64, +) { + s.assertAccountLimitLiquidityAtTick(s.dan, selling, amount, tickIndex) +} + +func (s *MsgServerTestSuite) assertAccountLimitLiquidityAtTick( + account sdk.AccAddress, + selling string, + amount int, + tickIndexNormalized int64, +) { + userShares := s.getLimitUserSharesAtTick(account, selling, tickIndexNormalized) + totalShares := s.getLimitTotalSharesAtTick(selling, tickIndexNormalized) + userRatio := math_utils.NewPrecDecFromInt(userShares).QuoInt(totalShares) + userLiquidity := userRatio.MulInt64(int64(amount)).TruncateInt() + + s.assertLimitLiquidityAtTick(selling, tickIndexNormalized, userLiquidity.Int64()) +} + +func (s *MsgServerTestSuite) assertLimitLiquidityAtTick( + selling string, + tickIndexNormalized, amount int64, +) { + s.assertLimitLiquidityAtTickInt(selling, tickIndexNormalized, sdk.NewInt(amount)) +} + +func (s *MsgServerTestSuite) assertLimitLiquidityAtTickInt( + selling string, + tickIndexNormalized int64, + amount sdk.Int, +) { + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) + tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( + s.ctx, + tradePairID, + tickIndexTakerToMaker, + ) + liquidity := sdk.ZeroInt() + for _, t := range tranches { + if !t.IsExpired(s.ctx) { + liquidity = liquidity.Add(t.ReservesMakerDenom) + } + } + + s.Assert(). + True(amount.Equal(liquidity), "Incorrect liquidity: expected %s, have %s", amount.String(), liquidity.String()) +} + +func (s *MsgServerTestSuite) assertFillAndPlaceTrancheKeys( + selling string, + tickIndexNormalized int64, + expectedFill, expectedPlace string, +) { + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) + placeTranche := s.app.DexKeeper.GetPlaceTranche(s.ctx, tradePairID, tickIndexTakerToMaker) + fillTranche, foundFill := s.app.DexKeeper.GetFillTranche( + s.ctx, + tradePairID, + tickIndexTakerToMaker, + ) + placeKey, fillKey := "", "" + if placeTranche != nil { + placeKey = placeTranche.Key.TrancheKey + } + + if foundFill { + fillKey = fillTranche.Key.TrancheKey + } + s.Assert().Equal(expectedFill, fillKey) + s.Assert().Equal(expectedPlace, placeKey) +} + +// Limit order map helpers +func (s *MsgServerTestSuite) getLimitUserSharesAtTick( + account sdk.AccAddress, + selling string, + tickIndexNormalized int64, +) sdk.Int { + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) + tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( + s.ctx, + tradePairID, + tickIndexTakerToMaker, + ) + fillTranche := tranches[0] + // get user shares and total shares + userShares := s.getLimitUserSharesAtTickAtIndex(account, fillTranche.Key.TrancheKey) + if len(tranches) >= 2 { + userShares = userShares.Add( + s.getLimitUserSharesAtTickAtIndex(account, tranches[1].Key.TrancheKey), + ) + } + + return userShares +} + +func (s *MsgServerTestSuite) getLimitUserSharesAtTickAtIndex( + account sdk.AccAddress, + trancheKey string, +) sdk.Int { + userShares, found := s.app.DexKeeper.GetLimitOrderTrancheUser( + s.ctx, + account.String(), + trancheKey, + ) + s.Assert().True(found, "Failed to get limit order user shares for index %s", trancheKey) + return userShares.SharesOwned +} + +func (s *MsgServerTestSuite) getLimitTotalSharesAtTick( + selling string, + tickIndexNormalized int64, +) sdk.Int { + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) + tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( + s.ctx, + tradePairID, + tickIndexTakerToMaker, + ) + // get user shares and total shares + totalShares := sdk.ZeroInt() + for _, t := range tranches { + totalShares = totalShares.Add(t.TotalMakerDenom) + } + + return totalShares +} + +func (s *MsgServerTestSuite) getLimitFilledLiquidityAtTickAtIndex( + selling string, + tickIndex int64, + trancheKey string, +) sdk.Int { + // grab fill tranche reserves and shares + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ + tradePairID, + tickIndex, + trancheKey, + }) + s.Assert().True(found, "Failed to get limit order filled reserves for index %s", trancheKey) + + return tranche.ReservesTakerDenom +} + +func (s *MsgServerTestSuite) getLimitReservesAtTickAtKey( + selling string, + tickIndex int64, + trancheKey string, +) sdk.Int { + // grab fill tranche reserves and shares + tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) + tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ + tradePairID, tickIndex, trancheKey, + }) + s.Assert().True(found, "Failed to get limit order reserves for index %s", trancheKey) + + return tranche.ReservesMakerDenom +} + +func (s *MsgServerTestSuite) assertNLimitOrderExpiration(expected int) { + exps := s.app.DexKeeper.GetAllLimitOrderExpiration(s.ctx) + s.Assert().Equal(expected, len(exps)) +} + +func (s *MsgServerTestSuite) calcAutoswapSharesMinted( + centerTick int64, + fee uint64, + residual0, residual1, balanced0, balanced1, totalShares, valuePool int64, +) sdk.Int { + residual0Int, residual1Int, balanced0Int, balanced1Int, totalSharesInt, valuePoolInt := sdk.NewInt( + residual0, + ), sdk.NewInt( + residual1, + ), sdk.NewInt( + balanced0, + ), sdk.NewInt( + balanced1, + ), sdk.NewInt( + totalShares, + ), sdk.NewInt( + valuePool, + ) + + // residualValue = 1.0001^-f * residualAmount0 + 1.0001^{i-f} * residualAmount1 + // balancedValue = balancedAmount0 + 1.0001^{i} * balancedAmount1 + // value = residualValue + balancedValue + // shares minted = value * totalShares / valuePool + + centerPrice := types.MustCalcPrice(-1 * centerTick) + leftPrice := types.MustCalcPrice(-1 * (centerTick - int64(fee))) + discountPrice := types.MustCalcPrice(-1 * int64(fee)) + + balancedValue := math_utils.NewPrecDecFromInt(balanced0Int). + Add(centerPrice.MulInt(balanced1Int)). + TruncateInt() + residualValue := discountPrice.MulInt(residual0Int). + Add(leftPrice.Mul(math_utils.NewPrecDecFromInt(residual1Int))). + TruncateInt() + valueMint := balancedValue.Add(residualValue) + + return valueMint.Mul(totalSharesInt).Quo(valuePoolInt) +} + +func (s *MsgServerTestSuite) calcSharesMinted(centerTick, amount0Int, amount1Int int64) sdk.Int { + amount0, amount1 := sdk.NewInt(amount0Int), sdk.NewInt(amount1Int) + centerPrice := types.MustCalcPrice(-1 * centerTick) + + return math_utils.NewPrecDecFromInt(amount0).Add(centerPrice.Mul(math_utils.NewPrecDecFromInt(amount1))).TruncateInt() +} + +func (s *MsgServerTestSuite) calcExpectedBalancesAfterWithdrawOnePool( + sharesMinted sdk.Int, + account sdk.AccAddress, + tickIndex int64, + fee uint64, +) (sdk.Int, sdk.Int, sdk.Int, sdk.Int) { + dexCurrentBalance0 := s.app.BankKeeper.GetBalance( + s.ctx, + s.app.AccountKeeper.GetModuleAddress("dex"), + "TokenA", + ).Amount + dexCurrentBalance1 := s.app.BankKeeper.GetBalance( + s.ctx, + s.app.AccountKeeper.GetModuleAddress("dex"), + "TokenB", + ).Amount + currentBalance0 := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenA").Amount + currentBalance1 := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenB").Amount + amountPool0, amountPool1 := s.getLiquidityAtTick(tickIndex, fee) + poolShares := s.getPoolShares("TokenA", "TokenB", tickIndex, fee) + + amountOut0 := amountPool0.Mul(sharesMinted).Quo(poolShares) + amountOut1 := amountPool1.Mul(sharesMinted).Quo(poolShares) + + expectedBalance0 := currentBalance0.Add(amountOut0) + expectedBalance1 := currentBalance1.Add(amountOut1) + dexExpectedBalance0 := dexCurrentBalance0.Sub(amountOut0) + dexExpectedBalance1 := dexCurrentBalance1.Sub(amountOut1) + + return expectedBalance0, expectedBalance1, dexExpectedBalance0, dexExpectedBalance1 +} + +func (s *MsgServerTestSuite) nextBlockWithTime(blockTime time.Time) { + newCtx := s.ctx.WithBlockTime(blockTime) + s.ctx = newCtx + s.goCtx = sdk.WrapSDKContext(newCtx) + s.app.BeginBlock(abci.RequestBeginBlock{Header: tmproto.Header{ + Height: s.app.LastBlockHeight() + 1, AppHash: s.app.LastCommitID().Hash, + Time: blockTime, + }}) +} diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go new file mode 100644 index 000000000..e26321290 --- /dev/null +++ b/x/dex/keeper/multihop_swap.go @@ -0,0 +1,167 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/types" +) + +type MultihopStep struct { + RemainingBestPrice math_utils.PrecDec + tradePairID *types.TradePairID +} + +func (k Keeper) HopsToRouteData( + ctx sdk.Context, + hops []string, + exitLimitPrice math_utils.PrecDec, +) ([]MultihopStep, error) { + nPairs := len(hops) - 1 + routeArr := make([]MultihopStep, nPairs) + priceAcc := math_utils.OnePrecDec() + for i := range routeArr { + index := len(routeArr) - 1 - i + tokenIn := hops[index] + tokenOut := hops[index+1] + tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) + if err != nil { + return routeArr, err + } + price, found := k.GetCurrPrice(ctx, tradePairID) + if !found { + return routeArr, types.ErrInsufficientLiquidity + } + priceAcc = priceAcc.Mul(price) + routeArr[index] = MultihopStep{ + tradePairID: tradePairID, + RemainingBestPrice: priceAcc, + } + } + + return routeArr, nil +} + +type StepResult struct { + Ctx *types.BranchableCache + CoinOut sdk.Coin + Err error +} + +type multihopCacheKey struct { + TokenIn string + TokenOut string + InAmount sdk.Int +} + +func newCacheKey(tokenIn, tokenOut string, inAmount sdk.Int) multihopCacheKey { + return multihopCacheKey{ + TokenIn: tokenIn, + TokenOut: tokenOut, + InAmount: inAmount, + } +} + +func (k Keeper) MultihopStep( + bctx *types.BranchableCache, + step MultihopStep, + inCoin sdk.Coin, + exitLimitPrice math_utils.PrecDec, + currentPrice math_utils.PrecDec, + remainingSteps []MultihopStep, + stepCache map[multihopCacheKey]StepResult, +) (sdk.Coin, *types.BranchableCache, error) { + cacheKey := newCacheKey(step.tradePairID.TakerDenom, step.tradePairID.MakerDenom, inCoin.Amount) + val, ok := stepCache[cacheKey] + if ok { + ctxBranchCopy := val.Ctx.Branch() + return val.CoinOut, ctxBranchCopy, val.Err + } + + // TODO: Due to rounding on swap it is possible to leak tokens at each hop. + // In these cases the user will end up with trace amounts of tokens from intermediary steps. + // To fix this we would have to pre-calculate the route such that the amount + // in will be used completely at each step + coinOut, err := k.SwapExactAmountIn(bctx.Ctx, step.tradePairID, inCoin.Amount) + ctxBranch := bctx.Branch() + stepCache[cacheKey] = StepResult{Ctx: bctx, CoinOut: coinOut, Err: err} + if err != nil { + return sdk.Coin{}, bctx, err + } + + return coinOut, ctxBranch, nil +} + +func (k Keeper) RunMultihopRoute( + ctx sdk.Context, + route types.MultiHopRoute, + initialInCoin sdk.Coin, + exitLimitPrice math_utils.PrecDec, + stepCache map[multihopCacheKey]StepResult, +) (sdk.Coin, func(), error) { + routeData, err := k.HopsToRouteData(ctx, route.Hops, exitLimitPrice) + if err != nil { + return sdk.Coin{}, nil, err + } + currentPrice := math_utils.OnePrecDec() + + var currentOutCoin sdk.Coin + inCoin := initialInCoin + bCacheCtx := types.NewBranchableCache(ctx) + + for i, step := range routeData { + // If we can't hit the best possible price we can greedily abort + priceUpperbound := currentPrice.Mul(step.RemainingBestPrice) + if exitLimitPrice.GT(priceUpperbound) { + return sdk.Coin{}, bCacheCtx.WriteCache, types.ErrExitLimitPriceHit + } + + currentOutCoin, bCacheCtx, err = k.MultihopStep( + bCacheCtx, + step, + inCoin, + exitLimitPrice, + currentPrice, + routeData[i:], + stepCache, + ) + inCoin = currentOutCoin + if err != nil { + return sdk.Coin{}, nil, sdkerrors.Wrapf( + err, + "Failed at pair: %s", + step.tradePairID.MustPairID().CanonicalString(), + ) + } + + currentPrice = math_utils.NewPrecDecFromInt(currentOutCoin.Amount). + Quo(math_utils.NewPrecDecFromInt(initialInCoin.Amount)) + } + + if exitLimitPrice.GT(currentPrice) { + return sdk.Coin{}, nil, types.ErrExitLimitPriceHit + } + + return currentOutCoin, bCacheCtx.WriteCache, nil +} + +func (k Keeper) SwapExactAmountIn(ctx sdk.Context, + tradePairID *types.TradePairID, + amountIn sdk.Int, +) (totalOut sdk.Coin, err error) { + _, swapAmountMakerDenom, orderFilled, err := k.Swap( + ctx, + tradePairID, + amountIn, + nil, + nil, + ) + if err != nil { + return sdk.Coin{}, err + } + if !orderFilled { + return sdk.Coin{}, types.ErrInsufficientLiquidity + } + + return swapAmountMakerDenom, err +} diff --git a/x/dex/keeper/pair_helper.go b/x/dex/keeper/pair_helper.go new file mode 100644 index 000000000..82ce6b6b0 --- /dev/null +++ b/x/dex/keeper/pair_helper.go @@ -0,0 +1,34 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func SortAmounts(tokenA, token0 string, amountsA, amountsB []sdk.Int) ([]sdk.Int, []sdk.Int) { + if tokenA == token0 { + return amountsA, amountsB + } + + return amountsB, amountsA +} + +func GetInOutTokens(tokenIn, tokenA, tokenB string) (_, tokenOut string) { + if tokenIn == tokenA { + return tokenA, tokenB + } + + return tokenB, tokenA +} + +func NormalizeAllTickIndexes(takerDenom, token0 string, tickIndexes []int64) []int64 { + if takerDenom != token0 { + result := make([]int64, len(tickIndexes)) + for i, idx := range tickIndexes { + result[i] = idx * -1 + } + return result + } + + // NB: does not return a different slice because no change + return tickIndexes +} diff --git a/x/dex/keeper/params.go b/x/dex/keeper/params.go new file mode 100644 index 000000000..4e37fd76f --- /dev/null +++ b/x/dex/keeper/params.go @@ -0,0 +1,17 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +// GetParams get all parameters as types.Params +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { + k.paramstore.GetParamSet(ctx, ¶ms) + return params +} + +// SetParams set the params +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { + k.paramstore.SetParamSet(ctx, ¶ms) +} diff --git a/x/dex/keeper/params_test.go b/x/dex/keeper/params_test.go new file mode 100644 index 000000000..21529526d --- /dev/null +++ b/x/dex/keeper/params_test.go @@ -0,0 +1,26 @@ +package keeper_test + +import ( + "testing" + + testkeeper "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestGetParams(t *testing.T) { + k, ctx := testkeeper.DexKeeper(t) + params := types.DefaultParams() + + k.SetParams(ctx, params) + + require.EqualValues(t, params, k.GetParams(ctx)) +} + +func TestValidateParams(t *testing.T) { + goodFees := []uint64{1, 2, 3, 4, 5, 200} + require.NoError(t, types.Params{FeeTiers: goodFees}.Validate()) + + badFees := []uint64{1, 2, 3, 3} + require.Error(t, types.Params{FeeTiers: badFees}.Validate()) +} diff --git a/x/dex/keeper/pool.go b/x/dex/keeper/pool.go new file mode 100644 index 000000000..6bc34a26e --- /dev/null +++ b/x/dex/keeper/pool.go @@ -0,0 +1,163 @@ +package keeper + +import ( + "encoding/binary" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/dex/utils" +) + +func (k Keeper) GetOrInitPool( + ctx sdk.Context, + pairID *types.PairID, + centerTickIndexNormalized int64, + fee uint64, +) (*types.Pool, error) { + pool, found := k.GetPool(ctx, pairID, centerTickIndexNormalized, fee) + if found { + return pool, nil + } + + return k.InitPool(ctx, pairID, centerTickIndexNormalized, fee) +} + +func (k Keeper) InitPool( + ctx sdk.Context, + pairID *types.PairID, + centerTickIndexNormalized int64, + fee uint64, +) (pool *types.Pool, err error) { + poolMetadata := types.PoolMetadata{PairID: pairID, Tick: centerTickIndexNormalized, Fee: fee} + + // Get current poolID + poolID := k.GetPoolCount(ctx) + poolMetadata.ID = poolID + + // Store poolMetadata + k.SetPoolMetadata(ctx, poolMetadata) + + // Create a reference so poolID can be looked up by poolMetadata + poolIDBz := sdk.Uint64ToBigEndian(poolID) + poolIDKey := types.PoolIDKey(pairID, centerTickIndexNormalized, fee) + + poolIDStore := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolIDKeyPrefix)) + poolIDStore.Set(poolIDKey, poolIDBz) + + // Update poolCount + k.SetPoolCount(ctx, poolID+1) + + return types.NewPool(pairID, centerTickIndexNormalized, fee, poolID) +} + +// GetNextPoolId get ID for the next pool to be created +func (k Keeper) GetNextPoolID(ctx sdk.Context) uint64 { + return k.GetPoolCount(ctx) +} + +func (k Keeper) GetPool( + ctx sdk.Context, + pairID *types.PairID, + centerTickIndexNormalized int64, + fee uint64, +) (*types.Pool, bool) { + feeInt64 := utils.MustSafeUint64ToInt64(fee) + + id0To1 := &types.PoolReservesKey{ + TradePairID: types.NewTradePairIDFromMaker(pairID, pairID.Token1), + TickIndexTakerToMaker: centerTickIndexNormalized + feeInt64, + Fee: fee, + } + + poolID, found := k.GetPoolIDByParams(ctx, pairID, centerTickIndexNormalized, fee) + if !found { + return nil, false + } + + upperTick, upperTickFound := k.GetPoolReserves(ctx, id0To1) + lowerTick, lowerTickFound := k.GetPoolReserves(ctx, id0To1.Counterpart()) + + if !lowerTickFound && upperTickFound { + lowerTick = types.NewPoolReservesFromCounterpart(upperTick) + } else if lowerTickFound && !upperTickFound { + upperTick = types.NewPoolReservesFromCounterpart(lowerTick) + } else if !lowerTickFound && !upperTickFound { + // Pool has already been initialized before so we can safely assume that pool creation doesn't throw an error + return types.MustNewPool(pairID, centerTickIndexNormalized, fee, poolID), true + } + + return &types.Pool{ + ID: poolID, + LowerTick0: lowerTick, + UpperTick1: upperTick, + }, true +} + +func (k Keeper) GetPoolByID(ctx sdk.Context, poolID uint64) (pool *types.Pool, found bool) { + poolMetadata, found := k.GetPoolMetadata(ctx, poolID) + if !found { + return pool, false + } + + return k.GetPool(ctx, poolMetadata.PairID, poolMetadata.Tick, poolMetadata.Fee) +} + +func (k Keeper) GetPoolIDByParams( + ctx sdk.Context, + pairID *types.PairID, + centerTickIndexNormalized int64, + fee uint64, +) (id uint64, found bool) { + poolIDKey := types.PoolIDKey(pairID, centerTickIndexNormalized, fee) + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolIDKeyPrefix)) + b := store.Get(poolIDKey) + if b == nil { + return 0, false + } + + poolID := sdk.BigEndianToUint64(b) + return poolID, true +} + +func (k Keeper) SetPool(ctx sdk.Context, pool *types.Pool) { + if pool.LowerTick0.HasToken() { + k.SetPoolReserves(ctx, pool.LowerTick0) + } else { + k.RemovePoolReserves(ctx, pool.LowerTick0.Key) + } + if pool.UpperTick1.HasToken() { + k.SetPoolReserves(ctx, pool.UpperTick1) + } else { + k.RemovePoolReserves(ctx, pool.UpperTick1.Key) + } + + // TODO: this will create a bit of extra noise since not every Save is updating both ticks + // This should be solved upstream by better tracking of dirty ticks + ctx.EventManager().EmitEvent(types.CreateTickUpdatePoolReserves(*pool.LowerTick0)) + ctx.EventManager().EmitEvent(types.CreateTickUpdatePoolReserves(*pool.UpperTick1)) +} + +// GetPoolCount get the total number of pools +func (k Keeper) GetPoolCount(ctx sdk.Context) uint64 { + store := prefix.NewStore(ctx.KVStore(k.storeKey), []byte{}) + byteKey := types.KeyPrefix(types.PoolCountKeyPrefix) + bz := store.Get(byteKey) + + // Count doesn't exist: no element + if bz == nil { + return 0 + } + + // Parse bytes + return binary.BigEndian.Uint64(bz) +} + +// SetPoolCount set the total number of pools +func (k Keeper) SetPoolCount(ctx sdk.Context, count uint64) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), []byte{}) + byteKey := types.KeyPrefix(types.PoolCountKeyPrefix) + bz := make([]byte, 8) + binary.BigEndian.PutUint64(bz, count) + store.Set(byteKey, bz) +} diff --git a/x/dex/keeper/pool_metadata.go b/x/dex/keeper/pool_metadata.go new file mode 100644 index 000000000..2d3c0f141 --- /dev/null +++ b/x/dex/keeper/pool_metadata.go @@ -0,0 +1,71 @@ +package keeper + +import ( + "encoding/binary" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +// SetPoolMetadata set a specific poolMetadata in the store +func (k Keeper) SetPoolMetadata(ctx sdk.Context, poolMetadata types.PoolMetadata) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolMetadataKeyPrefix)) + b := k.cdc.MustMarshal(&poolMetadata) + store.Set(GetPoolMetadataIDBytes(poolMetadata.ID), b) +} + +// GetPoolMetadata returns a poolMetadata from its id +func (k Keeper) GetPoolMetadata(ctx sdk.Context, id uint64) (val types.PoolMetadata, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolMetadataKeyPrefix)) + b := store.Get(GetPoolMetadataIDBytes(id)) + if b == nil { + return val, false + } + k.cdc.MustUnmarshal(b, &val) + return val, true +} + +func (k Keeper) GetPoolMetadataByDenom( + ctx sdk.Context, + denom string, +) (pm types.PoolMetadata, err error) { + poolID, err := types.ParsePoolIDFromDenom(denom) + if err != nil { + return pm, err + } + pm, found := k.GetPoolMetadata(ctx, poolID) + if !found { + return pm, types.ErrInvalidPoolDenom + } + return pm, nil +} + +// RemovePoolMetadata removes a poolMetadata from the store +func (k Keeper) RemovePoolMetadata(ctx sdk.Context, id uint64) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolMetadataKeyPrefix)) + store.Delete(GetPoolMetadataIDBytes(id)) +} + +// GetAllPoolMetadata returns all poolMetadata +func (k Keeper) GetAllPoolMetadata(ctx sdk.Context) (list []types.PoolMetadata) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolMetadataKeyPrefix)) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.PoolMetadata + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} + +// GetPoolMetadataIDBytes returns the byte representation of the ID +func GetPoolMetadataIDBytes(id uint64) []byte { + bz := make([]byte, 8) + binary.BigEndian.PutUint64(bz, id) + return bz +} diff --git a/x/dex/keeper/pool_metadata_test.go b/x/dex/keeper/pool_metadata_test.go new file mode 100644 index 000000000..bc41fcb40 --- /dev/null +++ b/x/dex/keeper/pool_metadata_test.go @@ -0,0 +1,54 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func createNPoolMetadata(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.PoolMetadata { + items := make([]types.PoolMetadata, n) + for i := range items { + items[i].ID = uint64(i) + keeper.SetPoolMetadata(ctx, items[i]) + } + + return items +} + +func TestPoolMetadataGet(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPoolMetadata(keeper, ctx, 10) + for _, item := range items { + got, found := keeper.GetPoolMetadata(ctx, item.ID) + require.True(t, found) + require.Equal(t, + nullify.Fill(&item), + nullify.Fill(&got), + ) + } +} + +func TestPoolMetadataRemove(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPoolMetadata(keeper, ctx, 10) + for _, item := range items { + keeper.RemovePoolMetadata(ctx, item.ID) + _, found := keeper.GetPoolMetadata(ctx, item.ID) + require.False(t, found) + } +} + +func TestPoolMetadataGetAll(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPoolMetadata(keeper, ctx, 10) + require.ElementsMatch(t, + nullify.Fill(items), + nullify.Fill(keeper.GetAllPoolMetadata(ctx)), + ) +} diff --git a/x/dex/keeper/pool_reserves.go b/x/dex/keeper/pool_reserves.go new file mode 100644 index 000000000..7c9f44c89 --- /dev/null +++ b/x/dex/keeper/pool_reserves.go @@ -0,0 +1,41 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +func (k Keeper) SetPoolReserves(ctx sdk.Context, poolReserves *types.PoolReserves) { + tick := types.TickLiquidity{ + Liquidity: &types.TickLiquidity_PoolReserves{ + PoolReserves: poolReserves, + }, + } + + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + b := k.cdc.MustMarshal(&tick) + store.Set(poolReserves.Key.KeyMarshal(), b) +} + +func (k Keeper) GetPoolReserves( + ctx sdk.Context, + poolReservesID *types.PoolReservesKey, +) (pool *types.PoolReserves, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + b := store.Get(poolReservesID.KeyMarshal()) + if b == nil { + return nil, false + } + + var tick types.TickLiquidity + k.cdc.MustUnmarshal(b, &tick) + + return tick.GetPoolReserves(), true +} + +// RemoveTickLiquidity removes a tickLiquidity from the store +func (k Keeper) RemovePoolReserves(ctx sdk.Context, poolReservesID *types.PoolReservesKey) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + store.Delete(poolReservesID.KeyMarshal()) +} diff --git a/x/dex/keeper/pool_reserves_test.go b/x/dex/keeper/pool_reserves_test.go new file mode 100644 index 000000000..13e361128 --- /dev/null +++ b/x/dex/keeper/pool_reserves_test.go @@ -0,0 +1,44 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/testutil/dex/nullify" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func createNPoolReserves(k *keeper.Keeper, ctx sdk.Context, n int) []*types.PoolReserves { + items := make([]*types.PoolReserves, n) + pools := createNPools(k, ctx, n) + for i, pool := range pools { + items[i] = pool.LowerTick0 + } + return items +} + +func TestGetPoolReserves(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPoolReserves(keeper, ctx, 10) + for _, item := range items { + rst, found := keeper.GetPoolReserves(ctx, item.Key) + require.True(t, found) + require.Equal(t, + nullify.Fill(&item), + nullify.Fill(&rst), + ) + } +} + +func TestRemovePoolReserves(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPoolReserves(keeper, ctx, 10) + for _, item := range items { + keeper.RemovePoolReserves(ctx, item.Key) + _, found := keeper.GetPoolReserves(ctx, item.Key) + require.False(t, found) + } +} diff --git a/x/dex/keeper/pool_test.go b/x/dex/keeper/pool_test.go new file mode 100644 index 000000000..ecb231ff9 --- /dev/null +++ b/x/dex/keeper/pool_test.go @@ -0,0 +1,92 @@ +package keeper_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func createNPools(k *keeper.Keeper, ctx sdk.Context, n int) []*types.Pool { + items := make([]*types.Pool, n) + for i := range items { + pool, err := k.InitPool(ctx, types.MustNewPairID("TokenA", "TokenB"), int64(i), uint64(i)) + if err != nil { + panic("failed to create pool") + } + pool.Deposit(sdk.NewInt(10), sdk.NewInt(0), sdk.ZeroInt(), true) + k.SetPool(ctx, pool) + items[i] = pool + } + + return items +} + +func TestPoolInit(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + + pool, err := keeper.InitPool(ctx, defaultPairID, 0, 1) + require.NoError(t, err) + pool.Deposit(sdk.NewInt(100), sdk.NewInt(100), sdk.NewInt(0), true) + keeper.SetPool(ctx, pool) + + dbPool, found := keeper.GetPool(ctx, defaultPairID, 0, 1) + + require.True(t, found) + + require.Equal(t, pool.ID, dbPool.ID) + require.Equal(t, pool.LowerTick0, dbPool.LowerTick0) + require.Equal(t, pool.UpperTick1, dbPool.UpperTick1) +} + +func TestPoolCount(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPools(keeper, ctx, 10) + count := uint64(len(items)) + require.Equal(t, count, keeper.GetPoolCount(ctx)) +} + +func TestGetPoolByID(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPools(keeper, ctx, 2) + + pool0, found := keeper.GetPoolByID(ctx, items[0].ID) + require.True(t, found) + require.Equal(t, items[0], pool0) + + pool1, found := keeper.GetPoolByID(ctx, items[1].ID) + require.True(t, found) + require.Equal(t, items[1], pool1) + + _, found = keeper.GetPoolByID(ctx, 99) + require.False(t, found) +} + +func TestGetPoolIDByParams(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := createNPools(keeper, ctx, 2) + + id0, found := keeper.GetPoolIDByParams( + ctx, + items[0].LowerTick0.Key.TradePairID.MustPairID(), + items[0].CenterTickIndex(), + items[0].Fee(), + ) + require.True(t, found) + require.Equal(t, items[0].ID, id0) + + id1, found := keeper.GetPoolIDByParams( + ctx, + items[1].LowerTick0.Key.TradePairID.MustPairID(), + items[1].CenterTickIndex(), + items[1].Fee(), + ) + require.True(t, found) + require.Equal(t, items[1].ID, id1) + + _, found = keeper.GetPoolIDByParams(ctx, defaultPairID, 99, 2) + require.False(t, found) +} diff --git a/x/dex/keeper/tick_iterator.go b/x/dex/keeper/tick_iterator.go new file mode 100644 index 000000000..b011565dd --- /dev/null +++ b/x/dex/keeper/tick_iterator.go @@ -0,0 +1,42 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +type TickIterator struct { + iter sdk.Iterator + cdc codec.BinaryCodec +} + +func (k Keeper) NewTickIterator( + ctx sdk.Context, + tradePairID *types.TradePairID, +) TickIterator { + prefixStore := prefix.NewStore(ctx.KVStore(k.storeKey), types.TickLiquidityPrefix(tradePairID)) + + return TickIterator{ + iter: prefixStore.Iterator(nil, nil), + cdc: k.cdc, + } +} + +func (ti TickIterator) Valid() bool { + return ti.iter.Valid() +} + +func (ti TickIterator) Close() error { + return ti.iter.Close() +} + +func (ti TickIterator) Value() (tick types.TickLiquidity) { + ti.cdc.MustUnmarshal(ti.iter.Value(), &tick) + return tick +} + +func (ti TickIterator) Next() { + ti.iter.Next() +} diff --git a/x/dex/keeper/tick_liquidity.go b/x/dex/keeper/tick_liquidity.go new file mode 100644 index 000000000..44687403c --- /dev/null +++ b/x/dex/keeper/tick_liquidity.go @@ -0,0 +1,23 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" +) + +// GetAllTickLiquidity returns all tickLiquidity +func (k Keeper) GetAllTickLiquidity(ctx sdk.Context) (list []*types.TickLiquidity) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + val := &types.TickLiquidity{} + k.cdc.MustUnmarshal(iterator.Value(), val) + list = append(list, val) + } + + return +} diff --git a/x/dex/keeper/tick_liquidity_test.go b/x/dex/keeper/tick_liquidity_test.go new file mode 100644 index 000000000..2fb663128 --- /dev/null +++ b/x/dex/keeper/tick_liquidity_test.go @@ -0,0 +1,46 @@ +package keeper_test + +import ( + "strconv" + "testing" + + math "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func CreateNTickLiquidity(keeper *keeper.Keeper, ctx sdk.Context, n int) []*types.TickLiquidity { + items := make([]*types.TickLiquidity, n) + for i := range items { + tick := types.TickLiquidity{ + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: types.MustNewLimitOrderTranche( + "TokenA", + "TokenB", + strconv.Itoa(i), + int64(i), + math.NewInt(10), + math.NewInt(10), + math.NewInt(10), + math.NewInt(10), + ), + }, + } + keeper.SetLimitOrderTranche(ctx, tick.GetLimitOrderTranche()) + items[i] = &tick + } + + return items +} + +func TestTickLiquidityGetAll(t *testing.T) { + keeper, ctx := keepertest.DexKeeper(t) + items := CreateNTickLiquidity(keeper, ctx, 10) + require.ElementsMatch(t, + items, + keeper.GetAllTickLiquidity(ctx), + ) +} diff --git a/x/dex/module.go b/x/dex/module.go new file mode 100644 index 000000000..85a67a439 --- /dev/null +++ b/x/dex/module.go @@ -0,0 +1,180 @@ +package dex + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/gorilla/mux" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" + + 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/neutron-org/neutron/x/dex/client/cli" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +var ( + _ module.AppModule = AppModule{} + _ module.AppModuleBasic = AppModuleBasic{} +) + +// ---------------------------------------------------------------------------- +// AppModuleBasic +// ---------------------------------------------------------------------------- + +// AppModuleBasic implements the AppModuleBasic interface for the capability module. +type AppModuleBasic struct { + cdc codec.BinaryCodec +} + +func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { + return AppModuleBasic{cdc: cdc} +} + +// Name returns the capability module's name. +func (AppModuleBasic) Name() string { + return types.ModuleName +} + +func (AppModuleBasic) RegisterCodec(cdc *codec.LegacyAmino) { + types.RegisterCodec(cdc) +} + +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + types.RegisterCodec(cdc) +} + +// RegisterInterfaces registers the module's interface types +func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { + types.RegisterInterfaces(reg) +} + +// DefaultGenesis returns the capability module's default genesis state. +func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(types.DefaultGenesis()) +} + +// ValidateGenesis performs genesis state validation for the capability module. +func (AppModuleBasic) ValidateGenesis( + cdc codec.JSONCodec, + _ client.TxEncodingConfig, + bz json.RawMessage, +) error { + var genState types.GenesisState + if err := cdc.UnmarshalJSON(bz, &genState); err != nil { + return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) + } + + return genState.Validate() +} + +// RegisterRESTRoutes registers the capability module's REST service handlers. +func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) { +} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + err := types.RegisterQueryHandlerClient( + context.Background(), + mux, + types.NewQueryClient(clientCtx), + ) + if err != nil { + panic(err) + } +} + +// GetTxCmd returns the capability module's root tx command. +func (a AppModuleBasic) GetTxCmd() *cobra.Command { + return cli.GetTxCmd() +} + +// GetQueryCmd returns the capability module's root query command. +func (AppModuleBasic) GetQueryCmd() *cobra.Command { + return cli.GetQueryCmd(types.StoreKey) +} + +// ---------------------------------------------------------------------------- +// AppModule +// ---------------------------------------------------------------------------- + +// AppModule implements the AppModule interface for the capability module. +type AppModule struct { + AppModuleBasic + + keeper keeper.Keeper + bankKeeper types.BankKeeper +} + +func NewAppModule( + cdc codec.Codec, + keeper keeper.Keeper, + bankKeeper types.BankKeeper, +) AppModule { + return AppModule{ + AppModuleBasic: NewAppModuleBasic(cdc), + keeper: keeper, + bankKeeper: bankKeeper, + } +} + +// Name returns the capability module's name. +func (am AppModule) Name() string { + return am.AppModuleBasic.Name() +} + +// QuerierRoute returns the capability module's query routing key. +func (AppModule) QuerierRoute() string { return types.QuerierRoute } + +// 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) + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) +} + +// RegisterInvariants registers the capability module's invariants. +func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} + +// InitGenesis performs the capability module's genesis initialization It returns +// no validator updates. +func (am AppModule) InitGenesis( + ctx sdk.Context, + cdc codec.JSONCodec, + gs json.RawMessage, +) []abci.ValidatorUpdate { + var genState types.GenesisState + // Initialize global index to index in genesis state + cdc.MustUnmarshalJSON(gs, &genState) + + InitGenesis(ctx, am.keeper, genState) + + return []abci.ValidatorUpdate{} +} + +// ExportGenesis returns the capability module's exported genesis state as raw JSON bytes. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + genState := ExportGenesis(ctx, am.keeper) + return cdc.MustMarshalJSON(genState) +} + +// ConsensusVersion implements ConsensusVersion. +func (AppModule) ConsensusVersion() uint64 { return 2 } + +// BeginBlock executes all ABCI BeginBlock logic respective to the capability module. +func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} + +// EndBlock executes all ABCI EndBlock logic respective to the capability module. It +// returns no validator updates. +func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { + am.keeper.PurgeExpiredLimitOrders(ctx, ctx.BlockTime()) + return []abci.ValidatorUpdate{} +} diff --git a/x/dex/module_simulation.go b/x/dex/module_simulation.go new file mode 100644 index 000000000..f83b5ac42 --- /dev/null +++ b/x/dex/module_simulation.go @@ -0,0 +1,167 @@ +package dex + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/neutron-org/neutron/testutil/common/sample" + dexsimulation "github.com/neutron-org/neutron/x/dex/simulation" + "github.com/neutron-org/neutron/x/dex/types" +) + +// avoid unused import issue +var ( + _ = sample.AccAddress + _ = dexsimulation.FindAccount + _ = simulation.MsgEntryKind + _ = baseapp.Paramspace +) + +const ( + opWeightMsgDeposit = "op_weight_msg_deposit" + // TODO: Determine the simulation weight value + defaultWeightMsgDeposit int = 100 + + opWeightMsgWithdrawal = "op_weight_msg_withdrawal" + // TODO: Determine the simulation weight value + defaultWeightMsgWithdrawal int = 100 + + opWeightMsgPlaceLimitOrder = "op_weight_msg_place_limit_order" + // TODO: Determine the simulation weight value + defaultWeightMsgPlaceLimitOrder int = 100 + + opWeightMsgWithdrawFilledLimitOrder = "op_weight_msg_withdrawal_withdrawn_limit_order" + // TODO: Determine the simulation weight value + defaultWeightMsgWithdrawFilledLimitOrder int = 100 + + opWeightMsgCancelLimitOrder = "op_weight_msg_cancel_limit_order" + // TODO: Determine the simulation weight value + defaultWeightMsgCancelLimitOrder int = 100 + + opWeightMsgMultiHopSwap = "op_weight_msg_multi_hop_swap" + // TODO: Determine the simulation weight value + defaultWeightMsgMultiHopSwap int = 100 + + // this line is used by starport scaffolding # simapp/module/const +) + +// GenerateGenesisState creates a randomized GenState of the module +func (AppModule) GenerateGenesisState(simState *module.SimulationState) { + accs := make([]string, len(simState.Accounts)) + for i, acc := range simState.Accounts { + accs[i] = acc.Address.String() + } + dexGenesis := types.GenesisState{ + Params: types.DefaultParams(), + // this line is used by starport scaffolding # simapp/module/genesisState + } + simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&dexGenesis) +} + +// ProposalContents doesn't return any content functions for governance proposals +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { + return nil +} + +// RegisterStoreDecoder registers a decoder +func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} + +// WeightedOperations returns the all the gov module operations with their respective weights. +func (am AppModule) WeightedOperations( + simState module.SimulationState, +) []simtypes.WeightedOperation { + operations := make([]simtypes.WeightedOperation, 0) + + var weightMsgDeposit int + simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgDeposit, &weightMsgDeposit, nil, + func(_ *rand.Rand) { + weightMsgDeposit = defaultWeightMsgDeposit + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgDeposit, + dexsimulation.SimulateMsgDeposit(am.bankKeeper, am.keeper), + )) + + var weightMsgWithdrawal int + simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgWithdrawal, &weightMsgWithdrawal, nil, + func(_ *rand.Rand) { + weightMsgWithdrawal = defaultWeightMsgWithdrawal + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgWithdrawal, + dexsimulation.SimulateMsgWithdrawal(am.bankKeeper, am.keeper), + )) + + var weightMsgPlaceLimitOrder int + simState.AppParams.GetOrGenerate( + simState.Cdc, + opWeightMsgPlaceLimitOrder, + &weightMsgPlaceLimitOrder, + nil, + func(_ *rand.Rand) { + weightMsgPlaceLimitOrder = defaultWeightMsgPlaceLimitOrder + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgPlaceLimitOrder, + dexsimulation.SimulateMsgPlaceLimitOrder(am.bankKeeper, am.keeper), + )) + + var weightMsgWithdrawFilledLimitOrder int + simState.AppParams.GetOrGenerate( + simState.Cdc, + opWeightMsgWithdrawFilledLimitOrder, + &weightMsgWithdrawFilledLimitOrder, + nil, + func(_ *rand.Rand) { + weightMsgWithdrawFilledLimitOrder = defaultWeightMsgWithdrawFilledLimitOrder + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgWithdrawFilledLimitOrder, + dexsimulation.SimulateMsgWithdrawFilledLimitOrder( + am.bankKeeper, + am.keeper, + ), + )) + + var weightMsgCancelLimitOrder int + simState.AppParams.GetOrGenerate( + simState.Cdc, + opWeightMsgCancelLimitOrder, + &weightMsgCancelLimitOrder, + nil, + func(_ *rand.Rand) { + weightMsgCancelLimitOrder = defaultWeightMsgCancelLimitOrder + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgCancelLimitOrder, + dexsimulation.SimulateMsgCancelLimitOrder(am.bankKeeper, am.keeper), + )) + + var weightMsgMultiHopSwap int + simState.AppParams.GetOrGenerate( + simState.Cdc, + opWeightMsgMultiHopSwap, + &weightMsgMultiHopSwap, + nil, + func(_ *rand.Rand) { + weightMsgMultiHopSwap = defaultWeightMsgMultiHopSwap + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgMultiHopSwap, + dexsimulation.SimulateMsgMultiHopSwap(am.bankKeeper, am.keeper), + )) + + // this line is used by starport scaffolding # simapp/module/operation + + return operations +} diff --git a/x/dex/simulation/cancel_limit_order.go b/x/dex/simulation/cancel_limit_order.go new file mode 100644 index 000000000..6e4081eac --- /dev/null +++ b/x/dex/simulation/cancel_limit_order.go @@ -0,0 +1,28 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func SimulateMsgCancelLimitOrder( + _ types.BankKeeper, + _ keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgCancelLimitOrder{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the CancelLimitOrder simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "CancelLimitOrder simulation not implemented"), nil, nil + } +} diff --git a/x/dex/simulation/deposit.go b/x/dex/simulation/deposit.go new file mode 100644 index 000000000..186aa0a1e --- /dev/null +++ b/x/dex/simulation/deposit.go @@ -0,0 +1,28 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func SimulateMsgDeposit( + _ types.BankKeeper, + _ keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgDeposit{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the Deposit simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Deposit simulation not implemented"), nil, nil + } +} diff --git a/x/dex/simulation/multi_hop_swap.go b/x/dex/simulation/multi_hop_swap.go new file mode 100644 index 000000000..7e73559e4 --- /dev/null +++ b/x/dex/simulation/multi_hop_swap.go @@ -0,0 +1,28 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func SimulateMsgMultiHopSwap( + _ types.BankKeeper, + _ keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgMultiHopSwap{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the MultiHopSwap simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "MultiHopSwap simulation not implemented"), nil, nil + } +} diff --git a/x/dex/simulation/place_limit_order.go b/x/dex/simulation/place_limit_order.go new file mode 100644 index 000000000..9f8063124 --- /dev/null +++ b/x/dex/simulation/place_limit_order.go @@ -0,0 +1,28 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func SimulateMsgPlaceLimitOrder( + _ types.BankKeeper, + _ keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgPlaceLimitOrder{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the PlaceLimitOrder simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "PlaceLimitOrder simulation not implemented"), nil, nil + } +} diff --git a/x/dex/simulation/simap.go b/x/dex/simulation/simap.go new file mode 100644 index 000000000..e31c6e3b1 --- /dev/null +++ b/x/dex/simulation/simap.go @@ -0,0 +1,16 @@ +package simulation + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +// FindAccount find a specific address from an account list +func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) { + creator, err := sdk.AccAddressFromBech32(address) + if err != nil { + panic(err) + } + + return simtypes.FindAccount(accs, creator) +} diff --git a/x/dex/simulation/withdrawl.go b/x/dex/simulation/withdrawl.go new file mode 100644 index 000000000..bf62fe5ec --- /dev/null +++ b/x/dex/simulation/withdrawl.go @@ -0,0 +1,28 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func SimulateMsgWithdrawal( + _ types.BankKeeper, + _ keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgWithdrawal{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the Withdrawal simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Withdrawal simulation not implemented"), nil, nil + } +} diff --git a/x/dex/simulation/withdrawl_filled_limit_order.go b/x/dex/simulation/withdrawl_filled_limit_order.go new file mode 100644 index 000000000..ed013038e --- /dev/null +++ b/x/dex/simulation/withdrawl_filled_limit_order.go @@ -0,0 +1,28 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/x/dex/types" +) + +func SimulateMsgWithdrawFilledLimitOrder( + _ types.BankKeeper, + _ keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgWithdrawFilledLimitOrder{ + Creator: simAccount.Address.String(), + } + + // TODO: Handling the WithdrawFilledLimitOrder simulation + + return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "WithdrawFilledLimitOrder simulation not implemented"), nil, nil + } +} diff --git a/x/dex/types/branchable_cache.go b/x/dex/types/branchable_cache.go new file mode 100644 index 000000000..30e0459ae --- /dev/null +++ b/x/dex/types/branchable_cache.go @@ -0,0 +1,34 @@ +package types + +import sdk "github.com/cosmos/cosmos-sdk/types" + +type BranchableCache struct { + Parent *BranchableCache + Ctx sdk.Context + writeCache func() +} + +func (bc *BranchableCache) Branch() *BranchableCache { + cacheCtx, writeCache := bc.Ctx.CacheContext() + return &BranchableCache{ + Parent: bc, + Ctx: cacheCtx, + writeCache: writeCache, + } +} + +func (bc *BranchableCache) WriteCache() { + bc.writeCache() + if bc.Parent != nil { + bc.Parent.WriteCache() + } +} + +func NewBranchableCache(ctx sdk.Context) *BranchableCache { + cacheCtx, writeCache := ctx.CacheContext() + return &BranchableCache{ + Parent: nil, + Ctx: cacheCtx, + writeCache: writeCache, + } +} diff --git a/x/dex/types/codec.go b/x/dex/types/codec.go new file mode 100644 index 000000000..c7401e6cd --- /dev/null +++ b/x/dex/types/codec.go @@ -0,0 +1,50 @@ +//nolint:all +package types + +import ( + "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/msgservice" +) + +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgDeposit{}, "dex/Deposit", nil) + cdc.RegisterConcrete(&MsgWithdrawal{}, "dex/Withdrawal", nil) + cdc.RegisterConcrete(&MsgPlaceLimitOrder{}, "dex/PlaceLimitOrder", nil) + cdc.RegisterConcrete(&MsgWithdrawFilledLimitOrder{}, "dex/WithdrawFilledLimitOrder", nil) + cdc.RegisterConcrete(&MsgCancelLimitOrder{}, "dex/CancelLimitOrder", nil) + cdc.RegisterConcrete(&MsgMultiHopSwap{}, "dex/MultiHopSwap", nil) + // this line is used by starport scaffolding # 2 +} + +func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgDeposit{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgWithdrawal{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgPlaceLimitOrder{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgWithdrawFilledLimitOrder{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCancelLimitOrder{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgMultiHopSwap{}, + ) + // this line is used by starport scaffolding # 3 + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} + +var ( + Amino = codec.NewLegacyAmino() + ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) +) diff --git a/x/dex/types/deposit_record.pb.go b/x/dex/types/deposit_record.pb.go new file mode 100644 index 000000000..27084d1a0 --- /dev/null +++ b/x/dex/types/deposit_record.pb.go @@ -0,0 +1,524 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/deposit_record.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type DepositRecord struct { + PairID *PairID `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalShares" yaml:"totalShares"` + CenterTickIndex int64 `protobuf:"varint,3,opt,name=centerTickIndex,proto3" json:"centerTickIndex,omitempty"` + LowerTickIndex int64 `protobuf:"varint,4,opt,name=lowerTickIndex,proto3" json:"lowerTickIndex,omitempty"` + UpperTickIndex int64 `protobuf:"varint,5,opt,name=upperTickIndex,proto3" json:"upperTickIndex,omitempty"` + Fee uint64 `protobuf:"varint,6,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (m *DepositRecord) Reset() { *m = DepositRecord{} } +func (m *DepositRecord) String() string { return proto.CompactTextString(m) } +func (*DepositRecord) ProtoMessage() {} +func (*DepositRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_9d7c76d21a5add72, []int{0} +} +func (m *DepositRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositRecord.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 *DepositRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositRecord.Merge(m, src) +} +func (m *DepositRecord) XXX_Size() int { + return m.Size() +} +func (m *DepositRecord) XXX_DiscardUnknown() { + xxx_messageInfo_DepositRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositRecord proto.InternalMessageInfo + +func (m *DepositRecord) GetPairID() *PairID { + if m != nil { + return m.PairID + } + return nil +} + +func (m *DepositRecord) GetCenterTickIndex() int64 { + if m != nil { + return m.CenterTickIndex + } + return 0 +} + +func (m *DepositRecord) GetLowerTickIndex() int64 { + if m != nil { + return m.LowerTickIndex + } + return 0 +} + +func (m *DepositRecord) GetUpperTickIndex() int64 { + if m != nil { + return m.UpperTickIndex + } + return 0 +} + +func (m *DepositRecord) GetFee() uint64 { + if m != nil { + return m.Fee + } + return 0 +} + +func init() { + proto.RegisterType((*DepositRecord)(nil), "duality.dex.DepositRecord") +} + +func init() { proto.RegisterFile("duality/dex/deposit_record.proto", fileDescriptor_9d7c76d21a5add72) } + +var fileDescriptor_9d7c76d21a5add72 = []byte{ + // 340 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x3f, 0x4f, 0xc2, 0x40, + 0x18, 0x87, 0x7b, 0x80, 0x24, 0x5e, 0xe3, 0x9f, 0x9c, 0x0e, 0x95, 0xa1, 0x6d, 0x18, 0x48, 0x13, + 0x42, 0x9b, 0xe8, 0xe6, 0x48, 0x70, 0x60, 0xd2, 0x14, 0x27, 0x17, 0x52, 0x7a, 0x27, 0x34, 0x94, + 0x5e, 0x73, 0x77, 0x0d, 0xe5, 0x5b, 0xf8, 0x8d, 0x5c, 0x19, 0x19, 0x8d, 0x43, 0x63, 0x60, 0x73, + 0xf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0x8f, 0x31, 0xea, 0xc1, 0xf3, 0x98, 0xae, 0x55, + 0xb1, 0x25, 0xc5, 0x23, 0x5a, 0x7a, 0x59, 0x9a, 0xaa, 0xde, 0x49, 0xe5, 0xfd, 0xa7, 0xe8, 0x12, + 0x36, 0x5f, 0x09, 0x31, 0xda, 0x36, 0x70, 0x5a, 0x7e, 0x59, 0x0e, 0x1f, 0xb6, 0x7b, 0x13, 0xec, + 0xf6, 0x26, 0xf8, 0xda, 0x9b, 0xe0, 0xed, 0x60, 0x6a, 0xbb, 0x83, 0xa9, 0x7d, 0x1c, 0x4c, 0xed, + 0xa5, 0xaf, 0xbc, 0xbf, 0x9e, 0xe1, 0x20, 0x0e, 0x66, 0xfc, 0xef, 0xc7, 0xcb, 0xe5, 0x42, 0xe4, + 0x20, 0x66, 0x6d, 0xb9, 0x8f, 0xbb, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0x9c, 0x66, 0x85, + 0xf1, 0x01, 0x00, 0x00, +} + +func (m *DepositRecord) 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 *DepositRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fee != 0 { + i = encodeVarintDepositRecord(dAtA, i, uint64(m.Fee)) + i-- + dAtA[i] = 0x30 + } + if m.UpperTickIndex != 0 { + i = encodeVarintDepositRecord(dAtA, i, uint64(m.UpperTickIndex)) + i-- + dAtA[i] = 0x28 + } + if m.LowerTickIndex != 0 { + i = encodeVarintDepositRecord(dAtA, i, uint64(m.LowerTickIndex)) + i-- + dAtA[i] = 0x20 + } + if m.CenterTickIndex != 0 { + i = encodeVarintDepositRecord(dAtA, i, uint64(m.CenterTickIndex)) + i-- + dAtA[i] = 0x18 + } + { + size := m.SharesOwned.Size() + i -= size + if _, err := m.SharesOwned.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintDepositRecord(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.PairID != nil { + { + size, err := m.PairID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDepositRecord(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDepositRecord(dAtA []byte, offset int, v uint64) int { + offset -= sovDepositRecord(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DepositRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PairID != nil { + l = m.PairID.Size() + n += 1 + l + sovDepositRecord(uint64(l)) + } + l = m.SharesOwned.Size() + n += 1 + l + sovDepositRecord(uint64(l)) + if m.CenterTickIndex != 0 { + n += 1 + sovDepositRecord(uint64(m.CenterTickIndex)) + } + if m.LowerTickIndex != 0 { + n += 1 + sovDepositRecord(uint64(m.LowerTickIndex)) + } + if m.UpperTickIndex != 0 { + n += 1 + sovDepositRecord(uint64(m.UpperTickIndex)) + } + if m.Fee != 0 { + n += 1 + sovDepositRecord(uint64(m.Fee)) + } + return n +} + +func sovDepositRecord(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDepositRecord(x uint64) (n int) { + return sovDepositRecord(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DepositRecord) 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 ErrIntOverflowDepositRecord + } + 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: DepositRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDepositRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDepositRecord + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDepositRecord + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PairID == nil { + m.PairID = &PairID{} + } + if err := m.PairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesOwned", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDepositRecord + } + 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 ErrInvalidLengthDepositRecord + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDepositRecord + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesOwned.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CenterTickIndex", wireType) + } + m.CenterTickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDepositRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CenterTickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LowerTickIndex", wireType) + } + m.LowerTickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDepositRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LowerTickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpperTickIndex", wireType) + } + m.UpperTickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDepositRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpperTickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + m.Fee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDepositRecord + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Fee |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipDepositRecord(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDepositRecord + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDepositRecord(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, ErrIntOverflowDepositRecord + } + 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, ErrIntOverflowDepositRecord + } + 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, ErrIntOverflowDepositRecord + } + 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, ErrInvalidLengthDepositRecord + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDepositRecord + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDepositRecord + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDepositRecord = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDepositRecord = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDepositRecord = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go new file mode 100644 index 000000000..7aad622ad --- /dev/null +++ b/x/dex/types/errors.go @@ -0,0 +1,163 @@ +package types + +// DONTCOVER + +import ( + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +// x/dex module sentinel errors + +//nolint:all +var ( + ErrInvalidTradingPair = sdkerrors.Register( + ModuleName, + 1102, + "Invalid token pair:", + ) // "%s<>%s", tokenA, tokenB + ErrInsufficientShares = sdkerrors.Register( + ModuleName, + 1104, + "Insufficient shares:", + ) // "%s does not have %s shares of type %s", address, shares, sharesID + ErrUnbalancedTxArray = sdkerrors.Register( + ModuleName, + 1110, + "Transaction input arrays are not of the same length.", + ) + ErrValidLimitOrderTrancheNotFound = sdkerrors.Register( + ModuleName, + 1111, + "Limit order trache not found:", + ) // "%d", trancheKey + ErrCancelEmptyLimitOrder = sdkerrors.Register( + ModuleName, + 1112, + "Cannot cancel additional liquidity from limit order tranche:", + ) // "%d", tranche.TrancheKey + ErrInsufficientLiquidity = sdkerrors.Register( + ModuleName, + 1114, + "Not enough liquidity to complete trade", + ) + ErrTickOutsideRange = sdkerrors.Register( + ModuleName, + 1117, + "Supplying a tick > 559,680 is not allowed", + ) + ErrInvalidPoolDenom = sdkerrors.Register( + ModuleName, + 1118, + "Denom is not an instance of Duality PoolDenom", + ) + ErrInvalidPairIDStr = sdkerrors.Register( + ModuleName, + 1119, + "PairID does not conform to pattern TokenA<>TokenB", + ) + ErrZeroDeposit = sdkerrors.Register( + ModuleName, + 1120, + "At least one deposit amount must be > 0.", + ) + ErrZeroTrueDeposit = sdkerrors.Register( + ModuleName, + 1121, + "Cannot deposit double-sided liquidity in tick with prexisting single-sided liquidity.", + ) + ErrWithdrawEmptyLimitOrder = sdkerrors.Register( + ModuleName, + 1124, + "Cannot withdraw additional liqudity from this limit order at this time.", + ) + ErrZeroSwap = sdkerrors.Register( + ModuleName, + 1125, + "MaxAmountIn in must be > 0 for swap.", + ) + ErrActiveLimitOrderNotFound = sdkerrors.Register( + ModuleName, + 1128, + "No active limit found. It does not exist or has already been filled", + ) + ErrZeroWithdraw = sdkerrors.Register( + ModuleName, + 1129, + "Withdraw amount must be > 0.", + ) + ErrZeroLimitOrder = sdkerrors.Register( + ModuleName, + 1130, + "Limit order amount must be > 0.", + ) + ErrDepositShareUnderflow = sdkerrors.Register( + ModuleName, + 1133, + "Deposit amount is too small to issue shares", + ) + ErrFoKLimitOrderNotFilled = sdkerrors.Register( + ModuleName, + 1134, + "Fill Or Kill limit order couldn't be executed in its entirety.", + ) + ErrInvalidTimeString = sdkerrors.Register( + ModuleName, + 1135, + "Time string must be formatted as MM/dd/yyyy HH:mm:ss (ex. 02/05/2023 15:34:56) ", + ) + ErrGoodTilOrderWithoutExpiration = sdkerrors.Register( + ModuleName, + 1136, + "Limit orders of type GOOD_TIL_TIME must supply an ExpirationTime.", + ) + ErrExpirationOnWrongOrderType = sdkerrors.Register( + ModuleName, + 1137, + "Only Limit orders of type GOOD_TIL_TIME can supply an ExpirationTime.", + ) + ErrInvalidOrderType = sdkerrors.Register( + ModuleName, + 1138, + "Order type must be one of: GOOD_TIL_CANCELLED, FILL_OR_KILL, IMMEDIATE_OR_CANCEL, JUST_IN_TIME, or GOOD_TIL_TIME.", + ) + ErrExpirationTimeInPast = sdkerrors.Register( + ModuleName, + 1139, + "Limit order expiration time must be greater than current block time:", + ) + ErrExitLimitPriceHit = sdkerrors.Register( + ModuleName, + 1140, + "ExitLimitPrice cannot be satisfied.", + ) + ErrAllMultiHopRoutesFailed = sdkerrors.Register( + ModuleName, + 1141, + "All multihop routes failed limitPrice check or had insufficient liquidity", + ) + ErrMultihopExitTokensMismatch = sdkerrors.Register( + ModuleName, + 1142, + "All multihop routes must have the same exit token", + ) + ErrMissingMultihopRoute = sdkerrors.Register( + ModuleName, + 1143, + "Must supply at least 1 route for multihop swap", + ) + ErrZeroMaxAmountOut = sdkerrors.Register( + ModuleName, + 1144, + "MaxAmountOut must be nil or > 0.", + ) + ErrInvalidMaxAmountOutForMaker = sdkerrors.Register( + ModuleName, + 1145, + "MaxAmountOut can only be set for taker only limit orders.", + ) + ErrInvalidFee = sdkerrors.Register( + ModuleName, + 1148, + "Fee must must a legal fee amount:", + ) +) diff --git a/x/dex/types/events.go b/x/dex/types/events.go new file mode 100644 index 000000000..1d428f844 --- /dev/null +++ b/x/dex/types/events.go @@ -0,0 +1,227 @@ +package types + +import ( + "strconv" + "strings" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func CreateDepositEvent( + creator sdk.AccAddress, + receiver sdk.AccAddress, + token0 string, + token1 string, + tickIndex int64, + fee uint64, + depositAmountReserve0 sdk.Int, + depositAmountReserve1 sdk.Int, + sharesMinted sdk.Int, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, DepositEventKey), + sdk.NewAttribute(DepositEventCreator, creator.String()), + sdk.NewAttribute(DepositEventReceiver, receiver.String()), + sdk.NewAttribute(DepositEventToken0, token0), + sdk.NewAttribute(DepositEventToken1, token1), + sdk.NewAttribute(DepositEventPrice, strconv.FormatInt(tickIndex, 10)), + sdk.NewAttribute(DepositEventFee, strconv.FormatUint(fee, 10)), + sdk.NewAttribute(DepositEventReserves0Deposited, depositAmountReserve0.String()), + sdk.NewAttribute(DepositEventReserves1Deposited, depositAmountReserve1.String()), + sdk.NewAttribute(DepositEventSharesMinted, sharesMinted.String()), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} + +func CreateWithdrawEvent( + creator sdk.AccAddress, + receiver sdk.AccAddress, + token0 string, + token1 string, + tickIndex int64, + fee uint64, + withdrawAmountReserve0 sdk.Int, + withdrawAmountReserve1 sdk.Int, + sharesRemoved sdk.Int, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, WithdrawEventKey), + sdk.NewAttribute(WithdrawEventCreator, creator.String()), + sdk.NewAttribute(WithdrawEventReceiver, receiver.String()), + sdk.NewAttribute(WithdrawEventToken0, token0), + sdk.NewAttribute(WithdrawEventToken1, token1), + sdk.NewAttribute(WithdrawEventPrice, strconv.FormatInt(tickIndex, 10)), + sdk.NewAttribute(WithdrawEventFee, strconv.FormatUint(fee, 10)), + sdk.NewAttribute(WithdrawEventReserves0Withdrawn, withdrawAmountReserve0.String()), + sdk.NewAttribute(WithdrawEventReserves1Withdrawn, withdrawAmountReserve1.String()), + sdk.NewAttribute(WithdrawEventSharesRemoved, sharesRemoved.String()), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} + +func CreateMultihopSwapEvent( + creator sdk.AccAddress, + receiver sdk.AccAddress, + makerDenom string, + tokenOut string, + amountIn sdk.Int, + amountOut sdk.Int, + route []string, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, MultihopSwapEventKey), + sdk.NewAttribute(MultihopSwapEventCreator, creator.String()), + sdk.NewAttribute(MultihopSwapEventReceiver, receiver.String()), + sdk.NewAttribute(MultihopSwapEventTokenIn, makerDenom), + sdk.NewAttribute(MultihopSwapEventTokenOut, tokenOut), + sdk.NewAttribute(MultihopSwapEventAmountIn, amountIn.String()), + sdk.NewAttribute(MultihopSwapEventAmountOut, amountOut.String()), + sdk.NewAttribute(MultihopSwapEventRoute, strings.Join(route, ",")), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} + +func CreatePlaceLimitOrderEvent( + creator sdk.AccAddress, + receiver sdk.AccAddress, + token0 string, + token1 string, + makerDenom string, + tokenOut string, + amountIn sdk.Int, + limitTick int64, + orderType string, + shares sdk.Int, + trancheKey string, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, PlaceLimitOrderEventKey), + sdk.NewAttribute(PlaceLimitOrderEventCreator, creator.String()), + sdk.NewAttribute(PlaceLimitOrderEventReceiver, receiver.String()), + sdk.NewAttribute(PlaceLimitOrderEventToken0, token0), + sdk.NewAttribute(PlaceLimitOrderEventToken1, token1), + sdk.NewAttribute(PlaceLimitOrderEventTokenIn, makerDenom), + sdk.NewAttribute(PlaceLimitOrderEventTokenOut, tokenOut), + sdk.NewAttribute(PlaceLimitOrderEventAmountIn, amountIn.String()), + sdk.NewAttribute(PlaceLimitOrderEventLimitTick, strconv.FormatInt(limitTick, 10)), + sdk.NewAttribute(PlaceLimitOrderEventOrderType, orderType), + sdk.NewAttribute(PlaceLimitOrderEventShares, shares.String()), + sdk.NewAttribute(PlaceLimitOrderEventTrancheKey, trancheKey), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} + +func WithdrawFilledLimitOrderEvent( + creator sdk.AccAddress, + token0 string, + token1 string, + makerDenom string, + tokenOut string, + amountOut sdk.Int, + trancheKey string, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, WithdrawFilledLimitOrderEventKey), + sdk.NewAttribute(WithdrawFilledLimitOrderEventCreator, creator.String()), + sdk.NewAttribute(WithdrawFilledLimitOrderEventToken0, token0), + sdk.NewAttribute(WithdrawFilledLimitOrderEventToken1, token1), + sdk.NewAttribute(WithdrawFilledLimitOrderEventTokenIn, makerDenom), + sdk.NewAttribute(WithdrawFilledLimitOrderEventTokenOut, tokenOut), + sdk.NewAttribute(WithdrawFilledLimitOrderEventTrancheKey, trancheKey), + sdk.NewAttribute(WithdrawFilledLimitOrderEventAmountOut, amountOut.String()), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} + +func CancelLimitOrderEvent( + creator sdk.AccAddress, + token0 string, + token1 string, + makerDenom string, + tokenOut string, + amountOut sdk.Int, + trancheKey string, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, CancelLimitOrderEventKey), + sdk.NewAttribute(CancelLimitOrderEventCreator, creator.String()), + sdk.NewAttribute(CancelLimitOrderEventToken0, token0), + sdk.NewAttribute(CancelLimitOrderEventToken1, token1), + sdk.NewAttribute(CancelLimitOrderEventTokenIn, makerDenom), + sdk.NewAttribute(CancelLimitOrderEventTokenOut, tokenOut), + sdk.NewAttribute(CancelLimitOrderEventAmountOut, amountOut.String()), + sdk.NewAttribute(CancelLimitOrderEventTrancheKey, trancheKey), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} + +func TickUpdateEvent( + token0 string, + token1 string, + makerDenom string, + tickIndex int64, + reserves sdk.Int, + otherAttrs ...sdk.Attribute, +) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, TickUpdateEventKey), + sdk.NewAttribute(TickUpdateEventToken0, token0), + sdk.NewAttribute(TickUpdateEventToken1, token1), + sdk.NewAttribute(TickUpdateEventTokenIn, makerDenom), + sdk.NewAttribute(TickUpdateEventTickIndex, strconv.FormatInt(tickIndex, 10)), + sdk.NewAttribute(TickUpdateEventFee, strconv.FormatInt(tickIndex, 10)), + sdk.NewAttribute(TickUpdateEventReserves, reserves.String()), + } + attrs = append(attrs, otherAttrs...) + + return sdk.NewEvent(EventTypeTickUpdate, attrs...) +} + +func CreateTickUpdatePoolReserves(tick PoolReserves) sdk.Event { + tradePairID := tick.Key.TradePairID + pairID := tradePairID.MustPairID() + return TickUpdateEvent( + pairID.Token0, + pairID.Token1, + tradePairID.MakerDenom, + tick.Key.TickIndexTakerToMaker, + tick.ReservesMakerDenom, + sdk.NewAttribute(TickUpdateEventFee, strconv.FormatUint(tick.Key.Fee, 10)), + ) +} + +func CreateTickUpdateLimitOrderTranche(tranche *LimitOrderTranche) sdk.Event { + tradePairID := tranche.Key.TradePairID + pairID := tradePairID.MustPairID() + return TickUpdateEvent( + pairID.Token0, + pairID.Token1, + tradePairID.MakerDenom, + tranche.Key.TickIndexTakerToMaker, + tranche.ReservesMakerDenom, + sdk.NewAttribute(TickUpdateEventTrancheKey, tranche.Key.TrancheKey), + ) +} + +func GoodTilPurgeHitLimitEvent(gas sdk.Gas) sdk.Event { + attrs := []sdk.Attribute{ + sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), + sdk.NewAttribute(sdk.AttributeKeyAction, GoodTilPurgeHitGasLimitEventKey), + sdk.NewAttribute(GoodTilPurgeHitGasLimitEventGas, strconv.FormatUint(gas, 10)), + } + + return sdk.NewEvent(sdk.EventTypeMessage, attrs...) +} diff --git a/x/dex/types/expected_keepers.go b/x/dex/types/expected_keepers.go new file mode 100644 index 000000000..22d02f63c --- /dev/null +++ b/x/dex/types/expected_keepers.go @@ -0,0 +1,17 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// BankKeeper defines the expected interface needed to retrieve account balances. +type BankKeeper interface { + // Methods imported from bank should be defined here + SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error + SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error + MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error + BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error + IterateAccountBalances(ctx sdk.Context, addr sdk.AccAddress, cb func(sdk.Coin) bool) + SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetSupply(ctx sdk.Context, denom string) sdk.Coin +} diff --git a/x/dex/types/genesis.go b/x/dex/types/genesis.go new file mode 100644 index 000000000..645614e97 --- /dev/null +++ b/x/dex/types/genesis.go @@ -0,0 +1,74 @@ +package types + +import ( + "fmt" +) + +// DefaultGenesis returns the default Capability genesis state +func DefaultGenesis() *GenesisState { + return &GenesisState{ + LimitOrderTrancheUserList: []*LimitOrderTrancheUser{}, + TickLiquidityList: []*TickLiquidity{}, + InactiveLimitOrderTrancheList: []*LimitOrderTranche{}, + PoolMetadataList: []PoolMetadata{}, + // this line is used by starport scaffolding # genesis/types/default + Params: DefaultParams(), + } +} + +// Validate performs basic genesis state validation returning an error upon any +// failure. +func (gs GenesisState) Validate() error { + // Check for duplicated index in LimitOrderTrancheUser + LimitOrderTrancheUserIndexMap := make(map[string]struct{}) + + for _, elem := range gs.LimitOrderTrancheUserList { + index := string(LimitOrderTrancheUserKey(elem.Address, elem.TrancheKey)) + if _, ok := LimitOrderTrancheUserIndexMap[index]; ok { + return fmt.Errorf("duplicated index for LimitOrderTrancheUser") + } + LimitOrderTrancheUserIndexMap[index] = struct{}{} + } + + // Check for duplicated index in tickLiquidity + tickLiquidityIndexMap := make(map[string]struct{}) + + for _, elem := range gs.TickLiquidityList { + var index string + switch liquidity := elem.Liquidity.(type) { + case *TickLiquidity_PoolReserves: + index = string(liquidity.PoolReserves.Key.KeyMarshal()) + case *TickLiquidity_LimitOrderTranche: + index = string(liquidity.LimitOrderTranche.Key.KeyMarshal()) + } + if _, ok := tickLiquidityIndexMap[index]; ok { + return fmt.Errorf("duplicated index for tickLiquidity") + } + tickLiquidityIndexMap[index] = struct{}{} + } + // Check for duplicated index in inactiveLimitOrderTranche + inactiveLimitOrderTrancheKeyMap := make(map[string]struct{}) + + for _, elem := range gs.InactiveLimitOrderTrancheList { + index := string(elem.Key.KeyMarshal()) + if _, ok := inactiveLimitOrderTrancheKeyMap[index]; ok { + return fmt.Errorf("duplicated index for inactiveLimitOrderTranche") + } + inactiveLimitOrderTrancheKeyMap[index] = struct{}{} + } + // Check for duplicated ID in poolMetadata + poolMetadataIDMap := make(map[uint64]bool) + poolMetadataCount := gs.GetPoolCount() + for _, elem := range gs.PoolMetadataList { + if _, ok := poolMetadataIDMap[elem.ID]; ok { + return fmt.Errorf("duplicated id for poolMetadata") + } + if elem.ID >= poolMetadataCount { + return fmt.Errorf("poolMetadata id should be lower or equal than the last id") + } + poolMetadataIDMap[elem.ID] = true + } + // this line is used by starport scaffolding # genesis/types/validate + + return gs.Params.Validate() +} diff --git a/x/dex/types/genesis.pb.go b/x/dex/types/genesis.pb.go new file mode 100644 index 000000000..d1469d8d6 --- /dev/null +++ b/x/dex/types/genesis.pb.go @@ -0,0 +1,616 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the dex module's genesis state. +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + TickLiquidityList []*TickLiquidity `protobuf:"bytes,2,rep,name=tickLiquidityList,proto3" json:"tickLiquidityList,omitempty"` + InactiveLimitOrderTrancheList []*LimitOrderTranche `protobuf:"bytes,3,rep,name=inactiveLimitOrderTrancheList,proto3" json:"inactiveLimitOrderTrancheList,omitempty"` + LimitOrderTrancheUserList []*LimitOrderTrancheUser `protobuf:"bytes,4,rep,name=limitOrderTrancheUserList,proto3" json:"limitOrderTrancheUserList,omitempty"` + PoolMetadataList []PoolMetadata `protobuf:"bytes,5,rep,name=poolMetadataList,proto3" json:"poolMetadataList"` + PoolCount uint64 `protobuf:"varint,6,opt,name=poolCount,proto3" json:"poolCount,omitempty"` +} + +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_6ccf50bb6779a67a, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetTickLiquidityList() []*TickLiquidity { + if m != nil { + return m.TickLiquidityList + } + return nil +} + +func (m *GenesisState) GetInactiveLimitOrderTrancheList() []*LimitOrderTranche { + if m != nil { + return m.InactiveLimitOrderTrancheList + } + return nil +} + +func (m *GenesisState) GetLimitOrderTrancheUserList() []*LimitOrderTrancheUser { + if m != nil { + return m.LimitOrderTrancheUserList + } + return nil +} + +func (m *GenesisState) GetPoolMetadataList() []PoolMetadata { + if m != nil { + return m.PoolMetadataList + } + return nil +} + +func (m *GenesisState) GetPoolCount() uint64 { + if m != nil { + return m.PoolCount + } + return 0 +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "duality.dex.GenesisState") +} + +func init() { proto.RegisterFile("duality/dex/genesis.proto", fileDescriptor_6ccf50bb6779a67a) } + +var fileDescriptor_6ccf50bb6779a67a = []byte{ + // 392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x4e, 0xea, 0x40, + 0x14, 0xc6, 0xdb, 0x0b, 0x97, 0xe4, 0x0e, 0x77, 0x71, 0x6f, 0x75, 0x51, 0x1a, 0x2d, 0x0d, 0x89, + 0x09, 0xd1, 0xd8, 0x46, 0x7c, 0x03, 0x8c, 0x71, 0x21, 0xfe, 0x09, 0xe2, 0xc6, 0x4d, 0x33, 0xb4, + 0x63, 0x19, 0x6d, 0x3b, 0xd8, 0x99, 0x1a, 0x78, 0x0b, 0x1f, 0x8b, 0x25, 0x4b, 0x57, 0xc6, 0xc0, + 0x8b, 0x98, 0xf9, 0x43, 0x6c, 0x25, 0xe2, 0xae, 0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e, + 0xb4, 0x2b, 0x42, 0xdb, 0x2e, 0x69, 0xaf, 0x91, 0x4a, 0x7f, 0xb3, 0x94, 0x71, 0x0f, 0x1a, 0xf1, + 0xd7, 0xc6, 0x2d, 0x45, 0x99, 0xf0, 0xa9, 0x0a, 0x9f, 0xd6, 0x66, 0x1f, 0x4e, 0x2b, 0xaf, 0xef, + 0xa5, 0x8c, 0x73, 0xf0, 0x8f, 0x9f, 0xff, 0x42, 0x5d, 0x5f, 0xc8, 0xff, 0x16, 0xf2, 0x8d, 0xf2, + 0x81, 0x0b, 0x90, 0x3a, 0xf3, 0xda, 0xa0, 0xb1, 0x03, 0xfe, 0xf0, 0xda, 0x09, 0xc9, 0x53, 0x66, + 0xd6, 0x1c, 0xbd, 0x5d, 0xed, 0x7f, 0x16, 0xba, 0xa7, 0xb3, 0x85, 0xad, 0xcf, 0x17, 0xb6, 0xfe, + 0xbe, 0xb0, 0xf5, 0x97, 0xa5, 0xad, 0xcd, 0x97, 0xb6, 0xf6, 0xba, 0xb4, 0xb5, 0xbb, 0x83, 0x08, + 0xb3, 0x51, 0x3e, 0x74, 0x03, 0x92, 0x78, 0xca, 0xf4, 0x30, 0x86, 0x43, 0xba, 0xfa, 0xf1, 0x26, + 0xf2, 0x25, 0x4d, 0xc7, 0x88, 0x0e, 0x6b, 0xe2, 0x81, 0x1c, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, + 0xb6, 0x99, 0x5f, 0x53, 0x10, 0x03, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PoolCount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.PoolCount)) + i-- + dAtA[i] = 0x30 + } + if len(m.PoolMetadataList) > 0 { + for iNdEx := len(m.PoolMetadataList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PoolMetadataList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.LimitOrderTrancheUserList) > 0 { + for iNdEx := len(m.LimitOrderTrancheUserList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LimitOrderTrancheUserList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.InactiveLimitOrderTrancheList) > 0 { + for iNdEx := len(m.InactiveLimitOrderTrancheList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InactiveLimitOrderTrancheList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TickLiquidityList) > 0 { + for iNdEx := len(m.TickLiquidityList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TickLiquidityList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.TickLiquidityList) > 0 { + for _, e := range m.TickLiquidityList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.InactiveLimitOrderTrancheList) > 0 { + for _, e := range m.InactiveLimitOrderTrancheList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.LimitOrderTrancheUserList) > 0 { + for _, e := range m.LimitOrderTrancheUserList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.PoolMetadataList) > 0 { + for _, e := range m.PoolMetadataList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.PoolCount != 0 { + n += 1 + sovGenesis(uint64(m.PoolCount)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TickLiquidityList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TickLiquidityList = append(m.TickLiquidityList, &TickLiquidity{}) + if err := m.TickLiquidityList[len(m.TickLiquidityList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InactiveLimitOrderTrancheList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InactiveLimitOrderTrancheList = append(m.InactiveLimitOrderTrancheList, &LimitOrderTranche{}) + if err := m.InactiveLimitOrderTrancheList[len(m.InactiveLimitOrderTrancheList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrderTrancheUserList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LimitOrderTrancheUserList = append(m.LimitOrderTrancheUserList, &LimitOrderTrancheUser{}) + if err := m.LimitOrderTrancheUserList[len(m.LimitOrderTrancheUserList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolMetadataList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PoolMetadataList = append(m.PoolMetadataList, PoolMetadata{}) + if err := m.PoolMetadataList[len(m.PoolMetadataList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolCount", wireType) + } + m.PoolCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PoolCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/genesis_test.go b/x/dex/types/genesis_test.go new file mode 100644 index 000000000..4a86c25d8 --- /dev/null +++ b/x/dex/types/genesis_test.go @@ -0,0 +1,196 @@ +package types_test + +import ( + "testing" + + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestGenesisState_Validate(t *testing.T) { + for _, tc := range []struct { + desc string + genState *types.GenesisState + valid bool + }{ + { + desc: "default is valid", + genState: types.DefaultGenesis(), + valid: true, + }, + { + desc: "valid genesis state", + genState: &types.GenesisState{ + LimitOrderTrancheUserList: []*types.LimitOrderTrancheUser{ + { + TrancheKey: "0", + Address: "0", + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + }, + { + TrancheKey: "1", + Address: "1", + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + }, + }, + TickLiquidityList: []*types.TickLiquidity{ + { + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: &types.LimitOrderTranche{ + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + }, + }, + { + Liquidity: &types.TickLiquidity_PoolReserves{ + PoolReserves: &types.PoolReserves{ + Key: &types.PoolReservesKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + Fee: 0, + }, + }, + }, + }, + }, + InactiveLimitOrderTrancheList: []*types.LimitOrderTranche{ + { + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + { + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{TakerDenom: "TokenA", MakerDenom: "TokenB"}, + TickIndexTakerToMaker: 1, + TrancheKey: "1", + }, + }, + }, + PoolMetadataList: []types.PoolMetadata{ + { + ID: 0, + }, + { + ID: 1, + }, + }, + PoolCount: 2, + // this line is used by starport scaffolding # types/genesis/validField + }, + valid: true, + }, + { + desc: "duplicated LimitOrderTrancheUser", + genState: &types.GenesisState{ + LimitOrderTrancheUserList: []*types.LimitOrderTrancheUser{ + { + TrancheKey: "0", + Address: "0", + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + }, + { + TrancheKey: "0", + Address: "0", + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + }, + }, + }, + valid: false, + }, + { + desc: "duplicated tickLiquidity", + genState: &types.GenesisState{ + TickLiquidityList: []*types.TickLiquidity{ + { + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: &types.LimitOrderTranche{ + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + }, + }, + { + Liquidity: &types.TickLiquidity_LimitOrderTranche{ + LimitOrderTranche: &types.LimitOrderTranche{ + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + }, + }, + }, + }, + valid: false, + }, + { + desc: "duplicated inactiveLimitOrderTranche", + genState: &types.GenesisState{ + InactiveLimitOrderTrancheList: []*types.LimitOrderTranche{ + { + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + { + Key: &types.LimitOrderTrancheKey{ + TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TickIndexTakerToMaker: 0, + TrancheKey: "0", + }, + }, + }, + }, + valid: false, + }, + { + desc: "duplicated poolMetadata", + genState: &types.GenesisState{ + PoolMetadataList: []types.PoolMetadata{ + { + ID: 0, + }, + { + ID: 0, + }, + }, + }, + valid: false, + }, + { + desc: "invalid poolCount", + genState: &types.GenesisState{ + PoolMetadataList: []types.PoolMetadata{ + { + ID: 1, + }, + }, + PoolCount: 0, + }, + valid: false, + }, + // this line is used by starport scaffolding # types/genesis/testcase + } { + t.Run(tc.desc, func(t *testing.T) { + err := tc.genState.Validate() + if tc.valid { + require.NoError(t, err) + } else { + require.Error(t, err) + } + }) + } +} diff --git a/x/dex/types/keys.go b/x/dex/types/keys.go new file mode 100644 index 000000000..a00a6b0bf --- /dev/null +++ b/x/dex/types/keys.go @@ -0,0 +1,296 @@ +package types + +import ( + "errors" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/utils" +) + +const ( + // ModuleName defines the module name + ModuleName = "dex" + + // StoreKey defines the primary module store key + StoreKey = ModuleName + + // RouterKey is the message route for slashing + RouterKey = ModuleName + + // QuerierRoute defines the module's query routing key + QuerierRoute = ModuleName + + // MemStoreKey defines the in-memory store key + MemStoreKey = "mem_dex" +) + +const ( + // TickLiquidityKeyPrefix is the prefix to retrieve all TickLiquidity + TickLiquidityKeyPrefix = "TickLiquidity/value/" + + // LimitOrderTrancheUserKeyPrefix is the prefix to retrieve all LimitOrderTrancheUser + LimitOrderTrancheUserKeyPrefix = "LimitOrderTrancheUser/value" + + // InactiveLimitOrderTrancheKeyPrefix is the prefix to retrieve all InactiveLimitOrderTranche + InactiveLimitOrderTrancheKeyPrefix = "InactiveLimitOrderTranche/value/" + + // LimitOrderExpirationKeyPrefix is the prefix to retrieve all LimitOrderExpiration + LimitOrderExpirationKeyPrefix = "LimitOrderExpiration/value/" + + // PoolIDKeyPrefix is the prefix to retrieve all PoolIds or retrieve a specific pool by pair+tick+fee + PoolIDKeyPrefix = "Pool/id/" + + // PoolMetadataKeyPrefix is the prefix to retrieve all PoolMetadata + PoolMetadataKeyPrefix = "PoolMetadata/value/" + + // PoolCountKeyPrefix is the prefix to retrieve the Pool count + PoolCountKeyPrefix = "Pool/count/" +) + +func KeyPrefix(p string) []byte { + key := []byte(p) + key = append(key, []byte("/")...) + return key +} + +func TickIndexToBytes(tickTakerToMaker int64) []byte { + key := make([]byte, 9) + if tickTakerToMaker < 0 { + copy(key[1:], sdk.Uint64ToBigEndian(uint64(tickTakerToMaker))) + } else { + copy(key[:1], []byte{0x01}) + copy(key[1:], sdk.Uint64ToBigEndian(uint64(tickTakerToMaker))) + } + + return key +} + +func BytesToTickIndex(bz []byte) (int64, error) { + if len(bz) != 9 { + return 0, errors.New("input should be 9 bytes long") + } + + isNegative := bz[0] == 0 + tickTakerToMaker := sdk.BigEndianToUint64(bz[1:]) + + if isNegative { + return int64(-tickTakerToMaker), nil + } else { + return int64(tickTakerToMaker), nil + } +} + +// LimitOrderTrancheUserKey returns the store key to retrieve a LimitOrderTrancheUser from the index fields +func LimitOrderTrancheUserKey(address, trancheKey string) []byte { + var key []byte + + addressBytes := []byte(address) + key = append(key, addressBytes...) + key = append(key, []byte("/")...) + + trancheKeyBytes := []byte(trancheKey) + key = append(key, trancheKeyBytes...) + key = append(key, []byte("/")...) + + return key +} + +func LimitOrderTrancheUserAddressPrefix(address string) []byte { + key := KeyPrefix(LimitOrderTrancheUserKeyPrefix) + addressBytes := []byte(address) + key = append(key, addressBytes...) + key = append(key, []byte("/")...) + + return key +} + +func TimeBytes(timestamp time.Time) []byte { + unixMs := uint64(timestamp.UnixMilli()) + str := utils.Uint64ToSortableString(unixMs) + return []byte(str) +} + +func TickLiquidityLimitOrderPrefix( + tradePairID *TradePairID, + tickIndexTakerTomMaker int64, +) []byte { + key := KeyPrefix(TickLiquidityKeyPrefix) + + pairIDBytes := []byte(tradePairID.MustPairID().CanonicalString()) + key = append(key, pairIDBytes...) + key = append(key, []byte("/")...) + + makerDenomBytes := []byte(tradePairID.MakerDenom) + key = append(key, makerDenomBytes...) + key = append(key, []byte("/")...) + + tickIndexBytes := TickIndexToBytes(tickIndexTakerTomMaker) + key = append(key, tickIndexBytes...) + key = append(key, []byte("/")...) + + liquidityTypeBytes := []byte(LiquidityTypeLimitOrder) + key = append(key, liquidityTypeBytes...) + key = append(key, []byte("/")...) + + return key +} + +func TickLiquidityPrefix(tradePairID *TradePairID) []byte { + var key []byte + key = append(KeyPrefix(TickLiquidityKeyPrefix), KeyPrefix(tradePairID.MustPairID().CanonicalString())...) + key = append(key, KeyPrefix(tradePairID.MakerDenom)...) + + return key +} + +func LimitOrderExpirationKey( + goodTilDate time.Time, + trancheRef []byte, +) []byte { + var key []byte + + goodTilDateBytes := TimeBytes(goodTilDate) + key = append(key, goodTilDateBytes...) + key = append(key, []byte("/")...) + + key = append(key, trancheRef...) + key = append(key, []byte("/")...) + + return key +} + +func PoolIDKey( + pairID *PairID, + tickIndex int64, + fee uint64, +) []byte { + key := []byte(pairID.CanonicalString()) + key = append(key, []byte("/")...) + + tickIndexBytes := TickIndexToBytes(tickIndex) + key = append(key, tickIndexBytes...) + key = append(key, []byte("/")...) + + feeBytes := sdk.Uint64ToBigEndian(fee) + key = append(key, feeBytes...) + key = append(key, []byte("/")...) + + return key +} + +// Deposit Event Attributes +const ( + DepositEventKey = "DepositLP" + DepositEventCreator = "Creator" + DepositEventToken0 = "TokenZero" + DepositEventToken1 = "TokenOne" + DepositEventPrice = "TickIndex" + DepositEventFee = "Fee" + DepositEventReceiver = "Receiver" + DepositEventReserves0Deposited = "ReservesZeroDeposited" + DepositEventReserves1Deposited = "ReservesOneDeposited" + DepositEventSharesMinted = "SharesMinted" +) + +// Withdraw Event Attributes +const ( + WithdrawEventKey = "WithdrawLP" + WithdrawEventCreator = "Creator" + WithdrawEventToken0 = "TokenZero" + WithdrawEventToken1 = "TokenOne" + WithdrawEventPrice = "TickIndex" + WithdrawEventFee = "Fee" + WithdrawEventReceiver = "Receiver" + WithdrawEventReserves0Withdrawn = "ReservesZeroWithdrawn" + WithdrawEventReserves1Withdrawn = "ReservesOneWithdrawn" + WithdrawEventSharesRemoved = "SharesRemoved" +) + +// Multihop-Swap Event Attributes +const ( + MultihopSwapEventKey = "MultihopSwap" + MultihopSwapEventCreator = "Creator" + MultihopSwapEventReceiver = "Receiver" + MultihopSwapEventTokenIn = "TokenIn" + MultihopSwapEventTokenOut = "TokenOut" + MultihopSwapEventAmountIn = "AmountIn" + MultihopSwapEventAmountOut = "AmountOut" + MultihopSwapEventRoute = "Route" +) + +// Place LimitOrder Event Attributes +const ( + PlaceLimitOrderEventKey = "PlaceLimitOrder" + PlaceLimitOrderEventCreator = "Creator" + PlaceLimitOrderEventReceiver = "Receiver" + PlaceLimitOrderEventToken0 = "TokenZero" + PlaceLimitOrderEventToken1 = "TokenOne" + PlaceLimitOrderEventTokenIn = "TokenIn" + PlaceLimitOrderEventTokenOut = "TokenOut" + PlaceLimitOrderEventAmountIn = "AmountIn" + PlaceLimitOrderEventLimitTick = "LimitTick" + PlaceLimitOrderEventOrderType = "OrderType" + PlaceLimitOrderEventShares = "Shares" + PlaceLimitOrderEventTrancheKey = "TrancheKey" +) + +// Withdraw LimitOrder Event Attributes +const ( + WithdrawFilledLimitOrderEventKey = "WithdrawLimitOrder" + WithdrawFilledLimitOrderEventCreator = "Creator" + WithdrawFilledLimitOrderEventToken0 = "TokenZero" + WithdrawFilledLimitOrderEventToken1 = "TokenOne" + WithdrawFilledLimitOrderEventTokenIn = "TokenIn" + WithdrawFilledLimitOrderEventTokenOut = "TokenOut" + WithdrawFilledLimitOrderEventTrancheKey = "TrancheKey" + WithdrawFilledLimitOrderEventAmountOut = "AmountOut" +) + +// Cancel LimitOrder Event Attributes +const ( + CancelLimitOrderEventKey = "CancelLimitOrder" + CancelLimitOrderEventCreator = "Creator" + CancelLimitOrderEventToken0 = "TokenZero" + CancelLimitOrderEventToken1 = "TokenOne" + CancelLimitOrderEventTokenIn = "TokenIn" + CancelLimitOrderEventTokenOut = "TokenOut" + CancelLimitOrderEventTrancheKey = "TrancheKey" + CancelLimitOrderEventAmountOut = "AmountOut" +) + +// Tick Update Event Attributes +const ( + EventTypeTickUpdate = "TickUpdate" + TickUpdateEventKey = "TickUpdate" + TickUpdateEventToken0 = "TokenZero" + TickUpdateEventToken1 = "TokenOne" + TickUpdateEventTokenIn = "TokenIn" + TickUpdateEventTickIndex = "TickIndex" + TickUpdateEventFee = "Fee" + TickUpdateEventTrancheKey = "TrancheKey" + TickUpdateEventReserves = "Reserves" +) + +const ( + GoodTilPurgeHitGasLimitEventKey = "GoodTilPurgeHitGasLimit" + GoodTilPurgeHitGasLimitEventGas = "Gas" +) + +const ( + // NOTE: have to add letter so that LP deposits are indexed ahead of LimitOrders + LiquidityTypePoolReserves = "A_PoolDeposit" + LiquidityTypeLimitOrder = "B_LODeposit" +) + +func JITGoodTilTime() time.Time { + return time.Time{} +} + +const ( + // NOTE: This number is based current cost of all operations in EndBlock, + // if that changes this value must be updated to ensure there is enough + // remaining gas (weak proxy for timeoutPrepareProposal) to complete endBlock + GoodTilPurgeGasBuffer = 50_000 + ExpiringLimitOrderGas = 10_000 +) diff --git a/x/dex/types/limit_order_expiration.pb.go b/x/dex/types/limit_order_expiration.pb.go new file mode 100644 index 000000000..06347e92e --- /dev/null +++ b/x/dex/types/limit_order_expiration.pb.go @@ -0,0 +1,381 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/limit_order_expiration.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LimitOrderExpiration struct { + // see limitOrderTranche.proto for details on goodTilDate + ExpirationTime time.Time `protobuf:"bytes,1,opt,name=expirationTime,proto3,stdtime" json:"expirationTime"` + TrancheRef []byte `protobuf:"bytes,2,opt,name=trancheRef,proto3" json:"trancheRef,omitempty"` +} + +func (m *LimitOrderExpiration) Reset() { *m = LimitOrderExpiration{} } +func (m *LimitOrderExpiration) String() string { return proto.CompactTextString(m) } +func (*LimitOrderExpiration) ProtoMessage() {} +func (*LimitOrderExpiration) Descriptor() ([]byte, []int) { + return fileDescriptor_8874a00326735ee6, []int{0} +} +func (m *LimitOrderExpiration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LimitOrderExpiration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LimitOrderExpiration.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 *LimitOrderExpiration) XXX_Merge(src proto.Message) { + xxx_messageInfo_LimitOrderExpiration.Merge(m, src) +} +func (m *LimitOrderExpiration) XXX_Size() int { + return m.Size() +} +func (m *LimitOrderExpiration) XXX_DiscardUnknown() { + xxx_messageInfo_LimitOrderExpiration.DiscardUnknown(m) +} + +var xxx_messageInfo_LimitOrderExpiration proto.InternalMessageInfo + +func (m *LimitOrderExpiration) GetExpirationTime() time.Time { + if m != nil { + return m.ExpirationTime + } + return time.Time{} +} + +func (m *LimitOrderExpiration) GetTrancheRef() []byte { + if m != nil { + return m.TrancheRef + } + return nil +} + +func init() { + proto.RegisterType((*LimitOrderExpiration)(nil), "duality.dex.LimitOrderExpiration") +} + +func init() { + proto.RegisterFile("duality/dex/limit_order_expiration.proto", fileDescriptor_8874a00326735ee6) +} + +var fileDescriptor_8874a00326735ee6 = []byte{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0xcf, 0xc9, 0xcc, 0xcd, 0x2c, 0x89, 0xcf, 0x2f, + 0x4a, 0x49, 0x2d, 0x8a, 0x4f, 0xad, 0x28, 0xc8, 0x2c, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xaa, 0xd4, 0x4b, 0x49, 0xad, 0x90, 0x92, 0x4f, 0xcf, + 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x4b, 0x25, 0x95, 0xa6, 0xe9, 0x97, 0x64, 0xe6, 0xa6, 0x16, + 0x97, 0x24, 0xe6, 0x16, 0x40, 0x54, 0x4b, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, + 0x16, 0x44, 0x54, 0xa9, 0x85, 0x91, 0x4b, 0xc4, 0x07, 0x64, 0x89, 0x3f, 0xc8, 0x0e, 0x57, 0xb8, + 0x15, 0x42, 0x3e, 0x5c, 0x7c, 0x08, 0x0b, 0x43, 0x32, 0x73, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, + 0xb8, 0x8d, 0xa4, 0xf4, 0x20, 0x16, 0xe9, 0xc1, 0x2c, 0xd2, 0x0b, 0x81, 0x59, 0xe4, 0xc4, 0x71, + 0xe2, 0x9e, 0x3c, 0xc3, 0x84, 0xfb, 0xf2, 0x8c, 0x41, 0x68, 0x7a, 0x85, 0xe4, 0xb8, 0xb8, 0x4a, + 0x8a, 0x12, 0xf3, 0x92, 0x33, 0x52, 0x83, 0x52, 0xd3, 0x24, 0x98, 0x14, 0x18, 0x35, 0x78, 0x82, + 0x90, 0x44, 0x9c, 0x5c, 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, 0x3b, + 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xea, 0x5f, 0xdd, 0x9c, 0xc4, + 0xa4, 0x62, 0x18, 0x47, 0xbf, 0x02, 0x1c, 0x50, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, + 0x47, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xb3, 0x50, 0x04, 0x44, 0x01, 0x00, 0x00, +} + +func (m *LimitOrderExpiration) 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 *LimitOrderExpiration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LimitOrderExpiration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheRef) > 0 { + i -= len(m.TrancheRef) + copy(dAtA[i:], m.TrancheRef) + i = encodeVarintLimitOrderExpiration(dAtA, i, uint64(len(m.TrancheRef))) + i-- + dAtA[i] = 0x12 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpirationTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpirationTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintLimitOrderExpiration(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintLimitOrderExpiration(dAtA []byte, offset int, v uint64) int { + offset -= sovLimitOrderExpiration(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LimitOrderExpiration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpirationTime) + n += 1 + l + sovLimitOrderExpiration(uint64(l)) + l = len(m.TrancheRef) + if l > 0 { + n += 1 + l + sovLimitOrderExpiration(uint64(l)) + } + return n +} + +func sovLimitOrderExpiration(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLimitOrderExpiration(x uint64) (n int) { + return sovLimitOrderExpiration(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LimitOrderExpiration) 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 ErrIntOverflowLimitOrderExpiration + } + 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: LimitOrderExpiration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitOrderExpiration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderExpiration + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLimitOrderExpiration + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderExpiration + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheRef", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderExpiration + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLimitOrderExpiration + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderExpiration + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrancheRef = append(m.TrancheRef[:0], dAtA[iNdEx:postIndex]...) + if m.TrancheRef == nil { + m.TrancheRef = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLimitOrderExpiration(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLimitOrderExpiration + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLimitOrderExpiration(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, ErrIntOverflowLimitOrderExpiration + } + 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, ErrIntOverflowLimitOrderExpiration + } + 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, ErrIntOverflowLimitOrderExpiration + } + 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, ErrInvalidLengthLimitOrderExpiration + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLimitOrderExpiration + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLimitOrderExpiration + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLimitOrderExpiration = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLimitOrderExpiration = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLimitOrderExpiration = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/limit_order_tranche.go b/x/dex/types/limit_order_tranche.go new file mode 100644 index 000000000..dc6b69f03 --- /dev/null +++ b/x/dex/types/limit_order_tranche.go @@ -0,0 +1,162 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/utils" +) + +func NewLimitOrderTranche( + makerDenom string, + takerDenom string, + trancheKey string, + tickIndex int64, + reservesMakerDenom sdk.Int, + reservesTakerDenom sdk.Int, + totalMakerDenom sdk.Int, + totalTakerDenom sdk.Int, +) (*LimitOrderTranche, error) { + tradePairID, err := NewTradePairID(takerDenom, makerDenom) + if err != nil { + return nil, err + } + priceTakerToMaker, err := tradePairID.PriceTakerToMaker(tickIndex) + if err != nil { + return nil, err + } + return &LimitOrderTranche{ + Key: &LimitOrderTrancheKey{ + TradePairID: tradePairID, + TrancheKey: trancheKey, + TickIndexTakerToMaker: tickIndex, + }, + ReservesMakerDenom: reservesMakerDenom, + ReservesTakerDenom: reservesTakerDenom, + TotalMakerDenom: totalMakerDenom, + TotalTakerDenom: totalTakerDenom, + PriceTakerToMaker: priceTakerToMaker, + }, nil +} + +// Useful for testing +func MustNewLimitOrderTranche( + makerDenom string, + takerDenom string, + trancheKey string, + tickIndex int64, + reservesMakerDenom sdk.Int, + reservesTakerDenom sdk.Int, + totalMakerDenom sdk.Int, + totalTakerDenom sdk.Int, +) *LimitOrderTranche { + limitOrderTranche, err := NewLimitOrderTranche( + makerDenom, + takerDenom, + trancheKey, + tickIndex, + reservesMakerDenom, + reservesTakerDenom, + totalMakerDenom, + totalTakerDenom, + ) + if err != nil { + panic(err) + } + return limitOrderTranche +} + +func (t LimitOrderTranche) IsPlaceTranche() bool { + return t.ReservesMakerDenom.Equal(t.TotalMakerDenom) +} + +func (t LimitOrderTranche) IsFilled() bool { + return t.ReservesMakerDenom.IsZero() +} + +func (t LimitOrderTranche) IsJIT() bool { + return t.ExpirationTime != nil && *t.ExpirationTime == JITGoodTilTime() +} + +func (t LimitOrderTranche) IsExpired(ctx sdk.Context) bool { + return t.ExpirationTime != nil && !t.IsJIT() && !t.ExpirationTime.After(ctx.BlockTime()) +} + +func (t LimitOrderTranche) HasTokenIn() bool { + return t.ReservesMakerDenom.GT(sdk.ZeroInt()) +} + +func (t LimitOrderTranche) HasTokenOut() bool { + return t.ReservesTakerDenom.GT(sdk.ZeroInt()) +} + +func (t LimitOrderTranche) Price() math_utils.PrecDec { + return t.PriceTakerToMaker +} + +func (t LimitOrderTranche) RatioFilled() math_utils.PrecDec { + amountFilled := t.PriceTakerToMaker.MulInt(t.TotalTakerDenom) + ratioFilled := amountFilled.QuoInt(t.TotalMakerDenom) + return ratioFilled +} + +func (t LimitOrderTranche) AmountUnfilled() math_utils.PrecDec { + amountFilled := t.PriceTakerToMaker.MulInt(t.TotalTakerDenom) + return math_utils.NewPrecDecFromInt(t.TotalMakerDenom).Sub(amountFilled) +} + +func (t LimitOrderTranche) HasLiquidity() bool { + return t.ReservesMakerDenom.GT(sdk.ZeroInt()) +} + +func (t *LimitOrderTranche) RemoveTokenIn( + trancheUser *LimitOrderTrancheUser, +) (amountToRemove sdk.Int) { + amountUnfilled := t.AmountUnfilled() + maxAmountToRemove := amountUnfilled.MulInt(trancheUser.SharesOwned). + QuoInt(t.TotalMakerDenom). + TruncateInt() + amountToRemove = maxAmountToRemove.Sub(trancheUser.SharesCancelled) + t.ReservesMakerDenom = t.ReservesMakerDenom.Sub(amountToRemove) + + return amountToRemove +} + +func (t *LimitOrderTranche) Withdraw(trancheUser *LimitOrderTrancheUser) (sdk.Int, math_utils.PrecDec) { + reservesTokenOutDec := math_utils.NewPrecDecFromInt(t.ReservesTakerDenom) + + ratioFilled := t.RatioFilled() + maxAllowedToWithdraw := ratioFilled.MulInt(trancheUser.SharesOwned).TruncateInt() + amountOutTokenIn := maxAllowedToWithdraw.Sub(trancheUser.SharesWithdrawn) + amountOutTokenOut := math_utils.NewPrecDecFromInt(amountOutTokenIn).Quo(t.PriceTakerToMaker) + t.ReservesTakerDenom = reservesTokenOutDec.Sub(amountOutTokenOut).TruncateInt() + + return amountOutTokenIn, amountOutTokenOut +} + +func (t *LimitOrderTranche) Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) ( + inAmount sdk.Int, + outAmount sdk.Int, +) { + reservesTokenOut := &t.ReservesMakerDenom + fillTokenIn := &t.ReservesTakerDenom + totalTokenIn := &t.TotalTakerDenom + maxOutGivenIn := t.PriceTakerToMaker.MulInt(maxAmountTakerIn).TruncateInt() + possibleOutAmounts := []sdk.Int{*reservesTokenOut, maxOutGivenIn} + if maxAmountMakerOut != nil { + possibleOutAmounts = append(possibleOutAmounts, *maxAmountMakerOut) + } + outAmount = utils.MinIntArr(possibleOutAmounts) + + inAmount = math_utils.NewPrecDecFromInt(outAmount).Quo(t.PriceTakerToMaker).Ceil().TruncateInt() + + *fillTokenIn = fillTokenIn.Add(inAmount) + *totalTokenIn = totalTokenIn.Add(inAmount) + *reservesTokenOut = reservesTokenOut.Sub(outAmount) + + return inAmount, outAmount +} + +func (t *LimitOrderTranche) PlaceMakerLimitOrder(amountIn sdk.Int) { + t.ReservesMakerDenom = t.ReservesMakerDenom.Add(amountIn) + t.TotalMakerDenom = t.TotalMakerDenom.Add(amountIn) +} diff --git a/x/dex/types/limit_order_tranche.pb.go b/x/dex/types/limit_order_tranche.pb.go new file mode 100644 index 000000000..3984c5926 --- /dev/null +++ b/x/dex/types/limit_order_tranche.pb.go @@ -0,0 +1,918 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/limit_order_tranche.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LimitOrderTrancheKey struct { + TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` + TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tickIndexTakerToMaker,proto3" json:"tickIndexTakerToMaker,omitempty"` + TrancheKey string `protobuf:"bytes,3,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` +} + +func (m *LimitOrderTrancheKey) Reset() { *m = LimitOrderTrancheKey{} } +func (m *LimitOrderTrancheKey) String() string { return proto.CompactTextString(m) } +func (*LimitOrderTrancheKey) ProtoMessage() {} +func (*LimitOrderTrancheKey) Descriptor() ([]byte, []int) { + return fileDescriptor_49e73267811ad014, []int{0} +} +func (m *LimitOrderTrancheKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LimitOrderTrancheKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LimitOrderTrancheKey.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 *LimitOrderTrancheKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_LimitOrderTrancheKey.Merge(m, src) +} +func (m *LimitOrderTrancheKey) XXX_Size() int { + return m.Size() +} +func (m *LimitOrderTrancheKey) XXX_DiscardUnknown() { + xxx_messageInfo_LimitOrderTrancheKey.DiscardUnknown(m) +} + +var xxx_messageInfo_LimitOrderTrancheKey proto.InternalMessageInfo + +func (m *LimitOrderTrancheKey) GetTradePairID() *TradePairID { + if m != nil { + return m.TradePairID + } + return nil +} + +func (m *LimitOrderTrancheKey) GetTickIndexTakerToMaker() int64 { + if m != nil { + return m.TickIndexTakerToMaker + } + return 0 +} + +func (m *LimitOrderTrancheKey) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type LimitOrderTranche struct { + Key *LimitOrderTrancheKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` + ReservesTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=reservesTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesTakerDenom" yaml:"reservesTakerDenom"` + TotalMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=totalMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTokenIn" yaml:"totalMakerDenom"` + TotalTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=totalTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTakerDenom" yaml:"totalTakerDenom"` + // JIT orders also use goodTilDate to handle deletion but represent a special case + // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live + // Order deletion still functions the same and the orders will be deleted at the end of the block + ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` + PriceTakerToMaker github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,7,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` +} + +func (m *LimitOrderTranche) Reset() { *m = LimitOrderTranche{} } +func (m *LimitOrderTranche) String() string { return proto.CompactTextString(m) } +func (*LimitOrderTranche) ProtoMessage() {} +func (*LimitOrderTranche) Descriptor() ([]byte, []int) { + return fileDescriptor_49e73267811ad014, []int{1} +} +func (m *LimitOrderTranche) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LimitOrderTranche) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LimitOrderTranche.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 *LimitOrderTranche) XXX_Merge(src proto.Message) { + xxx_messageInfo_LimitOrderTranche.Merge(m, src) +} +func (m *LimitOrderTranche) XXX_Size() int { + return m.Size() +} +func (m *LimitOrderTranche) XXX_DiscardUnknown() { + xxx_messageInfo_LimitOrderTranche.DiscardUnknown(m) +} + +var xxx_messageInfo_LimitOrderTranche proto.InternalMessageInfo + +func (m *LimitOrderTranche) GetKey() *LimitOrderTrancheKey { + if m != nil { + return m.Key + } + return nil +} + +func (m *LimitOrderTranche) GetExpirationTime() *time.Time { + if m != nil { + return m.ExpirationTime + } + return nil +} + +func init() { + proto.RegisterType((*LimitOrderTrancheKey)(nil), "duality.dex.LimitOrderTrancheKey") + proto.RegisterType((*LimitOrderTranche)(nil), "duality.dex.LimitOrderTranche") +} + +func init() { + proto.RegisterFile("duality/dex/limit_order_tranche.proto", fileDescriptor_49e73267811ad014) +} + +var fileDescriptor_49e73267811ad014 = []byte{ + // 560 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x4f, 0x8b, 0xd3, 0x4e, + 0x18, 0xc7, 0x3b, 0xbf, 0xfe, 0x5c, 0xdd, 0xa9, 0x28, 0x1b, 0x56, 0xc9, 0xf6, 0x90, 0xd4, 0x80, + 0x52, 0x90, 0x4d, 0x60, 0xd7, 0xd3, 0x1e, 0x4b, 0x3d, 0x14, 0x57, 0x5c, 0x42, 0x0e, 0xa2, 0x87, + 0x32, 0x4d, 0x1e, 0xdb, 0x21, 0x7f, 0x26, 0x4c, 0xa6, 0xd2, 0x5e, 0x05, 0xef, 0xeb, 0xd1, 0x77, + 0xe0, 0x4b, 0xe9, 0x71, 0x8f, 0xe2, 0x21, 0x4a, 0x7b, 0x10, 0xf6, 0xd8, 0x57, 0x20, 0x99, 0xa4, + 0x36, 0x6d, 0x8a, 0xb2, 0x78, 0x9a, 0xc9, 0xf3, 0xe7, 0xfb, 0x7c, 0x9e, 0x87, 0x79, 0x82, 0x1f, + 0x7b, 0x63, 0x12, 0x50, 0x31, 0xb5, 0x3c, 0x98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x9d, 0x94, 0xfa, 0x2a, 0x1e, 0xf6, 0x71, 0x40, 0x06, 0xc9, 0xea, + 0xc3, 0x1a, 0x0b, 0x1a, 0x24, 0x56, 0x48, 0xc4, 0xc8, 0xbc, 0xe0, 0xe0, 0x76, 0xc1, 0xbd, 0x4e, + 0xf5, 0xaa, 0xec, 0x32, 0xd5, 0xd5, 0xbc, 0xcb, 0x8a, 0xcb, 0xb0, 0xab, 0xe1, 0x9d, 0xe7, 0xb3, + 0xb9, 0x86, 0xae, 0xe6, 0x1a, 0xfa, 0x31, 0xd7, 0xd0, 0xe5, 0x42, 0xab, 0x5d, 0x2d, 0xb4, 0xda, + 0xd7, 0x85, 0x56, 0x7b, 0xf3, 0xf4, 0x6f, 0x44, 0x93, 0xfc, 0xd7, 0x94, 0x8d, 0x7c, 0xb0, 0x27, + 0x07, 0x72, 0xfa, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x12, 0x2d, 0x9d, 0x0b, 0x05, 0x00, 0x00, +} + +func (m *LimitOrderTrancheKey) 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 *LimitOrderTrancheKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LimitOrderTrancheKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x1a + } + if m.TickIndexTakerToMaker != 0 { + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(m.TickIndexTakerToMaker)) + i-- + dAtA[i] = 0x10 + } + if m.TradePairID != nil { + { + size, err := m.TradePairID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LimitOrderTranche) 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 *LimitOrderTranche) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LimitOrderTranche) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.PriceTakerToMaker.Size() + i -= size + if _, err := m.PriceTakerToMaker.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if m.ExpirationTime != nil { + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ExpirationTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ExpirationTime):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x32 + } + { + size := m.TotalTakerDenom.Size() + i -= size + if _, err := m.TotalTakerDenom.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.TotalMakerDenom.Size() + i -= size + if _, err := m.TotalMakerDenom.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.ReservesTakerDenom.Size() + i -= size + if _, err := m.ReservesTakerDenom.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.ReservesMakerDenom.Size() + i -= size + if _, err := m.ReservesMakerDenom.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.Key != nil { + { + size, err := m.Key.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLimitOrderTranche(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintLimitOrderTranche(dAtA []byte, offset int, v uint64) int { + offset -= sovLimitOrderTranche(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LimitOrderTrancheKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradePairID != nil { + l = m.TradePairID.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + } + if m.TickIndexTakerToMaker != 0 { + n += 1 + sovLimitOrderTranche(uint64(m.TickIndexTakerToMaker)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovLimitOrderTranche(uint64(l)) + } + return n +} + +func (m *LimitOrderTranche) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Key != nil { + l = m.Key.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + } + l = m.ReservesMakerDenom.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + l = m.ReservesTakerDenom.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + l = m.TotalMakerDenom.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + l = m.TotalTakerDenom.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + if m.ExpirationTime != nil { + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ExpirationTime) + n += 1 + l + sovLimitOrderTranche(uint64(l)) + } + l = m.PriceTakerToMaker.Size() + n += 1 + l + sovLimitOrderTranche(uint64(l)) + return n +} + +func sovLimitOrderTranche(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLimitOrderTranche(x uint64) (n int) { + return sovLimitOrderTranche(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LimitOrderTrancheKey) 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 ErrIntOverflowLimitOrderTranche + } + 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: LimitOrderTrancheKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitOrderTrancheKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradePairID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TradePairID == nil { + m.TradePairID = &TradePairID{} + } + if err := m.TradePairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexTakerToMaker", wireType) + } + m.TickIndexTakerToMaker = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndexTakerToMaker |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + 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 ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrancheKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLimitOrderTranche(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LimitOrderTranche) 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 ErrIntOverflowLimitOrderTranche + } + 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: LimitOrderTranche: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitOrderTranche: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Key == nil { + m.Key = &LimitOrderTrancheKey{} + } + if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservesMakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + 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 ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReservesMakerDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservesTakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + 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 ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReservesTakerDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + 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 ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalMakerDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalTakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + 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 ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalTakerDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExpirationTime == nil { + m.ExpirationTime = new(time.Time) + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceTakerToMaker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTranche + } + 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 ErrInvalidLengthLimitOrderTranche + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PriceTakerToMaker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLimitOrderTranche(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLimitOrderTranche + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLimitOrderTranche(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, ErrIntOverflowLimitOrderTranche + } + 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, ErrIntOverflowLimitOrderTranche + } + 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, ErrIntOverflowLimitOrderTranche + } + 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, ErrInvalidLengthLimitOrderTranche + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLimitOrderTranche + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLimitOrderTranche + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLimitOrderTranche = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLimitOrderTranche = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLimitOrderTranche = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/limit_order_tranche_key.go b/x/dex/types/limit_order_tranche_key.go new file mode 100644 index 000000000..d05342989 --- /dev/null +++ b/x/dex/types/limit_order_tranche_key.go @@ -0,0 +1,75 @@ +package types + +import ( + "errors" + "strings" + + math_utils "github.com/neutron-org/neutron/utils/math" +) + +var _ TickLiquidityKey = (*LimitOrderTrancheKey)(nil) + +func (p LimitOrderTrancheKey) KeyMarshal() []byte { + var key []byte + + pairKeyBytes := []byte(p.TradePairID.MustPairID().CanonicalString()) + key = append(key, pairKeyBytes...) + key = append(key, []byte("/")...) + + makerDenomBytes := []byte(p.TradePairID.MakerDenom) + key = append(key, makerDenomBytes...) + key = append(key, []byte("/")...) + + tickIndexBytes := TickIndexToBytes(p.TickIndexTakerToMaker) + key = append(key, tickIndexBytes...) + key = append(key, []byte("/")...) + + liquidityTypeBytes := []byte(LiquidityTypeLimitOrder) + key = append(key, liquidityTypeBytes...) + key = append(key, []byte("/")...) + + key = append(key, []byte(p.TrancheKey)...) + key = append(key, []byte("/")...) + + return key +} + +func (p LimitOrderTrancheKey) KeyUnmarshal(bz []byte) error { + split := strings.Split(string(bz), "/") + + if len(split) != 5 { + return errors.New("invalid input length") + } + + pairKey, err := NewPairIDFromCanonicalString(split[0]) + if err != nil { + return err + } + p.TradePairID = pairKey.MustTradePairIDFromMaker(split[1]) + + tickIndex, err := BytesToTickIndex([]byte(split[2])) + if err != nil { + return err + } + p.TickIndexTakerToMaker = tickIndex + + if split[3] != LiquidityTypeLimitOrder { + return errors.New("unexpected liquidity type") + } + + p.TrancheKey = split[4] + + return nil +} + +func (p LimitOrderTrancheKey) PriceTakerToMaker() (priceTakerToMaker math_utils.PrecDec, err error) { + return CalcPrice(p.TickIndexTakerToMaker) +} + +func (p LimitOrderTrancheKey) MustPriceTakerToMaker() (priceTakerToMaker math_utils.PrecDec) { + price, err := p.PriceTakerToMaker() + if err != nil { + panic(err) + } + return price +} diff --git a/x/dex/types/limit_order_tranche_user.go b/x/dex/types/limit_order_tranche_user.go new file mode 100644 index 000000000..90dcf34ac --- /dev/null +++ b/x/dex/types/limit_order_tranche_user.go @@ -0,0 +1,6 @@ +package types + +func (l LimitOrderTrancheUser) IsEmpty() bool { + sharesRemoved := l.SharesCancelled.Add(l.SharesWithdrawn) + return sharesRemoved.Equal(l.SharesOwned) +} diff --git a/x/dex/types/limit_order_tranche_user.pb.go b/x/dex/types/limit_order_tranche_user.pb.go new file mode 100644 index 000000000..51228fda7 --- /dev/null +++ b/x/dex/types/limit_order_tranche_user.pb.go @@ -0,0 +1,658 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/limit_order_tranche_user.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LimitOrderTrancheUser struct { + TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` + TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tickIndexTakerToMaker,proto3" json:"tickIndexTakerToMaker,omitempty"` + TrancheKey string `protobuf:"bytes,3,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"sharesOwned"` + SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesWithdrawn" yaml:"sharesWithdrawn"` + SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesCancelled" yaml:"sharesCancelled"` + OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=duality.dex.LimitOrderType" json:"orderType,omitempty"` +} + +func (m *LimitOrderTrancheUser) Reset() { *m = LimitOrderTrancheUser{} } +func (m *LimitOrderTrancheUser) String() string { return proto.CompactTextString(m) } +func (*LimitOrderTrancheUser) ProtoMessage() {} +func (*LimitOrderTrancheUser) Descriptor() ([]byte, []int) { + return fileDescriptor_896ef6766d8ff3c4, []int{0} +} +func (m *LimitOrderTrancheUser) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LimitOrderTrancheUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LimitOrderTrancheUser.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 *LimitOrderTrancheUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_LimitOrderTrancheUser.Merge(m, src) +} +func (m *LimitOrderTrancheUser) XXX_Size() int { + return m.Size() +} +func (m *LimitOrderTrancheUser) XXX_DiscardUnknown() { + xxx_messageInfo_LimitOrderTrancheUser.DiscardUnknown(m) +} + +var xxx_messageInfo_LimitOrderTrancheUser proto.InternalMessageInfo + +func (m *LimitOrderTrancheUser) GetTradePairID() *TradePairID { + if m != nil { + return m.TradePairID + } + return nil +} + +func (m *LimitOrderTrancheUser) GetTickIndexTakerToMaker() int64 { + if m != nil { + return m.TickIndexTakerToMaker + } + return 0 +} + +func (m *LimitOrderTrancheUser) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +func (m *LimitOrderTrancheUser) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *LimitOrderTrancheUser) GetOrderType() LimitOrderType { + if m != nil { + return m.OrderType + } + return LimitOrderType_GOOD_TIL_CANCELLED +} + +func init() { + proto.RegisterType((*LimitOrderTrancheUser)(nil), "duality.dex.LimitOrderTrancheUser") +} + +func init() { + proto.RegisterFile("duality/dex/limit_order_tranche_user.proto", fileDescriptor_896ef6766d8ff3c4) +} + +var fileDescriptor_896ef6766d8ff3c4 = []byte{ + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xd4, 0x40, + 0x1c, 0xdd, 0xb1, 0xb6, 0xb5, 0xb3, 0xa0, 0x30, 0xb4, 0x32, 0x54, 0x48, 0x96, 0x3d, 0xc8, 0xa2, + 0x34, 0x81, 0xea, 0xc5, 0x1e, 0xab, 0x1e, 0x16, 0x95, 0x4a, 0x8c, 0x08, 0x7a, 0x08, 0xb3, 0x99, + 0x1f, 0xbb, 0xc3, 0x66, 0x33, 0x61, 0x66, 0x96, 0x26, 0x1f, 0xa0, 0x77, 0x3f, 0x56, 0x8f, 0x3d, + 0x8a, 0x87, 0x20, 0xbb, 0x37, 0x8f, 0xfd, 0x04, 0x92, 0x3f, 0x4d, 0xa7, 0x8b, 0x17, 0xf1, 0x94, + 0xfc, 0xde, 0x7b, 0xbc, 0xf7, 0x06, 0x1e, 0x7e, 0xc6, 0x97, 0x2c, 0x11, 0xa6, 0xf0, 0x39, 0xe4, + 0x7e, 0x22, 0x16, 0xc2, 0x44, 0x52, 0x71, 0x50, 0x91, 0x51, 0x2c, 0x8d, 0x67, 0x10, 0x2d, 0x35, + 0x28, 0x2f, 0x53, 0xd2, 0x48, 0xd2, 0x6f, 0xb5, 0x1e, 0x87, 0xfc, 0x70, 0x7f, 0x2a, 0xa7, 0xb2, + 0xc6, 0xfd, 0xea, 0xaf, 0x91, 0x1c, 0xba, 0xb6, 0x9d, 0x51, 0x8c, 0x43, 0x94, 0x31, 0xa1, 0x22, + 0xc1, 0x5b, 0xc1, 0xfe, 0x1d, 0x41, 0xde, 0xa0, 0xc3, 0x8b, 0x6d, 0x7c, 0xf0, 0xbe, 0x0a, 0x3f, + 0x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, 0x96, 0xc6, 0x90, 0x24, 0xc0, 0xe9, 0xee, 0xff, 0xf5, + 0xe8, 0x8c, 0x36, 0x7b, 0x74, 0x44, 0xd7, 0xa3, 0x43, 0xc8, 0x2b, 0xbc, 0x57, 0x4f, 0x38, 0x2c, + 0x32, 0xa0, 0x0f, 0x06, 0x68, 0xf4, 0xf0, 0xf8, 0xc9, 0x9d, 0xc1, 0x58, 0x4b, 0x2b, 0x32, 0x08, + 0x6e, 0xd5, 0xa7, 0x6f, 0x2f, 0x57, 0x0e, 0xba, 0x5a, 0x39, 0xe8, 0xd7, 0xca, 0x41, 0xdf, 0xd7, + 0x4e, 0xef, 0x6a, 0xed, 0xf4, 0x7e, 0xac, 0x9d, 0xde, 0xd7, 0xe7, 0x56, 0xf5, 0xd6, 0xeb, 0x28, + 0x61, 0x13, 0x7d, 0x73, 0xf8, 0x79, 0xb3, 0xe8, 0xea, 0x0d, 0x93, 0x9d, 0x7a, 0xd5, 0x2f, 0xfe, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x69, 0xfa, 0xa6, 0x5d, 0x03, 0x00, 0x00, +} + +func (m *LimitOrderTrancheUser) 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 *LimitOrderTrancheUser) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LimitOrderTrancheUser) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OrderType != 0 { + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(m.OrderType)) + i-- + dAtA[i] = 0x40 + } + { + size := m.SharesCancelled.Size() + i -= size + if _, err := m.SharesCancelled.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + { + size := m.SharesWithdrawn.Size() + i -= size + if _, err := m.SharesWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.SharesOwned.Size() + i -= size + if _, err := m.SharesOwned.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x22 + } + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x1a + } + if m.TickIndexTakerToMaker != 0 { + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(m.TickIndexTakerToMaker)) + i-- + dAtA[i] = 0x10 + } + if m.TradePairID != nil { + { + size, err := m.TradePairID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLimitOrderTrancheUser(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintLimitOrderTrancheUser(dAtA []byte, offset int, v uint64) int { + offset -= sovLimitOrderTrancheUser(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LimitOrderTrancheUser) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradePairID != nil { + l = m.TradePairID.Size() + n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) + } + if m.TickIndexTakerToMaker != 0 { + n += 1 + sovLimitOrderTrancheUser(uint64(m.TickIndexTakerToMaker)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) + } + l = m.SharesOwned.Size() + n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) + l = m.SharesWithdrawn.Size() + n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) + l = m.SharesCancelled.Size() + n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) + if m.OrderType != 0 { + n += 1 + sovLimitOrderTrancheUser(uint64(m.OrderType)) + } + return n +} + +func sovLimitOrderTrancheUser(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLimitOrderTrancheUser(x uint64) (n int) { + return sovLimitOrderTrancheUser(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LimitOrderTrancheUser) 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 ErrIntOverflowLimitOrderTrancheUser + } + 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: LimitOrderTrancheUser: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitOrderTrancheUser: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradePairID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TradePairID == nil { + m.TradePairID = &TradePairID{} + } + if err := m.TradePairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexTakerToMaker", wireType) + } + m.TickIndexTakerToMaker = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndexTakerToMaker |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + 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 ErrInvalidLengthLimitOrderTrancheUser + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrancheKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + 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 ErrInvalidLengthLimitOrderTrancheUser + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesOwned", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + 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 ErrInvalidLengthLimitOrderTrancheUser + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesOwned.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesWithdrawn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + 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 ErrInvalidLengthLimitOrderTrancheUser + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesCancelled", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + 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 ErrInvalidLengthLimitOrderTrancheUser + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesCancelled.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderType", wireType) + } + m.OrderType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLimitOrderTrancheUser + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OrderType |= LimitOrderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipLimitOrderTrancheUser(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLimitOrderTrancheUser + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLimitOrderTrancheUser(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, ErrIntOverflowLimitOrderTrancheUser + } + 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, ErrIntOverflowLimitOrderTrancheUser + } + 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, ErrIntOverflowLimitOrderTrancheUser + } + 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, ErrInvalidLengthLimitOrderTrancheUser + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLimitOrderTrancheUser + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLimitOrderTrancheUser + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLimitOrderTrancheUser = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLimitOrderTrancheUser = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLimitOrderTrancheUser = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/limit_order_type.go b/x/dex/types/limit_order_type.go new file mode 100644 index 000000000..a43c75dcd --- /dev/null +++ b/x/dex/types/limit_order_type.go @@ -0,0 +1,29 @@ +package types + +func (l LimitOrderType) IsGTC() bool { + return l == LimitOrderType_GOOD_TIL_CANCELLED +} + +func (l LimitOrderType) IsFoK() bool { + return l == LimitOrderType_FILL_OR_KILL +} + +func (l LimitOrderType) IsIoC() bool { + return l == LimitOrderType_IMMEDIATE_OR_CANCEL +} + +func (l LimitOrderType) IsJIT() bool { + return l == LimitOrderType_JUST_IN_TIME +} + +func (l LimitOrderType) IsGoodTil() bool { + return l == LimitOrderType_GOOD_TIL_TIME +} + +func (l LimitOrderType) IsTakerOnly() bool { + return l.IsIoC() || l.IsFoK() +} + +func (l LimitOrderType) HasExpiration() bool { + return l.IsGoodTil() || l.IsJIT() +} diff --git a/x/dex/types/liquidity.go b/x/dex/types/liquidity.go new file mode 100644 index 000000000..60cc306b4 --- /dev/null +++ b/x/dex/types/liquidity.go @@ -0,0 +1,11 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" +) + +type Liquidity interface { + Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) (inAmount, outAmount sdk.Int) + Price() math_utils.PrecDec +} diff --git a/x/dex/types/message_cancel_limit_order.go b/x/dex/types/message_cancel_limit_order.go new file mode 100644 index 000000000..7b8433ffe --- /dev/null +++ b/x/dex/types/message_cancel_limit_order.go @@ -0,0 +1,48 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgCancelLimitOrder = "cancel_limit_order" + +var _ sdk.Msg = &MsgCancelLimitOrder{} + +func NewMsgCancelLimitOrder(creator, trancheKey string) *MsgCancelLimitOrder { + return &MsgCancelLimitOrder{ + Creator: creator, + TrancheKey: trancheKey, + } +} + +func (msg *MsgCancelLimitOrder) Route() string { + return RouterKey +} + +func (msg *MsgCancelLimitOrder) Type() string { + return TypeMsgCancelLimitOrder +} + +func (msg *MsgCancelLimitOrder) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + + return []sdk.AccAddress{creator} +} + +func (msg *MsgCancelLimitOrder) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgCancelLimitOrder) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + + return nil +} diff --git a/x/dex/types/message_cancel_limit_order_test.go b/x/dex/types/message_cancel_limit_order_test.go new file mode 100644 index 000000000..6e87664fb --- /dev/null +++ b/x/dex/types/message_cancel_limit_order_test.go @@ -0,0 +1,43 @@ +package types_test + +import ( + "testing" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/testutil/common/sample" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestMsgCancelLimitOrder_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgCancelLimitOrder + err error + }{ + { + name: "invalid creator", + msg: MsgCancelLimitOrder{ + Creator: "invalid_address", + TrancheKey: "ORDER123", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid msg", + msg: MsgCancelLimitOrder{ + Creator: sample.AccAddress(), + TrancheKey: "ORDER123", + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go new file mode 100644 index 000000000..f05fd015e --- /dev/null +++ b/x/dex/types/message_deposit.go @@ -0,0 +1,90 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgDeposit = "deposit" + +var _ sdk.Msg = &MsgDeposit{} + +func NewMsgDeposit( + creator, + receiver, + tokenA, + tokenB string, + amountsA, + amountsB []sdk.Int, + tickIndexes []int64, + fees []uint64, + depositOptions []*DepositOptions, +) *MsgDeposit { + return &MsgDeposit{ + Creator: creator, + Receiver: receiver, + TokenA: tokenA, + TokenB: tokenB, + AmountsA: amountsA, + AmountsB: amountsB, + TickIndexesAToB: tickIndexes, + Fees: fees, + Options: depositOptions, + } +} + +func (msg *MsgDeposit) Route() string { + return RouterKey +} + +func (msg *MsgDeposit) Type() string { + return TypeMsgDeposit +} + +func (msg *MsgDeposit) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + + return []sdk.AccAddress{creator} +} + +func (msg *MsgDeposit) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgDeposit) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + + _, err = sdk.AccAddressFromBech32(msg.Receiver) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + } + + // Verify that the lengths of TickIndexes, Fees, AmountsA, AmountsB are all equal + numDeposits := len(msg.AmountsA) + if numDeposits != len(msg.Fees) || + numDeposits != len(msg.TickIndexesAToB) || + numDeposits != len(msg.AmountsB) { + return ErrUnbalancedTxArray + } + if numDeposits == 0 { + return ErrZeroDeposit + } + + for i := 0; i < numDeposits; i++ { + if msg.AmountsA[i].LT(sdk.ZeroInt()) || msg.AmountsB[i].LT(sdk.ZeroInt()) { + return ErrZeroDeposit + } + if msg.AmountsA[i].Equal(sdk.ZeroInt()) && msg.AmountsB[i].Equal(sdk.ZeroInt()) { + return ErrZeroDeposit + } + } + + return nil +} diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go new file mode 100644 index 000000000..590444805 --- /dev/null +++ b/x/dex/types/message_deposit_test.go @@ -0,0 +1,137 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/testutil/common/sample" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestMsgDeposit_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgDeposit + err error + }{ + { + name: "invalid creator", + msg: MsgDeposit{ + Creator: "invalid_address", + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + AmountsA: []sdk.Int{sdk.OneInt()}, + AmountsB: []sdk.Int{sdk.OneInt()}, + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid receiver", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: "invalid address", + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + AmountsA: []sdk.Int{sdk.OneInt()}, + AmountsB: []sdk.Int{sdk.OneInt()}, + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid fee indexes length", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{}, + AmountsA: []sdk.Int{}, + AmountsB: []sdk.Int{}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid tick indexes length", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{}, + TickIndexesAToB: []int64{0}, + AmountsA: []sdk.Int{}, + AmountsB: []sdk.Int{}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid amounts A length", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{}, + TickIndexesAToB: []int64{}, + AmountsA: []sdk.Int{sdk.OneInt()}, + AmountsB: []sdk.Int{}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid amounts B length", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{}, + TickIndexesAToB: []int64{}, + AmountsA: []sdk.Int{}, + AmountsB: []sdk.Int{sdk.OneInt()}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid no deposit", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{}, + TickIndexesAToB: []int64{}, + AmountsA: []sdk.Int{}, + AmountsB: []sdk.Int{}, + }, + err: ErrZeroDeposit, + }, + { + name: "invalid no deposit", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + AmountsA: []sdk.Int{sdk.ZeroInt()}, + AmountsB: []sdk.Int{sdk.ZeroInt()}, + }, + err: ErrZeroDeposit, + }, + { + name: "valid msg", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + AmountsA: []sdk.Int{sdk.OneInt()}, + AmountsB: []sdk.Int{sdk.OneInt()}, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/dex/types/message_multi_hop_swap.go b/x/dex/types/message_multi_hop_swap.go new file mode 100644 index 000000000..c9c292884 --- /dev/null +++ b/x/dex/types/message_multi_hop_swap.go @@ -0,0 +1,85 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + math_utils "github.com/neutron-org/neutron/utils/math" +) + +const TypeMsgMultiHopSwap = "multi_hop_swap" + +var _ sdk.Msg = &MsgMultiHopSwap{} + +func NewMsgMultiHopSwap( + creator string, + receiever string, + routesArr [][]string, + amountIn sdk.Int, + exitLimitPrice math_utils.PrecDec, + pickBestRoute bool, +) *MsgMultiHopSwap { + routes := make([]*MultiHopRoute, len(routesArr)) + for i, hops := range routesArr { + routes[i] = &MultiHopRoute{Hops: hops} + } + + return &MsgMultiHopSwap{ + Creator: creator, + Receiver: receiever, + Routes: routes, + AmountIn: amountIn, + ExitLimitPrice: exitLimitPrice, + PickBestRoute: pickBestRoute, + } +} + +func (msg *MsgMultiHopSwap) Route() string { + return RouterKey +} + +func (msg *MsgMultiHopSwap) Type() string { + return TypeMsgMultiHopSwap +} + +func (msg *MsgMultiHopSwap) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + + return []sdk.AccAddress{creator} +} + +func (msg *MsgMultiHopSwap) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgMultiHopSwap) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + _, err = sdk.AccAddressFromBech32(msg.Receiver) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + } + + if len(msg.Routes) == 0 { + return ErrMissingMultihopRoute + } + + expectedExitToken := msg.Routes[0].Hops[len(msg.Routes[0].Hops)-1] + for _, route := range msg.Routes[1:] { + hops := route.Hops + if expectedExitToken != hops[len(hops)-1] { + return ErrMultihopExitTokensMismatch + } + } + + if msg.AmountIn.LTE(sdk.ZeroInt()) { + return ErrZeroSwap + } + + return nil +} diff --git a/x/dex/types/message_multi_hop_swap_test.go b/x/dex/types/message_multi_hop_swap_test.go new file mode 100644 index 000000000..b9fc67acc --- /dev/null +++ b/x/dex/types/message_multi_hop_swap_test.go @@ -0,0 +1,85 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/testutil/common/sample" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgMultiHopSwap + err error + }{ + { + name: "invalid creator address", + msg: MsgMultiHopSwap{ + Creator: "invalid_address", + Receiver: sample.AccAddress(), + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid receiver address", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: "invalid_address", + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "missing route", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + }, + err: ErrMissingMultihopRoute, + }, + { + name: "invalid exit tokens", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{ + {Hops: []string{"A", "B", "C"}}, + {Hops: []string{"A", "B", "Z"}}, + }, + }, + err: ErrMultihopExitTokensMismatch, + }, + { + name: "invalid amountIn", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, + AmountIn: sdk.NewInt(-1), + }, + err: ErrZeroSwap, + }, + { + name: "valid", + msg: MsgMultiHopSwap{ + Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + AmountIn: sdk.OneInt(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/dex/types/message_place_limit_order.go b/x/dex/types/message_place_limit_order.go new file mode 100644 index 000000000..23135d2f5 --- /dev/null +++ b/x/dex/types/message_place_limit_order.go @@ -0,0 +1,105 @@ +package types + +import ( + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgPlaceLimitOrder = "place_limit_order" + +var _ sdk.Msg = &MsgPlaceLimitOrder{} + +func NewMsgPlaceLimitOrder( + creator, + receiver, + tokenIn, + tokenOut string, + tickIndex int64, + amountIn sdk.Int, + orderType LimitOrderType, + goodTil *time.Time, + maxAmountOut *sdk.Int, +) *MsgPlaceLimitOrder { + return &MsgPlaceLimitOrder{ + Creator: creator, + Receiver: receiver, + TokenIn: tokenIn, + TokenOut: tokenOut, + TickIndexInToOut: tickIndex, + AmountIn: amountIn, + OrderType: orderType, + ExpirationTime: goodTil, + MaxAmountOut: maxAmountOut, + } +} + +func (msg *MsgPlaceLimitOrder) Route() string { + return RouterKey +} + +func (msg *MsgPlaceLimitOrder) Type() string { + return TypeMsgPlaceLimitOrder +} + +func (msg *MsgPlaceLimitOrder) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + + return []sdk.AccAddress{creator} +} + +func (msg *MsgPlaceLimitOrder) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgPlaceLimitOrder) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + + _, err = sdk.AccAddressFromBech32(msg.Receiver) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + } + + if msg.AmountIn.LTE(sdk.ZeroInt()) { + return ErrZeroLimitOrder + } + + if msg.OrderType.IsGoodTil() && msg.ExpirationTime == nil { + return ErrGoodTilOrderWithoutExpiration + } + + if !msg.OrderType.IsGoodTil() && msg.ExpirationTime != nil { + return ErrExpirationOnWrongOrderType + } + + if msg.MaxAmountOut != nil { + if !msg.MaxAmountOut.IsPositive() { + return ErrZeroMaxAmountOut + } + if !msg.OrderType.IsTakerOnly() { + return ErrInvalidMaxAmountOutForMaker + } + } + + return nil +} + +func (msg *MsgPlaceLimitOrder) ValidateGoodTilExpiration(blockTime time.Time) error { + if msg.OrderType.IsGoodTil() && !msg.ExpirationTime.After(blockTime) { + return sdkerrors.Wrapf(ErrExpirationTimeInPast, + "Current BlockTime: %s; Provided ExpirationTime: %s", + blockTime.String(), + msg.ExpirationTime.String(), + ) + } + + return nil +} diff --git a/x/dex/types/message_place_limit_order_test.go b/x/dex/types/message_place_limit_order_test.go new file mode 100644 index 000000000..bdbaeda59 --- /dev/null +++ b/x/dex/types/message_place_limit_order_test.go @@ -0,0 +1,107 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/testutil/common/sample" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { + ZEROINT := sdk.ZeroInt() + ONEINT := sdk.OneInt() + tests := []struct { + name string + msg MsgPlaceLimitOrder + err error + }{ + { + name: "invalid creator", + msg: MsgPlaceLimitOrder{ + Creator: "invalid_address", + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.OneInt(), + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid receiver", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: "invalid_address", + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.OneInt(), + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid zero limit order", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.ZeroInt(), + }, + err: ErrZeroLimitOrder, + }, + { + name: "zero maxOut", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.OneInt(), + MaxAmountOut: &ZEROINT, + OrderType: LimitOrderType_FILL_OR_KILL, + }, + err: ErrZeroMaxAmountOut, + }, + { + name: "max out with maker order", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.OneInt(), + MaxAmountOut: &ONEINT, + OrderType: LimitOrderType_GOOD_TIL_CANCELLED, + }, + err: ErrInvalidMaxAmountOutForMaker, + }, + { + name: "valid msg", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 0, + AmountIn: sdk.OneInt(), + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/dex/types/message_withdrawl.go b/x/dex/types/message_withdrawl.go new file mode 100644 index 000000000..3448d2f1d --- /dev/null +++ b/x/dex/types/message_withdrawl.go @@ -0,0 +1,81 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgWithdrawal = "withdrawal" + +var _ sdk.Msg = &MsgWithdrawal{} + +func NewMsgWithdrawal(creator, + receiver, + tokenA, + tokenB string, + sharesToRemove []sdk.Int, + tickIndexes []int64, + fees []uint64, +) *MsgWithdrawal { + return &MsgWithdrawal{ + Creator: creator, + Receiver: receiver, + TokenA: tokenA, + TokenB: tokenB, + SharesToRemove: sharesToRemove, + TickIndexesAToB: tickIndexes, + Fees: fees, + } +} + +func (msg *MsgWithdrawal) Route() string { + return RouterKey +} + +func (msg *MsgWithdrawal) Type() string { + return TypeMsgWithdrawal +} + +func (msg *MsgWithdrawal) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + + return []sdk.AccAddress{creator} +} + +func (msg *MsgWithdrawal) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgWithdrawal) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + + _, err = sdk.AccAddressFromBech32(msg.Receiver) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + } + + // Verify that the lengths of TickIndexes, Fees, SharesToRemove are all equal + if len(msg.Fees) != len(msg.TickIndexesAToB) || + len(msg.SharesToRemove) != len(msg.TickIndexesAToB) { + return ErrUnbalancedTxArray + } + + if len(msg.Fees) == 0 { + return ErrZeroWithdraw + } + + for i := 0; i < len(msg.Fees); i++ { + if msg.SharesToRemove[i].LTE(sdk.ZeroInt()) { + return ErrZeroWithdraw + } + } + + return nil +} diff --git a/x/dex/types/message_withdrawl_filled_limit_order.go b/x/dex/types/message_withdrawl_filled_limit_order.go new file mode 100644 index 000000000..929329650 --- /dev/null +++ b/x/dex/types/message_withdrawl_filled_limit_order.go @@ -0,0 +1,48 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const TypeMsgWithdrawFilledLimitOrder = "withdrawal_withdrawn_limit_order" + +var _ sdk.Msg = &MsgWithdrawFilledLimitOrder{} + +func NewMsgWithdrawFilledLimitOrder(creator, trancheKey string) *MsgWithdrawFilledLimitOrder { + return &MsgWithdrawFilledLimitOrder{ + Creator: creator, + TrancheKey: trancheKey, + } +} + +func (msg *MsgWithdrawFilledLimitOrder) Route() string { + return RouterKey +} + +func (msg *MsgWithdrawFilledLimitOrder) Type() string { + return TypeMsgWithdrawFilledLimitOrder +} + +func (msg *MsgWithdrawFilledLimitOrder) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + + return []sdk.AccAddress{creator} +} + +func (msg *MsgWithdrawFilledLimitOrder) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgWithdrawFilledLimitOrder) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + + return nil +} diff --git a/x/dex/types/message_withdrawl_filled_limit_order_test.go b/x/dex/types/message_withdrawl_filled_limit_order_test.go new file mode 100644 index 000000000..e1fceeec1 --- /dev/null +++ b/x/dex/types/message_withdrawl_filled_limit_order_test.go @@ -0,0 +1,43 @@ +package types_test + +import ( + "testing" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/testutil/common/sample" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestMsgWithdrawFilledLimitOrder_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgWithdrawFilledLimitOrder + err error + }{ + { + name: "invalid creator", + msg: MsgWithdrawFilledLimitOrder{ + Creator: "invalid_address", + TrancheKey: "ORDER123", + }, + err: sdkerrors.ErrInvalidAddress, + }, { + name: "valid msg", + msg: MsgWithdrawFilledLimitOrder{ + Creator: sample.AccAddress(), + TrancheKey: "ORDER123", + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/dex/types/message_withdrawl_test.go b/x/dex/types/message_withdrawl_test.go new file mode 100644 index 000000000..288fc3bbe --- /dev/null +++ b/x/dex/types/message_withdrawl_test.go @@ -0,0 +1,117 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/testutil/common/sample" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestMsgWithdrawal_ValidateBasic(t *testing.T) { + tests := []struct { + name string + msg MsgWithdrawal + err error + }{ + { + name: "invalid creator", + msg: MsgWithdrawal{ + Creator: "invalid_address", + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + SharesToRemove: []sdk.Int{sdk.OneInt()}, + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid receiver", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: "invalid_address", + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + SharesToRemove: []sdk.Int{sdk.OneInt()}, + }, + err: sdkerrors.ErrInvalidAddress, + }, + { + name: "invalid fee indexes length", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{}, + TickIndexesAToB: []int64{0}, + SharesToRemove: []sdk.Int{sdk.OneInt()}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid tick indexes length", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{}, + SharesToRemove: []sdk.Int{sdk.OneInt()}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid shares to remove length", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + SharesToRemove: []sdk.Int{}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "no withdraw specs", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{}, + TickIndexesAToB: []int64{}, + SharesToRemove: []sdk.Int{}, + }, + err: ErrZeroWithdraw, + }, + { + name: "no withdraw specs", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + SharesToRemove: []sdk.Int{sdk.ZeroInt()}, + }, + err: ErrZeroWithdraw, + }, + { + name: "valid msg", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{0}, + TickIndexesAToB: []int64{0}, + SharesToRemove: []sdk.Int{sdk.OneInt()}, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := tt.msg.ValidateBasic() + if tt.err != nil { + require.ErrorIs(t, err, tt.err) + return + } + require.NoError(t, err) + }) + } +} diff --git a/x/dex/types/pair_id.go b/x/dex/types/pair_id.go new file mode 100644 index 000000000..4f18aadfe --- /dev/null +++ b/x/dex/types/pair_id.go @@ -0,0 +1,95 @@ +package types + +import ( + "fmt" + "strings" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func NewPairID(token0, token1 string) (*PairID, error) { + if token0 == token1 { + return nil, sdkerrors.Wrapf(ErrInvalidTradingPair, "%s<>%s", token0, token1) + } + return &PairID{ + Token0: token0, + Token1: token1, + }, nil +} + +func MustNewPairID(token0, token1 string) *PairID { + pairID, err := NewPairID(token0, token1) + if err != nil { + panic(err) + } + return pairID +} + +func NewPairIDFromUnsorted(tokenA, tokenB string) (*PairID, error) { + token0, token1 := SortTokens(tokenA, tokenB) + return NewPairID(token0, token1) +} + +func (p *PairID) CanonicalString() string { + return fmt.Sprintf("%s<>%s", p.Token0, p.Token1) +} + +func (p *PairID) OppositeToken(token string) (oppToken string, ok bool) { + switch token { + case p.Token0: + return p.Token1, true + case p.Token1: + return p.Token0, true + default: + return "", false + } +} + +func (p *PairID) MustOppositeToken(token string) string { + if oppToken, ok := p.OppositeToken(token); ok { + return oppToken + } + panic("Supplied token matches neither side of pair") +} + +func NewPairIDFromCanonicalString(pairIDStr string) (*PairID, error) { + tokens := strings.Split(pairIDStr, "<>") + + if len(tokens) == 2 { + return NewPairID(tokens[0], tokens[1]) + } + + return &PairID{}, sdkerrors.Wrapf(ErrInvalidPairIDStr, pairIDStr) +} + +func SortTokens(tokenA, tokenB string) (string, string) { + if tokenA < tokenB { + return tokenA, tokenB + } else { + return tokenB, tokenA + } +} + +func (p *PairID) MustTradePairIDFromMaker(maker string) *TradePairID { + if p.Token0 == maker { + return MustNewTradePairID(p.Token1, p.Token0) + } else if p.Token1 == maker { + return MustNewTradePairID(p.Token0, p.Token1) + } else { + panic(fmt.Errorf("pair.TradePairIDFromMaker(maker string) called where maker does not equal either pair.Token0 or pair.Token1")) + } +} + +func (p *PairID) MustTradePairIDFromTaker(taker string) *TradePairID { + if p.Token0 == taker { + return MustNewTradePairID(p.Token0, p.Token1) + } else if p.Token1 == taker { + return MustNewTradePairID(p.Token1, p.Token0) + } else { + panic(fmt.Errorf("pair.TradePairIDFromMaker(maker string) called where maker does not equal either pair.Token0 or pair.Token1")) + } +} + +func (p *PairID) Equal(otherPairID *PairID) bool { + return *p == *otherPairID +} diff --git a/x/dex/types/pair_id.pb.go b/x/dex/types/pair_id.pb.go new file mode 100644 index 000000000..4b65c4207 --- /dev/null +++ b/x/dex/types/pair_id.pb.go @@ -0,0 +1,365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/pair_id.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type PairID struct { + Token0 string `protobuf:"bytes,1,opt,name=token0,proto3" json:"token0,omitempty"` + Token1 string `protobuf:"bytes,2,opt,name=token1,proto3" json:"token1,omitempty"` +} + +func (m *PairID) Reset() { *m = PairID{} } +func (m *PairID) String() string { return proto.CompactTextString(m) } +func (*PairID) ProtoMessage() {} +func (*PairID) Descriptor() ([]byte, []int) { + return fileDescriptor_1919813da3dc14c8, []int{0} +} +func (m *PairID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PairID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PairID.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 *PairID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PairID.Merge(m, src) +} +func (m *PairID) XXX_Size() int { + return m.Size() +} +func (m *PairID) XXX_DiscardUnknown() { + xxx_messageInfo_PairID.DiscardUnknown(m) +} + +var xxx_messageInfo_PairID proto.InternalMessageInfo + +func (m *PairID) GetToken0() string { + if m != nil { + return m.Token0 + } + return "" +} + +func (m *PairID) GetToken1() string { + if m != nil { + return m.Token1 + } + return "" +} + +func init() { + proto.RegisterType((*PairID)(nil), "duality.dex.PairID") +} + +func init() { proto.RegisterFile("duality/dex/pair_id.proto", fileDescriptor_1919813da3dc14c8) } + +var fileDescriptor_1919813da3dc14c8 = []byte{ + // 159 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0xcc, 0x2c, 0x8a, 0xcf, 0x4c, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x4a, 0xe9, 0xa5, 0xa4, 0x56, 0x28, 0x59, 0x70, + 0xb1, 0x05, 0x24, 0x66, 0x16, 0x79, 0xba, 0x08, 0x89, 0x71, 0xb1, 0x95, 0xe4, 0x67, 0xa7, 0xe6, + 0x19, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x41, 0x79, 0x70, 0x71, 0x43, 0x09, 0x26, 0x24, + 0x71, 0x43, 0x27, 0xd7, 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, 0x4e, + 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0xda, 0xa5, 0x9b, 0x93, 0x98, + 0x54, 0x0c, 0xe3, 0xe8, 0x57, 0x80, 0x5d, 0x55, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, + 0x94, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x72, 0x4e, 0xb2, 0x90, 0xb1, 0x00, 0x00, 0x00, +} + +func (m *PairID) 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 *PairID) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PairID) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Token1) > 0 { + i -= len(m.Token1) + copy(dAtA[i:], m.Token1) + i = encodeVarintPairId(dAtA, i, uint64(len(m.Token1))) + i-- + dAtA[i] = 0x12 + } + if len(m.Token0) > 0 { + i -= len(m.Token0) + copy(dAtA[i:], m.Token0) + i = encodeVarintPairId(dAtA, i, uint64(len(m.Token0))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintPairId(dAtA []byte, offset int, v uint64) int { + offset -= sovPairId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PairID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Token0) + if l > 0 { + n += 1 + l + sovPairId(uint64(l)) + } + l = len(m.Token1) + if l > 0 { + n += 1 + l + sovPairId(uint64(l)) + } + return n +} + +func sovPairId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPairId(x uint64) (n int) { + return sovPairId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PairID) 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 ErrIntOverflowPairId + } + 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: PairID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PairID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token0", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPairId + } + 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 ErrInvalidLengthPairId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPairId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Token0 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token1", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPairId + } + 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 ErrInvalidLengthPairId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPairId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Token1 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPairId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPairId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPairId(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, ErrIntOverflowPairId + } + 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, ErrIntOverflowPairId + } + 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, ErrIntOverflowPairId + } + 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, ErrInvalidLengthPairId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPairId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPairId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPairId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPairId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPairId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/params.go b/x/dex/types/params.go new file mode 100644 index 000000000..fbd7d08d8 --- /dev/null +++ b/x/dex/types/params.go @@ -0,0 +1,67 @@ +package types + +import ( + fmt "fmt" + + paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "gopkg.in/yaml.v2" +) + +var _ paramtypes.ParamSet = (*Params)(nil) + +var ( + KeyFeeTiers = []byte("FeeTiers") + DefaultFeeTiers []uint64 = []uint64{0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 150, 200} +) + +// ParamKeyTable the param key table for launch module +func ParamKeyTable() paramtypes.KeyTable { + return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) +} + +// NewParams creates a new Params instance +func NewParams(feeTiers []uint64) Params { + return Params{FeeTiers: feeTiers} +} + +// DefaultParams returns a default set of parameters +func DefaultParams() Params { + return NewParams(DefaultFeeTiers) +} + +// ParamSetPairs get the params.ParamSet +func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { + return paramtypes.ParamSetPairs{ + paramtypes.NewParamSetPair(KeyFeeTiers, &p.FeeTiers, validateFeeTiers), + } +} + +// String implements the Stringer interface. +func (p Params) String() string { + out, _ := yaml.Marshal(p) + return string(out) +} + +// Validate validates the set of params +func (p Params) Validate() error { + if err := validateFeeTiers(p.FeeTiers); err != nil { + return err + } + return nil +} + +func validateFeeTiers(v interface{}) error { + feeTiers, ok := v.([]uint64) + if !ok { + return fmt.Errorf("invalid parameter type: %T", v) + } + + feeTierMap := make(map[uint64]bool) + for _, f := range feeTiers { + if _, ok := feeTierMap[f]; ok { + return fmt.Errorf("duplicate fee tier found") + } + feeTierMap[f] = true + } + return nil +} diff --git a/x/dex/types/params.pb.go b/x/dex/types/params.pb.go new file mode 100644 index 000000000..968ad5740 --- /dev/null +++ b/x/dex/types/params.pb.go @@ -0,0 +1,374 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Params defines the parameters for the module. +type Params struct { + FeeTiers []uint64 `protobuf:"varint,1,rep,packed,name=fee_tiers,json=feeTiers,proto3" json:"fee_tiers,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_0d9808a9c3c4a621, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetFeeTiers() []uint64 { + if m != nil { + return m.FeeTiers + } + return nil +} + +func init() { + proto.RegisterType((*Params)(nil), "duality.dex.Params") +} + +func init() { proto.RegisterFile("duality/dex/params.proto", fileDescriptor_0d9808a9c3c4a621) } + +var fileDescriptor_0d9808a9c3c4a621 = []byte{ + // 174 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xca, 0xe8, 0xa5, 0xa4, 0x56, 0x48, 0x89, 0xa4, 0xe7, + 0xa7, 0xe7, 0x83, 0xc5, 0xf5, 0x41, 0x2c, 0x88, 0x12, 0x25, 0x6d, 0x2e, 0xb6, 0x00, 0xb0, 0x16, + 0x21, 0x69, 0x2e, 0xce, 0xb4, 0xd4, 0xd4, 0xf8, 0x92, 0xcc, 0xd4, 0xa2, 0x62, 0x09, 0x46, 0x05, + 0x66, 0x0d, 0x96, 0x20, 0x8e, 0xb4, 0xd4, 0xd4, 0x10, 0x10, 0xdf, 0x8a, 0x65, 0xc6, 0x02, 0x79, + 0x06, 0x27, 0xd7, 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, 0x4e, 0xcf, + 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0x5a, 0xaa, 0x9b, 0x93, 0x98, 0x54, + 0x0c, 0xe3, 0xe8, 0x57, 0x80, 0x5d, 0x57, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xb6, 0xda, + 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x16, 0x5d, 0xd1, 0xc7, 0xb9, 0x00, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeTiers) > 0 { + dAtA2 := make([]byte, len(m.FeeTiers)*10) + var j1 int + for _, num := range m.FeeTiers { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintParams(dAtA, i, uint64(j1)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeTiers) > 0 { + l = 0 + for _, e := range m.FeeTiers { + l += sovParams(uint64(e)) + } + n += 1 + sovParams(uint64(l)) + l + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FeeTiers = append(m.FeeTiers, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.FeeTiers) == 0 { + m.FeeTiers = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FeeTiers = append(m.FeeTiers, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field FeeTiers", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/pool.go b/x/dex/types/pool.go new file mode 100644 index 000000000..8c320277b --- /dev/null +++ b/x/dex/types/pool.go @@ -0,0 +1,291 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/utils" +) + +func NewPool( + pairID *PairID, + centerTickIndexNormalized int64, + fee uint64, + id uint64, +) (*Pool, error) { + feeInt64 := utils.MustSafeUint64ToInt64(fee) + + id0To1 := &PoolReservesKey{ + TradePairID: NewTradePairIDFromMaker(pairID, pairID.Token1), + TickIndexTakerToMaker: centerTickIndexNormalized + feeInt64, + Fee: fee, + } + + upperTick, err := NewPoolReserves(id0To1) + if err != nil { + return nil, err + } + + lowerTick := NewPoolReservesFromCounterpart(upperTick) + + return &Pool{ + LowerTick0: lowerTick, + UpperTick1: upperTick, + ID: id, + }, nil +} + +func MustNewPool( + pairID *PairID, + centerTickIndexNormalized int64, + fee uint64, + id uint64, +) *Pool { + pool, err := NewPool(pairID, centerTickIndexNormalized, fee, id) + if err != nil { + panic("Error while creating new pool: " + err.Error()) + } + return pool +} + +func (p *Pool) CenterTickIndex() int64 { + feeInt64 := utils.MustSafeUint64ToInt64(p.Fee()) + return p.UpperTick1.Key.TickIndexTakerToMaker - feeInt64 +} + +func (p *Pool) Fee() uint64 { + return p.UpperTick1.Key.Fee +} + +func (p *Pool) GetLowerReserve0() sdk.Int { + return p.LowerTick0.ReservesMakerDenom +} + +func (p *Pool) GetUpperReserve1() sdk.Int { + return p.UpperTick1.ReservesMakerDenom +} + +func (p *Pool) Swap( + tradePairID *TradePairID, + maxAmountTakerIn sdk.Int, + maxAmountMakerOut *sdk.Int, +) (amountTakerIn, amountMakerOut sdk.Int) { + var takerReserves, makerReserves *PoolReserves + if tradePairID.IsMakerDenomToken0() { + makerReserves = p.LowerTick0 + takerReserves = p.UpperTick1 + } else { + makerReserves = p.UpperTick1 + takerReserves = p.LowerTick0 + } + + if maxAmountTakerIn.Equal(sdk.ZeroInt()) || + makerReserves.ReservesMakerDenom.Equal(sdk.ZeroInt()) { + return sdk.ZeroInt(), sdk.ZeroInt() + } + + maxOutGivenTakerIn := makerReserves.PriceTakerToMaker.MulInt(maxAmountTakerIn).TruncateInt() + possibleAmountsMakerOut := []sdk.Int{makerReserves.ReservesMakerDenom, maxOutGivenTakerIn} + if maxAmountMakerOut != nil { + possibleAmountsMakerOut = append(possibleAmountsMakerOut, *maxAmountMakerOut) + } + + // outAmount will be the smallest value of: + // a.) The available reserves1 + // b.) The most the user could get out given maxAmountIn0 (maxOutGivenIn1) + // c.) The maximum amount the user wants out (maxAmountOut1) + amountMakerOut = utils.MinIntArr(possibleAmountsMakerOut) + amountTakerIn = math_utils.NewPrecDecFromInt(amountMakerOut). + Quo(makerReserves.PriceTakerToMaker). + Ceil(). + TruncateInt() + + takerReserves.ReservesMakerDenom = takerReserves.ReservesMakerDenom.Add(amountTakerIn) + makerReserves.ReservesMakerDenom = makerReserves.ReservesMakerDenom.Sub(amountMakerOut) + + return amountTakerIn, amountMakerOut +} + +// Mutates the Pool object and returns relevant change variables. Deposit is not committed until +// pool.save() is called or the underlying ticks are saved; this method does not use any keeper methods. +func (p *Pool) Deposit( + maxAmount0, + maxAmount1, + existingShares sdk.Int, + autoswap bool, +) (inAmount0, inAmount1 sdk.Int, outShares sdk.Coin) { + lowerReserve0 := &p.LowerTick0.ReservesMakerDenom + upperReserve1 := &p.UpperTick1.ReservesMakerDenom + + inAmount0, inAmount1 = CalcGreatestMatchingRatio( + *lowerReserve0, + *upperReserve1, + maxAmount0, + maxAmount1, + ) + + if inAmount0.Equal(sdk.ZeroInt()) && inAmount1.Equal(sdk.ZeroInt()) { + return sdk.ZeroInt(), sdk.ZeroInt(), sdk.Coin{Denom: p.GetPoolDenom()} + } + + outShares = p.CalcSharesMinted(inAmount0, inAmount1, existingShares) + + if autoswap { + residualAmount0 := maxAmount0.Sub(inAmount0) + residualAmount1 := maxAmount1.Sub(inAmount1) + + // NOTE: Currently not doing anything with the error, + // but added error handling to all of the new functions for autoswap. + // Open to changing it however. + residualShares, _ := p.CalcResidualSharesMinted(residualAmount0, residualAmount1) + + outShares = outShares.Add(residualShares) + + inAmount0 = maxAmount0 + inAmount1 = maxAmount1 + } + + *lowerReserve0 = lowerReserve0.Add(inAmount0) + *upperReserve1 = upperReserve1.Add(inAmount1) + + return inAmount0, inAmount1, outShares +} + +func (p *Pool) GetPoolDenom() string { + return NewPoolDenom(p.ID) +} + +func (p *Pool) Price(tradePairID *TradePairID) math_utils.PrecDec { + if tradePairID.IsTakerDenomToken0() { + return p.UpperTick1.PriceTakerToMaker + } + + return p.LowerTick0.PriceTakerToMaker +} + +func (p *Pool) MustCalcPrice1To0Center() math_utils.PrecDec { + // NOTE: We can safely call the error-less version of CalcPrice here because the pool object + // has already been initialized with an upper and lower tick which satisfy a check for IsTickOutOfRange + return MustCalcPrice(-1 * p.CenterTickIndex()) +} + +func (p *Pool) CalcSharesMinted( + amount0 sdk.Int, + amount1 sdk.Int, + existingShares sdk.Int, +) (sharesMinted sdk.Coin) { + price1To0Center := p.MustCalcPrice1To0Center() + valueMintedToken0 := CalcAmountAsToken0(amount0, amount1, price1To0Center) + + valueExistingToken0 := CalcAmountAsToken0( + p.LowerTick0.ReservesMakerDenom, + p.UpperTick1.ReservesMakerDenom, + price1To0Center, + ) + var sharesMintedAmount sdk.Int + if valueExistingToken0.GT(math_utils.ZeroPrecDec()) { + sharesMintedAmount = valueMintedToken0.MulInt(existingShares). + Quo(valueExistingToken0). + TruncateInt() + } else { + sharesMintedAmount = valueMintedToken0.TruncateInt() + } + + return sdk.Coin{Denom: p.GetPoolDenom(), Amount: sharesMintedAmount} +} + +func (p *Pool) CalcResidualSharesMinted( + residualAmount0 sdk.Int, + residualAmount1 sdk.Int, +) (sharesMinted sdk.Coin, err error) { + fee := CalcFee(p.UpperTick1.Key.TickIndexTakerToMaker, p.LowerTick0.Key.TickIndexTakerToMaker) + valueMintedToken0, err := CalcResidualValue( + residualAmount0, + residualAmount1, + p.LowerTick0.PriceTakerToMaker, + fee, + ) + if err != nil { + return sdk.Coin{Denom: p.GetPoolDenom()}, err + } + + return sdk.Coin{Denom: p.GetPoolDenom(), Amount: valueMintedToken0.TruncateInt()}, nil +} + +func (p *Pool) RedeemValue(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int) { + reserves0 := &p.LowerTick0.ReservesMakerDenom + reserves1 := &p.UpperTick1.ReservesMakerDenom + // outAmount1 = ownershipRatio * reserves1 + // = (sharesToRemove / totalShares) * reserves1 + // = (reserves1 * sharesToRemove ) / totalShares + outAmount1 = sdk.NewDecFromInt(reserves1.Mul(sharesToRemove)).QuoInt(totalShares).TruncateInt() + // outAmount0 = ownershipRatio * reserves1 + // = (sharesToRemove / totalShares) * reserves1 + // = (reserves1 * sharesToRemove ) / totalShares + outAmount0 = sdk.NewDecFromInt(reserves0.Mul(sharesToRemove)).QuoInt(totalShares).TruncateInt() + + return outAmount0, outAmount1 +} + +func (p *Pool) Withdraw(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int) { + reserves0 := &p.LowerTick0.ReservesMakerDenom + reserves1 := &p.UpperTick1.ReservesMakerDenom + outAmount0, outAmount1 = p.RedeemValue(sharesToRemove, totalShares) + *reserves0 = reserves0.Sub(outAmount0) + *reserves1 = reserves1.Sub(outAmount1) + + return outAmount0, outAmount1 +} + +// Balance trueAmount1 to the pool ratio +func CalcGreatestMatchingRatio( + targetAmount0 sdk.Int, + targetAmount1 sdk.Int, + amount0 sdk.Int, + amount1 sdk.Int, +) (resultAmount0, resultAmount1 sdk.Int) { + targetAmount0Dec := sdk.NewDecFromInt(targetAmount0) + targetAmount1Dec := sdk.NewDecFromInt(targetAmount1) + + // See spec: https://www.notion.so/dualityxyz/Autoswap-Spec-e856fa7b2438403c95147010d479b98c + if targetAmount1.GT(sdk.ZeroInt()) { + resultAmount0 = sdk.MinInt( + amount0, + sdk.NewDecFromInt(amount1).Mul(targetAmount0Dec).Quo(targetAmount1Dec).TruncateInt()) + } else { + resultAmount0 = amount0 + } + + if targetAmount0.GT(sdk.ZeroInt()) { + resultAmount1 = sdk.MinInt( + amount1, + sdk.NewDecFromInt(amount0).Mul(targetAmount1Dec).Quo(targetAmount0Dec).TruncateInt()) + } else { + resultAmount1 = amount1 + } + + return resultAmount0, resultAmount1 +} + +func CalcResidualValue( + amount0, amount1 sdk.Int, + priceLowerTakerToMaker math_utils.PrecDec, + fee int64, +) (math_utils.PrecDec, error) { + // ResidualValue = Amount0 * (Price1to0Center / Price1to0Upper) + Amount1 * Price1to0Lower + amount0Discount, err := CalcPrice(-fee) + if err != nil { + return math_utils.ZeroPrecDec(), err + } + + return amount0Discount.MulInt(amount0).Add(priceLowerTakerToMaker.MulInt(amount1)), nil +} + +func CalcFee(upperTickIndex, lowerTickIndex int64) int64 { + return (upperTickIndex - lowerTickIndex) / 2 +} + +func CalcAmountAsToken0(amount0, amount1 sdk.Int, price1To0 math_utils.PrecDec) math_utils.PrecDec { + amount0Dec := math_utils.NewPrecDecFromInt(amount0) + + return amount0Dec.Add(price1To0.MulInt(amount1)) +} diff --git a/x/dex/types/pool.pb.go b/x/dex/types/pool.pb.go new file mode 100644 index 000000000..bfacf593e --- /dev/null +++ b/x/dex/types/pool.pb.go @@ -0,0 +1,424 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/pool.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Pool struct { + ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + LowerTick0 *PoolReserves `protobuf:"bytes,2,opt,name=lower_tick0,json=lowerTick0,proto3" json:"lower_tick0,omitempty"` + UpperTick1 *PoolReserves `protobuf:"bytes,3,opt,name=upper_tick1,json=upperTick1,proto3" json:"upper_tick1,omitempty"` +} + +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_458bee7d4cc3fc09, []int{0} +} +func (m *Pool) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Pool.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 *Pool) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pool.Merge(m, src) +} +func (m *Pool) XXX_Size() int { + return m.Size() +} +func (m *Pool) XXX_DiscardUnknown() { + xxx_messageInfo_Pool.DiscardUnknown(m) +} + +var xxx_messageInfo_Pool proto.InternalMessageInfo + +func (m *Pool) GetID() uint64 { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Pool) GetLowerTick0() *PoolReserves { + if m != nil { + return m.LowerTick0 + } + return nil +} + +func (m *Pool) GetUpperTick1() *PoolReserves { + if m != nil { + return m.UpperTick1 + } + return nil +} + +func init() { + proto.RegisterType((*Pool)(nil), "duality.dex.Pool") +} + +func init() { proto.RegisterFile("duality/dex/pool.proto", fileDescriptor_458bee7d4cc3fc09) } + +var fileDescriptor_458bee7d4cc3fc09 = []byte{ + // 229 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0xd1, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x8a, 0xeb, 0xa5, 0xa4, 0x56, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, + 0x83, 0xc5, 0xf5, 0x41, 0x2c, 0x88, 0x12, 0x29, 0x79, 0x74, 0xad, 0xf1, 0x45, 0xa9, 0xc5, 0xa9, + 0x45, 0x65, 0xa9, 0xc5, 0x10, 0x05, 0x4a, 0x7d, 0x8c, 0x5c, 0x2c, 0x01, 0xf9, 0xf9, 0x39, 0x42, + 0x7c, 0x5c, 0x4c, 0x9e, 0x2e, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x4c, 0x9e, 0x2e, 0x42, + 0x56, 0x5c, 0xdc, 0x39, 0xf9, 0xe5, 0xa9, 0x45, 0xf1, 0x25, 0x99, 0xc9, 0xd9, 0x06, 0x12, 0x4c, + 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x92, 0x7a, 0x48, 0x56, 0xea, 0x81, 0xf4, 0x05, 0x41, 0x8d, 0x0b, + 0xe2, 0x02, 0xab, 0x0e, 0x01, 0x29, 0x06, 0xe9, 0x2d, 0x2d, 0x28, 0x80, 0xea, 0x35, 0x94, 0x60, + 0x26, 0xa8, 0x17, 0xac, 0x1a, 0xa4, 0xd7, 0xd0, 0xc9, 0xf5, 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, 0xb4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, + 0xa1, 0x46, 0xe9, 0xe6, 0x24, 0x26, 0x15, 0xc3, 0x38, 0xfa, 0x15, 0x60, 0x5f, 0x96, 0x54, 0x16, + 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xbd, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x0b, 0xf6, + 0xad, 0x3c, 0x01, 0x00, 0x00, +} + +func (m *Pool) 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 *Pool) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UpperTick1 != nil { + { + size, err := m.UpperTick1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.LowerTick0 != nil { + { + size, err := m.LowerTick0.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ID != 0 { + i = encodeVarintPool(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPool(dAtA []byte, offset int, v uint64) int { + offset -= sovPool(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Pool) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovPool(uint64(m.ID)) + } + if m.LowerTick0 != nil { + l = m.LowerTick0.Size() + n += 1 + l + sovPool(uint64(l)) + } + if m.UpperTick1 != nil { + l = m.UpperTick1.Size() + n += 1 + l + sovPool(uint64(l)) + } + return n +} + +func sovPool(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPool(x uint64) (n int) { + return sovPool(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Pool) 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 ErrIntOverflowPool + } + 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: Pool: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Pool: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LowerTick0", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LowerTick0 == nil { + m.LowerTick0 = &PoolReserves{} + } + if err := m.LowerTick0.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpperTick1", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpperTick1 == nil { + m.UpperTick1 = &PoolReserves{} + } + if err := m.UpperTick1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPool(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPool + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPool(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, ErrIntOverflowPool + } + 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, ErrIntOverflowPool + } + 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, ErrIntOverflowPool + } + 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, ErrInvalidLengthPool + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPool + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPool + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPool = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPool = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPool = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/pool_denom.go b/x/dex/types/pool_denom.go new file mode 100644 index 000000000..f27660d7d --- /dev/null +++ b/x/dex/types/pool_denom.go @@ -0,0 +1,41 @@ +package types + +import ( + "fmt" + "regexp" + "strconv" +) + +const ( + PoolDenomPrefix = "duality/pool/" + PoolDenomRegexpStr = "^" + PoolDenomPrefix + `(\d+)` + "$" +) + +var PoolDenomRegexp = regexp.MustCompile(PoolDenomRegexpStr) + +func NewPoolDenom(poolID uint64) string { + return fmt.Sprintf("%s%d", PoolDenomPrefix, poolID) +} + +func ValidatePoolDenom(denom string) error { + if !PoolDenomRegexp.MatchString(denom) { + return ErrInvalidPoolDenom + } + + return nil +} + +func ParsePoolIDFromDenom(denom string) (uint64, error) { + res := PoolDenomRegexp.FindStringSubmatch(denom) + if len(res) != 2 { + return 0, ErrInvalidPoolDenom + } + idStr := res[1] + + idInt, err := strconv.ParseUint(idStr, 10, 0) + if err != nil { + return 0, ErrInvalidPoolDenom + } + + return idInt, nil +} diff --git a/x/dex/types/pool_denom_test.go b/x/dex/types/pool_denom_test.go new file mode 100644 index 000000000..9c609e797 --- /dev/null +++ b/x/dex/types/pool_denom_test.go @@ -0,0 +1,55 @@ +package types_test + +import ( + "testing" + + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/require" +) + +func TestParsePoolIDFromDenom(t *testing.T) { + for _, tc := range []struct { + desc string + denom string + expected uint64 + valid bool + }{ + { + desc: "valid denom", + denom: "duality/pool/0", + expected: 0, + valid: true, + }, + { + desc: "valid denom long", + denom: "duality/pool/999999999", + expected: 999999999, + valid: true, + }, + { + desc: "invalid format 1", + denom: "/duality/pool/0", + valid: false, + }, + { + desc: "invalid format 2", + denom: "duality/pool/0/", + valid: false, + }, + { + desc: "invalid denom prefix", + denom: "INVALID/pool/0", + valid: false, + }, + } { + t.Run(tc.desc, func(t *testing.T) { + id, err := ParsePoolIDFromDenom(tc.denom) + if tc.valid { + require.NoError(t, err) + require.Equal(t, tc.expected, id) + } else { + require.Error(t, err) + } + }) + } +} diff --git a/x/dex/types/pool_liquidity.go b/x/dex/types/pool_liquidity.go new file mode 100644 index 000000000..47e2eefd6 --- /dev/null +++ b/x/dex/types/pool_liquidity.go @@ -0,0 +1,26 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" +) + +type PoolLiquidity struct { + TradePairID *TradePairID + Pool *Pool +} + +func (pl *PoolLiquidity) Swap( + maxAmountTakerDenomIn sdk.Int, + maxAmountMakerDenomOut *sdk.Int, +) (inAmount, outAmount sdk.Int) { + return pl.Pool.Swap( + pl.TradePairID, + maxAmountTakerDenomIn, + maxAmountMakerDenomOut, + ) +} + +func (pl *PoolLiquidity) Price() math_utils.PrecDec { + return pl.Pool.Price(pl.TradePairID) +} diff --git a/x/dex/types/pool_metadata.go b/x/dex/types/pool_metadata.go new file mode 100644 index 000000000..eff09212b --- /dev/null +++ b/x/dex/types/pool_metadata.go @@ -0,0 +1,5 @@ +package types + +func NewPoolMetadata(pairID *PairID, tick int64, fee uint64, poolID uint64) PoolMetadata { + return PoolMetadata{PairID: pairID, Tick: tick, Fee: fee, ID: poolID} +} diff --git a/x/dex/types/pool_metadata.pb.go b/x/dex/types/pool_metadata.pb.go new file mode 100644 index 000000000..610f79cfc --- /dev/null +++ b/x/dex/types/pool_metadata.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/pool_metadata.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type PoolMetadata struct { + ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Tick int64 `protobuf:"varint,2,opt,name=tick,proto3" json:"tick,omitempty"` + Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` + PairID *PairID `protobuf:"bytes,4,opt,name=pairID,proto3" json:"pairID,omitempty"` +} + +func (m *PoolMetadata) Reset() { *m = PoolMetadata{} } +func (m *PoolMetadata) String() string { return proto.CompactTextString(m) } +func (*PoolMetadata) ProtoMessage() {} +func (*PoolMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_20ad68f12715e384, []int{0} +} +func (m *PoolMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PoolMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PoolMetadata.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 *PoolMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_PoolMetadata.Merge(m, src) +} +func (m *PoolMetadata) XXX_Size() int { + return m.Size() +} +func (m *PoolMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_PoolMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_PoolMetadata proto.InternalMessageInfo + +func (m *PoolMetadata) GetID() uint64 { + if m != nil { + return m.ID + } + return 0 +} + +func (m *PoolMetadata) GetTick() int64 { + if m != nil { + return m.Tick + } + return 0 +} + +func (m *PoolMetadata) GetFee() uint64 { + if m != nil { + return m.Fee + } + return 0 +} + +func (m *PoolMetadata) GetPairID() *PairID { + if m != nil { + return m.PairID + } + return nil +} + +func init() { + proto.RegisterType((*PoolMetadata)(nil), "duality.dex.PoolMetadata") +} + +func init() { proto.RegisterFile("duality/dex/pool_metadata.proto", fileDescriptor_20ad68f12715e384) } + +var fileDescriptor_20ad68f12715e384 = []byte{ + // 224 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0x89, 0xcf, 0x4d, 0x2d, + 0x49, 0x4c, 0x49, 0x2c, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x2a, 0xd0, + 0x4b, 0x49, 0xad, 0x90, 0x92, 0x44, 0x51, 0x9d, 0x98, 0x59, 0x14, 0x9f, 0x99, 0x02, 0x51, 0xa7, + 0x54, 0xc8, 0xc5, 0x13, 0x90, 0x9f, 0x9f, 0xe3, 0x0b, 0xd5, 0x2d, 0xc4, 0xc7, 0xc5, 0xe4, 0xe9, + 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x12, 0xc4, 0xe4, 0xe9, 0x22, 0x24, 0xc4, 0xc5, 0x52, 0x92, + 0x99, 0x9c, 0x2d, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x1c, 0x04, 0x66, 0x0b, 0x09, 0x70, 0x31, 0xa7, + 0xa5, 0xa6, 0x4a, 0x30, 0x83, 0x15, 0x81, 0x98, 0x42, 0xda, 0x5c, 0x6c, 0x20, 0x63, 0x3d, 0x5d, + 0x24, 0x58, 0x14, 0x18, 0x35, 0xb8, 0x8d, 0x84, 0xf5, 0x90, 0xac, 0xd7, 0x0b, 0x00, 0x4b, 0x05, + 0x41, 0x95, 0x38, 0xb9, 0x9e, 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, 0x76, + 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x00, 0xdd, 0x9c, 0xc4, + 0xa4, 0x62, 0x18, 0x47, 0xbf, 0x02, 0xec, 0x83, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, + 0x07, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x45, 0x67, 0x83, 0xda, 0x0b, 0x01, 0x00, 0x00, +} + +func (m *PoolMetadata) 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 *PoolMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PoolMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PairID != nil { + { + size, err := m.PairID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPoolMetadata(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Fee != 0 { + i = encodeVarintPoolMetadata(dAtA, i, uint64(m.Fee)) + i-- + dAtA[i] = 0x18 + } + if m.Tick != 0 { + i = encodeVarintPoolMetadata(dAtA, i, uint64(m.Tick)) + i-- + dAtA[i] = 0x10 + } + if m.ID != 0 { + i = encodeVarintPoolMetadata(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPoolMetadata(dAtA []byte, offset int, v uint64) int { + offset -= sovPoolMetadata(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PoolMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovPoolMetadata(uint64(m.ID)) + } + if m.Tick != 0 { + n += 1 + sovPoolMetadata(uint64(m.Tick)) + } + if m.Fee != 0 { + n += 1 + sovPoolMetadata(uint64(m.Fee)) + } + if m.PairID != nil { + l = m.PairID.Size() + n += 1 + l + sovPoolMetadata(uint64(l)) + } + return n +} + +func sovPoolMetadata(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPoolMetadata(x uint64) (n int) { + return sovPoolMetadata(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PoolMetadata) 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 ErrIntOverflowPoolMetadata + } + 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: PoolMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PoolMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType) + } + m.Tick = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Tick |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + m.Fee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Fee |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPoolMetadata + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPoolMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PairID == nil { + m.PairID = &PairID{} + } + if err := m.PairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPoolMetadata(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPoolMetadata + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPoolMetadata(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, ErrIntOverflowPoolMetadata + } + 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, ErrIntOverflowPoolMetadata + } + 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, ErrIntOverflowPoolMetadata + } + 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, ErrInvalidLengthPoolMetadata + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPoolMetadata + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPoolMetadata + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPoolMetadata = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPoolMetadata = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPoolMetadata = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/pool_reserves.go b/x/dex/types/pool_reserves.go new file mode 100644 index 000000000..0d523338a --- /dev/null +++ b/x/dex/types/pool_reserves.go @@ -0,0 +1,52 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (p PoolReserves) HasToken() bool { + return p.ReservesMakerDenom.GT(sdk.ZeroInt()) +} + +func NewPoolReservesFromCounterpart( + counterpart *PoolReserves, +) *PoolReserves { + thisID := counterpart.Key.Counterpart() + return &PoolReserves{ + Key: thisID, + ReservesMakerDenom: sdk.ZeroInt(), + PriceTakerToMaker: counterpart.PriceOppositeTakerToMaker, + PriceOppositeTakerToMaker: counterpart.PriceTakerToMaker, + } +} + +func NewPoolReserves( + poolReservesID *PoolReservesKey, +) (*PoolReserves, error) { + priceTakerToMaker, err := poolReservesID.PriceTakerToMaker() + if err != nil { + return nil, err + } + counterpartID := poolReservesID.Counterpart() + priceOppositeTakerToMaker, err := counterpartID.PriceTakerToMaker() + if err != nil { + return nil, err + } + + return &PoolReserves{ + Key: poolReservesID, + ReservesMakerDenom: sdk.ZeroInt(), + PriceTakerToMaker: priceTakerToMaker, + PriceOppositeTakerToMaker: priceOppositeTakerToMaker, + }, nil +} + +func MustNewPoolReserves( + poolReservesID *PoolReservesKey, +) *PoolReserves { + poolReserves, err := NewPoolReserves(poolReservesID) + if err != nil { + panic(err) + } + return poolReserves +} diff --git a/x/dex/types/pool_reserves.pb.go b/x/dex/types/pool_reserves.pb.go new file mode 100644 index 000000000..b2020007b --- /dev/null +++ b/x/dex/types/pool_reserves.pb.go @@ -0,0 +1,734 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/pool_reserves.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type PoolReservesKey struct { + TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` + TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=TickIndexTakerToMaker,proto3" json:"TickIndexTakerToMaker,omitempty"` + Fee uint64 `protobuf:"varint,3,opt,name=Fee,proto3" json:"Fee,omitempty"` +} + +func (m *PoolReservesKey) Reset() { *m = PoolReservesKey{} } +func (m *PoolReservesKey) String() string { return proto.CompactTextString(m) } +func (*PoolReservesKey) ProtoMessage() {} +func (*PoolReservesKey) Descriptor() ([]byte, []int) { + return fileDescriptor_d37077b416662cb1, []int{0} +} +func (m *PoolReservesKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PoolReservesKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PoolReservesKey.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 *PoolReservesKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PoolReservesKey.Merge(m, src) +} +func (m *PoolReservesKey) XXX_Size() int { + return m.Size() +} +func (m *PoolReservesKey) XXX_DiscardUnknown() { + xxx_messageInfo_PoolReservesKey.DiscardUnknown(m) +} + +var xxx_messageInfo_PoolReservesKey proto.InternalMessageInfo + +func (m *PoolReservesKey) GetTradePairID() *TradePairID { + if m != nil { + return m.TradePairID + } + return nil +} + +func (m *PoolReservesKey) GetTickIndexTakerToMaker() int64 { + if m != nil { + return m.TickIndexTakerToMaker + } + return 0 +} + +func (m *PoolReservesKey) GetFee() uint64 { + if m != nil { + return m.Fee + } + return 0 +} + +type PoolReserves struct { + Key *PoolReservesKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` + PriceTakerToMaker github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,3,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` + PriceOppositeTakerToMaker github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,4,opt,name=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceOppositeTakerToMaker" yaml:"priceOppositeTakerToMaker"` +} + +func (m *PoolReserves) Reset() { *m = PoolReserves{} } +func (m *PoolReserves) String() string { return proto.CompactTextString(m) } +func (*PoolReserves) ProtoMessage() {} +func (*PoolReserves) Descriptor() ([]byte, []int) { + return fileDescriptor_d37077b416662cb1, []int{1} +} +func (m *PoolReserves) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PoolReserves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PoolReserves.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 *PoolReserves) XXX_Merge(src proto.Message) { + xxx_messageInfo_PoolReserves.Merge(m, src) +} +func (m *PoolReserves) XXX_Size() int { + return m.Size() +} +func (m *PoolReserves) XXX_DiscardUnknown() { + xxx_messageInfo_PoolReserves.DiscardUnknown(m) +} + +var xxx_messageInfo_PoolReserves proto.InternalMessageInfo + +func (m *PoolReserves) GetKey() *PoolReservesKey { + if m != nil { + return m.Key + } + return nil +} + +func init() { + proto.RegisterType((*PoolReservesKey)(nil), "duality.dex.PoolReservesKey") + proto.RegisterType((*PoolReserves)(nil), "duality.dex.PoolReserves") +} + +func init() { proto.RegisterFile("duality/dex/pool_reserves.proto", fileDescriptor_d37077b416662cb1) } + +var fileDescriptor_d37077b416662cb1 = []byte{ + // 441 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xc1, 0x8a, 0xd3,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b, 0xbf, 0xdf, 0x70, 0x6d, + 0x43, 0x02, 0x76, 0xfb, 0xf6, 0xf3, 0x57, 0x97, 0x6b, 0x0f, 0x5d, 0xad, 0x3d, 0xf4, 0x6b, 0xed, + 0xa1, 0x4f, 0x1b, 0xaf, 0x73, 0xb5, 0xf1, 0x3a, 0x3f, 0x36, 0x5e, 0xe7, 0xfd, 0xf3, 0x7f, 0x99, + 0xae, 0x76, 0x9d, 0x51, 0xbd, 0xf4, 0xec, 0xae, 0x6d, 0x89, 0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, + 0xff, 0x92, 0xad, 0x36, 0xbf, 0x79, 0x03, 0x00, 0x00, +} + +func (m *PoolReservesKey) 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 *PoolReservesKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PoolReservesKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fee != 0 { + i = encodeVarintPoolReserves(dAtA, i, uint64(m.Fee)) + i-- + dAtA[i] = 0x18 + } + if m.TickIndexTakerToMaker != 0 { + i = encodeVarintPoolReserves(dAtA, i, uint64(m.TickIndexTakerToMaker)) + i-- + dAtA[i] = 0x10 + } + if m.TradePairID != nil { + { + size, err := m.TradePairID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPoolReserves(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PoolReserves) 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 *PoolReserves) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PoolReserves) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.PriceOppositeTakerToMaker.Size() + i -= size + if _, err := m.PriceOppositeTakerToMaker.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPoolReserves(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.PriceTakerToMaker.Size() + i -= size + if _, err := m.PriceTakerToMaker.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPoolReserves(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.ReservesMakerDenom.Size() + i -= size + if _, err := m.ReservesMakerDenom.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPoolReserves(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.Key != nil { + { + size, err := m.Key.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPoolReserves(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintPoolReserves(dAtA []byte, offset int, v uint64) int { + offset -= sovPoolReserves(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PoolReservesKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradePairID != nil { + l = m.TradePairID.Size() + n += 1 + l + sovPoolReserves(uint64(l)) + } + if m.TickIndexTakerToMaker != 0 { + n += 1 + sovPoolReserves(uint64(m.TickIndexTakerToMaker)) + } + if m.Fee != 0 { + n += 1 + sovPoolReserves(uint64(m.Fee)) + } + return n +} + +func (m *PoolReserves) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Key != nil { + l = m.Key.Size() + n += 1 + l + sovPoolReserves(uint64(l)) + } + l = m.ReservesMakerDenom.Size() + n += 1 + l + sovPoolReserves(uint64(l)) + l = m.PriceTakerToMaker.Size() + n += 1 + l + sovPoolReserves(uint64(l)) + l = m.PriceOppositeTakerToMaker.Size() + n += 1 + l + sovPoolReserves(uint64(l)) + return n +} + +func sovPoolReserves(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPoolReserves(x uint64) (n int) { + return sovPoolReserves(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PoolReservesKey) 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 ErrIntOverflowPoolReserves + } + 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: PoolReservesKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PoolReservesKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradePairID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPoolReserves + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPoolReserves + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TradePairID == nil { + m.TradePairID = &TradePairID{} + } + if err := m.TradePairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexTakerToMaker", wireType) + } + m.TickIndexTakerToMaker = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndexTakerToMaker |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + m.Fee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Fee |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipPoolReserves(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPoolReserves + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PoolReserves) 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 ErrIntOverflowPoolReserves + } + 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: PoolReserves: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PoolReserves: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPoolReserves + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPoolReserves + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Key == nil { + m.Key = &PoolReservesKey{} + } + if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservesMakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + 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 ErrInvalidLengthPoolReserves + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPoolReserves + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReservesMakerDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceTakerToMaker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + 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 ErrInvalidLengthPoolReserves + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPoolReserves + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PriceTakerToMaker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceOppositeTakerToMaker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPoolReserves + } + 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 ErrInvalidLengthPoolReserves + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPoolReserves + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PriceOppositeTakerToMaker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPoolReserves(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPoolReserves + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPoolReserves(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, ErrIntOverflowPoolReserves + } + 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, ErrIntOverflowPoolReserves + } + 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, ErrIntOverflowPoolReserves + } + 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, ErrInvalidLengthPoolReserves + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPoolReserves + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPoolReserves + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPoolReserves = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPoolReserves = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPoolReserves = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/pool_reserves_key.go b/x/dex/types/pool_reserves_key.go new file mode 100644 index 000000000..0560f9fa1 --- /dev/null +++ b/x/dex/types/pool_reserves_key.go @@ -0,0 +1,87 @@ +package types + +import ( + "errors" + "strings" + + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/utils" +) + +var _ TickLiquidityKey = (*PoolReservesKey)(nil) + +func (p PoolReservesKey) KeyMarshal() []byte { + var key []byte + + pairKeyBytes := []byte(p.TradePairID.MustPairID().CanonicalString()) + key = append(key, pairKeyBytes...) + key = append(key, []byte("/")...) + + makerDenomBytes := []byte(p.TradePairID.MakerDenom) + key = append(key, makerDenomBytes...) + key = append(key, []byte("/")...) + + tickIndexBytes := TickIndexToBytes(p.TickIndexTakerToMaker) + key = append(key, tickIndexBytes...) + key = append(key, []byte("/")...) + + liquidityTypeBytes := []byte(LiquidityTypePoolReserves) + key = append(key, liquidityTypeBytes...) + key = append(key, []byte("/")...) + + feeBytes := sdk.Uint64ToBigEndian(p.Fee) + key = append(key, feeBytes...) + key = append(key, []byte("/")...) + + return key +} + +func (p PoolReservesKey) KeyUnmarshal(bz []byte) error { + split := strings.Split(string(bz), "/") + + if len(split) != 5 { + return errors.New("invalid input length") + } + + pairKey, err := NewPairIDFromCanonicalString(split[0]) + if err != nil { + return err + } + p.TradePairID = pairKey.MustTradePairIDFromMaker(split[1]) + + tickIndex, err := BytesToTickIndex([]byte(split[2])) + if err != nil { + return err + } + p.TickIndexTakerToMaker = tickIndex + + if split[3] != LiquidityTypePoolReserves { + return errors.New("unexpected liquidity type") + } + + p.Fee = sdk.BigEndianToUint64([]byte(split[4])) + + return nil +} + +func (p PoolReservesKey) Counterpart() *PoolReservesKey { + feeInt64 := utils.MustSafeUint64ToInt64(p.Fee) + return &PoolReservesKey{ + TradePairID: p.TradePairID.Reversed(), + TickIndexTakerToMaker: p.TickIndexTakerToMaker*-1 + 2*feeInt64, + Fee: p.Fee, + } +} + +func (p PoolReservesKey) PriceTakerToMaker() (priceTakerToMaker math_utils.PrecDec, err error) { + return CalcPrice(p.TickIndexTakerToMaker) +} + +func (p PoolReservesKey) MustPriceTakerToMaker() (priceTakerToMaker math_utils.PrecDec) { + price, err := p.PriceTakerToMaker() + if err != nil { + panic(err) + } + return price +} diff --git a/x/dex/types/pool_test.go b/x/dex/types/pool_test.go new file mode 100644 index 000000000..98f721143 --- /dev/null +++ b/x/dex/types/pool_test.go @@ -0,0 +1,208 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + . "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/assert" +) + +func TestCalcGreatestMatchingRatioBothReservesNonZero(t *testing.T) { + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(10), + sdk.NewInt(40), + sdk.NewInt(100), + sdk.NewInt(100), + ) + assert.Equal(t, sdk.NewInt(25), trueAmount0) + assert.Equal(t, sdk.NewInt(100), trueAmount1) +} + +func TestCalcGreatestMatchingRatioBothReservesZero(t *testing.T) { + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(0), + sdk.NewInt(0), + sdk.NewInt(100), + sdk.NewInt(100), + ) + assert.Equal(t, sdk.NewInt(100), trueAmount0) + assert.Equal(t, sdk.NewInt(100), trueAmount1) +} + +func TestCalcGreatestMatchingRatioWrongCoinDeposited(t *testing.T) { + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(100), + sdk.NewInt(0), + sdk.NewInt(0), + sdk.NewInt(100), + ) + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) + + trueAmount0, trueAmount1 = CalcGreatestMatchingRatio( + sdk.NewInt(0), + sdk.NewInt(100), + sdk.NewInt(100), + sdk.NewInt(0), + ) + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) +} + +func TestCalcGreatestMatchingRatioOneReserveZero(t *testing.T) { + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(100), + sdk.NewInt(0), + sdk.NewInt(100), + sdk.NewInt(100), + ) + assert.Equal(t, sdk.NewInt(100), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) + + trueAmount0, trueAmount1 = CalcGreatestMatchingRatio( + sdk.NewInt(0), + sdk.NewInt(100), + sdk.NewInt(100), + sdk.NewInt(100), + ) + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(100), trueAmount1) +} + +func TestCalcGreatestMatchingRatio2SidedPoolBothSidesRightRatio(t *testing.T) { + // WHEN deposit into a pool with a ratio of 2:5 with the same ratio all of the tokens are used + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(20), + sdk.NewInt(50), + sdk.NewInt(4), + sdk.NewInt(10), + ) + + // THEN both amounts are fully user + + assert.Equal(t, sdk.NewInt(4), trueAmount0) + assert.Equal(t, sdk.NewInt(10), trueAmount1) +} + +func TestCalcGreatestMatchingRatio2SidedPoolBothSidesWrongRatio(t *testing.T) { + // WHEN deposit into a pool with a ratio of 3:2 with a ratio of 2:1 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(3), + sdk.NewInt(2), + sdk.NewInt(20), + sdk.NewInt(10), + ) + + // THEN all of Token1 is used and 3/4 of token0 is used + + assert.Equal(t, sdk.NewInt(15), trueAmount0) + assert.Equal(t, sdk.NewInt(10), trueAmount1) +} + +func TestCalcGreatestMatchingRatio2SidedPoolBothSidesWrongRatio2(t *testing.T) { + // IF deposit into a pool with a ratio of 2:3 with a ratio of 1:2 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(2), + sdk.NewInt(3), + sdk.NewInt(10), + sdk.NewInt(20), + ) + + // THEN all of Token0 is used and 3/4 of token1 is used + + assert.Equal(t, sdk.NewInt(10), trueAmount0) + assert.Equal(t, sdk.NewInt(15), trueAmount1) +} + +func TestCalcGreatestMatchingRatio1SidedPoolBothSides(t *testing.T) { + // WHEN deposit Token0 and Token1 into a pool with only Token0 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(10), + sdk.NewInt(0), + sdk.NewInt(10), + sdk.NewInt(10), + ) + + // THEN only Token0 is used + + assert.Equal(t, sdk.NewInt(10), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) +} + +func TestCalcGreatestMatchingRatio1SidedPoolBothSides2(t *testing.T) { + // WHEN deposit Token0 and Token1 into a pool with only Token1 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + + sdk.NewInt(0), + sdk.NewInt(10), + sdk.NewInt(10), + sdk.NewInt(10), + ) + + // THEN only Token1 is used + + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(10), trueAmount1) +} + +func TestCalcGreatestMatchingRatio1SidedPool1SidedToken0(t *testing.T) { + // WHEN deposit Token0 into a pool with only Token1 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + + sdk.NewInt(0), + sdk.NewInt(10), + sdk.NewInt(10), + sdk.NewInt(0), + ) + + // THEN no amounts are used + + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) +} + +func TestCalcGreatestMatchingRatio1SidedPool1SidedToken0B(t *testing.T) { + // WHEN deposit Token0 into a pool with only Token0 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(10), + sdk.NewInt(0), + sdk.NewInt(10), + sdk.NewInt(0), + ) + + // THEN all of Token0 is used + + assert.Equal(t, sdk.NewInt(10), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) +} + +func TestCalcGreatestMatchingRatio1SidedPool1SidedToken1(t *testing.T) { + // WHEN deposit Token1 into a pool with only Token0 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(10), + sdk.NewInt(0), + sdk.NewInt(0), + sdk.NewInt(1), + ) + + // THEN no amounts are used + + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(0), trueAmount1) +} + +func TestCalcGreatestMatchingRatio1SidedPool1SidedToken1B(t *testing.T) { + // WHEN deposit Token1 into a pool with only Token1 + trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( + sdk.NewInt(0), + sdk.NewInt(10), + sdk.NewInt(0), + sdk.NewInt(10), + ) + + // THEN all of Token1 is used + + assert.Equal(t, sdk.NewInt(0), trueAmount0) + assert.Equal(t, sdk.NewInt(10), trueAmount1) +} diff --git a/x/dex/types/price.go b/x/dex/types/price.go new file mode 100644 index 000000000..cd799dd41 --- /dev/null +++ b/x/dex/types/price.go @@ -0,0 +1,37 @@ +package types + +import ( + math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/x/dex/utils" +) + +// NOTE: 559_680 is the highest possible tick at which price can be calculated with a < 1% error +// when using 26 digit decimal precision (via prec_dec). +// The error rate for very negative ticks approaches zero, so there is no concern there +const MaxTickExp uint64 = 559_680 + +// Calculates the price for a swap from token 0 to token 1 given a relative tick +// tickIndex refers to the index of a specified tick such that x * 1.0001 ^(-1 * t) = y +// Lower ticks offer better prices. +func CalcPrice(relativeTickIndex int64) (math_utils.PrecDec, error) { + if IsTickOutOfRange(relativeTickIndex) { + return math_utils.ZeroPrecDec(), ErrTickOutsideRange + } + if relativeTickIndex < 0 { + return utils.BasePrice().Power(uint64(-1 * relativeTickIndex)), nil + } else { + return math_utils.OnePrecDec().Quo(utils.BasePrice().Power(uint64(relativeTickIndex))), nil + } +} + +func MustCalcPrice(relativeTickIndex int64) math_utils.PrecDec { + price, err := CalcPrice(relativeTickIndex) + if err != nil { + panic(err) + } + return price +} + +func IsTickOutOfRange(tickIndex int64) bool { + return tickIndex > 0 && uint64(tickIndex) > MaxTickExp +} diff --git a/x/dex/types/price_test.go b/x/dex/types/price_test.go new file mode 100644 index 000000000..b2f350cbf --- /dev/null +++ b/x/dex/types/price_test.go @@ -0,0 +1,11 @@ +package types_test + +// This will continue to fail until we upgrade away from sdk.Dec +// func TestPriceMath(t *testing.T) { +// tick := 352437 +// amount := sdk.MustNewDecFromStr("1000000000000000000000") +// basePrice := utils.BasePrice() +// expected := amount.Quo(basePrice.Power(uint64(tick))).TruncateInt() +// result := types.MustCalcPrice(int64(tick)).Mul(amount).TruncateInt() +// assert.Equal(t, expected.Int64(), result.Int64()) +// } diff --git a/x/dex/types/query.pb.go b/x/dex/types/query.pb.go new file mode 100644 index 000000000..dc5b5d9ac --- /dev/null +++ b/x/dex/types/query.pb.go @@ -0,0 +1,9224 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +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_4664128fddcf2b7a, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +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_4664128fddcf2b7a, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryGetLimitOrderTrancheUserRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` +} + +func (m *QueryGetLimitOrderTrancheUserRequest) Reset() { *m = QueryGetLimitOrderTrancheUserRequest{} } +func (m *QueryGetLimitOrderTrancheUserRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetLimitOrderTrancheUserRequest) ProtoMessage() {} +func (*QueryGetLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{2} +} +func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetLimitOrderTrancheUserRequest.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 *QueryGetLimitOrderTrancheUserRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetLimitOrderTrancheUserRequest.Merge(m, src) +} +func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetLimitOrderTrancheUserRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetLimitOrderTrancheUserRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetLimitOrderTrancheUserRequest proto.InternalMessageInfo + +func (m *QueryGetLimitOrderTrancheUserRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryGetLimitOrderTrancheUserRequest) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type QueryGetLimitOrderTrancheUserResponse struct { + LimitOrderTrancheUser *LimitOrderTrancheUser `protobuf:"bytes,1,opt,name=LimitOrderTrancheUser,proto3" json:"LimitOrderTrancheUser,omitempty"` +} + +func (m *QueryGetLimitOrderTrancheUserResponse) Reset() { *m = QueryGetLimitOrderTrancheUserResponse{} } +func (m *QueryGetLimitOrderTrancheUserResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetLimitOrderTrancheUserResponse) ProtoMessage() {} +func (*QueryGetLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{3} +} +func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetLimitOrderTrancheUserResponse.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 *QueryGetLimitOrderTrancheUserResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetLimitOrderTrancheUserResponse.Merge(m, src) +} +func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetLimitOrderTrancheUserResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetLimitOrderTrancheUserResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetLimitOrderTrancheUserResponse proto.InternalMessageInfo + +func (m *QueryGetLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser() *LimitOrderTrancheUser { + if m != nil { + return m.LimitOrderTrancheUser + } + return nil +} + +type QueryAllLimitOrderTrancheUserRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllLimitOrderTrancheUserRequest) Reset() { *m = QueryAllLimitOrderTrancheUserRequest{} } +func (m *QueryAllLimitOrderTrancheUserRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllLimitOrderTrancheUserRequest) ProtoMessage() {} +func (*QueryAllLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{4} +} +func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllLimitOrderTrancheUserRequest.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 *QueryAllLimitOrderTrancheUserRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllLimitOrderTrancheUserRequest.Merge(m, src) +} +func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllLimitOrderTrancheUserRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllLimitOrderTrancheUserRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllLimitOrderTrancheUserRequest proto.InternalMessageInfo + +func (m *QueryAllLimitOrderTrancheUserRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllLimitOrderTrancheUserResponse struct { + LimitOrderTrancheUser []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=LimitOrderTrancheUser,proto3" json:"LimitOrderTrancheUser,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllLimitOrderTrancheUserResponse) Reset() { *m = QueryAllLimitOrderTrancheUserResponse{} } +func (m *QueryAllLimitOrderTrancheUserResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllLimitOrderTrancheUserResponse) ProtoMessage() {} +func (*QueryAllLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{5} +} +func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllLimitOrderTrancheUserResponse.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 *QueryAllLimitOrderTrancheUserResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllLimitOrderTrancheUserResponse.Merge(m, src) +} +func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllLimitOrderTrancheUserResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllLimitOrderTrancheUserResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllLimitOrderTrancheUserResponse proto.InternalMessageInfo + +func (m *QueryAllLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser() []*LimitOrderTrancheUser { + if m != nil { + return m.LimitOrderTrancheUser + } + return nil +} + +func (m *QueryAllLimitOrderTrancheUserResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryGetLimitOrderTrancheRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TickIndex int64 `protobuf:"varint,2,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` + TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + TrancheKey string `protobuf:"bytes,4,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` +} + +func (m *QueryGetLimitOrderTrancheRequest) Reset() { *m = QueryGetLimitOrderTrancheRequest{} } +func (m *QueryGetLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetLimitOrderTrancheRequest) ProtoMessage() {} +func (*QueryGetLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{6} +} +func (m *QueryGetLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetLimitOrderTrancheRequest.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 *QueryGetLimitOrderTrancheRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetLimitOrderTrancheRequest.Merge(m, src) +} +func (m *QueryGetLimitOrderTrancheRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetLimitOrderTrancheRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetLimitOrderTrancheRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetLimitOrderTrancheRequest proto.InternalMessageInfo + +func (m *QueryGetLimitOrderTrancheRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryGetLimitOrderTrancheRequest) GetTickIndex() int64 { + if m != nil { + return m.TickIndex + } + return 0 +} + +func (m *QueryGetLimitOrderTrancheRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryGetLimitOrderTrancheRequest) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type QueryGetLimitOrderTrancheResponse struct { + LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=LimitOrderTranche,proto3" json:"LimitOrderTranche,omitempty"` +} + +func (m *QueryGetLimitOrderTrancheResponse) Reset() { *m = QueryGetLimitOrderTrancheResponse{} } +func (m *QueryGetLimitOrderTrancheResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetLimitOrderTrancheResponse) ProtoMessage() {} +func (*QueryGetLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{7} +} +func (m *QueryGetLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetLimitOrderTrancheResponse.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 *QueryGetLimitOrderTrancheResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetLimitOrderTrancheResponse.Merge(m, src) +} +func (m *QueryGetLimitOrderTrancheResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetLimitOrderTrancheResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetLimitOrderTrancheResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetLimitOrderTrancheResponse proto.InternalMessageInfo + +func (m *QueryGetLimitOrderTrancheResponse) GetLimitOrderTranche() *LimitOrderTranche { + if m != nil { + return m.LimitOrderTranche + } + return nil +} + +type QueryAllLimitOrderTrancheRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllLimitOrderTrancheRequest) Reset() { *m = QueryAllLimitOrderTrancheRequest{} } +func (m *QueryAllLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllLimitOrderTrancheRequest) ProtoMessage() {} +func (*QueryAllLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{8} +} +func (m *QueryAllLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllLimitOrderTrancheRequest.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 *QueryAllLimitOrderTrancheRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllLimitOrderTrancheRequest.Merge(m, src) +} +func (m *QueryAllLimitOrderTrancheRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllLimitOrderTrancheRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllLimitOrderTrancheRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllLimitOrderTrancheRequest proto.InternalMessageInfo + +func (m *QueryAllLimitOrderTrancheRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryAllLimitOrderTrancheRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryAllLimitOrderTrancheRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllLimitOrderTrancheResponse struct { + LimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=LimitOrderTranche,proto3" json:"LimitOrderTranche,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllLimitOrderTrancheResponse) Reset() { *m = QueryAllLimitOrderTrancheResponse{} } +func (m *QueryAllLimitOrderTrancheResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllLimitOrderTrancheResponse) ProtoMessage() {} +func (*QueryAllLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{9} +} +func (m *QueryAllLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllLimitOrderTrancheResponse.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 *QueryAllLimitOrderTrancheResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllLimitOrderTrancheResponse.Merge(m, src) +} +func (m *QueryAllLimitOrderTrancheResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllLimitOrderTrancheResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllLimitOrderTrancheResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllLimitOrderTrancheResponse proto.InternalMessageInfo + +func (m *QueryAllLimitOrderTrancheResponse) GetLimitOrderTranche() []*LimitOrderTranche { + if m != nil { + return m.LimitOrderTranche + } + return nil +} + +func (m *QueryAllLimitOrderTrancheResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllUserDepositsRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserDepositsRequest) Reset() { *m = QueryAllUserDepositsRequest{} } +func (m *QueryAllUserDepositsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllUserDepositsRequest) ProtoMessage() {} +func (*QueryAllUserDepositsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{10} +} +func (m *QueryAllUserDepositsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserDepositsRequest.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 *QueryAllUserDepositsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserDepositsRequest.Merge(m, src) +} +func (m *QueryAllUserDepositsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserDepositsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserDepositsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserDepositsRequest proto.InternalMessageInfo + +func (m *QueryAllUserDepositsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAllUserDepositsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllUserDepositsResponse struct { + Deposits []*DepositRecord `protobuf:"bytes,1,rep,name=Deposits,proto3" json:"Deposits,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserDepositsResponse) Reset() { *m = QueryAllUserDepositsResponse{} } +func (m *QueryAllUserDepositsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllUserDepositsResponse) ProtoMessage() {} +func (*QueryAllUserDepositsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{11} +} +func (m *QueryAllUserDepositsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserDepositsResponse.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 *QueryAllUserDepositsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserDepositsResponse.Merge(m, src) +} +func (m *QueryAllUserDepositsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserDepositsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserDepositsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserDepositsResponse proto.InternalMessageInfo + +func (m *QueryAllUserDepositsResponse) GetDeposits() []*DepositRecord { + if m != nil { + return m.Deposits + } + return nil +} + +func (m *QueryAllUserDepositsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllUserLimitOrdersRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserLimitOrdersRequest) Reset() { *m = QueryAllUserLimitOrdersRequest{} } +func (m *QueryAllUserLimitOrdersRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllUserLimitOrdersRequest) ProtoMessage() {} +func (*QueryAllUserLimitOrdersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{12} +} +func (m *QueryAllUserLimitOrdersRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserLimitOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserLimitOrdersRequest.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 *QueryAllUserLimitOrdersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserLimitOrdersRequest.Merge(m, src) +} +func (m *QueryAllUserLimitOrdersRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserLimitOrdersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserLimitOrdersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserLimitOrdersRequest proto.InternalMessageInfo + +func (m *QueryAllUserLimitOrdersRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAllUserLimitOrdersRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllUserLimitOrdersResponse struct { + LimitOrders []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=limitOrders,proto3" json:"limitOrders,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserLimitOrdersResponse) Reset() { *m = QueryAllUserLimitOrdersResponse{} } +func (m *QueryAllUserLimitOrdersResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllUserLimitOrdersResponse) ProtoMessage() {} +func (*QueryAllUserLimitOrdersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{13} +} +func (m *QueryAllUserLimitOrdersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserLimitOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserLimitOrdersResponse.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 *QueryAllUserLimitOrdersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserLimitOrdersResponse.Merge(m, src) +} +func (m *QueryAllUserLimitOrdersResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserLimitOrdersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserLimitOrdersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserLimitOrdersResponse proto.InternalMessageInfo + +func (m *QueryAllUserLimitOrdersResponse) GetLimitOrders() []*LimitOrderTrancheUser { + if m != nil { + return m.LimitOrders + } + return nil +} + +func (m *QueryAllUserLimitOrdersResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllTickLiquidityRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllTickLiquidityRequest) Reset() { *m = QueryAllTickLiquidityRequest{} } +func (m *QueryAllTickLiquidityRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllTickLiquidityRequest) ProtoMessage() {} +func (*QueryAllTickLiquidityRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{14} +} +func (m *QueryAllTickLiquidityRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllTickLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllTickLiquidityRequest.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 *QueryAllTickLiquidityRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllTickLiquidityRequest.Merge(m, src) +} +func (m *QueryAllTickLiquidityRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllTickLiquidityRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllTickLiquidityRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllTickLiquidityRequest proto.InternalMessageInfo + +func (m *QueryAllTickLiquidityRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryAllTickLiquidityRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryAllTickLiquidityRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllTickLiquidityResponse struct { + TickLiquidity []*TickLiquidity `protobuf:"bytes,1,rep,name=tickLiquidity,proto3" json:"tickLiquidity,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllTickLiquidityResponse) Reset() { *m = QueryAllTickLiquidityResponse{} } +func (m *QueryAllTickLiquidityResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllTickLiquidityResponse) ProtoMessage() {} +func (*QueryAllTickLiquidityResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{15} +} +func (m *QueryAllTickLiquidityResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllTickLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllTickLiquidityResponse.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 *QueryAllTickLiquidityResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllTickLiquidityResponse.Merge(m, src) +} +func (m *QueryAllTickLiquidityResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllTickLiquidityResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllTickLiquidityResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllTickLiquidityResponse proto.InternalMessageInfo + +func (m *QueryAllTickLiquidityResponse) GetTickLiquidity() []*TickLiquidity { + if m != nil { + return m.TickLiquidity + } + return nil +} + +func (m *QueryAllTickLiquidityResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryGetInactiveLimitOrderTrancheRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + TickIndex int64 `protobuf:"varint,3,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` + TrancheKey string `protobuf:"bytes,4,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) Reset() { + *m = QueryGetInactiveLimitOrderTrancheRequest{} +} +func (m *QueryGetInactiveLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetInactiveLimitOrderTrancheRequest) ProtoMessage() {} +func (*QueryGetInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{16} +} +func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetInactiveLimitOrderTrancheRequest.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 *QueryGetInactiveLimitOrderTrancheRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetInactiveLimitOrderTrancheRequest.Merge(m, src) +} +func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetInactiveLimitOrderTrancheRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetInactiveLimitOrderTrancheRequest proto.InternalMessageInfo + +func (m *QueryGetInactiveLimitOrderTrancheRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTickIndex() int64 { + if m != nil { + return m.TickIndex + } + return 0 +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type QueryGetInactiveLimitOrderTrancheResponse struct { + InactiveLimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=inactiveLimitOrderTranche,proto3" json:"inactiveLimitOrderTranche,omitempty"` +} + +func (m *QueryGetInactiveLimitOrderTrancheResponse) Reset() { + *m = QueryGetInactiveLimitOrderTrancheResponse{} +} +func (m *QueryGetInactiveLimitOrderTrancheResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryGetInactiveLimitOrderTrancheResponse) ProtoMessage() {} +func (*QueryGetInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{17} +} +func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetInactiveLimitOrderTrancheResponse.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 *QueryGetInactiveLimitOrderTrancheResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetInactiveLimitOrderTrancheResponse.Merge(m, src) +} +func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetInactiveLimitOrderTrancheResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetInactiveLimitOrderTrancheResponse proto.InternalMessageInfo + +func (m *QueryGetInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche() *LimitOrderTranche { + if m != nil { + return m.InactiveLimitOrderTranche + } + return nil +} + +type QueryAllInactiveLimitOrderTrancheRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllInactiveLimitOrderTrancheRequest) Reset() { + *m = QueryAllInactiveLimitOrderTrancheRequest{} +} +func (m *QueryAllInactiveLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllInactiveLimitOrderTrancheRequest) ProtoMessage() {} +func (*QueryAllInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{18} +} +func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllInactiveLimitOrderTrancheRequest.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 *QueryAllInactiveLimitOrderTrancheRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllInactiveLimitOrderTrancheRequest.Merge(m, src) +} +func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllInactiveLimitOrderTrancheRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllInactiveLimitOrderTrancheRequest proto.InternalMessageInfo + +func (m *QueryAllInactiveLimitOrderTrancheRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllInactiveLimitOrderTrancheResponse struct { + InactiveLimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=inactiveLimitOrderTranche,proto3" json:"inactiveLimitOrderTranche,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllInactiveLimitOrderTrancheResponse) Reset() { + *m = QueryAllInactiveLimitOrderTrancheResponse{} +} +func (m *QueryAllInactiveLimitOrderTrancheResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryAllInactiveLimitOrderTrancheResponse) ProtoMessage() {} +func (*QueryAllInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{19} +} +func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllInactiveLimitOrderTrancheResponse.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 *QueryAllInactiveLimitOrderTrancheResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllInactiveLimitOrderTrancheResponse.Merge(m, src) +} +func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllInactiveLimitOrderTrancheResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllInactiveLimitOrderTrancheResponse proto.InternalMessageInfo + +func (m *QueryAllInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche() []*LimitOrderTranche { + if m != nil { + return m.InactiveLimitOrderTranche + } + return nil +} + +func (m *QueryAllInactiveLimitOrderTrancheResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllPoolReservesRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllPoolReservesRequest) Reset() { *m = QueryAllPoolReservesRequest{} } +func (m *QueryAllPoolReservesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllPoolReservesRequest) ProtoMessage() {} +func (*QueryAllPoolReservesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{20} +} +func (m *QueryAllPoolReservesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPoolReservesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPoolReservesRequest.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 *QueryAllPoolReservesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPoolReservesRequest.Merge(m, src) +} +func (m *QueryAllPoolReservesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPoolReservesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPoolReservesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPoolReservesRequest proto.InternalMessageInfo + +func (m *QueryAllPoolReservesRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryAllPoolReservesRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryAllPoolReservesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllPoolReservesResponse struct { + PoolReserves []*PoolReserves `protobuf:"bytes,1,rep,name=poolReserves,proto3" json:"poolReserves,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllPoolReservesResponse) Reset() { *m = QueryAllPoolReservesResponse{} } +func (m *QueryAllPoolReservesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllPoolReservesResponse) ProtoMessage() {} +func (*QueryAllPoolReservesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{21} +} +func (m *QueryAllPoolReservesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPoolReservesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPoolReservesResponse.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 *QueryAllPoolReservesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPoolReservesResponse.Merge(m, src) +} +func (m *QueryAllPoolReservesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPoolReservesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPoolReservesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPoolReservesResponse proto.InternalMessageInfo + +func (m *QueryAllPoolReservesResponse) GetPoolReserves() []*PoolReserves { + if m != nil { + return m.PoolReserves + } + return nil +} + +func (m *QueryAllPoolReservesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryGetPoolReservesRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + TickIndex int64 `protobuf:"varint,3,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` + Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (m *QueryGetPoolReservesRequest) Reset() { *m = QueryGetPoolReservesRequest{} } +func (m *QueryGetPoolReservesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetPoolReservesRequest) ProtoMessage() {} +func (*QueryGetPoolReservesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{22} +} +func (m *QueryGetPoolReservesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPoolReservesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPoolReservesRequest.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 *QueryGetPoolReservesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPoolReservesRequest.Merge(m, src) +} +func (m *QueryGetPoolReservesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPoolReservesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPoolReservesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPoolReservesRequest proto.InternalMessageInfo + +func (m *QueryGetPoolReservesRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryGetPoolReservesRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryGetPoolReservesRequest) GetTickIndex() int64 { + if m != nil { + return m.TickIndex + } + return 0 +} + +func (m *QueryGetPoolReservesRequest) GetFee() uint64 { + if m != nil { + return m.Fee + } + return 0 +} + +type QueryGetPoolReservesResponse struct { + PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=poolReserves,proto3" json:"poolReserves,omitempty"` +} + +func (m *QueryGetPoolReservesResponse) Reset() { *m = QueryGetPoolReservesResponse{} } +func (m *QueryGetPoolReservesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetPoolReservesResponse) ProtoMessage() {} +func (*QueryGetPoolReservesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{23} +} +func (m *QueryGetPoolReservesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPoolReservesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPoolReservesResponse.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 *QueryGetPoolReservesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPoolReservesResponse.Merge(m, src) +} +func (m *QueryGetPoolReservesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPoolReservesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPoolReservesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPoolReservesResponse proto.InternalMessageInfo + +func (m *QueryGetPoolReservesResponse) GetPoolReserves() *PoolReserves { + if m != nil { + return m.PoolReserves + } + return nil +} + +type QueryEstimateMultiHopSwapRequest struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + ExitLimitPrice github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + // If pickBestRoute == true then all routes are run and the route with the best price is chosen + // otherwise, the first succesful route is used. + PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` +} + +func (m *QueryEstimateMultiHopSwapRequest) Reset() { *m = QueryEstimateMultiHopSwapRequest{} } +func (m *QueryEstimateMultiHopSwapRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEstimateMultiHopSwapRequest) ProtoMessage() {} +func (*QueryEstimateMultiHopSwapRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{24} +} +func (m *QueryEstimateMultiHopSwapRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEstimateMultiHopSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEstimateMultiHopSwapRequest.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 *QueryEstimateMultiHopSwapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEstimateMultiHopSwapRequest.Merge(m, src) +} +func (m *QueryEstimateMultiHopSwapRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEstimateMultiHopSwapRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEstimateMultiHopSwapRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEstimateMultiHopSwapRequest proto.InternalMessageInfo + +func (m *QueryEstimateMultiHopSwapRequest) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *QueryEstimateMultiHopSwapRequest) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *QueryEstimateMultiHopSwapRequest) GetRoutes() []*MultiHopRoute { + if m != nil { + return m.Routes + } + return nil +} + +func (m *QueryEstimateMultiHopSwapRequest) GetPickBestRoute() bool { + if m != nil { + return m.PickBestRoute + } + return false +} + +type QueryEstimateMultiHopSwapResponse struct { + CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` +} + +func (m *QueryEstimateMultiHopSwapResponse) Reset() { *m = QueryEstimateMultiHopSwapResponse{} } +func (m *QueryEstimateMultiHopSwapResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEstimateMultiHopSwapResponse) ProtoMessage() {} +func (*QueryEstimateMultiHopSwapResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{25} +} +func (m *QueryEstimateMultiHopSwapResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEstimateMultiHopSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEstimateMultiHopSwapResponse.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 *QueryEstimateMultiHopSwapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEstimateMultiHopSwapResponse.Merge(m, src) +} +func (m *QueryEstimateMultiHopSwapResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEstimateMultiHopSwapResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEstimateMultiHopSwapResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEstimateMultiHopSwapResponse proto.InternalMessageInfo + +type QueryEstimatePlaceLimitOrderRequest struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` + TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + OrderType LimitOrderType `protobuf:"varint,7,opt,name=orderType,proto3,enum=duality.dex.LimitOrderType" json:"orderType,omitempty"` + // expirationTime is only valid iff orderType == GOOD_TIL_TIME. + ExpirationTime *time.Time `protobuf:"bytes,8,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` + MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` +} + +func (m *QueryEstimatePlaceLimitOrderRequest) Reset() { *m = QueryEstimatePlaceLimitOrderRequest{} } +func (m *QueryEstimatePlaceLimitOrderRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEstimatePlaceLimitOrderRequest) ProtoMessage() {} +func (*QueryEstimatePlaceLimitOrderRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{26} +} +func (m *QueryEstimatePlaceLimitOrderRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEstimatePlaceLimitOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEstimatePlaceLimitOrderRequest.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 *QueryEstimatePlaceLimitOrderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEstimatePlaceLimitOrderRequest.Merge(m, src) +} +func (m *QueryEstimatePlaceLimitOrderRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEstimatePlaceLimitOrderRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEstimatePlaceLimitOrderRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEstimatePlaceLimitOrderRequest proto.InternalMessageInfo + +func (m *QueryEstimatePlaceLimitOrderRequest) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *QueryEstimatePlaceLimitOrderRequest) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *QueryEstimatePlaceLimitOrderRequest) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *QueryEstimatePlaceLimitOrderRequest) GetTokenOut() string { + if m != nil { + return m.TokenOut + } + return "" +} + +func (m *QueryEstimatePlaceLimitOrderRequest) GetTickIndexInToOut() int64 { + if m != nil { + return m.TickIndexInToOut + } + return 0 +} + +func (m *QueryEstimatePlaceLimitOrderRequest) GetOrderType() LimitOrderType { + if m != nil { + return m.OrderType + } + return LimitOrderType_GOOD_TIL_CANCELLED +} + +func (m *QueryEstimatePlaceLimitOrderRequest) GetExpirationTime() *time.Time { + if m != nil { + return m.ExpirationTime + } + return nil +} + +type QueryEstimatePlaceLimitOrderResponse struct { + // Total amount of coin used for the limit order + // You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin + TotalInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=totalInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"totalInCoin" yaml:"totalInCoin"` + // Total amount of the token in that was immediately swapped for swapOutCoin + SwapInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=swapInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapInCoin" yaml:"swapInCoin"` + // Total amount of coin received from the taker portion of the limit order + // This is the amount of coin immediately available in the users account after executing the + // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future + SwapOutCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=swapOutCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapOutCoin" yaml:"swapOutCoin"` +} + +func (m *QueryEstimatePlaceLimitOrderResponse) Reset() { *m = QueryEstimatePlaceLimitOrderResponse{} } +func (m *QueryEstimatePlaceLimitOrderResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEstimatePlaceLimitOrderResponse) ProtoMessage() {} +func (*QueryEstimatePlaceLimitOrderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{27} +} +func (m *QueryEstimatePlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEstimatePlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEstimatePlaceLimitOrderResponse.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 *QueryEstimatePlaceLimitOrderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEstimatePlaceLimitOrderResponse.Merge(m, src) +} +func (m *QueryEstimatePlaceLimitOrderResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEstimatePlaceLimitOrderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEstimatePlaceLimitOrderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEstimatePlaceLimitOrderResponse proto.InternalMessageInfo + +type QueryPoolRequest struct { + PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + TickIndex int64 `protobuf:"varint,2,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` + Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` +} + +func (m *QueryPoolRequest) Reset() { *m = QueryPoolRequest{} } +func (m *QueryPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPoolRequest) ProtoMessage() {} +func (*QueryPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{28} +} +func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPoolRequest.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 *QueryPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolRequest.Merge(m, src) +} +func (m *QueryPoolRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPoolRequest proto.InternalMessageInfo + +func (m *QueryPoolRequest) GetPairID() string { + if m != nil { + return m.PairID + } + return "" +} + +func (m *QueryPoolRequest) GetTickIndex() int64 { + if m != nil { + return m.TickIndex + } + return 0 +} + +func (m *QueryPoolRequest) GetFee() uint64 { + if m != nil { + return m.Fee + } + return 0 +} + +type QueryPoolByIDRequest struct { + PoolID uint64 `protobuf:"varint,1,opt,name=poolID,proto3" json:"poolID,omitempty"` +} + +func (m *QueryPoolByIDRequest) Reset() { *m = QueryPoolByIDRequest{} } +func (m *QueryPoolByIDRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPoolByIDRequest) ProtoMessage() {} +func (*QueryPoolByIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{29} +} +func (m *QueryPoolByIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPoolByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPoolByIDRequest.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 *QueryPoolByIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolByIDRequest.Merge(m, src) +} +func (m *QueryPoolByIDRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPoolByIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolByIDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPoolByIDRequest proto.InternalMessageInfo + +func (m *QueryPoolByIDRequest) GetPoolID() uint64 { + if m != nil { + return m.PoolID + } + return 0 +} + +type QueryPoolResponse struct { + Pool *Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` +} + +func (m *QueryPoolResponse) Reset() { *m = QueryPoolResponse{} } +func (m *QueryPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPoolResponse) ProtoMessage() {} +func (*QueryPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{30} +} +func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPoolResponse.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 *QueryPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolResponse.Merge(m, src) +} +func (m *QueryPoolResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPoolResponse proto.InternalMessageInfo + +func (m *QueryPoolResponse) GetPool() *Pool { + if m != nil { + return m.Pool + } + return nil +} + +type QueryGetPoolMetadataRequest struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *QueryGetPoolMetadataRequest) Reset() { *m = QueryGetPoolMetadataRequest{} } +func (m *QueryGetPoolMetadataRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetPoolMetadataRequest) ProtoMessage() {} +func (*QueryGetPoolMetadataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{31} +} +func (m *QueryGetPoolMetadataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPoolMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPoolMetadataRequest.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 *QueryGetPoolMetadataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPoolMetadataRequest.Merge(m, src) +} +func (m *QueryGetPoolMetadataRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPoolMetadataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPoolMetadataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPoolMetadataRequest proto.InternalMessageInfo + +func (m *QueryGetPoolMetadataRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +type QueryGetPoolMetadataResponse struct { + PoolMetadata PoolMetadata `protobuf:"bytes,1,opt,name=PoolMetadata,proto3" json:"PoolMetadata"` +} + +func (m *QueryGetPoolMetadataResponse) Reset() { *m = QueryGetPoolMetadataResponse{} } +func (m *QueryGetPoolMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetPoolMetadataResponse) ProtoMessage() {} +func (*QueryGetPoolMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{32} +} +func (m *QueryGetPoolMetadataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPoolMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPoolMetadataResponse.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 *QueryGetPoolMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPoolMetadataResponse.Merge(m, src) +} +func (m *QueryGetPoolMetadataResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPoolMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPoolMetadataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPoolMetadataResponse proto.InternalMessageInfo + +func (m *QueryGetPoolMetadataResponse) GetPoolMetadata() PoolMetadata { + if m != nil { + return m.PoolMetadata + } + return PoolMetadata{} +} + +type QueryAllPoolMetadataRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllPoolMetadataRequest) Reset() { *m = QueryAllPoolMetadataRequest{} } +func (m *QueryAllPoolMetadataRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllPoolMetadataRequest) ProtoMessage() {} +func (*QueryAllPoolMetadataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{33} +} +func (m *QueryAllPoolMetadataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPoolMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPoolMetadataRequest.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 *QueryAllPoolMetadataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPoolMetadataRequest.Merge(m, src) +} +func (m *QueryAllPoolMetadataRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPoolMetadataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPoolMetadataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPoolMetadataRequest proto.InternalMessageInfo + +func (m *QueryAllPoolMetadataRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllPoolMetadataResponse struct { + PoolMetadata []PoolMetadata `protobuf:"bytes,1,rep,name=PoolMetadata,proto3" json:"PoolMetadata"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllPoolMetadataResponse) Reset() { *m = QueryAllPoolMetadataResponse{} } +func (m *QueryAllPoolMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllPoolMetadataResponse) ProtoMessage() {} +func (*QueryAllPoolMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4664128fddcf2b7a, []int{34} +} +func (m *QueryAllPoolMetadataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPoolMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPoolMetadataResponse.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 *QueryAllPoolMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPoolMetadataResponse.Merge(m, src) +} +func (m *QueryAllPoolMetadataResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPoolMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPoolMetadataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPoolMetadataResponse proto.InternalMessageInfo + +func (m *QueryAllPoolMetadataResponse) GetPoolMetadata() []PoolMetadata { + if m != nil { + return m.PoolMetadata + } + return nil +} + +func (m *QueryAllPoolMetadataResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "duality.dex.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "duality.dex.QueryParamsResponse") + proto.RegisterType((*QueryGetLimitOrderTrancheUserRequest)(nil), "duality.dex.QueryGetLimitOrderTrancheUserRequest") + proto.RegisterType((*QueryGetLimitOrderTrancheUserResponse)(nil), "duality.dex.QueryGetLimitOrderTrancheUserResponse") + proto.RegisterType((*QueryAllLimitOrderTrancheUserRequest)(nil), "duality.dex.QueryAllLimitOrderTrancheUserRequest") + proto.RegisterType((*QueryAllLimitOrderTrancheUserResponse)(nil), "duality.dex.QueryAllLimitOrderTrancheUserResponse") + proto.RegisterType((*QueryGetLimitOrderTrancheRequest)(nil), "duality.dex.QueryGetLimitOrderTrancheRequest") + proto.RegisterType((*QueryGetLimitOrderTrancheResponse)(nil), "duality.dex.QueryGetLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllLimitOrderTrancheRequest)(nil), "duality.dex.QueryAllLimitOrderTrancheRequest") + proto.RegisterType((*QueryAllLimitOrderTrancheResponse)(nil), "duality.dex.QueryAllLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllUserDepositsRequest)(nil), "duality.dex.QueryAllUserDepositsRequest") + proto.RegisterType((*QueryAllUserDepositsResponse)(nil), "duality.dex.QueryAllUserDepositsResponse") + proto.RegisterType((*QueryAllUserLimitOrdersRequest)(nil), "duality.dex.QueryAllUserLimitOrdersRequest") + proto.RegisterType((*QueryAllUserLimitOrdersResponse)(nil), "duality.dex.QueryAllUserLimitOrdersResponse") + proto.RegisterType((*QueryAllTickLiquidityRequest)(nil), "duality.dex.QueryAllTickLiquidityRequest") + proto.RegisterType((*QueryAllTickLiquidityResponse)(nil), "duality.dex.QueryAllTickLiquidityResponse") + proto.RegisterType((*QueryGetInactiveLimitOrderTrancheRequest)(nil), "duality.dex.QueryGetInactiveLimitOrderTrancheRequest") + proto.RegisterType((*QueryGetInactiveLimitOrderTrancheResponse)(nil), "duality.dex.QueryGetInactiveLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllInactiveLimitOrderTrancheRequest)(nil), "duality.dex.QueryAllInactiveLimitOrderTrancheRequest") + proto.RegisterType((*QueryAllInactiveLimitOrderTrancheResponse)(nil), "duality.dex.QueryAllInactiveLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllPoolReservesRequest)(nil), "duality.dex.QueryAllPoolReservesRequest") + proto.RegisterType((*QueryAllPoolReservesResponse)(nil), "duality.dex.QueryAllPoolReservesResponse") + proto.RegisterType((*QueryGetPoolReservesRequest)(nil), "duality.dex.QueryGetPoolReservesRequest") + proto.RegisterType((*QueryGetPoolReservesResponse)(nil), "duality.dex.QueryGetPoolReservesResponse") + proto.RegisterType((*QueryEstimateMultiHopSwapRequest)(nil), "duality.dex.QueryEstimateMultiHopSwapRequest") + proto.RegisterType((*QueryEstimateMultiHopSwapResponse)(nil), "duality.dex.QueryEstimateMultiHopSwapResponse") + proto.RegisterType((*QueryEstimatePlaceLimitOrderRequest)(nil), "duality.dex.QueryEstimatePlaceLimitOrderRequest") + proto.RegisterType((*QueryEstimatePlaceLimitOrderResponse)(nil), "duality.dex.QueryEstimatePlaceLimitOrderResponse") + proto.RegisterType((*QueryPoolRequest)(nil), "duality.dex.QueryPoolRequest") + proto.RegisterType((*QueryPoolByIDRequest)(nil), "duality.dex.QueryPoolByIDRequest") + proto.RegisterType((*QueryPoolResponse)(nil), "duality.dex.QueryPoolResponse") + proto.RegisterType((*QueryGetPoolMetadataRequest)(nil), "duality.dex.QueryGetPoolMetadataRequest") + proto.RegisterType((*QueryGetPoolMetadataResponse)(nil), "duality.dex.QueryGetPoolMetadataResponse") + proto.RegisterType((*QueryAllPoolMetadataRequest)(nil), "duality.dex.QueryAllPoolMetadataRequest") + proto.RegisterType((*QueryAllPoolMetadataResponse)(nil), "duality.dex.QueryAllPoolMetadataResponse") +} + +func init() { proto.RegisterFile("duality/dex/query.proto", fileDescriptor_4664128fddcf2b7a) } + +var fileDescriptor_4664128fddcf2b7a = []byte{ + // 2098 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0xcf, 0x6f, 0x1c, 0x49, + 0x15, 0x4e, 0x79, 0x1c, 0xc7, 0xa9, 0xec, 0xe6, 0x47, 0xc5, 0xd9, 0x4c, 0x26, 0xde, 0x19, 0xa7, + 0x49, 0x62, 0xe7, 0x87, 0xbb, 0x63, 0x2f, 0x59, 0x89, 0x65, 0x05, 0xd8, 0xeb, 0x4d, 0x76, 0x20, + 0x21, 0xa6, 0x77, 0x72, 0x59, 0x24, 0x86, 0xf6, 0x4c, 0xc5, 0x6e, 0xb9, 0xa7, 0xbb, 0xd3, 0x5d, + 0x93, 0x78, 0x64, 0x59, 0x48, 0x7b, 0x41, 0x42, 0x20, 0x16, 0x58, 0x09, 0x84, 0xe0, 0x80, 0x10, + 0xb7, 0x20, 0x56, 0x1c, 0xe0, 0x86, 0x38, 0x70, 0xc8, 0x31, 0x12, 0x97, 0x15, 0x87, 0x01, 0x25, + 0x48, 0x48, 0x39, 0xfa, 0x2f, 0x40, 0x55, 0xfd, 0x7a, 0xa6, 0x7a, 0xa6, 0x7a, 0x7a, 0x26, 0x99, + 0xdd, 0x3d, 0xb9, 0xbb, 0xfa, 0x55, 0xbd, 0xef, 0x7d, 0xf5, 0x55, 0xbd, 0xaa,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, 0x03, 0x58, 0xf7, 0xe2, 0x50, 0x28, 0xa6, 0x7d, 0x06, + 0xbf, 0x5f, 0x16, 0x7e, 0x75, 0x72, 0xb5, 0x6f, 0x9e, 0xe5, 0xe9, 0xed, 0x9d, 0xd4, 0xfb, 0x78, + 0x3a, 0xbe, 0x41, 0x90, 0x73, 0x6a, 0x0f, 0xd2, 0xed, 0x22, 0x13, 0x84, 0x26, 0x40, 0xcc, 0x92, + 0x82, 0x0a, 0x84, 0xb8, 0x88, 0xec, 0x91, 0x1f, 0xa3, 0xe4, 0x61, 0x79, 0x80, 0xec, 0x7b, 0xce, + 0xf3, 0x03, 0x64, 0xdf, 0x7b, 0x22, 0xd7, 0xe6, 0x05, 0x92, 0x73, 0xa4, 0x64, 0xa4, 0xfe, 0x77, + 0x85, 0xb1, 0x6b, 0xd7, 0xf7, 0xc8, 0x8f, 0x60, 0x97, 0x88, 0x47, 0x18, 0xbc, 0x4b, 0x0c, 0x81, + 0x28, 0xe5, 0x8e, 0x30, 0x80, 0x9b, 0x0e, 0xa2, 0xd5, 0x77, 0x1f, 0x3f, 0x2d, 0xa2, 0x27, 0x4f, + 0x8b, 0xe8, 0x3f, 0x4f, 0x8b, 0xe8, 0xa3, 0x67, 0xc5, 0x03, 0x4f, 0x9e, 0x15, 0x0f, 0x7c, 0xfa, + 0xac, 0x78, 0xe0, 0x83, 0x2b, 0x59, 0x75, 0xb8, 0x9d, 0x28, 0x81, 0xf1, 0xfb, 0xea, 0xc6, 0x94, + 0x28, 0x81, 0xbc, 0xf1, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x56, 0x4c, 0xd7, 0x21, 0x24, + 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a LimitOrderTrancheUser by index. + LimitOrderTrancheUser(ctx context.Context, in *QueryGetLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheUserResponse, error) + // Queries a list of LimitOrderTrancheMap items. + LimitOrderTrancheUserAll(ctx context.Context, in *QueryAllLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheUserResponse, error) + // Queries a list of LimitOrderTrancheUser items for a given address. + LimitOrderTrancheUserAllByAddress(ctx context.Context, in *QueryAllUserLimitOrdersRequest, opts ...grpc.CallOption) (*QueryAllUserLimitOrdersResponse, error) + // Queries a LimitOrderTranche by index. + LimitOrderTranche(ctx context.Context, in *QueryGetLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheResponse, error) + // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. + LimitOrderTrancheAll(ctx context.Context, in *QueryAllLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheResponse, error) + // Queries a list of UserDeposits items. + UserDepositsAll(ctx context.Context, in *QueryAllUserDepositsRequest, opts ...grpc.CallOption) (*QueryAllUserDepositsResponse, error) + // Queries a list of TickLiquidity items. + TickLiquidityAll(ctx context.Context, in *QueryAllTickLiquidityRequest, opts ...grpc.CallOption) (*QueryAllTickLiquidityResponse, error) + // Queries a InactiveLimitOrderTranche by index. + InactiveLimitOrderTranche(ctx context.Context, in *QueryGetInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetInactiveLimitOrderTrancheResponse, error) + // Queries a list of InactiveLimitOrderTranche items. + InactiveLimitOrderTrancheAll(ctx context.Context, in *QueryAllInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllInactiveLimitOrderTrancheResponse, error) + // Queries a list of PoolReserves items. + PoolReservesAll(ctx context.Context, in *QueryAllPoolReservesRequest, opts ...grpc.CallOption) (*QueryAllPoolReservesResponse, error) + // Queries a PoolReserve by index + PoolReserves(ctx context.Context, in *QueryGetPoolReservesRequest, opts ...grpc.CallOption) (*QueryGetPoolReservesResponse, error) + // Queries the simulated result of a multihop swap + EstimateMultiHopSwap(ctx context.Context, in *QueryEstimateMultiHopSwapRequest, opts ...grpc.CallOption) (*QueryEstimateMultiHopSwapResponse, error) + // Queries the simulated result of a multihop swap + EstimatePlaceLimitOrder(ctx context.Context, in *QueryEstimatePlaceLimitOrderRequest, opts ...grpc.CallOption) (*QueryEstimatePlaceLimitOrderResponse, error) + // Queries a pool by pair, tick and fee + Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) + // Queries a pool by ID + PoolByID(ctx context.Context, in *QueryPoolByIDRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) + // Queries a PoolMetadata by ID + PoolMetadata(ctx context.Context, in *QueryGetPoolMetadataRequest, opts ...grpc.CallOption) (*QueryGetPoolMetadataResponse, error) + // Queries a list of PoolMetadata items. + PoolMetadataAll(ctx context.Context, in *QueryAllPoolMetadataRequest, opts ...grpc.CallOption) (*QueryAllPoolMetadataResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LimitOrderTrancheUser(ctx context.Context, in *QueryGetLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheUserResponse, error) { + out := new(QueryGetLimitOrderTrancheUserResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LimitOrderTrancheUserAll(ctx context.Context, in *QueryAllLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheUserResponse, error) { + out := new(QueryAllLimitOrderTrancheUserResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheUserAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LimitOrderTrancheUserAllByAddress(ctx context.Context, in *QueryAllUserLimitOrdersRequest, opts ...grpc.CallOption) (*QueryAllUserLimitOrdersResponse, error) { + out := new(QueryAllUserLimitOrdersResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheUserAllByAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LimitOrderTranche(ctx context.Context, in *QueryGetLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheResponse, error) { + out := new(QueryGetLimitOrderTrancheResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTranche", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LimitOrderTrancheAll(ctx context.Context, in *QueryAllLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheResponse, error) { + out := new(QueryAllLimitOrderTrancheResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserDepositsAll(ctx context.Context, in *QueryAllUserDepositsRequest, opts ...grpc.CallOption) (*QueryAllUserDepositsResponse, error) { + out := new(QueryAllUserDepositsResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/UserDepositsAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TickLiquidityAll(ctx context.Context, in *QueryAllTickLiquidityRequest, opts ...grpc.CallOption) (*QueryAllTickLiquidityResponse, error) { + out := new(QueryAllTickLiquidityResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/TickLiquidityAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InactiveLimitOrderTranche(ctx context.Context, in *QueryGetInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetInactiveLimitOrderTrancheResponse, error) { + out := new(QueryGetInactiveLimitOrderTrancheResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/InactiveLimitOrderTranche", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InactiveLimitOrderTrancheAll(ctx context.Context, in *QueryAllInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllInactiveLimitOrderTrancheResponse, error) { + out := new(QueryAllInactiveLimitOrderTrancheResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/InactiveLimitOrderTrancheAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PoolReservesAll(ctx context.Context, in *QueryAllPoolReservesRequest, opts ...grpc.CallOption) (*QueryAllPoolReservesResponse, error) { + out := new(QueryAllPoolReservesResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolReservesAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PoolReserves(ctx context.Context, in *QueryGetPoolReservesRequest, opts ...grpc.CallOption) (*QueryGetPoolReservesResponse, error) { + out := new(QueryGetPoolReservesResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolReserves", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EstimateMultiHopSwap(ctx context.Context, in *QueryEstimateMultiHopSwapRequest, opts ...grpc.CallOption) (*QueryEstimateMultiHopSwapResponse, error) { + out := new(QueryEstimateMultiHopSwapResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/EstimateMultiHopSwap", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EstimatePlaceLimitOrder(ctx context.Context, in *QueryEstimatePlaceLimitOrderRequest, opts ...grpc.CallOption) (*QueryEstimatePlaceLimitOrderResponse, error) { + out := new(QueryEstimatePlaceLimitOrderResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/EstimatePlaceLimitOrder", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) { + out := new(QueryPoolResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/Pool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PoolByID(ctx context.Context, in *QueryPoolByIDRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) { + out := new(QueryPoolResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PoolMetadata(ctx context.Context, in *QueryGetPoolMetadataRequest, opts ...grpc.CallOption) (*QueryGetPoolMetadataResponse, error) { + out := new(QueryGetPoolMetadataResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PoolMetadataAll(ctx context.Context, in *QueryAllPoolMetadataRequest, opts ...grpc.CallOption) (*QueryAllPoolMetadataResponse, error) { + out := new(QueryAllPoolMetadataResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolMetadataAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a LimitOrderTrancheUser by index. + LimitOrderTrancheUser(context.Context, *QueryGetLimitOrderTrancheUserRequest) (*QueryGetLimitOrderTrancheUserResponse, error) + // Queries a list of LimitOrderTrancheMap items. + LimitOrderTrancheUserAll(context.Context, *QueryAllLimitOrderTrancheUserRequest) (*QueryAllLimitOrderTrancheUserResponse, error) + // Queries a list of LimitOrderTrancheUser items for a given address. + LimitOrderTrancheUserAllByAddress(context.Context, *QueryAllUserLimitOrdersRequest) (*QueryAllUserLimitOrdersResponse, error) + // Queries a LimitOrderTranche by index. + LimitOrderTranche(context.Context, *QueryGetLimitOrderTrancheRequest) (*QueryGetLimitOrderTrancheResponse, error) + // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. + LimitOrderTrancheAll(context.Context, *QueryAllLimitOrderTrancheRequest) (*QueryAllLimitOrderTrancheResponse, error) + // Queries a list of UserDeposits items. + UserDepositsAll(context.Context, *QueryAllUserDepositsRequest) (*QueryAllUserDepositsResponse, error) + // Queries a list of TickLiquidity items. + TickLiquidityAll(context.Context, *QueryAllTickLiquidityRequest) (*QueryAllTickLiquidityResponse, error) + // Queries a InactiveLimitOrderTranche by index. + InactiveLimitOrderTranche(context.Context, *QueryGetInactiveLimitOrderTrancheRequest) (*QueryGetInactiveLimitOrderTrancheResponse, error) + // Queries a list of InactiveLimitOrderTranche items. + InactiveLimitOrderTrancheAll(context.Context, *QueryAllInactiveLimitOrderTrancheRequest) (*QueryAllInactiveLimitOrderTrancheResponse, error) + // Queries a list of PoolReserves items. + PoolReservesAll(context.Context, *QueryAllPoolReservesRequest) (*QueryAllPoolReservesResponse, error) + // Queries a PoolReserve by index + PoolReserves(context.Context, *QueryGetPoolReservesRequest) (*QueryGetPoolReservesResponse, error) + // Queries the simulated result of a multihop swap + EstimateMultiHopSwap(context.Context, *QueryEstimateMultiHopSwapRequest) (*QueryEstimateMultiHopSwapResponse, error) + // Queries the simulated result of a multihop swap + EstimatePlaceLimitOrder(context.Context, *QueryEstimatePlaceLimitOrderRequest) (*QueryEstimatePlaceLimitOrderResponse, error) + // Queries a pool by pair, tick and fee + Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) + // Queries a pool by ID + PoolByID(context.Context, *QueryPoolByIDRequest) (*QueryPoolResponse, error) + // Queries a PoolMetadata by ID + PoolMetadata(context.Context, *QueryGetPoolMetadataRequest) (*QueryGetPoolMetadataResponse, error) + // Queries a list of PoolMetadata items. + PoolMetadataAll(context.Context, *QueryAllPoolMetadataRequest) (*QueryAllPoolMetadataResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) LimitOrderTrancheUser(ctx context.Context, req *QueryGetLimitOrderTrancheUserRequest) (*QueryGetLimitOrderTrancheUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LimitOrderTrancheUser not implemented") +} +func (*UnimplementedQueryServer) LimitOrderTrancheUserAll(ctx context.Context, req *QueryAllLimitOrderTrancheUserRequest) (*QueryAllLimitOrderTrancheUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LimitOrderTrancheUserAll not implemented") +} +func (*UnimplementedQueryServer) LimitOrderTrancheUserAllByAddress(ctx context.Context, req *QueryAllUserLimitOrdersRequest) (*QueryAllUserLimitOrdersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LimitOrderTrancheUserAllByAddress not implemented") +} +func (*UnimplementedQueryServer) LimitOrderTranche(ctx context.Context, req *QueryGetLimitOrderTrancheRequest) (*QueryGetLimitOrderTrancheResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LimitOrderTranche not implemented") +} +func (*UnimplementedQueryServer) LimitOrderTrancheAll(ctx context.Context, req *QueryAllLimitOrderTrancheRequest) (*QueryAllLimitOrderTrancheResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LimitOrderTrancheAll not implemented") +} +func (*UnimplementedQueryServer) UserDepositsAll(ctx context.Context, req *QueryAllUserDepositsRequest) (*QueryAllUserDepositsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserDepositsAll not implemented") +} +func (*UnimplementedQueryServer) TickLiquidityAll(ctx context.Context, req *QueryAllTickLiquidityRequest) (*QueryAllTickLiquidityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TickLiquidityAll not implemented") +} +func (*UnimplementedQueryServer) InactiveLimitOrderTranche(ctx context.Context, req *QueryGetInactiveLimitOrderTrancheRequest) (*QueryGetInactiveLimitOrderTrancheResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InactiveLimitOrderTranche not implemented") +} +func (*UnimplementedQueryServer) InactiveLimitOrderTrancheAll(ctx context.Context, req *QueryAllInactiveLimitOrderTrancheRequest) (*QueryAllInactiveLimitOrderTrancheResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InactiveLimitOrderTrancheAll not implemented") +} +func (*UnimplementedQueryServer) PoolReservesAll(ctx context.Context, req *QueryAllPoolReservesRequest) (*QueryAllPoolReservesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolReservesAll not implemented") +} +func (*UnimplementedQueryServer) PoolReserves(ctx context.Context, req *QueryGetPoolReservesRequest) (*QueryGetPoolReservesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolReserves not implemented") +} +func (*UnimplementedQueryServer) EstimateMultiHopSwap(ctx context.Context, req *QueryEstimateMultiHopSwapRequest) (*QueryEstimateMultiHopSwapResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EstimateMultiHopSwap not implemented") +} +func (*UnimplementedQueryServer) EstimatePlaceLimitOrder(ctx context.Context, req *QueryEstimatePlaceLimitOrderRequest) (*QueryEstimatePlaceLimitOrderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EstimatePlaceLimitOrder not implemented") +} +func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pool not implemented") +} +func (*UnimplementedQueryServer) PoolByID(ctx context.Context, req *QueryPoolByIDRequest) (*QueryPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolByID not implemented") +} +func (*UnimplementedQueryServer) PoolMetadata(ctx context.Context, req *QueryGetPoolMetadataRequest) (*QueryGetPoolMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolMetadata not implemented") +} +func (*UnimplementedQueryServer) PoolMetadataAll(ctx context.Context, req *QueryAllPoolMetadataRequest) (*QueryAllPoolMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolMetadataAll not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LimitOrderTrancheUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetLimitOrderTrancheUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LimitOrderTrancheUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/LimitOrderTrancheUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LimitOrderTrancheUser(ctx, req.(*QueryGetLimitOrderTrancheUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LimitOrderTrancheUserAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllLimitOrderTrancheUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LimitOrderTrancheUserAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/LimitOrderTrancheUserAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LimitOrderTrancheUserAll(ctx, req.(*QueryAllLimitOrderTrancheUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LimitOrderTrancheUserAllByAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllUserLimitOrdersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LimitOrderTrancheUserAllByAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/LimitOrderTrancheUserAllByAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LimitOrderTrancheUserAllByAddress(ctx, req.(*QueryAllUserLimitOrdersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LimitOrderTranche_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetLimitOrderTrancheRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LimitOrderTranche(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/LimitOrderTranche", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LimitOrderTranche(ctx, req.(*QueryGetLimitOrderTrancheRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LimitOrderTrancheAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllLimitOrderTrancheRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LimitOrderTrancheAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/LimitOrderTrancheAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LimitOrderTrancheAll(ctx, req.(*QueryAllLimitOrderTrancheRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserDepositsAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllUserDepositsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserDepositsAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/UserDepositsAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserDepositsAll(ctx, req.(*QueryAllUserDepositsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TickLiquidityAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllTickLiquidityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TickLiquidityAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/TickLiquidityAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TickLiquidityAll(ctx, req.(*QueryAllTickLiquidityRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InactiveLimitOrderTranche_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetInactiveLimitOrderTrancheRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InactiveLimitOrderTranche(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/InactiveLimitOrderTranche", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InactiveLimitOrderTranche(ctx, req.(*QueryGetInactiveLimitOrderTrancheRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InactiveLimitOrderTrancheAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllInactiveLimitOrderTrancheRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InactiveLimitOrderTrancheAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/InactiveLimitOrderTrancheAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InactiveLimitOrderTrancheAll(ctx, req.(*QueryAllInactiveLimitOrderTrancheRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PoolReservesAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllPoolReservesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoolReservesAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/PoolReservesAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoolReservesAll(ctx, req.(*QueryAllPoolReservesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PoolReserves_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPoolReservesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoolReserves(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/PoolReserves", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoolReserves(ctx, req.(*QueryGetPoolReservesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EstimateMultiHopSwap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEstimateMultiHopSwapRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EstimateMultiHopSwap(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/EstimateMultiHopSwap", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EstimateMultiHopSwap(ctx, req.(*QueryEstimateMultiHopSwapRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EstimatePlaceLimitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEstimatePlaceLimitOrderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EstimatePlaceLimitOrder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/EstimatePlaceLimitOrder", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EstimatePlaceLimitOrder(ctx, req.(*QueryEstimatePlaceLimitOrderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Pool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/Pool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Pool(ctx, req.(*QueryPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PoolByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPoolByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoolByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/PoolByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoolByID(ctx, req.(*QueryPoolByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PoolMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPoolMetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoolMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/PoolMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoolMetadata(ctx, req.(*QueryGetPoolMetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PoolMetadataAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllPoolMetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoolMetadataAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Query/PoolMetadataAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoolMetadataAll(ctx, req.(*QueryAllPoolMetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "duality.dex.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "LimitOrderTrancheUser", + Handler: _Query_LimitOrderTrancheUser_Handler, + }, + { + MethodName: "LimitOrderTrancheUserAll", + Handler: _Query_LimitOrderTrancheUserAll_Handler, + }, + { + MethodName: "LimitOrderTrancheUserAllByAddress", + Handler: _Query_LimitOrderTrancheUserAllByAddress_Handler, + }, + { + MethodName: "LimitOrderTranche", + Handler: _Query_LimitOrderTranche_Handler, + }, + { + MethodName: "LimitOrderTrancheAll", + Handler: _Query_LimitOrderTrancheAll_Handler, + }, + { + MethodName: "UserDepositsAll", + Handler: _Query_UserDepositsAll_Handler, + }, + { + MethodName: "TickLiquidityAll", + Handler: _Query_TickLiquidityAll_Handler, + }, + { + MethodName: "InactiveLimitOrderTranche", + Handler: _Query_InactiveLimitOrderTranche_Handler, + }, + { + MethodName: "InactiveLimitOrderTrancheAll", + Handler: _Query_InactiveLimitOrderTrancheAll_Handler, + }, + { + MethodName: "PoolReservesAll", + Handler: _Query_PoolReservesAll_Handler, + }, + { + MethodName: "PoolReserves", + Handler: _Query_PoolReserves_Handler, + }, + { + MethodName: "EstimateMultiHopSwap", + Handler: _Query_EstimateMultiHopSwap_Handler, + }, + { + MethodName: "EstimatePlaceLimitOrder", + Handler: _Query_EstimatePlaceLimitOrder_Handler, + }, + { + MethodName: "Pool", + Handler: _Query_Pool_Handler, + }, + { + MethodName: "PoolByID", + Handler: _Query_PoolByID_Handler, + }, + { + MethodName: "PoolMetadata", + Handler: _Query_PoolMetadata_Handler, + }, + { + MethodName: "PoolMetadataAll", + Handler: _Query_PoolMetadataAll_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "duality/dex/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) 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 = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGetLimitOrderTrancheUserRequest) 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 *QueryGetLimitOrderTrancheUserRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetLimitOrderTrancheUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetLimitOrderTrancheUserResponse) 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 *QueryGetLimitOrderTrancheUserResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetLimitOrderTrancheUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LimitOrderTrancheUser != nil { + { + size, err := m.LimitOrderTrancheUser.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllLimitOrderTrancheUserRequest) 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 *QueryAllLimitOrderTrancheUserRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllLimitOrderTrancheUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllLimitOrderTrancheUserResponse) 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 *QueryAllLimitOrderTrancheUserResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllLimitOrderTrancheUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.LimitOrderTrancheUser) > 0 { + for iNdEx := len(m.LimitOrderTrancheUser) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LimitOrderTrancheUser[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetLimitOrderTrancheRequest) 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 *QueryGetLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x1a + } + if m.TickIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TickIndex)) + i-- + dAtA[i] = 0x10 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetLimitOrderTrancheResponse) 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 *QueryGetLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LimitOrderTranche != nil { + { + size, err := m.LimitOrderTranche.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllLimitOrderTrancheRequest) 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 *QueryAllLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x12 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllLimitOrderTrancheResponse) 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 *QueryAllLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.LimitOrderTranche) > 0 { + for iNdEx := len(m.LimitOrderTranche) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LimitOrderTranche[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserDepositsRequest) 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 *QueryAllUserDepositsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserDepositsResponse) 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 *QueryAllUserDepositsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Deposits) > 0 { + for iNdEx := len(m.Deposits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Deposits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserLimitOrdersRequest) 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 *QueryAllUserLimitOrdersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserLimitOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserLimitOrdersResponse) 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 *QueryAllUserLimitOrdersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserLimitOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.LimitOrders) > 0 { + for iNdEx := len(m.LimitOrders) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LimitOrders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAllTickLiquidityRequest) 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 *QueryAllTickLiquidityRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllTickLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x12 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllTickLiquidityResponse) 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 *QueryAllTickLiquidityResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllTickLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.TickLiquidity) > 0 { + for iNdEx := len(m.TickLiquidity) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TickLiquidity[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) 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 *QueryGetInactiveLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x22 + } + if m.TickIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TickIndex)) + i-- + dAtA[i] = 0x18 + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x12 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetInactiveLimitOrderTrancheResponse) 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 *QueryGetInactiveLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.InactiveLimitOrderTranche != nil { + { + size, err := m.InactiveLimitOrderTranche.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllInactiveLimitOrderTrancheRequest) 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 *QueryAllInactiveLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllInactiveLimitOrderTrancheResponse) 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 *QueryAllInactiveLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.InactiveLimitOrderTranche) > 0 { + for iNdEx := len(m.InactiveLimitOrderTranche) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InactiveLimitOrderTranche[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAllPoolReservesRequest) 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 *QueryAllPoolReservesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x12 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllPoolReservesResponse) 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 *QueryAllPoolReservesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPoolReservesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.PoolReserves) > 0 { + for iNdEx := len(m.PoolReserves) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PoolReserves[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPoolReservesRequest) 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 *QueryGetPoolReservesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fee != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Fee)) + i-- + dAtA[i] = 0x20 + } + if m.TickIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TickIndex)) + i-- + dAtA[i] = 0x18 + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x12 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPoolReservesResponse) 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 *QueryGetPoolReservesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPoolReservesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PoolReserves != nil { + { + size, err := m.PoolReserves.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryEstimateMultiHopSwapRequest) 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 *QueryEstimateMultiHopSwapRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEstimateMultiHopSwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PickBestRoute { + i-- + if m.PickBestRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + { + size := m.ExitLimitPrice.Size() + i -= size + if _, err := m.ExitLimitPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.AmountIn.Size() + i -= size + if _, err := m.AmountIn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Routes) > 0 { + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Routes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryEstimateMultiHopSwapResponse) 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 *QueryEstimateMultiHopSwapResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEstimateMultiHopSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CoinOut.Size() + i -= size + if _, err := m.CoinOut.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryEstimatePlaceLimitOrderRequest) 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 *QueryEstimatePlaceLimitOrderRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEstimatePlaceLimitOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxAmountOut != nil { + { + size := m.MaxAmountOut.Size() + i -= size + if _, err := m.MaxAmountOut.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.ExpirationTime != nil { + n21, err21 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ExpirationTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ExpirationTime):]) + if err21 != nil { + return 0, err21 + } + i -= n21 + i = encodeVarintQuery(dAtA, i, uint64(n21)) + i-- + dAtA[i] = 0x42 + } + if m.OrderType != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.OrderType)) + i-- + dAtA[i] = 0x38 + } + { + size := m.AmountIn.Size() + i -= size + if _, err := m.AmountIn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if m.TickIndexInToOut != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TickIndexInToOut)) + i-- + dAtA[i] = 0x28 + } + if len(m.TokenOut) > 0 { + i -= len(m.TokenOut) + copy(dAtA[i:], m.TokenOut) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenOut))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x1a + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryEstimatePlaceLimitOrderResponse) 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 *QueryEstimatePlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEstimatePlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.SwapOutCoin.Size() + i -= size + if _, err := m.SwapOutCoin.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.SwapInCoin.Size() + i -= size + if _, err := m.SwapInCoin.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalInCoin.Size() + i -= size + if _, err := m.TotalInCoin.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryPoolRequest) 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 *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fee != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Fee)) + i-- + dAtA[i] = 0x18 + } + if m.TickIndex != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TickIndex)) + i-- + dAtA[i] = 0x10 + } + if len(m.PairID) > 0 { + i -= len(m.PairID) + copy(dAtA[i:], m.PairID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryPoolByIDRequest) 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 *QueryPoolByIDRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPoolByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PoolID != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PoolID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryPoolResponse) 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 *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pool != nil { + { + size, err := m.Pool.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPoolMetadataRequest) 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 *QueryGetPoolMetadataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPoolMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPoolMetadataResponse) 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 *QueryGetPoolMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPoolMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.PoolMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllPoolMetadataRequest) 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 *QueryAllPoolMetadataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPoolMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllPoolMetadataResponse) 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 *QueryAllPoolMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPoolMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.PoolMetadata) > 0 { + for iNdEx := len(m.PoolMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PoolMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGetLimitOrderTrancheUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetLimitOrderTrancheUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LimitOrderTrancheUser != nil { + l = m.LimitOrderTrancheUser.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllLimitOrderTrancheUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllLimitOrderTrancheUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LimitOrderTrancheUser) > 0 { + for _, e := range m.LimitOrderTrancheUser { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetLimitOrderTrancheRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TickIndex != 0 { + n += 1 + sovQuery(uint64(m.TickIndex)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetLimitOrderTrancheResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LimitOrderTranche != nil { + l = m.LimitOrderTranche.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllLimitOrderTrancheRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllLimitOrderTrancheResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LimitOrderTranche) > 0 { + for _, e := range m.LimitOrderTranche { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserDepositsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserDepositsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Deposits) > 0 { + for _, e := range m.Deposits { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserLimitOrdersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserLimitOrdersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LimitOrders) > 0 { + for _, e := range m.LimitOrders { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllTickLiquidityRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllTickLiquidityResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TickLiquidity) > 0 { + for _, e := range m.TickLiquidity { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetInactiveLimitOrderTrancheRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TickIndex != 0 { + n += 1 + sovQuery(uint64(m.TickIndex)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetInactiveLimitOrderTrancheResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InactiveLimitOrderTranche != nil { + l = m.InactiveLimitOrderTranche.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllInactiveLimitOrderTrancheRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllInactiveLimitOrderTrancheResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InactiveLimitOrderTranche) > 0 { + for _, e := range m.InactiveLimitOrderTranche { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllPoolReservesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllPoolReservesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PoolReserves) > 0 { + for _, e := range m.PoolReserves { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetPoolReservesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TickIndex != 0 { + n += 1 + sovQuery(uint64(m.TickIndex)) + } + if m.Fee != 0 { + n += 1 + sovQuery(uint64(m.Fee)) + } + return n +} + +func (m *QueryGetPoolReservesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolReserves != nil { + l = m.PoolReserves.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryEstimateMultiHopSwapRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = m.AmountIn.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.ExitLimitPrice.Size() + n += 1 + l + sovQuery(uint64(l)) + if m.PickBestRoute { + n += 2 + } + return n +} + +func (m *QueryEstimateMultiHopSwapResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CoinOut.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryEstimatePlaceLimitOrderRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TokenOut) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TickIndexInToOut != 0 { + n += 1 + sovQuery(uint64(m.TickIndexInToOut)) + } + l = m.AmountIn.Size() + n += 1 + l + sovQuery(uint64(l)) + if m.OrderType != 0 { + n += 1 + sovQuery(uint64(m.OrderType)) + } + if m.ExpirationTime != nil { + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ExpirationTime) + n += 1 + l + sovQuery(uint64(l)) + } + if m.MaxAmountOut != nil { + l = m.MaxAmountOut.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryEstimatePlaceLimitOrderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalInCoin.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.SwapInCoin.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.SwapOutCoin.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryPoolRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PairID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TickIndex != 0 { + n += 1 + sovQuery(uint64(m.TickIndex)) + } + if m.Fee != 0 { + n += 1 + sovQuery(uint64(m.Fee)) + } + return n +} + +func (m *QueryPoolByIDRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolID != 0 { + n += 1 + sovQuery(uint64(m.PoolID)) + } + return n +} + +func (m *QueryPoolResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pool != nil { + l = m.Pool.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetPoolMetadataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + return n +} + +func (m *QueryGetPoolMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PoolMetadata.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllPoolMetadataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllPoolMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PoolMetadata) > 0 { + for _, e := range m.PoolMetadata { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + 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 := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetLimitOrderTrancheUserRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetLimitOrderTrancheUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetLimitOrderTrancheUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrancheKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetLimitOrderTrancheUserResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetLimitOrderTrancheUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetLimitOrderTrancheUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrderTrancheUser", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LimitOrderTrancheUser == nil { + m.LimitOrderTrancheUser = &LimitOrderTrancheUser{} + } + if err := m.LimitOrderTrancheUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllLimitOrderTrancheUserRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllLimitOrderTrancheUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllLimitOrderTrancheUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllLimitOrderTrancheUserResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllLimitOrderTrancheUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllLimitOrderTrancheUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrderTrancheUser", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LimitOrderTrancheUser = append(m.LimitOrderTrancheUser, &LimitOrderTrancheUser{}) + if err := m.LimitOrderTrancheUser[len(m.LimitOrderTrancheUser)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetLimitOrderTrancheRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetLimitOrderTrancheRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetLimitOrderTrancheRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndex", wireType) + } + m.TickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrancheKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetLimitOrderTrancheResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetLimitOrderTrancheResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetLimitOrderTrancheResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrderTranche", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LimitOrderTranche == nil { + m.LimitOrderTranche = &LimitOrderTranche{} + } + if err := m.LimitOrderTranche.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllLimitOrderTrancheRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllLimitOrderTrancheRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllLimitOrderTrancheRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllLimitOrderTrancheResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllLimitOrderTrancheResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllLimitOrderTrancheResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrderTranche", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LimitOrderTranche = append(m.LimitOrderTranche, &LimitOrderTranche{}) + if err := m.LimitOrderTranche[len(m.LimitOrderTranche)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserDepositsRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllUserDepositsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserDepositsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserDepositsResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllUserDepositsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserDepositsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposits = append(m.Deposits, &DepositRecord{}) + if err := m.Deposits[len(m.Deposits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserLimitOrdersRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllUserLimitOrdersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserLimitOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserLimitOrdersResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllUserLimitOrdersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserLimitOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrders", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LimitOrders = append(m.LimitOrders, &LimitOrderTrancheUser{}) + if err := m.LimitOrders[len(m.LimitOrders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllTickLiquidityRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllTickLiquidityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllTickLiquidityRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllTickLiquidityResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllTickLiquidityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllTickLiquidityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TickLiquidity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TickLiquidity = append(m.TickLiquidity, &TickLiquidity{}) + if err := m.TickLiquidity[len(m.TickLiquidity)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetInactiveLimitOrderTrancheRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetInactiveLimitOrderTrancheRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetInactiveLimitOrderTrancheRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndex", wireType) + } + m.TickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrancheKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetInactiveLimitOrderTrancheResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetInactiveLimitOrderTrancheResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetInactiveLimitOrderTrancheResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InactiveLimitOrderTranche", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InactiveLimitOrderTranche == nil { + m.InactiveLimitOrderTranche = &LimitOrderTranche{} + } + if err := m.InactiveLimitOrderTranche.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllInactiveLimitOrderTrancheRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllInactiveLimitOrderTrancheRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllInactiveLimitOrderTrancheRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllInactiveLimitOrderTrancheResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllInactiveLimitOrderTrancheResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllInactiveLimitOrderTrancheResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InactiveLimitOrderTranche", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InactiveLimitOrderTranche = append(m.InactiveLimitOrderTranche, &LimitOrderTranche{}) + if err := m.InactiveLimitOrderTranche[len(m.InactiveLimitOrderTranche)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllPoolReservesRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllPoolReservesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllPoolReservesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllPoolReservesResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllPoolReservesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllPoolReservesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolReserves", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PoolReserves = append(m.PoolReserves, &PoolReserves{}) + if err := m.PoolReserves[len(m.PoolReserves)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetPoolReservesRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetPoolReservesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPoolReservesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndex", wireType) + } + m.TickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + m.Fee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Fee |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetPoolReservesResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetPoolReservesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPoolReservesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolReserves", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PoolReserves == nil { + m.PoolReserves = &PoolReserves{} + } + if err := m.PoolReserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEstimateMultiHopSwapRequest) 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 ErrIntOverflowQuery + } + 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: QueryEstimateMultiHopSwapRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEstimateMultiHopSwapRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Routes = append(m.Routes, &MultiHopRoute{}) + if err := m.Routes[len(m.Routes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountIn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitLimitPrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ExitLimitPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PickBestRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PickBestRoute = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEstimateMultiHopSwapResponse) 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 ErrIntOverflowQuery + } + 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: QueryEstimateMultiHopSwapResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEstimateMultiHopSwapResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinOut", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CoinOut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEstimatePlaceLimitOrderRequest) 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 ErrIntOverflowQuery + } + 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: QueryEstimatePlaceLimitOrderRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEstimatePlaceLimitOrderRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOut", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOut = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexInToOut", wireType) + } + m.TickIndexInToOut = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndexInToOut |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountIn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderType", wireType) + } + m.OrderType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OrderType |= LimitOrderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExpirationTime == nil { + m.ExpirationTime = new(time.Time) + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAmountOut", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.MaxAmountOut = &v + if err := m.MaxAmountOut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEstimatePlaceLimitOrderResponse) 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 ErrIntOverflowQuery + } + 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: QueryEstimatePlaceLimitOrderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEstimatePlaceLimitOrderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalInCoin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalInCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapInCoin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SwapInCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapOutCoin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SwapOutCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPoolRequest) 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 ErrIntOverflowQuery + } + 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: QueryPoolRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PairID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndex", wireType) + } + m.TickIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndex |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + m.Fee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Fee |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPoolByIDRequest) 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 ErrIntOverflowQuery + } + 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: QueryPoolByIDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPoolByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolID", wireType) + } + m.PoolID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PoolID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPoolResponse) 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 ErrIntOverflowQuery + } + 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: QueryPoolResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pool == nil { + m.Pool = &Pool{} + } + if err := m.Pool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetPoolMetadataRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetPoolMetadataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPoolMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetPoolMetadataResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetPoolMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPoolMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PoolMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllPoolMetadataRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllPoolMetadataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllPoolMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllPoolMetadataResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllPoolMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllPoolMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PoolMetadata = append(m.PoolMetadata, PoolMetadata{}) + if err := m.PoolMetadata[len(m.PoolMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/query.pb.gw.go b/x/dex/types/query.pb.gw.go new file mode 100644 index 000000000..2392b6c0e --- /dev/null +++ b/x/dex/types/query.pb.gw.go @@ -0,0 +1,2200 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: duality/dex/query.proto + +/* +Package types is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package types + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.Params(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_LimitOrderTrancheUser_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetLimitOrderTrancheUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["trancheKey"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + } + + protoReq.TrancheKey, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + } + + msg, err := client.LimitOrderTrancheUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_LimitOrderTrancheUser_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetLimitOrderTrancheUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["trancheKey"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + } + + protoReq.TrancheKey, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + } + + msg, err := server.LimitOrderTrancheUser(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_LimitOrderTrancheUserAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_LimitOrderTrancheUserAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllLimitOrderTrancheUserRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LimitOrderTrancheUserAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.LimitOrderTrancheUserAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_LimitOrderTrancheUserAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllLimitOrderTrancheUserRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LimitOrderTrancheUserAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.LimitOrderTrancheUserAll(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_LimitOrderTrancheUserAllByAddress_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_LimitOrderTrancheUserAllByAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllUserLimitOrdersRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LimitOrderTrancheUserAllByAddress_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.LimitOrderTrancheUserAllByAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_LimitOrderTrancheUserAllByAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllUserLimitOrdersRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LimitOrderTrancheUserAllByAddress_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.LimitOrderTrancheUserAllByAddress(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_LimitOrderTranche_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["trancheKey"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + } + + protoReq.TrancheKey, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + } + + msg, err := client.LimitOrderTranche(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_LimitOrderTranche_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["trancheKey"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + } + + protoReq.TrancheKey, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + } + + msg, err := server.LimitOrderTranche(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_LimitOrderTrancheAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pairID": 0, "tokenIn": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_LimitOrderTrancheAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LimitOrderTrancheAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.LimitOrderTrancheAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_LimitOrderTrancheAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LimitOrderTrancheAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.LimitOrderTrancheAll(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_UserDepositsAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_UserDepositsAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllUserDepositsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UserDepositsAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserDepositsAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_UserDepositsAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllUserDepositsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UserDepositsAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UserDepositsAll(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_TickLiquidityAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pairID": 0, "tokenIn": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_TickLiquidityAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllTickLiquidityRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TickLiquidityAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.TickLiquidityAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TickLiquidityAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllTickLiquidityRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_TickLiquidityAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.TickLiquidityAll(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_InactiveLimitOrderTranche_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetInactiveLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["trancheKey"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + } + + protoReq.TrancheKey, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + } + + msg, err := client.InactiveLimitOrderTranche(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InactiveLimitOrderTranche_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetInactiveLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["trancheKey"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + } + + protoReq.TrancheKey, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + } + + msg, err := server.InactiveLimitOrderTranche(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_InactiveLimitOrderTrancheAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_InactiveLimitOrderTrancheAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllInactiveLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InactiveLimitOrderTrancheAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.InactiveLimitOrderTrancheAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InactiveLimitOrderTrancheAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllInactiveLimitOrderTrancheRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InactiveLimitOrderTrancheAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.InactiveLimitOrderTrancheAll(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PoolReservesAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pairID": 0, "tokenIn": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_PoolReservesAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPoolReservesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PoolReservesAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PoolReservesAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoolReservesAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPoolReservesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PoolReservesAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PoolReservesAll(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PoolReserves_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPoolReservesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["fee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "fee") + } + + protoReq.Fee, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "fee", err) + } + + msg, err := client.PoolReserves(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoolReserves_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPoolReservesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tokenIn"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + } + + protoReq.TokenIn, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["fee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "fee") + } + + protoReq.Fee, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "fee", err) + } + + msg, err := server.PoolReserves(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_EstimateMultiHopSwap_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_EstimateMultiHopSwap_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEstimateMultiHopSwapRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EstimateMultiHopSwap_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.EstimateMultiHopSwap(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_EstimateMultiHopSwap_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEstimateMultiHopSwapRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EstimateMultiHopSwap_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.EstimateMultiHopSwap(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_EstimatePlaceLimitOrder_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_EstimatePlaceLimitOrder_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEstimatePlaceLimitOrderRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EstimatePlaceLimitOrder_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.EstimatePlaceLimitOrder(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_EstimatePlaceLimitOrder_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEstimatePlaceLimitOrderRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EstimatePlaceLimitOrder_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.EstimatePlaceLimitOrder(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPoolRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["fee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "fee") + } + + protoReq.Fee, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "fee", err) + } + + msg, err := client.Pool(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPoolRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pairID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + } + + protoReq.PairID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + } + + val, ok = pathParams["tickIndex"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + } + + protoReq.TickIndex, err = runtime.Int64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + } + + val, ok = pathParams["fee"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "fee") + } + + protoReq.Fee, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "fee", err) + } + + msg, err := server.Pool(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PoolByID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPoolByIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["poolID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "poolID") + } + + protoReq.PoolID, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "poolID", err) + } + + msg, err := client.PoolByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoolByID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPoolByIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["poolID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "poolID") + } + + protoReq.PoolID, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "poolID", err) + } + + msg, err := server.PoolByID(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PoolMetadata_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPoolMetadataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.PoolMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoolMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPoolMetadataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.PoolMetadata(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_PoolMetadataAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_PoolMetadataAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPoolMetadataRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PoolMetadataAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PoolMetadataAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoolMetadataAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPoolMetadataRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PoolMetadataAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PoolMetadataAll(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_LimitOrderTrancheUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheUserAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_LimitOrderTrancheUserAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheUserAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheUserAllByAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_LimitOrderTrancheUserAllByAddress_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheUserAllByAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTranche_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_LimitOrderTranche_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTranche_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_LimitOrderTrancheAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserDepositsAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_UserDepositsAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserDepositsAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TickLiquidityAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_TickLiquidityAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TickLiquidityAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InactiveLimitOrderTranche_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InactiveLimitOrderTranche_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InactiveLimitOrderTranche_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InactiveLimitOrderTrancheAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InactiveLimitOrderTrancheAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InactiveLimitOrderTrancheAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolReservesAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PoolReservesAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolReservesAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolReserves_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PoolReserves_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolReserves_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_EstimateMultiHopSwap_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_EstimateMultiHopSwap_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EstimateMultiHopSwap_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_EstimatePlaceLimitOrder_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_EstimatePlaceLimitOrder_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EstimatePlaceLimitOrder_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Pool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Pool_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Pool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PoolByID_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolMetadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PoolMetadata_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolMetadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolMetadataAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PoolMetadataAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolMetadataAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_LimitOrderTrancheUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheUserAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_LimitOrderTrancheUserAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheUserAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheUserAllByAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_LimitOrderTrancheUserAllByAddress_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheUserAllByAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTranche_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_LimitOrderTranche_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTranche_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_LimitOrderTrancheAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_LimitOrderTrancheAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_LimitOrderTrancheAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserDepositsAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_UserDepositsAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserDepositsAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TickLiquidityAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_TickLiquidityAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_TickLiquidityAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InactiveLimitOrderTranche_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InactiveLimitOrderTranche_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InactiveLimitOrderTranche_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InactiveLimitOrderTrancheAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InactiveLimitOrderTrancheAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InactiveLimitOrderTrancheAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolReservesAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PoolReservesAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolReservesAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolReserves_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PoolReserves_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolReserves_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_EstimateMultiHopSwap_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_EstimateMultiHopSwap_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EstimateMultiHopSwap_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_EstimatePlaceLimitOrder_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_EstimatePlaceLimitOrder_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EstimatePlaceLimitOrder_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Pool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Pool_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Pool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PoolByID_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolMetadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PoolMetadata_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolMetadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolMetadataAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PoolMetadataAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolMetadataAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "params"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_LimitOrderTrancheUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "limit_order_tranche_user", "address", "trancheKey"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_LimitOrderTrancheUserAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "limit_order_tranche_user"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_LimitOrderTrancheUserAllByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "user", "limit_orders", "address"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_LimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"duality", "dex", "limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_LimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "limit_order_tranche", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_UserDepositsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "user", "deposits", "address"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_TickLiquidityAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "tick_liquidity", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_InactiveLimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"duality", "dex", "filled_limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_InactiveLimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "filled_limit_order_tranche"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_PoolReservesAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "pool_reserves", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_PoolReserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"duality", "dex", "pool_reserves", "pairID", "tokenIn", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_EstimateMultiHopSwap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "estimate_multi_hop_swap"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_EstimatePlaceLimitOrder_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "estimate_place_limit_order"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"duality", "dex", "pool", "pairID", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_PoolByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"duality", "dex", "pool", "poolID"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_PoolMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"duality", "dex", "pool_metadata", "id"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_PoolMetadataAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "pool_metadata"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Query_Params_0 = runtime.ForwardResponseMessage + + forward_Query_LimitOrderTrancheUser_0 = runtime.ForwardResponseMessage + + forward_Query_LimitOrderTrancheUserAll_0 = runtime.ForwardResponseMessage + + forward_Query_LimitOrderTrancheUserAllByAddress_0 = runtime.ForwardResponseMessage + + forward_Query_LimitOrderTranche_0 = runtime.ForwardResponseMessage + + forward_Query_LimitOrderTrancheAll_0 = runtime.ForwardResponseMessage + + forward_Query_UserDepositsAll_0 = runtime.ForwardResponseMessage + + forward_Query_TickLiquidityAll_0 = runtime.ForwardResponseMessage + + forward_Query_InactiveLimitOrderTranche_0 = runtime.ForwardResponseMessage + + forward_Query_InactiveLimitOrderTrancheAll_0 = runtime.ForwardResponseMessage + + forward_Query_PoolReservesAll_0 = runtime.ForwardResponseMessage + + forward_Query_PoolReserves_0 = runtime.ForwardResponseMessage + + forward_Query_EstimateMultiHopSwap_0 = runtime.ForwardResponseMessage + + forward_Query_EstimatePlaceLimitOrder_0 = runtime.ForwardResponseMessage + + forward_Query_Pool_0 = runtime.ForwardResponseMessage + + forward_Query_PoolByID_0 = runtime.ForwardResponseMessage + + forward_Query_PoolMetadata_0 = runtime.ForwardResponseMessage + + forward_Query_PoolMetadataAll_0 = runtime.ForwardResponseMessage +) diff --git a/x/dex/types/tick_liquidity.go b/x/dex/types/tick_liquidity.go new file mode 100644 index 000000000..c9e7d944d --- /dev/null +++ b/x/dex/types/tick_liquidity.go @@ -0,0 +1,44 @@ +package types + +import ( + math_utils "github.com/neutron-org/neutron/utils/math" +) + +// NOTE: These methods should be avoided if possible. +// Generally default to dealing with LimitOrderTranche or PoolReserves explicitly + +func (t TickLiquidity) Price() math_utils.PrecDec { + switch liquidity := t.Liquidity.(type) { + case *TickLiquidity_LimitOrderTranche: + return liquidity.LimitOrderTranche.PriceTakerToMaker + + case *TickLiquidity_PoolReserves: + return liquidity.PoolReserves.PriceTakerToMaker + default: + panic("Tick does not contain valid liqudityType") + } +} + +func (t TickLiquidity) TickIndex() int64 { + switch liquidity := t.Liquidity.(type) { + case *TickLiquidity_LimitOrderTranche: + return liquidity.LimitOrderTranche.Key.TickIndexTakerToMaker + + case *TickLiquidity_PoolReserves: + return liquidity.PoolReserves.Key.TickIndexTakerToMaker + default: + panic("Tick does not contain valid liqudityType") + } +} + +func (t TickLiquidity) HasToken() bool { + switch liquidity := t.Liquidity.(type) { + case *TickLiquidity_LimitOrderTranche: + return liquidity.LimitOrderTranche.HasTokenIn() + + case *TickLiquidity_PoolReserves: + return liquidity.PoolReserves.HasToken() + default: + panic("Tick does not contain valid liqudityType") + } +} diff --git a/x/dex/types/tick_liquidity.pb.go b/x/dex/types/tick_liquidity.pb.go new file mode 100644 index 000000000..d545fde99 --- /dev/null +++ b/x/dex/types/tick_liquidity.pb.go @@ -0,0 +1,469 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/tick_liquidity.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type TickLiquidity struct { + // Types that are valid to be assigned to Liquidity: + // *TickLiquidity_PoolReserves + // *TickLiquidity_LimitOrderTranche + Liquidity isTickLiquidity_Liquidity `protobuf_oneof:"liquidity"` +} + +func (m *TickLiquidity) Reset() { *m = TickLiquidity{} } +func (m *TickLiquidity) String() string { return proto.CompactTextString(m) } +func (*TickLiquidity) ProtoMessage() {} +func (*TickLiquidity) Descriptor() ([]byte, []int) { + return fileDescriptor_1bf4777d3c75e20c, []int{0} +} +func (m *TickLiquidity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TickLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TickLiquidity.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 *TickLiquidity) XXX_Merge(src proto.Message) { + xxx_messageInfo_TickLiquidity.Merge(m, src) +} +func (m *TickLiquidity) XXX_Size() int { + return m.Size() +} +func (m *TickLiquidity) XXX_DiscardUnknown() { + xxx_messageInfo_TickLiquidity.DiscardUnknown(m) +} + +var xxx_messageInfo_TickLiquidity proto.InternalMessageInfo + +type isTickLiquidity_Liquidity interface { + isTickLiquidity_Liquidity() + MarshalTo([]byte) (int, error) + Size() int +} + +type TickLiquidity_PoolReserves struct { + PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=poolReserves,proto3,oneof" json:"poolReserves,omitempty"` +} +type TickLiquidity_LimitOrderTranche struct { + LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,2,opt,name=limitOrderTranche,proto3,oneof" json:"limitOrderTranche,omitempty"` +} + +func (*TickLiquidity_PoolReserves) isTickLiquidity_Liquidity() {} +func (*TickLiquidity_LimitOrderTranche) isTickLiquidity_Liquidity() {} + +func (m *TickLiquidity) GetLiquidity() isTickLiquidity_Liquidity { + if m != nil { + return m.Liquidity + } + return nil +} + +func (m *TickLiquidity) GetPoolReserves() *PoolReserves { + if x, ok := m.GetLiquidity().(*TickLiquidity_PoolReserves); ok { + return x.PoolReserves + } + return nil +} + +func (m *TickLiquidity) GetLimitOrderTranche() *LimitOrderTranche { + if x, ok := m.GetLiquidity().(*TickLiquidity_LimitOrderTranche); ok { + return x.LimitOrderTranche + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TickLiquidity) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TickLiquidity_PoolReserves)(nil), + (*TickLiquidity_LimitOrderTranche)(nil), + } +} + +func init() { + proto.RegisterType((*TickLiquidity)(nil), "duality.dex.TickLiquidity") +} + +func init() { proto.RegisterFile("duality/dex/tick_liquidity.proto", fileDescriptor_1bf4777d3c75e20c) } + +var fileDescriptor_1bf4777d3c75e20c = []byte{ + // 262 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc9, 0x4c, 0xce, 0x8e, 0xcf, 0xc9, 0x2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x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, + 0x57, 0x1f, 0x6a, 0x8b, 0x6e, 0x4e, 0x62, 0x52, 0x31, 0x8c, 0xa3, 0x5f, 0x01, 0x09, 0xf0, 0xca, + 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xef, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x4a, + 0xd5, 0x5a, 0x8c, 0x01, 0x00, 0x00, +} + +func (m *TickLiquidity) 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 *TickLiquidity) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TickLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Liquidity != nil { + { + size := m.Liquidity.Size() + i -= size + if _, err := m.Liquidity.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *TickLiquidity_PoolReserves) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TickLiquidity_PoolReserves) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.PoolReserves != nil { + { + size, err := m.PoolReserves.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTickLiquidity(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *TickLiquidity_LimitOrderTranche) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TickLiquidity_LimitOrderTranche) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.LimitOrderTranche != nil { + { + size, err := m.LimitOrderTranche.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTickLiquidity(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func encodeVarintTickLiquidity(dAtA []byte, offset int, v uint64) int { + offset -= sovTickLiquidity(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TickLiquidity) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Liquidity != nil { + n += m.Liquidity.Size() + } + return n +} + +func (m *TickLiquidity_PoolReserves) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolReserves != nil { + l = m.PoolReserves.Size() + n += 1 + l + sovTickLiquidity(uint64(l)) + } + return n +} +func (m *TickLiquidity_LimitOrderTranche) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LimitOrderTranche != nil { + l = m.LimitOrderTranche.Size() + n += 1 + l + sovTickLiquidity(uint64(l)) + } + return n +} + +func sovTickLiquidity(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTickLiquidity(x uint64) (n int) { + return sovTickLiquidity(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TickLiquidity) 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 ErrIntOverflowTickLiquidity + } + 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: TickLiquidity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TickLiquidity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolReserves", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTickLiquidity + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTickLiquidity + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTickLiquidity + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &PoolReserves{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Liquidity = &TickLiquidity_PoolReserves{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitOrderTranche", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTickLiquidity + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTickLiquidity + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTickLiquidity + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &LimitOrderTranche{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Liquidity = &TickLiquidity_LimitOrderTranche{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTickLiquidity(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTickLiquidity + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTickLiquidity(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, ErrIntOverflowTickLiquidity + } + 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, ErrIntOverflowTickLiquidity + } + 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, ErrIntOverflowTickLiquidity + } + 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, ErrInvalidLengthTickLiquidity + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTickLiquidity + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTickLiquidity + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTickLiquidity = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTickLiquidity = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTickLiquidity = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/tick_liquidity_key.go b/x/dex/types/tick_liquidity_key.go new file mode 100644 index 000000000..6ec6ab598 --- /dev/null +++ b/x/dex/types/tick_liquidity_key.go @@ -0,0 +1,8 @@ +package types + +import math_utils "github.com/neutron-org/neutron/utils/math" + +type TickLiquidityKey interface { + KeyMarshal() []byte + PriceTakerToMaker() (priceTakerToMaker math_utils.PrecDec, err error) +} diff --git a/x/dex/types/tick_liquidity_test.go b/x/dex/types/tick_liquidity_test.go new file mode 100644 index 000000000..01aeeea58 --- /dev/null +++ b/x/dex/types/tick_liquidity_test.go @@ -0,0 +1,34 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/stretchr/testify/assert" +) + +func TestHasTokenEmptyReserves(t *testing.T) { + // WHEN has no reserves + tick := &types.PoolReserves{ReservesMakerDenom: sdk.ZeroInt()} + assert.False(t, tick.HasToken()) +} + +func TestHasTokenEmptyLO(t *testing.T) { + // WHEN has no limits orders + tick := &types.LimitOrderTranche{ReservesMakerDenom: sdk.NewInt(0)} + assert.False(t, tick.HasTokenIn()) +} + +func TestHasToken0HasReserves(t *testing.T) { + // WHEN tick has Reserves + tick := &types.PoolReserves{ReservesMakerDenom: sdk.NewInt(10)} + + assert.True(t, tick.HasToken()) +} + +func TestHasTokenHasLO(t *testing.T) { + // WHEN has limit ordeers + tick := &types.LimitOrderTranche{ReservesMakerDenom: sdk.NewInt(10)} + assert.True(t, tick.HasTokenIn()) +} diff --git a/x/dex/types/trade_pair_id.go b/x/dex/types/trade_pair_id.go new file mode 100644 index 000000000..591017f3b --- /dev/null +++ b/x/dex/types/trade_pair_id.go @@ -0,0 +1,103 @@ +package types + +import ( + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + math_utils "github.com/neutron-org/neutron/utils/math" +) + +func NewTradePairID(takerDenom, makerDenom string) (*TradePairID, error) { + if takerDenom == makerDenom { + return nil, sdkerrors.Wrapf(ErrInvalidTradingPair, "%s, %s", takerDenom, makerDenom) + } + return &TradePairID{ + TakerDenom: takerDenom, + MakerDenom: makerDenom, + }, nil +} + +func MustNewTradePairID(takerDenom, makerDenom string) *TradePairID { + tradePairID, err := NewTradePairID(takerDenom, makerDenom) + if err != nil { + panic(err) + } + return tradePairID +} + +func NewTradePairIDFromMaker(pairID *PairID, makerDenom string) *TradePairID { + var takerDenom string + if pairID.Token0 == makerDenom { + takerDenom = pairID.Token1 + } else { + takerDenom = pairID.Token0 + } + return &TradePairID{ + TakerDenom: takerDenom, + MakerDenom: makerDenom, + } +} + +func NewTradePairIDFromTaker(pairID *PairID, takerDenom string) *TradePairID { + var makerDenom string + if pairID.Token0 == takerDenom { + makerDenom = pairID.Token1 + } else { + makerDenom = pairID.Token0 + } + return &TradePairID{ + TakerDenom: takerDenom, + MakerDenom: makerDenom, + } +} + +func (p TradePairID) IsTakerDenomToken0() bool { + return p.TakerDenom == p.MustPairID().Token0 +} + +func (p TradePairID) IsMakerDenomToken0() bool { + return p.MakerDenom == p.MustPairID().Token0 +} + +func (p TradePairID) MustPairID() *PairID { + pairID, err := p.PairID() + if err != nil { + panic(err) + } + + return pairID +} + +func (p TradePairID) PairID() (*PairID, error) { + return NewPairIDFromUnsorted(p.MakerDenom, p.TakerDenom) +} + +func (p TradePairID) Reversed() *TradePairID { + return &TradePairID{ + MakerDenom: p.TakerDenom, + TakerDenom: p.MakerDenom, + } +} + +func (p TradePairID) TickIndexTakerToMaker(tickIndexNormalized int64) int64 { + pairID := p.MustPairID() + if pairID.Token1 == p.MakerDenom { + return tickIndexNormalized + } else { + return -1 * tickIndexNormalized + } +} + +func (p TradePairID) TickIndexNormalized(tickIndexTakerToMaker int64) int64 { + return p.TickIndexTakerToMaker(tickIndexTakerToMaker) +} + +func (p TradePairID) PriceTakerToMaker(tickIndexNormalized int64) (priceTakerToMaker math_utils.PrecDec, err error) { + return CalcPrice(p.TickIndexTakerToMaker(tickIndexNormalized)) +} + +func (p TradePairID) MustPriceTakerToMaker(tickIndexNormalized int64) (priceTakerToMaker math_utils.PrecDec) { + price, err := p.PriceTakerToMaker(tickIndexNormalized) + if err != nil { + panic(err) + } + return price +} diff --git a/x/dex/types/trade_pair_id.pb.go b/x/dex/types/trade_pair_id.pb.go new file mode 100644 index 000000000..0a29660ee --- /dev/null +++ b/x/dex/types/trade_pair_id.pb.go @@ -0,0 +1,366 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/trade_pair_id.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type TradePairID struct { + MakerDenom string `protobuf:"bytes,2,opt,name=makerDenom,proto3" json:"makerDenom,omitempty"` + TakerDenom string `protobuf:"bytes,3,opt,name=takerDenom,proto3" json:"takerDenom,omitempty"` +} + +func (m *TradePairID) Reset() { *m = TradePairID{} } +func (m *TradePairID) String() string { return proto.CompactTextString(m) } +func (*TradePairID) ProtoMessage() {} +func (*TradePairID) Descriptor() ([]byte, []int) { + return fileDescriptor_9a4de11785745a60, []int{0} +} +func (m *TradePairID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TradePairID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TradePairID.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 *TradePairID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TradePairID.Merge(m, src) +} +func (m *TradePairID) XXX_Size() int { + return m.Size() +} +func (m *TradePairID) XXX_DiscardUnknown() { + xxx_messageInfo_TradePairID.DiscardUnknown(m) +} + +var xxx_messageInfo_TradePairID proto.InternalMessageInfo + +func (m *TradePairID) GetMakerDenom() string { + if m != nil { + return m.MakerDenom + } + return "" +} + +func (m *TradePairID) GetTakerDenom() string { + if m != nil { + return m.TakerDenom + } + return "" +} + +func init() { + proto.RegisterType((*TradePairID)(nil), "duality.dex.TradePairID") +} + +func init() { proto.RegisterFile("duality/dex/trade_pair_id.proto", fileDescriptor_9a4de11785745a60) } + +var fileDescriptor_9a4de11785745a60 = []byte{ + // 174 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x29, 0x4a, 0x4c, 0x49, 0x8d, 0x2f, 0x48, + 0xcc, 0x2c, 0x8a, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x2a, 0xd0, + 0x4b, 0x49, 0xad, 0x50, 0xf2, 0xe5, 0xe2, 0x0e, 0x01, 0xa9, 0x09, 0x48, 0xcc, 0x2c, 0xf2, 0x74, + 0x11, 0x92, 0xe3, 0xe2, 0xca, 0x4d, 0xcc, 0x4e, 0x2d, 0x72, 0x49, 0xcd, 0xcb, 0xcf, 0x95, 0x60, + 0x52, 0x60, 0xd4, 0xe0, 0x0c, 0x42, 0x12, 0x01, 0xc9, 0x97, 0x20, 0xe4, 0x99, 0x21, 0xf2, 0x08, + 0x11, 0x27, 0xd7, 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, 0x4e, 0xcf, + 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0x3a, 0x40, 0x37, 0x27, 0x31, 0xa9, + 0x18, 0xc6, 0xd1, 0xaf, 0x80, 0x38, 0xb8, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x52, 0x63, + 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf8, 0xf7, 0xc6, 0xed, 0xcc, 0x00, 0x00, 0x00, +} + +func (m *TradePairID) 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 *TradePairID) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TradePairID) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TakerDenom) > 0 { + i -= len(m.TakerDenom) + copy(dAtA[i:], m.TakerDenom) + i = encodeVarintTradePairId(dAtA, i, uint64(len(m.TakerDenom))) + i-- + dAtA[i] = 0x1a + } + if len(m.MakerDenom) > 0 { + i -= len(m.MakerDenom) + copy(dAtA[i:], m.MakerDenom) + i = encodeVarintTradePairId(dAtA, i, uint64(len(m.MakerDenom))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func encodeVarintTradePairId(dAtA []byte, offset int, v uint64) int { + offset -= sovTradePairId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TradePairID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MakerDenom) + if l > 0 { + n += 1 + l + sovTradePairId(uint64(l)) + } + l = len(m.TakerDenom) + if l > 0 { + n += 1 + l + sovTradePairId(uint64(l)) + } + return n +} + +func sovTradePairId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTradePairId(x uint64) (n int) { + return sovTradePairId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TradePairID) 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 ErrIntOverflowTradePairId + } + 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: TradePairID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TradePairID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTradePairId + } + 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 ErrInvalidLengthTradePairId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTradePairId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MakerDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TakerDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTradePairId + } + 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 ErrInvalidLengthTradePairId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTradePairId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TakerDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTradePairId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTradePairId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTradePairId(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, ErrIntOverflowTradePairId + } + 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, ErrIntOverflowTradePairId + } + 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, ErrIntOverflowTradePairId + } + 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, ErrInvalidLengthTradePairId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTradePairId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTradePairId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTradePairId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTradePairId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTradePairId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go new file mode 100644 index 000000000..a01cef797 --- /dev/null +++ b/x/dex/types/tx.pb.go @@ -0,0 +1,4608 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/dex/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LimitOrderType int32 + +const ( + LimitOrderType_GOOD_TIL_CANCELLED LimitOrderType = 0 + LimitOrderType_FILL_OR_KILL LimitOrderType = 1 + LimitOrderType_IMMEDIATE_OR_CANCEL LimitOrderType = 2 + LimitOrderType_JUST_IN_TIME LimitOrderType = 3 + LimitOrderType_GOOD_TIL_TIME LimitOrderType = 4 +) + +var LimitOrderType_name = map[int32]string{ + 0: "GOOD_TIL_CANCELLED", + 1: "FILL_OR_KILL", + 2: "IMMEDIATE_OR_CANCEL", + 3: "JUST_IN_TIME", + 4: "GOOD_TIL_TIME", +} + +var LimitOrderType_value = map[string]int32{ + "GOOD_TIL_CANCELLED": 0, + "FILL_OR_KILL": 1, + "IMMEDIATE_OR_CANCEL": 2, + "JUST_IN_TIME": 3, + "GOOD_TIL_TIME": 4, +} + +func (x LimitOrderType) String() string { + return proto.EnumName(LimitOrderType_name, int32(x)) +} + +func (LimitOrderType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{0} +} + +type DepositOptions struct { + DisableAutoswap bool `protobuf:"varint,1,opt,name=disable_autoswap,json=disableAutoswap,proto3" json:"disable_autoswap,omitempty"` +} + +func (m *DepositOptions) Reset() { *m = DepositOptions{} } +func (m *DepositOptions) String() string { return proto.CompactTextString(m) } +func (*DepositOptions) ProtoMessage() {} +func (*DepositOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{0} +} +func (m *DepositOptions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositOptions.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 *DepositOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositOptions.Merge(m, src) +} +func (m *DepositOptions) XXX_Size() int { + return m.Size() +} +func (m *DepositOptions) XXX_DiscardUnknown() { + xxx_messageInfo_DepositOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositOptions proto.InternalMessageInfo + +func (m *DepositOptions) GetDisableAutoswap() bool { + if m != nil { + return m.DisableAutoswap + } + return false +} + +type MsgDeposit struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` + TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` + AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountA" yaml:"amountsA"` + AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountB" yaml:"amountsB"` + TickIndexesAToB []int64 `protobuf:"varint,7,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` + Fees []uint64 `protobuf:"varint,8,rep,packed,name=fees,proto3" json:"fees,omitempty"` + Options []*DepositOptions `protobuf:"bytes,9,rep,name=Options,proto3" json:"Options,omitempty"` +} + +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_0012bae7d4530cbb, []int{1} +} +func (m *MsgDeposit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeposit.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 *MsgDeposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeposit.Merge(m, src) +} +func (m *MsgDeposit) XXX_Size() int { + return m.Size() +} +func (m *MsgDeposit) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeposit.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeposit proto.InternalMessageInfo + +func (m *MsgDeposit) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgDeposit) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *MsgDeposit) GetTokenA() string { + if m != nil { + return m.TokenA + } + return "" +} + +func (m *MsgDeposit) GetTokenB() string { + if m != nil { + return m.TokenB + } + return "" +} + +func (m *MsgDeposit) GetTickIndexesAToB() []int64 { + if m != nil { + return m.TickIndexesAToB + } + return nil +} + +func (m *MsgDeposit) GetFees() []uint64 { + if m != nil { + return m.Fees + } + return nil +} + +func (m *MsgDeposit) GetOptions() []*DepositOptions { + if m != nil { + return m.Options + } + return nil +} + +type MsgDepositResponse struct { + Reserve0Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,rep,name=Reserve0Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve0Deposited" yaml:"reserve0Deposited"` + Reserve1Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,rep,name=Reserve1Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve1Deposited" yaml:"reserve1Deposited"` +} + +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_0012bae7d4530cbb, []int{2} +} +func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDepositResponse.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 *MsgDepositResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDepositResponse.Merge(m, src) +} +func (m *MsgDepositResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDepositResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDepositResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo + +type MsgWithdrawal struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` + TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` + SharesToRemove []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=sharesToRemove,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesToRemove" yaml:"sharesToRemove"` + TickIndexesAToB []int64 `protobuf:"varint,6,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` + Fees []uint64 `protobuf:"varint,7,rep,packed,name=fees,proto3" json:"fees,omitempty"` +} + +func (m *MsgWithdrawal) Reset() { *m = MsgWithdrawal{} } +func (m *MsgWithdrawal) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawal) ProtoMessage() {} +func (*MsgWithdrawal) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{3} +} +func (m *MsgWithdrawal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawal.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 *MsgWithdrawal) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawal.Merge(m, src) +} +func (m *MsgWithdrawal) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawal) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawal.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawal proto.InternalMessageInfo + +func (m *MsgWithdrawal) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgWithdrawal) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *MsgWithdrawal) GetTokenA() string { + if m != nil { + return m.TokenA + } + return "" +} + +func (m *MsgWithdrawal) GetTokenB() string { + if m != nil { + return m.TokenB + } + return "" +} + +func (m *MsgWithdrawal) GetTickIndexesAToB() []int64 { + if m != nil { + return m.TickIndexesAToB + } + return nil +} + +func (m *MsgWithdrawal) GetFees() []uint64 { + if m != nil { + return m.Fees + } + return nil +} + +type MsgWithdrawalResponse struct { +} + +func (m *MsgWithdrawalResponse) Reset() { *m = MsgWithdrawalResponse{} } +func (m *MsgWithdrawalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawalResponse) ProtoMessage() {} +func (*MsgWithdrawalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{4} +} +func (m *MsgWithdrawalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawalResponse.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 *MsgWithdrawalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawalResponse.Merge(m, src) +} +func (m *MsgWithdrawalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawalResponse proto.InternalMessageInfo + +type MsgPlaceLimitOrder struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` + TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=duality.dex.LimitOrderType" json:"orderType,omitempty"` + // expirationTime is only valid iff orderType == GOOD_TIL_TIME. + ExpirationTime *time.Time `protobuf:"bytes,9,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` + MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` +} + +func (m *MsgPlaceLimitOrder) Reset() { *m = MsgPlaceLimitOrder{} } +func (m *MsgPlaceLimitOrder) String() string { return proto.CompactTextString(m) } +func (*MsgPlaceLimitOrder) ProtoMessage() {} +func (*MsgPlaceLimitOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{5} +} +func (m *MsgPlaceLimitOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgPlaceLimitOrder.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 *MsgPlaceLimitOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgPlaceLimitOrder.Merge(m, src) +} +func (m *MsgPlaceLimitOrder) XXX_Size() int { + return m.Size() +} +func (m *MsgPlaceLimitOrder) XXX_DiscardUnknown() { + xxx_messageInfo_MsgPlaceLimitOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgPlaceLimitOrder proto.InternalMessageInfo + +func (m *MsgPlaceLimitOrder) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgPlaceLimitOrder) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *MsgPlaceLimitOrder) GetTokenIn() string { + if m != nil { + return m.TokenIn + } + return "" +} + +func (m *MsgPlaceLimitOrder) GetTokenOut() string { + if m != nil { + return m.TokenOut + } + return "" +} + +func (m *MsgPlaceLimitOrder) GetTickIndexInToOut() int64 { + if m != nil { + return m.TickIndexInToOut + } + return 0 +} + +func (m *MsgPlaceLimitOrder) GetOrderType() LimitOrderType { + if m != nil { + return m.OrderType + } + return LimitOrderType_GOOD_TIL_CANCELLED +} + +func (m *MsgPlaceLimitOrder) GetExpirationTime() *time.Time { + if m != nil { + return m.ExpirationTime + } + return nil +} + +type MsgPlaceLimitOrderResponse struct { + TrancheKey string `protobuf:"bytes,1,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + // Total amount of coin used for the limit order + CoinIn github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coinIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinIn" yaml:"coinIn"` + // Total amount of coin received from the taker portion of the limit order + // This is the amount of coin immediately available in the users account after executing the + // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future + TakerCoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=takerCoinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"takerCoinOut" yaml:"takerCoinOut"` +} + +func (m *MsgPlaceLimitOrderResponse) Reset() { *m = MsgPlaceLimitOrderResponse{} } +func (m *MsgPlaceLimitOrderResponse) String() string { return proto.CompactTextString(m) } +func (*MsgPlaceLimitOrderResponse) ProtoMessage() {} +func (*MsgPlaceLimitOrderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{6} +} +func (m *MsgPlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgPlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgPlaceLimitOrderResponse.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 *MsgPlaceLimitOrderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgPlaceLimitOrderResponse.Merge(m, src) +} +func (m *MsgPlaceLimitOrderResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgPlaceLimitOrderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgPlaceLimitOrderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgPlaceLimitOrderResponse proto.InternalMessageInfo + +func (m *MsgPlaceLimitOrderResponse) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type MsgWithdrawFilledLimitOrder struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` +} + +func (m *MsgWithdrawFilledLimitOrder) Reset() { *m = MsgWithdrawFilledLimitOrder{} } +func (m *MsgWithdrawFilledLimitOrder) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawFilledLimitOrder) ProtoMessage() {} +func (*MsgWithdrawFilledLimitOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{7} +} +func (m *MsgWithdrawFilledLimitOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawFilledLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawFilledLimitOrder.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 *MsgWithdrawFilledLimitOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawFilledLimitOrder.Merge(m, src) +} +func (m *MsgWithdrawFilledLimitOrder) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawFilledLimitOrder) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawFilledLimitOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawFilledLimitOrder proto.InternalMessageInfo + +func (m *MsgWithdrawFilledLimitOrder) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgWithdrawFilledLimitOrder) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type MsgWithdrawFilledLimitOrderResponse struct { +} + +func (m *MsgWithdrawFilledLimitOrderResponse) Reset() { *m = MsgWithdrawFilledLimitOrderResponse{} } +func (m *MsgWithdrawFilledLimitOrderResponse) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawFilledLimitOrderResponse) ProtoMessage() {} +func (*MsgWithdrawFilledLimitOrderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{8} +} +func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawFilledLimitOrderResponse.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 *MsgWithdrawFilledLimitOrderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawFilledLimitOrderResponse.Merge(m, src) +} +func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawFilledLimitOrderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawFilledLimitOrderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawFilledLimitOrderResponse proto.InternalMessageInfo + +type MsgCancelLimitOrder struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` +} + +func (m *MsgCancelLimitOrder) Reset() { *m = MsgCancelLimitOrder{} } +func (m *MsgCancelLimitOrder) String() string { return proto.CompactTextString(m) } +func (*MsgCancelLimitOrder) ProtoMessage() {} +func (*MsgCancelLimitOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{9} +} +func (m *MsgCancelLimitOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCancelLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCancelLimitOrder.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 *MsgCancelLimitOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCancelLimitOrder.Merge(m, src) +} +func (m *MsgCancelLimitOrder) XXX_Size() int { + return m.Size() +} +func (m *MsgCancelLimitOrder) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCancelLimitOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCancelLimitOrder proto.InternalMessageInfo + +func (m *MsgCancelLimitOrder) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCancelLimitOrder) GetTrancheKey() string { + if m != nil { + return m.TrancheKey + } + return "" +} + +type MsgCancelLimitOrderResponse struct { +} + +func (m *MsgCancelLimitOrderResponse) Reset() { *m = MsgCancelLimitOrderResponse{} } +func (m *MsgCancelLimitOrderResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCancelLimitOrderResponse) ProtoMessage() {} +func (*MsgCancelLimitOrderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{10} +} +func (m *MsgCancelLimitOrderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCancelLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCancelLimitOrderResponse.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 *MsgCancelLimitOrderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCancelLimitOrderResponse.Merge(m, src) +} +func (m *MsgCancelLimitOrderResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCancelLimitOrderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCancelLimitOrderResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCancelLimitOrderResponse proto.InternalMessageInfo + +type MultiHopRoute struct { + Hops []string `protobuf:"bytes,1,rep,name=hops,proto3" json:"hops,omitempty"` +} + +func (m *MultiHopRoute) Reset() { *m = MultiHopRoute{} } +func (m *MultiHopRoute) String() string { return proto.CompactTextString(m) } +func (*MultiHopRoute) ProtoMessage() {} +func (*MultiHopRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{11} +} +func (m *MultiHopRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MultiHopRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MultiHopRoute.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 *MultiHopRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_MultiHopRoute.Merge(m, src) +} +func (m *MultiHopRoute) XXX_Size() int { + return m.Size() +} +func (m *MultiHopRoute) XXX_DiscardUnknown() { + xxx_messageInfo_MultiHopRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_MultiHopRoute proto.InternalMessageInfo + +func (m *MultiHopRoute) GetHops() []string { + if m != nil { + return m.Hops + } + return nil +} + +type MsgMultiHopSwap struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + ExitLimitPrice github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + // If pickBestRoute == true then all routes are run and the route with the best price is chosen + // otherwise, the first succesful route is used. + PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` +} + +func (m *MsgMultiHopSwap) Reset() { *m = MsgMultiHopSwap{} } +func (m *MsgMultiHopSwap) String() string { return proto.CompactTextString(m) } +func (*MsgMultiHopSwap) ProtoMessage() {} +func (*MsgMultiHopSwap) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{12} +} +func (m *MsgMultiHopSwap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMultiHopSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMultiHopSwap.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 *MsgMultiHopSwap) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMultiHopSwap.Merge(m, src) +} +func (m *MsgMultiHopSwap) XXX_Size() int { + return m.Size() +} +func (m *MsgMultiHopSwap) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMultiHopSwap.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMultiHopSwap proto.InternalMessageInfo + +func (m *MsgMultiHopSwap) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgMultiHopSwap) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *MsgMultiHopSwap) GetRoutes() []*MultiHopRoute { + if m != nil { + return m.Routes + } + return nil +} + +func (m *MsgMultiHopSwap) GetPickBestRoute() bool { + if m != nil { + return m.PickBestRoute + } + return false +} + +type MsgMultiHopSwapResponse struct { + CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` +} + +func (m *MsgMultiHopSwapResponse) Reset() { *m = MsgMultiHopSwapResponse{} } +func (m *MsgMultiHopSwapResponse) String() string { return proto.CompactTextString(m) } +func (*MsgMultiHopSwapResponse) ProtoMessage() {} +func (*MsgMultiHopSwapResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0012bae7d4530cbb, []int{13} +} +func (m *MsgMultiHopSwapResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgMultiHopSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgMultiHopSwapResponse.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 *MsgMultiHopSwapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgMultiHopSwapResponse.Merge(m, src) +} +func (m *MsgMultiHopSwapResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgMultiHopSwapResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgMultiHopSwapResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgMultiHopSwapResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("duality.dex.LimitOrderType", LimitOrderType_name, LimitOrderType_value) + proto.RegisterType((*DepositOptions)(nil), "duality.dex.DepositOptions") + proto.RegisterType((*MsgDeposit)(nil), "duality.dex.MsgDeposit") + proto.RegisterType((*MsgDepositResponse)(nil), "duality.dex.MsgDepositResponse") + proto.RegisterType((*MsgWithdrawal)(nil), "duality.dex.MsgWithdrawal") + proto.RegisterType((*MsgWithdrawalResponse)(nil), "duality.dex.MsgWithdrawalResponse") + proto.RegisterType((*MsgPlaceLimitOrder)(nil), "duality.dex.MsgPlaceLimitOrder") + proto.RegisterType((*MsgPlaceLimitOrderResponse)(nil), "duality.dex.MsgPlaceLimitOrderResponse") + proto.RegisterType((*MsgWithdrawFilledLimitOrder)(nil), "duality.dex.MsgWithdrawFilledLimitOrder") + proto.RegisterType((*MsgWithdrawFilledLimitOrderResponse)(nil), "duality.dex.MsgWithdrawFilledLimitOrderResponse") + proto.RegisterType((*MsgCancelLimitOrder)(nil), "duality.dex.MsgCancelLimitOrder") + proto.RegisterType((*MsgCancelLimitOrderResponse)(nil), "duality.dex.MsgCancelLimitOrderResponse") + proto.RegisterType((*MultiHopRoute)(nil), "duality.dex.MultiHopRoute") + proto.RegisterType((*MsgMultiHopSwap)(nil), "duality.dex.MsgMultiHopSwap") + proto.RegisterType((*MsgMultiHopSwapResponse)(nil), "duality.dex.MsgMultiHopSwapResponse") +} + +func init() { proto.RegisterFile("duality/dex/tx.proto", fileDescriptor_0012bae7d4530cbb) } + +var fileDescriptor_0012bae7d4530cbb = []byte{ + // 1273 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4b, 0x8f, 0xdb, 0xd4, + 0x17, 0x1f, 0xc7, 0x69, 0x32, 0x73, 0xe6, 0x95, 0xde, 0x3e, 0xc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xca, 0x03, 0xdf, + 0xa4, 0x7d, 0xb4, 0x0d, 0xc5, 0xe8, 0xe9, 0xbd, 0x91, 0x4e, 0xaf, 0xf8, 0x55, 0x27, 0x4a, 0x47, + 0x28, 0xe2, 0xb8, 0x35, 0x00, 0x12, 0x4f, 0x19, 0x31, 0x0b, 0x9f, 0xe9, 0x44, 0xf9, 0x68, 0x5d, + 0xcc, 0xf6, 0x15, 0xac, 0x67, 0xa7, 0xf8, 0x9c, 0x07, 0x19, 0x80, 0x78, 0xf9, 0x18, 0x40, 0x4c, + 0xbe, 0x0f, 0xc2, 0x91, 0xfd, 0xaa, 0x7a, 0x94, 0x73, 0x59, 0xa4, 0x78, 0xed, 0x75, 0x91, 0xb1, + 0xdd, 0xaf, 0xa1, 0x34, 0xd7, 0xa7, 0x2a, 0x59, 0x96, 0x2c, 0x42, 0xac, 0x1e, 0x87, 0x88, 0xf9, + 0x75, 0x58, 0x49, 0x75, 0x9c, 0xff, 0x67, 0x77, 0x26, 0xb5, 0xe2, 0xa5, 0x57, 0x69, 0x23, 0x4e, + 0x75, 0xf7, 0xc9, 0xb3, 0x32, 0xf7, 0xf4, 0x59, 0x99, 0xfb, 0xeb, 0x59, 0x99, 0x7b, 0xfc, 0xbc, + 0xbc, 0xf0, 0xf4, 0x79, 0x79, 0xe1, 0xf7, 0xe7, 0xe5, 0x85, 0x2f, 0x3f, 0x38, 0xae, 0xb2, 0x27, + 0xc1, 0xbf, 0x50, 0x2f, 0xfb, 0xbb, 0x05, 0xff, 0x91, 0xf0, 0xe1, 0xdf, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x3e, 0x98, 0x48, 0x57, 0xa1, 0x0e, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +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 { + Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + Withdrawal(ctx context.Context, in *MsgWithdrawal, opts ...grpc.CallOption) (*MsgWithdrawalResponse, error) + PlaceLimitOrder(ctx context.Context, in *MsgPlaceLimitOrder, opts ...grpc.CallOption) (*MsgPlaceLimitOrderResponse, error) + WithdrawFilledLimitOrder(ctx context.Context, in *MsgWithdrawFilledLimitOrder, opts ...grpc.CallOption) (*MsgWithdrawFilledLimitOrderResponse, error) + CancelLimitOrder(ctx context.Context, in *MsgCancelLimitOrder, opts ...grpc.CallOption) (*MsgCancelLimitOrderResponse, error) + MultiHopSwap(ctx context.Context, in *MsgMultiHopSwap, opts ...grpc.CallOption) (*MsgMultiHopSwapResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) { + out := new(MsgDepositResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Msg/Deposit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Withdrawal(ctx context.Context, in *MsgWithdrawal, opts ...grpc.CallOption) (*MsgWithdrawalResponse, error) { + out := new(MsgWithdrawalResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Msg/Withdrawal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) PlaceLimitOrder(ctx context.Context, in *MsgPlaceLimitOrder, opts ...grpc.CallOption) (*MsgPlaceLimitOrderResponse, error) { + out := new(MsgPlaceLimitOrderResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Msg/PlaceLimitOrder", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) WithdrawFilledLimitOrder(ctx context.Context, in *MsgWithdrawFilledLimitOrder, opts ...grpc.CallOption) (*MsgWithdrawFilledLimitOrderResponse, error) { + out := new(MsgWithdrawFilledLimitOrderResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Msg/WithdrawFilledLimitOrder", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CancelLimitOrder(ctx context.Context, in *MsgCancelLimitOrder, opts ...grpc.CallOption) (*MsgCancelLimitOrderResponse, error) { + out := new(MsgCancelLimitOrderResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Msg/CancelLimitOrder", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) MultiHopSwap(ctx context.Context, in *MsgMultiHopSwap, opts ...grpc.CallOption) (*MsgMultiHopSwapResponse, error) { + out := new(MsgMultiHopSwapResponse) + err := c.cc.Invoke(ctx, "/duality.dex.Msg/MultiHopSwap", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + Withdrawal(context.Context, *MsgWithdrawal) (*MsgWithdrawalResponse, error) + PlaceLimitOrder(context.Context, *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error) + WithdrawFilledLimitOrder(context.Context, *MsgWithdrawFilledLimitOrder) (*MsgWithdrawFilledLimitOrderResponse, error) + CancelLimitOrder(context.Context, *MsgCancelLimitOrder) (*MsgCancelLimitOrderResponse, error) + MultiHopSwap(context.Context, *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") +} +func (*UnimplementedMsgServer) Withdrawal(ctx context.Context, req *MsgWithdrawal) (*MsgWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Withdrawal not implemented") +} +func (*UnimplementedMsgServer) PlaceLimitOrder(ctx context.Context, req *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlaceLimitOrder not implemented") +} +func (*UnimplementedMsgServer) WithdrawFilledLimitOrder(ctx context.Context, req *MsgWithdrawFilledLimitOrder) (*MsgWithdrawFilledLimitOrderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WithdrawFilledLimitOrder not implemented") +} +func (*UnimplementedMsgServer) CancelLimitOrder(ctx context.Context, req *MsgCancelLimitOrder) (*MsgCancelLimitOrderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelLimitOrder not implemented") +} +func (*UnimplementedMsgServer) MultiHopSwap(ctx context.Context, req *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MultiHopSwap not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeposit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Deposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Msg/Deposit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Withdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWithdrawal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Withdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Msg/Withdrawal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Withdrawal(ctx, req.(*MsgWithdrawal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_PlaceLimitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgPlaceLimitOrder) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).PlaceLimitOrder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Msg/PlaceLimitOrder", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).PlaceLimitOrder(ctx, req.(*MsgPlaceLimitOrder)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_WithdrawFilledLimitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWithdrawFilledLimitOrder) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).WithdrawFilledLimitOrder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Msg/WithdrawFilledLimitOrder", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).WithdrawFilledLimitOrder(ctx, req.(*MsgWithdrawFilledLimitOrder)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CancelLimitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCancelLimitOrder) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CancelLimitOrder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Msg/CancelLimitOrder", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CancelLimitOrder(ctx, req.(*MsgCancelLimitOrder)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_MultiHopSwap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgMultiHopSwap) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).MultiHopSwap(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.dex.Msg/MultiHopSwap", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).MultiHopSwap(ctx, req.(*MsgMultiHopSwap)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "duality.dex.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Deposit", + Handler: _Msg_Deposit_Handler, + }, + { + MethodName: "Withdrawal", + Handler: _Msg_Withdrawal_Handler, + }, + { + MethodName: "PlaceLimitOrder", + Handler: _Msg_PlaceLimitOrder_Handler, + }, + { + MethodName: "WithdrawFilledLimitOrder", + Handler: _Msg_WithdrawFilledLimitOrder_Handler, + }, + { + MethodName: "CancelLimitOrder", + Handler: _Msg_CancelLimitOrder_Handler, + }, + { + MethodName: "MultiHopSwap", + Handler: _Msg_MultiHopSwap_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "duality/dex/tx.proto", +} + +func (m *DepositOptions) 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 *DepositOptions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DisableAutoswap { + i-- + if m.DisableAutoswap { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgDeposit) 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 *MsgDeposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Options) > 0 { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Options[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.Fees) > 0 { + dAtA2 := make([]byte, len(m.Fees)*10) + var j1 int + for _, num := range m.Fees { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintTx(dAtA, i, uint64(j1)) + i-- + dAtA[i] = 0x42 + } + if len(m.TickIndexesAToB) > 0 { + dAtA4 := make([]byte, len(m.TickIndexesAToB)*10) + var j3 int + for _, num1 := range m.TickIndexesAToB { + num := uint64(num1) + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintTx(dAtA, i, uint64(j3)) + i-- + dAtA[i] = 0x3a + } + if len(m.AmountsB) > 0 { + for iNdEx := len(m.AmountsB) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.AmountsB[iNdEx].Size() + i -= size + if _, err := m.AmountsB[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.AmountsA) > 0 { + for iNdEx := len(m.AmountsA) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.AmountsA[iNdEx].Size() + i -= size + if _, err := m.AmountsA[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenB) > 0 { + i -= len(m.TokenB) + copy(dAtA[i:], m.TokenB) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenB))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenA) > 0 { + i -= len(m.TokenA) + copy(dAtA[i:], m.TokenA) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenA))) + i-- + dAtA[i] = 0x1a + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDepositResponse) 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 *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reserve1Deposited) > 0 { + for iNdEx := len(m.Reserve1Deposited) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.Reserve1Deposited[iNdEx].Size() + i -= size + if _, err := m.Reserve1Deposited[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Reserve0Deposited) > 0 { + for iNdEx := len(m.Reserve0Deposited) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.Reserve0Deposited[iNdEx].Size() + i -= size + if _, err := m.Reserve0Deposited[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MsgWithdrawal) 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 *MsgWithdrawal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Fees) > 0 { + dAtA6 := make([]byte, len(m.Fees)*10) + var j5 int + for _, num := range m.Fees { + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + i -= j5 + copy(dAtA[i:], dAtA6[:j5]) + i = encodeVarintTx(dAtA, i, uint64(j5)) + i-- + dAtA[i] = 0x3a + } + if len(m.TickIndexesAToB) > 0 { + dAtA8 := make([]byte, len(m.TickIndexesAToB)*10) + var j7 int + for _, num1 := range m.TickIndexesAToB { + num := uint64(num1) + for num >= 1<<7 { + dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j7++ + } + dAtA8[j7] = uint8(num) + j7++ + } + i -= j7 + copy(dAtA[i:], dAtA8[:j7]) + i = encodeVarintTx(dAtA, i, uint64(j7)) + i-- + dAtA[i] = 0x32 + } + if len(m.SharesToRemove) > 0 { + for iNdEx := len(m.SharesToRemove) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.SharesToRemove[iNdEx].Size() + i -= size + if _, err := m.SharesToRemove[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenB) > 0 { + i -= len(m.TokenB) + copy(dAtA[i:], m.TokenB) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenB))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenA) > 0 { + i -= len(m.TokenA) + copy(dAtA[i:], m.TokenA) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenA))) + i-- + dAtA[i] = 0x1a + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgWithdrawalResponse) 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 *MsgWithdrawalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgPlaceLimitOrder) 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 *MsgPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxAmountOut != nil { + { + size := m.MaxAmountOut.Size() + i -= size + if _, err := m.MaxAmountOut.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.ExpirationTime != nil { + n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ExpirationTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ExpirationTime):]) + if err9 != nil { + return 0, err9 + } + i -= n9 + i = encodeVarintTx(dAtA, i, uint64(n9)) + i-- + dAtA[i] = 0x4a + } + if m.OrderType != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.OrderType)) + i-- + dAtA[i] = 0x40 + } + { + size := m.AmountIn.Size() + i -= size + if _, err := m.AmountIn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if m.TickIndexInToOut != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TickIndexInToOut)) + i-- + dAtA[i] = 0x28 + } + if len(m.TokenOut) > 0 { + i -= len(m.TokenOut) + copy(dAtA[i:], m.TokenOut) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenOut))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenIn) > 0 { + i -= len(m.TokenIn) + copy(dAtA[i:], m.TokenIn) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenIn))) + i-- + dAtA[i] = 0x1a + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgPlaceLimitOrderResponse) 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 *MsgPlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgPlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.TakerCoinOut.Size() + i -= size + if _, err := m.TakerCoinOut.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.CoinIn.Size() + i -= size + if _, err := m.CoinIn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintTx(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgWithdrawFilledLimitOrder) 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 *MsgWithdrawFilledLimitOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawFilledLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintTx(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgWithdrawFilledLimitOrderResponse) 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 *MsgWithdrawFilledLimitOrderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawFilledLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCancelLimitOrder) 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 *MsgCancelLimitOrder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCancelLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TrancheKey) > 0 { + i -= len(m.TrancheKey) + copy(dAtA[i:], m.TrancheKey) + i = encodeVarintTx(dAtA, i, uint64(len(m.TrancheKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCancelLimitOrderResponse) 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 *MsgCancelLimitOrderResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCancelLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MultiHopRoute) 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 *MultiHopRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MultiHopRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hops) > 0 { + for iNdEx := len(m.Hops) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Hops[iNdEx]) + copy(dAtA[i:], m.Hops[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Hops[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MsgMultiHopSwap) 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 *MsgMultiHopSwap) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMultiHopSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PickBestRoute { + i-- + if m.PickBestRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + { + size := m.ExitLimitPrice.Size() + i -= size + if _, err := m.ExitLimitPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.AmountIn.Size() + i -= size + if _, err := m.AmountIn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Routes) > 0 { + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Routes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgMultiHopSwapResponse) 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 *MsgMultiHopSwapResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgMultiHopSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CoinOut.Size() + i -= size + if _, err := m.CoinOut.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + 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 *DepositOptions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DisableAutoswap { + n += 2 + } + return n +} + +func (m *MsgDeposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenA) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenB) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.AmountsA) > 0 { + for _, e := range m.AmountsA { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.AmountsB) > 0 { + for _, e := range m.AmountsB { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.TickIndexesAToB) > 0 { + l = 0 + for _, e := range m.TickIndexesAToB { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.Fees) > 0 { + l = 0 + for _, e := range m.Fees { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.Options) > 0 { + for _, e := range m.Options { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgDepositResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Reserve0Deposited) > 0 { + for _, e := range m.Reserve0Deposited { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.Reserve1Deposited) > 0 { + for _, e := range m.Reserve1Deposited { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgWithdrawal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenA) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenB) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.SharesToRemove) > 0 { + for _, e := range m.SharesToRemove { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.TickIndexesAToB) > 0 { + l = 0 + for _, e := range m.TickIndexesAToB { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.Fees) > 0 { + l = 0 + for _, e := range m.Fees { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + return n +} + +func (m *MsgWithdrawalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgPlaceLimitOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenIn) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TokenOut) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TickIndexInToOut != 0 { + n += 1 + sovTx(uint64(m.TickIndexInToOut)) + } + l = m.AmountIn.Size() + n += 1 + l + sovTx(uint64(l)) + if m.OrderType != 0 { + n += 1 + sovTx(uint64(m.OrderType)) + } + if m.ExpirationTime != nil { + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ExpirationTime) + n += 1 + l + sovTx(uint64(l)) + } + if m.MaxAmountOut != nil { + l = m.MaxAmountOut.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgPlaceLimitOrderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CoinIn.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.TakerCoinOut.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgWithdrawFilledLimitOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgWithdrawFilledLimitOrderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCancelLimitOrder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TrancheKey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCancelLimitOrderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MultiHopRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Hops) > 0 { + for _, s := range m.Hops { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgMultiHopSwap) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = m.AmountIn.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.ExitLimitPrice.Size() + n += 1 + l + sovTx(uint64(l)) + if m.PickBestRoute { + n += 2 + } + return n +} + +func (m *MsgMultiHopSwapResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CoinOut.Size() + n += 1 + l + sovTx(uint64(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 *DepositOptions) 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: DepositOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableAutoswap", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DisableAutoswap = bool(v != 0) + 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 *MsgDeposit) 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: MsgDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenA", 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.TokenA = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenB", 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.TokenB = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountsA", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.AmountsA = append(m.AmountsA, v) + if err := m.AmountsA[len(m.AmountsA)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountsB", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.AmountsB = append(m.AmountsB, v) + if err := m.AmountsB[len(m.AmountsB)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TickIndexesAToB = append(m.TickIndexesAToB, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.TickIndexesAToB) == 0 { + m.TickIndexesAToB = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TickIndexesAToB = append(m.TickIndexesAToB, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexesAToB", wireType) + } + case 8: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Fees = append(m.Fees, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Fees) == 0 { + m.Fees = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Fees = append(m.Fees, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Fees", wireType) + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", 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 + } + m.Options = append(m.Options, &DepositOptions{}) + if err := m.Options[len(m.Options)-1].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 *MsgDepositResponse) 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: MsgDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserve0Deposited", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.Reserve0Deposited = append(m.Reserve0Deposited, v) + if err := m.Reserve0Deposited[len(m.Reserve0Deposited)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserve1Deposited", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.Reserve1Deposited = append(m.Reserve1Deposited, v) + if err := m.Reserve1Deposited[len(m.Reserve1Deposited)-1].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 *MsgWithdrawal) 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: MsgWithdrawal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenA", 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.TokenA = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenB", 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.TokenB = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesToRemove", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.SharesToRemove = append(m.SharesToRemove, v) + if err := m.SharesToRemove[len(m.SharesToRemove)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TickIndexesAToB = append(m.TickIndexesAToB, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.TickIndexesAToB) == 0 { + m.TickIndexesAToB = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TickIndexesAToB = append(m.TickIndexesAToB, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexesAToB", wireType) + } + case 7: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Fees = append(m.Fees, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Fees) == 0 { + m.Fees = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Fees = append(m.Fees, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Fees", wireType) + } + 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 *MsgWithdrawalResponse) 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: MsgWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawalResponse: 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 (m *MsgPlaceLimitOrder) 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: MsgPlaceLimitOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgPlaceLimitOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIn", 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.TokenIn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOut", 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.TokenOut = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TickIndexInToOut", wireType) + } + m.TickIndexInToOut = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TickIndexInToOut |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountIn", 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 + } + if err := m.AmountIn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderType", wireType) + } + m.OrderType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OrderType |= LimitOrderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", 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 m.ExpirationTime == nil { + m.ExpirationTime = new(time.Time) + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAmountOut", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Int + m.MaxAmountOut = &v + if err := m.MaxAmountOut.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 *MsgPlaceLimitOrderResponse) 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: MsgPlaceLimitOrderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgPlaceLimitOrderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", 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.TrancheKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinIn", 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.CoinIn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TakerCoinOut", 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.TakerCoinOut.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 *MsgWithdrawFilledLimitOrder) 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: MsgWithdrawFilledLimitOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawFilledLimitOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", 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.TrancheKey = string(dAtA[iNdEx:postIndex]) + 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 *MsgWithdrawFilledLimitOrderResponse) 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: MsgWithdrawFilledLimitOrderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawFilledLimitOrderResponse: 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 (m *MsgCancelLimitOrder) 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: MsgCancelLimitOrder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCancelLimitOrder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrancheKey", 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.TrancheKey = string(dAtA[iNdEx:postIndex]) + 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 *MsgCancelLimitOrderResponse) 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: MsgCancelLimitOrderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCancelLimitOrderResponse: 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 (m *MultiHopRoute) 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: MultiHopRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MultiHopRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hops", 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.Hops = append(m.Hops, string(dAtA[iNdEx:postIndex])) + 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 *MsgMultiHopSwap) 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: MsgMultiHopSwap: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMultiHopSwap: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", 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 + } + m.Routes = append(m.Routes, &MultiHopRoute{}) + if err := m.Routes[len(m.Routes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountIn", 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 + } + if err := m.AmountIn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitLimitPrice", 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 + } + if err := m.ExitLimitPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PickBestRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PickBestRoute = bool(v != 0) + 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 *MsgMultiHopSwapResponse) 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: MsgMultiHopSwapResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgMultiHopSwapResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinOut", 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.CoinOut.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 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/dex/types/types.go b/x/dex/types/types.go new file mode 100644 index 000000000..ab1254f4c --- /dev/null +++ b/x/dex/types/types.go @@ -0,0 +1 @@ +package types diff --git a/x/dex/utils/abci.go b/x/dex/utils/abci.go new file mode 100644 index 000000000..ec96f9534 --- /dev/null +++ b/x/dex/utils/abci.go @@ -0,0 +1,28 @@ +package utils + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func GetBlockGasUsed(ctx sdk.Context) (gasUsed uint64, err error) { + switch { + case ctx.BlockGasMeter() != nil: + return ctx.BlockGasMeter().GasConsumed(), nil + case ctx.IsCheckTx(): + // If we are checking a TX or this is a simulation we can return whatever + return 0, nil + default: + // Otherwise, BlockGasMeter should probably be initialized + return 0, sdkerrors.Wrap(sdkerrors.ErrAppConfig, "Block Gas Meter is not initialized") + } +} + +func MustGetBlockGasUsed(ctx sdk.Context) uint64 { + gasUsed, err := GetBlockGasUsed(ctx) + if err != nil { + panic(err) + } + + return gasUsed +} diff --git a/x/dex/utils/errors.go b/x/dex/utils/errors.go new file mode 100644 index 000000000..e46b0eb5f --- /dev/null +++ b/x/dex/utils/errors.go @@ -0,0 +1,15 @@ +package utils + +import ( + "fmt" +) + +func JoinErrors(parentError error, errs ...error) error { + // TODO: switch to errors.Join when we bump to golang 1.20 + fullError := fmt.Errorf("errors: %w", parentError) + for _, err := range errs { + fullError = fmt.Errorf("%w", err) + } + + return fullError +} diff --git a/x/dex/utils/math.go b/x/dex/utils/math.go new file mode 100644 index 000000000..6fe67f632 --- /dev/null +++ b/x/dex/utils/math.go @@ -0,0 +1,67 @@ +package utils + +import ( + "fmt" + "math" + "strconv" + + sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" +) + +// Return the base value for price, 1.0001 +func BasePrice() math_utils.PrecDec { + return math_utils.MustNewPrecDecFromStr("1.0001") +} + +func Abs(x int64) uint64 { + if x < 0 { + return uint64(-x) + } + + return uint64(x) +} + +func MinIntArr(vals []sdk.Int) sdk.Int { + min := vals[0] + for _, val := range vals { + if val.LT(min) { + min = val + } + } + + return min +} + +func MaxIntArr(vals []sdk.Int) sdk.Int { + max := vals[0] + for _, val := range vals { + if val.GT(max) { + max = val + } + } + + return max +} + +func Uint64ToSortableString(i uint64) string { + // Converts a Uint to a string that sorts lexogrpahically in integer order + intStr := strconv.FormatUint(i, 36) + lenStr := len(intStr) + lenChar := strconv.FormatUint(uint64(lenStr), 36) + + return fmt.Sprintf("%s%s", lenChar, intStr) +} + +func SafeUint64ToInt64(in uint64) (out int64, overflow bool) { + return int64(in), in > math.MaxInt64 +} + +func MustSafeUint64ToInt64(in uint64) (out int64) { + safeInt64, overflow := SafeUint64ToInt64(in) + if overflow { + panic("Overflow while casting uint64 to int64") + } + + return safeInt64 +} diff --git a/x/epochs/README.md b/x/epochs/README.md new file mode 100644 index 000000000..ae92f0529 --- /dev/null +++ b/x/epochs/README.md @@ -0,0 +1,187 @@ +# Epochs + +## Abstract + +Often in the SDK, we would like to run certain code every-so often. The +purpose of `epochs` module is to allow other modules to set that they +would like to be signaled once every period. So another module can +specify it wants to execute code once a week, starting at UTC-time = x. +`epochs` creates a generalized epoch interface to other modules so that +they can easily be signalled upon such events. + +## Contents + +1. **[Concept](#concepts)** +2. **[State](#state)** +3. **[Events](#events)** +4. **[Keeper](#keepers)** +5. **[Hooks](#hooks)** +6. **[Queries](#queries)** + +## Concepts + +The epochs module defines on-chain timers, that execute at fixed time intervals. +Other SDK modules can then register logic to be executed at the timer ticks. +We refer to the period in between two timer ticks as an "epoch". + +Every timer has a unique identifier. +Every epoch will have a start time, and an end time, where `end time = start time + timer interval`. +On Duality mainnet, we only utilize one identifier, with a time interval of `one day`. + +The timer will tick at the first block whose blocktime is greater than the timer end time, +and set the start as the prior timer end time. (Notably, its not set to the block time!) +This means that if the chain has been down for awhile, you will get one timer tick per block, +until the timer has caught up. + +## State + +The Epochs module keeps a single [`EpochInfo`](https://github.com/osmosis-labs/osmosis/blob/b4befe4f3eb97ebb477323234b910c4afafab9b7/proto/osmosis/epochs/genesis.proto#L12) per identifier. +This contains the current state of the timer with the corresponding identifier. +Its fields are modified at every timer tick. +EpochInfos are initialized as part of genesis initialization or upgrade logic, +and are only modified on begin blockers. + +## Events + +The `epochs` module emits the following events: + +### BeginBlocker + +| Type | Attribute Key | Attribute Value | +| ----------- | ------------- | --------------- | +| epoch_start | epoch_number | {epoch_number} | +| epoch_start | start_time | {start_time} | + +### EndBlocker + +| Type | Attribute Key | Attribute Value | +| --------- | ------------- | --------------- | +| epoch_end | epoch_number | {epoch_number} | + +## Keepers + +### Keeper functions + +Epochs keeper module provides utility functions to manage epochs. + +```go +// Keeper is the interface for lockup module keeper +type Keeper interface { + // GetEpochInfo returns epoch info by identifier + GetEpochInfo(ctx sdk.Context, identifier string) types.EpochInfo + // SetEpochInfo set epoch info + SetEpochInfo(ctx sdk.Context, epoch types.EpochInfo) + // DeleteEpochInfo delete epoch info + DeleteEpochInfo(ctx sdk.Context, identifier string) + // IterateEpochInfo iterate through epochs + IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) + // Get all epoch infos + AllEpochInfos(ctx sdk.Context) []types.EpochInfo +} +``` + +## Hooks + +```go + // the first block whose timestamp is after the duration is counted as the end of the epoch + AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) + // new epoch is next block of epoch end block + BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) +``` + +### How modules receive hooks + +On hook receiver function of other modules, they need to filter +`epochIdentifier` and only do executions for only specific +epochIdentifier. Filtering epochIdentifier could be in `Params` of other +modules so that they can be modified by governance. + +This is the standard dev UX of this: + +```golang +func (k MyModuleKeeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) { + params := k.GetParams(ctx) + if epochIdentifier == params.DistrEpochIdentifier { + // my logic + } +} +``` + +### Panic isolation + +If a given epoch hook panics, its state update is reverted, but we keep +proceeding through the remaining hooks. This allows more advanced epoch +logic to be used, without concern over state machine halting, or halting +subsequent modules. + +This does mean that if there is behavior you expect from a prior epoch +hook, and that epoch hook reverted, your hook may also have an issue. So +do keep in mind "what if a prior hook didn't get executed" in the safety +checks you consider for a new epoch hook. + +## Queries + +Epochs module is providing below queries to check the module's state. + +```protobuf +service Query { + // EpochInfos provide running epochInfos + rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) {} + // CurrentEpoch provide current epoch of specified identifier + rpc CurrentEpoch(QueryCurrentEpochRequest) returns (QueryCurrentEpochResponse) {} +} +``` + +### Epoch Infos + +Query the currently running epochInfos + +```sh +dualityd query epochs epoch-infos +``` + +::: details Example + +An example output: + +```sh +epochs: +- current_epoch: "183" + current_epoch_start_height: "2438409" + current_epoch_start_time: "2021-12-18T17:16:09.898160996Z" + duration: 86400s + epoch_counting_started: true + identifier: day + start_time: "2021-06-18T17:00:00Z" +- current_epoch: "26" + current_epoch_start_height: "2424854" + current_epoch_start_time: "2021-12-17T17:02:07.229632445Z" + duration: 604800s + epoch_counting_started: true + identifier: week + start_time: "2021-06-18T17:00:00Z" +``` + +::: + +### Current Epoch + +Query the current epoch by the specified identifier + +```sh +dualityd query epochs current-epoch [identifier] +``` + +::: details Example + +Query the current `day` epoch: + +```sh +dualityd query epochs current-epoch day +``` + +Which in this example outputs: + +```sh +current_epoch: "183" +``` diff --git a/x/epochs/client/cli/cli_test.go b/x/epochs/client/cli/cli_test.go new file mode 100644 index 000000000..b8406fa5d --- /dev/null +++ b/x/epochs/client/cli/cli_test.go @@ -0,0 +1,33 @@ +package cli_test + +import ( + "testing" + + "github.com/neutron-org/neutron/utils/dcli" + "github.com/neutron-org/neutron/x/epochs/client/cli" + "github.com/neutron-org/neutron/x/epochs/types" +) + +func TestGetCmdCurrentEpoch(t *testing.T) { + desc, _ := cli.GetCmdCurrentEpoch() + tcs := map[string]dcli.QueryCliTestCase[*types.QueryCurrentEpochRequest]{ + "basic test": { + Cmd: "day", + ExpectedQuery: &types.QueryCurrentEpochRequest{ + Identifier: "day", + }, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdEpochsInfo(t *testing.T) { + desc, _ := cli.GetCmdEpochInfos() + tcs := map[string]dcli.QueryCliTestCase[*types.QueryEpochsInfoRequest]{ + "basic test": { + Cmd: "", + ExpectedQuery: &types.QueryEpochsInfoRequest{}, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} diff --git a/x/epochs/client/cli/query.go b/x/epochs/client/cli/query.go new file mode 100644 index 000000000..e9bcf2238 --- /dev/null +++ b/x/epochs/client/cli/query.go @@ -0,0 +1,36 @@ +package cli + +import ( + "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/utils/dcli" + "github.com/neutron-org/neutron/x/epochs/types" +) + +// GetQueryCmd returns the cli query commands for this module. +func GetQueryCmd() *cobra.Command { + cmd := dcli.QueryIndexCmd(types.ModuleName) + dcli.AddQueryCmd(cmd, types.NewQueryClient, GetCmdEpochInfos) + dcli.AddQueryCmd(cmd, types.NewQueryClient, GetCmdCurrentEpoch) + + return cmd +} + +func GetCmdEpochInfos() (*dcli.QueryDescriptor, *types.QueryEpochsInfoRequest) { + return &dcli.QueryDescriptor{ + Use: "epoch-infos", + Short: "Query running epoch infos.", + Long: `{{.Short}}{{.ExampleHeader}} +{{.CommandPrefix}}`, + QueryFnName: "EpochInfos", + }, &types.QueryEpochsInfoRequest{} +} + +func GetCmdCurrentEpoch() (*dcli.QueryDescriptor, *types.QueryCurrentEpochRequest) { + return &dcli.QueryDescriptor{ + Use: "current-epoch", + Short: "Query current epoch by specified identifier.", + Long: `{{.Short}}{{.ExampleHeader}} +{{.CommandPrefix}} day`, + }, &types.QueryCurrentEpochRequest{} +} diff --git a/x/epochs/keeper/abci.go b/x/epochs/keeper/abci.go new file mode 100644 index 000000000..c8eedc570 --- /dev/null +++ b/x/epochs/keeper/abci.go @@ -0,0 +1,81 @@ +package keeper + +import ( + "fmt" + "time" + + "github.com/neutron-org/neutron/x/epochs/types" + + "github.com/cosmos/cosmos-sdk/telemetry" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// BeginBlocker of epochs module. +func (k Keeper) BeginBlocker(ctx sdk.Context) { + defer telemetry.ModuleMeasureSince( + types.ModuleName, + time.Now(), + telemetry.MetricKeyBeginBlocker, + ) + k.IterateEpochInfo(ctx, func(index int64, epochInfo types.EpochInfo) (stop bool) { + logger := k.Logger(ctx) + + // If blocktime < initial epoch start time, return + if ctx.BlockTime().Before(epochInfo.StartTime) { + return + } + // if epoch counting hasn't started, signal we need to start. + shouldInitialEpochStart := !epochInfo.EpochCountingStarted + + epochEndTime := epochInfo.CurrentEpochStartTime.Add(epochInfo.Duration) + shouldEpochStart := (ctx.BlockTime().After(epochEndTime)) || shouldInitialEpochStart + + if !shouldEpochStart { + return false + } + epochInfo.CurrentEpochStartHeight = ctx.BlockHeight() + + if shouldInitialEpochStart { + epochInfo.EpochCountingStarted = true + epochInfo.CurrentEpoch = 1 + epochInfo.CurrentEpochStartTime = epochInfo.StartTime + logger.Info( + "Starting epoch", + "Identifier", + epochInfo.Identifier, + "CurEpoch", + epochInfo.CurrentEpoch, + ) + } else { + ctx.EventManager().EmitEvent( + sdk.NewEvent( + types.EventTypeEpochEnd, + sdk.NewAttribute(types.AttributeEpochNumber, fmt.Sprintf("%d", epochInfo.CurrentEpoch)), + ), + ) + k.AfterEpochEnd(ctx, epochInfo.Identifier, epochInfo.CurrentEpoch) + epochInfo.CurrentEpoch++ + epochInfo.CurrentEpochStartTime = epochInfo.CurrentEpochStartTime.Add(epochInfo.Duration) + logger.Info("Starting epoch", "Identifier", epochInfo.Identifier, "CurEpoch", epochInfo.CurrentEpoch) + } + + // emit new epoch start event, set epoch info, and run BeforeEpochStart hook + ctx.EventManager().EmitEvent( + sdk.NewEvent( + types.EventTypeEpochStart, + sdk.NewAttribute( + types.AttributeEpochNumber, + fmt.Sprintf("%d", epochInfo.CurrentEpoch), + ), + sdk.NewAttribute( + types.AttributeEpochStartTime, + fmt.Sprintf("%d", epochInfo.CurrentEpochStartTime.Unix()), + ), + ), + ) + k.setEpochInfo(ctx, epochInfo) + k.BeforeEpochStart(ctx, epochInfo.Identifier, epochInfo.CurrentEpoch) + + return false + }) +} diff --git a/x/epochs/keeper/abci_test.go b/x/epochs/keeper/abci_test.go new file mode 100644 index 000000000..44304ae11 --- /dev/null +++ b/x/epochs/keeper/abci_test.go @@ -0,0 +1,300 @@ +package keeper_test + +import ( + "testing" + "time" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/stretchr/testify/require" + + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/x/epochs/types" + + "golang.org/x/exp/maps" + + "github.com/neutron-org/neutron/utils" +) + +// This test is responsible for testing how epochs increment based off +// of their initial conditions, and subsequent block height / times. +func (suite KeeperTestSuite) TestEpochInfoBeginBlockChanges() { + block1Time := time.Unix(1656907200, 0).UTC() + const defaultIdentifier = "hourly" + const defaultDuration = time.Hour + // eps is short for epsilon - in this case a negligible amount of time. + const eps = time.Nanosecond + + tests := map[string]struct { + // if identifier, duration is not set, we make it defaultIdentifier and defaultDuration. + // EpochCountingStarted, if unspecified, is inferred by CurrentEpoch == 0 + // StartTime is inferred to be block1Time if left blank. + initialEpochInfo types.EpochInfo + blockHeightTimePairs map[int]time.Time + expEpochInfo types.EpochInfo + }{ + "First block running at exactly start time sets epoch tick": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 1, + CurrentEpochStartTime: block1Time, + CurrentEpochStartHeight: 1, + }, + }, + "First block run sets start time, subsequent blocks within timer interval do not cause timer tick": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + blockHeightTimePairs: map[int]time.Time{ + 2: block1Time.Add(time.Second), + 3: block1Time.Add(time.Minute), + 4: block1Time.Add(30 * time.Minute), + }, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 1, + CurrentEpochStartTime: block1Time, + CurrentEpochStartHeight: 1, + }, + }, + "Second block at exactly timer interval later does not tick": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + blockHeightTimePairs: map[int]time.Time{2: block1Time.Add(defaultDuration)}, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 1, + CurrentEpochStartTime: block1Time, + CurrentEpochStartHeight: 1, + }, + }, + "Second block at timer interval + epsilon later does tick": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + blockHeightTimePairs: map[int]time.Time{2: block1Time.Add(defaultDuration).Add(eps)}, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 2, + CurrentEpochStartTime: block1Time.Add(time.Hour), + CurrentEpochStartHeight: 2, + }, + }, + "Downtime recovery (many intervals), first block causes 1 tick and sets current start time 1 interval ahead": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + blockHeightTimePairs: map[int]time.Time{2: block1Time.Add(24 * time.Hour)}, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 2, + CurrentEpochStartTime: block1Time.Add(time.Hour), + CurrentEpochStartHeight: 2, + }, + }, + "Downtime recovery (many intervals), second block is at tick 2, w/ start time 2 intervals ahead": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + blockHeightTimePairs: map[int]time.Time{ + 2: block1Time.Add(24 * time.Hour), + 3: block1Time.Add(24 * time.Hour).Add(eps), + }, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 3, + CurrentEpochStartTime: block1Time.Add(2 * time.Hour), + CurrentEpochStartHeight: 3, + }, + }, + "Many blocks between first and second tick": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 1, + CurrentEpochStartTime: block1Time, + }, + blockHeightTimePairs: map[int]time.Time{ + 2: block1Time.Add(time.Second), + 3: block1Time.Add(2 * time.Second), + 4: block1Time.Add(time.Hour).Add(eps), + }, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time, + CurrentEpoch: 2, + CurrentEpochStartTime: block1Time.Add(time.Hour), + CurrentEpochStartHeight: 4, + }, + }, + "Distinct identifier and duration still works": { + initialEpochInfo: types.EpochInfo{ + Identifier: "hello", + Duration: time.Minute, + StartTime: block1Time, + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + blockHeightTimePairs: map[int]time.Time{ + 2: block1Time.Add(time.Second), + 3: block1Time.Add(time.Minute).Add(eps), + }, + expEpochInfo: types.EpochInfo{ + Identifier: "hello", + Duration: time.Minute, + StartTime: block1Time, + CurrentEpoch: 2, + CurrentEpochStartTime: block1Time.Add(time.Minute), + CurrentEpochStartHeight: 3, + }, + }, + "StartTime in future won't get ticked on first block": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time.Add(time.Second), + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + // currentEpochStartHeight is 1 because thats when the timer was created on-chain + expEpochInfo: types.EpochInfo{ + StartTime: block1Time.Add(time.Second), + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + CurrentEpochStartHeight: 1, + }, + }, + "StartTime in past will get ticked on first block": { + initialEpochInfo: types.EpochInfo{ + StartTime: block1Time.Add(-time.Second), + CurrentEpoch: 0, + CurrentEpochStartTime: time.Time{}, + }, + expEpochInfo: types.EpochInfo{ + StartTime: block1Time.Add(-time.Second), + CurrentEpoch: 1, + CurrentEpochStartTime: block1Time.Add(-time.Second), + CurrentEpochStartHeight: 1, + }, + }, + } + for name, test := range tests { + suite.Run(name, func() { + suite.SetupTest() + suite.Ctx = suite.Ctx.WithBlockHeight(1).WithBlockTime(block1Time) + initialEpoch := initializeBlankEpochInfoFields( + test.initialEpochInfo, + defaultIdentifier, + defaultDuration, + ) + suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, initialEpoch) + suite.App.EpochsKeeper.BeginBlocker(suite.Ctx) + + // get sorted heights + heights := maps.Keys(test.blockHeightTimePairs) + utils.SortSlice(heights) + for _, h := range heights { + // for each height in order, run begin block + suite.Ctx = suite.Ctx.WithBlockHeight(int64(h)). + WithBlockTime(test.blockHeightTimePairs[h]) + suite.App.EpochsKeeper.BeginBlocker(suite.Ctx) + } + expEpoch := initializeBlankEpochInfoFields( + test.expEpochInfo, + initialEpoch.Identifier, + initialEpoch.Duration, + ) + actEpoch := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, initialEpoch.Identifier) + suite.Require().Equal(expEpoch, actEpoch) + }) + } +} + +// initializeBlankEpochInfoFields set identifier, duration and epochCountingStarted if blank in epoch +func initializeBlankEpochInfoFields( + epoch types.EpochInfo, + identifier string, + duration time.Duration, +) types.EpochInfo { + if epoch.Identifier == "" { + epoch.Identifier = identifier + } + if epoch.Duration == time.Duration(0) { + epoch.Duration = duration + } + epoch.EpochCountingStarted = (epoch.CurrentEpoch != 0) + + return epoch +} + +func TestEpochStartingOneMonthAfterInitGenesis(t *testing.T) { + app := app.Setup(t, false) + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + + // On init genesis, default epochs information is set + // To check init genesis again, should make it fresh status + epochInfos := app.EpochsKeeper.AllEpochInfos(ctx) + for _, epochInfo := range epochInfos { + app.EpochsKeeper.DeleteEpochInfo(ctx, epochInfo.Identifier) + } + + now := time.Now() + week := time.Hour * 24 * 7 + month := time.Hour * 24 * 30 + initialBlockHeight := int64(1) + ctx = ctx.WithBlockHeight(initialBlockHeight).WithBlockTime(now) + + app.EpochsKeeper.InitGenesis(ctx, types.GenesisState{ + Epochs: []types.EpochInfo{ + { + Identifier: "monthly", + StartTime: now.Add(month), + Duration: time.Hour * 24 * 30, + CurrentEpoch: 0, + CurrentEpochStartHeight: ctx.BlockHeight(), + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: false, + }, + }, + }) + + // epoch not started yet + epochInfo := app.EpochsKeeper.GetEpochInfo(ctx, "monthly") + require.Equal(t, epochInfo.CurrentEpoch, int64(0)) + require.Equal(t, epochInfo.CurrentEpochStartHeight, initialBlockHeight) + require.Equal(t, epochInfo.CurrentEpochStartTime, time.Time{}) + require.Equal(t, epochInfo.EpochCountingStarted, false) + + // after 1 week + ctx = ctx.WithBlockHeight(2).WithBlockTime(now.Add(week)) + app.EpochsKeeper.BeginBlocker(ctx) + + // epoch not started yet + epochInfo = app.EpochsKeeper.GetEpochInfo(ctx, "monthly") + require.Equal(t, epochInfo.CurrentEpoch, int64(0)) + require.Equal(t, epochInfo.CurrentEpochStartHeight, initialBlockHeight) + require.Equal(t, epochInfo.CurrentEpochStartTime, time.Time{}) + require.Equal(t, epochInfo.EpochCountingStarted, false) + + // after 1 month + ctx = ctx.WithBlockHeight(3).WithBlockTime(now.Add(month)) + app.EpochsKeeper.BeginBlocker(ctx) + + // epoch started + epochInfo = app.EpochsKeeper.GetEpochInfo(ctx, "monthly") + require.Equal(t, epochInfo.CurrentEpoch, int64(1)) + require.Equal(t, epochInfo.CurrentEpochStartHeight, ctx.BlockHeight()) + require.Equal(t, epochInfo.CurrentEpochStartTime.UTC().String(), now.Add(month).UTC().String()) + require.Equal(t, epochInfo.EpochCountingStarted, true) +} diff --git a/x/epochs/keeper/epoch.go b/x/epochs/keeper/epoch.go new file mode 100644 index 000000000..6bd2a3f43 --- /dev/null +++ b/x/epochs/keeper/epoch.go @@ -0,0 +1,114 @@ +package keeper + +import ( + "fmt" + "time" + + "github.com/cosmos/gogoproto/proto" + + "github.com/neutron-org/neutron/x/epochs/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// GetEpochInfo returns epoch info by identifier. +func (k Keeper) GetEpochInfo(ctx sdk.Context, identifier string) types.EpochInfo { + epoch := types.EpochInfo{} + store := ctx.KVStore(k.storeKey) + b := store.Get(append(types.KeyPrefixEpoch, []byte(identifier)...)) + if b == nil { + return epoch + } + err := proto.Unmarshal(b, &epoch) + if err != nil { + panic(err) + } + + return epoch +} + +// AddEpochInfo adds a new epoch info. Will return an error if the epoch fails validation, +// or re-uses an existing identifier. +// This method also sets the start time if left unset, and sets the epoch start height. +func (k Keeper) AddEpochInfo(ctx sdk.Context, epoch types.EpochInfo) error { + if err := epoch.Validate(); err != nil { + return err + } + // Check if identifier already exists + if (k.GetEpochInfo(ctx, epoch.Identifier) != types.EpochInfo{}) { + return fmt.Errorf("epoch with identifier %s already exists", epoch.Identifier) + } + + // Initialize empty and default epoch values + if epoch.StartTime.Equal(time.Time{}) { + epoch.StartTime = ctx.BlockTime() + } + epoch.CurrentEpochStartHeight = ctx.BlockHeight() + k.setEpochInfo(ctx, epoch) + + return nil +} + +// setEpochInfo set epoch info. +func (k Keeper) setEpochInfo(ctx sdk.Context, epoch types.EpochInfo) { + store := ctx.KVStore(k.storeKey) + value, err := proto.Marshal(&epoch) + if err != nil { + panic(err) + } + store.Set(append(types.KeyPrefixEpoch, []byte(epoch.Identifier)...), value) +} + +// DeleteEpochInfo delete epoch info. +func (k Keeper) DeleteEpochInfo(ctx sdk.Context, identifier string) { + store := ctx.KVStore(k.storeKey) + store.Delete(append(types.KeyPrefixEpoch, []byte(identifier)...)) +} + +// IterateEpochInfo iterate through epochs. +func (k Keeper) IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) { + store := ctx.KVStore(k.storeKey) + + iterator := sdk.KVStorePrefixIterator(store, types.KeyPrefixEpoch) + defer iterator.Close() + + i := int64(0) + + for ; iterator.Valid(); iterator.Next() { + epoch := types.EpochInfo{} + err := proto.Unmarshal(iterator.Value(), &epoch) + if err != nil { + panic(err) + } + stop := fn(i, epoch) + + if stop { + break + } + i++ + } +} + +// AllEpochInfos iterate through epochs to return all epochs info. +func (k Keeper) AllEpochInfos(ctx sdk.Context) []types.EpochInfo { + epochs := []types.EpochInfo{} + k.IterateEpochInfo(ctx, func(index int64, epochInfo types.EpochInfo) (stop bool) { + epochs = append(epochs, epochInfo) + return false + }) + + return epochs +} + +// NumBlocksSinceEpochStart returns the number of blocks since the epoch started. +// if the epoch started on block N, then calling this during block N (after BeforeEpochStart) +// would return 0. +// Calling it any point in block N+1 (assuming the epoch doesn't increment) would return 1. +func (k Keeper) NumBlocksSinceEpochStart(ctx sdk.Context, identifier string) (int64, error) { + epoch := k.GetEpochInfo(ctx, identifier) + if (epoch == types.EpochInfo{}) { + return 0, fmt.Errorf("epoch with identifier %s not found", identifier) + } + + return ctx.BlockHeight() - epoch.CurrentEpochStartHeight, nil +} diff --git a/x/epochs/keeper/epoch_test.go b/x/epochs/keeper/epoch_test.go new file mode 100644 index 000000000..536ea9392 --- /dev/null +++ b/x/epochs/keeper/epoch_test.go @@ -0,0 +1,97 @@ +package keeper_test + +import ( + "time" + + "github.com/neutron-org/neutron/x/epochs/types" +) + +func (suite *KeeperTestSuite) TestAddEpochInfo() { + defaultIdentifier := "default_add_epoch_info_id" + defaultDuration := time.Hour + startBlockHeight := int64(100) + startBlockTime := time.Unix(1656907200, 0).UTC() + tests := map[string]struct { + addedEpochInfo types.EpochInfo + expErr bool + expEpochInfo types.EpochInfo + }{ + "simple_add": { + addedEpochInfo: types.EpochInfo{ + Identifier: defaultIdentifier, + StartTime: time.Time{}, + Duration: defaultDuration, + CurrentEpoch: 0, + CurrentEpochStartHeight: 0, + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: false, + }, + expErr: false, + expEpochInfo: types.EpochInfo{ + Identifier: defaultIdentifier, + StartTime: startBlockTime, + Duration: defaultDuration, + CurrentEpoch: 0, + CurrentEpochStartHeight: startBlockHeight, + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: false, + }, + }, + "zero_duration": { + addedEpochInfo: types.EpochInfo{ + Identifier: defaultIdentifier, + StartTime: time.Time{}, + Duration: time.Duration(0), + CurrentEpoch: 0, + CurrentEpochStartHeight: 0, + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: false, + }, + expErr: true, + }, + } + for name, test := range tests { + suite.Run(name, func() { + suite.SetupTest() + suite.Ctx = suite.Ctx.WithBlockHeight(startBlockHeight).WithBlockTime(startBlockTime) + err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, test.addedEpochInfo) + if !test.expErr { + suite.Require().NoError(err) + actualEpochInfo := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, test.addedEpochInfo.Identifier) + suite.Require().Equal(test.expEpochInfo, actualEpochInfo) + } else { + suite.Require().Error(err) + } + }) + } +} + +func (suite *KeeperTestSuite) TestDuplicateAddEpochInfo() { + identifier := "duplicate_add_epoch_info" + epochInfo := types.NewGenesisEpochInfo(identifier, time.Hour*24*30) + err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) + suite.Require().NoError(err) + err = suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) + suite.Require().Error(err) +} + +func (suite *KeeperTestSuite) TestEpochLifeCycle() { + suite.SetupTest() + + epochInfo := types.NewGenesisEpochInfo("monthly", time.Hour*24*30) + suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) + epochInfoSaved := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, "monthly") + + // setup expected epoch info + expectedEpochInfo := epochInfo + expectedEpochInfo.StartTime = suite.Ctx.BlockTime() + expectedEpochInfo.CurrentEpochStartHeight = suite.Ctx.BlockHeight() + suite.Require().Equal(expectedEpochInfo, epochInfoSaved) + + allEpochs := suite.App.EpochsKeeper.AllEpochInfos(suite.Ctx) + suite.Require().Len(allEpochs, 4) + suite.Require().Equal(allEpochs[0].Identifier, "day") // alphabetical order + suite.Require().Equal(allEpochs[1].Identifier, "hour") + suite.Require().Equal(allEpochs[2].Identifier, "monthly") + suite.Require().Equal(allEpochs[3].Identifier, "week") +} diff --git a/x/epochs/keeper/genesis.go b/x/epochs/keeper/genesis.go new file mode 100644 index 000000000..00fd79188 --- /dev/null +++ b/x/epochs/keeper/genesis.go @@ -0,0 +1,24 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/neutron-org/neutron/x/epochs/types" +) + +// InitGenesis sets epoch info from genesis +func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { + for _, epoch := range genState.Epochs { + err := k.AddEpochInfo(ctx, epoch) + if err != nil { + panic(err) + } + } +} + +// ExportGenesis returns the capability module's exported genesis. +func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { + genesis := types.DefaultGenesis() + genesis.Epochs = k.AllEpochInfos(ctx) + return genesis +} diff --git a/x/epochs/keeper/genesis_test.go b/x/epochs/keeper/genesis_test.go new file mode 100644 index 000000000..574632ad3 --- /dev/null +++ b/x/epochs/keeper/genesis_test.go @@ -0,0 +1,96 @@ +package keeper_test + +import ( + "testing" + "time" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/stretchr/testify/require" + + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/x/epochs/types" +) + +func TestEpochsExportGenesis(t *testing.T) { + app := app.Setup(t, false) + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + + chainStartTime := ctx.BlockTime() + + genesis := app.EpochsKeeper.ExportGenesis(ctx) + require.Len(t, genesis.Epochs, 3) + + expectedEpochs := types.DefaultGenesis().Epochs + for i := 0; i < len(expectedEpochs); i++ { + expectedEpochs[i].CurrentEpochStartHeight = 2 + expectedEpochs[i].CurrentEpochStartTime = chainStartTime + expectedEpochs[i].EpochCountingStarted = true + expectedEpochs[i].CurrentEpoch = 1 + } + require.Equal(t, expectedEpochs, genesis.Epochs) +} + +func TestEpochsInitGenesis(t *testing.T) { + app := app.Setup(t, false) + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + + // On init genesis, default epochs information is set + // To check init genesis again, should make it fresh status + epochInfos := app.EpochsKeeper.AllEpochInfos(ctx) + for _, epochInfo := range epochInfos { + app.EpochsKeeper.DeleteEpochInfo(ctx, epochInfo.Identifier) + } + + now := time.Now() + ctx = ctx.WithBlockHeight(1) + ctx = ctx.WithBlockTime(now) + + // test genesisState validation + genesisState := types.GenesisState{ + Epochs: []types.EpochInfo{ + { + Identifier: "monthly", + StartTime: time.Time{}, + Duration: time.Hour * 24, + CurrentEpoch: 0, + CurrentEpochStartHeight: ctx.BlockHeight(), + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: true, + }, + { + Identifier: "monthly", + StartTime: time.Time{}, + Duration: time.Hour * 24, + CurrentEpoch: 0, + CurrentEpochStartHeight: ctx.BlockHeight(), + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: true, + }, + }, + } + require.EqualError(t, genesisState.Validate(), "epoch identifier should be unique") + + genesisState = types.GenesisState{ + Epochs: []types.EpochInfo{ + { + Identifier: "monthly", + StartTime: time.Time{}, + Duration: time.Hour * 24, + CurrentEpoch: 0, + CurrentEpochStartHeight: ctx.BlockHeight(), + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: true, + }, + }, + } + + app.EpochsKeeper.InitGenesis(ctx, genesisState) + epochInfo := app.EpochsKeeper.GetEpochInfo(ctx, "monthly") + require.Equal(t, epochInfo.Identifier, "monthly") + require.Equal(t, epochInfo.StartTime.UTC().String(), now.UTC().String()) + require.Equal(t, epochInfo.Duration, time.Hour*24) + require.Equal(t, epochInfo.CurrentEpoch, int64(0)) + require.Equal(t, epochInfo.CurrentEpochStartHeight, ctx.BlockHeight()) + require.Equal(t, epochInfo.CurrentEpochStartTime.UTC().String(), time.Time{}.String()) + require.Equal(t, epochInfo.EpochCountingStarted, true) +} diff --git a/x/epochs/keeper/grpc_query.go b/x/epochs/keeper/grpc_query.go new file mode 100644 index 000000000..283bf32ae --- /dev/null +++ b/x/epochs/keeper/grpc_query.go @@ -0,0 +1,60 @@ +package keeper + +import ( + "context" + "errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/x/epochs/types" +) + +var _ types.QueryServer = Querier{} + +// Querier defines a wrapper around the x/epochs keeper providing gRPC method +// handlers. +type Querier struct { + Keeper +} + +// NewQuerier initializes new querier. +func NewQuerier(k Keeper) Querier { + return Querier{Keeper: k} +} + +// EpochInfos provide running epochInfos. +func (q Querier) EpochInfos( + c context.Context, + _ *types.QueryEpochsInfoRequest, +) (*types.QueryEpochsInfoResponse, error) { + ctx := sdk.UnwrapSDKContext(c) + + return &types.QueryEpochsInfoResponse{ + Epochs: q.Keeper.AllEpochInfos(ctx), + }, nil +} + +// CurrentEpoch provides current epoch of specified identifier. +func (q Querier) CurrentEpoch(c context.Context, + req *types.QueryCurrentEpochRequest, +) (*types.QueryCurrentEpochResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + if req.Identifier == "" { + return nil, status.Error(codes.InvalidArgument, "identifier is empty") + } + + ctx := sdk.UnwrapSDKContext(c) + + info := q.Keeper.GetEpochInfo(ctx, req.Identifier) + if info.Identifier != req.Identifier { + return nil, errors.New("not available identifier") + } + + return &types.QueryCurrentEpochResponse{ + CurrentEpoch: info.CurrentEpoch, + }, nil +} diff --git a/x/epochs/keeper/grpc_query_test.go b/x/epochs/keeper/grpc_query_test.go new file mode 100644 index 000000000..20029a17e --- /dev/null +++ b/x/epochs/keeper/grpc_query_test.go @@ -0,0 +1,30 @@ +package keeper_test + +import ( + gocontext "context" + + "github.com/neutron-org/neutron/x/epochs/types" +) + +func (suite *KeeperTestSuite) TestQueryEpochInfos() { + suite.SetupTest() + queryClient := suite.queryClient + + // Check that querying epoch infos on default genesis returns the default genesis epoch infos + epochInfosResponse, err := queryClient.EpochInfos( + gocontext.Background(), + &types.QueryEpochsInfoRequest{}, + ) + suite.Require().NoError(err) + suite.Require().Len(epochInfosResponse.Epochs, 3) + + expectedEpochs := types.DefaultGenesis().Epochs + for id := range expectedEpochs { + expectedEpochs[id].StartTime = suite.Ctx.BlockTime() + expectedEpochs[id].CurrentEpochStartHeight = suite.Ctx.BlockHeight() + expectedEpochs[id].CurrentEpoch = 1 + expectedEpochs[id].EpochCountingStarted = true + } + + suite.Require().Equal(expectedEpochs, epochInfosResponse.Epochs) +} diff --git a/x/epochs/keeper/hooks.go b/x/epochs/keeper/hooks.go new file mode 100644 index 000000000..f1d36ff17 --- /dev/null +++ b/x/epochs/keeper/hooks.go @@ -0,0 +1,22 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// AfterEpochEnd gets called at the end of the epoch, +// end of epoch is the timestamp of first block produced after epoch duration. +func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string, epochNumber int64) { + // Error is not handled as AfterEpochEnd Hooks use utils.ApplyFuncIfNoError() + if k.hooks != nil { + _ = k.hooks.AfterEpochEnd(ctx, identifier, epochNumber) + } +} + +// BeforeEpochStart new epoch is next block of epoch end block +func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string, epochNumber int64) { + // Error is not handled as BeforeEpochStart Hooks use utils.ApplyFuncIfNoError() + if k.hooks != nil { + _ = k.hooks.BeforeEpochStart(ctx, identifier, epochNumber) + } +} diff --git a/x/epochs/keeper/keeper.go b/x/epochs/keeper/keeper.go new file mode 100644 index 000000000..583d4f598 --- /dev/null +++ b/x/epochs/keeper/keeper.go @@ -0,0 +1,41 @@ +package keeper + +import ( + "fmt" + + "github.com/cometbft/cometbft/libs/log" + + "github.com/neutron-org/neutron/x/epochs/types" + + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type ( + Keeper struct { + storeKey storetypes.StoreKey + hooks types.EpochHooks + } +) + +// NewKeeper returns a new keeper by codec and storeKey inputs. +func NewKeeper(storeKey storetypes.StoreKey) *Keeper { + return &Keeper{ + storeKey: storeKey, + } +} + +// Set the gamm hooks. +func (k *Keeper) SetHooks(eh types.EpochHooks) *Keeper { + if k.hooks != nil { + panic("cannot set epochs hooks twice") + } + + k.hooks = eh + + return k +} + +func (k Keeper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) +} diff --git a/x/epochs/keeper/keeper_test.go b/x/epochs/keeper/keeper_test.go new file mode 100644 index 000000000..988287c5b --- /dev/null +++ b/x/epochs/keeper/keeper_test.go @@ -0,0 +1,24 @@ +package keeper_test + +import ( + "testing" + + "github.com/stretchr/testify/suite" + + "github.com/neutron-org/neutron/testutil/apptesting" + "github.com/neutron-org/neutron/x/epochs/types" +) + +type KeeperTestSuite struct { + apptesting.KeeperTestHelper + queryClient types.QueryClient +} + +func (suite *KeeperTestSuite) SetupTest() { + suite.Setup() + suite.queryClient = types.NewQueryClient(suite.QueryHelper) +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} diff --git a/x/epochs/module.go b/x/epochs/module.go new file mode 100644 index 000000000..c6a4f8b4f --- /dev/null +++ b/x/epochs/module.go @@ -0,0 +1,173 @@ +/* +Often in the SDK, we would like to run certain code every-so often. The +purpose of `epochs` module is to allow other modules to set that they +would like to be signaled once every period. So another module can +specify it wants to execute code once a week, starting at UTC-time = x. +`epochs` creates a generalized epoch interface to other modules so that +they can easily be signalled upon such events. + - Contains functionality for querying epoch. + - Events for BeginBlock and EndBlock. + - Initialization for epoch-related infos. +*/ + +package epochs + +import ( + "context" + "encoding/json" + "fmt" + + abci "github.com/cometbft/cometbft/abci/types" + "github.com/gorilla/mux" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" + + "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/neutron-org/neutron/x/epochs/client/cli" + "github.com/neutron-org/neutron/x/epochs/keeper" + "github.com/neutron-org/neutron/x/epochs/types" +) + +var ( + _ module.AppModule = AppModule{} + _ module.AppModuleBasic = AppModuleBasic{} +) + +// ---------------------------------------------------------------------------- +// AppModuleBasic +// ---------------------------------------------------------------------------- + +// AppModuleBasic implements the AppModuleBasic interface for the capability module. +type AppModuleBasic struct{} + +func NewAppModuleBasic() AppModuleBasic { + return AppModuleBasic{} +} + +// Name returns the capability module's name. +func (AppModuleBasic) Name() string { + return types.ModuleName +} + +// RegisterLegacyAminoCodec registers the module's Amino codec that properly handles protobuf types with Any's. +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} + +// RegisterInterfaces registers the module's interface types. +func (a AppModuleBasic) RegisterInterfaces(_ cdctypes.InterfaceRegistry) {} + +// DefaultGenesis returns the capability module's default genesis state. +func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(types.DefaultGenesis()) +} + +// ValidateGenesis performs genesis state validation for the capability module. +func (AppModuleBasic) ValidateGenesis( + cdc codec.JSONCodec, + _ client.TxEncodingConfig, + bz json.RawMessage, +) error { + var genState types.GenesisState + if err := cdc.UnmarshalJSON(bz, &genState); err != nil { + return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) + } + + return genState.Validate() +} + +// RegisterRESTRoutes registers the capability module's REST service handlers. +func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) {} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + types.RegisterQueryHandlerClient( + context.Background(), + mux, + types.NewQueryClient(clientCtx), + ) //nolint:errcheck +} + +// GetTxCmd returns the capability module's root tx command. +func (a AppModuleBasic) GetTxCmd() *cobra.Command { + return nil +} + +// GetQueryCmd returns the capability module's root query command. +func (AppModuleBasic) GetQueryCmd() *cobra.Command { + return cli.GetQueryCmd() +} + +// ---------------------------------------------------------------------------- +// AppModule +// ---------------------------------------------------------------------------- + +// AppModule implements the AppModule interface for the capability module. +type AppModule struct { + AppModuleBasic + + keeper keeper.Keeper +} + +func NewAppModule(keeper keeper.Keeper) AppModule { + return AppModule{ + AppModuleBasic: NewAppModuleBasic(), + keeper: keeper, + } +} + +// Name returns the capability module's name. +func (am AppModule) Name() string { + return am.AppModuleBasic.Name() +} + +// QuerierRoute returns the capability module's query routing key. +func (AppModule) QuerierRoute() string { return types.QuerierRoute } + +// 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(), keeper.NewQuerier(am.keeper)) +} + +// RegisterInvariants registers the capability module's invariants. +func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} + +// InitGenesis performs the capability module's genesis initialization It returns +// no validator updates. +func (am AppModule) InitGenesis( + ctx sdk.Context, + cdc codec.JSONCodec, + gs json.RawMessage, +) []abci.ValidatorUpdate { + var genState types.GenesisState + // Initialize global index to index in genesis state + cdc.MustUnmarshalJSON(gs, &genState) + + am.keeper.InitGenesis(ctx, genState) + + return []abci.ValidatorUpdate{} +} + +// ExportGenesis returns the capability module's exported genesis state as raw JSON bytes. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + genState := am.keeper.ExportGenesis(ctx) + return cdc.MustMarshalJSON(genState) +} + +// BeginBlock executes all ABCI BeginBlock logic respective to the capability module. +func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { + am.keeper.BeginBlocker(ctx) +} + +// EndBlock executes all ABCI EndBlock logic respective to the capability module. It +// returns no validator updates. +func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { + return []abci.ValidatorUpdate{} +} + +// ConsensusVersion implements AppModule/ConsensusVersion. +func (AppModule) ConsensusVersion() uint64 { return 1 } diff --git a/x/epochs/types/doc.go b/x/epochs/types/doc.go new file mode 100644 index 000000000..c1b138dfb --- /dev/null +++ b/x/epochs/types/doc.go @@ -0,0 +1,4 @@ +/* +Package types translates gRPC into RESTful JSON APIs. +*/ +package types diff --git a/x/epochs/types/events.go b/x/epochs/types/events.go new file mode 100644 index 000000000..da0ac836e --- /dev/null +++ b/x/epochs/types/events.go @@ -0,0 +1,9 @@ +package types + +const ( + EventTypeEpochEnd = "epoch_end" + EventTypeEpochStart = "epoch_start" + + AttributeEpochNumber = "epoch_number" + AttributeEpochStartTime = "start_time" +) diff --git a/x/epochs/types/genesis.go b/x/epochs/types/genesis.go new file mode 100644 index 000000000..3aadcce3b --- /dev/null +++ b/x/epochs/types/genesis.go @@ -0,0 +1,68 @@ +package types + +import ( + "errors" + "time" +) + +func NewGenesisState(epochs []EpochInfo) *GenesisState { + return &GenesisState{Epochs: epochs} +} + +// DefaultGenesis returns the default Capability genesis state. +func DefaultGenesis() *GenesisState { + epochs := []EpochInfo{ + NewGenesisEpochInfo("day", time.Hour*24), // alphabetical order + NewGenesisEpochInfo("hour", time.Hour), + NewGenesisEpochInfo("week", time.Hour*24*7), + } + + return NewGenesisState(epochs) +} + +// Validate performs basic genesis state validation returning an error upon any +// failure. +func (gs GenesisState) Validate() error { + epochIdentifiers := map[string]bool{} + for _, epoch := range gs.Epochs { + if err := epoch.Validate(); err != nil { + return err + } + if epochIdentifiers[epoch.Identifier] { + return errors.New("epoch identifier should be unique") + } + epochIdentifiers[epoch.Identifier] = true + } + + return nil +} + +// Validate also validates epoch info. +func (epoch EpochInfo) Validate() error { + if epoch.Identifier == "" { + return errors.New("epoch identifier should NOT be empty") + } + if epoch.Duration == 0 { + return errors.New("epoch duration should NOT be 0") + } + if epoch.CurrentEpoch < 0 { + return errors.New("epoch CurrentEpoch must be non-negative") + } + if epoch.CurrentEpochStartHeight < 0 { + return errors.New("epoch CurrentEpoch must be non-negative") + } + + return nil +} + +func NewGenesisEpochInfo(identifier string, duration time.Duration) EpochInfo { + return EpochInfo{ + Identifier: identifier, + StartTime: time.Time{}, + Duration: duration, + CurrentEpoch: 0, + CurrentEpochStartHeight: 0, + CurrentEpochStartTime: time.Time{}, + EpochCountingStarted: false, + } +} diff --git a/x/epochs/types/genesis.pb.go b/x/epochs/types/genesis.pb.go new file mode 100644 index 000000000..b0253a65a --- /dev/null +++ b/x/epochs/types/genesis.pb.go @@ -0,0 +1,821 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/epochs/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/durationpb" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// EpochInfo is a struct that describes the data going into +// a timer defined by the x/epochs module. +type EpochInfo struct { + // identifier is a unique reference to this particular timer. + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + // start_time is the time at which the timer first ever ticks. + // If start_time is in the future, the epoch will not begin until the start + // time. + StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` + // duration is the time in between epoch ticks. + // In order for intended behavior to be met, duration should + // be greater than the chains expected block time. + // Duration must be non-zero. + Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"` + // current_epoch is the current epoch number, or in other words, + // how many times has the timer 'ticked'. + // The first tick (current_epoch=1) is defined as + // the first block whose blocktime is greater than the EpochInfo start_time. + CurrentEpoch int64 `protobuf:"varint,4,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` + // current_epoch_start_time describes the start time of the current timer + // interval. The interval is (current_epoch_start_time, + // current_epoch_start_time + duration] When the timer ticks, this is set to + // current_epoch_start_time = last_epoch_start_time + duration only one timer + // tick for a given identifier can occur per block. + // + // NOTE! The current_epoch_start_time may diverge significantly from the + // wall-clock time the epoch began at. Wall-clock time of epoch start may be + // >> current_epoch_start_time. Suppose current_epoch_start_time = 10, + // duration = 5. Suppose the chain goes offline at t=14, and comes back online + // at t=30, and produces blocks at every successive time. (t=31, 32, etc.) + // * The t=30 block will start the epoch for (10, 15] + // * The t=31 block will start the epoch for (15, 20] + // * The t=32 block will start the epoch for (20, 25] + // * The t=33 block will start the epoch for (25, 30] + // * The t=34 block will start the epoch for (30, 35] + // * The **t=36** block will start the epoch for (35, 40] + CurrentEpochStartTime time.Time `protobuf:"bytes,5,opt,name=current_epoch_start_time,json=currentEpochStartTime,proto3,stdtime" json:"current_epoch_start_time" yaml:"current_epoch_start_time"` + // epoch_counting_started is a boolean, that indicates whether this + // epoch timer has began yet. + EpochCountingStarted bool `protobuf:"varint,6,opt,name=epoch_counting_started,json=epochCountingStarted,proto3" json:"epoch_counting_started,omitempty"` + // current_epoch_start_height is the block height at which the current epoch + // started. (The block height at which the timer last ticked) + CurrentEpochStartHeight int64 `protobuf:"varint,8,opt,name=current_epoch_start_height,json=currentEpochStartHeight,proto3" json:"current_epoch_start_height,omitempty"` +} + +func (m *EpochInfo) Reset() { *m = EpochInfo{} } +func (m *EpochInfo) String() string { return proto.CompactTextString(m) } +func (*EpochInfo) ProtoMessage() {} +func (*EpochInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_865ee7616311a8aa, []int{0} +} +func (m *EpochInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochInfo.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 *EpochInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochInfo.Merge(m, src) +} +func (m *EpochInfo) XXX_Size() int { + return m.Size() +} +func (m *EpochInfo) XXX_DiscardUnknown() { + xxx_messageInfo_EpochInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochInfo proto.InternalMessageInfo + +func (m *EpochInfo) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +func (m *EpochInfo) GetStartTime() time.Time { + if m != nil { + return m.StartTime + } + return time.Time{} +} + +func (m *EpochInfo) GetDuration() time.Duration { + if m != nil { + return m.Duration + } + return 0 +} + +func (m *EpochInfo) GetCurrentEpoch() int64 { + if m != nil { + return m.CurrentEpoch + } + return 0 +} + +func (m *EpochInfo) GetCurrentEpochStartTime() time.Time { + if m != nil { + return m.CurrentEpochStartTime + } + return time.Time{} +} + +func (m *EpochInfo) GetEpochCountingStarted() bool { + if m != nil { + return m.EpochCountingStarted + } + return false +} + +func (m *EpochInfo) GetCurrentEpochStartHeight() int64 { + if m != nil { + return m.CurrentEpochStartHeight + } + return 0 +} + +// GenesisState defines the epochs module's genesis state. +type GenesisState struct { + Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` +} + +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_865ee7616311a8aa, []int{1} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetEpochs() []EpochInfo { + if m != nil { + return m.Epochs + } + return nil +} + +func init() { + proto.RegisterType((*EpochInfo)(nil), "duality.epochs.EpochInfo") + proto.RegisterType((*GenesisState)(nil), "duality.epochs.GenesisState") +} + +func init() { proto.RegisterFile("duality/epochs/genesis.proto", fileDescriptor_865ee7616311a8aa) } + +var fileDescriptor_865ee7616311a8aa = []byte{ + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4d, 0x8f, 0xd3, 0x30, + 0x10, 0xad, 0x69, 0x29, 0xa9, 0x59, 0xbe, 0xac, 0x05, 0x42, 0x05, 0x49, 0x14, 0x2e, 0x95, 0x00, + 0x47, 0x7c, 0x48, 0x48, 0x70, 0x2b, 0xa0, 0x5d, 0x38, 0xa6, 0x1c, 0x10, 0x97, 0x2a, 0x6d, 0x5d, + 0xc7, 0x52, 0x13, 0x47, 0xc9, 0x44, 0xa2, 0x37, 0x7e, 0x42, 0x8f, 0xfc, 0xa4, 0x3d, 0xee, 0x91, + 0x53, 0x40, 0xed, 0x8d, 0xe3, 0xfe, 0x02, 0x14, 0xdb, 0x29, 0x5d, 0x0a, 0xda, 0x5b, 0x3c, 0xef, + 0xcd, 0x7b, 0x9e, 0x97, 0x31, 0xbe, 0x3f, 0x2b, 0xa3, 0x85, 0x80, 0x65, 0xc0, 0x32, 0x39, 0x8d, + 0x8b, 0x80, 0xb3, 0x94, 0x15, 0xa2, 0xa0, 0x59, 0x2e, 0x41, 0x92, 0xeb, 0x06, 0xa5, 0x1a, 0xed, + 0x1f, 0x72, 0xc9, 0xa5, 0x82, 0x82, 0xfa, 0x4b, 0xb3, 0xfa, 0x0e, 0x97, 0x92, 0x2f, 0x58, 0xa0, + 0x4e, 0x93, 0x72, 0x1e, 0xcc, 0xca, 0x3c, 0x02, 0x21, 0x53, 0x83, 0xbb, 0x7f, 0xe3, 0x20, 0x12, + 0x56, 0x40, 0x94, 0x64, 0x9a, 0xe0, 0xaf, 0x3a, 0xb8, 0xf7, 0xae, 0x76, 0x78, 0x9f, 0xce, 0x25, + 0x71, 0x30, 0x16, 0x33, 0x96, 0x82, 0x98, 0x0b, 0x96, 0xdb, 0xc8, 0x43, 0x83, 0x5e, 0xb8, 0x53, + 0x21, 0x9f, 0x30, 0x2e, 0x20, 0xca, 0x61, 0x5c, 0xcb, 0xd8, 0x97, 0x3c, 0x34, 0xb8, 0xfa, 0xac, + 0x4f, 0xb5, 0x07, 0x6d, 0x3c, 0xe8, 0xc7, 0xc6, 0x63, 0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, 0xc8, + 0x6b, 0xab, 0x1f, 0x73, 0x7e, 0x35, 0xe9, 0x76, 0x7f, 0x86, 0x9d, 0x7a, 0xee, 0xd0, 0xd0, 0x87, + 0xc7, 0x27, 0x6b, 0x07, 0x9d, 0xae, 0x1d, 0xf4, 0x73, 0xed, 0xa0, 0xd5, 0xc6, 0x69, 0x9d, 0x6e, + 0x9c, 0xd6, 0xf7, 0x8d, 0xd3, 0xfa, 0x4c, 0xb9, 0x80, 0xb8, 0x9c, 0xd0, 0xa9, 0x4c, 0x02, 0x23, + 0xf6, 0x64, 0x11, 0x4d, 0x8a, 0xe6, 0x10, 0x7c, 0x69, 0x1e, 0x05, 0x2c, 0x33, 0x56, 0x4c, 0xba, + 0x2a, 0xe3, 0xe7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x72, 0xb3, 0x24, 0x33, 0x03, 0x00, + 0x00, +} + +func (m *EpochInfo) 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 *EpochInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CurrentEpochStartHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpochStartHeight)) + i-- + dAtA[i] = 0x40 + } + if m.EpochCountingStarted { + i-- + if m.EpochCountingStarted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CurrentEpochStartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CurrentEpochStartTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintGenesis(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x2a + if m.CurrentEpoch != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpoch)) + i-- + dAtA[i] = 0x20 + } + n2, err2 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.Duration):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintGenesis(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x1a + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintGenesis(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x12 + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Epochs) > 0 { + for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EpochInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) + n += 1 + l + sovGenesis(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.Duration) + n += 1 + l + sovGenesis(uint64(l)) + if m.CurrentEpoch != 0 { + n += 1 + sovGenesis(uint64(m.CurrentEpoch)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CurrentEpochStartTime) + n += 1 + l + sovGenesis(uint64(l)) + if m.EpochCountingStarted { + n += 2 + } + if m.CurrentEpochStartHeight != 0 { + n += 1 + sovGenesis(uint64(m.CurrentEpochStartHeight)) + } + return n +} + +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Epochs) > 0 { + for _, e := range m.Epochs { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EpochInfo) 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 ErrIntOverflowGenesis + } + 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: EpochInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) + } + m.CurrentEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CurrentEpochStartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochCountingStarted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochCountingStarted = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartHeight", wireType) + } + m.CurrentEpochStartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentEpochStartHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Epochs = append(m.Epochs, EpochInfo{}) + if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/epochs/types/hooks.go b/x/epochs/types/hooks.go new file mode 100644 index 000000000..77b76bd11 --- /dev/null +++ b/x/epochs/types/hooks.go @@ -0,0 +1,67 @@ +package types + +import ( + fmt "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/neutron-org/neutron/utils" +) + +type EpochHooks interface { + // the first block whose timestamp is after the duration is counted as the end of the epoch + AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error + // new epoch is next block of epoch end block + BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error +} + +var _ EpochHooks = MultiEpochHooks{} + +// combine multiple gamm hooks, all hook functions are run in array sequence. +type MultiEpochHooks []EpochHooks + +func NewMultiEpochHooks(hooks ...EpochHooks) MultiEpochHooks { + return hooks +} + +// AfterEpochEnd is called when epoch is going to be ended, epochNumber is the number of epoch that is ending. +func (h MultiEpochHooks) AfterEpochEnd( + ctx sdk.Context, + epochIdentifier string, + epochNumber int64, +) error { + for i := range h { + panicCatchingEpochHook(ctx, h[i].AfterEpochEnd, epochIdentifier, epochNumber) + } + + return nil +} + +// BeforeEpochStart is called when epoch is going to be started, epochNumber is the number of epoch that is starting. +func (h MultiEpochHooks) BeforeEpochStart( + ctx sdk.Context, + epochIdentifier string, + epochNumber int64, +) error { + for i := range h { + panicCatchingEpochHook(ctx, h[i].BeforeEpochStart, epochIdentifier, epochNumber) + } + + return nil +} + +func panicCatchingEpochHook( + ctx sdk.Context, + hookFn func(ctx sdk.Context, epochIdentifier string, epochNumber int64) error, + epochIdentifier string, + epochNumber int64, +) { + wrappedHookFn := func(ctx sdk.Context) error { + return hookFn(ctx, epochIdentifier, epochNumber) + } + // TODO: Thread info for which hook this is, may be dependent on larger hook system refactoring + err := utils.ApplyFuncIfNoError(ctx, wrappedHookFn) + if err != nil { + ctx.Logger().Error(fmt.Sprintf("error in epoch hook %v", err)) + } +} diff --git a/x/epochs/types/hooks_test.go b/x/epochs/types/hooks_test.go new file mode 100644 index 000000000..b1cf86396 --- /dev/null +++ b/x/epochs/types/hooks_test.go @@ -0,0 +1,167 @@ +package types_test + +import ( + "strconv" + "testing" + + "github.com/cosmos/cosmos-sdk/testutil" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/stretchr/testify/suite" + + "github.com/neutron-org/neutron/x/epochs/types" +) + +type KeeperTestSuite struct { + suite.Suite + Ctx sdk.Context +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} + +func (s *KeeperTestSuite) SetupTest() { + s.Ctx = testutil.DefaultContext( + sdk.NewKVStoreKey(types.StoreKey), + sdk.NewTransientStoreKey("transient_test"), + ) +} + +func dummyAfterEpochEndEvent(epochIdentifier string, epochNumber int64) sdk.Event { + return sdk.NewEvent( + "afterEpochEnd", + sdk.NewAttribute("epochIdentifier", epochIdentifier), + sdk.NewAttribute("epochNumber", strconv.FormatInt(epochNumber, 10)), + ) +} + +func dummyBeforeEpochStartEvent(epochIdentifier string, epochNumber int64) sdk.Event { + return sdk.NewEvent( + "beforeEpochStart", + sdk.NewAttribute("epochIdentifier", epochIdentifier), + sdk.NewAttribute("epochNumber", strconv.FormatInt(epochNumber, 10)), + ) +} + +var errDummy = errors.New("9", 9, "dummyError") + +// dummyEpochHook is a struct satisfying the epoch hook interface, +// that maintains a counter for how many times its been successfully called, +// and a boolean for whether it should panic during its execution. +type dummyEpochHook struct { + successCounter int + shouldPanic bool + shouldError bool +} + +func (hook *dummyEpochHook) AfterEpochEnd( + ctx sdk.Context, + epochIdentifier string, + epochNumber int64, +) error { + if hook.shouldPanic { + panic("dummyEpochHook is panicking") + } + if hook.shouldError { + return errDummy + } + hook.successCounter++ + ctx.EventManager().EmitEvent(dummyAfterEpochEndEvent(epochIdentifier, epochNumber)) + + return nil +} + +func (hook *dummyEpochHook) BeforeEpochStart( + ctx sdk.Context, + epochIdentifier string, + epochNumber int64, +) error { + if hook.shouldPanic { + panic("dummyEpochHook is panicking") + } + if hook.shouldError { + return errDummy + } + hook.successCounter++ + ctx.EventManager().EmitEvent(dummyBeforeEpochStartEvent(epochIdentifier, epochNumber)) + + return nil +} + +func (hook *dummyEpochHook) Clone() *dummyEpochHook { + newHook := dummyEpochHook{ + shouldPanic: hook.shouldPanic, + successCounter: hook.successCounter, + shouldError: hook.shouldError, + } + return &newHook +} + +var _ types.EpochHooks = &dummyEpochHook{} + +func (suite *KeeperTestSuite) TestHooksPanicRecovery() { + // panicHook := dummyEpochHook{shouldPanic: true} + noPanicHook := dummyEpochHook{shouldPanic: false} + // errorHook := dummyEpochHook{shouldError: true} + // noErrorHook := dummyEpochHook{shouldError: false} // same as nopanic + // simpleHooks := []dummyEpochHook{panicHook, noPanicHook, errorHook, noErrorHook} + + tests := []struct { + hooks []dummyEpochHook + expectedCounterValues []int + lenEvents int + }{ + {[]dummyEpochHook{noPanicHook}, []int{1}, 1}, + // {[]dummyEpochHook{panicHook}, []int{0}, 0}, + // {[]dummyEpochHook{errorHook}, []int{0}, 0}, + // {simpleHooks, []int{0, 1, 0, 1}, 2}, + } + + for tcIndex, tc := range tests { + for epochActionSelector := 0; epochActionSelector < 2; epochActionSelector++ { + suite.SetupTest() + hookRefs := []types.EpochHooks{} + + for _, hook := range tc.hooks { + hookRefs = append(hookRefs, hook.Clone()) + } + + hooks := types.NewMultiEpochHooks(hookRefs...) + + events := func(epochID string, epochNumber int64, dummyEvent func(id string, number int64) sdk.Event) sdk.Events { + evts := make(sdk.Events, tc.lenEvents) + for i := 0; i < tc.lenEvents; i++ { + evts[i] = dummyEvent(epochID, epochNumber) + } + + return evts + } + + suite.NotPanics(func() { + if epochActionSelector == 0 { + hooks.BeforeEpochStart(suite.Ctx, "id", 0) + suite.Require().Equal( + events( + "id", + 0, + dummyBeforeEpochStartEvent, + ), + suite.Ctx.EventManager().Events(), + "test case index %d, before epoch event check", tcIndex, + ) + } else if epochActionSelector == 1 { + hooks.AfterEpochEnd(suite.Ctx, "id", 0) + suite.Require().Equal(events("id", 0, dummyAfterEpochEndEvent), suite.Ctx.EventManager().Events(), + "test case index %d, after epoch event check", tcIndex) + } + }) + + for i := 0; i < len(hooks); i++ { + epochHook := hookRefs[i].(*dummyEpochHook) + suite.Require(). + Equal(tc.expectedCounterValues[i], epochHook.successCounter, "test case index %d", tcIndex) + } + } + } +} diff --git a/x/epochs/types/identifier.go b/x/epochs/types/identifier.go new file mode 100644 index 000000000..1cd154fa0 --- /dev/null +++ b/x/epochs/types/identifier.go @@ -0,0 +1,23 @@ +package types + +import ( + "fmt" +) + +func ValidateEpochIdentifierInterface(i interface{}) error { + v, ok := i.(string) + if !ok { + return fmt.Errorf("invalid parameter type: %T", i) + } + err := ValidateEpochIdentifierString(v) + + return err +} + +func ValidateEpochIdentifierString(s string) error { + if s == "" { + return fmt.Errorf("empty distribution epoch identifier: %+v", s) + } + + return nil +} diff --git a/x/epochs/types/keys.go b/x/epochs/types/keys.go new file mode 100644 index 000000000..4c6186fe5 --- /dev/null +++ b/x/epochs/types/keys.go @@ -0,0 +1,18 @@ +package types + +const ( + // ModuleName defines the module name. + ModuleName = "epochs" + + // StoreKey defines the primary module store key. + StoreKey = ModuleName + + // RouterKey is the message route for slashing. + RouterKey = ModuleName + + // QuerierRoute defines the module's query routing key. + QuerierRoute = ModuleName +) + +// KeyPrefixEpoch defines prefix key for storing epochs. +var KeyPrefixEpoch = []byte{0x01} diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go new file mode 100644 index 000000000..e11a1f169 --- /dev/null +++ b/x/epochs/types/query.pb.go @@ -0,0 +1,912 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/epochs/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + 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" + 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 +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type QueryEpochsInfoRequest struct { +} + +func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} } +func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEpochsInfoRequest) ProtoMessage() {} +func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_46bcc0d8d0692f49, []int{0} +} +func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochsInfoRequest.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 *QueryEpochsInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochsInfoRequest.Merge(m, src) +} +func (m *QueryEpochsInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochsInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochsInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochsInfoRequest proto.InternalMessageInfo + +type QueryEpochsInfoResponse struct { + Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` +} + +func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse{} } +func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEpochsInfoResponse) ProtoMessage() {} +func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_46bcc0d8d0692f49, []int{1} +} +func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochsInfoResponse.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 *QueryEpochsInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochsInfoResponse.Merge(m, src) +} +func (m *QueryEpochsInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochsInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochsInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochsInfoResponse proto.InternalMessageInfo + +func (m *QueryEpochsInfoResponse) GetEpochs() []EpochInfo { + if m != nil { + return m.Epochs + } + return nil +} + +type QueryCurrentEpochRequest struct { + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochRequest{} } +func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentEpochRequest) ProtoMessage() {} +func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_46bcc0d8d0692f49, []int{2} +} +func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCurrentEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCurrentEpochRequest.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 *QueryCurrentEpochRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentEpochRequest.Merge(m, src) +} +func (m *QueryCurrentEpochRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCurrentEpochRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentEpochRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCurrentEpochRequest proto.InternalMessageInfo + +func (m *QueryCurrentEpochRequest) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +type QueryCurrentEpochResponse struct { + CurrentEpoch int64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` +} + +func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResponse{} } +func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentEpochResponse) ProtoMessage() {} +func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_46bcc0d8d0692f49, []int{3} +} +func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCurrentEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCurrentEpochResponse.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 *QueryCurrentEpochResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentEpochResponse.Merge(m, src) +} +func (m *QueryCurrentEpochResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCurrentEpochResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentEpochResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCurrentEpochResponse proto.InternalMessageInfo + +func (m *QueryCurrentEpochResponse) GetCurrentEpoch() int64 { + if m != nil { + return m.CurrentEpoch + } + return 0 +} + +func init() { + proto.RegisterType((*QueryEpochsInfoRequest)(nil), "duality.epochs.QueryEpochsInfoRequest") + proto.RegisterType((*QueryEpochsInfoResponse)(nil), "duality.epochs.QueryEpochsInfoResponse") + proto.RegisterType((*QueryCurrentEpochRequest)(nil), "duality.epochs.QueryCurrentEpochRequest") + proto.RegisterType((*QueryCurrentEpochResponse)(nil), "duality.epochs.QueryCurrentEpochResponse") +} + +func init() { proto.RegisterFile("duality/epochs/query.proto", fileDescriptor_46bcc0d8d0692f49) } + +var fileDescriptor_46bcc0d8d0692f49 = []byte{ + // 402 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6b, 0xdb, 0x30, + 0x1c, 0xc5, 0xed, 0x64, 0x0b, 0x4c, 0xcb, 0x76, 0x10, 0x23, 0x73, 0xcc, 0xa6, 0x04, 0x8f, 0x6d, + 0xd9, 0x60, 0x16, 0xc9, 0x0e, 0x85, 0x9e, 0x4a, 0x4a, 0xa1, 0x3d, 0xd6, 0xc7, 0x5e, 0x8a, 0xec, + 0x28, 0x8e, 0x20, 0x91, 0x1c, 0x4b, 0x2e, 0xcd, 0xa1, 0x97, 0x1e, 0x7b, 0x2a, 0xe4, 0x4b, 0xe5, + 0x18, 0xe8, 0xa5, 0xa7, 0x52, 0x92, 0x7e, 0x90, 0x12, 0xd9, 0x09, 0x89, 0x6b, 0x68, 0x4f, 0x36, + 0x7a, 0xef, 0xfd, 0xf4, 0xfe, 0x7f, 0x04, 0xec, 0x5e, 0x42, 0x86, 0x4c, 0x4d, 0x30, 0x8d, 0x44, + 0x30, 0x90, 0x78, 0x9c, 0xd0, 0x78, 0xe2, 0x46, 0xb1, 0x50, 0x02, 0x7e, 0xce, 0x34, 0x37, 0xd5, + 0xec, 0x2f, 0xa1, 0x08, 0x85, 0x96, 0xf0, 0xea, 0x2f, 0x75, 0xd9, 0xdf, 0x42, 0x21, 0xc2, 0x21, + 0xc5, 0x24, 0x62, 0x98, 0x70, 0x2e, 0x14, 0x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xad, 0x42, + 0x72, 0xc1, 0x96, 0xec, 0x3f, 0x6f, 0x70, 0x66, 0x2d, 0x7e, 0xea, 0x16, 0x0d, 0xf8, 0x3d, 0xdf, + 0x62, 0x67, 0x53, 0xdd, 0xe3, 0xd9, 0x02, 0x99, 0xf3, 0x05, 0x32, 0x1f, 0x17, 0xc8, 0xbc, 0x5d, + 0x22, 0x63, 0xbe, 0x44, 0xc6, 0xfd, 0x12, 0x19, 0x67, 0x6e, 0xc8, 0xd4, 0x20, 0xf1, 0xdd, 0x40, + 0x8c, 0xd6, 0x88, 0x7f, 0x43, 0xe2, 0xcb, 0x0d, 0xef, 0x72, 0x4d, 0x54, 0x93, 0x88, 0x4a, 0xbf, + 0xa2, 0x9f, 0xd4, 0xff, 0xe7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x49, 0x4a, 0x4c, 0xc9, 0xfe, 0x02, + 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // EpochInfos provide running epochInfos + EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { + out := new(QueryEpochsInfoResponse) + err := c.cc.Invoke(ctx, "/duality.epochs.Query/EpochInfos", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { + out := new(QueryCurrentEpochResponse) + err := c.cc.Invoke(ctx, "/duality.epochs.Query/CurrentEpoch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // EpochInfos provide running epochInfos + EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) EpochInfos(ctx context.Context, req *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") +} +func (*UnimplementedQueryServer) CurrentEpoch(ctx context.Context, req *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochsInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochInfos(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.epochs.Query/EpochInfos", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCurrentEpochRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CurrentEpoch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.epochs.Query/CurrentEpoch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "duality.epochs.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "EpochInfos", + Handler: _Query_EpochInfos_Handler, + }, + { + MethodName: "CurrentEpoch", + Handler: _Query_CurrentEpoch_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "duality/epochs/query.proto", +} + +func (m *QueryEpochsInfoRequest) 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 *QueryEpochsInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryEpochsInfoResponse) 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 *QueryEpochsInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Epochs) > 0 { + for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryCurrentEpochRequest) 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 *QueryCurrentEpochRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCurrentEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryCurrentEpochResponse) 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 *QueryCurrentEpochResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCurrentEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CurrentEpoch != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.CurrentEpoch)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryEpochsInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryEpochsInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Epochs) > 0 { + for _, e := range m.Epochs { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryCurrentEpochRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryCurrentEpochResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CurrentEpoch != 0 { + n += 1 + sovQuery(uint64(m.CurrentEpoch)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryEpochsInfoRequest) 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 ErrIntOverflowQuery + } + 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: QueryEpochsInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEpochsInfoResponse) 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 ErrIntOverflowQuery + } + 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: QueryEpochsInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochsInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Epochs = append(m.Epochs, EpochInfo{}) + if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCurrentEpochRequest) 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 ErrIntOverflowQuery + } + 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: QueryCurrentEpochRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCurrentEpochResponse) 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 ErrIntOverflowQuery + } + 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: QueryCurrentEpochResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCurrentEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) + } + m.CurrentEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/epochs/types/query.pb.gw.go b/x/epochs/types/query.pb.gw.go new file mode 100644 index 000000000..a20817322 --- /dev/null +++ b/x/epochs/types/query.pb.gw.go @@ -0,0 +1,236 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: duality/epochs/query.proto + +/* +Package types is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package types + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_EpochInfos_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEpochsInfoRequest + var metadata runtime.ServerMetadata + + msg, err := client.EpochInfos(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_EpochInfos_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEpochsInfoRequest + var metadata runtime.ServerMetadata + + msg, err := server.EpochInfos(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_CurrentEpoch_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_CurrentEpoch_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCurrentEpochRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CurrentEpoch_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CurrentEpoch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_CurrentEpoch_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCurrentEpochRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CurrentEpoch_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CurrentEpoch(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_EpochInfos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_EpochInfos_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EpochInfos_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CurrentEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_CurrentEpoch_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CurrentEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_EpochInfos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_EpochInfos_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EpochInfos_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CurrentEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_CurrentEpoch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CurrentEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_EpochInfos_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1}, []string{"duality", "epochs"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "epochs", "current_epoch"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Query_EpochInfos_0 = runtime.ForwardResponseMessage + + forward_Query_CurrentEpoch_0 = runtime.ForwardResponseMessage +) diff --git a/x/gmp/ibc_middleware.go b/x/gmp/ibc_middleware.go new file mode 100644 index 000000000..4d28b23b2 --- /dev/null +++ b/x/gmp/ibc_middleware.go @@ -0,0 +1,148 @@ +package gmp + +import ( + "encoding/json" + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" +) + +type IBCMiddleware struct { + app porttypes.IBCModule +} + +func NewIBCMiddleware(app porttypes.IBCModule) IBCMiddleware { + return IBCMiddleware{ + app: app, + } +} + +// OnChanOpenInit implements the IBCModule interface +func (im IBCMiddleware) OnChanOpenInit( + ctx sdk.Context, + order channeltypes.Order, + connectionHops []string, + portID string, + channelID string, + chanCap *capabilitytypes.Capability, + counterparty channeltypes.Counterparty, + version string, +) (string, error) { + // call underlying callback + return im.app.OnChanOpenInit(ctx, order, connectionHops, portID, channelID, chanCap, counterparty, version) +} + +// OnChanOpenTry implements the IBCMiddleware interface +func (im IBCMiddleware) OnChanOpenTry( + ctx sdk.Context, + order channeltypes.Order, + connectionHops []string, + portID, + channelID string, + channelCap *capabilitytypes.Capability, + counterparty channeltypes.Counterparty, + counterpartyVersion string, +) (string, error) { + return im.app.OnChanOpenTry(ctx, order, connectionHops, portID, channelID, channelCap, counterparty, counterpartyVersion) +} + +// OnChanOpenAck implements the IBCMiddleware interface +func (im IBCMiddleware) OnChanOpenAck( + ctx sdk.Context, + portID, + channelID string, + counterpartyChannelID string, + counterpartyVersion string, +) error { + return im.app.OnChanOpenAck(ctx, portID, channelID, counterpartyChannelID, counterpartyVersion) +} + +// OnChanOpenConfirm implements the IBCMiddleware interface +func (im IBCMiddleware) OnChanOpenConfirm( + ctx sdk.Context, + portID, + channelID string, +) error { + return im.app.OnChanOpenConfirm(ctx, portID, channelID) +} + +// OnChanCloseInit implements the IBCMiddleware interface +func (im IBCMiddleware) OnChanCloseInit( + ctx sdk.Context, + portID, + channelID string, +) error { + return im.app.OnChanCloseInit(ctx, portID, channelID) +} + +// OnChanCloseConfirm implements the IBCMiddleware interface +func (im IBCMiddleware) OnChanCloseConfirm( + ctx sdk.Context, + portID, + channelID string, +) error { + return im.app.OnChanCloseConfirm(ctx, portID, channelID) +} + +// OnRecvPacket implements the IBCMiddleware interface +func (im IBCMiddleware) OnRecvPacket( + ctx sdk.Context, + packet channeltypes.Packet, + relayer sdk.AccAddress, +) ibcexported.Acknowledgement { + var data transfertypes.FungibleTokenPacketData + if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { + return channeltypes.NewErrorAcknowledgement(fmt.Errorf("cannot unmarshal ICS-20 transfer packet data")) + } + + var msg Message + var err error + err = json.Unmarshal([]byte(data.GetMemo()), &msg) + if err != nil || len(msg.Payload) == 0 { + // Not a packet that should be handled by the GMP middleware + return im.app.OnRecvPacket(ctx, packet, relayer) + } + + switch msg.Type { + case TypeGeneralMessage: + // let the next layer deal with this + // the rest of the data fields should be normal + fallthrough + case TypeGeneralMessageWithToken: + // we throw out the rest of the msg.Payload fields here, for better or worse + data.Memo = string(msg.Payload) + var dataBytes []byte + if dataBytes, err = types.ModuleCdc.MarshalJSON(&data); err != nil { + return channeltypes.NewErrorAcknowledgement(fmt.Errorf("cannot marshal ICS-20 post-processed transfer packet data")) + } + packet.Data = dataBytes + return im.app.OnRecvPacket(ctx, packet, relayer) + default: + return channeltypes.NewErrorAcknowledgement(fmt.Errorf("unrecognized mesasge type: %d", msg.Type)) + } +} + +// OnAcknowledgementPacket implements the IBCMiddleware interface +func (im IBCMiddleware) OnAcknowledgementPacket( + ctx sdk.Context, + packet channeltypes.Packet, + acknowledgement []byte, + relayer sdk.AccAddress, +) error { + return im.app.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer) +} + +// OnTimeoutPacket implements the IBCMiddleware interface +func (im IBCMiddleware) OnTimeoutPacket( + ctx sdk.Context, + packet channeltypes.Packet, + relayer sdk.AccAddress, +) error { + return im.app.OnTimeoutPacket(ctx, packet, relayer) +} diff --git a/x/gmp/types.go b/x/gmp/types.go new file mode 100644 index 000000000..ed497174e --- /dev/null +++ b/x/gmp/types.go @@ -0,0 +1,21 @@ +package gmp + +const AxelarGMPAcc = "axelar1dv4u5k73pzqrxlzujxg3qp8kvc3pje7jtdvu72npnt5zhq05ejcsn5qme5" + +// Message is attached in ICS20 packet memo field +type Message struct { + SourceChain string `json:"source_chain"` + SourceAddress string `json:"source_address"` + Payload []byte `json:"payload"` + Type int64 `json:"type"` +} + +type MessageType int + +const ( + // TypeUnrecognized means coin type is unrecognized + TypeUnrecognized = iota + TypeGeneralMessage + // TypeGeneralMessageWithToken is a general message with token + TypeGeneralMessageWithToken +) diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go new file mode 100644 index 000000000..f1273e315 --- /dev/null +++ b/x/ibcswap/ibc_middleware.go @@ -0,0 +1,373 @@ +package ibcswap + +import ( + "context" + "encoding/json" + "strings" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" + "github.com/neutron-org/neutron/x/ibcswap/keeper" + "github.com/neutron-org/neutron/x/ibcswap/types" +) + +var _ porttypes.Middleware = &IBCMiddleware{} + +// IBCMiddleware implements the ICS26 callbacks for the swap middleware given the +// swap keeper and the underlying application. +type IBCMiddleware struct { + app porttypes.IBCModule + keeper keeper.Keeper +} + +// NewIBCMiddleware creates a new IBCMiddleware given the keeper and underlying application. +func NewIBCMiddleware(app porttypes.IBCModule, k keeper.Keeper) IBCMiddleware { + return IBCMiddleware{ + app: app, + keeper: k, + } +} + +// OnChanOpenInit implements the IBCModule interface. +func (im IBCMiddleware) OnChanOpenInit( + ctx sdk.Context, + order channeltypes.Order, + connectionHops []string, + portID string, + channelID string, + chanCap *capabilitytypes.Capability, + counterparty channeltypes.Counterparty, + version string, +) (string, error) { + return im.app.OnChanOpenInit( + ctx, + order, + connectionHops, + portID, + channelID, + chanCap, + counterparty, + version, + ) +} + +// OnChanOpenTry implements the IBCModule interface. +func (im IBCMiddleware) OnChanOpenTry( + ctx sdk.Context, + order channeltypes.Order, + connectionHops []string, + portID, channelID string, + chanCap *capabilitytypes.Capability, + counterparty channeltypes.Counterparty, + counterpartyVersion string, +) (version string, err error) { + return im.app.OnChanOpenTry( + ctx, + order, + connectionHops, + portID, + channelID, + chanCap, + counterparty, + counterpartyVersion, + ) +} + +// OnChanOpenAck implements the IBCModule interface. +func (im IBCMiddleware) OnChanOpenAck( + ctx sdk.Context, + portID, channelID string, + counterpartyChannelID string, + counterpartyVersion string, +) error { + return im.app.OnChanOpenAck(ctx, portID, channelID, counterpartyChannelID, counterpartyVersion) +} + +// OnChanOpenConfirm implements the IBCModule interface. +func (im IBCMiddleware) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error { + return im.app.OnChanOpenConfirm(ctx, portID, channelID) +} + +// OnChanCloseInit implements the IBCModule interface. +func (im IBCMiddleware) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error { + return im.app.OnChanCloseInit(ctx, portID, channelID) +} + +// OnChanCloseConfirm implements the IBCModule interface. +func (im IBCMiddleware) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error { + return im.app.OnChanCloseConfirm(ctx, portID, channelID) +} + +// OnRecvPacket checks the memo field on this packet and if the metadata inside's root key indicates this packet +// should be handled by the swap middleware it attempts to perform a swap. If the swap is successful +// the underlying application's OnRecvPacket callback is invoked. +func (im IBCMiddleware) OnRecvPacket( + ctx sdk.Context, + packet channeltypes.Packet, + relayer sdk.AccAddress, +) ibcexported.Acknowledgement { + var data transfertypes.FungibleTokenPacketData + if err := transfertypes.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { + return channeltypes.NewErrorAcknowledgement(err) + } + + m := &types.PacketMetadata{} + err := json.Unmarshal([]byte(data.Memo), m) + if err != nil || m.Swap == nil { + // Not a packet that should be handled by the swap middleware + return im.app.OnRecvPacket(ctx, packet, relayer) + } + + metadata := m.Swap + if err := metadata.Validate(); err != nil { + return channeltypes.NewErrorAcknowledgement(err) + } + + // Compose our context with values that will be used to pass through to the forward middleware + ctxWithForwardFlags := context.WithValue(ctx.Context(), forwardtypes.ProcessedKey{}, true) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + forwardtypes.NonrefundableKey{}, + true, + ) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + forwardtypes.DisableDenomCompositionKey{}, + true, + ) + wrappedSdkCtx := ctx.WithContext(ctxWithForwardFlags) + + ack := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) + if ack == nil || !ack.Success() { + return ack + } + + // Attempt to perform a swap since this packets memo included swap metadata. + res, err := im.keeper.Swap(ctx, metadata.MsgPlaceLimitOrder) + if err != nil { + return im.handleFailedSwap(ctx, packet, data, metadata, err) + } + + // If there is no next field set in the metadata return ack + if metadata.Next == nil { + return ack + } + + // We need to reset the packets memo field so that the root key in the metadata is the + // next field from the current metadata. + memoBz, err := json.Marshal(metadata.Next) + if err != nil { + return ack + } + + data.Memo = string(memoBz) + + // Override the packet data to include the token denom and amount that was received from the swap. + data.Denom = res.TakerCoinOut.Denom + data.Amount = res.TakerCoinOut.Amount.String() + + // After a successful swap funds are now in the receiver account from the MsgPlaceLimitOrder so, + // we need to override the packets receiver field before invoking the forward middlewares OnRecvPacket. + data.Receiver = m.Swap.Receiver + + dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&data) + if err != nil { + return ack + } + + packet.Data = dataBz + + // The forward middleware should return a nil ack if the forward is initiated properly. + // If not an error occurred, and we return the original ack. + newAck := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) + if newAck != nil { + return ack + } + + return nil +} + +// OnAcknowledgementPacket implements the IBCModule interface. +func (im IBCMiddleware) OnAcknowledgementPacket( + ctx sdk.Context, + packet channeltypes.Packet, + acknowledgement []byte, + relayer sdk.AccAddress, +) error { + return im.app.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer) +} + +// OnTimeoutPacket implements the IBCModule interface. +func (im IBCMiddleware) OnTimeoutPacket( + ctx sdk.Context, + packet channeltypes.Packet, + relayer sdk.AccAddress, +) error { + return im.app.OnTimeoutPacket(ctx, packet, relayer) +} + +func (im IBCMiddleware) SendPacket( + ctx sdk.Context, + chanCap *capabilitytypes.Capability, + sourcePort string, + sourceChannel string, + timeoutHeight clienttypes.Height, + timeoutTimestamp uint64, + data []byte, +) (sequence uint64, err error) { + return im.keeper.SendPacket( + ctx, + chanCap, + sourceChannel, + sourceChannel, + timeoutHeight, + timeoutTimestamp, + data, + ) +} + +// WriteAcknowledgement implements the ICS4 Wrapper interface. +func (im IBCMiddleware) WriteAcknowledgement( + ctx sdk.Context, + chanCap *capabilitytypes.Capability, + packet ibcexported.PacketI, + ack ibcexported.Acknowledgement, +) error { + return im.keeper.WriteAcknowledgement(ctx, chanCap, packet, ack) +} + +func (im IBCMiddleware) GetAppVersion( + ctx sdk.Context, + portID string, + channelID string, +) (string, bool) { + return im.keeper.GetAppVersion(ctx, portID, channelID) +} + +// handleFailedSwap will invoke the appropriate failover logic depending on if this swap was marked refundable +// or non-refundable in the SwapMetadata. +func (im IBCMiddleware) handleFailedSwap( + ctx sdk.Context, + packet channeltypes.Packet, + data transfertypes.FungibleTokenPacketData, + metadata *types.SwapMetadata, + err error, +) ibcexported.Acknowledgement { + swapErr := sdkerrors.Wrap(types.ErrSwapFailed, err.Error()) + im.keeper.Logger(ctx).Error( + "ibc swap failed", + "err", swapErr, + "creator", metadata.Creator, + "receiver", metadata.Receiver, + "tokenIn", metadata.TokenIn, + "tokenOut", metadata.TokenOut, + "AmountIn", metadata.AmountIn, + "TickIndexInToOut", metadata.TickIndexInToOut, + "OrderType", metadata.OrderType, + "refundable", metadata.NonRefundable, + "refund address", metadata.RefundAddress, + ) + + // The current denom is from the sender chains perspective, we need to compose the appropriate denom for this side + denomOnThisChain := getDenomForThisChain( + packet.DestinationPort, packet.DestinationChannel, + packet.SourcePort, packet.SourceChannel, + data.Denom, + ) + + if metadata.NonRefundable { + return im.handleNoRefund(ctx, data, metadata, denomOnThisChain, err) + } + + return im.handleRefund(ctx, packet, data, denomOnThisChain, err) +} + +// handleNoRefund will compose a successful ack to send back to the counterparty chain containing any error messages. +// Returning a successful ack ensures that a refund is not issued on the counterparty chain. +// See: https://github.com/cosmos/ibc-go/blob/3ecc7dd3aef5790ec5d906936a297b34adf1ee41/modules/apps/transfer/keeper/relay.go#L320 +func (im IBCMiddleware) handleNoRefund( + ctx sdk.Context, + data transfertypes.FungibleTokenPacketData, + metadata *types.SwapMetadata, + newDenom string, + swapErr error, +) ibcexported.Acknowledgement { + if metadata.RefundAddress == "" { + return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) + } + + amount, ok := sdk.NewIntFromString(data.Amount) + if !ok { + wrappedErr := sdkerrors.Wrapf( + transfertypes.ErrInvalidAmount, + "unable to parse transfer amount (%s) into math.Int", + data.Amount, + ) + wrappedErr = sdkerrors.Wrap(swapErr, wrappedErr.Error()) + return channeltypes.NewResultAcknowledgement([]byte(wrappedErr.Error())) + } + + token := sdk.NewCoin(newDenom, amount) + err := im.keeper.SendCoins(ctx, data.Receiver, metadata.RefundAddress, sdk.NewCoins(token)) + if err != nil { + wrappedErr := sdkerrors.Wrap(err, "failed to move funds to refund address") + wrappedErr = sdkerrors.Wrap(swapErr, wrappedErr.Error()) + return channeltypes.NewResultAcknowledgement([]byte(wrappedErr.Error())) + } + + return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) +} + +// handleRefund will either burn or transfer the funds back to the appropriate escrow account. +// When a packet comes in the transfer module's OnRecvPacket callback is invoked which either +// mints or unescrows funds on this side so if the swap fails an explicit refund is required. +func (im IBCMiddleware) handleRefund( + ctx sdk.Context, + packet channeltypes.Packet, + data transfertypes.FungibleTokenPacketData, + newDenom string, + swapErr error, +) ibcexported.Acknowledgement { + data.Denom = newDenom + + err := im.keeper.RefundPacketToken(ctx, packet, data) + if err != nil { + wrappedErr := sdkerrors.Wrap(swapErr, err.Error()) + + // If the refund fails on this side we want to make sure that the refund does not happen on the counterparty, + // so we return a successful ack containing the error + return channeltypes.NewResultAcknowledgement([]byte(wrappedErr.Error())) + } + + return channeltypes.NewErrorAcknowledgement(swapErr) +} + +// getDenomForThisChain composes a new token denom by either unwinding or prefixing the specified token denom appropriately. +// This is necessary because the token denom in the packet data is from the perspective of the counterparty chain. +func getDenomForThisChain( + port, channel, counterpartyPort, counterpartyChannel, denom string, +) string { + counterpartyPrefix := transfertypes.GetDenomPrefix(counterpartyPort, counterpartyChannel) + if strings.HasPrefix(denom, counterpartyPrefix) { + // unwind denom + unwoundDenom := denom[len(counterpartyPrefix):] + denomTrace := transfertypes.ParseDenomTrace(unwoundDenom) + if denomTrace.Path == "" { + // denom is now unwound back to native denom + return unwoundDenom + } + // denom is still IBC denom + return denomTrace.IBCDenom() + } + + // append port and channel from this chain to denom + prefixedDenom := transfertypes.GetDenomPrefix(port, channel) + denom + return transfertypes.ParseDenomTrace(prefixedDenom).IBCDenom() +} diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go new file mode 100644 index 000000000..d71c683ab --- /dev/null +++ b/x/ibcswap/keeper/keeper.go @@ -0,0 +1,188 @@ +package keeper + +import ( + "fmt" + + "github.com/cometbft/cometbft/libs/log" + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/cosmos/gogoproto/proto" + transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/ibcswap/types" +) + +// Keeper defines the swap middleware keeper. +type Keeper struct { + cdc codec.BinaryCodec + msgServiceRouter *baseapp.MsgServiceRouter + + ics4Wrapper porttypes.ICS4Wrapper + bankKeeper types.BankKeeper +} + +// NewKeeper creates a new swap Keeper instance. +func NewKeeper( + cdc codec.BinaryCodec, + msgServiceRouter *baseapp.MsgServiceRouter, + ics4Wrapper porttypes.ICS4Wrapper, + bankKeeper types.BankKeeper, +) Keeper { + return Keeper{ + cdc: cdc, + msgServiceRouter: msgServiceRouter, + + ics4Wrapper: ics4Wrapper, + bankKeeper: bankKeeper, + } +} + +// Logger returns a module-specific logger. +func (k Keeper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", "x/"+ibcexported.ModuleName+"-"+types.ModuleName) +} + +// Swap calls into the base app's msg service router so that the appropriate handler is called when sending the swap msg. +func (k Keeper) Swap( + ctx sdk.Context, + msg *dextypes.MsgPlaceLimitOrder, +) (*dextypes.MsgPlaceLimitOrderResponse, error) { + swapHandler := k.msgServiceRouter.Handler(msg) + if swapHandler == nil { + return nil, sdkerrors.Wrap( + types.ErrMsgHandlerInvalid, + fmt.Sprintf("could not find the handler for %T", msg), + ) + } + + res, err := swapHandler(ctx, msg) + if err != nil { + return nil, err + } + + msgSwapRes := &dextypes.MsgPlaceLimitOrderResponse{} + if err := proto.Unmarshal(res.Data, msgSwapRes); err != nil { + return nil, err + } + + return msgSwapRes, nil +} + +// SendPacket wraps IBC ChannelKeeper's SendPacket function. +func (k Keeper) SendPacket( + ctx sdk.Context, + chanCap *capabilitytypes.Capability, + sourcePort string, + sourceChannel string, + timeoutHeight clienttypes.Height, + timeoutTimestamp uint64, + data []byte, +) (sequence uint64, err error) { + return k.ics4Wrapper.SendPacket( + ctx, + chanCap, + sourcePort, + sourceChannel, + timeoutHeight, + timeoutTimestamp, + data, + ) +} + +// WriteAcknowledgement wraps IBC ChannelKeeper's WriteAcknowledgement function. +func (k Keeper) WriteAcknowledgement( + ctx sdk.Context, + chanCap *capabilitytypes.Capability, + packet ibcexported.PacketI, + acknowledgement ibcexported.Acknowledgement, +) error { + return k.ics4Wrapper.WriteAcknowledgement(ctx, chanCap, packet, acknowledgement) +} + +// RefundPacketToken handles the burning or escrow lock up of vouchers when an asset should be refunded. +// This is only used in the case where we call into the transfer modules OnRecvPacket callback but then the swap fails. +func (k Keeper) RefundPacketToken( + ctx sdk.Context, + packet channeltypes.Packet, + data transfertypes.FungibleTokenPacketData, +) error { + // parse the denomination from the full denom path + trace := transfertypes.ParseDenomTrace(data.Denom) + + // parse the transfer amount + transferAmount, ok := sdk.NewIntFromString(data.Amount) + if !ok { + return sdkerrors.Wrapf( + transfertypes.ErrInvalidAmount, + "unable to parse transfer amount (%s) into math.Int", + data.Amount, + ) + } + token := sdk.NewCoin(trace.IBCDenom(), transferAmount) + + // decode the receiver address + receiver, err := sdk.AccAddressFromBech32(data.Receiver) + if err != nil { + return err + } + + // if the sender chain is source that means a voucher was minted on Duality when the ics20 transfer took place + if transfertypes.SenderChainIsSource(packet.SourcePort, packet.SourceChannel, data.Denom) { + // transfer coins from user account to transfer module + err = k.bankKeeper.SendCoinsFromAccountToModule( + ctx, + receiver, + transfertypes.ModuleName, + sdk.NewCoins(token), + ) + if err != nil { + return err + } + + // burn the coins + err = k.bankKeeper.BurnCoins(ctx, transfertypes.ModuleName, sdk.NewCoins(token)) + if err != nil { + return err + } + + return nil + } + + // transfer coins from user account to escrow address + escrowAddress := transfertypes.GetEscrowAddress( + packet.GetSourcePort(), + packet.GetSourceChannel(), + ) + err = k.bankKeeper.SendCoins(ctx, receiver, escrowAddress, sdk.NewCoins(token)) + if err != nil { + return err + } + + return nil +} + +// SendCoins wraps the BankKeepers SendCoins function so it can be invoked from the middleware. +func (k Keeper) SendCoins(ctx sdk.Context, fromAddr string, toAddr string, amt sdk.Coins) error { + from, err := sdk.AccAddressFromBech32(fromAddr) + if err != nil { + return err + } + + to, err := sdk.AccAddressFromBech32(toAddr) + if err != nil { + return err + } + + return k.bankKeeper.SendCoins(ctx, from, to, amt) +} + +func (k Keeper) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool) { + return k.ics4Wrapper.GetAppVersion(ctx, portID, channelID) +} diff --git a/x/ibcswap/module.go b/x/ibcswap/module.go new file mode 100644 index 000000000..ad5e25176 --- /dev/null +++ b/x/ibcswap/module.go @@ -0,0 +1,133 @@ +package ibcswap + +import ( + "encoding/json" + + abci "github.com/cometbft/cometbft/abci/types" + "github.com/cosmos/cosmos-sdk/client" + "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" + "github.com/neutron-org/neutron/x/ibcswap/keeper" + "github.com/neutron-org/neutron/x/ibcswap/types" + "github.com/gorilla/mux" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" +) + +var ( + _ module.AppModuleBasic = AppModuleBasic{} + _ module.AppModule = AppModule{} + _ module.AppModuleSimulation = AppModule{} +) + +// AppModuleBasic is the swap middleware AppModuleBasic. +type AppModuleBasic struct{} + +// Name implements AppModuleBasic interface. +func (AppModuleBasic) Name() string { + return types.ModuleName +} + +// RegisterLegacyAminoCodec implements AppModuleBasic interface. +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} + +// RegisterInterfaces registers module concrete types into protobuf Any. +func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {} + +// DefaultGenesis returns default genesis state as raw bytes for the swap module. +func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return nil +} + +// ValidateGenesis performs genesis state validation for the swap module. +func (AppModuleBasic) ValidateGenesis( + cdc codec.JSONCodec, + config client.TxEncodingConfig, + bz json.RawMessage, +) error { + return nil +} + +// RegisterRESTRoutes implements AppModuleBasic interface. +func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) {} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the swap module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {} + +// GetTxCmd implements AppModuleBasic interface. +func (AppModuleBasic) GetTxCmd() *cobra.Command { + return nil +} + +// GetQueryCmd implements AppModuleBasic interface. +func (AppModuleBasic) GetQueryCmd() *cobra.Command { + return nil +} + +// AppModule implements the module.AppModule +type AppModule struct { + AppModuleBasic + keeper keeper.Keeper +} + +func NewAppModule(keeper keeper.Keeper) *AppModule { + return &AppModule{ + keeper: keeper, + } +} + +// RegisterInvariants implements the AppModule interface. +func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {} + +// QuerierRoute implements the AppModule interface. +func (AppModule) QuerierRoute() string { + return "" +} + +// RegisterServices registers module services. +func (am AppModule) RegisterServices(cfg module.Configurator) {} + +// InitGenesis performs genesis initialization for the ibc-router module. It returns +// no validator updates. +func (am AppModule) InitGenesis( + ctx sdk.Context, + cdc codec.JSONCodec, + data json.RawMessage, +) []abci.ValidatorUpdate { + return []abci.ValidatorUpdate{} +} + +// ExportGenesis returns the exported genesis state as raw bytes for the swap module. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + return nil +} + +// ConsensusVersion returns the consensus state breaking version for the swap module. +func (AppModule) ConsensusVersion() uint64 { return 1 } + +// BeginBlock implements the AppModule interface. +func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {} + +// EndBlock implements the AppModule interface. +func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate { + return []abci.ValidatorUpdate{} +} + +// GenerateGenesisState implements the AppModuleSimulation interface. +func (AppModule) GenerateGenesisState(simState *module.SimulationState) {} + +// ProposalContents implements the AppModuleSimulation interface. +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { + return nil +} + +// RegisterStoreDecoder implements the AppModuleSimulation interface. +func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {} + +// WeightedOperations implements the AppModuleSimulation interface. +func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { + return nil +} diff --git a/x/ibcswap/types/errors.go b/x/ibcswap/types/errors.go new file mode 100644 index 000000000..68037f2f1 --- /dev/null +++ b/x/ibcswap/types/errors.go @@ -0,0 +1,9 @@ +package types + +import sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + +var ( + ErrInvalidSwapMetadata = sdkerrors.Register(ModuleName, 2, "invalid swap metadata") + ErrSwapFailed = sdkerrors.Register(ModuleName, 3, "ibc swap failed") + ErrMsgHandlerInvalid = sdkerrors.Register(ModuleName, 4, "msg service handler not found") +) diff --git a/x/ibcswap/types/expected_keepers.go b/x/ibcswap/types/expected_keepers.go new file mode 100644 index 000000000..0ea6192ea --- /dev/null +++ b/x/ibcswap/types/expected_keepers.go @@ -0,0 +1,14 @@ +package types + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// BankKeeper defines the expected interface that the swap middleware needs in order to facilitate refunds. +type BankKeeper interface { + SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error + BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error + SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error + SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error +} diff --git a/x/ibcswap/types/keys.go b/x/ibcswap/types/keys.go new file mode 100644 index 000000000..9a88fc669 --- /dev/null +++ b/x/ibcswap/types/keys.go @@ -0,0 +1,8 @@ +package types + +// ModuleName defines the name for the swap middleware. +const ModuleName = "swap-middleware" + +// ProcessedKey is used to signal to the swap middleware that a packet has already been processed by some other +// middleware and so invoking the transfer modules OnRecvPacket callback should be avoided. +type ProcessedKey struct{} diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go new file mode 100644 index 000000000..45b360394 --- /dev/null +++ b/x/ibcswap/types/swap.go @@ -0,0 +1,102 @@ +package types + +import ( + "encoding/json" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/iancoleman/orderedmap" +) + +// PacketMetadata wraps the SwapMetadata. The root key in the incoming ICS20 transfer packet's memo needs to be set to the same +// value as the json tag in order for the swap middleware to process the swap. +type PacketMetadata struct { + Swap *SwapMetadata `json:"swap"` +} + +// SwapMetadata defines the parameters necessary to perform a swap utilizing the memo field from an incoming ICS20 +// transfer packet. The next field is a string so that you can nest any arbitrary metadata to be handled +// further in the middleware stack or on the counterparty. +type SwapMetadata struct { + *dextypes.MsgPlaceLimitOrder + NonRefundable bool `json:"non-refundable,omitempty"` + RefundAddress string `json:"refund-address,omitempty"` + + // Using JSONObject so that objects for next property will not be mutated by golang's lexicographic key sort on map keys during Marshal. + // Supports primitives for Unmarshal/Marshal so that an escaped JSON-marshaled string is also valid. + Next *JSONObject `json:"next,omitempty"` +} + +// Validate ensures that all the required fields are present in the SwapMetadata and contain valid values. +func (sm SwapMetadata) Validate() error { + if err := sm.ValidateBasic(); err != nil { + return sdkerrors.Wrap(ErrInvalidSwapMetadata, err.Error()) + } + if sm.TokenIn == "" { + return sdkerrors.Wrap(ErrInvalidSwapMetadata, "limit order tokenIn cannot be an empty string") + } + if sm.TokenOut == "" { + return sdkerrors.Wrap(ErrInvalidSwapMetadata, "limit order tokenOut cannot be an empty string") + } + if sm.RefundAddress != "" { + _, err := sdk.AccAddressFromBech32(sm.RefundAddress) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "%s is not a valid Duality address", sm.RefundAddress) + } + } + + if !sm.OrderType.IsFoK() { + return sdkerrors.Wrap(ErrInvalidSwapMetadata, "Limit Order type must be FILL_OR_KILL") + } + + return nil +} + +// JSONObject is a wrapper type to allow either a primitive type or a JSON object. +// In the case the value is a JSON object, OrderedMap type is used so that key order +// is retained across Unmarshal/Marshal. +type JSONObject struct { + obj bool + primitive []byte + orderedMap orderedmap.OrderedMap +} + +// NewJSONObject is a constructor used for tests. +// The usage of JSONObject in the middleware is only json Marshal/Unmarshal +func NewJSONObject(object bool, primitive []byte, orderedMap orderedmap.OrderedMap) *JSONObject { + return &JSONObject{ + obj: object, + primitive: primitive, + orderedMap: orderedMap, + } +} + +// UnmarshalJSON overrides the default json.Unmarshal behavior +func (o *JSONObject) UnmarshalJSON(b []byte) error { + if err := o.orderedMap.UnmarshalJSON(b); err != nil { + // If ordered map unmarshal fails, this is a primitive value + o.obj = false + // Attempt to unmarshal as string, this removes extra JSON escaping + var primitiveStr string + if err := json.Unmarshal(b, &primitiveStr); err != nil { + o.primitive = b + return nil + } + o.primitive = []byte(primitiveStr) + return nil + } + // This is a JSON object, now stored as an ordered map to retain key order. + o.obj = true + return nil +} + +// MarshalJSON overrides the default json.Marshal behavior +func (o *JSONObject) MarshalJSON() ([]byte, error) { + if o.obj { + // non-primitive, return marshaled ordered map. + return o.orderedMap.MarshalJSON() + } + // primitive, return raw bytes. + return o.primitive, nil +} diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go new file mode 100644 index 000000000..f64a70a01 --- /dev/null +++ b/x/ibcswap/types/swap_test.go @@ -0,0 +1,243 @@ +package types + +import ( + "encoding/json" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + appparams "github.com/neutron-org/neutron/app/params" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/iancoleman/orderedmap" + "github.com/stretchr/testify/require" +) + +// Load appparams so that we correctly init acc prefixes +var _ appparams.EncodingConfig + +// TestPacketMetadata_Marshal asserts that the marshaling of the swap metadata works as intended. +func TestPacketMetadata_Marshal(t *testing.T) { + pm := PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "test-1", + Receiver: "test-1", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err := json.Marshal(pm) + require.NoError(t, err) +} + +// TestPacketMetadata_MarshalWithNext asserts that the marshaling of the swap metadata works as intended with next field initialized. +func TestPacketMetadata_MarshalWithNext(t *testing.T) { + forwardMedata := &forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ + Receiver: "cosmos14zde8usc4ur04y3aqnufzzmv2uqdpwwttr5uwv", + Port: "transfer", + Channel: "channel-0", + Timeout: 0, + Retries: nil, + Next: nil, + }, + } + nextBz, err := json.Marshal(forwardMedata) + require.NoError(t, err) + + pm := PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "test-1", + Receiver: "test-1", + TokenIn: "token-a", + TokenOut: "token-b", + TickIndexInToOut: 0, + AmountIn: sdk.NewInt(123), + OrderType: types.LimitOrderType_FILL_OR_KILL, + // MaxAmountOut: sdk.NewInt(456), + }, + Next: NewJSONObject(false, nextBz, orderedmap.OrderedMap{}), + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) +} + +// TestPacketMetadata_Unmarshal asserts that unmarshaling works as intended. +func TestPacketMetadata_Unmarshal(t *testing.T) { + metadata := "{\n \"swap\": {\n \"creator\": \"test-1\",\n \"TickIndexInToOut\": 0,\n \"orderType\": 1,\n \"receiver\": \"test-1\",\n \"tokenIn\": \"token-a\",\n \"tokenOut\": \"token-b\",\n \"AmountIn\": \"123\",\n \"next\": \"\"\n }\n}" + pm := &PacketMetadata{} + err := json.Unmarshal([]byte(metadata), pm) + require.NoError(t, err) +} + +// TestPacketMetadata_UnmarshalStringNext asserts that unmarshaling works as intended when next is escaped json string. +func TestPacketMetadata_UnmarshalStringNext(t *testing.T) { + metadata := "{\n \"swap\": {\n \"creator\": \"test-1\",\n \"receiver\": \"test-1\",\n \"tokenIn\": \"token-a\",\n \"tokenOut\": \"token-b\",\n \"AmountIn\": \"123\",\n \"TickIndexInToOut\": 0,\n \"orderType\": 1,\n \"next\": \" {\\\"forward\\\":{\\\"receiver\\\":\\\"cosmos1f4cur2krsua2th9kkp7n0zje4stea4p9tu70u8\\\",\\\"port\\\":\\\"transfer\\\",\\\"channel\\\":\\\"channel-0\\\",\\\"timeout\\\":0,\\\"next\\\":{\\\"forward\\\":{\\\"receiver\\\":\\\"cosmos1l505zhahp24v5jsmps9vs5asah759fdce06sfp\\\",\\\"port\\\":\\\"transfer\\\",\\\"channel\\\":\\\"channel-0\\\",\\\"timeout\\\":0}}}}\"\n }\n}" + pm := &PacketMetadata{} + err := json.Unmarshal([]byte(metadata), pm) + require.NoError(t, err) +} + +// TestPacketMetadata_UnmarshalJSONNext asserts that unmarshaling works as intended when next is a raw json object. +func TestPacketMetadata_UnmarshalJSONNext(t *testing.T) { + metadata := "{\"swap\":{\"creator\":\"test-1\",\"receiver\":\"test-1\",\"tokenIn\":\"token-a\",\"tokenOut\":\"token-b\",\"AmountIn\":\"123\",\"TickIndexInToOut\":0, \"orderType\": 1, \"tokenIn\":\"token-in\",\"next\":{\"forward\":{\"receiver\":\"cosmos14zde8usc4ur04y3aqnufzzmv2uqdpwwttr5uwv\",\"port\":\"transfer\",\"channel\":\"channel-0\"}}}}" + pm := &PacketMetadata{} + err := json.Unmarshal([]byte(metadata), pm) + require.NoError(t, err) +} + +func TestSwapMetadata_ValidatePass(t *testing.T) { + pm := PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "dual1lyaz7emmzreenas4fpz49a49958kye7wxuvsdr", + Receiver: "dual1lyaz7emmzreenas4fpz49a49958kye7wxuvsdr", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err := json.Marshal(pm) + require.NoError(t, err) + + require.NoError(t, pm.Swap.Validate()) +} + +func TestSwapMetadata_ValidateFail(t *testing.T) { + pm := PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "", + Receiver: "test-1", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err := json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) + + pm = PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "creator", + Receiver: "", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) + + pm = PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "creator", + Receiver: "test-1", + TokenIn: "", + TokenOut: "token-b", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) + + pm = PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "creator", + Receiver: "receiver", + TokenIn: "token-a", + TokenOut: "", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) + + pm = PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "creator", + Receiver: "receiver", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(0), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) + + pm = PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "creator", + Receiver: "receiver", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(-1), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nil, + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) + + pm = PacketMetadata{ + &SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: "creator", + Receiver: "receiver", + TokenIn: "token-a", + TokenOut: "token-b", + AmountIn: sdk.NewInt(123), + TickIndexInToOut: 0, + OrderType: types.LimitOrderType_GOOD_TIL_CANCELLED, + }, + Next: nil, + }, + } + _, err = json.Marshal(pm) + require.NoError(t, err) + require.Error(t, pm.Swap.Validate()) +} diff --git a/x/incentives/README GAUGES.md b/x/incentives/README GAUGES.md new file mode 100644 index 000000000..c7bbd8f52 --- /dev/null +++ b/x/incentives/README GAUGES.md @@ -0,0 +1,651 @@ +# Incentives + +## Abstract + +Incentives module provides general interface to give yield to stakers. + +The yield to be given to stakers are stored in `gauge` and it is distributed on epoch basis to the stakers who meet specific conditions. + +Anyone can create gauge and add rewards to the gauge, there is no way to take it out other than distribution. + +There are two kinds of `gauges`, perpetual and non-perpetual ones. + +- Non perpetual ones get removed from active queue after the the distribution period finish but perpetual ones persist. +- For non perpetual ones, they distribute the tokens equally per epoch during the `gauge` is in the active period. +- For perpetual ones, it distribute all the tokens at a single time and somewhere else put the tokens regularly to distribute the tokens, it's mainly used to distribute minted OSMO tokens to LP token stakers. + +## Contents + +1. **[Concept](#concepts)** +2. **[State](#state)** +3. **[Messages](#messages)** +4. **[Events](#events)** +5. **[Hooks](#hooks)** +6. **[Params](#parameters)** +7. **[Transactions](#transactions)** +8. **[Queries](#queries)** + +## Concepts + +The purpose of `incentives` module is to provide incentives to the users +who stake specific token for specific period of time. + +Staked tokens can be of any denomination, including LP tokens (gamm/pool/x), IBC tokens (tokens sent through IBC such as ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2), and native tokens (such as ATOM or LUNA). + +The incentive amount is entered by the gauge creator. Rewards for a given pool of staked up tokens are pooled into a gauge until the disbursement time. At the disbursement time, they are distributed pro-rata (proportionally) to members of the pool. + +Anyone can create a gauge and add rewards to the gauge. There is no way to withdraw gauge rewards other than distribution. Governance proposals can be raised to match the external incentive tokens with equivalent Osmo incentives (see for example: [proposal 47](https://www.mintscan.io/osmosis/proposals/47)). + +There are two kinds of gauges: **`perpetual`** and **`non-perpetual`**: + +- **`Non-perpetual`** gauges distribute their tokens equally per epoch while the gauge is in the active period. These gauges get removed from the active queue after the distribution period finishes + +- **`Perpetual gauges`** distribute all their tokens at a single time and only distribute their tokens again once the gauge is refilled (this is mainly used to distribute minted OSMO tokens to LP token stakers). Perpetual gauges persist and will re-disburse tokens when refilled (there is no "active" period) + +## State + +### Incentives management + +All the incentives that are going to be provided are staked into +`IncentivePool` until released to the appropriate recipients after a +specific period of time. + +### Gauge + +Rewards to be distributed are organized by `Gauge`. The `Gauge` +describes how users can get reward, stores the amount of coins in the +gauge, the cadence at which rewards are to be distributed, and the +number of epochs to distribute the reward over. + +```protobuf +enum StakeQueryType { + option (gogoproto.goproto_enum_prefix) = false; + + ByDuration = 0; // stakes which has more than specific duration + ByTime = 1; // stakes which are started before specific time +} + +message QueryCondition { + StakeQueryType stake_query_type = 1; // type of stake, ByStakeDuration | ByStakeTime + string denom = 2; // stake denom + google.protobuf.Duration duration = 3; // condition for stake duration, only valid if positive + google.protobuf.Timestamp timestamp = 4; // condition for stake start time, not valid if unset value +} + +message Gauge { + uint64 id = 1; // unique ID of a Gauge + QueryCondition distribute_to = 2; // distribute condition of a stake which meet one of these conditions + repeated cosmos.base.v1beta1.Coin coins = 3; // can distribute multiple coins + google.protobuf.Timestamp start_time = 4; // condition for stake start time, not valid if unset value + uint64 num_epochs_paid_over = 5; // number of epochs distribution will be done +} +``` + +### Gauge queues + +#### Upcoming queue + +To start release `Gauges` at a specific time, we schedule distribution +start time with time key queue. + +#### Active queue + +Active queue has all the `Gauges` that are distributing and after +distribution period finish, it's removed from the queue. + +#### Active by Denom queue + +To speed up the distribution process, module introduces the active +`Gauges` by denom. + +#### Finished queue + +Finished queue saves the `Gauges` that has finished distribution to keep +in track. + +#### Module state + +The state of the module is expressed by `params`, `stakeable_durations` +and `gauges`. + +```protobuf +// GenesisState defines the incentives module's genesis state. +message GenesisState { + // params defines all the parameters of the module + Params params = 1 [ (gogoproto.nullable) = false ]; + repeated Gauge gauges = 2 [ (gogoproto.nullable) = false ]; + repeated google.protobuf.Duration stakeable_durations = 3 [ + (gogoproto.nullable) = false, + (gogoproto.stdduration) = true, + (gogoproto.moretags) = "yaml:\"stakeable_durations\"" + ]; +} +``` + +## Messages + +### Create Gauge + +`MsgCreateGauge` can be submitted by any account to create a `Gauge`. + +```go +type MsgCreateGauge struct { + Owner sdk.AccAddress + DistributeTo QueryCondition + Rewards sdk.Coins + StartTime time.Time // start time to start distribution + NumEpochsPaidOver uint64 // number of epochs distribution will be done +} +``` + +**State modifications:** + +- Validate `Owner` has enough tokens for rewards +- Generate new `Gauge` record +- Save the record inside the keeper's time basis unstake queue +- Transfer the tokens from the `Owner` to incentives `ModuleAccount`. + +### Adding balance to Gauge + +`MsgAddToGauge` can be submitted by any account to add more incentives +to a `Gauge`. + +```go +type MsgAddToGauge struct { + GaugeID uint64 + Rewards sdk.Coins +} +``` + +**State modifications:** + +- Validate `Owner` has enough tokens for rewards +- Check if `Gauge` with specified `msg.GaugeID` is available +- Modify the `Gauge` record by adding `msg.Rewards` +- Transfer the tokens from the `Owner` to incentives `ModuleAccount`. + +## Events + +The incentives module emits the following events: + +### Handlers + +#### MsgCreateGauge + +| Type | Attribute Key | Attribute Value | +| ------------ | -------------------- | ------------------- | +| create_gauge | gauge_id | {gaugeID} | +| create_gauge | distribute_to | {owner} | +| create_gauge | rewards | {rewards} | +| create_gauge | start_time | {startTime} | +| create_gauge | num_epochs_paid_over | {numEpochsPaidOver} | +| message | action | create_gauge | +| message | sender | {owner} | +| transfer | recipient | {moduleAccount} | +| transfer | sender | {owner} | +| transfer | amount | {amount} | + +#### MsgAddToGauge + +| Type | Attribute Key | Attribute Value | +| ------------ | ------------- | --------------- | +| add_to_gauge | gauge_id | {gaugeID} | +| create_gauge | rewards | {rewards} | +| message | action | create_gauge | +| message | sender | {owner} | +| transfer | recipient | {moduleAccount} | +| transfer | sender | {owner} | +| transfer | amount | {amount} | + +### EndBlockers + +#### Incentives distribution + +| Type | Attribute Key | Attribute Value | +| ------------ | ------------- | --------------- | +| transfer\[\] | recipient | {receiver} | +| transfer\[\] | sender | {moduleAccount} | +| transfer\[\] | amount | {distrAmount} | + +## Hooks + +In this section we describe the "hooks" that `incentives` module provide +for other modules. + +If there's no usecase for this, we could ignore this. + +```go + AfterCreateGauge(ctx sdk.Context, gaugeId uint64) + AfterAddToGauge(ctx sdk.Context, gaugeId uint64) + AfterStartDistribution(ctx sdk.Context, gaugeId uint64) + AfterFinishDistribution(ctx sdk.Context, gaugeId uint64) + AfterDistribute(ctx sdk.Context, gaugeId uint64) +``` + +## Parameters + +The incentives module contains the following parameters: + +| Key | Type | Example | +| -------------------- | ------ | -------- | +| DistrEpochIdentifier | string | "weekly" | + +Note: DistrEpochIdentifier is a epoch identifier, and module distribute +rewards at the end of epochs. As `epochs` module is handling multiple +epochs, the identifier is required to check if distribution should be +done at `AfterEpochEnd` hook + +
    +
    + +## Transactions + +### create-gauge + +Create a gauge to distribute rewards to users + +```sh +osmosisd tx incentives create-gauge [stake_denom] [reward] [flags] +``` + +::: details Example 1 + +I want to make incentives for LP tokens of pool 3, namely gamm/pool/3 that have been staked up for at least 1 day. +I want to reward 100 AKT to this pool over 2 days (2 epochs). (50 rewarded on each day) +I want the rewards to start dispersing on 21 December 2021 (1640081402 UNIX time) + +```bash +osmosisd tx incentives create-gauge gamm/pool/3 10000ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 \ +--duration 24h --start-time 1640081402 --epochs 2 --from WALLET_NAME --chain-id osmosis-1 +``` + +::: + +::: details Example 2 + +I want to make incentives for ATOM (ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2) that have been staked up for at least 1 week (164h). +I want to reward 1000 JUNO (ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED) to ATOM holders perpetually (perpetually meaning I must add more tokens to this gauge myself every epoch). I want the reward to start dispersing immediately. + +```bash +osmosisd tx incentives create-gauge ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 \ +1000000000ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED --perpetual --duration 168h \ +--from WALLET_NAME --chain-id osmosis-1 +``` + +::: + +### add-to-gauge + +Add coins to a gauge previously created to distribute more rewards to users + +```sh +osmosisd tx incentives add-to-gauge [gauge_id] [rewards] [flags] +``` + +::: details Example + +I want to refill the gauge with 500 JUNO to a previously created gauge (gauge ID 1914) after the distribution. + +```bash +osmosisd tx incentives add-to-gauge 1914 500000000ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED \ +--from WALLET_NAME --chain-id osmosis-1 +``` + +::: + +## Queries + +In this section we describe the queries required on grpc server. + +```protobuf +// Query defines the gRPC QueryServer service. +service Query { + // returns coins that is going to be distributed + rpc GetModuleCoinsToBeDistributed(GetModuleCoinsToBeDistributedRequest) returns (GetModuleCoinsToBeDistributedResponse) {} + // returns Gauge by id + rpc GetGaugeByID(GetGaugeByIDRequest) returns (GetGaugeByIDResponse) {} + // returns gauges both upcoming and active + rpc Gauges(GetGaugesActiveUpcomingRequest) returns (GetGaugesActiveUpcomingResponse) {} + // returns active gauges + rpc ActiveGauges(ActiveGetGaugesActiveUpcomingRequest) returns (ActiveGetGaugesActiveUpcomingResponse) {} + // returns scheduled gauges + rpc UpcomingGauges(UpcomingGetGaugesActiveUpcomingRequest) returns (UpcomingGetGaugesActiveUpcomingResponse) {} + // RewardsEst returns an estimate of the rewards at a future specific time. + // The QueryServer either provides an address or a set of stakes + // for which they want to find the associated rewards. + rpc RewardsEst(RewardsEstRequest) returns (RewardsEstResponse) {} + // returns stakeable durations that are valid to give incentives + rpc StakeableDurations(QueryStakeableDurationsRequest) returns (QueryStakeableDurationsResponse) {} +} +``` + +### active-gauges + +Query active gauges + +```sh +osmosisd query incentives active-gauges [flags] +``` + +::: details Example + +```bash +osmosisd query incentives active-gauges +``` + +An example output + +```sh +- coins: [] + distribute_to: + denom: gamm/pool/99 + duration: 604800s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "297" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-07-03T12:27:09.323840990Z" +- coins: [] + distribute_to: + denom: gamm/pool/99 + duration: 1209600s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "298" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-07-03T12:27:09.323840990Z" +pagination: + next_key: BwEAAAAAAAAAHTIwMjEtMDctMDNUMTI6Mjc6MDkuMzIzODQwOTkw + total: "0" +... +``` + +::: + +### active-gauges-per-denom + +Query active gauges per denom + +```sh +osmosisd query incentives active-gauges-per-denom [denom] [flags] +``` + +::: details Example + +Query all active gauges distributing incentives to holders of gamm/pool/341 + +```bash +osmosisd query incentives active-gauges-per-denom gamm/pool/341 +``` + +An example output: + +```sh +- coins: [] + distribute_to: + denom: gamm/pool/341 + duration: 604800s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "1033" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-09-06T22:42:52.139465318Z" +- coins: [] + distribute_to: + denom: gamm/pool/341 + duration: 1209600s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "1034" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-09-06T22:42:52.139465318Z" +pagination: + next_key: BwEAAAAAAAAAHTIwMjEtMDctMDNUMTI6Mjc6MDkuMzIzODQwOTkw + total: "0" +... +``` + +::: + +### distributed-coins + +Query coins distributed so far + +```sh +osmosisd query incentives distributed-coins [flags] +``` + +::: details Example + +```bash +osmosisd query incentives distributed-coins +``` + +An example output: + +```sh +coins: +- amount: "27632051924" + denom: ibc/0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A +- amount: "3975960654" + denom: ibc/0EF15DF2F02480ADE0BB6E85D9EBB5DAEA2836D3860E9F97F9AADE4F57A31AA0 +- amount: "125999980901" + denom: ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 +- amount: "434999992789" + denom: ibc/1DC495FCEFDA068A3820F903EDBD78B942FBD204D7E93D3BA2B432E9669D1A59 +- amount: "3001296" + denom: ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 +- amount: "1493887986685" + denom: ibc/3BCCC93AD5DF58D11A6F8A05FA8BC801CBA0BA61A981F57E91B8B598BF8061CB +- amount: "372218215714" + denom: ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED +- amount: "1049999973206" + denom: ibc/4E5444C35610CC76FC94E7F7886B93121175C28262DDFDDE6F84E82BF2425452 +- amount: "11666666665116" + denom: ibc/7A08C6F11EF0F59EB841B9F788A87EC9F2361C7D9703157EC13D940DC53031FA +- amount: "13199999715662" + denom: ibc/9712DBB13B9631EDFA9BF61B55F1B2D290B2ADB67E3A4EB3A875F3B6081B3B84 +- amount: "1177777428443" + denom: ibc/D805F1DA50D31B96E4282C1D4181EDDFB1A44A598BFF5666F4B43E4B8BEA95A5 +- amount: "466666567747" + denom: ibc/EA3E1640F9B1532AB129A571203A0B9F789A7F14BB66E350DCBFA18E1A1931F0 +- amount: "79999999178" + denom: ibc/F3FF7A84A73B62921538642F9797C423D2B4C4ACB3C7FCFFCE7F12AA69909C4B +- amount: "65873607694598" + denom: uosmo +``` + +::: + +### gauge-by-id + +Query gauge by id + +```sh +osmosisd query incentives gauge-by-id [id] [flags] +``` + +::: details Example + +Query the incentive distribution for gauge ID 1: + +```sh +osmosisd query incentives gauge-by-id 1 +``` + +```bash +gauge: + coins: + - amount: "16654747773959" + denom: uosmo + distribute_to: + denom: gamm/pool/1 + duration: 86400s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: + - amount: "16589795315655" + denom: uosmo + filled_epochs: "182" + id: "1" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-06-19T04:30:19.082462364Z" +``` + +::: + +### gauges + +Query available gauges + +```sh +osmosisd query incentives gauges [flags] +``` + +::: details Example + +Query ALL gauges (by default the limit is 100, so here I will define a much larger number to output all gauges) + +```bash +osmosisd query incentives gauges --limit 2000 +``` + +An example output: + +```sh +- coins: + - amount: "1924196414964" + denom: uosmo + distribute_to: + denom: gamm/pool/348 + duration: 604800s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "8" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-10-04T13:59:02.142175968Z" +- coins: + - amount: "641398804181" + denom: uosmo + distribute_to: + denom: gamm/pool/348 + duration: 1209600s + stake_query_type: ByDuration + timestamp: "0001-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "9" + is_perpetual: true + num_epochs_paid_over: "1" + start_time: "2021-10-04T13:59:02.142175968Z" +pagination: + next_key: null + total: "0" +... +``` + +::: + +### rewards-estimation + +Query rewards estimation + +// Error: strconv.ParseUint: parsing "": invalid syntax + +### to-distribute-coins + +Query coins that is going to be distributed + +```sh +osmosisd query incentives to-distribute-coins [flags] +``` + +::: details Example + +```bash +osmosisd query incentives to-distribute-coins +``` + +An example output: + +```sh +coins: +- amount: "20000000" + denom: gamm/pool/87 +- amount: "90791948076" + denom: ibc/0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A +- amount: "10000" + denom: ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 +- amount: "1000" + denom: ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 +- amount: "10728832013315" + denom: ibc/3BCCC93AD5DF58D11A6F8A05FA8BC801CBA0BA61A981F57E91B8B598BF8061CB +- amount: "627782783496" + denom: ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED +- amount: "450000026794" + denom: ibc/4E5444C35610CC76FC94E7F7886B93121175C28262DDFDDE6F84E82BF2425452 +- amount: "38333333334884" + denom: ibc/7A08C6F11EF0F59EB841B9F788A87EC9F2361C7D9703157EC13D940DC53031FA +- amount: "46800000284338" + denom: ibc/9712DBB13B9631EDFA9BF61B55F1B2D290B2ADB67E3A4EB3A875F3B6081B3B84 +- amount: "2822222571557" + denom: ibc/D805F1DA50D31B96E4282C1D4181EDDFB1A44A598BFF5666F4B43E4B8BEA95A5 +- amount: "2533333432253" + denom: ibc/EA3E1640F9B1532AB129A571203A0B9F789A7F14BB66E350DCBFA18E1A1931F0 +- amount: "366164843847" + denom: uosmo +``` + +::: + +### upcoming-gauges + +Query scheduled gauges (gauges whose `start_time` has not yet occurred) + +```sh +osmosisd query incentives upcoming-gauges [flags] +``` + +::: details Example + +```bash +osmosisd query incentives upcoming-gauges +``` + +Using this command, we will see the gauge we created earlier, among all other upcoming gauges: + +```sh +- coins: + - amount: "10000" + denom: ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 + distribute_to: + denom: gamm/pool/3 + duration: 86400s + stake_query_type: ByDuration + timestamp: "1970-01-01T00:00:00Z" + distributed_coins: [] + filled_epochs: "0" + id: "1914" + is_perpetual: false + num_epochs_paid_over: "2" + start_time: "2021-12-21T10:10:02Z" +... +``` + +::: diff --git a/x/incentives/README LOCKUP.md b/x/incentives/README LOCKUP.md new file mode 100644 index 000000000..fbd2e8184 --- /dev/null +++ b/x/incentives/README LOCKUP.md @@ -0,0 +1,1054 @@ +# Stakeup + +## Abstract + +Stakeup module provides an interface for users to stake tokens (also known as bonding) into the module to get incentives. + +After tokens have been added to a specific pool and turned into LP shares through the GAMM module, users can then stake these LP shares with a specific duration in order to begin earing rewards. + +To unstake these LP shares, users must trigger the unstake timer and wait for the unstake period that was set initially to be completed. After the unstake period is over, users can turn LP shares back into their respective share of tokens. + +This module provides interfaces for other modules to iterate the stakes efficiently and grpc query to check the status of staked coins. + +## Contents + +1. **[Concept](#concepts)** +2. **[State](#state)** +3. **[Messages](#messages)** +4. **[Events](#events)** +5. **[Keeper](#keeper)** +6. **[Hooks](#hooks)** +7. **[Queries](#queries)** +8. **[Transactions](#transactions)** +9. **[Params](#params)** +10. **[Endbstakeer](#endbstakeer)** + +## Concepts + +The purpose of `stakeup` module is to provide the functionality to stake +tokens for specific period of time for LP token stakers to get +incentives. + +To unstake these LP shares, users must trigger the unstake timer and wait for the unstake period that was set initially to be completed. After the unstake period is over, users can turn LP shares back into their respective share of tokens. + +This module provides interfaces for other modules to iterate the stakes efficiently and grpc query to check the status of staked coins. + +There are currently three incentivize stakeup periods; `1 day` (24h), `1 week` (168h), and `2 weeks` (336h). When staking tokens in the 2 week period, the liquidity provider is effectively earning rewards for a combination of the 1 day, 1 week, and 2 week bonding periods. + +The 2 week period refers to how long it takes to unbond the LP shares. The liquidity provider can keep their LP shares bonded to the 2 week stakeup period indefinitely. Unbonding is only required when the liquidity provider desires access to the underlying assets. + +If the liquidity provider begins the unbonding process for their 2 week bonded LP shares, they will earn rewards for all three bonding periods during the first day of unbonding. + +After the first day passes, they will only receive rewards for the 1 day and 1 week stakeup periods. After seven days pass, they will only receive the 1 day rewards until the 2 weeks is complete and their LP shares are unstaked. The below chart is a visual example of what was just explained. + +
    +

    + +

    + +
    +
    + +## State + +### Staked coins management + +Staked coins are all stored in module account for `stakeup` module which +is called `StakePool`. When user stake coins within `stakeup` module, it's +moved from user account to `StakePool` and a record (`PeriodStake` struct) +is created. + +Once the period is over, user can withdraw it at anytime from +`StakePool`. User can withdraw by PeriodStake ID or withdraw all +`UnstakeableCoins` at a time. + +### Period Stake + +A `PeriodStake` is a single unit of stake by period. It's a record of +staked coin at a specific time. It stores owner, duration, unstake time +and the amount of coins staked. + +``` {.go} +type PeriodStake struct { + ID uint64 + Owner sdk.AccAddress + Duration time.Duration + UnstakeTime time.Time + Coins sdk.Coins +} +``` + +All stakes are stored on the KVStore as value at +`{KeyPrefixPeriodStake}{ID}` key. + +### Period stake reference queues + +To provide time efficient queries, several reference queues are managed +by denom, unstake time, and duration. There are two big queues to store +the stake references. (`a_prefix_key`) + +1. Stake references that hasn't started with unstaking yet has prefix of + `KeyPrefixNotUnstaking`. +2. Stake references that has started unstaking already has prefix of + `KeyPrefixUnstaking`. +3. Stake references that has withdrawn, it's removed from the store. + +Regardless the stake has started unstaking or not, it stores below +references. (`b_prefix_key`) + +1. `{KeyPrefixStakeDuration}{Duration}` +2. `{KeyPrefixAccountStakeDuration}{Owner}{Duration}` +3. `{KeyPrefixDenomStakeDuration}{Denom}{Duration}` +4. `{KeyPrefixAccountDenomStakeDuration}{Owner}{Denom}{Duration}` + +If the stake is unstaking, it also stores the below references. + +1. `{KeyPrefixStakeTimestamp}{StakeEndTime}` +2. `{KeyPrefixAccountStakeTimestamp}{Owner}{StakeEndTime}` +3. `{KeyPrefixDenomStakeTimestamp}{Denom}{StakeEndTime}` +4. `{KeyPrefixAccountDenomStakeTimestamp}{Owner}{Denom}{StakeEndTime}` + +For end time keys, they are converted to sortable string by using +`sdk.FormatTimeBytes` function. + +**Note:** Additionally, for stakes that hasn't started unstaking yet, it +stores accumulation store for efficient rewards distribution mechanism. + +For reference management, `addStakeRefByKey` function is used a lot. Here +key is the prefix key to be used for iteration. It is combination of two +prefix keys.(`{a_prefix_key}{b_prefix_key}`) + +``` {.go} +// addStakeRefByKey make a stakeID iterable with the prefix `key` +func (k Keeper) addStakeRefByKey(ctx sdk.Context, key []byte, stakeID uint64) error { + store := ctx.KVStore(k.storeKey) + stakeIDBz := sdk.Uint64ToBigEndian(stakeID) + endKey := combineKeys(key, stakeIDBz) + if store.Has(endKey) { + return fmt.Errorf("stake with same ID exist: %d", stakeID) + } + store.Set(endKey, stakeIDBz) + return nil +} +``` + +## Messages + +### Stake Tokens + +`MsgStake` can be submitted by any token holder via a +`MsgStake` transaction. + +``` {.go} +type MsgStake struct { + Owner sdk.AccAddress + Duration time.Duration + Coins sdk.Coins +} +``` + +**State modifications:** + +- Validate `Owner` has enough tokens +- Generate new `PeriodStake` record +- Save the record inside the keeper's time basis unstake queue +- Transfer the tokens from the `Owner` to stakeup `ModuleAccount`. + +### Begin Unstake of all stakes + +Once time is over, users can withdraw unstaked coins from stakeup +`ModuleAccount`. + +``` {.go} +type MsgBeginUnstakingAll struct { + Owner string +} +``` + +**State modifications:** + +- Fetch all unstakeable `PeriodStake`s that has not started unstaking + yet +- Set `PeriodStake`'s unstake time +- Remove stake references from `NotUnstaking` queue +- Add stake references to `Unstaking` queue + +### Begin unstake for a stake + +Once time is over, users can withdraw unstaked coins from stakeup +`ModuleAccount`. + +``` {.go} +type MsgUnstake struct { + Owner string + ID uint64 +} +``` + +**State modifications:** + +- Check `PeriodStake` with `ID` specified by `MsgUnstake` is not + started unstaking yet +- Set `PeriodStake`'s unstake time +- Remove stake references from `NotUnstaking` queue +- Add stake references to `Unstaking` queue + +Note: If another module needs past `PeriodStake` item, it can log the +details themselves using the hooks. + +## Events + +The stakeup module emits the following events: + +### Handlers + +#### MsgStake + +| Type | Attribute Key | Attribute Value | +| --------------| ------------------| -----------------| +| stake\_tokens | period\_stake\_id | {periodStakeID} | +| stake\_tokens | owner | {owner} | +| stake\_tokens | amount | {amount} | +| stake\_tokens | duration | {duration} | +| stake\_tokens | unstake\_time | {unstakeTime} | +| message | action | stake\_tokens | +| message | sender | {owner} | +| transfer | recipient | {moduleAccount} | +| transfer | sender | {owner} | +| transfer | amount | {amount} | + +#### MsgUnstake + +| Type | Attribute Key | Attribute Value | +| ---------------| ------------------| ------------------| +| begin\_unstake | period\_stake\_id | {periodStakeID} | +| begin\_unstake | owner | {owner} | +| begin\_unstake | amount | {amount} | +| begin\_unstake | duration | {duration} | +| begin\_unstake | unstake\_time | {unstakeTime} | +| message | action | begin\_unstaking | +| message | sender | {owner} | + +#### MsgBeginUnstakingAll + +| Type | Attribute Key | Attribute Value | +| --------------------| ------------------| -----------------------| +| begin\_unstake\_all | owner | {owner} | +| begin\_unstake\_all | unstaked\_coins | {unstakedCoins} | +| begin\_unstake | period\_stake\_id | {periodStakeID} | +| begin\_unstake | owner | {owner} | +| begin\_unstake | amount | {amount} | +| begin\_unstake | duration | {duration} | +| begin\_unstake | unstake\_time | {unstakeTime} | +| message | action | begin\_unstaking\_all | +| message | sender | {owner} | + +### Endbstakeer + +#### Automatic withdraw when unstake time mature + +| Type | Attribute Key | Attribute Value | +| ----------------| ------------------| -----------------| +| message | action | unstake\_tokens | +| message | sender | {owner} | +| transfer\[\] | recipient | {owner} | +| transfer\[\] | sender | {moduleAccount} | +| transfer\[\] | amount | {unstakeAmount} | +| unstake\[\] | period\_stake\_id | {owner} | +| unstake\[\] | owner | {stakeID} | +| unstake\[\] | duration | {stakeDuration} | +| unstake\[\] | unstake\_time | {unstakeTime} | +| unstake\_tokens | owner | {owner} | +| unstake\_tokens | unstaked\_coins | {totalAmount} | + +## Keepers + +### Stakeup Keeper + +Stakeup keeper provides utility functions to store stake queues and query +stakes. + +```go +// Keeper is the interface for stakeup module keeper +type Keeper interface { + // GetModuleBalance Returns full balance of the module + GetModuleBalance(sdk.Context) sdk.Coins + // GetModuleStakedCoins Returns staked balance of the module + GetModuleStakedCoins(sdk.Context) sdk.Coins + // GetAccountUnstakeableCoins Returns whole unstakeable coins which are not withdrawn yet + GetAccountUnstakeableCoins(sdk.Context, addr sdk.AccAddress) sdk.Coins + // GetAccountUnstakingCoins Returns whole unstaking coins + GetAccountUnstakingCoins(sdk.Context, addr sdk.AccAddress) sdk.Coins + // GetAccountStakedCoins Returns a staked coins that can't be withdrawn + GetAccountStakedCoins(sdk.Context, addr sdk.AccAddress) sdk.Coins + // GetAccountStakedPastTime Returns the total stakes of an account whose unstake time is beyond timestamp + GetAccountStakedPastTime(sdk.Context, addr sdk.AccAddress, timestamp time.Time) []types.PeriodStake + // GetAccountUnstakedBeforeTime Returns the total unstakes of an account whose unstake time is before timestamp + GetAccountUnstakedBeforeTime(sdk.Context, addr sdk.AccAddress, timestamp time.Time) []types.PeriodStake + // GetAccountStakedPastTimeDenom is equal to GetAccountStakedPastTime but denom specific + GetAccountStakedPastTimeDenom(ctx sdk.Context, addr sdk.AccAddress, denom string, timestamp time.Time) []types.PeriodStake + + // GetAccountStakedLongerDuration Returns account staked with duration longer than specified + GetAccountStakedLongerDuration(sdk.Context, addr sdk.AccAddress, duration time.Duration) []types.PeriodStake + // GetAccountStakedLongerDurationDenom Returns account staked with duration longer than specified with specific denom + GetAccountStakedLongerDurationDenom(sdk.Context, addr sdk.AccAddress, denom string, duration time.Duration) []types.PeriodStake + // GetStakesPastTimeDenom Returns the stakes whose unstake time is beyond timestamp + GetStakesPastTimeDenom(ctx sdk.Context, addr sdk.AccAddress, denom string, timestamp time.Time) []types.PeriodStake + // GetStakesLongerThanDurationDenom Returns the stakes whose unstake duration is longer than duration + GetStakesLongerThanDurationDenom(ctx sdk.Context, addr sdk.AccAddress, denom string, duration time.Duration) []types.PeriodStake + // GetStakeByID Returns stake from stakeID + GetStakeByID(sdk.Context, stakeID uint64) (*types.PeriodStake, error) + // GetPeriodStakes Returns the period stakes on pool + GetPeriodStakes(sdk.Context) ([]types.PeriodStake, error) + // UnstakeAllUnstakeableCoins Unstake all unstakeable coins + UnstakeAllUnstakeableCoins(sdk.Context, account sdk.AccAddress) (sdk.Coins, error) + // StakeTokens stake tokens from an account for specified duration + StakeTokens(sdk.Context, owner sdk.AccAddress, coins sdk.Coins, duration time.Duration) (types.PeriodStake, error) + // AddTokensToStake stakes more tokens into a stakeup + AddTokensToStake(ctx sdk.Context, owner sdk.AccAddress, stakeID uint64, coins sdk.Coins) (*types.PeriodStake, error) + // Stake is a utility to stake coins into module account + Stake(sdk.Context, stake types.PeriodStake) error + // Unstake is a utility to unstake coins from module account + Unstake(sdk.Context, stake types.PeriodStake) error +``` + +## Hooks + +In this section we describe the "hooks" that `stakeup` module provide for +other modules. + +### Tokens Staked + +On stake/unstake events, stakeup module execute hooks for other modules to +make following actions. + +``` go + OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, stakeDuration time.Duration, unstakeTime time.Time) + OnTokenUnstaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, stakeDuration time.Duration, unstakeTime time.Time) +``` + +## Parameters + +The stakeup module contains the following parameters: + +| Key | Type | Example | +| ---------------------- | --------------- | ------- | + +Note: Currently no parameters are set for `stakeup` module, we will need +to move stakeable durations from incentives module to stakeup module. + +## Endbstakeer + +### Withdraw tokens after unstake time mature + +Once time is over, endbstakeer withdraw coins from matured stakes and +coins are sent from stakeup `ModuleAccount`. + +**State modifications:** + +- Fetch all unstakeable `PeriodStake`s that `Owner` has not withdrawn + yet +- Remove `PeriodStake` records from the state +- Transfer the tokens from stakeup `ModuleAccount` to the + `MsgUnstakeTokens.Owner`. + +### Remove synthetic stakes after removal time mature + +For synthetic stakes, no coin movement is made, but stakeup record and +reference queues are removed. + + +## Transactions + +### stake-tokens + +Bond tokens in a LP for a set duration + +```sh +dualityd tx stakeup stake-tokens [tokens] --duration --from --chain-id +``` + +::: details Example + +To stakeup `15.527546134174465309gamm/pool/3` tokens for a `one day` bonding period from `WALLET_NAME` on the osmosis mainnet: + +```bash +dualityd tx stakeup stake-tokens 15527546134174465309gamm/pool/3 --duration="24h" --from WALLET_NAME --chain-id osmosis-1 +``` + +To stakeup `25.527546134174465309gamm/pool/13` tokens for a `one week` bonding period from `WALLET_NAME` on the osmosis testnet: + +```bash +dualityd tx stakeup stake-tokens 25527546134174465309gamm/pool/13 --duration="168h" --from WALLET_NAME --chain-id osmo-test-4 +``` + +To stakeup `35.527546134174465309 gamm/pool/197` tokens for a `two week` bonding period from `WALLET_NAME` on the osmosis mainnet: + +```bash +dualityd tx stakeup stake-tokens 35527546134174465309gamm/pool/197 --duration="336h" --from WALLET_NAME --chain-id osmosis-1 +``` +::: + + +### begin-unstake-by-id + +Begin the unbonding process for tokens given their unique stake ID + +```sh +dualityd tx stakeup begin-unstake-by-id [id] --from --chain-id +``` + +::: details Example + +To begin the unbonding time for all bonded tokens under id `75` from `WALLET_NAME` on the osmosis mainnet: + +```bash +dualityd tx stakeup begin-unstake-by-id 75 --from WALLET_NAME --chain-id osmosis-1 +``` +::: +::: warning Note +The ID corresponds to the unique ID given to your stakeup transaction (explained more in stake-by-id section) +::: + +### begin-unstake-tokens + +Begin unbonding process for all bonded tokens in a wallet + +```sh +dualityd tx stakeup begin-unstake-tokens --from --chain-id +``` + +::: details Example + +To begin unbonding time for ALL pools and ALL bonded tokens in `WALLET_NAME` on the osmosis mainnet: + + +```bash +dualityd tx stakeup begin-unstake-tokens --from=WALLET_NAME --chain-id=osmosis-1 --yes +``` +::: + +## Queries + +In this section we describe the queries required on grpc server. + +``` protobuf +// Query defines the gRPC QueryServer service. +service Query { + // Return full balance of the module + rpc ModuleBalance(ModuleBalanceRequest) returns (ModuleBalanceResponse); + // Return staked balance of the module + rpc ModuleStakedAmount(ModuleStakedAmountRequest) returns (ModuleStakedAmountResponse); + + // Returns unstakeable coins which are not withdrawn yet + rpc AccountUnstakeableCoins(AccountUnstakeableCoinsRequest) returns (AccountUnstakeableCoinsResponse); + // Returns unstaking coins + rpc AccountUnstakingCoins(AccountUnstakingCoinsRequest) returns (AccountUnstakingCoinsResponse) {} + // Return a staked coins that can't be withdrawn + rpc AccountStakedCoins(AccountStakedCoinsRequest) returns (AccountStakedCoinsResponse); + + // Returns staked records of an account with unstake time beyond timestamp + rpc AccountStakedPastTime(AccountStakedPastTimeRequest) returns (AccountStakedPastTimeResponse); + // Returns staked records of an account with unstake time beyond timestamp excluding tokens started unstaking + rpc AccountStakedPastTimeNotUnstakingOnly(AccountStakedPastTimeNotUnstakingOnlyRequest) returns (AccountStakedPastTimeNotUnstakingOnlyResponse) {} + // Returns unstaked records with unstake time before timestamp + rpc AccountUnstakedBeforeTime(AccountUnstakedBeforeTimeRequest) returns (AccountUnstakedBeforeTimeResponse); + + // Returns stake records by address, timestamp, denom + rpc AccountStakedPastTimeDenom(AccountStakedPastTimeDenomRequest) returns (AccountStakedPastTimeDenomResponse); + // Returns stake record by id + rpc StakedByID(StakedRequest) returns (StakedResponse); + + // Returns account staked records with longer duration + rpc AccountStakedLongerDuration(AccountStakedLongerDurationRequest) returns (AccountStakedLongerDurationResponse); + // Returns account staked records with longer duration excluding tokens started unstaking + rpc AccountStakedLongerDurationNotUnstakingOnly(AccountStakedLongerDurationNotUnstakingOnlyRequest) returns (AccountStakedLongerDurationNotUnstakingOnlyResponse) {} + // Returns account's staked records for a denom with longer duration + rpc AccountStakedLongerDurationDenom(AccountStakedLongerDurationDenomRequest) returns (AccountStakedLongerDurationDenomResponse); + + // Returns account staked records with a specific duration + rpc AccountStakedDuration(AccountStakedDurationRequest) returns (AccountStakedDurationResponse); +} +``` + +### account-staked-beforetime + +Query an account's unstaked records after a specified time (UNIX) has passed + +In other words, if an account unstaked all their bonded tokens the moment the query was executed, only the stakes that would have completed their bond time requirement by the time the `TIMESTAMP` is reached will be returned. + +::: details Example + +In this example, the current UNIX time is `1639776682`, 2 days from now is approx `1639971082`, and 15 days from now is approx `1641094282`. + +An account's `ADDRESS` is staked in both the `1 day` and `1 week` gamm/pool/3. To query the `ADDRESS` with a timestamp 2 days from now `1639971082`: + +```bash +dualityd query stakeup account-staked-beforetime ADDRESS 1639971082 +``` + +In this example will output the `1 day` stake but not the `1 week` stake: + +```bash +stakes: +- ID: "571839" + coins: + - amount: "15527546134174465309" + denom: gamm/pool/3 + duration: 24h + end_time: "2021-12-18T23:32:58.900715388Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +If querying the same `ADDRESS` with a timestamp 15 days from now `1641094282`: + +```bash +dualityd query stakeup account-staked-beforetime ADDRESS 1641094282 +``` + +In this example will output both the `1 day` and `1 week` stake: + +```bash +stakes: +- ID: "572027" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +- ID: "571839" + coins: + - amount: "15527546134174465309" + denom: gamm/pool/3 + duration: 24h + end_time: "2021-12-18T23:32:58.900715388Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` +::: + + +### account-staked-coins + +Query an account's staked (bonded) LP tokens + +```sh +dualityd query stakeup account-staked-coins [address] +``` + +:::: details Example + +```bash +dualityd query stakeup account-staked-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +An example output: + +```bash +coins: +- amount: "413553955105681228583" + denom: gamm/pool/1 +- amount: "32155370994266157441309" + denom: gamm/pool/10 +- amount: "220957857520769912023" + denom: gamm/pool/3 +- amount: "31648237936933949577" + denom: gamm/pool/42 +- amount: "14162624050980051053569" + denom: gamm/pool/5 +- amount: "1023186951315714985896914" + denom: gamm/pool/9 +``` +::: warning Note +All GAMM amounts listed are 10^18. Move the decimal place to the left 18 places to get the GAMM amount listed in the GUI. + +You may also specify a --height flag to see bonded LP tokens at a specified height (note: if running a pruned node, this may result in an error) +::: +:::: + +### account-staked-longer-duration + +Query an account's staked records that are greater than or equal to a specified stake duration + +```sh +dualityd query stakeup account-staked-longer-duration [address] [duration] +``` + +::: details Example + +Here is an example of querying an `ADDRESS` for all `1 day` or greater bonding periods: + +```bash +dualityd query stakeup account-staked-longer-duration osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h +``` + +An example output: + +```bash +stakes: +- ID: "572027" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +- ID: "571839" + coins: + - amount: "15527546134174465309" + denom: gamm/pool/3 + duration: 24h + end_time: "2021-12-18T23:32:58.900715388Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` +::: + + +### account-staked-longer-duration-denom + +Query an account's staked records for a denom that is staked equal to or greater than the specified duration AND match a specified denom + +```sh +dualityd query stakeup account-staked-longer-duration-denom [address] [duration] [denom] +``` + +::: details Example + +Here is an example of an `ADDRESS` that is staked in both the `1 day` and `1 week` for both the gamm/pool/3 and gamm/pool/1, then queries the `ADDRESS` for all bonding periods equal to or greater than `1 day` for just the gamm/pool/3: + +```bash +dualityd query stakeup account-staked-longer-duration-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h gamm/pool/3 +``` + +An example output: + +```bash +stakes: +- ID: "571839" + coins: + - amount: "15527546134174465309" + denom: gamm/pool/3 + duration: 24h + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +- ID: "572027" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +As shown, the gamm/pool/3 is returned but not the gamm/pool/1 due to the denom filter. +::: + + +### account-staked-longer-duration-not-unstaking + +Query an account's staked records for a denom that is staked equal to or greater than the specified duration AND is not in the process of being unstaked + +```sh +dualityd query stakeup account-staked-longer-duration-not-unstaking [address] [duration] +``` + +::: details Example + +Here is an example of an `ADDRESS` that is staked in both the `1 day` and `1 week` gamm/pool/3, begins unstaking process for the `1 day` bond, and queries the `ADDRESS` for all bonding periods equal to or greater than `1 day` that are not unbonding: + +```bash +dualityd query stakeup account-staked-longer-duration-not-unstaking osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h +``` + +An example output: + +```bash +stakes: +- ID: "571839" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +The `1 day` bond does not show since it is in the process of unbonding. +::: + + +### account-staked-pasttime + +Query the staked records of an account with the unstake time beyond timestamp (UNIX) + +```bash +dualityd query stakeup account-staked-pasttime [address] [timestamp] +``` + +::: details Example + +Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) + +```bash +dualityd query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 +``` + +The example output: + +```bash +stakes: +- ID: "572027" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +Note that the `1 day` stake ID did not display because, if the unbonding time began counting down from the time the command was executed, the bonding period would be complete before the two day window given by the UNIX timestamp input. +::: + + +### account-staked-pasttime-denom + +Query the staked records of an account with the unstake time beyond timestamp (unix) and filter by a specific denom + +```bash +dualityd query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 [timestamp] [denom] +``` + +::: details Example + +Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3 and `1 day` and `1 week` gamm/pool/1. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) and filters for gamm/pool/3 + +```bash +dualityd query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 gamm/pool/3 +``` + +The example output: + +```bash +stakes: +- ID: "572027" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +Note that the `1 day` stake ID did not display because, if the unbonding time began counting down from the time the command was executed, the bonding period would be complete before the two day window given by the UNIX timestamp input. Additionally, neither of the `1 day` or `1 week` stake IDs for gamm/pool/1 showed due to the denom filter. +::: + + +### account-staked-pasttime-not-unstaking + +Query the staked records of an account with the unstake time beyond timestamp (unix) AND is not in the process of unstaking + +```sh +dualityd query stakeup account-staked-pasttime [address] [timestamp] +``` + +::: details Example + +Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) AND is not unstaking: + +```bash +dualityd query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 +``` + +The example output: + +```bash +stakes: +- ID: "572027" + coins: + - amount: "16120691802759484268" + denom: gamm/pool/3 + duration: 604800.000006193s + end_time: "0001-01-01T00:00:00Z" + owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +Note that the `1 day` stake ID did not display because, if the unbonding time began counting down from the time the command was executed, the bonding period would be complete before the two day window given by the UNIX timestamp input. Additionally, if ID 572027 were to begin the unstaking process, the query would have returned blank. +::: + + +### account-unstakeable-coins + +Query an address's LP shares that have completed the unstaking period and are ready to be withdrawn + +```bash +dualityd query stakeup account-unstakeable-coins ADDRESS +``` + + + +### account-unstaking-coins + +Query an address's LP shares that are currently unstaking + +```sh +dualityd query stakeup account-unstaking-coins [address] +``` + +::: details Example + +```bash +dualityd query stakeup account-unstaking-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +``` + +Example output: + +```bash +coins: +- amount: "15527546134174465309" + denom: gamm/pool/3 +``` +::: + + +### stake-by-id + +Query a stake record by its ID + +```sh +dualityd query stakeup stake-by-id [id] +``` + +::: details Example + +Every time a user bonds tokens to an LP, a unique stake ID is created for that transaction. + +Here is an example viewing the stake record for ID 9: + +```bash +dualityd query stakeup stake-by-id 9 +``` + +And its output: + +```bash +stake: + ID: "9" + coins: + - amount: "2449472670508255020346507" + denom: gamm/pool/2 + duration: 336h + end_time: "0001-01-01T00:00:00Z" + owner: osmo16r39ghhwqjcwxa8q3yswlz8jhzldygy66vlm82 +``` + +In summary, this shows wallet `osmo16r39ghhwqjcwxa8q3yswlz8jhzldygy66vlm82` bonded `2449472.670 gamm/pool/2` LP shares for a `2 week` staking period. +::: + + +### module-balance + +Query the balance of all LP shares (bonded and unbonded) + +```sh +dualityd query stakeup module-balance +``` + +::: details Example + +```bash +dualityd query stakeup module-balance +``` + +An example output: + +```bash +coins: +- amount: "118851922644152734549498647" + denom: gamm/pool/1 +- amount: "2165392672114512349039263626" + denom: gamm/pool/10 +- amount: "9346769826591025900804" + denom: gamm/pool/13 +- amount: "229347389639275840044722315" + denom: gamm/pool/15 +- amount: "81217698776012800247869" + denom: gamm/pool/183 +- amount: "284253336860259874753775" + denom: gamm/pool/197 +- amount: "664300804648059580124426710" + denom: gamm/pool/2 +- amount: "5087102794776326441530430" + denom: gamm/pool/22 +- amount: "178900843925960029029567880" + denom: gamm/pool/3 +- amount: "64845148811263846652326124" + denom: gamm/pool/4 +- amount: "177831279847453210600513" + denom: gamm/pool/42 +- amount: "18685913727862493301261661338" + denom: gamm/pool/5 +- amount: "23579028640963777558149250419" + denom: gamm/pool/6 +- amount: "1273329284855460149381904976" + denom: gamm/pool/7 +- amount: "625252103927082207683116933" + denom: gamm/pool/8 +- amount: "1148475247281090606949382402" + denom: gamm/pool/9 +``` +::: + + +### module-staked-amount + +Query the balance of all bonded LP shares + +```sh +dualityd query stakeup module-staked-amount +``` + +::: details Example + +```bash +dualityd query stakeup module-staked-amount +``` + +An example output: + +```bash + + "coins": + { + "denom": "gamm/pool/1", + "amount": "247321084020868094262821308" + }, + { + "denom": "gamm/pool/10", + "amount": "2866946821820635047398966697" + }, + { + "denom": "gamm/pool/13", + "amount": "9366580741745176812984" + }, + { + "denom": "gamm/pool/15", + "amount": "193294911294343602187680438" + }, + { + "denom": "gamm/pool/183", + "amount": "196722012808526595790871" + }, + { + "denom": "gamm/pool/197", + "amount": "1157025085661167198918241" + }, + { + "denom": "gamm/pool/2", + "amount": "633051132033131378888258047" + }, + { + "denom": "gamm/pool/22", + "amount": "3622601406125950733194696" + }, +... + +``` + +NOTE: This command seems to only work on gRPC and on CLI returns an EOF error. +::: + + + +### output-all-stakes + +Output all stakes into a json file + +```sh +dualityd query stakeup output-all-stakes [max stake ID] +``` + +:::: details Example + +This example command outputs stakes 1-1000 and saves to a json file: + +```bash +dualityd query stakeup output-all-stakes 1000 +``` +::: warning Note +If a stakeup has been completed, the stakeup status will show as "0" (or successful) and no further information will be available. To get further information on a completed stake, run the stake-by-id query. +::: +:::: + + +### total-staked-of-denom + +Query staked amount for a specific denom in the duration provided + +```sh +dualityd query stakeup total-staked-of-denom [denom] --min-duration +``` + +:::: details Example + +This example command outputs the amount of `gamm/pool/2` LP shares that staked in the `2 week` bonding period: + +```bash +dualityd query stakeup total-staked-of-denom gamm/pool/2 --min-duration "336h" +``` + +Which, at the time of this writing outputs `14106985399822075248947045` which is equivalent to `14106985.3998 gamm/pool/2` + +NOTE: As of this writing, there is a bug that defaults the min duration to days instead of seconds. Ensure you specify the time in seconds to get the correct response. +::: + +## Commands + +```sh +# 1 day 100stake stake-tokens command +dualityd tx stakeup stake-tokens 200stake --duration="86400s" --from=validator --chain-id=testing --keyring-backend=test --yes + +# 5s 100stake stake-tokens command +dualityd tx stakeup stake-tokens 100stake --duration="5s" --from=validator --chain-id=testing --keyring-backend=test --yes + +# begin unstake tokens, NOTE: add more gas when unstaking more than two stakes in a same command +dualityd tx stakeup begin-unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes + +# unstake tokens, NOTE: add more gas when unstaking more than two stakes in a same command +dualityd tx stakeup unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes + +# unstake specific period stake +dualityd tx stakeup unstake-by-id 1 --from=validator --chain-id=testing --keyring-backend=test --yes + +# account balance +dualityd query bank balances $(dualityd keys show -a validator --keyring-backend=test) + +# query module balance +dualityd query stakeup module-balance + +# query staked amount +dualityd query stakeup module-staked-amount + +# query stake by id +dualityd query stakeup stake-by-id 1 + +# query account unstakeable coins +dualityd query stakeup account-unstakeable-coins $(dualityd keys show -a validator --keyring-backend=test) + +# query account stakes by denom past time +dualityd query stakeup account-staked-pasttime-denom $(dualityd keys show -a validator --keyring-backend=test) 1611879610 stake + +# query account stakes past time +dualityd query stakeup account-staked-pasttime $(dualityd keys show -a validator --keyring-backend=test) 1611879610 + +# query account stakes by denom with longer duration +dualityd query stakeup account-staked-longer-duration-denom $(dualityd keys show -a validator --keyring-backend=test) 5.1s stake + +# query account stakes with longer duration +dualityd query stakeup account-staked-longer-duration $(dualityd keys show -a validator --keyring-backend=test) 5.1s + +# query account staked coins +dualityd query stakeup account-staked-coins $(dualityd keys show -a validator --keyring-backend=test) + +# query account stakes before time +dualityd query stakeup account-staked-beforetime $(dualityd keys show -a validator --keyring-backend=test) 1611879610 +``` diff --git a/x/incentives/client/cli/cli_test.go b/x/incentives/client/cli/cli_test.go new file mode 100644 index 000000000..473b37297 --- /dev/null +++ b/x/incentives/client/cli/cli_test.go @@ -0,0 +1,351 @@ +package cli_test + +import ( + "fmt" + "testing" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/utils" + "github.com/neutron-org/neutron/utils/dcli" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/client/cli" + "github.com/neutron-org/neutron/x/incentives/types" +) + +var testAddresses = utils.CreateRandomAccounts(3) + +// Queries //////////////////////////////////////////////////////////////////// + +func TestGetCmdGetModuleStatus(t *testing.T) { + desc, _ := cli.GetCmdGetModuleStatus() + tcs := map[string]dcli.QueryCliTestCase[*types.GetModuleStatusRequest]{ + "basic test": { + ExpectedQuery: &types.GetModuleStatusRequest{}, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdGetGaugeByID(t *testing.T) { + desc, _ := cli.GetCmdGetGaugeByID() + tcs := map[string]dcli.QueryCliTestCase[*types.GetGaugeByIDRequest]{ + "basic test": { + Cmd: "1", ExpectedQuery: &types.GetGaugeByIDRequest{Id: 1}, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdGauges(t *testing.T) { + desc, _ := cli.GetCmdGauges() + tcs := map[string]dcli.QueryCliTestCase[*types.GetGaugesRequest]{ + "test ACTIVE_UPCOMING": { + Cmd: "ACTIVE_UPCOMING TokenA", + ExpectedQuery: &types.GetGaugesRequest{ + Status: types.GaugeStatus_ACTIVE_UPCOMING, + Denom: "TokenA", + }, + }, + "test UPCOMING": { + Cmd: "UPCOMING TokenA", + ExpectedQuery: &types.GetGaugesRequest{ + Status: types.GaugeStatus_UPCOMING, + Denom: "TokenA", + }, + }, + "test FINISHED": { + Cmd: "FINISHED TokenA", + ExpectedQuery: &types.GetGaugesRequest{ + Status: types.GaugeStatus_FINISHED, + Denom: "TokenA", + }, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdGetStakeByID(t *testing.T) { + desc, _ := cli.GetCmdGetStakeByID() + tcs := map[string]dcli.QueryCliTestCase[*types.GetStakeByIDRequest]{ + "basic test": { + Cmd: "1", ExpectedQuery: &types.GetStakeByIDRequest{StakeId: 1}, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdStakes(t *testing.T) { + desc, _ := cli.GetCmdStakes() + tcs := map[string]dcli.QueryCliTestCase[*types.GetStakesRequest]{ + "basic test": { + Cmd: fmt.Sprintf("%s", testAddresses[0]), + ExpectedQuery: &types.GetStakesRequest{ + Owner: testAddresses[0].String(), + }, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdFutureRewardEstimate(t *testing.T) { + desc, _ := cli.GetCmdGetFutureRewardEstimate() + tcs := map[string]dcli.QueryCliTestCase[*types.GetFutureRewardEstimateRequest]{ + "basic test": { + Cmd: fmt.Sprintf("%s [1,2,3] 1000", testAddresses[0]), + ExpectedQuery: &types.GetFutureRewardEstimateRequest{ + Owner: testAddresses[0].String(), + StakeIds: []uint64{1, 2, 3}, + NumEpochs: 1000, + }, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetAccountHistory(t *testing.T) { + desc, _ := cli.GetCmdGetAccountHistory() + tcs := map[string]dcli.QueryCliTestCase[*types.GetAccountHistoryRequest]{ + "basic test": { + Cmd: fmt.Sprintf("%s", testAddresses[0]), + ExpectedQuery: &types.GetAccountHistoryRequest{ + Account: testAddresses[0].String(), + }, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetGaugeQualifyingValue(t *testing.T) { + desc, _ := cli.GetCmdGaugeQualifyingValue() + tcs := map[string]dcli.QueryCliTestCase[*types.GetGaugeQualifyingValueRequest]{ + "basic test": { + Cmd: "1", + ExpectedQuery: &types.GetGaugeQualifyingValueRequest{ + Id: 1, + }, + }, + } + dcli.RunQueryTestCases(t, desc, tcs) +} + +// TXS //////////////////////////////////////////////////////////////////////// + +func TestNewCreateGaugeCmd(t *testing.T) { + testTime := time.Unix(1681505514, 0).UTC() + desc, _ := cli.NewCreateGaugeCmd() + tcs := map[string]dcli.TxCliTestCase[*types.MsgCreateGauge]{ + "basic test": { + Cmd: fmt.Sprintf( + "TokenA TokenB 0 100 100TokenA,100TokenB 50 0 --from %s", + testAddresses[0], + ), + ExpectedMsg: &types.MsgCreateGauge{ + IsPerpetual: false, + Owner: testAddresses[0].String(), + DistributeTo: types.QueryCondition{ + PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, + StartTick: 0, + EndTick: 100, + }, + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(100)), + sdk.NewCoin("TokenB", sdk.NewInt(100)), + ), + StartTime: time.Unix(0, 0).UTC(), + NumEpochsPaidOver: 50, + PricingTick: 0, + }, + }, + "tests with time (RFC3339)": { + Cmd: fmt.Sprintf( + "TokenA TokenB [-20] 20 100TokenA,100TokenB 50 0 --start-time %s --from %s", + testTime.Format(time.RFC3339), + testAddresses[0], + ), + ExpectedMsg: &types.MsgCreateGauge{ + IsPerpetual: false, + Owner: testAddresses[0].String(), + DistributeTo: types.QueryCondition{ + PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, + StartTick: -20, + EndTick: 20, + }, + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(100)), + sdk.NewCoin("TokenB", sdk.NewInt(100)), + ), + StartTime: testTime, + NumEpochsPaidOver: 50, + PricingTick: 0, + }, + }, + "tests with time (unix int)": { + Cmd: fmt.Sprintf( + "TokenA TokenB [-20] 20 100TokenA,100TokenB 50 0 --start-time %d --from %s", + testTime.Unix(), + testAddresses[0], + ), + ExpectedMsg: &types.MsgCreateGauge{ + IsPerpetual: false, + Owner: testAddresses[0].String(), + DistributeTo: types.QueryCondition{ + PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, + StartTick: -20, + EndTick: 20, + }, + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(100)), + sdk.NewCoin("TokenB", sdk.NewInt(100)), + ), + StartTime: testTime, + NumEpochsPaidOver: 50, + PricingTick: 0, + }, + }, + "tests with perpetual": { + Cmd: fmt.Sprintf( + "TokenA TokenB [-20] 20 100TokenA,100TokenB 50 0 --perpetual --from %s", + testAddresses[0], + ), + ExpectedMsg: &types.MsgCreateGauge{ + IsPerpetual: true, + Owner: testAddresses[0].String(), + DistributeTo: types.QueryCondition{ + PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, + StartTick: -20, + EndTick: 20, + }, + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(100)), + sdk.NewCoin("TokenB", sdk.NewInt(100)), + ), + StartTime: time.Unix(0, 0).UTC(), + NumEpochsPaidOver: 1, + PricingTick: 0, + }, + }, + } + dcli.RunTxTestCases(t, desc, tcs) +} + +func TestNewAddToGaugeCmd(t *testing.T) { + desc, _ := cli.NewAddToGaugeCmd() + tcs := map[string]dcli.TxCliTestCase[*types.MsgAddToGauge]{ + "basic test": { + Cmd: fmt.Sprintf("1 1000TokenA --from %s", testAddresses[0]), + ExpectedMsg: &types.MsgAddToGauge{ + Owner: testAddresses[0].String(), + GaugeId: 1, + Rewards: sdk.NewCoins(sdk.NewCoin("TokenA", sdk.NewInt(1000))), + }, + }, + "multiple tokens": { + Cmd: fmt.Sprintf("1 1000TokenA,1TokenZ --from %s", testAddresses[0]), + ExpectedMsg: &types.MsgAddToGauge{ + Owner: testAddresses[0].String(), + GaugeId: 1, + Rewards: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(1000)), + sdk.NewCoin("TokenZ", sdk.NewInt(1)), + ), + }, + }, + } + dcli.RunTxTestCases(t, desc, tcs) +} + +func TestNewStakeCmd(t *testing.T) { + desc, _ := cli.NewStakeCmd() + tcs := map[string]dcli.TxCliTestCase[*types.MsgStake]{ + "basic test": { + Cmd: fmt.Sprintf("1000TokenA --from %s", testAddresses[0]), + ExpectedMsg: &types.MsgStake{ + Owner: testAddresses[0].String(), + Coins: sdk.NewCoins(sdk.NewCoin("TokenA", sdk.NewInt(1000))), + }, + }, + "multiple tokens": { + Cmd: fmt.Sprintf("1000TokenA,1TokenZ --from %s", testAddresses[0]), + ExpectedMsg: &types.MsgStake{ + Owner: testAddresses[0].String(), + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(1000)), + sdk.NewCoin("TokenZ", sdk.NewInt(1)), + ), + }, + }, + "tokenized share test": { + Cmd: fmt.Sprintf( + "1000DualityPoolShares-tokenA-tokenB-t123-f30 --from %s", + testAddresses[0], + ), + ExpectedMsg: &types.MsgStake{ + Owner: testAddresses[0].String(), + Coins: sdk.NewCoins( + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t123-f30", sdk.NewInt(1000)), + ), + }, + }, + "tokenized share negative tick index test": { + Cmd: fmt.Sprintf( + "1000DualityPoolShares-tokenA-tokenB-t-123-f30 --from %s", + testAddresses[0], + ), + ExpectedMsg: &types.MsgStake{ + Owner: testAddresses[0].String(), + Coins: sdk.NewCoins( + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", sdk.NewInt(1000)), + ), + }, + }, + "multiple tokenized shares": { + Cmd: fmt.Sprintf( + "1000DualityPoolShares-tokenA-tokenB-t-123-f30,1DualityPoolShares-tokenA-tokenB-t-124-f30 --from %s", + testAddresses[0], + ), + ExpectedMsg: &types.MsgStake{ + Owner: testAddresses[0].String(), + Coins: sdk.NewCoins( + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", sdk.NewInt(1000)), + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-124-f30", sdk.NewInt(1)), + ), + }, + }, + } + dcli.RunTxTestCases(t, desc, tcs) +} + +func TestNewUnstakeCmd(t *testing.T) { + desc, _ := cli.NewUnstakeCmd() + tcs := map[string]dcli.TxCliTestCase[*types.MsgUnstake]{ + "basic test": { + Cmd: fmt.Sprintf("--from %s", testAddresses[0]), + ExpectedMsg: &types.MsgUnstake{ + Owner: testAddresses[0].String(), + Unstakes: []*types.MsgUnstake_UnstakeDescriptor{}, + }, + }, + "with coins": { + Cmd: fmt.Sprintf("1:10TokenA 10:10TokenA,10TokenC --from %s", testAddresses[0]), + ExpectedMsg: &types.MsgUnstake{ + Owner: testAddresses[0].String(), + Unstakes: []*types.MsgUnstake_UnstakeDescriptor{ + { + ID: 1, + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(10)), + ), + }, { + ID: 10, + Coins: sdk.NewCoins( + sdk.NewCoin("TokenA", sdk.NewInt(10)), + sdk.NewCoin("TokenC", sdk.NewInt(10)), + ), + }, + }, + }, + }, + } + dcli.RunTxTestCases(t, desc, tcs) +} diff --git a/x/incentives/client/cli/flags.go b/x/incentives/client/cli/flags.go new file mode 100644 index 000000000..fa3467e0f --- /dev/null +++ b/x/incentives/client/cli/flags.go @@ -0,0 +1,22 @@ +package cli + +import ( + flag "github.com/spf13/pflag" +) + +// Flags for incentives module tx commands. +const ( + FlagStartTime = "start-time" + FlagPerpetual = "perpetual" + FlagAmount = "amount" +) + +// FlagSetCreateGauge returns flags for creating gauges. +func FlagSetCreateGauge() *flag.FlagSet { + fs := flag.NewFlagSet("", flag.ContinueOnError) + + fs.String(FlagStartTime, "", "Timestamp to begin distribution") + fs.Bool(FlagPerpetual, false, "Perpetual distribution") + + return fs +} diff --git a/x/incentives/client/cli/query.go b/x/incentives/client/cli/query.go new file mode 100644 index 000000000..b2d7c2fe4 --- /dev/null +++ b/x/incentives/client/cli/query.go @@ -0,0 +1,113 @@ +package cli + +import ( + "github.com/spf13/cobra" + "github.com/spf13/pflag" + + "github.com/neutron-org/neutron/utils/dcli" + "github.com/neutron-org/neutron/x/incentives/types" +) + +// GetQueryCmd returns the query commands for this module. +func GetQueryCmd() *cobra.Command { + // group incentives queries under a subcommand + cmd := dcli.QueryIndexCmd(types.ModuleName) + qcGetter := types.NewQueryClient + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetModuleStatus) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetGaugeByID) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGauges) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetStakeByID) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdStakes) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetFutureRewardEstimate) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetAccountHistory) + dcli.AddQueryCmd(cmd, qcGetter, GetCmdGaugeQualifyingValue) + + return cmd +} + +// GetCmdGetModuleStatus returns status of incentive module. +func GetCmdGetModuleStatus() (*dcli.QueryDescriptor, *types.GetModuleStatusRequest) { + return &dcli.QueryDescriptor{ + Use: "module-status", + Short: "Query module status.", + Long: `{{.Short}}`, + }, &types.GetModuleStatusRequest{} +} + +// GetCmdGetGaugeByID returns a gauge by ID. +func GetCmdGetGaugeByID() (*dcli.QueryDescriptor, *types.GetGaugeByIDRequest) { + return &dcli.QueryDescriptor{ + Use: "gauge-by-id [id]", + Short: "Query gauge by id.", + Long: `{{.Short}}{{.ExampleHeader}} gauge-by-id 1`, + }, &types.GetGaugeByIDRequest{} +} + +func parseGaugeStatus(arg string, _ *pflag.FlagSet) (any, dcli.FieldReadLocation, error) { + gaugeStatusInt, ok := types.GaugeStatus_value[arg] + if !ok { + return 0, dcli.UsedArg, types.ErrInvalidGaugeStatus + } + gaugeStatus := types.GaugeStatus(gaugeStatusInt) + + return gaugeStatus, dcli.UsedArg, nil +} + +// GetCmdGauges returns all gauges for a given status and denom. +func GetCmdGauges() (*dcli.QueryDescriptor, *types.GetGaugesRequest) { + return &dcli.QueryDescriptor{ + Use: "list-gauges [status] [denom]", + Short: "Query gauges", + Long: `{{.Short}}{{.ExampleHeader}} list-gauges UPCOMING DualityPoolShares-stake-token-t0-f1`, + CustomFieldParsers: map[string]dcli.CustomFieldParserFn{ + "Status": parseGaugeStatus, + }, + }, &types.GetGaugesRequest{} +} + +// GetCmdGetStakeByID returns a lock by ID. +func GetCmdGetStakeByID() (*dcli.QueryDescriptor, *types.GetStakeByIDRequest) { + return &dcli.QueryDescriptor{ + Use: "stake-by-id [stakeID]", + Short: "Query stake by id.", + Long: `{{.Short}}{{.ExampleHeader}} Stake-by-id 1`, + }, &types.GetStakeByIDRequest{} +} + +// GetCmdStakes returns all gauges for a given status and owner. +func GetCmdStakes() (*dcli.QueryDescriptor, *types.GetStakesRequest) { + return &dcli.QueryDescriptor{ + Use: "list-stakes [owner]", + Short: "Query stakes", + Long: `{{.Short}}{{.ExampleHeader}} list-stakes cosmos1chl62vc593p99z2tfh2pp8tl4anm0w4l8h8svx`, + }, &types.GetStakesRequest{} +} + +// GetCmdGetFutureRewardsEstimate returns a rewards estimate for a given set of stakes. +func GetCmdGetFutureRewardEstimate() (*dcli.QueryDescriptor, *types.GetFutureRewardEstimateRequest) { + return &dcli.QueryDescriptor{ + Use: "reward-estimate [owner] [stakeIDs] [numEpochs]", + Short: "Get rewards estimate for set of stakes", + Long: `{{.Short}}{{.ExampleHeader}} reward-estimate cosmos1chl62vc593p99z2tfh2pp8tl4anm0w4l8h8svx [1,2,3] 365`, + CustomFieldParsers: map[string]dcli.CustomFieldParserFn{ + "StakeIDs": dcli.ParseUintArray, + }, + }, &types.GetFutureRewardEstimateRequest{} +} + +// GetCmdGetFutureRewardsEstimate returns a rewards estimate for a given set of stakes. +func GetCmdGetAccountHistory() (*dcli.QueryDescriptor, *types.GetAccountHistoryRequest) { + return &dcli.QueryDescriptor{ + Use: "account-history [account]", + Short: "Get rewards distribution history for an address", + Long: `{{.Short}}{{.ExampleHeader}} account-history cosmos1chl62vc593p99z2tfh2pp8tl4anm0w4l8h8svx`, + }, &types.GetAccountHistoryRequest{} +} + +func GetCmdGaugeQualifyingValue() (*dcli.QueryDescriptor, *types.GetGaugeQualifyingValueRequest) { + return &dcli.QueryDescriptor{ + Use: "gauge-qualifying-value [gaugeID]", + Short: "Query the qualifying value of a gauge by gauge id.", + Long: `{{.Short}}{{.ExampleHeader}} gauge-qualifying-value 1`, + }, &types.GetGaugeQualifyingValueRequest{} +} diff --git a/x/incentives/client/cli/query_test.go b/x/incentives/client/cli/query_test.go new file mode 100644 index 000000000..657944430 --- /dev/null +++ b/x/incentives/client/cli/query_test.go @@ -0,0 +1,131 @@ +package cli_test + +import ( + "testing" + "time" + + "github.com/stretchr/testify/suite" + + "github.com/neutron-org/neutron/testutil/apptesting" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/keeper" + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type QueryTestSuite struct { + apptesting.KeeperTestHelper + queryClient types.QueryClient +} + +// StakeTokens funds an account, stakes tokens and returns a stakeID. +func (s *QueryTestSuite) SetupStake( + addr sdk.AccAddress, + coins sdk.Coins, + duration time.Duration, +) (stakeID uint64) { + msgServer := keeper.NewMsgServerImpl(s.App.IncentivesKeeper) + s.FundAcc(addr, coins) + + msgResponse, err := msgServer.Stake( + sdk.WrapSDKContext(s.Ctx), + types.NewMsgSetupStake(addr, duration, coins), + ) + s.Require().NoError(err) + + return msgResponse.ID +} + +func (s *QueryTestSuite) SetupSuite() { + s.Setup() + s.queryClient = types.NewQueryClient(s.QueryHelper) + + pool, _ := s.App.DexKeeper.InitPool(s.Ctx, dextypes.MustNewPairID("tokenA", "tokenB"), 0, 1) + denom := pool.GetPoolDenom() + + // set up stake with id = 1 + addr := apptesting.SetupAddr(0) + s.SetupStake(addr, sdk.Coins{sdk.NewCoin(denom, sdk.NewInt(1000000))}, time.Hour*24) + + s.Commit() +} + +// func (s *QueryTestSuite) TestQueriesNeverAlterState() { +// testCases := []struct { +// name string +// query string +// input interface{} +// output interface{} +// }{ +// // { +// // "Query active gauges", +// // "/duality.incentives.Query/ActiveGauges", +// // &types.ActiveGetGaugesActiveUpcomingRequest{}, +// // &types.ActiveGetGaugesActiveUpcomingResponse{}, +// // }, +// // { +// // "Query active gauges per denom", +// // "/duality.incentives.Query/ActiveGaugesPerDenom", +// // &types.ActiveGaugesPerDenomRequest{Denom: "stake"}, +// // &types.ActiveGaugesPerDenomResponse{}, +// // }, +// // { +// // "Query gauge by id", +// // "/duality.incentives.Query/GetGaugeByID", +// // &types.GetGaugeByIDRequest{Id: 1}, +// // &types.GetGaugeByIDResponse{}, +// // }, +// // { +// // "Query all gauges", +// // "/duality.incentives.Query/Gauges", +// // &types.GetGaugesActiveUpcomingRequest{}, +// // &types.GetGaugesActiveUpcomingResponse{}, +// // }, +// // { +// // "Query stakeable durations", +// // "/duality.incentives.Query/StakeableDurations", +// // &types.QueryStakeableDurationsRequest{}, +// // &types.QueryStakeableDurationsResponse{}, +// // }, +// // { +// // "Query module to distibute coins", +// // "/duality.incentives.Query/GetModuleCoinsToBeDistributed", +// // &types.GetModuleCoinsToBeDistributedRequest{}, +// // &types.GetModuleCoinsToBeDistributedResponse{}, +// // }, +// // { +// // "Query reward estimate", +// // "/duality.incentives.Query/RewardsEst", +// // &types.RewardsEstRequest{Owner: s.TestAccs[0].String()}, +// // &types.RewardsEstResponse{}, +// // }, +// // { +// // "Query upcoming gauges", +// // "/duality.incentives.Query/UpcomingGauges", +// // &types.UpcomingGetGaugesActiveUpcomingRequest{}, +// // &types.UpcomingGetGaugesActiveUpcomingResponse{}, +// // }, +// // { +// // "Query upcoming gauges", +// // "/duality.incentives.Query/UpcomingGaugesPerDenom", +// // &types.UpcomingGaugesPerDenomRequest{Denom: "stake"}, +// // &types.UpcomingGaugesPerDenomResponse{}, +// // }, +// } + +// for _, tc := range testCases { +// tc := tc + +// s.Run(tc.name, func() { +// s.SetupSuite() +// err := s.QueryHelper.Invoke(gocontext.Background(), tc.query, tc.input, tc.output) +// s.Require().NoError(err) +// s.StateNotAltered() +// }) +// } +// } + +func TestQueryTestSuite(t *testing.T) { + suite.Run(t, new(QueryTestSuite)) +} diff --git a/x/incentives/client/cli/tx.go b/x/incentives/client/cli/tx.go new file mode 100644 index 000000000..0c9517923 --- /dev/null +++ b/x/incentives/client/cli/tx.go @@ -0,0 +1,173 @@ +package cli + +import ( + "errors" + "fmt" + "strconv" + "strings" + "time" + + "github.com/cosmos/cosmos-sdk/client" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/spf13/cobra" + "github.com/spf13/pflag" + + "github.com/neutron-org/neutron/utils/dcli" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" +) + +// GetTxCmd returns the transaction commands for this module. +func GetTxCmd() *cobra.Command { + cmd := dcli.TxIndexCmd(types.ModuleName) + + dcli.AddTxCmd(cmd, NewCreateGaugeCmd) + dcli.AddTxCmd(cmd, NewAddToGaugeCmd) + dcli.AddTxCmd(cmd, NewStakeCmd) + dcli.AddTxCmd(cmd, NewUnstakeCmd) + + return cmd +} + +func CreateGaugeCmdBuilder( + clientCtx client.Context, + args []string, + flags *pflag.FlagSet, +) (sdk.Msg, error) { + // "create-gauge [pairTokenA] [pairTokenB] [startTick] [endTick] [coins] [numEpochs] [pricingTick]" + pairID, err := dextypes.NewPairIDFromUnsorted(args[0], args[1]) + if err != nil { + return &types.MsgCreateGauge{}, err + } + + startTick, err := dcli.ParseIntMaybeNegative(args[2], "startTick") + if err != nil { + return &types.MsgCreateGauge{}, err + } + + endTick, err := dcli.ParseIntMaybeNegative(args[3], "endTick") + if err != nil { + return &types.MsgCreateGauge{}, err + } + + coins, err := sdk.ParseCoinsNormalized(args[4]) + if err != nil { + return &types.MsgCreateGauge{}, err + } + + var startTime time.Time + timeStr, err := flags.GetString(FlagStartTime) + if err != nil { + return &types.MsgCreateGauge{}, err + } + if timeStr == "" { // empty start time + startTime = time.Unix(0, 0).UTC() + } else if timeUnix, err := strconv.ParseInt(timeStr, 10, 64); err == nil { // unix time + startTime = time.Unix(timeUnix, 0).UTC() + } else if timeRFC, err := time.Parse(time.RFC3339, timeStr); err == nil { // RFC time + startTime = timeRFC + } else { // invalid input + return &types.MsgCreateGauge{}, errors.New("invalid start time format") + } + + epochs, err := dcli.ParseUint(args[5], "numEpochs") + if err != nil { + return &types.MsgCreateGauge{}, err + } + + perpetual, err := flags.GetBool(FlagPerpetual) + if err != nil { + return &types.MsgCreateGauge{}, err + } + + if perpetual { + epochs = 1 + } + + pricingTick, err := dcli.ParseIntMaybeNegative(args[6], "pricingTick") + if err != nil { + return &types.MsgCreateGauge{}, err + } + + distributeTo := types.QueryCondition{ + PairID: pairID, + StartTick: startTick, + EndTick: endTick, + } + + msg := types.NewMsgCreateGauge( + epochs == 1, + clientCtx.GetFromAddress(), + distributeTo, + coins, + startTime, + epochs, + pricingTick, + ) + + return msg, nil +} + +func NewCreateGaugeCmd() (*dcli.TxCliDesc, *types.MsgCreateGauge) { + return &dcli.TxCliDesc{ + ParseAndBuildMsg: CreateGaugeCmdBuilder, + Use: "create-gauge [pairTokenA] [pairTokenB] [startTick] [endTick] [coins] [numEpochs] [pricingTick]", + Short: "create a gauge to distribute rewards to users", + Long: `{{.Short}}{{.ExampleHeader}} create-gauge TokenA TokenB [-10] 200 100TokenA,200TokenB 6 0 --start-time 2006-01-02T15:04:05Z07:00 --perpetual true`, + Flags: dcli.FlagDesc{OptionalFlags: []*pflag.FlagSet{FlagSetCreateGauge()}}, + NumArgs: 7, + }, &types.MsgCreateGauge{} +} + +func NewAddToGaugeCmd() (*dcli.TxCliDesc, *types.MsgAddToGauge) { + return &dcli.TxCliDesc{ + Use: "add-to-gauge [gauge_id] [coins]", + Short: "add coins to gauge to distribute more rewards to users", + Long: `{{.Short}}{{.ExampleHeader}} add-to-gauge 1 TokenA,TokenB`, + }, &types.MsgAddToGauge{} +} + +func NewStakeCmd() (*dcli.TxCliDesc, *types.MsgStake) { + return &dcli.TxCliDesc{ + Use: "stake-tokens [coins]", + Short: "stake tokens into stake pool from user account", + }, &types.MsgStake{} +} + +func UnstakeCmdBuilder(clientCtx client.Context, args []string, _ *pflag.FlagSet) (sdk.Msg, error) { + // "unstake-tokens [poolID]:[coins] [poolID]:[coins] ..." + unstakes := make([]*types.MsgUnstake_UnstakeDescriptor, 0, len(args)) + for i, unstake := range args { + if strings.HasPrefix(unstake, "-") { + // no more unstakes left, only flags + break + } + + parts := strings.Split(unstake, ":") + if len(parts) != 2 { + return &types.MsgUnstake{}, errors.New("invalid syntax for unstake tokens") + } + poolID, err := dcli.ParseUint(parts[0], fmt.Sprintf("poolID[%d]", i)) + if err != nil { + return &types.MsgUnstake{}, err + } + + coins, err := dcli.ParseCoins(parts[1], fmt.Sprintf("coins[%d]", i)) + if err != nil { + return &types.MsgUnstake{}, err + } + + unstakes = append(unstakes, types.NewMsgUnstakeDescriptor(poolID, coins)) + } + + return types.NewMsgUnstake(clientCtx.GetFromAddress(), unstakes), nil +} + +func NewUnstakeCmd() (*dcli.TxCliDesc, *types.MsgUnstake) { + return &dcli.TxCliDesc{ + Use: "unstake-tokens [poolID]:[coins] [poolID]:[coins] ...", + Short: "Unstake tokens", + ParseAndBuildMsg: UnstakeCmdBuilder, + Long: `{{.Short}}{{.ExampleHeader}} unstake-tokens 1:100TokenA 2:10TokenZ,20TokenB`, + }, &types.MsgUnstake{} +} diff --git a/x/incentives/keeper/account_history.go b/x/incentives/keeper/account_history.go new file mode 100644 index 000000000..27d787b2b --- /dev/null +++ b/x/incentives/keeper/account_history.go @@ -0,0 +1,83 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" + "github.com/neutron-org/neutron/x/incentives/types" +) + +func NewAccountHistory(account string, coins sdk.Coins) *types.AccountHistory { + return &types.AccountHistory{ + Account: account, + Coins: coins, + } +} + +// SetAccountHistory set a specific goodTilRecord in the store from its index +func (k Keeper) SetAccountHistory( + ctx sdk.Context, + accountHistory *types.AccountHistory, +) error { + store := ctx.KVStore(k.storeKey) + b, err := proto.Marshal(accountHistory) + if err != nil { + return err + } + store.Set(types.GetKeyAccountHistory( + accountHistory.Account, + ), b) + return nil +} + +// GetAccountHistory returns a goodTilRecord from its index +func (k Keeper) GetAccountHistory( + ctx sdk.Context, + account string, +) (val *types.AccountHistory, found bool) { + store := ctx.KVStore(k.storeKey) + + b := store.Get(types.GetKeyAccountHistory(account)) + if b == nil { + return val, false + } + + val = &types.AccountHistory{} + err := proto.Unmarshal(b, val) + if err != nil { + panic(err) + } + + return val, true +} + +// RemoveAccountHistory removes a goodTilRecord from the store +func (k Keeper) RemoveAccountHistory( + ctx sdk.Context, + account string, +) { + store := ctx.KVStore(k.storeKey) + store.Delete(types.GetKeyAccountHistory(account)) +} + +// GetAllAccountHistory returns all goodTilRecord +func (k Keeper) GetAllAccountHistory(ctx sdk.Context) (list []*types.AccountHistory) { + store := prefix.NewStore( + ctx.KVStore(k.storeKey), + types.KeyPrefixAccountHistory, + ) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + val := &types.AccountHistory{} + err := proto.Unmarshal(iterator.Value(), val) + if err != nil { + panic(err) + } + list = append(list, val) + } + + return +} diff --git a/x/incentives/keeper/distribute.go b/x/incentives/keeper/distribute.go new file mode 100644 index 000000000..9dff4b39d --- /dev/null +++ b/x/incentives/keeper/distribute.go @@ -0,0 +1,184 @@ +package keeper + +import ( + "fmt" + "time" + + math_utils "github.com/neutron-org/neutron/utils/math" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ DistributorKeeper = Keeper{} + +func (k Keeper) ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (sdk.Int, error) { + totalShares := k.bk.GetSupply(ctx, coin.Denom).Amount + poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, coin.Denom) + if err != nil { + return sdk.ZeroInt(), err + } + + pool, err := k.dk.GetOrInitPool( + ctx, + poolMetadata.PairID, + poolMetadata.Tick, + poolMetadata.Fee, + ) + if err != nil { + return sdk.ZeroInt(), err + } + amount0, amount1 := pool.RedeemValue(coin.Amount, totalShares) + price1To0Center, err := dextypes.CalcPrice(-1 * tick) + if err != nil { + return sdk.ZeroInt(), err + } + return math_utils.NewPrecDecFromInt(amount0).Add(price1To0Center.MulInt(amount1)).TruncateInt(), nil +} + +// Distribute distributes coins from an array of gauges to all eligible stakes. +func (k Keeper) Distribute(ctx sdk.Context, gauges types.Gauges) (types.DistributionSpec, error) { + distSpec := types.DistributionSpec{} + for _, gauge := range gauges { + gaugeDistSpec, err := k.distributor.Distribute(ctx, gauge, nil) + if err != nil { + return nil, err + } + distSpec = distSpec.Add(gaugeDistSpec) + + err = k.setGauge(ctx, gauge) + if err != nil { + return nil, err + } + if gauge.IsFinishedGauge(ctx.BlockTime()) { + if err := k.moveActiveGaugeToFinishedGauge(ctx, gauge); err != nil { + return nil, err + } + } + } + + ctx.Logger().Debug(fmt.Sprintf("Beginning distribution to %d users", len(distSpec))) + for addr, rewards := range distSpec { + decodedAddr, err := sdk.AccAddressFromBech32(addr) + if err != nil { + return nil, err + } + err = k.bk.SendCoinsFromModuleToAccount( + ctx, + types.ModuleName, + decodedAddr, + rewards) + if err != nil { + return nil, err + } + + // Accumulate to account history + accHistory, found := k.GetAccountHistory(ctx, addr) + if found { + accHistory.Coins = accHistory.Coins.Add(rewards...) + } else { + accHistory = NewAccountHistory(addr, rewards) + } + k.SetAccountHistory(ctx, accHistory) + + // Emit events + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeEvtDistribution, + sdk.NewAttribute(types.AttributeReceiver, addr), + sdk.NewAttribute(types.AttributeAmount, rewards.String()), + ), + }) + } + ctx.Logger().Debug(fmt.Sprintf("Finished Distributing to %d users", len(distSpec))) + k.hooks.AfterEpochDistribution(ctx) + return distSpec, nil +} + +// GetModuleCoinsToBeDistributed returns sum of coins yet to be distributed for all of the module. +func (k Keeper) GetModuleCoinsToBeDistributed(ctx sdk.Context) sdk.Coins { + activeGaugesDistr := k.GetActiveGauges(ctx).GetCoinsRemaining() + upcomingGaugesDistr := k.GetUpcomingGauges(ctx).GetCoinsRemaining() + return activeGaugesDistr.Add(upcomingGaugesDistr...) +} + +// GetModuleDistributedCoins returns sum of coins that have been distributed so far for all of the module. +func (k Keeper) GetModuleDistributedCoins(ctx sdk.Context) sdk.Coins { + activeGaugesDistr := k.GetActiveGauges(ctx).GetCoinsDistributed() + finishedGaugesDistr := k.GetFinishedGauges(ctx).GetCoinsDistributed() + return activeGaugesDistr.Add(finishedGaugesDistr...) +} + +// GetRewardsEstimate returns rewards estimation at a future specific time (by epoch) +// If stakes are nil, it returns the rewards between now and the end epoch associated with address. +// If stakes are not nil, it returns all the rewards for the given stakes between now and end epoch. +func (k Keeper) GetRewardsEstimate( + ctx sdk.Context, + addr sdk.AccAddress, + filterStakes types.Stakes, + numEpochs int64, +) (sdk.Coins, error) { + // if stakes are nil, populate with all stakes associated with the address + if len(filterStakes) == 0 { + filterStakes = k.GetStakesByAccount(ctx, addr) + } + + // for each specified stake get associated pairs + pairSet := map[dextypes.PairID]bool{} + for _, l := range filterStakes { + for _, c := range l.Coins { + poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, c.Denom) + if err != nil { + panic("all stakes should be valid deposit denoms") + } + pairSet[*poolMetadata.PairID] = true + } + } + + // for each pair get associated gauges + gauges := types.Gauges{} + for s := range pairSet { + gauges = append(gauges, k.GetGaugesByPair(ctx, &s)...) + } + + // estimate rewards + estimatedRewards := sdk.Coins{} + epochInfo := k.GetEpochInfo(ctx) + + // ensure we don't change storage while doing estimation + cacheCtx, _ := ctx.CacheContext() + for _, gauge := range gauges { + distrBeginEpoch := epochInfo.CurrentEpoch + endEpoch := epochInfo.CurrentEpoch + numEpochs + bstakeTime := ctx.BlockTime() + if gauge.StartTime.After(bstakeTime) { + distrBeginEpoch = epochInfo.CurrentEpoch + 1 + int64( + gauge.StartTime.Sub(bstakeTime)/epochInfo.Duration, + ) + } + + // TODO: Make more efficient by making it possible to call distribute with this + // gaugeStakes := k.GetStakesByQueryCondition(cacheCtx, &gauge.DistributeTo) + gaugeRewards := sdk.Coins{} + for epoch := distrBeginEpoch; epoch <= endEpoch; epoch++ { + epochTime := epochInfo.StartTime.Add( + time.Duration(epoch-epochInfo.CurrentEpoch) * epochInfo.Duration, + ) + if !gauge.IsActiveGauge(epochTime) { + break + } + + futureCtx := cacheCtx.WithBlockTime(epochTime) + distSpec, err := k.distributor.Distribute(futureCtx, gauge, filterStakes) + if err != nil { + return nil, err + } + + gaugeRewards = gaugeRewards.Add(distSpec.GetTotal()...) + } + estimatedRewards = estimatedRewards.Add(gaugeRewards...) + } + + return estimatedRewards, nil +} diff --git a/x/incentives/keeper/distribute_test.go b/x/incentives/keeper/distribute_test.go new file mode 100644 index 000000000..b699bcf2e --- /dev/null +++ b/x/incentives/keeper/distribute_test.go @@ -0,0 +1,362 @@ +package keeper_test + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/suite" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/testutil/apptesting" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" +) + +var _ = suite.TestingSuite(nil) + +type balanceAssertion struct { + addr sdk.AccAddress + balances sdk.Coins +} + +func (suite *KeeperTestSuite) TestValueForShares() { + addrs := apptesting.SetupAddrs(3) + + tests := []struct { + name string + deposits []depositSpec + coin sdk.Coin + tick int64 + expectation sdk.Int + err error + }{ + // gauge 1 gives 3k coins. three stakes, all eligible. 1k coins per stake. + // 1k should go to oneStakeUser and 2k to twoStakeUser. + { + name: "one deposit", + deposits: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), + tick: 1000, + expectation: sdk.NewInt(21), + }, + { + name: "one deposit: no adjustment", + deposits: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), + tick: 0, + expectation: sdk.NewInt(20), + }, + { + name: "two deposits: one extraneous", + deposits: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 2, + }, + }, + coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), + tick: 1000, + expectation: sdk.NewInt(21), + }, + { + name: "two deposits: both relevant", + deposits: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), + tick: 1000, + expectation: sdk.NewInt(21), + }, + } + for _, tc := range tests { + suite.T().Run(tc.name, func(t *testing.T) { + suite.SetupTest() + _ = suite.SetupDeposit(tc.deposits) + value, err := suite.App.IncentivesKeeper.ValueForShares(suite.Ctx, tc.coin, tc.tick) + if tc.err == nil { + require.NoError(t, err) + require.Equal(t, tc.expectation, value) + } else { + require.Error(t, err) + } + }) + } +} + +// TestDistribute tests that when the distribute command is executed on a provided gauge +// that the correct amount of rewards is sent to the correct stake owners. +func (suite *KeeperTestSuite) TestDistribute() { + addrs := apptesting.SetupAddrs(3) + tests := []struct { + name string + addrs []sdk.AccAddress + depositStakeSpecs []depositStakeSpec + gaugeSpecs []gaugeSpec + assertions []balanceAssertion + }{ + { + name: "one gauge", + depositStakeSpecs: []depositStakeSpec{ + { + depositSpecs: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + }, + gaugeSpecs: []gaugeSpec{ + { + isPerpetual: false, + rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, + startTick: -10, + endTick: 10, + paidOver: 1, + pricingTick: 0, + }, + }, + assertions: []balanceAssertion{ + {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1000)}}, + {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 2000)}}, + }, + }, + { + name: "two gauges", + depositStakeSpecs: []depositStakeSpec{ + { + depositSpecs: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -1, + }, + }, + gaugeSpecs: []gaugeSpec{ + { + isPerpetual: false, + rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, + startTick: -10, + endTick: 10, + paidOver: 1, + pricingTick: 0, + }, + { + isPerpetual: false, + rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, + startTick: -10, + endTick: 10, + paidOver: 2, + pricingTick: 0, + }, + }, + assertions: []balanceAssertion{ + {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, + {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}}, + }, + }, + { + name: "one stake with adjustment", + depositStakeSpecs: []depositStakeSpec{ + { + depositSpecs: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 50, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 50, + }, + }, + stakeDistEpochOffset: -1, + }, + }, + gaugeSpecs: []gaugeSpec{ + { + isPerpetual: false, + rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, + startTick: -1000, + endTick: 1000, + paidOver: 1, + pricingTick: 0, + }, + }, + assertions: []balanceAssertion{ + {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, + {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, + }, + }, + } + for _, tc := range tests { + suite.T().Run(tc.name, func(t *testing.T) { + suite.SetupTest() + for _, depositSpec := range tc.depositStakeSpecs { + suite.SetupDepositAndStake(depositSpec) + } + gauges := make(types.Gauges, len(tc.gaugeSpecs)) + for i, gaugeSpec := range tc.gaugeSpecs { + gauge := suite.SetupGauge(gaugeSpec) + gauges[i] = gauge + } + _, err := suite.App.IncentivesKeeper.Distribute(suite.Ctx, gauges) + require.NoError(t, err) + // check expected rewards against actual rewards received + for i, assertion := range tc.assertions { + bal := suite.App.BankKeeper.GetAllBalances(suite.Ctx, assertion.addr) + assert.Equal( + t, + assertion.balances.String(), + bal.String(), + "test %v, person %d", + tc.name, + i, + ) + } + }) + } +} diff --git a/x/incentives/keeper/distributor.go b/x/incentives/keeper/distributor.go new file mode 100644 index 000000000..837986dd5 --- /dev/null +++ b/x/incentives/keeper/distributor.go @@ -0,0 +1,91 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/incentives/types" +) + +type DistributorKeeper interface { + ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (sdk.Int, error) + GetStakesByQueryCondition(ctx sdk.Context, distrTo *types.QueryCondition) types.Stakes + StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *types.Stake, distrTo types.QueryCondition) sdk.Coins +} + +type Distributor struct { + keeper DistributorKeeper +} + +func NewDistributor(keeper DistributorKeeper) Distributor { + return Distributor{ + keeper: keeper, + } +} + +func (d Distributor) Distribute( + ctx sdk.Context, + gauge *types.Gauge, + filterStakes types.Stakes, +) (types.DistributionSpec, error) { + if !gauge.IsActiveGauge(ctx.BlockTime()) { + return nil, types.ErrGaugeNotActive + } + + distSpec := types.DistributionSpec{} + + rewardsNextEpoch := gauge.RewardsNextEpoch() + + adjustedGaugeTotal := sdk.ZeroInt() + + gaugeStakes := d.keeper.GetStakesByQueryCondition(ctx, &gauge.DistributeTo) + if filterStakes == nil { + filterStakes = gaugeStakes + } + + stakeSumCache := make(map[uint64]sdk.Int, len(gaugeStakes)) + for _, stake := range gaugeStakes { + stakeCoins := d.keeper.StakeCoinsPassingQueryCondition(ctx, stake, gauge.DistributeTo) + stakeTotal := sdk.ZeroInt() + for _, stakeCoin := range stakeCoins { + adjustedPositionValue, err := d.keeper.ValueForShares(ctx, stakeCoin, gauge.PricingTick) + if err != nil { + return nil, err + } + stakeTotal = stakeTotal.Add(adjustedPositionValue) + } + adjustedGaugeTotal = adjustedGaugeTotal.Add(stakeTotal) + stakeSumCache[stake.ID] = stakeTotal + } + + if adjustedGaugeTotal.IsZero() { + return distSpec, nil + } + + for _, stake := range filterStakes { + stakeAmt := stakeSumCache[stake.ID] + distCoins := sdk.Coins{} + for _, epochRewards := range rewardsNextEpoch { + // distribution amount = gauge_size * denom_stake_amount / (total_denom_stake_amount * remain_epochs) + amount := sdk.NewDecFromInt(epochRewards.Amount). + Mul(sdk.NewDecFromInt(stakeAmt)). + Quo(sdk.NewDecFromInt(adjustedGaugeTotal)). + TruncateInt() + reward := sdk.Coin{Denom: epochRewards.Denom, Amount: amount} + distCoins = distCoins.Add(reward) + } + + // update the amount for that address + if distCoins.Empty() { + continue + } + + if spec, ok := distSpec[stake.Owner]; ok { + distSpec[stake.Owner] = spec.Add(distCoins...) + } else { + distSpec[stake.Owner] = distCoins + } + } + + gauge.DistributedCoins = gauge.DistributedCoins.Add(rewardsNextEpoch...) + gauge.FilledEpochs++ + return distSpec, nil +} diff --git a/x/incentives/keeper/distributor_test.go b/x/incentives/keeper/distributor_test.go new file mode 100644 index 000000000..a7b0f9895 --- /dev/null +++ b/x/incentives/keeper/distributor_test.go @@ -0,0 +1,140 @@ +package keeper_test + +import ( + "testing" + time "time" + + tmtypes "github.com/cometbft/cometbft/proto/tendermint/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/app" + dextypes "github.com/neutron-org/neutron/x/dex/types" + . "github.com/neutron-org/neutron/x/incentives/keeper" + "github.com/neutron-org/neutron/x/incentives/types" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +var _ DistributorKeeper = MockKeeper{} + +type MockKeeper struct { + stakes types.Stakes + keeper DistributorKeeper +} + +func NewMockKeeper(keeper DistributorKeeper, stakes types.Stakes) MockKeeper { + return MockKeeper{ + stakes: stakes, + keeper: keeper, + } +} + +func (k MockKeeper) ValueForShares(_ sdk.Context, coin sdk.Coin, tick int64) (sdk.Int, error) { + return coin.Amount.Mul(sdk.NewInt(2)), nil +} + +func (k MockKeeper) GetStakesByQueryCondition( + _ sdk.Context, + distrTo *types.QueryCondition, +) types.Stakes { + return k.stakes +} + +func (k MockKeeper) StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *types.Stake, distrTo types.QueryCondition) sdk.Coins { + return k.keeper.StakeCoinsPassingQueryCondition(ctx, stake, distrTo) +} + +func TestDistributor(t *testing.T) { + app := app.Setup(t, false) + ctx := app.BaseApp.NewContext( + false, + tmtypes.Header{Height: 1, ChainID: "duality-1", Time: time.Now().UTC()}, + ) + + gauge := types.NewGauge( + 1, + false, + types.QueryCondition{ + PairID: &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + StartTick: -10, + EndTick: 10, + }, + sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(100))}, + ctx.BlockTime(), + 10, + 0, + sdk.Coins{}, + 0, + ) + rewardPool, _ := app.DexKeeper.GetOrInitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 5, 1) + rewardedDenom := rewardPool.GetPoolDenom() + nonRewardPool, _ := app.DexKeeper.GetOrInitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 12, 1) + nonRewardedDenom := nonRewardPool.GetPoolDenom() + allStakes := types.Stakes{ + {1, "addr1", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, sdk.NewInt(50))}, 0}, + {2, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, sdk.NewInt(25))}, 0}, + {3, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, sdk.NewInt(25))}, 0}, + {4, "addr3", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(nonRewardedDenom, sdk.NewInt(50))}, 0}, + } + + distributor := NewDistributor(NewMockKeeper(app.IncentivesKeeper, allStakes)) + + testCases := []struct { + name string + timeOffset time.Duration + filterStakes types.Stakes + expected types.DistributionSpec + expectedErr error + }{ + { + name: "Error case: gauge not active", + timeOffset: -1 * time.Minute, + filterStakes: allStakes, + expected: nil, + expectedErr: types.ErrGaugeNotActive, + }, + { + name: "Successful case: distribute to all stakes", + timeOffset: 0, + filterStakes: allStakes, + expected: types.DistributionSpec{ + "addr1": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(5))}, + "addr2": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(4))}, + }, + expectedErr: nil, + }, + { + name: "Successful case: distribute to one stake", + timeOffset: 0, + filterStakes: types.Stakes{allStakes[0]}, + expected: types.DistributionSpec{ + "addr1": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(5))}, + }, + expectedErr: nil, + }, + { + name: "No distribution: empty filterStakes", + filterStakes: types.Stakes{}, + expected: types.DistributionSpec{}, + expectedErr: nil, + }, + } + + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + distSpec, err := distributor.Distribute( + ctx.WithBlockTime(ctx.BlockTime().Add(tc.timeOffset)), + &gauge, + tc.filterStakes, + ) + if tc.expectedErr != nil { + assert.Equal(t, tc.expectedErr, err) + } else { + require.NoError(t, err) + } + assert.Equal(t, tc.expected, distSpec) + }) + } +} diff --git a/x/incentives/keeper/export_test.go b/x/incentives/keeper/export_test.go new file mode 100644 index 000000000..71baec5fe --- /dev/null +++ b/x/incentives/keeper/export_test.go @@ -0,0 +1,44 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/neutron-org/neutron/x/incentives/types" +) + +// AddGaugeRefByKey appends the provided gauge ID into an array associated with the provided key. +func (k Keeper) AddRefByKey(ctx sdk.Context, key []byte, gaugeID uint64) error { + return k.addRefByKey(ctx, key, gaugeID) +} + +// DeleteGaugeRefByKey removes the provided gauge ID from an array associated with the provided key. +func (k Keeper) DeleteRefByKey(ctx sdk.Context, key []byte, guageID uint64) error { + return k.deleteRefByKey(ctx, key, guageID) +} + +// GetGaugeRefs returns the gauge IDs specified by the provided key. +func (k Keeper) GetRefs(ctx sdk.Context, key []byte) []uint64 { + return k.getRefs(ctx, key) +} + +// MoveUpcomingGaugeToActiveGauge moves a gauge that has reached it's start time from an upcoming to an active status. +func (k Keeper) MoveUpcomingGaugeToActiveGauge(ctx sdk.Context, gauge *types.Gauge) error { + return k.moveUpcomingGaugeToActiveGauge(ctx, gauge) +} + +// MoveActiveGaugeToFinishedGauge moves a gauge that has completed its distribution from an active to a finished status. +func (k Keeper) MoveActiveGaugeToFinishedGauge(ctx sdk.Context, gauge *types.Gauge) error { + return k.moveActiveGaugeToFinishedGauge(ctx, gauge) +} + +func (k Keeper) GetStakeRefKeys(ctx sdk.Context, stake *types.Stake) ([][]byte, error) { + return k.getStakeRefKeys(ctx, stake) +} + +func RemoveValue(ids []uint64, id uint64) ([]uint64, int) { + return removeValue(ids, id) +} + +func FindIndex(ids []uint64, id uint64) int { + return findIndex(ids, id) +} diff --git a/x/incentives/keeper/gas_test.go b/x/incentives/keeper/gas_test.go new file mode 100644 index 000000000..70d052fa7 --- /dev/null +++ b/x/incentives/keeper/gas_test.go @@ -0,0 +1,77 @@ +package keeper_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var ( + defaultAddr sdk.AccAddress = sdk.AccAddress([]byte("addr1---------------")) + defaultCoins sdk.Coins = sdk.Coins{sdk.NewInt64Coin("stake", 10)} +) + +// func (suite *KeeperTestSuite) measureStakeGas(addr sdk.AccAddress, coins sdk.Coins, dur time.Duration) uint64 { +// // fundAccount outside of gas measurement +// suite.FundAcc(addr, coins) +// // start measuring gas +// alreadySpent := suite.Ctx.GasMeter().GasConsumed() +// _, err := suite.App.IncentivesKeeper.CreateStake(suite.Ctx, addr, coins, dur) +// suite.Require().NoError(err) +// newSpent := suite.Ctx.GasMeter().GasConsumed() +// spentNow := newSpent - alreadySpent +// return spentNow +// } + +// func (suite *KeeperTestSuite) measureAvgAndMaxStakeGas( +// numIterations int, +// addr sdk.AccAddress, +// coinsFn func(int) sdk.Coins, +// durFn func(int) time.Duration, +// ) (avg uint64, maxGas uint64) { +// runningTotal := uint64(0) +// maxGas = uint64(0) +// for i := 1; i <= numIterations; i++ { +// stakeGas := suite.measureStakeGas(addr, coinsFn(i), durFn(i)) +// runningTotal += stakeGas +// if stakeGas > maxGas { +// maxGas = stakeGas +// // fmt.Println(suite.Ctx.GasMeter().String()) +// } +// } +// avg = runningTotal / uint64(numIterations) +// return avg, maxGas +// } + +// // This maintains hard coded gas test vector changes, +// // so we can easily track changes +// func (suite *KeeperTestSuite) TestRepeatedStakeTokensGas() { +// suite.SetupTest() + +// coinsFn := func(int) sdk.Coins { return defaultCoins } +// durFn := func(int) time.Duration { return time.Second } +// startAveragingAt := 1000 +// totalNumStakes := 10000 + +// firstStakeGasAmount := suite.measureStakeGas(defaultAddr, defaultCoins, time.Second) +// suite.Assert().LessOrEqual(int(firstStakeGasAmount), 100000) + +// for i := 1; i < startAveragingAt; i++ { +// suite.SetupStake(defaultAddr, defaultCoins) +// } +// avgGas, maxGas := suite.measureAvgAndMaxStakeGas(totalNumStakes-startAveragingAt, defaultAddr, coinsFn, durFn) +// fmt.Printf("test deets: total stakes created %d, begin average at %d\n", totalNumStakes, startAveragingAt) +// suite.Assert().LessOrEqual(int(avgGas), 100000, "average gas / stake") +// suite.Assert().LessOrEqual(int(maxGas), 100000, "max gas / stake") +// } + +// func (suite *KeeperTestSuite) TestRepeatedStakeTokensDistinctDurationGas() { +// suite.SetupTest() + +// coinsFn := func(int) sdk.Coins { return defaultCoins } +// durFn := func(i int) time.Duration { return time.Duration(i+1) * time.Second } +// totalNumStakes := 10000 + +// avgGas, maxGas := suite.measureAvgAndMaxStakeGas(totalNumStakes, defaultAddr, coinsFn, durFn) +// fmt.Printf("test deets: total stakes created %d\n", totalNumStakes) +// suite.Assert().LessOrEqual(int(avgGas), 150000, "average gas / stake") +// suite.Assert().LessOrEqual(int(maxGas), 300000, "max gas / stake") +// } diff --git a/x/incentives/keeper/gauge.go b/x/incentives/keeper/gauge.go new file mode 100644 index 000000000..3ffa3c7ca --- /dev/null +++ b/x/incentives/keeper/gauge.go @@ -0,0 +1,309 @@ +package keeper + +import ( + "encoding/json" + "errors" + "fmt" + "time" + + db "github.com/cometbft/cometbft-db" + "github.com/cosmos/gogoproto/proto" + + dextypes "github.com/neutron-org/neutron/x/dex/types" + epochtypes "github.com/neutron-org/neutron/x/epochs/types" + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// GetLastGaugeID returns the last used gauge ID. +func (k Keeper) GetLastGaugeID(ctx sdk.Context) uint64 { + store := ctx.KVStore(k.storeKey) + + bz := store.Get(types.KeyLastGaugeID) + if bz == nil { + return 0 + } + + return sdk.BigEndianToUint64(bz) +} + +// SetLastGaugeID sets the last used gauge ID to the provided ID. +func (k Keeper) SetLastGaugeID(ctx sdk.Context, id uint64) { + store := ctx.KVStore(k.storeKey) + store.Set(types.KeyLastGaugeID, sdk.Uint64ToBigEndian(id)) +} + +// getGaugesFromIterator iterates over everything in a gauge's iterator, until it reaches the end. Return all gauges iterated over. +func (k Keeper) getGaugesFromIterator(ctx sdk.Context, iterator db.Iterator) types.Gauges { + gauges := []*types.Gauge{} + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + gaugeIDs := []uint64{} + err := json.Unmarshal(iterator.Value(), &gaugeIDs) + if err != nil { + panic(err) + } + for _, gaugeID := range gaugeIDs { + gauge, err := k.GetGaugeByID(ctx, gaugeID) + if err != nil { + panic(err) + } + gauges = append(gauges, gauge) + } + } + return gauges +} + +func (k Keeper) setGaugeRefs(ctx sdk.Context, gauge *types.Gauge) error { + if gauge.IsUpcomingGauge(ctx.BlockTime()) { + if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexUpcoming, types.GetTimeKey(gauge.StartTime)), gauge.Id); err != nil { + return err + } + err := k.addRefByKey( + ctx, + types.GetKeyGaugeIndexByPair(gauge.DistributeTo.PairID.CanonicalString()), + gauge.Id, + ) + if err != nil { + return err + } + } else if gauge.IsActiveGauge(ctx.BlockTime()) { + err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, types.GetTimeKey(gauge.StartTime)), gauge.Id) + if err != nil { + return err + } + err = k.addRefByKey(ctx, types.GetKeyGaugeIndexByPair(gauge.DistributeTo.PairID.CanonicalString()), gauge.Id) + if err != nil { + return err + } + } else { // finished gauge + err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexFinished, types.GetTimeKey(gauge.StartTime)), gauge.Id) + if err != nil { + return err + } + } + return nil +} + +// setGauge set the gauge inside store. +func (k Keeper) setGauge(ctx sdk.Context, gauge *types.Gauge) error { + store := ctx.KVStore(k.storeKey) + bz, err := proto.Marshal(gauge) + if err != nil { + return err + } + store.Set(types.GetKeyGaugeStore(gauge.Id), bz) + return nil +} + +// CreateGauge creates a gauge and sends coins to the gauge. +func (k Keeper) CreateGauge( + ctx sdk.Context, + isPerpetual bool, + owner sdk.AccAddress, + coins sdk.Coins, + distrTo types.QueryCondition, + startTime time.Time, + numEpochsPaidOver uint64, + pricingTick int64, +) (*types.Gauge, error) { + numGauges := k.GetLastGaugeID(ctx) + params := k.GetParams(ctx) + if params.MaxGauges < numGauges+1 { + return nil, types.ErrMaxGaugesReached + } + + // Perhaps overly defensive checks, these validations are also being performed + // in the ValidateBasic() for CreateGaugeMsg. + if dextypes.IsTickOutOfRange(pricingTick) { + return nil, types.ErrGaugePricingTickOutOfRange + } + + if dextypes.IsTickOutOfRange(distrTo.StartTick) { + return nil, types.ErrGaugeDistrToTickOutOfRange + } + + if dextypes.IsTickOutOfRange(distrTo.EndTick) { + return nil, types.ErrGaugeDistrToTickOutOfRange + } + + gauge := &types.Gauge{ + Id: numGauges + 1, + IsPerpetual: isPerpetual, + DistributeTo: distrTo, + Coins: coins, + StartTime: startTime, + NumEpochsPaidOver: numEpochsPaidOver, + // If this is outside the tick range then the distribution step will fail + PricingTick: pricingTick, + } + + if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, gauge.Coins); err != nil { + return nil, err + } + + err := k.setGauge(ctx, gauge) + if err != nil { + return nil, err + } + + k.SetLastGaugeID(ctx, gauge.Id) + + err = k.setGaugeRefs(ctx, gauge) + if err != nil { + return nil, err + } + + k.hooks.AfterCreateGauge(ctx, gauge.Id) + return gauge, nil +} + +// AddToGaugeRewards adds coins to gauge. +func (k Keeper) AddToGaugeRewards( + ctx sdk.Context, + owner sdk.AccAddress, + coins sdk.Coins, + gaugeID uint64, +) error { + gauge, err := k.GetGaugeByID(ctx, gaugeID) + if err != nil { + return err + } + if gauge.IsFinishedGauge(ctx.BlockTime()) { + return errors.New("gauge is already completed") + } + if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, coins); err != nil { + return err + } + + gauge.Coins = gauge.Coins.Add(coins...) + err = k.setGauge(ctx, gauge) + if err != nil { + return err + } + k.hooks.AfterAddToGauge(ctx, gauge.Id) + return nil +} + +// GetGaugeByID returns gauge from gauge ID. +func (k Keeper) GetGaugeByID(ctx sdk.Context, gaugeID uint64) (*types.Gauge, error) { + gauge := types.Gauge{} + store := ctx.KVStore(k.storeKey) + gaugeKey := types.GetKeyGaugeStore(gaugeID) + if !store.Has(gaugeKey) { + return nil, fmt.Errorf("gauge with ID %d does not exist", gaugeID) + } + bz := store.Get(gaugeKey) + if err := proto.Unmarshal(bz, &gauge); err != nil { + return nil, err + } + return &gauge, nil +} + +// GetGaugeQualifyingValue returns gauge qualifying value from gauge ID. +func (k Keeper) GetGaugeQualifyingValue(ctx sdk.Context, gaugeID uint64) (uint64, error) { + gauge := types.Gauge{} + store := ctx.KVStore(k.storeKey) + gaugeKey := types.GetKeyGaugeStore(gaugeID) + if !store.Has(gaugeKey) { + return 0, fmt.Errorf("gauge with ID %d does not exist", gaugeID) + } + bz := store.Get(gaugeKey) + if err := proto.Unmarshal(bz, &gauge); err != nil { + return 0, err + } + var value uint64 = 0 + stakes := k.GetStakesByQueryCondition(ctx, &gauge.DistributeTo) + for _, stake := range stakes { + stakeCoins := k.StakeCoinsPassingQueryCondition(ctx, stake, gauge.DistributeTo) + for _, stakeCoin := range stakeCoins { + adjustedPositionValue, err := k.ValueForShares(ctx, stakeCoin, gauge.PricingTick) + if err != nil { + return 0, err + } + value += value + adjustedPositionValue.Uint64() + } + } + return value, nil +} + +// GetGauges returns upcoming, active, and finished gauges. +func (k Keeper) GetGauges(ctx sdk.Context) types.Gauges { + return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndex)) +} + +// GetNotFinishedGauges returns both upcoming and active gauges. +func (k Keeper) GetNotFinishedGauges(ctx sdk.Context) types.Gauges { + return append(k.GetActiveGauges(ctx), k.GetUpcomingGauges(ctx)...) +} + +// GetEpochInfo returns EpochInfo struct given context. +func (k Keeper) GetEpochInfo(ctx sdk.Context) epochtypes.EpochInfo { + params := k.GetParams(ctx) + return k.ek.GetEpochInfo(ctx, params.DistrEpochIdentifier) +} + +// moveUpcomingGaugeToActiveGauge moves a gauge that has reached it's start time from an upcoming to an active status. +func (k Keeper) moveUpcomingGaugeToActiveGauge(ctx sdk.Context, gauge *types.Gauge) error { + // validation for current time and distribution start time + if ctx.BlockTime().Before(gauge.StartTime) { + return fmt.Errorf( + "gauge is not able to start distribution yet: %s >= %s", + ctx.BlockTime().String(), + gauge.StartTime.String(), + ) + } + + timeKey := types.GetTimeKey(gauge.StartTime) + if err := k.deleteRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexUpcoming, timeKey), gauge.Id); err != nil { + return err + } + if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, timeKey), gauge.Id); err != nil { + return err + } + return nil +} + +// moveActiveGaugeToFinishedGauge moves a gauge that has completed its distribution from an active to a finished status. +func (k Keeper) moveActiveGaugeToFinishedGauge(ctx sdk.Context, gauge *types.Gauge) error { + timeKey := types.GetTimeKey(gauge.StartTime) + if err := k.deleteRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, timeKey), gauge.Id); err != nil { + return err + } + if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexFinished, timeKey), gauge.Id); err != nil { + return err + } + err := k.deleteRefByKey( + ctx, + types.GetKeyGaugeIndexByPair(gauge.DistributeTo.PairID.CanonicalString()), + gauge.Id, + ) + if err != nil { + return err + } + k.hooks.AfterFinishDistribution(ctx, gauge.Id) + return nil +} + +// GetActiveGauges returns active gauges. +func (k Keeper) GetActiveGauges(ctx sdk.Context) types.Gauges { + return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndexActive)) +} + +// GetUpcomingGauges returns upcoming gauges. +func (k Keeper) GetUpcomingGauges(ctx sdk.Context) types.Gauges { + return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndexUpcoming)) +} + +// GetFinishedGauges returns finished gauges. +func (k Keeper) GetFinishedGauges(ctx sdk.Context) types.Gauges { + return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndexFinished)) +} + +func (k Keeper) GetGaugesByPair(ctx sdk.Context, pair *dextypes.PairID) []*types.Gauge { + return k.getGaugesFromIterator( + ctx, + k.iterator(ctx, types.GetKeyGaugeIndexByPair(pair.CanonicalString())), + ) +} diff --git a/x/incentives/keeper/gauge_test.go b/x/incentives/keeper/gauge_test.go new file mode 100644 index 000000000..9258f7954 --- /dev/null +++ b/x/incentives/keeper/gauge_test.go @@ -0,0 +1,280 @@ +package keeper_test + +import ( + "testing" + "time" + + "github.com/neutron-org/neutron/testutil/apptesting" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/suite" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ = suite.TestingSuite(nil) + +func (suite *KeeperTestSuite) TestGaugeLifecycle() { + addr0 := suite.SetupAddr(0) + + // setup dex deposit and stake of those shares + suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr0, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + + // setup gauge starting 24 hours in the future + suite.SetupGauge(gaugeSpec{ + startTime: suite.Ctx.BlockTime().Add(24 * time.Hour), + isPerpetual: false, + rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10)), + paidOver: 2, + startTick: -10, + endTick: 10, + pricingTick: 0, + }) + + // assert that the gauge is not in effect yet by triggering an epoch end before gauge start + suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 1) + // no distribution yet + require.Equal( + suite.T(), + "0foocoin", + suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), + ) + // assert that gauge state is well-managed + require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 1) + require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 0) + require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 0) + + // advance time to epoch at or after the gauge starts, triggering distribution + suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) + suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 2) + + // assert that the gauge distributed + require.Equal( + suite.T(), + "5foocoin", + suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), + ) + // assert that gauge state is well-managed + require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 0) + require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 1) + require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 0) + + // advance to next epoch + suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) + suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 3) + + // assert new distribution + require.Equal( + suite.T(), + "10foocoin", + suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), + ) + // assert that gauge state is well-managed + require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 0) + require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 0) + require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 1) + + // repeat advancing to next epoch until gauge should be finished + suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) + suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 4) + + // assert no additional distribution from finished gauge + require.Equal( + suite.T(), + "10foocoin", + suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), + ) + // assert that gauge state is well-managed + require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 0) + require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 0) + require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 1) + // fin. +} + +func (suite *KeeperTestSuite) TestGaugeLimit() { + // We set the gauge limit to 20. On the 21st gauge, we should encounter an error. + params := suite.App.IncentivesKeeper.GetParams(suite.Ctx) + params.MaxGauges = 20 + suite.App.IncentivesKeeper.SetParams(suite.Ctx, params) + + addr0 := suite.SetupAddr(0) + + // setup dex deposit and stake of those shares + suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr0, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + + for i := 0; i < 20; i++ { + // setup gauge starting 24 hours in the future + suite.SetupGauge(gaugeSpec{ + startTime: suite.Ctx.BlockTime().Add(24 * time.Hour), + isPerpetual: false, + rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10)), + paidOver: 2, + startTick: -10, + endTick: 10, + pricingTick: 0, + }) + } + + addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) + + // fund reward tokens + suite.FundAcc(addr, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10))) + + // create gauge + _, err := suite.App.IncentivesKeeper.CreateGauge( + suite.Ctx, + false, + addr, + sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10)), + types.QueryCondition{ + PairID: &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + StartTick: -10, + EndTick: 10, + }, + suite.Ctx.BlockTime().Add(24*time.Hour), + 2, + 0, + ) + suite.Require().Error(err) +} + +// TestGaugeCreateFails tests that when the distribute command is executed on a provided bad gauge +// that the step fails gracefully. +func (suite *KeeperTestSuite) TestGaugeCreateFails() { + addrs := apptesting.SetupAddrs(3) + tests := []struct { + name string + addrs []sdk.AccAddress + depositStakeSpecs []depositStakeSpec + gaugeSpecs []gaugeSpec + assertions []balanceAssertion + }{ + { + name: "one stake with bad gauge", + depositStakeSpecs: []depositStakeSpec{ + { + depositSpecs: []depositSpec{ + { + addr: addrs[0], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 50, + }, + }, + stakeDistEpochOffset: -2, + }, + { + depositSpecs: []depositSpec{ + { + addr: addrs[1], + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 999, + fee: 50, + }, + }, + stakeDistEpochOffset: -1, + }, + }, + gaugeSpecs: []gaugeSpec{ + { + isPerpetual: false, + rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, + startTick: -1000, + endTick: 1000, + paidOver: 1, + pricingTick: 9999999, + }, + }, + assertions: []balanceAssertion{ + {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, + {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, + }, + }, + } + for _, tc := range tests { + suite.T().Run(tc.name, func(t *testing.T) { + suite.SetupTest() + for _, depositSpec := range tc.depositStakeSpecs { + suite.SetupDepositAndStake(depositSpec) + } + for _, s := range tc.gaugeSpecs { + addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) + + // fund reward tokens + suite.FundAcc(addr, s.rewards) + + // create gauge + _, err := suite.App.IncentivesKeeper.CreateGauge( + suite.Ctx, + s.isPerpetual, + addr, + s.rewards, + types.QueryCondition{ + PairID: &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + StartTick: s.startTick, + EndTick: s.endTick, + }, + s.startTime, + s.paidOver, + s.pricingTick, + ) + require.Error(t, err) + } + }) + } +} diff --git a/x/incentives/keeper/genesis.go b/x/incentives/keeper/genesis.go new file mode 100644 index 000000000..1943cd7a1 --- /dev/null +++ b/x/incentives/keeper/genesis.go @@ -0,0 +1,78 @@ +package keeper + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/neutron-org/neutron/x/incentives/types" +) + +// InitGenesis initializes the incentives module's state from a provided genesis state. +func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { + k.SetParams(ctx, genState.Params) + if err := k.InitializeAllStakes(ctx, genState.Stakes); err != nil { + panic(err) + } + if err := k.InitializeAllGauges(ctx, genState.Gauges); err != nil { + panic(err) + } + k.SetLastStakeID(ctx, genState.LastStakeId) + k.SetLastGaugeID(ctx, genState.LastGaugeId) + for _, accountHistory := range genState.AccountHistories { + err := k.SetAccountHistory(ctx, accountHistory) + if err != nil { + panic(err) + } + } +} + +// ExportGenesis returns the x/incentives module's exported genesis. +func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { + return &types.GenesisState{ + Params: k.GetParams(ctx), + Gauges: k.GetNotFinishedGauges(ctx), + LastGaugeId: k.GetLastGaugeID(ctx), + LastStakeId: k.GetLastStakeID(ctx), + Stakes: k.GetStakes(ctx), + AccountHistories: k.GetAllAccountHistory(ctx), + } +} + +// InitializeAllStakes takes a set of stakes, and initializes state to be storing +// them all correctly. +func (k Keeper) InitializeAllStakes(ctx sdk.Context, stakes types.Stakes) error { + for i, stake := range stakes { + if i%25000 == 0 { + msg := fmt.Sprintf("Reset %d stake refs, cur stake ID %d", i, stake.ID) + ctx.Logger().Info(msg) + } + err := k.setStake(ctx, stake) + if err != nil { + return err + } + + err = k.addStakeRefs(ctx, stake) + if err != nil { + return err + } + } + + return nil +} + +// InitializeAllGauges takes a set of gauges, and initializes state to be storing +// them all correctly. +func (k Keeper) InitializeAllGauges(ctx sdk.Context, gauges types.Gauges) error { + for _, gauge := range gauges { + err := k.setGauge(ctx, gauge) + if err != nil { + return err + } + err = k.setGaugeRefs(ctx, gauge) + if err != nil { + return err + } + } + return nil +} diff --git a/x/incentives/keeper/genesis_test.go b/x/incentives/keeper/genesis_test.go new file mode 100644 index 000000000..efeac77cb --- /dev/null +++ b/x/incentives/keeper/genesis_test.go @@ -0,0 +1,57 @@ +package keeper_test + +import ( + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/testutil/apptesting" + "github.com/neutron-org/neutron/testutil/dex/nullify" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" + "github.com/stretchr/testify/require" +) + +// TestIncentivesExportGenesis tests export genesis command for the incentives module. +func (suite *KeeperTestSuite) TestGenesis() { + validAddr, _ := apptesting.GenerateTestAddrs() + genesisState := types.GenesisState{ + Params: types.DefaultParams(), + LastStakeId: 10, + Stakes: []*types.Stake{ + { + ID: 0, + Owner: validAddr, + StartTime: time.Time{}, + Coins: sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 10)), + }, + }, + LastGaugeId: 10, + Gauges: []*types.Gauge{ + { + IsPerpetual: false, + Coins: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, + DistributeTo: types.QueryCondition{ + StartTick: -10, + EndTick: 10, + PairID: &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + }, + NumEpochsPaidOver: 1, + PricingTick: 0, + }, + }, + } + suite.App.IncentivesKeeper.InitGenesis(suite.Ctx, genesisState) + got := suite.App.IncentivesKeeper.ExportGenesis(suite.Ctx) + require.NotNil(suite.T(), got) + + nullify.Fill(&genesisState) + nullify.Fill(got) + + require.ElementsMatch(suite.T(), genesisState.Gauges, got.Gauges) + require.ElementsMatch(suite.T(), genesisState.Stakes, got.Stakes) + require.Equal(suite.T(), genesisState.LastStakeId, got.LastStakeId) + require.Equal(suite.T(), genesisState.LastGaugeId, got.LastGaugeId) +} diff --git a/x/incentives/keeper/hooks.go b/x/incentives/keeper/hooks.go new file mode 100644 index 000000000..4fd1c92fa --- /dev/null +++ b/x/incentives/keeper/hooks.go @@ -0,0 +1,60 @@ +package keeper + +import ( + epochstypes "github.com/neutron-org/neutron/x/epochs/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// BeforeEpochStart is the epoch start hook. +func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { + return nil +} + +// AfterEpochEnd is the epoch end hook. +func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { + params := k.GetParams(ctx) + if epochIdentifier == params.DistrEpochIdentifier { + // begin distribution if it's start time + gauges := k.GetUpcomingGauges(ctx) + for _, gauge := range gauges { + if gauge.IsActiveGauge(ctx.BlockTime()) { + if err := k.moveUpcomingGaugeToActiveGauge(ctx, gauge); err != nil { + return err + } + } + } + + // distribute due to epoch event + gauges = k.GetActiveGauges(ctx) + _, err := k.Distribute(ctx, gauges) + if err != nil { + return err + } + } + return nil +} + +// ___________________________________________________________________________________________________ + +// Hooks is the wrapper struct for the incentives keeper. +type Hooks struct { + k Keeper +} + +var _ epochstypes.EpochHooks = Hooks{} + +// Hooks returns the hook wrapper struct. +func (k Keeper) Hooks() Hooks { + return Hooks{k} +} + +// BeforeEpochStart is the epoch start hook. +func (h Hooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { + return h.k.BeforeEpochStart(ctx, epochIdentifier, epochNumber) +} + +// AfterEpochEnd is the epoch end hook. +func (h Hooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { + return h.k.AfterEpochEnd(ctx, epochIdentifier, epochNumber) +} diff --git a/x/incentives/keeper/iterator.go b/x/incentives/keeper/iterator.go new file mode 100644 index 000000000..f536fcce0 --- /dev/null +++ b/x/incentives/keeper/iterator.go @@ -0,0 +1,58 @@ +package keeper + +import ( + "encoding/json" + + db "github.com/cometbft/cometbft-db" + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// iterator returns an iterator over all gauges in the {prefix} space of state. +func (k Keeper) iterator(ctx sdk.Context, prefix []byte) sdk.Iterator { + store := ctx.KVStore(k.storeKey) + return sdk.KVStorePrefixIterator(store, prefix) +} + +// iterator returns an iterator over all gauges in the {prefix} space of state. +func (k Keeper) iteratorStartEnd(ctx sdk.Context, start []byte, end []byte) sdk.Iterator { + store := ctx.KVStore(k.storeKey) + return store.Iterator(start, end) +} + +func UnmarshalRefArray(bz []byte) []uint64 { + ids := []uint64{} + err := json.Unmarshal(bz, &ids) + if err != nil { + panic(err) + } + return ids +} + +// getStakesFromIterator returns an array of single stake units by period defined by the x/stake module. +func (k Keeper) getStakesFromIterator(ctx sdk.Context, iterator db.Iterator) types.Stakes { + stakes := types.Stakes{} + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + stakeIDs := UnmarshalRefArray(iterator.Value()) + for _, stakeID := range stakeIDs { + stake, err := k.GetStakeByID(ctx, stakeID) + if err != nil { + panic(err) + } + stakes = append(stakes, stake) + } + } + return stakes +} + +func (k Keeper) getIDsFromIterator(iterator db.Iterator) []uint64 { + allIds := []uint64{} + defer iterator.Close() + for ; iterator.Valid(); iterator.Next() { + ids := UnmarshalRefArray(iterator.Value()) + allIds = append(allIds, ids...) + } + return allIds +} diff --git a/x/incentives/keeper/keeper.go b/x/incentives/keeper/keeper.go new file mode 100644 index 000000000..0b8471250 --- /dev/null +++ b/x/incentives/keeper/keeper.go @@ -0,0 +1,81 @@ +package keeper + +import ( + "fmt" + + "github.com/cometbft/cometbft/libs/log" + + "github.com/neutron-org/neutron/x/incentives/types" + + storetypes "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" +) + +// Keeper provides a way to manage incentives module storage. +type Keeper struct { + storeKey storetypes.StoreKey + paramSpace paramtypes.Subspace + hooks types.IncentiveHooks + ak types.AccountKeeper + bk types.BankKeeper + ek types.EpochKeeper + dk types.DexKeeper + distributor Distributor + authority string +} + +// NewKeeper returns a new instance of the incentive module keeper struct. +func NewKeeper( + storeKey storetypes.StoreKey, + paramSpace paramtypes.Subspace, + ak types.AccountKeeper, + bk types.BankKeeper, + ek types.EpochKeeper, + dk types.DexKeeper, + authority string, +) *Keeper { + if !paramSpace.HasKeyTable() { + paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable()) + } + + keeper := &Keeper{ + storeKey: storeKey, + paramSpace: paramSpace, + ak: ak, + bk: bk, + ek: ek, + dk: dk, + authority: authority, + } + keeper.distributor = NewDistributor(keeper) + return keeper +} + +// SetHooks sets the incentives hooks. +func (k *Keeper) SetHooks(ih types.IncentiveHooks) *Keeper { + if k.hooks != nil { + panic("cannot set incentive hooks twice") + } + + k.hooks = ih + + return k +} + +// Logger returns a logger instance for the incentives module. +func (k Keeper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) +} + +// GetModuleBalance returns full balance of the module. +func (k Keeper) GetModuleBalance(ctx sdk.Context) sdk.Coins { + acc := k.ak.GetModuleAccount(ctx, types.ModuleName) + return k.bk.GetAllBalances(ctx, acc.GetAddress()) +} + +// GetModuleStakedCoins Returns staked balance of the module. +func (k Keeper) GetModuleStakedCoins(ctx sdk.Context) sdk.Coins { + // all not unstaking + not finished unstaking + return k.GetStakes(ctx).GetCoins() +} diff --git a/x/incentives/keeper/keeper_test.go b/x/incentives/keeper/keeper_test.go new file mode 100644 index 000000000..6017bc4f1 --- /dev/null +++ b/x/incentives/keeper/keeper_test.go @@ -0,0 +1,52 @@ +package keeper_test + +import ( + "testing" + + "github.com/stretchr/testify/suite" + + "github.com/neutron-org/neutron/testutil/apptesting" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/keeper" + "github.com/neutron-org/neutron/x/incentives/types" +) + +type KeeperTestSuite struct { + apptesting.KeeperTestHelper + + QueryServer keeper.QueryServer + MsgServer types.MsgServer + LPDenom0 string + LPDenom1 string +} + +// SetupTest sets incentives parameters from the suite's context +func (suite *KeeperTestSuite) SetupTest() { + suite.Setup() + suite.QueryServer = keeper.NewQueryServer(suite.App.IncentivesKeeper) + suite.MsgServer = keeper.NewMsgServerImpl(suite.App.IncentivesKeeper) + pool0, _ := suite.App.DexKeeper.GetOrInitPool(suite.Ctx, + &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + 0, + 1, + ) + suite.LPDenom0 = pool0.GetPoolDenom() + pool1, _ := suite.App.DexKeeper.GetOrInitPool(suite.Ctx, + &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + 1, + 1, + ) + suite.LPDenom1 = pool1.GetPoolDenom() + + suite.SetEpochStartTime() +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} diff --git a/x/incentives/keeper/msg_server.go b/x/incentives/keeper/msg_server.go new file mode 100644 index 000000000..6e7b3671e --- /dev/null +++ b/x/incentives/keeper/msg_server.go @@ -0,0 +1,183 @@ +package keeper + +import ( + "context" + "fmt" + "strconv" + + "cosmossdk.io/errors" + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var _ types.MsgServer = msgServer{} + +// msgServer provides a way to reference keeper pointer in the message server interface. +type msgServer struct { + keeper *Keeper +} + +// NewMsgServerImpl returns an instance of MsgServer for the provided keeper. +func NewMsgServerImpl(keeper *Keeper) types.MsgServer { + return &msgServer{ + keeper: keeper, + } +} + +// CreateGauge creates a gauge and sends coins to the gauge. +// Emits create gauge event and returns the create gauge response. +func (server msgServer) CreateGauge( + goCtx context.Context, + msg *types.MsgCreateGauge, +) (*types.MsgCreateGaugeResponse, error) { + if server.keeper.authority != msg.Owner { + return nil, errors.Wrapf( + types.ErrInvalidSigner, + "invalid authority; expected %s, got %s", + server.keeper.authority, + msg.Owner, + ) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + owner, err := sdk.AccAddressFromBech32(msg.Owner) + if err != nil { + return nil, err + } + + gauge, err := server.keeper.CreateGauge( + ctx, + msg.IsPerpetual, + owner, + msg.Coins, + msg.DistributeTo, + msg.StartTime, + msg.NumEpochsPaidOver, + msg.PricingTick, + ) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeEvtCreateGauge, + sdk.NewAttribute(types.AttributeGaugeID, strconv.FormatUint(gauge.Id, 10)), + ), + }) + + return &types.MsgCreateGaugeResponse{}, nil +} + +// AddToGauge adds coins to gauge. +// Emits add to gauge event and returns the add to gauge response. +func (server msgServer) AddToGauge( + goCtx context.Context, + msg *types.MsgAddToGauge, +) (*types.MsgAddToGaugeResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + owner, err := sdk.AccAddressFromBech32(msg.Owner) + if err != nil { + return nil, err + } + + err = server.keeper.AddToGaugeRewards(ctx, owner, msg.Rewards, msg.GaugeId) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeEvtAddToGauge, + sdk.NewAttribute(types.AttributeGaugeID, strconv.FormatUint(msg.GaugeId, 10)), + ), + }) + + return &types.MsgAddToGaugeResponse{}, nil +} + +// StakeTokens stakes tokens in either two ways. +// 1. Add to an existing stake if a stake with the same owner and same duration exists. +// 2. Create a new stake if not. +// A sanity check to ensure given tokens is a single token is done in ValidateBaic. +// That is, a stake with multiple tokens cannot be created. +func (server msgServer) Stake( + goCtx context.Context, + msg *types.MsgStake, +) (*types.MsgStakeResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + owner, err := sdk.AccAddressFromBech32(msg.Owner) + if err != nil { + return nil, err + } + + params := server.keeper.GetParams(ctx) + startDistEpoch := server.keeper.ek.GetEpochInfo(ctx, params.DistrEpochIdentifier).CurrentEpoch + + // if the owner + duration combination is new, create a new stake. + stake, err := server.keeper.CreateStake(ctx, owner, msg.Coins, ctx.BlockTime(), startDistEpoch) + if err != nil { + return nil, err + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeEvtStake, + sdk.NewAttribute(types.AttributeStakeID, strconv.FormatUint(stake.ID, 10)), + sdk.NewAttribute(types.AttributeStakeOwner, stake.Owner), + sdk.NewAttribute(types.AttributeStakeAmount, stake.Coins.String()), + ), + }) + + return &types.MsgStakeResponse{ID: stake.ID}, nil +} + +// BeginUnstaking begins unstaking of the specified stake. +// The stake would enter the unstaking queue, with the endtime of the stake set as block time + duration. +func (server msgServer) Unstake( + goCtx context.Context, + msg *types.MsgUnstake, +) (*types.MsgUnstakeResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + unstakes := msg.Unstakes + if len(msg.Unstakes) == 0 { + stakes := server.keeper.GetStakesByAccount(ctx, sdk.AccAddress(msg.Owner)) + unstakes = make([]*types.MsgUnstake_UnstakeDescriptor, len(stakes)) + for i, stake := range stakes { + unstakes[i] = &types.MsgUnstake_UnstakeDescriptor{ + ID: stake.ID, + Coins: sdk.NewCoins(), + } + } + } + + for _, unstake := range unstakes { + stake, err := server.keeper.GetStakeByID(ctx, unstake.ID) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + if msg.Owner != stake.Owner { + return nil, sdkerrors.Wrap( + types.ErrNotStakeOwner, + fmt.Sprintf( + "msg sender (%s) and stake owner (%s) does not match", + msg.Owner, + stake.Owner, + ), + ) + } + + _, err = server.keeper.Unstake(ctx, stake, unstake.Coins) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + } + + // N.B. begin unstake event is emitted downstream in the keeper method. + return &types.MsgUnstakeResponse{}, nil +} diff --git a/x/incentives/keeper/params.go b/x/incentives/keeper/params.go new file mode 100644 index 000000000..de175190f --- /dev/null +++ b/x/incentives/keeper/params.go @@ -0,0 +1,18 @@ +package keeper + +import ( + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// GetParams returns all of the parameters in the incentive module. +func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { + k.paramSpace.GetParamSet(ctx, ¶ms) + return params +} + +// SetParams sets all of the parameters in the incentive module. +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { + k.paramSpace.SetParamSet(ctx, ¶ms) +} diff --git a/x/incentives/keeper/query_server.go b/x/incentives/keeper/query_server.go new file mode 100644 index 000000000..6f259ee65 --- /dev/null +++ b/x/incentives/keeper/query_server.go @@ -0,0 +1,267 @@ +package keeper + +import ( + "context" + "encoding/json" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" +) + +var _ types.QueryServer = QueryServer{} + +// QueryServer defines a wrapper around the incentives module keeper providing gRPC method handlers. +type QueryServer struct { + *Keeper +} + +// NewQueryServer creates a new QueryServer struct. +func NewQueryServer(k *Keeper) QueryServer { + return QueryServer{Keeper: k} +} + +func (q QueryServer) GetModuleStatus( + goCtx context.Context, + req *types.GetModuleStatusRequest, +) (*types.GetModuleStatusResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + return &types.GetModuleStatusResponse{ + RewardCoins: q.Keeper.GetModuleCoinsToBeDistributed(ctx), + StakedCoins: q.Keeper.GetModuleStakedCoins(ctx), + Params: q.Keeper.GetParams(ctx), + }, nil +} + +func (q QueryServer) GetGaugeByID( + goCtx context.Context, + req *types.GetGaugeByIDRequest, +) (*types.GetGaugeByIDResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + gauge, err := q.Keeper.GetGaugeByID(ctx, req.Id) + if err != nil { + return nil, err + } + return &types.GetGaugeByIDResponse{Gauge: gauge}, nil +} + +func (q QueryServer) GetGaugeQualifyingValue( + goCtx context.Context, + req *types.GetGaugeQualifyingValueRequest, +) (*types.GetGaugeQualifyingValueResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + value, err := q.Keeper.GetGaugeQualifyingValue(ctx, req.Id) + if err != nil { + return nil, err + } + return &types.GetGaugeQualifyingValueResponse{QualifyingValue: value}, nil +} + +func (q QueryServer) GetGauges( + goCtx context.Context, + req *types.GetGaugesRequest, +) (*types.GetGaugesResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + + var prefix []byte + switch req.Status { + case types.GaugeStatus_ACTIVE_UPCOMING: + prefix = types.KeyPrefixGaugeIndex + case types.GaugeStatus_ACTIVE: + prefix = types.KeyPrefixGaugeIndexActive + case types.GaugeStatus_UPCOMING: + prefix = types.KeyPrefixGaugeIndexUpcoming + case types.GaugeStatus_FINISHED: + prefix = types.KeyPrefixGaugeIndexFinished + default: + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid status filter value") + } + + var lowerTick, upperTick int64 + var poolMetadata *dextypes.PoolMetadata + if req.Denom != "" { + poolMetadata, err := q.dk.GetPoolMetadataByDenom(ctx, req.Denom) + if err != nil { + return nil, err + } + lowerTick = poolMetadata.Tick - int64(poolMetadata.Fee) + upperTick = poolMetadata.Tick + int64(poolMetadata.Fee) + } + + gauges := types.Gauges{} + store := ctx.KVStore(q.Keeper.storeKey) + iterator := sdk.KVStorePrefixIterator(store, prefix) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + // this may return multiple gauges at once if two gauges start at the same time. + // for now this is treated as an edge case that is not of importance + newGauges, err := q.getGaugeFromIDJsonBytes(ctx, iterator.Value()) + if err != nil { + return nil, err + } + if req.Denom != "" { + for _, gauge := range newGauges { + if *gauge.DistributeTo.PairID != *poolMetadata.PairID { + continue + } + lowerTickInRange := gauge.DistributeTo.StartTick <= lowerTick && + lowerTick <= gauge.DistributeTo.EndTick + upperTickInRange := gauge.DistributeTo.StartTick <= upperTick && + upperTick <= gauge.DistributeTo.EndTick + if !lowerTickInRange || !upperTickInRange { + continue + } + gauges = append(gauges, gauge) + } + } else { + gauges = append(gauges, newGauges...) + } + } + + return &types.GetGaugesResponse{ + Gauges: gauges, + }, nil +} + +func (q QueryServer) GetStakeByID( + goCtx context.Context, + req *types.GetStakeByIDRequest, +) (*types.GetStakeByIDResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + stake, err := q.Keeper.GetStakeByID(ctx, req.StakeId) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + return &types.GetStakeByIDResponse{Stake: stake}, nil +} + +func (q QueryServer) GetStakes( + goCtx context.Context, + req *types.GetStakesRequest, +) (*types.GetStakesResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + hasOwner := len(req.Owner) > 0 + if !hasOwner { + // TODO: Verify this protection is necessary + return nil, status.Error( + codes.InvalidArgument, + "for performance reasons will not return all stakes", + ) + } + + owner, err := sdk.AccAddressFromBech32(req.Owner) + if err != nil { + return nil, err + } + + stakes := q.Keeper.getStakesByAccount(ctx, owner) + return &types.GetStakesResponse{ + Stakes: stakes, + }, nil +} + +func (q QueryServer) GetFutureRewardEstimate( + goCtx context.Context, + req *types.GetFutureRewardEstimateRequest, +) (*types.GetFutureRewardEstimateResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + if len(req.Owner) == 0 && len(req.StakeIds) == 0 { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "empty owner") + } + + if req.NumEpochs > 365 { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "end epoch out of ranges") + } + + var ownerAddress sdk.AccAddress + if len(req.Owner) != 0 { + owner, err := sdk.AccAddressFromBech32(req.Owner) + if err != nil { + return nil, err + } + ownerAddress = owner + } + + stakes := make(types.Stakes, 0, len(req.StakeIds)) + for _, stakeID := range req.StakeIds { + stake, err := q.Keeper.GetStakeByID(ctx, stakeID) + if err != nil { + return nil, err + } + stakes = append(stakes, stake) + } + + rewards, err := q.Keeper.GetRewardsEstimate(ctx, ownerAddress, stakes, req.NumEpochs) + if err != nil { + return nil, err + } + return &types.GetFutureRewardEstimateResponse{Coins: rewards}, nil +} + +func (q QueryServer) GetAccountHistory( + goCtx context.Context, + req *types.GetAccountHistoryRequest, +) (*types.GetAccountHistoryResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + accountHistory, found := q.Keeper.GetAccountHistory(ctx, req.Account) + if !found { + return nil, status.Error( + codes.NotFound, + "Could not locate an account history with that address", + ) + } + return &types.GetAccountHistoryResponse{Coins: accountHistory.Coins}, nil +} + +// getGaugeFromIDJsonBytes returns gauges from the json bytes of gaugeIDs. +func (q QueryServer) getGaugeFromIDJsonBytes( + ctx sdk.Context, + refValue []byte, +) (types.Gauges, error) { + gauges := types.Gauges{} + gaugeIDs := []uint64{} + + err := json.Unmarshal(refValue, &gaugeIDs) + if err != nil { + return gauges, err + } + + for _, gaugeID := range gaugeIDs { + gauge, err := q.Keeper.GetGaugeByID(ctx, gaugeID) + if err != nil { + return types.Gauges{}, err + } + + gauges = append(gauges, gauge) + } + + return gauges, nil +} diff --git a/x/incentives/keeper/query_server_test.go b/x/incentives/keeper/query_server_test.go new file mode 100644 index 000000000..1a99a7117 --- /dev/null +++ b/x/incentives/keeper/query_server_test.go @@ -0,0 +1,126 @@ +package keeper_test + +import ( + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/incentives/types" + "github.com/stretchr/testify/suite" +) + +var _ = suite.TestingSuite(nil) + +func (suite *KeeperTestSuite) TestGetFutureRewardEstimate() { + addr1 := suite.SetupAddr(0) + suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr1, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + addr2 := suite.SetupAddr(1) + suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr2, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + suite.SetupGauge(gaugeSpec{ + isPerpetual: false, + rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), + paidOver: 100, + startTick: -10, + endTick: 10, + pricingTick: 0, + startTime: suite.Ctx.BlockTime(), + }) + suite.SetupGauge(gaugeSpec{ + isPerpetual: false, + rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), + paidOver: 100, + startTick: -10, + endTick: 10, + pricingTick: 0, + startTime: suite.Ctx.BlockTime().Add(315 * 24 * time.Hour), + }) + estimate, err := suite.QueryServer.GetFutureRewardEstimate( + suite.GoCtx, + &types.GetFutureRewardEstimateRequest{ + Owner: addr1.String(), + StakeIds: nil, + NumEpochs: 365, + }, + ) + suite.Require().NoError(err) + suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin("foocoin", 750)), estimate.Coins) +} + +func (suite *KeeperTestSuite) TestGetGauges() { + addr1 := suite.SetupAddr(0) + suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr1, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + addr2 := suite.SetupAddr(1) + suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr2, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + gauge1 := suite.SetupGauge(gaugeSpec{ + isPerpetual: false, + rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), + paidOver: 100, + startTick: -10, + endTick: 10, + pricingTick: 0, + startTime: suite.Ctx.BlockTime(), + }) + gauge2 := suite.SetupGauge(gaugeSpec{ + isPerpetual: false, + rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), + paidOver: 100, + startTick: -10, + endTick: 10, + pricingTick: 0, + startTime: suite.Ctx.BlockTime().Add(315 * 24 * time.Hour), + }) + + response, err := suite.QueryServer.GetGauges(suite.GoCtx, &types.GetGaugesRequest{ + Status: types.GaugeStatus_ACTIVE_UPCOMING, + Denom: "", + }) + + suite.Require().NoError(err) + suite.Require().Equal([]*types.Gauge{ + gauge2, + gauge1, + }, response.Gauges) +} diff --git a/x/incentives/keeper/stake.go b/x/incentives/keeper/stake.go new file mode 100644 index 000000000..677494ffa --- /dev/null +++ b/x/incentives/keeper/stake.go @@ -0,0 +1,249 @@ +package keeper + +import ( + "fmt" + "strconv" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/gogoproto/proto" + + "github.com/neutron-org/neutron/x/incentives/types" +) + +// GetLastStakeID returns ID used last time. +func (k Keeper) GetLastStakeID(ctx sdk.Context) uint64 { + store := ctx.KVStore(k.storeKey) + + bz := store.Get(types.KeyLastStakeID) + if bz == nil { + return 0 + } + + return sdk.BigEndianToUint64(bz) +} + +// SetLastStakeID save ID used by last stake. +func (k Keeper) SetLastStakeID(ctx sdk.Context, id uint64) { + store := ctx.KVStore(k.storeKey) + store.Set(types.KeyLastStakeID, sdk.Uint64ToBigEndian(id)) +} + +func (k Keeper) Unstake(ctx sdk.Context, stake *types.Stake, coins sdk.Coins) (uint64, error) { + if coins.Empty() { + coins = stake.Coins + } + + if !coins.IsAllLTE(stake.Coins) { + return 0, fmt.Errorf("requested amount to unstake exceeds locked tokens") + } + + // remove existing stake refs from not unlocking queue + err := k.deleteStakeRefs(ctx, stake) + if err != nil { + return 0, err + } + + if len(coins) != 0 && !coins.IsEqual(stake.Coins) { + stake.Coins = stake.Coins.Sub(coins...) + err := k.setStake(ctx, stake) + if err != nil { + return 0, err + } + + // re-add remaining stake refs + err = k.addStakeRefs(ctx, stake) + if err != nil { + return 0, err + } + } else { + k.deleteStake(ctx, stake.ID) + } + + err = k.bk.SendCoinsFromModuleToAccount(ctx, types.ModuleName, stake.OwnerAddress(), coins) + if err != nil { + return 0, err + } + + if k.hooks != nil { + k.hooks.OnTokenUnstaked(ctx, stake.OwnerAddress(), stake.ID, stake.Coins, ctx.BlockTime()) + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + types.TypeEvtUnstake, + sdk.NewAttribute(types.AttributeStakeID, strconv.FormatUint(stake.ID, 10)), + sdk.NewAttribute(types.AttributeStakeOwner, stake.Owner), + sdk.NewAttribute(types.AttributeStakeStakeTime, stake.StartTime.String()), + sdk.NewAttribute(types.AttributeUnstakedCoins, coins.String()), + ), + }) + + return stake.ID, err +} + +// setStake is a utility to store stake object into the store. +func (k Keeper) setStake(ctx sdk.Context, stake *types.Stake) error { + store := ctx.KVStore(k.storeKey) + bz, err := proto.Marshal(stake) + if err != nil { + return err + } + store.Set(types.GetStakeStoreKey(stake.ID), bz) + return nil +} + +// deleteStake removes the stake object from the state. +func (k Keeper) deleteStake(ctx sdk.Context, id uint64) { + store := ctx.KVStore(k.storeKey) + store.Delete(types.GetStakeStoreKey(id)) +} + +// GetStakeByID Returns stake from stakeID. +func (k Keeper) GetStakeByID(ctx sdk.Context, stakeID uint64) (*types.Stake, error) { + stake := types.Stake{} + store := ctx.KVStore(k.storeKey) + lockKey := types.GetStakeStoreKey(stakeID) + if !store.Has(lockKey) { + return nil, sdkerrors.Wrap( + types.ErrStakeNotFound, + fmt.Sprintf("stake with ID %d does not exist", stakeID), + ) + } + bz := store.Get(lockKey) + err := proto.Unmarshal(bz, &stake) + return &stake, err +} + +// GetAccountStakes Returns the period locks associated to an account. +func (k Keeper) GetStakesByQueryCondition( + ctx sdk.Context, + distrTo *types.QueryCondition, +) types.Stakes { + pairIDString := distrTo.PairID.CanonicalString() + tickStakeIds := k.getIDsFromIterator( + k.iteratorStartEnd( + ctx, + types.GetKeyStakeIndexByPairTick(pairIDString, distrTo.StartTick), + types.GetKeyStakeIndexByPairTick(pairIDString, distrTo.EndTick+1), + ), + ) + + idMemo := make(map[uint64]bool) + for _, id := range tickStakeIds { + idMemo[id] = true + } + + params := k.GetParams(ctx) + curEpoch := k.ek.GetEpochInfo(ctx, params.GetDistrEpochIdentifier()) + timeStakeIds := k.getIDsFromIterator( + k.iteratorStartEnd( + ctx, + types.CombineKeys( + types.KeyPrefixStakeIndexPairDistEpoch, + []byte(pairIDString), + ), + sdk.PrefixEndBytes(types.GetKeyStakeIndexByDistEpoch( + pairIDString, + curEpoch.CurrentEpoch-2, + )), + ), + ) + + resultIds := []uint64{} + for _, id := range timeStakeIds { + if _, ok := idMemo[id]; ok { + resultIds = append(resultIds, id) + } + } + + results := make([]*types.Stake, len(resultIds)) + for i, stakeID := range resultIds { + stake, err := k.GetStakeByID(ctx, stakeID) + if err != nil { + // This represents a db inconsistency + panic(err) + } + results[i] = stake + } + return results +} + +func (k Keeper) GetStakes(ctx sdk.Context) types.Stakes { + return k.getStakesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixStakeIndex)) +} + +func (k Keeper) getStakesByAccount(ctx sdk.Context, acct sdk.AccAddress) types.Stakes { + return k.getStakesFromIterator(ctx, k.iterator(ctx, types.GetKeyStakeIndexByAccount(acct))) +} + +// GetAccountStakes Returns the period locks associated to an account. +func (k Keeper) GetStakesByAccount(ctx sdk.Context, addr sdk.AccAddress) types.Stakes { + return k.getStakesFromIterator(ctx, k.iterator(ctx, types.GetKeyStakeIndexByAccount(addr))) +} + +func (k Keeper) CreateStake( + ctx sdk.Context, + owner sdk.AccAddress, + coins sdk.Coins, + startTime time.Time, + startDistEpoch int64, +) (*types.Stake, error) { + ID := k.GetLastStakeID(ctx) + 1 + + // unlock time is initially set without a value, gets set as unlock start time + duration + // when unlocking starts. + stake := types.NewStake(ID, owner, coins, startTime, startDistEpoch) + + owner, err := sdk.AccAddressFromBech32(stake.Owner) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + err = stake.ValidateBasic() + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, stake.Coins); err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + // store stake object into the store + err = k.setStake(ctx, stake) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + k.hooks.OnTokenStaked(ctx, owner, stake.ID, stake.Coins, ctx.BlockTime()) + k.SetLastStakeID(ctx, stake.ID) + + // add stake refs into not unlocking queue + err = k.addStakeRefs(ctx, stake) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + } + + return stake, nil +} + +func (k Keeper) StakeCoinsPassingQueryCondition( + ctx sdk.Context, + stake *types.Stake, + distrTo types.QueryCondition, +) sdk.Coins { + coins := stake.Coins + result := sdk.NewCoins() + for _, c := range coins { + poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, c.Denom) + if err != nil { + continue + } + + if distrTo.Test(poolMetadata) { + result = result.Add(c) + } + } + return result +} diff --git a/x/incentives/keeper/stake_refs.go b/x/incentives/keeper/stake_refs.go new file mode 100644 index 000000000..93d9c66d5 --- /dev/null +++ b/x/incentives/keeper/stake_refs.go @@ -0,0 +1,72 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" +) + +// addStakeRefs adds appropriate reference keys preceded by a prefix. +// A prefix indicates whether the stake is unstaking or not. +func (k Keeper) addStakeRefs(ctx sdk.Context, stake *types.Stake) error { + refKeys, err := k.getStakeRefKeys(ctx, stake) + if err != nil { + return err + } + for _, refKey := range refKeys { + if err := k.addRefByKey(ctx, refKey, stake.ID); err != nil { + return err + } + } + return nil +} + +// deleteStakeRefs deletes all the stake references of the stake with the given stake prefix. +func (k Keeper) deleteStakeRefs(ctx sdk.Context, stake *types.Stake) error { + refKeys, err := k.getStakeRefKeys(ctx, stake) + if err != nil { + return err + } + for _, refKey := range refKeys { + err = k.deleteRefByKey(ctx, refKey, stake.ID) + if err != nil { + return err + } + } + return nil +} + +func (k Keeper) getStakeRefKeys(ctx sdk.Context, stake *types.Stake) ([][]byte, error) { + owner, err := sdk.AccAddressFromBech32(stake.Owner) + if err != nil { + return nil, err + } + + refKeys := make(map[string]bool) + refKeys[string(types.KeyPrefixStakeIndex)] = true + refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexAccount, owner))] = true + + for _, coin := range stake.Coins { + poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, coin.Denom) + if err != nil { + panic("Only valid LP tokens should be staked") + } + denomBz := []byte(coin.Denom) + pairIDBz := []byte(poolMetadata.PairID.CanonicalString()) + tickBz := dextypes.TickIndexToBytes(poolMetadata.Tick) + refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexDenom, denomBz))] = true + refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexPairTick, pairIDBz, tickBz))] = true + refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexAccountDenom, owner, denomBz))] = true + refKeys[string(types.CombineKeys( + types.KeyPrefixStakeIndexPairDistEpoch, + pairIDBz, + types.GetKeyInt64(stake.StartDistEpoch), + ))] = true + } + + refKeyBytes := make([][]byte, 0, len(refKeys)) + for k := range refKeys { + refKeyBytes = append(refKeyBytes, []byte(k)) + } + return refKeyBytes, nil +} diff --git a/x/incentives/keeper/stake_test.go b/x/incentives/keeper/stake_test.go new file mode 100644 index 000000000..db858ff8f --- /dev/null +++ b/x/incentives/keeper/stake_test.go @@ -0,0 +1,120 @@ +package keeper_test + +import ( + "github.com/stretchr/testify/suite" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var _ = suite.TestingSuite(nil) + +func (suite *KeeperTestSuite) TestStakeLifecycle() { + addr0 := suite.SetupAddr(0) + + // setup dex deposit and stake of those shares + stake := suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr0, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + + retrievedStake, err := suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) + suite.Require().NoError(err) + suite.Require().NotNil(retrievedStake) + + // unstake the full amount + suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) + balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) + suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 20)), balances) + _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) + // should be deleted + suite.Require().Error(err) +} + +func (suite *KeeperTestSuite) TestMultipleStakeLifecycle() { + addr0 := suite.SetupAddr(0) + + // setup dex deposit and stake of those shares + stake := suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr0, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + { + addr: addr0, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 1, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + + retrievedStake, err := suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) + suite.Require().NoError(err) + suite.Require().NotNil(retrievedStake) + + // unstake the full amount + suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) + balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) + suite.Require().Equal( + sdk.NewCoins( + sdk.NewInt64Coin(suite.LPDenom0, 20), + sdk.NewInt64Coin(suite.LPDenom1, 20), + ), balances) + _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) + // should be deleted + suite.Require().Error(err) +} + +func (suite *KeeperTestSuite) TestStakeUnstakePartial() { + addr0 := suite.SetupAddr(0) + + // setup dex deposit and stake of those shares + stake := suite.SetupDepositAndStake(depositStakeSpec{ + depositSpecs: []depositSpec{ + { + addr: addr0, + token0: sdk.NewInt64Coin("TokenA", 10), + token1: sdk.NewInt64Coin("TokenB", 10), + tick: 0, + fee: 1, + }, + }, + stakeDistEpochOffset: -2, + }) + + retrievedStake, err := suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) + suite.Require().NoError(err) + suite.Require().NotNil(retrievedStake) + + // unstake the full amount + _, err = suite.App.IncentivesKeeper.Unstake( + suite.Ctx, + stake, + sdk.Coins{sdk.NewInt64Coin(suite.LPDenom0, 9)}, + ) + suite.Require().NoError(err) + balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) + suite.Require().ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 9)), balances) + // should still be accessible + retrievedStake, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) + suite.Require().NoError(err) + suite.Require().NotNil(retrievedStake) + suite.Require(). + ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 11)), retrievedStake.Coins) + + // fin. +} diff --git a/x/incentives/keeper/store_test.go b/x/incentives/keeper/store_test.go new file mode 100644 index 000000000..0391f90ad --- /dev/null +++ b/x/incentives/keeper/store_test.go @@ -0,0 +1,54 @@ +package keeper_test + +// func (suite *KeeperTestSuite) TestGaugeReferencesManagement() { +// key1 := []byte{0x11} +// key2 := []byte{0x12} + +// suite.SetupTest() + +// // set two gauge references to key 1 and three gauge references to key 2 +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 1) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 1) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 2) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 2) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 3) + +// // ensure key1 only has 2 entires +// gaugeRefs1 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key1) +// suite.Require().Equal(len(gaugeRefs1), 2) + +// // ensure key2 only has 3 entries +// gaugeRefs2 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) +// suite.Require().Equal(len(gaugeRefs2), 3) + +// // remove gauge 1 from key2, resulting in a reduction from 3 to 2 entries +// err := suite.App.IncentivesKeeper.deleteRefByKey(suite.Ctx, key2, 1) +// suite.Require().NoError(err) + +// // ensure key2 now only has 2 entires +// gaugeRefs3 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) +// suite.Require().Equal(len(gaugeRefs3), 2) +// } + +// var _ = suite.TestingSuite(nil) + +// func (suite *KeeperTestSuite) TestStakeReferencesManagement() { +// key1 := []byte{0x11} +// key2 := []byte{0x12} + +// suite.SetupTest() +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 1) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 1) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 2) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 2) +// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 3) + +// stakeIDs1 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key1) +// suite.Require().Equal(len(stakeIDs1), 2) +// stakeIDs2 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) +// suite.Require().Equal(len(stakeIDs2), 3) + +// suite.App.IncentivesKeeper.deleteRefByKey(suite.Ctx, key2, 1) +// stakeIDs2 = suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) +// suite.Require().Equal(len(stakeIDs2), 2) +// } diff --git a/x/incentives/keeper/suite_test.go b/x/incentives/keeper/suite_test.go new file mode 100644 index 000000000..89596b341 --- /dev/null +++ b/x/incentives/keeper/suite_test.go @@ -0,0 +1,123 @@ +package keeper_test + +import ( + "time" + + dextypes "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/incentives/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type depositStakeSpec struct { + depositSpecs []depositSpec + stakeDistEpochOffset int // used for simulating the time of staking +} + +type depositSpec struct { + addr sdk.AccAddress + token0 sdk.Coin + token1 sdk.Coin + tick int64 + fee uint64 +} + +type gaugeSpec struct { + isPerpetual bool + rewards sdk.Coins + paidOver uint64 + startTick int64 + endTick int64 + pricingTick int64 + startTime time.Time +} + +// AddToGauge adds coins to the specified gauge. +func (suite *KeeperTestSuite) AddToGauge(coins sdk.Coins, gaugeID uint64) uint64 { + addr := sdk.AccAddress([]byte("addrx---------------")) + suite.FundAcc(addr, coins) + err := suite.App.IncentivesKeeper.AddToGaugeRewards(suite.Ctx, addr, coins, gaugeID) + suite.Require().NoError(err) + return gaugeID +} + +func (suite *KeeperTestSuite) SetupDeposit(ss []depositSpec) sdk.Coins { + shares := sdk.NewCoins() + for _, s := range ss { + suite.FundAcc(s.addr, sdk.Coins{s.token0, s.token1}) + _, _, indivShares, err := suite.App.DexKeeper.DepositCore( + sdk.WrapSDKContext(suite.Ctx), + dextypes.MustNewPairID(s.token0.Denom, s.token1.Denom), + s.addr, + s.addr, + []sdk.Int{s.token0.Amount}, + []sdk.Int{s.token1.Amount}, + []int64{s.tick}, + []uint64{s.fee}, + []*dextypes.DepositOptions{{}}, + ) + suite.Require().NoError(err) + suite.Require().NotEmpty(indivShares) + shares = shares.Add(indivShares...) + } + return shares +} + +func (suite *KeeperTestSuite) SetupDepositAndStake(s depositStakeSpec) *types.Stake { + shares := suite.SetupDeposit(s.depositSpecs) + return suite.SetupStake(s.depositSpecs[0].addr, shares, s.stakeDistEpochOffset) +} + +// StakeTokens stakes tokens for the specified duration +func (suite *KeeperTestSuite) SetupStake( + addr sdk.AccAddress, + shares sdk.Coins, + distEpochOffset int, +) *types.Stake { + params := suite.App.IncentivesKeeper.GetParams(suite.Ctx) + epoch := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, params.GetDistrEpochIdentifier()) + stake, err := suite.App.IncentivesKeeper.CreateStake( + suite.Ctx, + addr, + shares, + suite.Ctx.BlockTime(), // irrelevant now + epoch.CurrentEpoch+int64(distEpochOffset), + ) + suite.Require().NoError(err) + return stake +} + +// setupNewGauge creates a gauge with the specified duration. +func (suite *KeeperTestSuite) SetupGauge(s gaugeSpec) *types.Gauge { + addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) + + // fund reward tokens + suite.FundAcc(addr, s.rewards) + + // create gauge + gauge, err := suite.App.IncentivesKeeper.CreateGauge( + suite.Ctx, + s.isPerpetual, + addr, + s.rewards, + types.QueryCondition{ + PairID: &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + StartTick: s.startTick, + EndTick: s.endTick, + }, + s.startTime, + s.paidOver, + s.pricingTick, + ) + suite.Require().NoError(err) + return gauge +} + +func (suite *KeeperTestSuite) SetupGauges(specs []gaugeSpec) { + for _, s := range specs { + suite.SetupGauge(s) + } +} diff --git a/x/incentives/keeper/utils.go b/x/incentives/keeper/utils.go new file mode 100644 index 000000000..9a75f8eb2 --- /dev/null +++ b/x/incentives/keeper/utils.go @@ -0,0 +1,78 @@ +package keeper + +import ( + "encoding/json" + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// findIndex takes an array of IDs. Then return the index of a specific ID. +func findIndex(ids []uint64, id uint64) int { + for index, inspectID := range ids { + if inspectID == id { + return index + } + } + return -1 +} + +// removeValue takes an array of IDs. Then finds the index of the IDs and remove those IDs from the array. +func removeValue(ids []uint64, id uint64) ([]uint64, int) { + index := findIndex(ids, id) + if index < 0 { + return ids, index + } + ids[index] = ids[len(ids)-1] // set last element to index + return ids[:len(ids)-1], index +} + +// getRefs returns the IDs specified by the provided key. +func (k Keeper) getRefs(ctx sdk.Context, key []byte) []uint64 { + store := ctx.KVStore(k.storeKey) + ids := []uint64{} + if store.Has(key) { + bz := store.Get(key) + err := json.Unmarshal(bz, &ids) + if err != nil { + panic(err) + } + } + return ids +} + +// addRefByKey appends the provided object ID into an array associated with the provided key. +func (k Keeper) addRefByKey(ctx sdk.Context, key []byte, id uint64) error { + store := ctx.KVStore(k.storeKey) + ids := k.getRefs(ctx, key) + if findIndex(ids, id) > -1 { + return fmt.Errorf("object with same ID exists: %d", id) + } + ids = append(ids, id) + bz, err := json.Marshal(ids) + if err != nil { + return err + } + store.Set(key, bz) + return nil +} + +// deleteRefByKey removes the provided object ID from an array associated with the provided key. +func (k Keeper) deleteRefByKey(ctx sdk.Context, key []byte, id uint64) error { + store := ctx.KVStore(k.storeKey) + ids := k.getRefs(ctx, key) + ids, index := removeValue(ids, id) + if index < 0 { + return fmt.Errorf("specific object with ID %d not found by reference %s", id, key) + } + if len(ids) == 0 { + store.Delete(key) + } else { + bz, err := json.Marshal(ids) + if err != nil { + return err + } + store.Set(key, bz) + } + return nil +} diff --git a/x/incentives/keeper/utils_test.go b/x/incentives/keeper/utils_test.go new file mode 100644 index 000000000..95172abc0 --- /dev/null +++ b/x/incentives/keeper/utils_test.go @@ -0,0 +1,126 @@ +package keeper_test + +import ( + "testing" + "time" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + + "github.com/neutron-org/neutron/app" + dextypes "github.com/neutron-org/neutron/x/dex/types" + . "github.com/neutron-org/neutron/x/incentives/keeper" + "github.com/neutron-org/neutron/x/incentives/types" +) + +func TestCombineKeys(t *testing.T) { + // create three keys, each different byte arrays + key1 := []byte{0x11} + key2 := []byte{0x12} + key3 := []byte{0x13} + + // combine the three keys into a single key + key := types.CombineKeys(key1, key2, key3) + + // three keys plus two separators is equal to a length of 5 + require.Len(t, key, 3+2) + + // ensure the newly created key is made up of the three previous keys (and the two key index separators) + require.Equal(t, key[0], key1[0]) + require.Equal(t, key[1], types.KeyIndexSeparator[0]) + require.Equal(t, key[2], key2[0]) + require.Equal(t, key[3], types.KeyIndexSeparator[0]) + require.Equal(t, key[4], key3[0]) +} + +func TestFindIndex(t *testing.T) { + // create an array of 5 IDs + IDs := []uint64{1, 2, 3, 4, 5} + + // use the FindIndex function to find the index of the respective IDs + // if it doesn't exist, return -1 + require.Equal(t, FindIndex(IDs, 1), 0) + require.Equal(t, FindIndex(IDs, 3), 2) + require.Equal(t, FindIndex(IDs, 5), 4) + require.Equal(t, FindIndex(IDs, 6), -1) +} + +func TestRemoveValue(t *testing.T) { + // create an array of 5 IDs + IDs := []uint64{1, 2, 3, 4, 5} + + // remove an ID + // ensure if ID exists, the length is reduced by one and the index of the removed ID is returned + IDs, index1 := RemoveValue(IDs, 5) + require.Len(t, IDs, 4) + require.Equal(t, index1, 4) + IDs, index2 := RemoveValue(IDs, 3) + require.Len(t, IDs, 3) + require.Equal(t, index2, 2) + IDs, index3 := RemoveValue(IDs, 1) + require.Len(t, IDs, 2) + require.Equal(t, index3, 0) + IDs, index4 := RemoveValue(IDs, 6) + require.Len(t, IDs, 2) + require.Equal(t, index4, -1) +} + +func TestStakeRefKeys(t *testing.T) { + addr1 := sdk.AccAddress([]byte("addr1---------------")) + app := app.Setup(t, false) + ctx := app.BaseApp.NewContext(false, tmproto.Header{}) + + pool1, err := app.DexKeeper.InitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 0, 1) + require.NoError(t, err) + + denom1 := pool1.GetPoolDenom() + + pool2, err := app.DexKeeper.InitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenC"}, 0, 1) + require.NoError(t, err) + + denom2 := pool2.GetPoolDenom() + + // empty address and 1 coin + stake1 := types.NewStake( + 1, + sdk.AccAddress{}, + sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, + time.Now(), + 10, + ) + _, err = app.IncentivesKeeper.GetStakeRefKeys(ctx, stake1) + require.Error(t, err) + + // empty address and 2 coins + stake2 := types.NewStake( + 1, + sdk.AccAddress{}, + sdk.Coins{sdk.NewInt64Coin(denom1, 10), sdk.NewInt64Coin(denom2, 1)}, + time.Now(), + 10, + ) + _, err = app.IncentivesKeeper.GetStakeRefKeys(ctx, stake2) + require.Error(t, err) + + // not empty address and 1 coin + stake3 := types.NewStake(1, addr1, sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, time.Now(), 10) + keys3, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake3) + require.Len(t, keys3, 6) + + // not empty address and empty coin + stake4 := types.NewStake(1, addr1, sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, time.Now(), 10) + keys4, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake4) + require.Len(t, keys4, 6) + + // not empty address and 2 coins + stake5 := types.NewStake( + 1, + addr1, + sdk.Coins{sdk.NewInt64Coin(denom1, 10), sdk.NewInt64Coin(denom2, 1)}, + time.Now(), + 10, + ) + keys5, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake5) + require.Len(t, keys5, 10) +} diff --git a/x/incentives/module.go b/x/incentives/module.go new file mode 100644 index 000000000..6340f41a2 --- /dev/null +++ b/x/incentives/module.go @@ -0,0 +1,212 @@ +/* +Incentives module provides general interface to give yield to stakers. The yield to be given +to stakers are stored in gauges and is distributed on epoch basis +to the stakers who meet specific conditions. + - Gauge queries, gauge creation and add tokens to gauge + - Upcoming-gauges related queries + - Gauge infos and gauge queues +*/package incentives + +import ( + "context" + "encoding/json" + "fmt" + + abci "github.com/cometbft/cometbft/abci/types" + "github.com/gorilla/mux" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" + + "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" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/cosmos/cosmos-sdk/x/gov/simulation" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + + "github.com/neutron-org/neutron/x/incentives/client/cli" + "github.com/neutron-org/neutron/x/incentives/keeper" + "github.com/neutron-org/neutron/x/incentives/types" +) + +var ( + _ module.AppModule = AppModule{} + _ module.AppModuleBasic = AppModuleBasic{} +) + +// ---------------------------------------------------------------------------- +// AppModuleBasic +// ---------------------------------------------------------------------------- + +// Implements the AppModuleBasic interface for the module. +type AppModuleBasic struct{} + +// NewAppModuleBasic creates a new AppModuleBasic struct. +func NewAppModuleBasic() AppModuleBasic { + return AppModuleBasic{} +} + +// Name returns the module's name. +func (AppModuleBasic) Name() string { + return types.ModuleName +} + +// RegisterLegacyAminoCodec registers the module's types on the LegacyAmino codec. +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + types.RegisterCodec(cdc) +} + +// RegisterInterfaces registers the module's interface types. +func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { + types.RegisterInterfaces(reg) +} + +// DefaultGenesis returns the module's default genesis state. +func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(types.DefaultGenesis()) +} + +// ValidateGenesis performs genesis state validation for the module. +func (AppModuleBasic) ValidateGenesis( + cdc codec.JSONCodec, + config client.TxEncodingConfig, + bz json.RawMessage, +) error { + var genState types.GenesisState + if err := cdc.UnmarshalJSON(bz, &genState); err != nil { + return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) + } + return genState.Validate() +} + +// RegisterRESTRoutes registers the module's REST service handlers. +func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { +} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { + return + } +} + +// GetTxCmd returns the module's root tx command. +func (a AppModuleBasic) GetTxCmd() *cobra.Command { + return cli.GetTxCmd() +} + +// GetQueryCmd returns the module's root query command. +func (AppModuleBasic) GetQueryCmd() *cobra.Command { + return cli.GetQueryCmd() +} + +// ---------------------------------------------------------------------------- +// AppModule +// ---------------------------------------------------------------------------- + +// AppModule implements the AppModule interface for the module. +type AppModule struct { + AppModuleBasic + + keeper *keeper.Keeper + + accountKeeper stakingtypes.AccountKeeper + bankKeeper stakingtypes.BankKeeper + epochKeeper types.EpochKeeper +} + +// NewAppModule creates a new AppModule struct. +func NewAppModule(keeper *keeper.Keeper, + accountKeeper stakingtypes.AccountKeeper, bankKeeper stakingtypes.BankKeeper, + epochKeeper types.EpochKeeper, +) AppModule { + return AppModule{ + AppModuleBasic: NewAppModuleBasic(), + keeper: keeper, + accountKeeper: accountKeeper, + bankKeeper: bankKeeper, + epochKeeper: epochKeeper, + } +} + +// Name returns the module's name. +func (am AppModule) Name() string { + return am.AppModuleBasic.Name() +} + +// QuerierRoute returns the module's query routing key. +func (AppModule) QuerierRoute() string { return types.QuerierRoute } + +// RegisterServices registers the module's services. +func (am AppModule) RegisterServices(cfg module.Configurator) { + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) + types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) +} + +// RegisterInvariants registers the module's invariants. +func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} + +// InitGenesis performs the module's genesis initialization. +// Returns an empty ValidatorUpdate array. +func (am AppModule) InitGenesis( + ctx sdk.Context, + cdc codec.JSONCodec, + gs json.RawMessage, +) []abci.ValidatorUpdate { + var genState types.GenesisState + // initialize global index to index in genesis state. + cdc.MustUnmarshalJSON(gs, &genState) + + am.keeper.InitGenesis(ctx, genState) + + return []abci.ValidatorUpdate{} +} + +// ExportGenesis returns the module's exported genesis state as raw JSON bytes. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(am.keeper.ExportGenesis(ctx)) +} + +// BeginBlock executes all ABCI BeginBlock logic respective to the module. +func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} + +// EndBlock executes all ABCI EndBlock logic respective to the module. +// Returns a nil validatorUpdate struct array. +func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { + return []abci.ValidatorUpdate{} +} + +// AppModuleSimulation functions + +// GenerateGenesisState creates a randomized GenState of the incentives module. +func (AppModule) GenerateGenesisState(simState *module.SimulationState) { + simulation.RandomizedGenState(simState) +} + +// ProposalContents returns nil for governance proposals contents. +// Should eventually be deleted in a future update. +func (AppModule) ProposalContents( + simState module.SimulationState, +) []simtypes.WeightedProposalContent { + return nil +} + +// RegisterStoreDecoder has an unknown purpose. Should eventually be deleted in a future update. +func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { +} + +// WeightedOperations returns the all the module's operations with their respective weights. +// func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { +// // return simulation.WeightedOperations( +// // simState.AppParams, simState.Cdc, +// // am.accountKeeper, am.bankKeeper, am.epochKeeper, am.keeper, +// // ) +// // simtypes.NewMsgBasedAction("stake tokens", am.keeper, simulation.RandomMsgStakeTokens), +// // simtypes.NewMsgBasedAction("unstake all tokens", am.keeper, simulation.RandomMsgBeginUnstakingAll), +// // simtypes.NewMsgBasedAction("unstake stake", am.keeper, simulation.RandomMsgBeginUnstaking), +// } + +// ConsensusVersion implements AppModule/ConsensusVersion. +func (AppModule) ConsensusVersion() uint64 { return 1 } diff --git a/x/incentives/types/account.pb.go b/x/incentives/types/account.pb.go new file mode 100644 index 000000000..eb0a043c9 --- /dev/null +++ b/x/incentives/types/account.pb.go @@ -0,0 +1,391 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: dualitylabs/duality/incentives/account.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Describes the total distributions to an account over time +type Account struct { + // the address of this account + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // coins describes the total amount of coins that have been distributed to this user over time + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` +} + +func (m *Account) Reset() { *m = Account{} } +func (m *Account) String() string { return proto.CompactTextString(m) } +func (*Account) ProtoMessage() {} +func (*Account) Descriptor() ([]byte, []int) { + return fileDescriptor_2ae6444a4cf54b42, []int{0} +} +func (m *Account) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Account.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 *Account) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account.Merge(m, src) +} +func (m *Account) XXX_Size() int { + return m.Size() +} +func (m *Account) XXX_DiscardUnknown() { + xxx_messageInfo_Account.DiscardUnknown(m) +} + +var xxx_messageInfo_Account proto.InternalMessageInfo + +func (m *Account) GetAccount() string { + if m != nil { + return m.Account + } + return "" +} + +func (m *Account) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +func init() { + proto.RegisterType((*Account)(nil), "dualitylabs.duality.incentives.Account") +} + +func init() { + proto.RegisterFile("dualitylabs/duality/incentives/account.proto", fileDescriptor_2ae6444a4cf54b42) +} + +var fileDescriptor_2ae6444a4cf54b42 = []byte{ + // 258 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xcc, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xb2, 0xf5, 0x33, 0xf3, 0x92, 0x53, 0xf3, + 0x4a, 0x32, 0xcb, 0x52, 0x8b, 0xf5, 0x13, 0x93, 0x93, 0xf3, 0x4b, 0xf3, 0x4a, 0xf4, 0x0a, 0x8a, + 0xf2, 0x4b, 0xf2, 0x85, 0xe4, 0x90, 0x54, 0xeb, 0x41, 0xd9, 0x7a, 0x08, 0xd5, 0x52, 0x22, 0xe9, + 0xf9, 0xe9, 0xf9, 0x60, 0xa5, 0xfa, 0x20, 0x16, 0x44, 0x97, 0x94, 0x5c, 0x72, 0x7e, 0x71, 0x6e, + 0x7e, 0xb1, 0x7e, 0x52, 0x62, 0x71, 0xaa, 0x7e, 0x99, 0x61, 0x52, 0x6a, 0x49, 0xa2, 0xa1, 0x7e, + 0x72, 0x7e, 0x66, 0x1e, 0x44, 0x5e, 0xa9, 0x8d, 0x91, 0x8b, 0xdd, 0x11, 0x62, 0x8f, 0x90, 0x04, + 0x17, 0x3b, 0xd4, 0x4a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, 0x28, 0x91, 0x8b, + 0x15, 0xa4, 0xa7, 0x58, 0x82, 0x49, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x52, 0x0f, 0x62, 0xaa, 0x1e, + 0xc8, 0x54, 0x3d, 0xa8, 0xa9, 0x7a, 0xce, 0xf9, 0x99, 0x79, 0x4e, 0x06, 0x27, 0xee, 0xc9, 0x33, + 0xac, 0xba, 0x2f, 0xaf, 0x91, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, + 0x75, 0x02, 0x84, 0xd2, 0x2d, 0x4e, 0xc9, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x06, 0x6b, 0x28, + 0x0e, 0x82, 0x98, 0xec, 0xe4, 0x73, 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, + 0x46, 0x48, 0x46, 0x41, 0xfd, 0xad, 0x8b, 0x12, 0x64, 0x15, 0xc8, 0x81, 0x06, 0x36, 0x3a, 0x89, + 0x0d, 0xec, 0x3b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0xe1, 0x38, 0x8e, 0x63, 0x01, + 0x00, 0x00, +} + +func (m *Account) 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 *Account) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAccount(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintAccount(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAccount(dAtA []byte, offset int, v uint64) int { + offset -= sovAccount(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Account) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Account) + if l > 0 { + n += 1 + l + sovAccount(uint64(l)) + } + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovAccount(uint64(l)) + } + } + return n +} + +func sovAccount(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAccount(x uint64) (n int) { + return sovAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Account) 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 ErrIntOverflowAccount + } + 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: Account: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAccount + } + 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 ErrInvalidLengthAccount + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAccount + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAccount + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAccount + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAccount + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAccount(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAccount + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAccount(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, ErrIntOverflowAccount + } + 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, ErrIntOverflowAccount + } + 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, ErrIntOverflowAccount + } + 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, ErrInvalidLengthAccount + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAccount + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAccount + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/account_history.pb.go b/x/incentives/types/account_history.pb.go new file mode 100644 index 000000000..daaa35b10 --- /dev/null +++ b/x/incentives/types/account_history.pb.go @@ -0,0 +1,391 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/account_history.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Describes the total distributions to an account over time +type AccountHistory struct { + // the address of this account + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // coins describes the total amount of coins that have been distributed to this user over time + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` +} + +func (m *AccountHistory) Reset() { *m = AccountHistory{} } +func (m *AccountHistory) String() string { return proto.CompactTextString(m) } +func (*AccountHistory) ProtoMessage() {} +func (*AccountHistory) Descriptor() ([]byte, []int) { + return fileDescriptor_69dfb106c545010e, []int{0} +} +func (m *AccountHistory) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccountHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccountHistory.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 *AccountHistory) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountHistory.Merge(m, src) +} +func (m *AccountHistory) XXX_Size() int { + return m.Size() +} +func (m *AccountHistory) XXX_DiscardUnknown() { + xxx_messageInfo_AccountHistory.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountHistory proto.InternalMessageInfo + +func (m *AccountHistory) GetAccount() string { + if m != nil { + return m.Account + } + return "" +} + +func (m *AccountHistory) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +func init() { + proto.RegisterType((*AccountHistory)(nil), "duality.incentives.AccountHistory") +} + +func init() { + proto.RegisterFile("duality/incentives/account_history.proto", fileDescriptor_69dfb106c545010e) +} + +var fileDescriptor_69dfb106c545010e = []byte{ + // 263 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x4f, + 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x89, 0xcf, 0xc8, 0x2c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xaa, 0xd4, 0x43, 0xa8, 0x94, 0x12, 0x49, 0xcf, 0x4f, + 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x52, 0x72, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, + 0xfa, 0x49, 0x89, 0xc5, 0xa9, 0xfa, 0x65, 0x86, 0x49, 0xa9, 0x25, 0x89, 0x86, 0xfa, 0xc9, 0xf9, + 0x99, 0x79, 0x10, 0x79, 0xa5, 0x5e, 0x46, 0x2e, 0x3e, 0x47, 0x88, 0x1d, 0x1e, 0x10, 0x2b, 0x84, + 0x24, 0xb8, 0xd8, 0xa1, 0xb6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x42, 0x89, + 0x5c, 0xac, 0x20, 0xad, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x92, 0x7a, 0x10, 0xc3, + 0xf5, 0x40, 0x86, 0xeb, 0x41, 0x0d, 0xd7, 0x73, 0xce, 0xcf, 0xcc, 0x73, 0x32, 0x38, 0x71, 0x4f, + 0x9e, 0x61, 0xd5, 0x7d, 0x79, 0x8d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0xa8, 0x4b, 0x20, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x49, 0x65, 0x41, 0x6a, 0x31, 0x58, + 0x43, 0x71, 0x10, 0xc4, 0x64, 0x27, 0x9f, 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, 0x32, 0x42, 0x32, 0x0a, 0xea, 0x7d, 0xdd, 0x9c, 0xc4, 0xa4, 0x62, 0x18, 0x47, 0xbf, 0x02, + 0x39, 0xdc, 0xc0, 0x46, 0x27, 0xb1, 0x81, 0x3d, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xf0, + 0x48, 0x9b, 0xa0, 0x5a, 0x01, 0x00, 0x00, +} + +func (m *AccountHistory) 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 *AccountHistory) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccountHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAccountHistory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintAccountHistory(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAccountHistory(dAtA []byte, offset int, v uint64) int { + offset -= sovAccountHistory(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AccountHistory) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Account) + if l > 0 { + n += 1 + l + sovAccountHistory(uint64(l)) + } + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovAccountHistory(uint64(l)) + } + } + return n +} + +func sovAccountHistory(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAccountHistory(x uint64) (n int) { + return sovAccountHistory(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AccountHistory) 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 ErrIntOverflowAccountHistory + } + 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: AccountHistory: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccountHistory: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAccountHistory + } + 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 ErrInvalidLengthAccountHistory + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAccountHistory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAccountHistory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAccountHistory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAccountHistory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAccountHistory(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAccountHistory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAccountHistory(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, ErrIntOverflowAccountHistory + } + 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, ErrIntOverflowAccountHistory + } + 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, ErrIntOverflowAccountHistory + } + 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, ErrInvalidLengthAccountHistory + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAccountHistory + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAccountHistory + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAccountHistory = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAccountHistory = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAccountHistory = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/codec.go b/x/incentives/types/codec.go new file mode 100644 index 000000000..b2e2b954f --- /dev/null +++ b/x/incentives/types/codec.go @@ -0,0 +1,35 @@ +package types + +import ( + "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/msgservice" +) + +var ( + amino = codec.NewLegacyAmino() + ModuleCdc = codec.NewAminoCodec(amino) +) + +// RegisterCodec registers the necessary x/incentives interfaces and concrete types on the provided +// LegacyAmino codec. These types are used for Amino JSON serialization. +func RegisterCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgCreateGauge{}, "duality/incentives/create-gauge", nil) + cdc.RegisterConcrete(&MsgAddToGauge{}, "duality/incentives/add-to-gauge", nil) + cdc.RegisterConcrete(&MsgStake{}, "duality/stake/stake-tokens", nil) + cdc.RegisterConcrete(&MsgUnstake{}, "duality/stake/begin-unstake-period-stake", nil) +} + +// RegisterInterfaces registers interfaces and implementations of the incentives module. +func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgCreateGauge{}, + &MsgAddToGauge{}, + &MsgStake{}, + &MsgUnstake{}, + ) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/x/incentives/types/distribution_spec.go b/x/incentives/types/distribution_spec.go new file mode 100644 index 000000000..ecb89dac7 --- /dev/null +++ b/x/incentives/types/distribution_spec.go @@ -0,0 +1,25 @@ +package types + +import sdk "github.com/cosmos/cosmos-sdk/types" + +type DistributionSpec map[string]sdk.Coins + +func (spec *DistributionSpec) Add(other DistributionSpec) DistributionSpec { + result := *spec + for k, v := range other { + if vv, ok := result[k]; ok { + result[k] = vv.Add(v...) + } else { + result[k] = v + } + } + return result +} + +func (spec DistributionSpec) GetTotal() sdk.Coins { + coins := sdk.Coins{} + for _, v := range spec { + coins = coins.Add(v...) + } + return coins +} diff --git a/x/incentives/types/distribution_spec_test.go b/x/incentives/types/distribution_spec_test.go new file mode 100644 index 000000000..942173480 --- /dev/null +++ b/x/incentives/types/distribution_spec_test.go @@ -0,0 +1,44 @@ +package types_test + +import ( + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/assert" + + "github.com/neutron-org/neutron/x/incentives/types" +) + +func TestDistributionSpec_Add(t *testing.T) { + spec1 := types.DistributionSpec{ + "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 100), sdk.NewInt64Coin("coin2", 200)}, + "bob": sdk.Coins{sdk.NewInt64Coin("coin1", 300), sdk.NewInt64Coin("coin2", 400)}, + } + + spec2 := types.DistributionSpec{ + "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 100), sdk.NewInt64Coin("coin2", 200)}, + "carol": sdk.Coins{sdk.NewInt64Coin("coin1", 500), sdk.NewInt64Coin("coin2", 600)}, + } + + expected := types.DistributionSpec{ + "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 200), sdk.NewInt64Coin("coin2", 400)}, + "bob": sdk.Coins{sdk.NewInt64Coin("coin1", 300), sdk.NewInt64Coin("coin2", 400)}, + "carol": sdk.Coins{sdk.NewInt64Coin("coin1", 500), sdk.NewInt64Coin("coin2", 600)}, + } + + result := spec1.Add(spec2) + assert.Equal(t, expected, result) +} + +func TestDistributionSpec_GetTotal(t *testing.T) { + spec := types.DistributionSpec{ + "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 100), sdk.NewInt64Coin("coin2", 200)}, + "bob": sdk.Coins{sdk.NewInt64Coin("coin1", 300), sdk.NewInt64Coin("coin2", 400)}, + "carol": sdk.Coins{sdk.NewInt64Coin("coin1", 500), sdk.NewInt64Coin("coin2", 600)}, + } + + expected := sdk.Coins{sdk.NewInt64Coin("coin1", 900), sdk.NewInt64Coin("coin2", 1200)} + + total := spec.GetTotal() + assert.Equal(t, expected, total) +} diff --git a/x/incentives/types/errors.go b/x/incentives/types/errors.go new file mode 100644 index 000000000..b6963a8d6 --- /dev/null +++ b/x/incentives/types/errors.go @@ -0,0 +1,43 @@ +package types + +// DONTCOVER + +import ( + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +// x/incentives module sentinel errors. +var ( + ErrNotStakeOwner = sdkerrors.Register( + ModuleName, + 1, + "msg sender is not the owner of specified stake", + ) + ErrStakeNotFound = sdkerrors.Register(ModuleName, 2, "stake not found") + ErrGaugeNotActive = sdkerrors.Register( + ModuleName, + 3, + "cannot distribute from gauges when it is not active", + ) + ErrInvalidGaugeStatus = sdkerrors.Register( + ModuleName, + 4, + "Gauge status filter must be one of: ACTIVE_UPCOMING, ACTIVE, UPCOMING, FINISHED", + ) + ErrMaxGaugesReached = sdkerrors.Register( + ModuleName, + 5, + "Gauge limit has been reached; additional gauges may be created once the gauge limit has been raised via governance proposal", + ) + ErrGaugePricingTickOutOfRange = sdkerrors.Register( + ModuleName, + 6, + "cannot use an invalid price tick", + ) + ErrGaugeDistrToTickOutOfRange = sdkerrors.Register(ModuleName, 7, "cannot use an distrTo tick") + ErrInvalidSigner = sdkerrors.Register( + ModuleName, + 8, + "owner must be module authority", + ) +) diff --git a/x/incentives/types/events.go b/x/incentives/types/events.go new file mode 100644 index 000000000..c03383fed --- /dev/null +++ b/x/incentives/types/events.go @@ -0,0 +1,21 @@ +package types + +// Incentive module event types. +const ( + TypeEvtCreateGauge = "create_gauge" + TypeEvtAddToGauge = "add_to_gauge" + TypeEvtDistribution = "distribution" + + AttributeGaugeID = "gauge_id" + AttributeReceiver = "receiver" + AttributeAmount = "amount" + + TypeEvtStake = "stake" + TypeEvtUnstake = "unstake" + + AttributeStakeID = "stake_id" + AttributeStakeOwner = "owner" + AttributeStakeAmount = "amount" + AttributeStakeStakeTime = "stake_time" + AttributeUnstakedCoins = "unstaked_coins" +) diff --git a/x/incentives/types/expected_keepers.go b/x/incentives/types/expected_keepers.go new file mode 100644 index 000000000..ca9921a99 --- /dev/null +++ b/x/incentives/types/expected_keepers.go @@ -0,0 +1,34 @@ +package types + +import ( + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/neutron-org/neutron/x/dex/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" + epochstypes "github.com/neutron-org/neutron/x/epochs/types" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// BankKeeper defines the expected interface needed to retrieve account balances. +type BankKeeper interface { + GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetSupply(ctx sdk.Context, denom string) sdk.Coin + + SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error + SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error +} + +// EpochKeeper defines the expected interface needed to retrieve epoch info. +type EpochKeeper interface { + GetEpochInfo(ctx sdk.Context, identifier string) epochstypes.EpochInfo +} + +type AccountKeeper interface { + GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI + GetModuleAddress(moduleName string) sdk.AccAddress +} + +type DexKeeper interface { + GetOrInitPool(ctx sdk.Context, pairID *types.PairID, centerTickIndex int64, fee uint64) (*dextypes.Pool, error) + GetPoolMetadataByDenom(ctx sdk.Context, id string) (types.PoolMetadata, error) +} diff --git a/x/incentives/types/gauge.go b/x/incentives/types/gauge.go new file mode 100644 index 000000000..139be2874 --- /dev/null +++ b/x/incentives/types/gauge.go @@ -0,0 +1,82 @@ +package types + +import ( + time "time" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// NewGauge creates a new gauge struct given the required gauge parameters. +func NewGauge( + id uint64, + isPerpetual bool, + distrTo QueryCondition, + coins sdk.Coins, + startTime time.Time, + numEpochsPaidOver uint64, + filledEpochs uint64, + distCoins sdk.Coins, + pricingTick int64, +) Gauge { + return Gauge{ + Id: id, + IsPerpetual: isPerpetual, + DistributeTo: distrTo, + Coins: coins, + StartTime: startTime, + NumEpochsPaidOver: numEpochsPaidOver, + FilledEpochs: filledEpochs, + DistributedCoins: distCoins, + PricingTick: pricingTick, + } +} + +func (gauge Gauge) hasEpochsRemaining() bool { + return gauge.IsPerpetual || gauge.FilledEpochs < gauge.NumEpochsPaidOver +} + +func (gauge Gauge) hasStarted(now time.Time) bool { + return !now.Before(gauge.StartTime) +} + +// IsUpcomingGauge returns true if the gauge's distribution start time is after the provided time. +func (gauge Gauge) IsUpcomingGauge(now time.Time) bool { + return !gauge.hasStarted(now) && gauge.hasEpochsRemaining() +} + +// IsActiveGauge returns true if the gauge is in an active state during the provided time. +func (gauge Gauge) IsActiveGauge(now time.Time) bool { + return gauge.hasStarted(now) && gauge.hasEpochsRemaining() +} + +// IsFinishedGauge returns true if the gauge is in a finished state during the provided time. +func (gauge Gauge) IsFinishedGauge(now time.Time) bool { + return gauge.hasStarted(now) && !gauge.hasEpochsRemaining() +} + +func (gauge Gauge) RewardsNextEpoch() sdk.Coins { + result := sdk.Coins{} + epochsRemaining := gauge.EpochsRemaining() + if epochsRemaining == 0 { + return result + } + + for _, rewardRemainingCoin := range gauge.CoinsRemaining() { + amount := rewardRemainingCoin.Amount.Quo(sdk.NewInt(int64(epochsRemaining))) + result = result.Add(sdk.Coin{Denom: rewardRemainingCoin.Denom, Amount: amount}) + } + + return result +} + +func (gauge Gauge) EpochsRemaining() uint64 { + if !gauge.IsPerpetual { + return gauge.NumEpochsPaidOver - gauge.FilledEpochs + } + + return 1 +} + +func (gauge Gauge) CoinsRemaining() sdk.Coins { + return gauge.Coins.Sub(gauge.DistributedCoins...) +} diff --git a/x/incentives/types/gauge.pb.go b/x/incentives/types/gauge.pb.go new file mode 100644 index 000000000..9b1e87dd7 --- /dev/null +++ b/x/incentives/types/gauge.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/gauge.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + types1 "github.com/neutron-org/neutron/x/dex/types" + _ "google.golang.org/protobuf/types/known/durationpb" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Gauge is an object that describes an LP incentivization plan and its state. +type Gauge struct { + // id is the unique ID of a Gauge + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // There are two kinds of gauges: perpetual and non-perpetual. Perpetual + // gauges describe an incentivization program for which the token rewards + // distributed on any given day must be added to the gauge prior to that day's + // distribution using an AddToGauge message. When distribute is called on a + // perpetual gauge, all of the remaining rewards in the gauge are distributed. + // Because of this, all perpetual gauges must have `num_epochs_paid_over` set + // to 1. A non-perpetual gauge by contrast distributes its rewards over a + // schedule as determined by `num_epochs_paid_over`. If a non-perpetual gauge + // is created with coins=[100atom] and num_epochs_paid_over=10, this means + // that for 10 days (10 epochs) the gauge will distribute 10atom each day to + // the staked LP positions qualifying for the gauge. + IsPerpetual bool `protobuf:"varint,2,opt,name=is_perpetual,json=isPerpetual,proto3" json:"is_perpetual,omitempty"` + // distribute_to describes a set of staked LP positions that should be + // distributed to from this gauge. + DistributeTo QueryCondition `protobuf:"bytes,3,opt,name=distribute_to,json=distributeTo,proto3" json:"distribute_to"` + // coins describes the total amount of coins that have been added to this + // gauge for distribution. + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + // start_time describes when this gauge should begin distributing rewards. + // This allows gauge creators to schedule gauges into the future, in the event + // that an earlier gauge is expected to expire. + StartTime time.Time `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` + // num_epochs_paid_over is the number of total epochs (days) the rewards in + // this gauge will be distributed over. + NumEpochsPaidOver uint64 `protobuf:"varint,6,opt,name=num_epochs_paid_over,json=numEpochsPaidOver,proto3" json:"num_epochs_paid_over,omitempty"` + // filled_epochs describes the number of epochs distribution have been completed + // already + FilledEpochs uint64 `protobuf:"varint,7,opt,name=filled_epochs,json=filledEpochs,proto3" json:"filled_epochs,omitempty"` + // distributed_coins describes coins that have been distributed already from + // this gauge. + DistributedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=distributed_coins,json=distributedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"distributed_coins"` + // pricing_tick is necessary for fairly distributing rewards over a range of + // ticks. Without pricing_tick, we might naively distribute rewards in + // proportion to the number of deposit shares staked within the gauge's + // qualifying tick range. + // + // For example, a gauge with a distribute_to tick range of [-10, 10] would + // distribute to staked LP tokens where both tick-fee and tick+fee are within + // [-10, 10]. Let's say for pair "tokenA<>tokenB", the current trading tick is + // 0. If Alice were to LP (10tokenA, 0tokenB) @ tick -8, fee 2, this would + // mean Alice would be issued 10 shares (10 + 0 * 1.0001^-8), since shares are + // in terms of token0. Let's further assume Bob LPs (0tokenA, 10tokenB) @ tick + // 8, fee 2, such that Bob is issued 10.008 shares (0 + 10 * 1.0001^8). Under + // this naive approach, if Alice and Bob were to stake their shares, Bob would + // receive more in rewards, purely on the basis of the relative locations of + // their liquidity. + // + // This disparity originates in the fact that LP deposit denominations are not + // fungible across ticks. To avoid this, we can use a single price throughout + // the gauge's tick range for relating the relative value of token0 and + // token1, as specified by pricing_tick. + // + // Let's run through the earier example using the more sophisticated approach, + // where the gauge has pricing_tick set to 0. For the purpose of calculating + // reward distribution weight, Alice's shares are worth 10 + 0 * 1.0001^0 = 10 + // and Bob's shares are worth 0 + 10 * 1.0001^0 = 10. With the distribution + // weight of both shares set according to a gauge-specific tick, we do not + // distribute more or less rewards according to the relative location of + // liquidity within the gauge's tick range, freeing users to place liquidity + // whereever they deem most profitable in the gauge's range and still equally + // qualify for rewards. + PricingTick int64 `protobuf:"varint,9,opt,name=pricing_tick,json=pricingTick,proto3" json:"pricing_tick,omitempty"` +} + +func (m *Gauge) Reset() { *m = Gauge{} } +func (m *Gauge) String() string { return proto.CompactTextString(m) } +func (*Gauge) ProtoMessage() {} +func (*Gauge) Descriptor() ([]byte, []int) { + return fileDescriptor_13cec3b76ad4f381, []int{0} +} +func (m *Gauge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Gauge.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 *Gauge) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gauge.Merge(m, src) +} +func (m *Gauge) XXX_Size() int { + return m.Size() +} +func (m *Gauge) XXX_DiscardUnknown() { + xxx_messageInfo_Gauge.DiscardUnknown(m) +} + +var xxx_messageInfo_Gauge proto.InternalMessageInfo + +func (m *Gauge) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Gauge) GetIsPerpetual() bool { + if m != nil { + return m.IsPerpetual + } + return false +} + +func (m *Gauge) GetDistributeTo() QueryCondition { + if m != nil { + return m.DistributeTo + } + return QueryCondition{} +} + +func (m *Gauge) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +func (m *Gauge) GetStartTime() time.Time { + if m != nil { + return m.StartTime + } + return time.Time{} +} + +func (m *Gauge) GetNumEpochsPaidOver() uint64 { + if m != nil { + return m.NumEpochsPaidOver + } + return 0 +} + +func (m *Gauge) GetFilledEpochs() uint64 { + if m != nil { + return m.FilledEpochs + } + return 0 +} + +func (m *Gauge) GetDistributedCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.DistributedCoins + } + return nil +} + +func (m *Gauge) GetPricingTick() int64 { + if m != nil { + return m.PricingTick + } + return 0 +} + +// QueryCondition describes a set of staked LP positions that a gauge is +// configured to distribute to. LP tokens qualifying for a given QueryCondition +// must have both tick-fee and tick+fee fall within the range [startTick, endTick], +// such that all of the tradable liquidity for the pool is within that range. +type QueryCondition struct { + // pairID is the token pair which should be distributed to. + PairID *types1.PairID `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` + // start_tick is the inclusive lower bound on the location of LP tokens that + // qualify for a gauge's distribution. + StartTick int64 `protobuf:"varint,2,opt,name=startTick,proto3" json:"startTick,omitempty"` + // end_tick is the inclusive upper bound on the location of LP tokens that + // qualify for a gauge's distribution. + EndTick int64 `protobuf:"varint,3,opt,name=endTick,proto3" json:"endTick,omitempty"` +} + +func (m *QueryCondition) Reset() { *m = QueryCondition{} } +func (m *QueryCondition) String() string { return proto.CompactTextString(m) } +func (*QueryCondition) ProtoMessage() {} +func (*QueryCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_13cec3b76ad4f381, []int{1} +} +func (m *QueryCondition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCondition.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 *QueryCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCondition.Merge(m, src) +} +func (m *QueryCondition) XXX_Size() int { + return m.Size() +} +func (m *QueryCondition) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCondition proto.InternalMessageInfo + +func (m *QueryCondition) GetPairID() *types1.PairID { + if m != nil { + return m.PairID + } + return nil +} + +func (m *QueryCondition) GetStartTick() int64 { + if m != nil { + return m.StartTick + } + return 0 +} + +func (m *QueryCondition) GetEndTick() int64 { + if m != nil { + return m.EndTick + } + return 0 +} + +func init() { + proto.RegisterType((*Gauge)(nil), "duality.incentives.Gauge") + proto.RegisterType((*QueryCondition)(nil), "duality.incentives.QueryCondition") +} + +func init() { proto.RegisterFile("duality/incentives/gauge.proto", fileDescriptor_13cec3b76ad4f381) } + +var fileDescriptor_13cec3b76ad4f381 = []byte{ + // 564 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0x8d, 0x9b, 0xf4, 0x6f, 0xd2, 0x56, 0x5f, 0xe7, 0xeb, 0xc2, 0xad, 0xc0, 0x09, 0x61, 0x63, + 0x09, 0x75, 0x86, 0x86, 0x1d, 0xcb, 0x14, 0x84, 0x90, 0x40, 0x04, 0x2b, 0x0b, 0xc4, 0xc6, 0x1a, + 0x7b, 0xa6, 0xee, 0x55, 0x6c, 0x8f, 0xe5, 0x19, 0x47, 0xc9, 0x5b, 0xf4, 0x39, 0x78, 0x03, 0xde, + 0xa0, 0xcb, 0x2e, 0x59, 0xb5, 0x28, 0x79, 0x03, 0x9e, 0x00, 0x79, 0x6c, 0x93, 0x00, 0x5b, 0x56, + 0xc9, 0x9c, 0x73, 0xff, 0xce, 0xb9, 0xd7, 0xc8, 0xe1, 0x05, 0x8b, 0x41, 0x2f, 0x28, 0xa4, 0xa1, + 0x48, 0x35, 0xcc, 0x84, 0xa2, 0x11, 0x2b, 0x22, 0x41, 0xb2, 0x5c, 0x6a, 0x89, 0x71, 0xcd, 0x93, + 0x35, 0x7f, 0x76, 0x12, 0xc9, 0x48, 0x1a, 0x9a, 0x96, 0xff, 0xaa, 0xc8, 0x33, 0x27, 0x92, 0x32, + 0x8a, 0x05, 0x35, 0xaf, 0xa0, 0xb8, 0xa2, 0xbc, 0xc8, 0x99, 0x06, 0x99, 0xd6, 0x7c, 0xef, 0x4f, + 0x5e, 0x43, 0x22, 0x94, 0x66, 0x49, 0xd6, 0x14, 0x08, 0xa5, 0x4a, 0xa4, 0xa2, 0x01, 0x53, 0x82, + 0xce, 0x2e, 0x02, 0xa1, 0xd9, 0x05, 0x0d, 0x25, 0x34, 0x05, 0x4e, 0x9b, 0x51, 0xb9, 0x98, 0xd3, + 0x8c, 0x41, 0xee, 0x03, 0xaf, 0xa8, 0xc1, 0xd7, 0x0e, 0xda, 0x7e, 0x53, 0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f, 0xf8, 0x19, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x71, 0x80, 0xd1, + 0xcf, 0x03, 0x00, 0x00, +} + +func (m *Gauge) 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 *Gauge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Gauge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PricingTick != 0 { + i = encodeVarintGauge(dAtA, i, uint64(m.PricingTick)) + i-- + dAtA[i] = 0x48 + } + if len(m.DistributedCoins) > 0 { + for iNdEx := len(m.DistributedCoins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DistributedCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGauge(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if m.FilledEpochs != 0 { + i = encodeVarintGauge(dAtA, i, uint64(m.FilledEpochs)) + i-- + dAtA[i] = 0x38 + } + if m.NumEpochsPaidOver != 0 { + i = encodeVarintGauge(dAtA, i, uint64(m.NumEpochsPaidOver)) + i-- + dAtA[i] = 0x30 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintGauge(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x2a + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGauge(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + { + size, err := m.DistributeTo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGauge(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.IsPerpetual { + i-- + if m.IsPerpetual { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Id != 0 { + i = encodeVarintGauge(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryCondition) 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 *QueryCondition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EndTick != 0 { + i = encodeVarintGauge(dAtA, i, uint64(m.EndTick)) + i-- + dAtA[i] = 0x18 + } + if m.StartTick != 0 { + i = encodeVarintGauge(dAtA, i, uint64(m.StartTick)) + i-- + dAtA[i] = 0x10 + } + if m.PairID != nil { + { + size, err := m.PairID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGauge(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintGauge(dAtA []byte, offset int, v uint64) int { + offset -= sovGauge(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Gauge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovGauge(uint64(m.Id)) + } + if m.IsPerpetual { + n += 2 + } + l = m.DistributeTo.Size() + n += 1 + l + sovGauge(uint64(l)) + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovGauge(uint64(l)) + } + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) + n += 1 + l + sovGauge(uint64(l)) + if m.NumEpochsPaidOver != 0 { + n += 1 + sovGauge(uint64(m.NumEpochsPaidOver)) + } + if m.FilledEpochs != 0 { + n += 1 + sovGauge(uint64(m.FilledEpochs)) + } + if len(m.DistributedCoins) > 0 { + for _, e := range m.DistributedCoins { + l = e.Size() + n += 1 + l + sovGauge(uint64(l)) + } + } + if m.PricingTick != 0 { + n += 1 + sovGauge(uint64(m.PricingTick)) + } + return n +} + +func (m *QueryCondition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PairID != nil { + l = m.PairID.Size() + n += 1 + l + sovGauge(uint64(l)) + } + if m.StartTick != 0 { + n += 1 + sovGauge(uint64(m.StartTick)) + } + if m.EndTick != 0 { + n += 1 + sovGauge(uint64(m.EndTick)) + } + return n +} + +func sovGauge(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGauge(x uint64) (n int) { + return sovGauge(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Gauge) 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 ErrIntOverflowGauge + } + 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: Gauge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Gauge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPerpetual", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsPerpetual = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributeTo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGauge + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGauge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DistributeTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGauge + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGauge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGauge + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGauge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumEpochsPaidOver", wireType) + } + m.NumEpochsPaidOver = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumEpochsPaidOver |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FilledEpochs", wireType) + } + m.FilledEpochs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FilledEpochs |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributedCoins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGauge + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGauge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DistributedCoins = append(m.DistributedCoins, types.Coin{}) + if err := m.DistributedCoins[len(m.DistributedCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PricingTick", wireType) + } + m.PricingTick = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PricingTick |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGauge(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGauge + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCondition) 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 ErrIntOverflowGauge + } + 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: QueryCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGauge + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGauge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PairID == nil { + m.PairID = &types1.PairID{} + } + if err := m.PairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTick", wireType) + } + m.StartTick = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTick |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndTick", wireType) + } + m.EndTick = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGauge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndTick |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGauge(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGauge + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGauge(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, ErrIntOverflowGauge + } + 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, ErrIntOverflowGauge + } + 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, ErrIntOverflowGauge + } + 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, ErrInvalidLengthGauge + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGauge + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGauge + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGauge = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGauge = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGauge = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/gauge_test.go b/x/incentives/types/gauge_test.go new file mode 100644 index 000000000..d05370d66 --- /dev/null +++ b/x/incentives/types/gauge_test.go @@ -0,0 +1,65 @@ +package types_test + +import ( + "testing" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + . "github.com/neutron-org/neutron/x/incentives/types" + "github.com/stretchr/testify/assert" +) + +func TestGaugeIsUpcomingGauge(t *testing.T) { + now := time.Now() + gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(time.Minute), 10, 0, sdk.Coins{}, 0) + + assert.True(t, gauge.IsUpcomingGauge(now)) + assert.False(t, gauge.IsUpcomingGauge(now.Add(time.Minute))) +} + +func TestGaugeIsActiveGauge(t *testing.T) { + now := time.Now() + gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(time.Minute), 10, 0, sdk.Coins{}, 0) + + assert.False(t, gauge.IsActiveGauge(now)) + assert.True(t, gauge.IsActiveGauge(now.Add(11*time.Minute))) + + gauge.IsPerpetual = true + assert.False(t, gauge.IsActiveGauge(now)) + assert.True(t, gauge.IsActiveGauge(now.Add(11*time.Minute))) +} + +func TestGaugeIsFinishedGauge(t *testing.T) { + now := time.Now() + gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(-time.Minute), 10, 10, sdk.Coins{}, 0) + assert.True(t, gauge.IsFinishedGauge(now)) + + gauge = NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(-time.Minute), 10, 8, sdk.Coins{}, 0) + assert.False(t, gauge.IsFinishedGauge(now)) +} + +func TestGaugeEpochsRemaining(t *testing.T) { + gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, time.Time{}, 10, 5, sdk.Coins{}, 0) + + assert.Equal(t, uint64(5), gauge.EpochsRemaining()) + + gauge.IsPerpetual = true + assert.Equal(t, uint64(1), gauge.EpochsRemaining()) +} + +func TestGaugeCoinsRemaining(t *testing.T) { + coins := sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(100))} + distCoins := sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(50))} + gauge := NewGauge(1, false, QueryCondition{}, coins, time.Time{}, 10, 5, distCoins, 0) + assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(50))}, gauge.CoinsRemaining()) +} + +func TestGaugeGetTotal(t *testing.T) { + distSpec := DistributionSpec{ + "addr1": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(10))}, + "addr2": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(20))}, + "addr3": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(30))}, + } + + assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(60))}, distSpec.GetTotal()) +} diff --git a/x/incentives/types/gauges.go b/x/incentives/types/gauges.go new file mode 100644 index 000000000..32dbb878f --- /dev/null +++ b/x/incentives/types/gauges.go @@ -0,0 +1,24 @@ +package types + +import sdk "github.com/cosmos/cosmos-sdk/types" + +type Gauges []*Gauge + +func (g Gauges) GetCoinsDistributed() sdk.Coins { + result := sdk.Coins{} + for _, gauge := range g { + result = result.Add(gauge.DistributedCoins...) + } + + return result +} + +// getToDistributeCoinsFromGauges returns coins that have not been distributed yet from the provided gauges +func (g Gauges) GetCoinsRemaining() sdk.Coins { + result := sdk.Coins{} + + for _, gauge := range g { + result = result.Add(gauge.CoinsRemaining()...) + } + return result +} diff --git a/x/incentives/types/genesis.go b/x/incentives/types/genesis.go new file mode 100644 index 000000000..e4d616d9a --- /dev/null +++ b/x/incentives/types/genesis.go @@ -0,0 +1,23 @@ +package types + +import ( + "errors" +) + +// DefaultIndex is the default incentive module's global index. +const DefaultIndex uint64 = 1 + +// DefaultGenesis returns the incentive module's default genesis state. +func DefaultGenesis() *GenesisState { + return &GenesisState{ + Params: DefaultParams(), + } +} + +// Validate performs basic genesis state validation, returning an error upon any failure. +func (gs GenesisState) Validate() error { + if gs.Params.DistrEpochIdentifier == "" { + return errors.New("epoch identifier should NOT be empty") + } + return nil +} diff --git a/x/incentives/types/genesis.pb.go b/x/incentives/types/genesis.pb.go new file mode 100644 index 000000000..3e5c7de8c --- /dev/null +++ b/x/incentives/types/genesis.pb.go @@ -0,0 +1,590 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the incentives module's various parameters when first +// initialized +type GenesisState struct { + // params are all the parameters of the module + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + // gauges are all gauges that should exist at genesis + Gauges []*Gauge `protobuf:"bytes,2,rep,name=gauges,proto3" json:"gauges,omitempty"` + // last_gauge_id is what the gauge number will increment from when creating + // the next gauge after genesis + LastGaugeId uint64 `protobuf:"varint,3,opt,name=last_gauge_id,json=lastGaugeId,proto3" json:"last_gauge_id,omitempty"` + LastStakeId uint64 `protobuf:"varint,4,opt,name=last_stake_id,json=lastStakeId,proto3" json:"last_stake_id,omitempty"` + Stakes []*Stake `protobuf:"bytes,5,rep,name=stakes,proto3" json:"stakes,omitempty"` + AccountHistories []*AccountHistory `protobuf:"bytes,6,rep,name=accountHistories,proto3" json:"accountHistories,omitempty"` +} + +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_a99219687c93d9eb, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetGauges() []*Gauge { + if m != nil { + return m.Gauges + } + return nil +} + +func (m *GenesisState) GetLastGaugeId() uint64 { + if m != nil { + return m.LastGaugeId + } + return 0 +} + +func (m *GenesisState) GetLastStakeId() uint64 { + if m != nil { + return m.LastStakeId + } + return 0 +} + +func (m *GenesisState) GetStakes() []*Stake { + if m != nil { + return m.Stakes + } + return nil +} + +func (m *GenesisState) GetAccountHistories() []*AccountHistory { + if m != nil { + return m.AccountHistories + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "duality.incentives.GenesisState") +} + +func init() { proto.RegisterFile("duality/incentives/genesis.proto", fileDescriptor_a99219687c93d9eb) } + +var fileDescriptor_a99219687c93d9eb = []byte{ + // 333 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4f, 0xc2, 0x30, + 0x18, 0xc6, 0x57, 0xc0, 0x1d, 0x8a, 0x26, 0xa6, 0xf1, 0x30, 0x77, 0x28, 0x0b, 0xa7, 0x5d, 0xdc, + 0x22, 0x5e, 0xbc, 0xca, 0x05, 0x49, 0x8c, 0x31, 0xe3, 0xe6, 0x85, 0x94, 0xad, 0x19, 0x8d, 0xb0, + 0x12, 0xda, 0x19, 0xf7, 0x2d, 0xfc, 0x54, 0x86, 0x23, 0x47, 0x4f, 0xc6, 0x6c, 0x5f, 0xc4, 0xb4, + 0x2b, 0x42, 0xc2, 0xf4, 0xd6, 0xbe, 0xcf, 0xef, 0x79, 0xff, 0x42, 0x2f, 0xc9, 0xc9, 0x82, 0xc9, + 0x22, 0x64, 0x59, 0x4c, 0x33, 0xc9, 0x5e, 0xa9, 0x08, 0x53, 0x9a, 0x51, 0xc1, 0x44, 0xb0, 0x5a, + 0x73, 0xc9, 0x11, 0x32, 0x44, 0xb0, 0x27, 0xdc, 0x8b, 0x94, 0xa7, 0x5c, 0xcb, 0xa1, 0x7a, 0xd5, + 0xa4, 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x2c, 0x88, 0xf9, 0x32, 0x34, 0x99, 0xaf, 0x16, 0x64, + 0x26, 0x76, 0x9f, 0xf0, 0xed, 0xf0, 0x4c, 0xb2, 0x58, 0x51, 0x31, 0xb3, 0xf5, 0x75, 0x6e, 0x7e, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x90, 0xe9, 0xfd, 0x56, 0x76, 0x02, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AccountHistories) > 0 { + for iNdEx := len(m.AccountHistories) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AccountHistories[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Stakes) > 0 { + for iNdEx := len(m.Stakes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Stakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.LastStakeId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.LastStakeId)) + i-- + dAtA[i] = 0x20 + } + if m.LastGaugeId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.LastGaugeId)) + i-- + dAtA[i] = 0x18 + } + if len(m.Gauges) > 0 { + for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Gauges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Gauges) > 0 { + for _, e := range m.Gauges { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.LastGaugeId != 0 { + n += 1 + sovGenesis(uint64(m.LastGaugeId)) + } + if m.LastStakeId != 0 { + n += 1 + sovGenesis(uint64(m.LastStakeId)) + } + if len(m.Stakes) > 0 { + for _, e := range m.Stakes { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.AccountHistories) > 0 { + for _, e := range m.AccountHistories { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Gauges = append(m.Gauges, &Gauge{}) + if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastGaugeId", wireType) + } + m.LastGaugeId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastGaugeId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastStakeId", wireType) + } + m.LastStakeId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastStakeId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stakes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stakes = append(m.Stakes, &Stake{}) + if err := m.Stakes[len(m.Stakes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountHistories", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AccountHistories = append(m.AccountHistories, &AccountHistory{}) + if err := m.AccountHistories[len(m.AccountHistories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/hooks.go b/x/incentives/types/hooks.go new file mode 100644 index 000000000..3c95c2110 --- /dev/null +++ b/x/incentives/types/hooks.go @@ -0,0 +1,82 @@ +package types + +import ( + time "time" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type IncentiveHooks interface { + AfterCreateGauge(ctx sdk.Context, gaugeId uint64) + AfterAddToGauge(ctx sdk.Context, gaugeId uint64) + AfterStartDistribution(ctx sdk.Context, gaugeId uint64) + AfterFinishDistribution(ctx sdk.Context, gaugeId uint64) + AfterEpochDistribution(ctx sdk.Context) + AfterAddTokensToStake(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins) + OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) + OnTokenUnstaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) +} + +var _ IncentiveHooks = MultiIncentiveHooks{} + +// MultiIncentiveHooks combines multiple incentive hooks. All hook functions are run in array sequence. +type MultiIncentiveHooks []IncentiveHooks + +// NewMultiIncentiveHooks combines multiple incentive hooks into a single IncentiveHooks array. +func NewMultiIncentiveHooks(hooks ...IncentiveHooks) MultiIncentiveHooks { + return hooks +} + +func (h MultiIncentiveHooks) AfterCreateGauge(ctx sdk.Context, gaugeID uint64) { + for i := range h { + h[i].AfterCreateGauge(ctx, gaugeID) + } +} + +func (h MultiIncentiveHooks) AfterAddToGauge(ctx sdk.Context, gaugeID uint64) { + for i := range h { + h[i].AfterAddToGauge(ctx, gaugeID) + } +} + +func (h MultiIncentiveHooks) AfterStartDistribution(ctx sdk.Context, gaugeID uint64) { + for i := range h { + h[i].AfterStartDistribution(ctx, gaugeID) + } +} + +func (h MultiIncentiveHooks) AfterFinishDistribution(ctx sdk.Context, gaugeID uint64) { + for i := range h { + h[i].AfterFinishDistribution(ctx, gaugeID) + } +} + +func (h MultiIncentiveHooks) AfterEpochDistribution(ctx sdk.Context) { + for i := range h { + h[i].AfterEpochDistribution(ctx) + } +} + +func (h MultiIncentiveHooks) AfterAddTokensToStake(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins) { + for i := range h { + h[i].AfterAddTokensToStake(ctx, address, stakeID, amount) + } +} + +func (h MultiIncentiveHooks) OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) { + for i := range h { + h[i].OnTokenStaked(ctx, address, stakeID, amount, unstakeTime) + } +} + +func (h MultiIncentiveHooks) OnTokenUnstaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) { + for i := range h { + h[i].OnTokenUnstaked(ctx, address, stakeID, amount, unstakeTime) + } +} + +// func (h MultiIncentiveHooks) OnStakeExtend(ctx sdk.Context, stakeID uint64, prevDuration, newDuration time.Duration) { +// for i := range h { +// h[i].OnStakeExtend(ctx, stakeID, prevDuration, newDuration) +// } +// } diff --git a/x/incentives/types/keys.go b/x/incentives/types/keys.go new file mode 100644 index 000000000..08bde69a9 --- /dev/null +++ b/x/incentives/types/keys.go @@ -0,0 +1,175 @@ +package types + +import ( + "bytes" + time "time" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var ( + // ModuleName defines the module name. + ModuleName = "incentives" + + // StoreKey defines the primary module store key. + StoreKey = ModuleName + + // RouterKey is the message route for slashing. + RouterKey = ModuleName + + // QuerierRoute defines the module's query routing key. + QuerierRoute = ModuleName + + // MemStoreKey defines the in-memory store key. + MemStoreKey = "mem_capability" + + // KeyPrefixTimestamp defines prefix key for timestamp iterator key. + KeyPrefixTimestamp = []byte{0x01} + + // KeyLastGaugeID defines key for setting last gauge ID. + KeyLastGaugeID = []byte{0x02} + + // KeyPrefixGauge defines prefix key for storing gauges. + KeyPrefixGauge = []byte{0x03} + + // KeyPrefixGaugeIndex defines prefix key for storing reference key for all gauges. + KeyPrefixGaugeIndex = []byte{0x04} + + // KeyPrefixGaugeIndexUpcoming defines prefix key for storing reference key for upcoming gauges. + KeyPrefixGaugeIndexUpcoming = []byte{0x04, 0x00} + + // KeyPrefixGaugeIndexActive defines prefix key for storing reference key for active gauges. + KeyPrefixGaugeIndexActive = []byte{0x04, 0x01} + + // KeyPrefixGaugeIndexFinished defines prefix key for storing reference key for finished gauges. + KeyPrefixGaugeIndexFinished = []byte{0x04, 0x02} + + // KeyPrefixGaugeIndexByPair defines prefix key for storing indexes of gauge IDs by denomination. + KeyPrefixGaugeIndexByPair = []byte{0x05} + + // KeyLastStakeID defines key to store stake ID used by last. + KeyLastStakeID = []byte{0x06} + + // KeyPrefixStake defines prefix to store period stake by ID. + KeyPrefixStake = []byte{0x07} + + // KeyPrefixStakeIndexAccount defines prefix for the iteration of stake IDs by account. + KeyPrefixStakeIndex = []byte{0x08} + + // KeyPrefixStakeIndexAccount defines prefix for the iteration of stake IDs by account. + KeyPrefixStakeIndexAccount = []byte{0x09} + + // KeyPrefixStakeIndexDenom defines prefix for the iteration of stake IDs by denom. + KeyPrefixStakeIndexDenom = []byte{0x0c} + + // KeyPrefixStakeIndexPairTick defines prefix for the iteration of stake IDs by pairId and tick index. + KeyPrefixStakeIndexPairTick = []byte{0x0d} + + // KeyPrefixStakeIndexAccountDenom defines prefix for the iteration of stake IDs by account, denomination. + KeyPrefixStakeIndexAccountDenom = []byte{0x0e} + + // KeyPrefixStakeIndexTimestamp defines prefix for the iteration of stake IDs by day epoch integer. + KeyPrefixStakeIndexPairDistEpoch = []byte{0x0f} + + // KeyPrefixAccountHistory defines the prefix for storing account histories. + KeyPrefixAccountHistory = []byte{0x10} + + // KeyndexSeparator defines separator between keys when combine, it should be one that is not used in denom expression. + KeyIndexSeparator = []byte{0xFF} +) + +// stakeStoreKey returns action store key from ID. +func GetStakeStoreKey(id uint64) []byte { + return CombineKeys(KeyPrefixStake, sdk.Uint64ToBigEndian(id)) +} + +// combineKeys combine bytes array into a single bytes. +func CombineKeys(keys ...[]byte) []byte { + return bytes.Join(keys, KeyIndexSeparator) +} + +// getTimeKey returns the key used for getting a set of period stakes +// where unstakeTime is after a specific time. +func GetTimeKey(timestamp time.Time) []byte { + timeBz := sdk.FormatTimeBytes(timestamp) + timeBzL := len(timeBz) + prefixL := len(KeyPrefixTimestamp) + + bz := make([]byte, prefixL+8+timeBzL) + + // copy the prefix + copy(bz[:prefixL], KeyPrefixTimestamp) + + // copy the encoded time bytes length + copy(bz[prefixL:prefixL+8], sdk.Uint64ToBigEndian(uint64(timeBzL))) + + // copy the encoded time bytes + copy(bz[prefixL+8:prefixL+8+timeBzL], timeBz) + return bz +} + +// gaugeStoreKey returns the combined byte array (store key) of the provided gauge ID's key prefix and the ID itself. +func GetKeyGaugeStore(id uint64) []byte { + return CombineKeys(KeyPrefixGauge, sdk.Uint64ToBigEndian(id)) +} + +// gaugePairStoreKey returns the combined byte array (store key) of the provided gauge denom key prefix and the denom itself. +func GetKeyGaugeIndexByPair(pairID string) []byte { + return CombineKeys(KeyPrefixGaugeIndexByPair, []byte(pairID)) +} + +func GetKeyStakeIndexByAccount(account sdk.AccAddress) []byte { + return CombineKeys( + KeyPrefixStakeIndexAccount, + account, + ) +} + +func GetKeyStakeIndexByDenom(denom string) []byte { + return CombineKeys( + KeyPrefixStakeIndexDenom, + []byte(denom), + ) +} + +func GetKeyStakeIndexByAccountDenom(account sdk.AccAddress, denom string) []byte { + return CombineKeys( + KeyPrefixStakeIndexAccountDenom, + account, + []byte(denom), + ) +} + +func GetKeyStakeIndexByDistEpoch(pairID string, distEpoch int64) []byte { + return CombineKeys( + KeyPrefixStakeIndexPairDistEpoch, + []byte(pairID), + GetKeyInt64(distEpoch), + ) +} + +func GetKeyStakeIndexByPairTick(pairID string, tickIndex int64) []byte { + return CombineKeys( + KeyPrefixStakeIndexPairTick, + []byte(pairID), + GetKeyInt64(tickIndex), + ) +} + +func GetKeyAccountHistory(address string) []byte { + return CombineKeys( + KeyPrefixStakeIndexPairTick, + []byte(address), + ) +} + +func GetKeyInt64(a int64) []byte { + key := make([]byte, 9) + if a < 0 { + copy(key[1:], sdk.Uint64ToBigEndian(uint64(a))) + } else { + copy(key[:1], []byte{0x01}) + copy(key[1:], sdk.Uint64ToBigEndian(uint64(a))) + } + return key +} diff --git a/x/incentives/types/keys_test.go b/x/incentives/types/keys_test.go new file mode 100644 index 000000000..8ea98bdda --- /dev/null +++ b/x/incentives/types/keys_test.go @@ -0,0 +1,18 @@ +package types_test + +import ( + "bytes" + "testing" + time "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + . "github.com/neutron-org/neutron/x/incentives/types" + "github.com/stretchr/testify/require" +) + +func TestGetTimeKey(t *testing.T) { + now := time.Now() + timeKey := GetTimeKey(now) + require.True(t, bytes.HasPrefix(timeKey, KeyPrefixTimestamp)) + require.True(t, bytes.HasSuffix(timeKey, sdk.FormatTimeBytes(now))) +} diff --git a/x/incentives/types/msgs.go b/x/incentives/types/msgs.go new file mode 100644 index 000000000..bc4ba01d9 --- /dev/null +++ b/x/incentives/types/msgs.go @@ -0,0 +1,230 @@ +package types + +import ( + "fmt" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + dextypes "github.com/neutron-org/neutron/x/dex/types" +) + +const ( + TypeMsgCreateGauge = "create_gauge" + TypeMsgAddToGauge = "add_to_gauge" + TypeMsgStakeTokens = "stake_tokens" + TypeMsgBeginUnstaking = "begin_unstaking" +) + +var _ sdk.Msg = &MsgCreateGauge{} + +// NewMsgCreateGauge creates a message to create a gauge with the provided parameters. +func NewMsgCreateGauge( + isPerpetual bool, + owner sdk.AccAddress, + distributeTo QueryCondition, + coins sdk.Coins, + startTime time.Time, + numEpochsPaidOver uint64, + pricingTick int64, +) *MsgCreateGauge { + return &MsgCreateGauge{ + IsPerpetual: isPerpetual, + Owner: owner.String(), + DistributeTo: distributeTo, + Coins: coins, + StartTime: startTime, + NumEpochsPaidOver: numEpochsPaidOver, + PricingTick: pricingTick, + } +} + +// Route takes a create gauge message, then returns the RouterKey used for slashing. +func (m MsgCreateGauge) Route() string { return RouterKey } + +// Type takes a create gauge message, then returns a create gauge message type. +func (m MsgCreateGauge) Type() string { return TypeMsgCreateGauge } + +// ValidateBasic checks that the create gauge message is valid. +func (m MsgCreateGauge) ValidateBasic() error { + if m.Owner == "" { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "owner should be set") + } + // TODO: If this is not set, infer start time as "now" + if m.StartTime.Equal(time.Time{}) { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "distribution start time should be set") + } + if m.NumEpochsPaidOver == 0 { + return sdkerrors.Wrapf( + sdkerrors.ErrInvalidRequest, + "distribution period should be at least 1 epoch", + ) + } + if m.IsPerpetual && m.NumEpochsPaidOver != 1 { + return sdkerrors.Wrapf( + sdkerrors.ErrInvalidRequest, + "distribution period should be 1 epoch for perpetual gauge", + ) + } + if dextypes.IsTickOutOfRange(m.PricingTick) { + return sdkerrors.Wrapf( + sdkerrors.ErrInvalidRequest, + "pricing tick is out of range, must be between %d and %d", + int64(dextypes.MaxTickExp)*-1, + dextypes.MaxTickExp, + ) + } + if dextypes.IsTickOutOfRange(m.DistributeTo.StartTick) { + return sdkerrors.Wrapf( + sdkerrors.ErrInvalidRequest, + "start tick is out of range, must be between %d and %d", + int64(dextypes.MaxTickExp)*-1, + dextypes.MaxTickExp, + ) + } + if dextypes.IsTickOutOfRange(m.DistributeTo.EndTick) { + return sdkerrors.Wrapf( + sdkerrors.ErrInvalidRequest, + "start tick is out of range, must be between %d and %d", + int64(dextypes.MaxTickExp)*-1, + dextypes.MaxTickExp, + ) + } + + return nil +} + +// GetSignBytes takes a create gauge message and turns it into a byte array. +func (m MsgCreateGauge) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +// GetSigners takes a create gauge message and returns the owner in a byte array. +func (m MsgCreateGauge) GetSigners() []sdk.AccAddress { + owner, _ := sdk.AccAddressFromBech32(m.Owner) + return []sdk.AccAddress{owner} +} + +var _ sdk.Msg = &MsgAddToGauge{} + +// NewMsgAddToGauge creates a message to add rewards to a specific gauge. +func NewMsgAddToGauge(owner sdk.AccAddress, gaugeID uint64, rewards sdk.Coins) *MsgAddToGauge { + return &MsgAddToGauge{ + Owner: owner.String(), + GaugeId: gaugeID, + Rewards: rewards, + } +} + +// Route takes an add to gauge message, then returns the RouterKey used for slashing. +func (m MsgAddToGauge) Route() string { return RouterKey } + +// Type takes an add to gauge message, then returns an add to gauge message type. +func (m MsgAddToGauge) Type() string { return TypeMsgAddToGauge } + +// ValidateBasic checks that the add to gauge message is valid. +func (m MsgAddToGauge) ValidateBasic() error { + if m.Owner == "" { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "owner should be set") + } + if m.Rewards.Empty() { + return sdkerrors.Wrapf( + sdkerrors.ErrInvalidRequest, + "additional rewards should not be empty", + ) + } + + return nil +} + +// GetSignBytes takes an add to gauge message and turns it into a byte array. +func (m MsgAddToGauge) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +// GetSigners takes an add to gauge message and returns the owner in a byte array. +func (m MsgAddToGauge) GetSigners() []sdk.AccAddress { + owner, _ := sdk.AccAddressFromBech32(m.Owner) + return []sdk.AccAddress{owner} +} + +var _ sdk.Msg = &MsgStake{} + +// NewMsgStakeTokens creates a message to stake tokens. +func NewMsgSetupStake(owner sdk.AccAddress, duration time.Duration, coins sdk.Coins) *MsgStake { + return &MsgStake{ + Owner: owner.String(), + Coins: coins, + } +} + +func (m MsgStake) Route() string { return RouterKey } +func (m MsgStake) Type() string { return TypeMsgStakeTokens } +func (m MsgStake) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(m.Owner) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid owner address (%s)", err) + } + + if !m.Coins.IsAllPositive() { + return fmt.Errorf("cannot stake up a zero or negative amount") + } + + return nil +} + +func (m MsgStake) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +func (m MsgStake) GetSigners() []sdk.AccAddress { + owner, _ := sdk.AccAddressFromBech32(m.Owner) + return []sdk.AccAddress{owner} +} + +var _ sdk.Msg = &MsgUnstake{} + +func NewMsgUnstakeDescriptor(id uint64, coins sdk.Coins) *MsgUnstake_UnstakeDescriptor { + return &MsgUnstake_UnstakeDescriptor{ + ID: id, + Coins: coins, + } +} + +// NewMsgUnstake creates a message to unstake the tokens of a set of stake records. +func NewMsgUnstake(owner sdk.AccAddress, unstakes []*MsgUnstake_UnstakeDescriptor) *MsgUnstake { + return &MsgUnstake{ + Owner: owner.String(), + Unstakes: unstakes, + } +} + +func (m MsgUnstake) Route() string { return RouterKey } +func (m MsgUnstake) Type() string { return TypeMsgBeginUnstaking } +func (m MsgUnstake) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(m.Owner) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid owner address (%s)", err) + } + + for _, unstake := range m.Unstakes { + if unstake.ID == 0 { + return fmt.Errorf("invalid stake ID, got %v", unstake.ID) + } + + if !unstake.Coins.Empty() && !unstake.Coins.IsAllPositive() { + return fmt.Errorf("cannot unstake a zero or negative amount") + } + } + + return nil +} + +func (m MsgUnstake) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) +} + +func (m MsgUnstake) GetSigners() []sdk.AccAddress { + owner, _ := sdk.AccAddressFromBech32(m.Owner) + return []sdk.AccAddress{owner} +} diff --git a/x/incentives/types/msgs_test.go b/x/incentives/types/msgs_test.go new file mode 100644 index 000000000..659d13b21 --- /dev/null +++ b/x/incentives/types/msgs_test.go @@ -0,0 +1,323 @@ +package types_test + +import ( + "testing" + time "time" + + "github.com/cometbft/cometbft/crypto/ed25519" + "github.com/stretchr/testify/require" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/neutron-org/neutron/testutil/apptesting" + dextypes "github.com/neutron-org/neutron/x/dex/types" + . "github.com/neutron-org/neutron/x/incentives/types" +) + +// TestMsgCreatePool tests if valid/invalid create pool messages are properly validated/invalidated +func TestMsgCreatePool(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + + // make a proper createPool message + createMsg := func(after func(msg MsgCreateGauge) MsgCreateGauge) MsgCreateGauge { + distributeTo := QueryCondition{ + PairID: &dextypes.PairID{ + Token0: "TokenA", + Token1: "TokenB", + }, + StartTick: -10, + EndTick: 10, + } + + properMsg := *NewMsgCreateGauge( + false, + addr1, + distributeTo, + sdk.Coins{}, + time.Now(), + 2, + 0, + ) + + return after(properMsg) + } + + // validate createPool message was created as intended + msg := createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + return msg + }) + require.Equal(t, msg.Route(), RouterKey) + require.Equal(t, msg.Type(), "create_gauge") + signers := msg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg MsgCreateGauge + expectPass bool + }{ + { + name: "proper msg", + msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + return msg + }), + expectPass: true, + }, + { + name: "empty owner", + msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + msg.Owner = "" + return msg + }), + expectPass: false, + }, + { + name: "invalid distribution start time", + msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + msg.StartTime = time.Time{} + return msg + }), + expectPass: false, + }, + { + name: "invalid num epochs paid over", + msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + msg.NumEpochsPaidOver = 0 + return msg + }), + expectPass: false, + }, + { + name: "invalid num epochs paid over for perpetual gauge", + msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + msg.NumEpochsPaidOver = 2 + msg.IsPerpetual = true + return msg + }), + expectPass: false, + }, + { + name: "valid num epochs paid over for perpetual gauge", + msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { + msg.NumEpochsPaidOver = 1 + msg.IsPerpetual = true + return msg + }), + expectPass: true, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) + } + } +} + +// TestMsgAddToGauge tests if valid/invalid add to gauge messages are properly validated/invalidated +func TestMsgAddToGauge(t *testing.T) { + // generate a private/public key pair and get the respective address + pk1 := ed25519.GenPrivKey().PubKey() + addr1 := sdk.AccAddress(pk1.Address()) + + // make a proper addToGauge message + createMsg := func(after func(msg MsgAddToGauge) MsgAddToGauge) MsgAddToGauge { + properMsg := *NewMsgAddToGauge( + addr1, + 1, + sdk.Coins{sdk.NewInt64Coin("stake", 10)}, + ) + + return after(properMsg) + } + + // validate addToGauge message was created as intended + msg := createMsg(func(msg MsgAddToGauge) MsgAddToGauge { + return msg + }) + require.Equal(t, msg.Route(), RouterKey) + require.Equal(t, msg.Type(), "add_to_gauge") + signers := msg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1.String()) + + tests := []struct { + name string + msg MsgAddToGauge + expectPass bool + }{ + { + name: "proper msg", + msg: createMsg(func(msg MsgAddToGauge) MsgAddToGauge { + return msg + }), + expectPass: true, + }, + { + name: "empty owner", + msg: createMsg(func(msg MsgAddToGauge) MsgAddToGauge { + msg.Owner = "" + return msg + }), + expectPass: false, + }, + { + name: "empty rewards", + msg: createMsg(func(msg MsgAddToGauge) MsgAddToGauge { + msg.Rewards = sdk.Coins{} + return msg + }), + expectPass: false, + }, + } + + for _, test := range tests { + if test.expectPass { + require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) + } else { + require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) + } + } +} + +func TestMsgSetupStake(t *testing.T) { + addr1, invalidAddr := apptesting.GenerateTestAddrs() + + tests := []struct { + name string + msg MsgStake + expectPass bool + }{ + { + name: "proper msg", + msg: MsgStake{ + Owner: addr1, + Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + }, + expectPass: true, + }, + { + name: "invalid owner", + msg: MsgStake{ + Owner: invalidAddr, + Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + }, + }, + { + name: "zero token amount", + msg: MsgStake{ + Owner: addr1, + Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(0))), + }, + }, + } + + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + if test.expectPass { + require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) + require.Equal(t, test.msg.Route(), RouterKey) + require.Equal(t, test.msg.Type(), "stake_tokens") + signers := test.msg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1) + } else { + require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) + } + }) + } +} + +func TestMsgUnstake(t *testing.T) { + addr1, invalidAddr := apptesting.GenerateTestAddrs() + + tests := []struct { + name string + msg MsgUnstake + expectPass bool + }{ + { + name: "proper msg", + msg: MsgUnstake{ + Owner: addr1, + Unstakes: []*MsgUnstake_UnstakeDescriptor{ + { + ID: 1, + Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + }, + }, + }, + expectPass: true, + }, + { + name: "invalid owner", + msg: MsgUnstake{ + Owner: invalidAddr, + Unstakes: []*MsgUnstake_UnstakeDescriptor{ + { + ID: 1, + Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + }, + }, + }, + }, + { + name: "invalid stake ID", + msg: MsgUnstake{ + Owner: addr1, + Unstakes: []*MsgUnstake_UnstakeDescriptor{ + { + ID: 0, + Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + }, + }, + }, + }, + { + name: "zero coins (same as nil)", + msg: MsgUnstake{ + Owner: addr1, + Unstakes: []*MsgUnstake_UnstakeDescriptor{ + { + ID: 1, + Coins: sdk.NewCoins(sdk.NewCoin("test1", sdk.NewInt(0))), + }, + }, + }, + expectPass: true, + }, + { + name: "nil coins (unstake by ID)", + msg: MsgUnstake{ + Owner: addr1, + Unstakes: []*MsgUnstake_UnstakeDescriptor{ + { + ID: 1, + Coins: sdk.NewCoins(), + }, + }, + }, + expectPass: true, + }, + } + + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + if test.expectPass { + require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) + require.Equal(t, test.msg.Route(), RouterKey) + require.Equal(t, test.msg.Type(), "begin_unstaking") + signers := test.msg.GetSigners() + require.Equal(t, len(signers), 1) + require.Equal(t, signers[0].String(), addr1) + } else { + require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) + } + }) + } +} diff --git a/x/incentives/types/params.go b/x/incentives/types/params.go new file mode 100644 index 000000000..560ec9b67 --- /dev/null +++ b/x/incentives/types/params.go @@ -0,0 +1,50 @@ +package types + +import ( + epochtypes "github.com/neutron-org/neutron/x/epochs/types" + + paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" +) + +// Incentives parameters key store. +var ( + KeyDistrEpochIdentifier = []byte("DistrEpochIdentifier") + KeyMaxGauges = []byte("MaxGauges") +) + +// ParamKeyTable returns the key table for the incentive module's parameters. +func ParamKeyTable() paramtypes.KeyTable { + return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) +} + +// NewParams takes an epoch distribution identifier, then returns an incentives Params struct. +func NewParams(distrEpochIdentifier string, maxGauges uint64) Params { + return Params{ + DistrEpochIdentifier: distrEpochIdentifier, + MaxGauges: maxGauges, + } +} + +// DefaultParams returns the default incentives module parameters. +func DefaultParams() Params { + return Params{ + DistrEpochIdentifier: "day", + MaxGauges: 20, + } +} + +// Validate checks that the incentives module parameters are valid. +func (p Params) Validate() error { + if err := epochtypes.ValidateEpochIdentifierInterface(p.DistrEpochIdentifier); err != nil { + return err + } + return nil +} + +// ParamSetPairs takes the parameter struct and associates the paramsubspace key and field of the parameters as a KVStore. +func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { + return paramtypes.ParamSetPairs{ + paramtypes.NewParamSetPair(KeyDistrEpochIdentifier, &p.DistrEpochIdentifier, epochtypes.ValidateEpochIdentifierInterface), + paramtypes.NewParamSetPair(KeyMaxGauges, &p.MaxGauges, func(interface{}) error { return nil }), + } +} diff --git a/x/incentives/types/params.pb.go b/x/incentives/types/params.pb.go new file mode 100644 index 000000000..9abc27827 --- /dev/null +++ b/x/incentives/types/params.pb.go @@ -0,0 +1,359 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Params holds parameters for the incentives module +type Params struct { + // distr_epoch_identifier is what epoch type distribution will be triggered by + // (day, week, etc.) + DistrEpochIdentifier string `protobuf:"bytes,1,opt,name=distr_epoch_identifier,json=distrEpochIdentifier,proto3" json:"distr_epoch_identifier,omitempty" yaml:"distr_epoch_identifier"` + MaxGauges uint64 `protobuf:"varint,2,opt,name=max_gauges,json=maxGauges,proto3" json:"max_gauges,omitempty" yaml:"max_gauges"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_7cfdf36cf57c01b8, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetDistrEpochIdentifier() string { + if m != nil { + return m.DistrEpochIdentifier + } + return "" +} + +func (m *Params) GetMaxGauges() uint64 { + if m != nil { + return m.MaxGauges + } + return 0 +} + +func init() { + proto.RegisterType((*Params)(nil), "duality.incentives.Params") +} + +func init() { proto.RegisterFile("duality/incentives/params.proto", fileDescriptor_7cfdf36cf57c01b8) } + +var fileDescriptor_7cfdf36cf57c01b8 = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x29, 0x4d, 0xcc, + 0xc9, 0x2c, 0xa9, 0xd4, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x2f, + 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0x2a, 0xd0, + 0x43, 0x28, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x4a, + 0xd3, 0x19, 0xb9, 0xd8, 0x02, 0xc0, 0x5a, 0x85, 0xc2, 0xb9, 0xc4, 0x52, 0x32, 0x8b, 0x4b, 0x8a, + 0xe2, 0x53, 0x0b, 0xf2, 0x93, 0x33, 0xe2, 0x33, 0x53, 0x40, 0x3a, 0xd3, 0x32, 0x53, 0x8b, 0x24, + 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x14, 0x3f, 0xdd, 0x93, 0x97, 0xad, 0x4c, 0xcc, 0xcd, 0xb1, + 0x52, 0xc2, 0xae, 0x4e, 0x29, 0x48, 0x04, 0x2c, 0xe1, 0x0a, 0x12, 0xf7, 0x84, 0x0b, 0x0b, 0x99, + 0x70, 0x71, 0xe5, 0x26, 0x56, 0xc4, 0xa7, 0x27, 0x96, 0xa6, 0xa7, 0x16, 0x4b, 0x30, 0x29, 0x30, + 0x6a, 0xb0, 0x38, 0x89, 0x7e, 0xba, 0x27, 0x2f, 0x08, 0x31, 0x0c, 0x21, 0xa7, 0x14, 0xc4, 0x99, + 0x9b, 0x58, 0xe1, 0x0e, 0x66, 0x3b, 0xf9, 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, 0x51, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0xa3, + 0xba, 0x39, 0x89, 0x49, 0xc5, 0x30, 0x8e, 0x7e, 0x05, 0x72, 0xc0, 0x94, 0x54, 0x16, 0xa4, 0x16, + 0x27, 0xb1, 0x81, 0xbd, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x56, 0x09, 0x16, 0x1d, 0x3b, + 0x01, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxGauges != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxGauges)) + i-- + dAtA[i] = 0x10 + } + if len(m.DistrEpochIdentifier) > 0 { + i -= len(m.DistrEpochIdentifier) + copy(dAtA[i:], m.DistrEpochIdentifier) + i = encodeVarintParams(dAtA, i, uint64(len(m.DistrEpochIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DistrEpochIdentifier) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + if m.MaxGauges != 0 { + n += 1 + sovParams(uint64(m.MaxGauges)) + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistrEpochIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DistrEpochIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxGauges", wireType) + } + m.MaxGauges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxGauges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/query.pb.go b/x/incentives/types/query.pb.go new file mode 100644 index 000000000..6875b41a9 --- /dev/null +++ b/x/incentives/types/query.pb.go @@ -0,0 +1,3584 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/query.proto + +package types + +import ( + context "context" + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + 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" + 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 +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. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type GaugeStatus int32 + +const ( + GaugeStatus_ACTIVE_UPCOMING GaugeStatus = 0 + GaugeStatus_ACTIVE GaugeStatus = 1 + GaugeStatus_UPCOMING GaugeStatus = 2 + GaugeStatus_FINISHED GaugeStatus = 3 +) + +var GaugeStatus_name = map[int32]string{ + 0: "ACTIVE_UPCOMING", + 1: "ACTIVE", + 2: "UPCOMING", + 3: "FINISHED", +} + +var GaugeStatus_value = map[string]int32{ + "ACTIVE_UPCOMING": 0, + "ACTIVE": 1, + "UPCOMING": 2, + "FINISHED": 3, +} + +func (x GaugeStatus) String() string { + return proto.EnumName(GaugeStatus_name, int32(x)) +} + +func (GaugeStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{0} +} + +type GetModuleStatusRequest struct { +} + +func (m *GetModuleStatusRequest) Reset() { *m = GetModuleStatusRequest{} } +func (m *GetModuleStatusRequest) String() string { return proto.CompactTextString(m) } +func (*GetModuleStatusRequest) ProtoMessage() {} +func (*GetModuleStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{0} +} +func (m *GetModuleStatusRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetModuleStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetModuleStatusRequest.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 *GetModuleStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetModuleStatusRequest.Merge(m, src) +} +func (m *GetModuleStatusRequest) XXX_Size() int { + return m.Size() +} +func (m *GetModuleStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetModuleStatusRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetModuleStatusRequest proto.InternalMessageInfo + +type GetModuleStatusResponse struct { + // Coins that have yet to be distributed + RewardCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=reward_coins,json=rewardCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward_coins"` + StakedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=staked_coins,json=stakedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"staked_coins"` + Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` +} + +func (m *GetModuleStatusResponse) Reset() { *m = GetModuleStatusResponse{} } +func (m *GetModuleStatusResponse) String() string { return proto.CompactTextString(m) } +func (*GetModuleStatusResponse) ProtoMessage() {} +func (*GetModuleStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{1} +} +func (m *GetModuleStatusResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetModuleStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetModuleStatusResponse.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 *GetModuleStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetModuleStatusResponse.Merge(m, src) +} +func (m *GetModuleStatusResponse) XXX_Size() int { + return m.Size() +} +func (m *GetModuleStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetModuleStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetModuleStatusResponse proto.InternalMessageInfo + +func (m *GetModuleStatusResponse) GetRewardCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.RewardCoins + } + return nil +} + +func (m *GetModuleStatusResponse) GetStakedCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.StakedCoins + } + return nil +} + +func (m *GetModuleStatusResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type GetGaugeByIDRequest struct { + // Gague ID being queried + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *GetGaugeByIDRequest) Reset() { *m = GetGaugeByIDRequest{} } +func (m *GetGaugeByIDRequest) String() string { return proto.CompactTextString(m) } +func (*GetGaugeByIDRequest) ProtoMessage() {} +func (*GetGaugeByIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{2} +} +func (m *GetGaugeByIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGaugeByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGaugeByIDRequest.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 *GetGaugeByIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGaugeByIDRequest.Merge(m, src) +} +func (m *GetGaugeByIDRequest) XXX_Size() int { + return m.Size() +} +func (m *GetGaugeByIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetGaugeByIDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGaugeByIDRequest proto.InternalMessageInfo + +func (m *GetGaugeByIDRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +type GetGaugeByIDResponse struct { + // Gauge that corresponds to provided gague ID + Gauge *Gauge `protobuf:"bytes,1,opt,name=gauge,proto3" json:"gauge,omitempty"` +} + +func (m *GetGaugeByIDResponse) Reset() { *m = GetGaugeByIDResponse{} } +func (m *GetGaugeByIDResponse) String() string { return proto.CompactTextString(m) } +func (*GetGaugeByIDResponse) ProtoMessage() {} +func (*GetGaugeByIDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{3} +} +func (m *GetGaugeByIDResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGaugeByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGaugeByIDResponse.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 *GetGaugeByIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGaugeByIDResponse.Merge(m, src) +} +func (m *GetGaugeByIDResponse) XXX_Size() int { + return m.Size() +} +func (m *GetGaugeByIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetGaugeByIDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGaugeByIDResponse proto.InternalMessageInfo + +func (m *GetGaugeByIDResponse) GetGauge() *Gauge { + if m != nil { + return m.Gauge + } + return nil +} + +type GetGaugeQualifyingValueRequest struct { + // Gague ID being queried + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *GetGaugeQualifyingValueRequest) Reset() { *m = GetGaugeQualifyingValueRequest{} } +func (m *GetGaugeQualifyingValueRequest) String() string { return proto.CompactTextString(m) } +func (*GetGaugeQualifyingValueRequest) ProtoMessage() {} +func (*GetGaugeQualifyingValueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{4} +} +func (m *GetGaugeQualifyingValueRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGaugeQualifyingValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGaugeQualifyingValueRequest.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 *GetGaugeQualifyingValueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGaugeQualifyingValueRequest.Merge(m, src) +} +func (m *GetGaugeQualifyingValueRequest) XXX_Size() int { + return m.Size() +} +func (m *GetGaugeQualifyingValueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetGaugeQualifyingValueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGaugeQualifyingValueRequest proto.InternalMessageInfo + +func (m *GetGaugeQualifyingValueRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +type GetGaugeQualifyingValueResponse struct { + // The amount of value at the gauge's pricing tick currently qualifying for the gauge. + QualifyingValue uint64 `protobuf:"varint,1,opt,name=qualifying_value,json=qualifyingValue,proto3" json:"qualifying_value,omitempty"` +} + +func (m *GetGaugeQualifyingValueResponse) Reset() { *m = GetGaugeQualifyingValueResponse{} } +func (m *GetGaugeQualifyingValueResponse) String() string { return proto.CompactTextString(m) } +func (*GetGaugeQualifyingValueResponse) ProtoMessage() {} +func (*GetGaugeQualifyingValueResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{5} +} +func (m *GetGaugeQualifyingValueResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGaugeQualifyingValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGaugeQualifyingValueResponse.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 *GetGaugeQualifyingValueResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGaugeQualifyingValueResponse.Merge(m, src) +} +func (m *GetGaugeQualifyingValueResponse) XXX_Size() int { + return m.Size() +} +func (m *GetGaugeQualifyingValueResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetGaugeQualifyingValueResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGaugeQualifyingValueResponse proto.InternalMessageInfo + +func (m *GetGaugeQualifyingValueResponse) GetQualifyingValue() uint64 { + if m != nil { + return m.QualifyingValue + } + return 0 +} + +type GetGaugesRequest struct { + Status GaugeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=duality.incentives.GaugeStatus" json:"status,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *GetGaugesRequest) Reset() { *m = GetGaugesRequest{} } +func (m *GetGaugesRequest) String() string { return proto.CompactTextString(m) } +func (*GetGaugesRequest) ProtoMessage() {} +func (*GetGaugesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{6} +} +func (m *GetGaugesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGaugesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGaugesRequest.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 *GetGaugesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGaugesRequest.Merge(m, src) +} +func (m *GetGaugesRequest) XXX_Size() int { + return m.Size() +} +func (m *GetGaugesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetGaugesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGaugesRequest proto.InternalMessageInfo + +func (m *GetGaugesRequest) GetStatus() GaugeStatus { + if m != nil { + return m.Status + } + return GaugeStatus_ACTIVE_UPCOMING +} + +func (m *GetGaugesRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +type GetGaugesResponse struct { + // Upcoming and active gauges + Gauges []*Gauge `protobuf:"bytes,1,rep,name=gauges,proto3" json:"gauges,omitempty"` +} + +func (m *GetGaugesResponse) Reset() { *m = GetGaugesResponse{} } +func (m *GetGaugesResponse) String() string { return proto.CompactTextString(m) } +func (*GetGaugesResponse) ProtoMessage() {} +func (*GetGaugesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{7} +} +func (m *GetGaugesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGaugesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGaugesResponse.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 *GetGaugesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGaugesResponse.Merge(m, src) +} +func (m *GetGaugesResponse) XXX_Size() int { + return m.Size() +} +func (m *GetGaugesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetGaugesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGaugesResponse proto.InternalMessageInfo + +func (m *GetGaugesResponse) GetGauges() []*Gauge { + if m != nil { + return m.Gauges + } + return nil +} + +type GetStakeByIDRequest struct { + StakeId uint64 `protobuf:"varint,1,opt,name=stake_id,json=stakeId,proto3" json:"stake_id,omitempty"` +} + +func (m *GetStakeByIDRequest) Reset() { *m = GetStakeByIDRequest{} } +func (m *GetStakeByIDRequest) String() string { return proto.CompactTextString(m) } +func (*GetStakeByIDRequest) ProtoMessage() {} +func (*GetStakeByIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{8} +} +func (m *GetStakeByIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStakeByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStakeByIDRequest.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 *GetStakeByIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStakeByIDRequest.Merge(m, src) +} +func (m *GetStakeByIDRequest) XXX_Size() int { + return m.Size() +} +func (m *GetStakeByIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStakeByIDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStakeByIDRequest proto.InternalMessageInfo + +func (m *GetStakeByIDRequest) GetStakeId() uint64 { + if m != nil { + return m.StakeId + } + return 0 +} + +type GetStakeByIDResponse struct { + Stake *Stake `protobuf:"bytes,1,opt,name=stake,proto3" json:"stake,omitempty"` +} + +func (m *GetStakeByIDResponse) Reset() { *m = GetStakeByIDResponse{} } +func (m *GetStakeByIDResponse) String() string { return proto.CompactTextString(m) } +func (*GetStakeByIDResponse) ProtoMessage() {} +func (*GetStakeByIDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{9} +} +func (m *GetStakeByIDResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStakeByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStakeByIDResponse.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 *GetStakeByIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStakeByIDResponse.Merge(m, src) +} +func (m *GetStakeByIDResponse) XXX_Size() int { + return m.Size() +} +func (m *GetStakeByIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStakeByIDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStakeByIDResponse proto.InternalMessageInfo + +func (m *GetStakeByIDResponse) GetStake() *Stake { + if m != nil { + return m.Stake + } + return nil +} + +type GetStakesRequest struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` +} + +func (m *GetStakesRequest) Reset() { *m = GetStakesRequest{} } +func (m *GetStakesRequest) String() string { return proto.CompactTextString(m) } +func (*GetStakesRequest) ProtoMessage() {} +func (*GetStakesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{10} +} +func (m *GetStakesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStakesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStakesRequest.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 *GetStakesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStakesRequest.Merge(m, src) +} +func (m *GetStakesRequest) XXX_Size() int { + return m.Size() +} +func (m *GetStakesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStakesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStakesRequest proto.InternalMessageInfo + +func (m *GetStakesRequest) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +type GetStakesResponse struct { + Stakes []*Stake `protobuf:"bytes,1,rep,name=stakes,proto3" json:"stakes,omitempty"` +} + +func (m *GetStakesResponse) Reset() { *m = GetStakesResponse{} } +func (m *GetStakesResponse) String() string { return proto.CompactTextString(m) } +func (*GetStakesResponse) ProtoMessage() {} +func (*GetStakesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{11} +} +func (m *GetStakesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStakesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStakesResponse.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 *GetStakesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStakesResponse.Merge(m, src) +} +func (m *GetStakesResponse) XXX_Size() int { + return m.Size() +} +func (m *GetStakesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStakesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStakesResponse proto.InternalMessageInfo + +func (m *GetStakesResponse) GetStakes() []*Stake { + if m != nil { + return m.Stakes + } + return nil +} + +type GetFutureRewardEstimateRequest struct { + // Address that is being queried for future estimated rewards + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` + // Stake IDs included in future reward estimation + StakeIds []uint64 `protobuf:"varint,2,rep,packed,name=stake_ids,json=stakeIds,proto3" json:"stake_ids,omitempty"` + // Determines upper time limit of reward estimation + // reward estimation goes up to current_epoch + num_epochs + NumEpochs int64 `protobuf:"varint,3,opt,name=num_epochs,json=numEpochs,proto3" json:"num_epochs,omitempty"` +} + +func (m *GetFutureRewardEstimateRequest) Reset() { *m = GetFutureRewardEstimateRequest{} } +func (m *GetFutureRewardEstimateRequest) String() string { return proto.CompactTextString(m) } +func (*GetFutureRewardEstimateRequest) ProtoMessage() {} +func (*GetFutureRewardEstimateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{12} +} +func (m *GetFutureRewardEstimateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetFutureRewardEstimateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetFutureRewardEstimateRequest.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 *GetFutureRewardEstimateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFutureRewardEstimateRequest.Merge(m, src) +} +func (m *GetFutureRewardEstimateRequest) XXX_Size() int { + return m.Size() +} +func (m *GetFutureRewardEstimateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetFutureRewardEstimateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFutureRewardEstimateRequest proto.InternalMessageInfo + +func (m *GetFutureRewardEstimateRequest) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *GetFutureRewardEstimateRequest) GetStakeIds() []uint64 { + if m != nil { + return m.StakeIds + } + return nil +} + +func (m *GetFutureRewardEstimateRequest) GetNumEpochs() int64 { + if m != nil { + return m.NumEpochs + } + return 0 +} + +type GetFutureRewardEstimateResponse struct { + // Estimated coin rewards that will be recieved at provided address + // from specified locks between current time and end epoch + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` +} + +func (m *GetFutureRewardEstimateResponse) Reset() { *m = GetFutureRewardEstimateResponse{} } +func (m *GetFutureRewardEstimateResponse) String() string { return proto.CompactTextString(m) } +func (*GetFutureRewardEstimateResponse) ProtoMessage() {} +func (*GetFutureRewardEstimateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{13} +} +func (m *GetFutureRewardEstimateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetFutureRewardEstimateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetFutureRewardEstimateResponse.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 *GetFutureRewardEstimateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFutureRewardEstimateResponse.Merge(m, src) +} +func (m *GetFutureRewardEstimateResponse) XXX_Size() int { + return m.Size() +} +func (m *GetFutureRewardEstimateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetFutureRewardEstimateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFutureRewardEstimateResponse proto.InternalMessageInfo + +func (m *GetFutureRewardEstimateResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +type GetAccountHistoryRequest struct { + // Address that is being queried for account history + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty" yaml:"account"` +} + +func (m *GetAccountHistoryRequest) Reset() { *m = GetAccountHistoryRequest{} } +func (m *GetAccountHistoryRequest) String() string { return proto.CompactTextString(m) } +func (*GetAccountHistoryRequest) ProtoMessage() {} +func (*GetAccountHistoryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{14} +} +func (m *GetAccountHistoryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAccountHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAccountHistoryRequest.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 *GetAccountHistoryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAccountHistoryRequest.Merge(m, src) +} +func (m *GetAccountHistoryRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAccountHistoryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAccountHistoryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAccountHistoryRequest proto.InternalMessageInfo + +func (m *GetAccountHistoryRequest) GetAccount() string { + if m != nil { + return m.Account + } + return "" +} + +type GetAccountHistoryResponse struct { + // Gauge rewards that have been distributed to this address to date + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` +} + +func (m *GetAccountHistoryResponse) Reset() { *m = GetAccountHistoryResponse{} } +func (m *GetAccountHistoryResponse) String() string { return proto.CompactTextString(m) } +func (*GetAccountHistoryResponse) ProtoMessage() {} +func (*GetAccountHistoryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_27b4715672276428, []int{15} +} +func (m *GetAccountHistoryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAccountHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAccountHistoryResponse.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 *GetAccountHistoryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAccountHistoryResponse.Merge(m, src) +} +func (m *GetAccountHistoryResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAccountHistoryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAccountHistoryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAccountHistoryResponse proto.InternalMessageInfo + +func (m *GetAccountHistoryResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +func init() { + proto.RegisterEnum("duality.incentives.GaugeStatus", GaugeStatus_name, GaugeStatus_value) + proto.RegisterType((*GetModuleStatusRequest)(nil), "duality.incentives.GetModuleStatusRequest") + proto.RegisterType((*GetModuleStatusResponse)(nil), "duality.incentives.GetModuleStatusResponse") + proto.RegisterType((*GetGaugeByIDRequest)(nil), "duality.incentives.GetGaugeByIDRequest") + proto.RegisterType((*GetGaugeByIDResponse)(nil), "duality.incentives.GetGaugeByIDResponse") + proto.RegisterType((*GetGaugeQualifyingValueRequest)(nil), "duality.incentives.GetGaugeQualifyingValueRequest") + proto.RegisterType((*GetGaugeQualifyingValueResponse)(nil), "duality.incentives.GetGaugeQualifyingValueResponse") + proto.RegisterType((*GetGaugesRequest)(nil), "duality.incentives.GetGaugesRequest") + proto.RegisterType((*GetGaugesResponse)(nil), "duality.incentives.GetGaugesResponse") + proto.RegisterType((*GetStakeByIDRequest)(nil), "duality.incentives.GetStakeByIDRequest") + proto.RegisterType((*GetStakeByIDResponse)(nil), "duality.incentives.GetStakeByIDResponse") + proto.RegisterType((*GetStakesRequest)(nil), "duality.incentives.GetStakesRequest") + proto.RegisterType((*GetStakesResponse)(nil), "duality.incentives.GetStakesResponse") + proto.RegisterType((*GetFutureRewardEstimateRequest)(nil), "duality.incentives.GetFutureRewardEstimateRequest") + proto.RegisterType((*GetFutureRewardEstimateResponse)(nil), "duality.incentives.GetFutureRewardEstimateResponse") + proto.RegisterType((*GetAccountHistoryRequest)(nil), "duality.incentives.GetAccountHistoryRequest") + proto.RegisterType((*GetAccountHistoryResponse)(nil), "duality.incentives.GetAccountHistoryResponse") +} + +func init() { proto.RegisterFile("duality/incentives/query.proto", fileDescriptor_27b4715672276428) } + +var fileDescriptor_27b4715672276428 = []byte{ + // 1075 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x4f, 0x1b, 0xc7, + 0x1b, 0x66, 0xcd, 0x9f, 0xe0, 0x01, 0x81, 0x7f, 0x13, 0xf4, 0xab, 0x71, 0x53, 0x1b, 0x8d, 0x42, + 0x31, 0x24, 0x78, 0xc1, 0x51, 0x95, 0x2a, 0x55, 0x0e, 0x31, 0x01, 0xe3, 0x2a, 0x49, 0x93, 0xa5, + 0xcd, 0xa1, 0x97, 0xd5, 0xd8, 0x9e, 0x2c, 0xab, 0xd8, 0x3b, 0xc6, 0x33, 0x4b, 0x6a, 0x51, 0x7a, + 0xa8, 0xf2, 0x01, 0xa2, 0xf6, 0x56, 0xa9, 0x5f, 0xa0, 0x97, 0x1e, 0xfa, 0x21, 0x9a, 0x63, 0xa4, + 0x5e, 0x7a, 0xa2, 0x15, 0xf4, 0x13, 0xe4, 0x13, 0x54, 0xfb, 0xce, 0xac, 0xb1, 0x61, 0x77, 0x21, + 0x87, 0xf4, 0x64, 0xef, 0xbc, 0xff, 0x9e, 0xf7, 0x79, 0x67, 0x9e, 0x19, 0x94, 0x6f, 0xfa, 0xb4, + 0xe5, 0xca, 0x9e, 0xe9, 0x7a, 0x0d, 0xe6, 0x49, 0x77, 0x9f, 0x09, 0x73, 0xcf, 0x67, 0xdd, 0x5e, + 0xa9, 0xd3, 0xe5, 0x92, 0x63, 0xac, 0xed, 0xa5, 0x53, 0x7b, 0x6e, 0xce, 0xe1, 0x0e, 0x07, 0xb3, + 0x19, 0xfc, 0x53, 0x9e, 0xb9, 0x6b, 0x0e, 0xe7, 0x4e, 0x8b, 0x99, 0xb4, 0xe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x96, + 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // GetModuleStatus returns a rundown of coins in the module and their status + GetModuleStatus(ctx context.Context, in *GetModuleStatusRequest, opts ...grpc.CallOption) (*GetModuleStatusResponse, error) + // GetGaugeByID returns a gauge by its ID + GetGaugeByID(ctx context.Context, in *GetGaugeByIDRequest, opts ...grpc.CallOption) (*GetGaugeByIDResponse, error) + // GetGauges returns gauges according to the filter provided + GetGauges(ctx context.Context, in *GetGaugesRequest, opts ...grpc.CallOption) (*GetGaugesResponse, error) + // GetStakeByID returns a stake by its ID + GetStakeByID(ctx context.Context, in *GetStakeByIDRequest, opts ...grpc.CallOption) (*GetStakeByIDResponse, error) + // GetStakes returns stakes by the filter provided. At least one filter must be provided. + GetStakes(ctx context.Context, in *GetStakesRequest, opts ...grpc.CallOption) (*GetStakesResponse, error) + // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified + // time in the future. The requestor either provides an address or a set of locks + // for which they want to find the associated rewards. + GetFutureRewardEstimate(ctx context.Context, in *GetFutureRewardEstimateRequest, opts ...grpc.CallOption) (*GetFutureRewardEstimateResponse, error) + // GetAccountHistory returns the total accumulated rewards per denom for a given user. + GetAccountHistory(ctx context.Context, in *GetAccountHistoryRequest, opts ...grpc.CallOption) (*GetAccountHistoryResponse, error) + // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating + // the prospective future rewards of staking. + GetGaugeQualifyingValue(ctx context.Context, in *GetGaugeQualifyingValueRequest, opts ...grpc.CallOption) (*GetGaugeQualifyingValueResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) GetModuleStatus(ctx context.Context, in *GetModuleStatusRequest, opts ...grpc.CallOption) (*GetModuleStatusResponse, error) { + out := new(GetModuleStatusResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetModuleStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetGaugeByID(ctx context.Context, in *GetGaugeByIDRequest, opts ...grpc.CallOption) (*GetGaugeByIDResponse, error) { + out := new(GetGaugeByIDResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetGaugeByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetGauges(ctx context.Context, in *GetGaugesRequest, opts ...grpc.CallOption) (*GetGaugesResponse, error) { + out := new(GetGaugesResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetGauges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetStakeByID(ctx context.Context, in *GetStakeByIDRequest, opts ...grpc.CallOption) (*GetStakeByIDResponse, error) { + out := new(GetStakeByIDResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetStakeByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetStakes(ctx context.Context, in *GetStakesRequest, opts ...grpc.CallOption) (*GetStakesResponse, error) { + out := new(GetStakesResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetStakes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetFutureRewardEstimate(ctx context.Context, in *GetFutureRewardEstimateRequest, opts ...grpc.CallOption) (*GetFutureRewardEstimateResponse, error) { + out := new(GetFutureRewardEstimateResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetFutureRewardEstimate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetAccountHistory(ctx context.Context, in *GetAccountHistoryRequest, opts ...grpc.CallOption) (*GetAccountHistoryResponse, error) { + out := new(GetAccountHistoryResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetAccountHistory", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetGaugeQualifyingValue(ctx context.Context, in *GetGaugeQualifyingValueRequest, opts ...grpc.CallOption) (*GetGaugeQualifyingValueResponse, error) { + out := new(GetGaugeQualifyingValueResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetGaugeQualifyingValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // GetModuleStatus returns a rundown of coins in the module and their status + GetModuleStatus(context.Context, *GetModuleStatusRequest) (*GetModuleStatusResponse, error) + // GetGaugeByID returns a gauge by its ID + GetGaugeByID(context.Context, *GetGaugeByIDRequest) (*GetGaugeByIDResponse, error) + // GetGauges returns gauges according to the filter provided + GetGauges(context.Context, *GetGaugesRequest) (*GetGaugesResponse, error) + // GetStakeByID returns a stake by its ID + GetStakeByID(context.Context, *GetStakeByIDRequest) (*GetStakeByIDResponse, error) + // GetStakes returns stakes by the filter provided. At least one filter must be provided. + GetStakes(context.Context, *GetStakesRequest) (*GetStakesResponse, error) + // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified + // time in the future. The requestor either provides an address or a set of locks + // for which they want to find the associated rewards. + GetFutureRewardEstimate(context.Context, *GetFutureRewardEstimateRequest) (*GetFutureRewardEstimateResponse, error) + // GetAccountHistory returns the total accumulated rewards per denom for a given user. + GetAccountHistory(context.Context, *GetAccountHistoryRequest) (*GetAccountHistoryResponse, error) + // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating + // the prospective future rewards of staking. + GetGaugeQualifyingValue(context.Context, *GetGaugeQualifyingValueRequest) (*GetGaugeQualifyingValueResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) GetModuleStatus(ctx context.Context, req *GetModuleStatusRequest) (*GetModuleStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetModuleStatus not implemented") +} +func (*UnimplementedQueryServer) GetGaugeByID(ctx context.Context, req *GetGaugeByIDRequest) (*GetGaugeByIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGaugeByID not implemented") +} +func (*UnimplementedQueryServer) GetGauges(ctx context.Context, req *GetGaugesRequest) (*GetGaugesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGauges not implemented") +} +func (*UnimplementedQueryServer) GetStakeByID(ctx context.Context, req *GetStakeByIDRequest) (*GetStakeByIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStakeByID not implemented") +} +func (*UnimplementedQueryServer) GetStakes(ctx context.Context, req *GetStakesRequest) (*GetStakesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStakes not implemented") +} +func (*UnimplementedQueryServer) GetFutureRewardEstimate(ctx context.Context, req *GetFutureRewardEstimateRequest) (*GetFutureRewardEstimateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFutureRewardEstimate not implemented") +} +func (*UnimplementedQueryServer) GetAccountHistory(ctx context.Context, req *GetAccountHistoryRequest) (*GetAccountHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAccountHistory not implemented") +} +func (*UnimplementedQueryServer) GetGaugeQualifyingValue(ctx context.Context, req *GetGaugeQualifyingValueRequest) (*GetGaugeQualifyingValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGaugeQualifyingValue not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_GetModuleStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetModuleStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetModuleStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetModuleStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetModuleStatus(ctx, req.(*GetModuleStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetGaugeByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetGaugeByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetGaugeByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetGaugeByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetGaugeByID(ctx, req.(*GetGaugeByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetGauges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetGaugesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetGauges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetGauges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetGauges(ctx, req.(*GetGaugesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetStakeByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStakeByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetStakeByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetStakeByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetStakeByID(ctx, req.(*GetStakeByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetStakes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStakesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetStakes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetStakes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetStakes(ctx, req.(*GetStakesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetFutureRewardEstimate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetFutureRewardEstimateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetFutureRewardEstimate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetFutureRewardEstimate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetFutureRewardEstimate(ctx, req.(*GetFutureRewardEstimateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetAccountHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAccountHistoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetAccountHistory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetAccountHistory", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetAccountHistory(ctx, req.(*GetAccountHistoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetGaugeQualifyingValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetGaugeQualifyingValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetGaugeQualifyingValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Query/GetGaugeQualifyingValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetGaugeQualifyingValue(ctx, req.(*GetGaugeQualifyingValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "duality.incentives.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetModuleStatus", + Handler: _Query_GetModuleStatus_Handler, + }, + { + MethodName: "GetGaugeByID", + Handler: _Query_GetGaugeByID_Handler, + }, + { + MethodName: "GetGauges", + Handler: _Query_GetGauges_Handler, + }, + { + MethodName: "GetStakeByID", + Handler: _Query_GetStakeByID_Handler, + }, + { + MethodName: "GetStakes", + Handler: _Query_GetStakes_Handler, + }, + { + MethodName: "GetFutureRewardEstimate", + Handler: _Query_GetFutureRewardEstimate_Handler, + }, + { + MethodName: "GetAccountHistory", + Handler: _Query_GetAccountHistory_Handler, + }, + { + MethodName: "GetGaugeQualifyingValue", + Handler: _Query_GetGaugeQualifyingValue_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "duality/incentives/query.proto", +} + +func (m *GetModuleStatusRequest) 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 *GetModuleStatusRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetModuleStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GetModuleStatusResponse) 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 *GetModuleStatusResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetModuleStatusResponse) 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 = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.StakedCoins) > 0 { + for iNdEx := len(m.StakedCoins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StakedCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.RewardCoins) > 0 { + for iNdEx := len(m.RewardCoins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RewardCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetGaugeByIDRequest) 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 *GetGaugeByIDRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGaugeByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetGaugeByIDResponse) 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 *GetGaugeByIDResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGaugeByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Gauge != nil { + { + size, err := m.Gauge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetGaugeQualifyingValueRequest) 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 *GetGaugeQualifyingValueRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGaugeQualifyingValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetGaugeQualifyingValueResponse) 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 *GetGaugeQualifyingValueResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGaugeQualifyingValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.QualifyingValue != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.QualifyingValue)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetGaugesRequest) 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 *GetGaugesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGaugesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if m.Status != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetGaugesResponse) 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 *GetGaugesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGaugesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Gauges) > 0 { + for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Gauges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetStakeByIDRequest) 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 *GetStakeByIDRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStakeByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StakeId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.StakeId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetStakeByIDResponse) 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 *GetStakeByIDResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStakeByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Stake != nil { + { + size, err := m.Stake.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetStakesRequest) 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 *GetStakesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStakesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetStakesResponse) 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 *GetStakesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStakesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Stakes) > 0 { + for iNdEx := len(m.Stakes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Stakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetFutureRewardEstimateRequest) 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 *GetFutureRewardEstimateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetFutureRewardEstimateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NumEpochs != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.NumEpochs)) + i-- + dAtA[i] = 0x18 + } + if len(m.StakeIds) > 0 { + dAtA5 := make([]byte, len(m.StakeIds)*10) + var j4 int + for _, num := range m.StakeIds { + for num >= 1<<7 { + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j4++ + } + dAtA5[j4] = uint8(num) + j4++ + } + i -= j4 + copy(dAtA[i:], dAtA5[:j4]) + i = encodeVarintQuery(dAtA, i, uint64(j4)) + i-- + dAtA[i] = 0x12 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetFutureRewardEstimateResponse) 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 *GetFutureRewardEstimateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetFutureRewardEstimateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetAccountHistoryRequest) 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 *GetAccountHistoryRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAccountHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetAccountHistoryResponse) 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 *GetAccountHistoryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAccountHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GetModuleStatusRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetModuleStatusResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RewardCoins) > 0 { + for _, e := range m.RewardCoins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if len(m.StakedCoins) > 0 { + for _, e := range m.StakedCoins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *GetGaugeByIDRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + return n +} + +func (m *GetGaugeByIDResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Gauge != nil { + l = m.Gauge.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetGaugeQualifyingValueRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + return n +} + +func (m *GetGaugeQualifyingValueResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QualifyingValue != 0 { + n += 1 + sovQuery(uint64(m.QualifyingValue)) + } + return n +} + +func (m *GetGaugesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != 0 { + n += 1 + sovQuery(uint64(m.Status)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetGaugesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Gauges) > 0 { + for _, e := range m.Gauges { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *GetStakeByIDRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StakeId != 0 { + n += 1 + sovQuery(uint64(m.StakeId)) + } + return n +} + +func (m *GetStakeByIDResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Stake != nil { + l = m.Stake.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetStakesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetStakesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Stakes) > 0 { + for _, e := range m.Stakes { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *GetFutureRewardEstimateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.StakeIds) > 0 { + l = 0 + for _, e := range m.StakeIds { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l + } + if m.NumEpochs != 0 { + n += 1 + sovQuery(uint64(m.NumEpochs)) + } + return n +} + +func (m *GetFutureRewardEstimateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *GetAccountHistoryRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Account) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GetAccountHistoryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GetModuleStatusRequest) 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 ErrIntOverflowQuery + } + 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: GetModuleStatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetModuleStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetModuleStatusResponse) 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 ErrIntOverflowQuery + } + 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: GetModuleStatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetModuleStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RewardCoins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RewardCoins = append(m.RewardCoins, types.Coin{}) + if err := m.RewardCoins[len(m.RewardCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakedCoins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakedCoins = append(m.StakedCoins, types.Coin{}) + if err := m.StakedCoins[len(m.StakedCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + 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 := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGaugeByIDRequest) 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 ErrIntOverflowQuery + } + 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: GetGaugeByIDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGaugeByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGaugeByIDResponse) 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 ErrIntOverflowQuery + } + 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: GetGaugeByIDResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGaugeByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gauge", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gauge == nil { + m.Gauge = &Gauge{} + } + if err := m.Gauge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGaugeQualifyingValueRequest) 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 ErrIntOverflowQuery + } + 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: GetGaugeQualifyingValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGaugeQualifyingValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGaugeQualifyingValueResponse) 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 ErrIntOverflowQuery + } + 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: GetGaugeQualifyingValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGaugeQualifyingValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QualifyingValue", wireType) + } + m.QualifyingValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QualifyingValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGaugesRequest) 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 ErrIntOverflowQuery + } + 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: GetGaugesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGaugesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= GaugeStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGaugesResponse) 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 ErrIntOverflowQuery + } + 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: GetGaugesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGaugesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Gauges = append(m.Gauges, &Gauge{}) + if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStakeByIDRequest) 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 ErrIntOverflowQuery + } + 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: GetStakeByIDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStakeByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeId", wireType) + } + m.StakeId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StakeId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStakeByIDResponse) 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 ErrIntOverflowQuery + } + 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: GetStakeByIDResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStakeByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stake", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stake == nil { + m.Stake = &Stake{} + } + if err := m.Stake.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStakesRequest) 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 ErrIntOverflowQuery + } + 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: GetStakesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStakesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStakesResponse) 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 ErrIntOverflowQuery + } + 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: GetStakesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStakesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stakes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stakes = append(m.Stakes, &Stake{}) + if err := m.Stakes[len(m.Stakes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetFutureRewardEstimateRequest) 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 ErrIntOverflowQuery + } + 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: GetFutureRewardEstimateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFutureRewardEstimateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StakeIds = append(m.StakeIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.StakeIds) == 0 { + m.StakeIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StakeIds = append(m.StakeIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field StakeIds", wireType) + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumEpochs", wireType) + } + m.NumEpochs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumEpochs |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetFutureRewardEstimateResponse) 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 ErrIntOverflowQuery + } + 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: GetFutureRewardEstimateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFutureRewardEstimateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAccountHistoryRequest) 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 ErrIntOverflowQuery + } + 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: GetAccountHistoryRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAccountHistoryRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAccountHistoryResponse) 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 ErrIntOverflowQuery + } + 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: GetAccountHistoryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAccountHistoryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/query.pb.gw.go b/x/incentives/types/query.pb.gw.go new file mode 100644 index 000000000..d3d797117 --- /dev/null +++ b/x/incentives/types/query.pb.gw.go @@ -0,0 +1,842 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: duality/incentives/query.proto + +/* +Package types is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package types + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_GetModuleStatus_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetModuleStatusRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetModuleStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetModuleStatus_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetModuleStatusRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetModuleStatus(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_GetGaugeByID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetGaugeByIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.GetGaugeByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetGaugeByID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetGaugeByIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.GetGaugeByID(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GetGauges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_GetGauges_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetGaugesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetGauges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetGauges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetGauges_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetGaugesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetGauges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetGauges(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_GetStakeByID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetStakeByIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["stake_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "stake_id") + } + + protoReq.StakeId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "stake_id", err) + } + + msg, err := client.GetStakeByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetStakeByID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetStakeByIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["stake_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "stake_id") + } + + protoReq.StakeId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "stake_id", err) + } + + msg, err := server.GetStakeByID(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GetStakes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_GetStakes_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetStakesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetStakes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetStakes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetStakes_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetStakesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetStakes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetStakes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GetFutureRewardEstimate_0 = &utilities.DoubleArray{Encoding: map[string]int{"owner": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_GetFutureRewardEstimate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetFutureRewardEstimateRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["owner"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") + } + + protoReq.Owner, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetFutureRewardEstimate_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetFutureRewardEstimate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetFutureRewardEstimate_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetFutureRewardEstimateRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["owner"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") + } + + protoReq.Owner, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetFutureRewardEstimate_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetFutureRewardEstimate(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_GetAccountHistory_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAccountHistoryRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["account"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") + } + + protoReq.Account, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) + } + + msg, err := client.GetAccountHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetAccountHistory_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAccountHistoryRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["account"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") + } + + protoReq.Account, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) + } + + msg, err := server.GetAccountHistory(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_GetGaugeQualifyingValue_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetGaugeQualifyingValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.GetGaugeQualifyingValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetGaugeQualifyingValue_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetGaugeQualifyingValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.GetGaugeQualifyingValue(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_GetModuleStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetModuleStatus_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetModuleStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetGaugeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetGaugeByID_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetGaugeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetGauges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetGauges_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetStakeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetStakeByID_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetStakeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetStakes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetStakes_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetStakes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetFutureRewardEstimate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetFutureRewardEstimate_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetFutureRewardEstimate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetAccountHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetAccountHistory_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetAccountHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetGaugeQualifyingValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetGaugeQualifyingValue_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetGaugeQualifyingValue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_GetModuleStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetModuleStatus_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetModuleStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetGaugeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetGaugeByID_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetGaugeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetGauges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetGauges_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetStakeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetStakeByID_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetStakeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetStakes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetStakes_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetStakes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetFutureRewardEstimate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetFutureRewardEstimate_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetFutureRewardEstimate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetAccountHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetAccountHistory_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetAccountHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetGaugeQualifyingValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetGaugeQualifyingValue_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetGaugeQualifyingValue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_GetModuleStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"duality", "incentives", "v1beta1", "module_status"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetGaugeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "gauges", "id"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetGauges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"duality", "incentives", "v1beta1", "gauges"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetStakeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"duality", "incentives", "stakes", "stake_id"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetStakes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "incentives", "stakes"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetFutureRewardEstimate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "future_rewards_estimate", "owner"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetAccountHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "account_history", "account"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_GetGaugeQualifyingValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "get_gauge_qualifying_value", "id"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Query_GetModuleStatus_0 = runtime.ForwardResponseMessage + + forward_Query_GetGaugeByID_0 = runtime.ForwardResponseMessage + + forward_Query_GetGauges_0 = runtime.ForwardResponseMessage + + forward_Query_GetStakeByID_0 = runtime.ForwardResponseMessage + + forward_Query_GetStakes_0 = runtime.ForwardResponseMessage + + forward_Query_GetFutureRewardEstimate_0 = runtime.ForwardResponseMessage + + forward_Query_GetAccountHistory_0 = runtime.ForwardResponseMessage + + forward_Query_GetGaugeQualifyingValue_0 = runtime.ForwardResponseMessage +) diff --git a/x/incentives/types/query_condition.go b/x/incentives/types/query_condition.go new file mode 100644 index 000000000..0a9d45d26 --- /dev/null +++ b/x/incentives/types/query_condition.go @@ -0,0 +1,18 @@ +package types + +import ( + dextypes "github.com/neutron-org/neutron/x/dex/types" +) + +func (qc QueryCondition) Test(poolMetadata dextypes.PoolMetadata) bool { + if !poolMetadata.PairID.Equal(qc.PairID) { + return false + } + + lowerTick := poolMetadata.Tick - int64(poolMetadata.Fee) + upperTick := poolMetadata.Tick + int64(poolMetadata.Fee) + lowerTickQualifies := qc.StartTick <= lowerTick && lowerTick <= qc.EndTick + upperTickQualifies := qc.StartTick <= upperTick && upperTick <= qc.EndTick + + return lowerTickQualifies && upperTickQualifies +} diff --git a/x/incentives/types/query_condition_test.go b/x/incentives/types/query_condition_test.go new file mode 100644 index 000000000..c21e77208 --- /dev/null +++ b/x/incentives/types/query_condition_test.go @@ -0,0 +1,62 @@ +package types_test + +import ( + "testing" + + "github.com/stretchr/testify/assert" + + dextypes "github.com/neutron-org/neutron/x/dex/types" + . "github.com/neutron-org/neutron/x/incentives/types" +) + +func TestQueryCondition(t *testing.T) { + pairID := &dextypes.PairID{ + Token0: "coin1", + Token1: "coin2", + } + + tests := []struct { + name string + queryCond QueryCondition + poolMetadata dextypes.PoolMetadata + testResult bool + }{ + { + name: "Matching denom and tick range", + queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, + poolMetadata: dextypes.NewPoolMetadata(pairID, 15, 5, 0), + testResult: true, + }, + { + name: "Non-matching denom", + queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, + poolMetadata: dextypes.NewPoolMetadata(&dextypes.PairID{Token0: "coin1", Token1: "coin3"}, 15, 5, 0), + testResult: false, + }, + { + name: "Non-matching tick range", + queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, + poolMetadata: dextypes.NewPoolMetadata(pairID, 15, 6, 0), + testResult: false, + }, + { + name: "Non-matching tick fee range lower", + queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, + poolMetadata: dextypes.NewPoolMetadata(pairID, 10, 5, 0), + testResult: false, + }, + { + name: "Non-matching tick fee range upper", + queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, + poolMetadata: dextypes.NewPoolMetadata(pairID, 20, 5, 0), + testResult: false, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + result := tt.queryCond.Test(tt.poolMetadata) + assert.Equal(t, tt.testResult, result) + }) + } +} diff --git a/x/incentives/types/stake.go b/x/incentives/types/stake.go new file mode 100644 index 000000000..7d2507cbb --- /dev/null +++ b/x/incentives/types/stake.go @@ -0,0 +1,53 @@ +package types + +import ( + "fmt" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" +) + +// NewStake returns a new instance of period stake. +func NewStake( + id uint64, + owner sdk.AccAddress, + coins sdk.Coins, + startTime time.Time, + startDistEpoch int64, +) *Stake { + coins = coins.Sort() + return &Stake{ + ID: id, + Owner: owner.String(), + Coins: coins, + StartTime: startTime, + StartDistEpoch: startDistEpoch, + } +} + +// OwnerAddress returns stakes owner address. +func (p Stake) OwnerAddress() sdk.AccAddress { + addr, err := sdk.AccAddressFromBech32(p.Owner) + if err != nil { + panic(err) + } + return addr +} + +func (p Stake) SingleCoin() (sdk.Coin, error) { + if len(p.Coins) != 1 { + return sdk.Coin{}, fmt.Errorf("Stake %d has no single coin: %s", p.ID, p.Coins) + } + return p.Coins[0], nil +} + +func (p Stake) ValidateBasic() error { + for _, coin := range p.Coins { + err := dextypes.ValidatePoolDenom(coin.Denom) + if err != nil { + return err + } + } + return nil +} diff --git a/x/incentives/types/stake.pb.go b/x/incentives/types/stake.pb.go new file mode 100644 index 000000000..d21e38a29 --- /dev/null +++ b/x/incentives/types/stake.pb.go @@ -0,0 +1,531 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/stake.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Stake records what coins are staked when by who for the purpose of +// calculating gauge reward distributions. +type Stake struct { + // ID is the "autoincrementing" id of the stake, assigned at creation. + ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + // owner is the account originating the stake. Only the owner can withdraw + // coins from the stake. + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` + // start_time is the time at which the coins in the lock were staked. + StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time,omitempty" yaml:"start_time"` + // coins are the tokens staked, and managed by the module account. + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + // start_dist_epoch is the dist epoch (defaulting to the day) at which the + // coins in the lock were staked. This is used by distribution logic to filter + // on stakes that have existed for longer than the distribution period (you + // can only qualify for today's rewards if you staked your LP tokens + // yesterday). We use int64 instead of uint64 to make testing easier. + StartDistEpoch int64 `protobuf:"varint,5,opt,name=start_dist_epoch,json=startDistEpoch,proto3" json:"start_dist_epoch,omitempty"` +} + +func (m *Stake) Reset() { *m = Stake{} } +func (m *Stake) String() string { return proto.CompactTextString(m) } +func (*Stake) ProtoMessage() {} +func (*Stake) Descriptor() ([]byte, []int) { + return fileDescriptor_0b048b82a83f5ea3, []int{0} +} +func (m *Stake) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Stake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Stake.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 *Stake) XXX_Merge(src proto.Message) { + xxx_messageInfo_Stake.Merge(m, src) +} +func (m *Stake) XXX_Size() int { + return m.Size() +} +func (m *Stake) XXX_DiscardUnknown() { + xxx_messageInfo_Stake.DiscardUnknown(m) +} + +var xxx_messageInfo_Stake proto.InternalMessageInfo + +func (m *Stake) GetID() uint64 { + if m != nil { + return m.ID + } + return 0 +} + +func (m *Stake) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *Stake) GetStartTime() time.Time { + if m != nil { + return m.StartTime + } + return time.Time{} +} + +func (m *Stake) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +func (m *Stake) GetStartDistEpoch() int64 { + if m != nil { + return m.StartDistEpoch + } + return 0 +} + +func init() { + proto.RegisterType((*Stake)(nil), "duality.incentives.Stake") +} + +func init() { proto.RegisterFile("duality/incentives/stake.proto", fileDescriptor_0b048b82a83f5ea3) } + +var fileDescriptor_0b048b82a83f5ea3 = []byte{ + // 397 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xb1, 0x6e, 0xdb, 0x30, + 0x10, 0x15, 0xe5, 0xa8, 0x40, 0x98, 0x22, 0x48, 0x85, 0x0c, 0xaa, 0x07, 0x4a, 0xd0, 0x50, 0x68, + 0x68, 0xc8, 0xc6, 0x45, 0x97, 0x8e, 0xaa, 0x3b, 0x04, 0xe8, 0xa4, 0x76, 0xea, 0x12, 0x50, 0x32, + 0xab, 0x10, 0x91, 0x44, 0xc1, 0xa4, 0xd3, 0xea, 0x2f, 0xfc, 0x1d, 0xfd, 0x88, 0xce, 0x1e, 0x3d, + 0x76, 0x92, 0x0b, 0x7b, 0xeb, 0xe8, 0x2f, 0x08, 0x48, 0xca, 0xb0, 0x27, 0x89, 0xef, 0xdd, 0xdd, + 0x7b, 0xef, 0x0e, 0xa2, 0xd9, 0x82, 0x56, 0x5c, 0x75, 0x84, 0x37, 0x05, 0x6b, 0x14, 0x7f, 0x62, + 0x92, 0x48, 0x45, 0x1f, 0x19, 0x6e, 0xe7, 0x42, 0x09, 0xdf, 0x1f, 0x78, 0x7c, 0xe4, 0xc7, 0xd7, + 0xa5, 0x28, 0x85, 0xa1, 0x89, 0xfe, 0xb3, 0x95, 0xe3, 0xb0, 0x14, 0xa2, 0xac, 0x18, 0x31, 0xaf, + 0x7c, 0xf1, 0x83, 0x28, 0x5e, 0x33, 0xa9, 0x68, 0xdd, 0x0e, 0x05, 0xa8, 0x10, 0xb2, 0x16, 0x92, + 0xe4, 0x54, 0x32, 0xf2, 0x74, 0x9b, 0x33, 0x45, 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0xe0, 0x53, + 0x2e, 0xd5, 0x67, 0x8d, 0xa6, 0x5f, 0x56, 0x5b, 0x04, 0xd6, 0x5b, 0x04, 0xfe, 0x6d, 0x11, 0x58, + 0xee, 0x90, 0xb3, 0xde, 0x21, 0xe7, 0xef, 0x0e, 0x39, 0xdf, 0x27, 0x27, 0xa2, 0xc3, 0x41, 0x6f, + 0x2a, 0x9a, 0xcb, 0xc3, 0x83, 0xfc, 0x3a, 0xbd, 0xbf, 0x31, 0x91, 0xbf, 0x30, 0x0b, 0x7b, 0xff, + 0x1c, 0x00, 0x00, 0xff, 0xff, 0x74, 0x5b, 0xcb, 0x93, 0x22, 0x02, 0x00, 0x00, +} + +func (m *Stake) 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 *Stake) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Stake) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StartDistEpoch != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.StartDistEpoch)) + i-- + dAtA[i] = 0x28 + } + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintStake(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x1a + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintStake(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if m.ID != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintStake(dAtA []byte, offset int, v uint64) int { + offset -= sovStake(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Stake) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovStake(uint64(m.ID)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) + n += 1 + l + sovStake(uint64(l)) + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + if m.StartDistEpoch != 0 { + n += 1 + sovStake(uint64(m.StartDistEpoch)) + } + return n +} + +func sovStake(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozStake(x uint64) (n int) { + return sovStake(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Stake) 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 ErrIntOverflowStake + } + 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: Stake: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Stake: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + 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 ErrInvalidLengthStake + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartDistEpoch", wireType) + } + m.StartDistEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartDistEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipStake(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, ErrIntOverflowStake + } + 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, ErrIntOverflowStake + } + 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, ErrIntOverflowStake + } + 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, ErrInvalidLengthStake + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupStake + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthStake + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthStake = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowStake = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupStake = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/incentives/types/stakes.go b/x/incentives/types/stakes.go new file mode 100644 index 000000000..e2b0240b7 --- /dev/null +++ b/x/incentives/types/stakes.go @@ -0,0 +1,16 @@ +package types + +import sdk "github.com/cosmos/cosmos-sdk/types" + +type Stakes []*Stake + +func (stakes Stakes) GetCoins() sdk.Coins { + coins := sdk.Coins{} + for _, stake := range stakes { + coinsToAdd := stake.GetCoins() + if !coinsToAdd.Empty() { + coins = coins.Add(coinsToAdd...) + } + } + return coins +} diff --git a/x/incentives/types/tx.pb.go b/x/incentives/types/tx.pb.go new file mode 100644 index 000000000..330a3cbce --- /dev/null +++ b/x/incentives/types/tx.pb.go @@ -0,0 +1,2314 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: duality/incentives/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/durationpb" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgCreateGauge creates a gague to distribute rewards to users +type MsgCreateGauge struct { + // is_perpetual shows if it's a perpetual or non-perpetual gauge + // Non-perpetual gauges distribute their tokens equally per epoch while the + // gauge is in the active period. Perpetual gauges distribute all their tokens + // at a single time and only distribute their tokens again once the gauge is + // refilled + IsPerpetual bool `protobuf:"varint,1,opt,name=is_perpetual,json=isPerpetual,proto3" json:"is_perpetual,omitempty"` + // owner is the address of gauge creator, should be the module authority + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` + // distribute_to show which lock the gauge should distribute to by time + // duration or by timestamp + DistributeTo QueryCondition `protobuf:"bytes,3,opt,name=distribute_to,json=distributeTo,proto3" json:"distribute_to"` + // coins are coin(s) to be distributed by the gauge + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + // start_time is the distribution start time + StartTime time.Time `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"timestamp"` + // num_epochs_paid_over is the number of epochs distribution will be completed + // over + NumEpochsPaidOver uint64 `protobuf:"varint,6,opt,name=num_epochs_paid_over,json=numEpochsPaidOver,proto3" json:"num_epochs_paid_over,omitempty"` + // pricing_tick is the price that liquidity within the gauge range will be priced at + PricingTick int64 `protobuf:"varint,7,opt,name=pricing_tick,json=pricingTick,proto3" json:"pricing_tick,omitempty"` +} + +func (m *MsgCreateGauge) Reset() { *m = MsgCreateGauge{} } +func (m *MsgCreateGauge) String() string { return proto.CompactTextString(m) } +func (*MsgCreateGauge) ProtoMessage() {} +func (*MsgCreateGauge) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{0} +} +func (m *MsgCreateGauge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateGauge.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 *MsgCreateGauge) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateGauge.Merge(m, src) +} +func (m *MsgCreateGauge) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateGauge) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateGauge.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateGauge proto.InternalMessageInfo + +func (m *MsgCreateGauge) GetIsPerpetual() bool { + if m != nil { + return m.IsPerpetual + } + return false +} + +func (m *MsgCreateGauge) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgCreateGauge) GetDistributeTo() QueryCondition { + if m != nil { + return m.DistributeTo + } + return QueryCondition{} +} + +func (m *MsgCreateGauge) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +func (m *MsgCreateGauge) GetStartTime() time.Time { + if m != nil { + return m.StartTime + } + return time.Time{} +} + +func (m *MsgCreateGauge) GetNumEpochsPaidOver() uint64 { + if m != nil { + return m.NumEpochsPaidOver + } + return 0 +} + +func (m *MsgCreateGauge) GetPricingTick() int64 { + if m != nil { + return m.PricingTick + } + return 0 +} + +type MsgCreateGaugeResponse struct { +} + +func (m *MsgCreateGaugeResponse) Reset() { *m = MsgCreateGaugeResponse{} } +func (m *MsgCreateGaugeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateGaugeResponse) ProtoMessage() {} +func (*MsgCreateGaugeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{1} +} +func (m *MsgCreateGaugeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateGaugeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateGaugeResponse.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 *MsgCreateGaugeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateGaugeResponse.Merge(m, src) +} +func (m *MsgCreateGaugeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateGaugeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateGaugeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateGaugeResponse proto.InternalMessageInfo + +// MsgAddToGauge adds coins to a previously created gauge +type MsgAddToGauge struct { + // owner is the gauge owner's address + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` + // gauge_id is the ID of gauge that rewards are getting added to + GaugeId uint64 `protobuf:"varint,2,opt,name=gauge_id,json=gaugeId,proto3" json:"gauge_id,omitempty"` + // rewards are the coin(s) to add to gauge + Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"` +} + +func (m *MsgAddToGauge) Reset() { *m = MsgAddToGauge{} } +func (m *MsgAddToGauge) String() string { return proto.CompactTextString(m) } +func (*MsgAddToGauge) ProtoMessage() {} +func (*MsgAddToGauge) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{2} +} +func (m *MsgAddToGauge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddToGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddToGauge.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 *MsgAddToGauge) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddToGauge.Merge(m, src) +} +func (m *MsgAddToGauge) XXX_Size() int { + return m.Size() +} +func (m *MsgAddToGauge) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddToGauge.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddToGauge proto.InternalMessageInfo + +func (m *MsgAddToGauge) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgAddToGauge) GetGaugeId() uint64 { + if m != nil { + return m.GaugeId + } + return 0 +} + +func (m *MsgAddToGauge) GetRewards() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Rewards + } + return nil +} + +type MsgAddToGaugeResponse struct { +} + +func (m *MsgAddToGaugeResponse) Reset() { *m = MsgAddToGaugeResponse{} } +func (m *MsgAddToGaugeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddToGaugeResponse) ProtoMessage() {} +func (*MsgAddToGaugeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{3} +} +func (m *MsgAddToGaugeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddToGaugeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddToGaugeResponse.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 *MsgAddToGaugeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddToGaugeResponse.Merge(m, src) +} +func (m *MsgAddToGaugeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAddToGaugeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddToGaugeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddToGaugeResponse proto.InternalMessageInfo + +type MsgStake struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` +} + +func (m *MsgStake) Reset() { *m = MsgStake{} } +func (m *MsgStake) String() string { return proto.CompactTextString(m) } +func (*MsgStake) ProtoMessage() {} +func (*MsgStake) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{4} +} +func (m *MsgStake) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgStake.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 *MsgStake) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgStake.Merge(m, src) +} +func (m *MsgStake) XXX_Size() int { + return m.Size() +} +func (m *MsgStake) XXX_DiscardUnknown() { + xxx_messageInfo_MsgStake.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgStake proto.InternalMessageInfo + +func (m *MsgStake) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgStake) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +type MsgStakeResponse struct { + ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` +} + +func (m *MsgStakeResponse) Reset() { *m = MsgStakeResponse{} } +func (m *MsgStakeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgStakeResponse) ProtoMessage() {} +func (*MsgStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{5} +} +func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgStakeResponse.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 *MsgStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgStakeResponse.Merge(m, src) +} +func (m *MsgStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgStakeResponse proto.InternalMessageInfo + +func (m *MsgStakeResponse) GetID() uint64 { + if m != nil { + return m.ID + } + return 0 +} + +type MsgUnstake struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` + // If unstake is left empty, this is interpreted as "unstake all" + Unstakes []*MsgUnstake_UnstakeDescriptor `protobuf:"bytes,2,rep,name=unstakes,proto3" json:"unstakes,omitempty"` +} + +func (m *MsgUnstake) Reset() { *m = MsgUnstake{} } +func (m *MsgUnstake) String() string { return proto.CompactTextString(m) } +func (*MsgUnstake) ProtoMessage() {} +func (*MsgUnstake) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{6} +} +func (m *MsgUnstake) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUnstake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUnstake.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 *MsgUnstake) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUnstake.Merge(m, src) +} +func (m *MsgUnstake) XXX_Size() int { + return m.Size() +} +func (m *MsgUnstake) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUnstake.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUnstake proto.InternalMessageInfo + +func (m *MsgUnstake) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *MsgUnstake) GetUnstakes() []*MsgUnstake_UnstakeDescriptor { + if m != nil { + return m.Unstakes + } + return nil +} + +type MsgUnstake_UnstakeDescriptor struct { + ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` +} + +func (m *MsgUnstake_UnstakeDescriptor) Reset() { *m = MsgUnstake_UnstakeDescriptor{} } +func (m *MsgUnstake_UnstakeDescriptor) String() string { return proto.CompactTextString(m) } +func (*MsgUnstake_UnstakeDescriptor) ProtoMessage() {} +func (*MsgUnstake_UnstakeDescriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{6, 0} +} +func (m *MsgUnstake_UnstakeDescriptor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUnstake_UnstakeDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUnstake_UnstakeDescriptor.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 *MsgUnstake_UnstakeDescriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUnstake_UnstakeDescriptor.Merge(m, src) +} +func (m *MsgUnstake_UnstakeDescriptor) XXX_Size() int { + return m.Size() +} +func (m *MsgUnstake_UnstakeDescriptor) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUnstake_UnstakeDescriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUnstake_UnstakeDescriptor proto.InternalMessageInfo + +func (m *MsgUnstake_UnstakeDescriptor) GetID() uint64 { + if m != nil { + return m.ID + } + return 0 +} + +func (m *MsgUnstake_UnstakeDescriptor) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +type MsgUnstakeResponse struct { +} + +func (m *MsgUnstakeResponse) Reset() { *m = MsgUnstakeResponse{} } +func (m *MsgUnstakeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUnstakeResponse) ProtoMessage() {} +func (*MsgUnstakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e2cc69741b48f3e9, []int{7} +} +func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUnstakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUnstakeResponse.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 *MsgUnstakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUnstakeResponse.Merge(m, src) +} +func (m *MsgUnstakeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUnstakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUnstakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUnstakeResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgCreateGauge)(nil), "duality.incentives.MsgCreateGauge") + proto.RegisterType((*MsgCreateGaugeResponse)(nil), "duality.incentives.MsgCreateGaugeResponse") + proto.RegisterType((*MsgAddToGauge)(nil), "duality.incentives.MsgAddToGauge") + proto.RegisterType((*MsgAddToGaugeResponse)(nil), "duality.incentives.MsgAddToGaugeResponse") + proto.RegisterType((*MsgStake)(nil), "duality.incentives.MsgStake") + proto.RegisterType((*MsgStakeResponse)(nil), "duality.incentives.MsgStakeResponse") + proto.RegisterType((*MsgUnstake)(nil), "duality.incentives.MsgUnstake") + proto.RegisterType((*MsgUnstake_UnstakeDescriptor)(nil), "duality.incentives.MsgUnstake.UnstakeDescriptor") + proto.RegisterType((*MsgUnstakeResponse)(nil), "duality.incentives.MsgUnstakeResponse") +} + +func init() { proto.RegisterFile("duality/incentives/tx.proto", fileDescriptor_e2cc69741b48f3e9) } + +var fileDescriptor_e2cc69741b48f3e9 = []byte{ + // 741 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcb, 0x4e, 0xdb, 0x40, + 0x14, 0x8d, 0xf3, 0x20, 0x61, 0x02, 0x08, 0x2c, 0xda, 0x1a, 0x17, 0x39, 0xc1, 0xaa, 0x50, 0x5a, + 0x09, 0x1b, 0xd2, 0x5d, 0x77, 0x0d, 0x54, 0x15, 0x2a, 0x51, 0xc1, 0x4d, 0x55, 0x09, 0xa9, 0xb2, + 0x26, 0xf6, 0xd4, 0x8c, 0x92, 0x78, 0xac, 0x99, 0x71, 0x20, 0x3f, 0xd0, 0x4d, 0x37, 0x6c, 0xfa, + 0x13, 0xfd, 0x83, 0xf6, 0x0b, 0x58, 0xb2, 0xec, 0x0a, 0x10, 0xfc, 0x01, 0x5f, 0x50, 0xf9, 0x99, + 0xf0, 0x0a, 0xad, 0xd4, 0x76, 0x65, 0x66, 0xce, 0xbd, 0x87, 0x73, 0xcf, 0xb9, 0x76, 0xc0, 0x63, + 0xdb, 0x87, 0x5d, 0xcc, 0x07, 0x3a, 0x76, 0x2d, 0xe4, 0x72, 0xdc, 0x47, 0x4c, 0xe7, 0x07, 0x9a, + 0x47, 0x09, 0x27, 0xa2, 0x18, 0x83, 0xda, 0x10, 0x94, 0xe7, 0x1d, 0xe2, 0x90, 0x10, 0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x79, 0x79, 0x3c, 0x9e, 0x50, 0x36, 0xb6, 0x8e, 0xce, 0x15, 0xe1, 0xf8, 0x5c, 0x11, + 0xce, 0xce, 0x15, 0xe1, 0xf0, 0x42, 0xc9, 0x1c, 0x5f, 0x28, 0x99, 0x9f, 0x17, 0x4a, 0x66, 0xb7, + 0x3e, 0x92, 0x61, 0xcc, 0xb5, 0xd2, 0x85, 0x6d, 0x96, 0x1c, 0xf4, 0x83, 0x2b, 0x3f, 0x85, 0x41, + 0xa6, 0xed, 0x89, 0xf0, 0x83, 0xf8, 0xfc, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x99, 0xd3, 0x5a, + 0xcd, 0x2d, 0x07, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +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. +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 { + // Create an incentive program + CreateGauge(ctx context.Context, in *MsgCreateGauge, opts ...grpc.CallOption) (*MsgCreateGaugeResponse, error) + // Add rewards to an existing incentives program + AddToGauge(ctx context.Context, in *MsgAddToGauge, opts ...grpc.CallOption) (*MsgAddToGaugeResponse, error) + // Deposit LP tokens to the module, qualifying for rewards from gauges + Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) + // Withdraw LP tokens from the module, forfeiting future rewards from gauges + Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) CreateGauge(ctx context.Context, in *MsgCreateGauge, opts ...grpc.CallOption) (*MsgCreateGaugeResponse, error) { + out := new(MsgCreateGaugeResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Msg/CreateGauge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddToGauge(ctx context.Context, in *MsgAddToGauge, opts ...grpc.CallOption) (*MsgAddToGaugeResponse, error) { + out := new(MsgAddToGaugeResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Msg/AddToGauge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) { + out := new(MsgStakeResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Msg/Stake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) { + out := new(MsgUnstakeResponse) + err := c.cc.Invoke(ctx, "/duality.incentives.Msg/Unstake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // Create an incentive program + CreateGauge(context.Context, *MsgCreateGauge) (*MsgCreateGaugeResponse, error) + // Add rewards to an existing incentives program + AddToGauge(context.Context, *MsgAddToGauge) (*MsgAddToGaugeResponse, error) + // Deposit LP tokens to the module, qualifying for rewards from gauges + Stake(context.Context, *MsgStake) (*MsgStakeResponse, error) + // Withdraw LP tokens from the module, forfeiting future rewards from gauges + Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) CreateGauge(ctx context.Context, req *MsgCreateGauge) (*MsgCreateGaugeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateGauge not implemented") +} +func (*UnimplementedMsgServer) AddToGauge(ctx context.Context, req *MsgAddToGauge) (*MsgAddToGaugeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddToGauge not implemented") +} +func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stake not implemented") +} +func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Unstake not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_CreateGauge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateGauge) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateGauge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Msg/CreateGauge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateGauge(ctx, req.(*MsgCreateGauge)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddToGauge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddToGauge) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddToGauge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Msg/AddToGauge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddToGauge(ctx, req.(*MsgAddToGauge)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Stake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgStake) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Stake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Msg/Stake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Stake(ctx, req.(*MsgStake)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Unstake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUnstake) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Unstake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/duality.incentives.Msg/Unstake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Unstake(ctx, req.(*MsgUnstake)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "duality.incentives.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateGauge", + Handler: _Msg_CreateGauge_Handler, + }, + { + MethodName: "AddToGauge", + Handler: _Msg_AddToGauge_Handler, + }, + { + MethodName: "Stake", + Handler: _Msg_Stake_Handler, + }, + { + MethodName: "Unstake", + Handler: _Msg_Unstake_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "duality/incentives/tx.proto", +} + +func (m *MsgCreateGauge) 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 *MsgCreateGauge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateGauge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PricingTick != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.PricingTick)) + i-- + dAtA[i] = 0x38 + } + if m.NumEpochsPaidOver != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NumEpochsPaidOver)) + i-- + dAtA[i] = 0x30 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintTx(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x2a + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + { + size, err := m.DistributeTo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if m.IsPerpetual { + i-- + if m.IsPerpetual { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateGaugeResponse) 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 *MsgCreateGaugeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateGaugeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAddToGauge) 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 *MsgAddToGauge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddToGauge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rewards) > 0 { + for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rewards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.GaugeId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.GaugeId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAddToGaugeResponse) 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 *MsgAddToGaugeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddToGaugeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgStake) 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 *MsgStake) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgStakeResponse) 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 *MsgStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ID != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgUnstake) 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 *MsgUnstake) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUnstake) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Unstakes) > 0 { + for iNdEx := len(m.Unstakes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Unstakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUnstake_UnstakeDescriptor) 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 *MsgUnstake_UnstakeDescriptor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUnstake_UnstakeDescriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.ID != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgUnstakeResponse) 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 *MsgUnstakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUnstakeResponse) 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 *MsgCreateGauge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IsPerpetual { + n += 2 + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.DistributeTo.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) + n += 1 + l + sovTx(uint64(l)) + if m.NumEpochsPaidOver != 0 { + n += 1 + sovTx(uint64(m.NumEpochsPaidOver)) + } + if m.PricingTick != 0 { + n += 1 + sovTx(uint64(m.PricingTick)) + } + return n +} + +func (m *MsgCreateGaugeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAddToGauge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.GaugeId != 0 { + n += 1 + sovTx(uint64(m.GaugeId)) + } + if len(m.Rewards) > 0 { + for _, e := range m.Rewards { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgAddToGaugeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgStake) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovTx(uint64(m.ID)) + } + return n +} + +func (m *MsgUnstake) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Unstakes) > 0 { + for _, e := range m.Unstakes { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUnstake_UnstakeDescriptor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ID != 0 { + n += 1 + sovTx(uint64(m.ID)) + } + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUnstakeResponse) 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 *MsgCreateGauge) 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: MsgCreateGauge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateGauge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPerpetual", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsPerpetual = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributeTo", 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.DistributeTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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 + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumEpochsPaidOver", wireType) + } + m.NumEpochsPaidOver = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumEpochsPaidOver |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PricingTick", wireType) + } + m.PricingTick = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PricingTick |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgCreateGaugeResponse) 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: MsgCreateGaugeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateGaugeResponse: 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 (m *MsgAddToGauge) 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: MsgAddToGauge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddToGauge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GaugeId", wireType) + } + m.GaugeId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GaugeId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rewards", 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 + } + m.Rewards = append(m.Rewards, types.Coin{}) + if err := m.Rewards[len(m.Rewards)-1].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 *MsgAddToGaugeResponse) 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: MsgAddToGaugeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddToGaugeResponse: 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 (m *MsgStake) 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: MsgStake: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgStake: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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 + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].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 *MsgStakeResponse) 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: MsgStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgUnstake) 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: MsgUnstake: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUnstake: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unstakes", 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 + } + m.Unstakes = append(m.Unstakes, &MsgUnstake_UnstakeDescriptor{}) + if err := m.Unstakes[len(m.Unstakes)-1].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 *MsgUnstake_UnstakeDescriptor) 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: UnstakeDescriptor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnstakeDescriptor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + m.ID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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 + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].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 *MsgUnstakeResponse) 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: MsgUnstakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUnstakeResponse: 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") +) From e12f6b62433a74d6e2b33afe23be54ace2a8d23a Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 10 Oct 2023 16:59:02 -0400 Subject: [PATCH 174/307] edit and recompile protos to match neutron namespace --- proto/neutron/dex/deposit_record.proto | 4 +- proto/neutron/dex/genesis.proto | 12 +- .../neutron/dex/limit_order_expiration.proto | 2 +- proto/neutron/dex/limit_order_tranche.proto | 6 +- .../dex/limit_order_tranche_user.proto | 6 +- proto/neutron/dex/pair_id.proto | 2 +- proto/neutron/dex/params.proto | 2 +- proto/neutron/dex/pool.proto | 4 +- proto/neutron/dex/pool_metadata.proto | 4 +- proto/neutron/dex/pool_reserves.proto | 4 +- proto/neutron/dex/query.proto | 56 +- proto/neutron/dex/tick_liquidity.proto | 6 +- proto/neutron/dex/trade_pair_id.proto | 2 +- proto/neutron/dex/tx.proto | 2 +- proto/neutron/epochs/genesis.proto | 2 +- proto/neutron/epochs/query.proto | 8 +- .../neutron/incentives/account_history.proto | 2 +- proto/neutron/incentives/gauge.proto | 6 +- proto/neutron/incentives/genesis.proto | 10 +- proto/neutron/incentives/params.proto | 2 +- proto/neutron/incentives/query.proto | 24 +- proto/neutron/incentives/stake.proto | 2 +- proto/neutron/incentives/tx.proto | 6 +- x/dex/types/deposit_record.pb.go | 56 +- x/dex/types/genesis.pb.go | 60 +-- x/dex/types/limit_order_expiration.pb.go | 26 +- x/dex/types/limit_order_tranche.pb.go | 92 ++-- x/dex/types/limit_order_tranche_user.pb.go | 70 +-- x/dex/types/pair_id.pb.go | 26 +- x/dex/types/params.pb.go | 26 +- x/dex/types/pool.pb.go | 26 +- x/dex/types/pool_metadata.pb.go | 26 +- x/dex/types/pool_reserves.pb.go | 82 +-- x/dex/types/query.pb.go | 504 +++++++++--------- x/dex/types/query.pb.gw.go | 38 +- x/dex/types/tick_liquidity.pb.go | 26 +- x/dex/types/trade_pair_id.pb.go | 26 +- x/dex/types/tx.pb.go | 276 +++++----- x/epochs/types/genesis.pb.go | 73 ++- x/epochs/types/query.pb.go | 93 ++-- x/epochs/types/query.pb.gw.go | 6 +- x/incentives/types/account_history.pb.go | 24 +- x/incentives/types/gauge.pb.go | 86 +-- x/incentives/types/genesis.pb.go | 52 +- x/incentives/types/params.pb.go | 26 +- x/incentives/types/query.pb.go | 246 ++++----- x/incentives/types/query.pb.gw.go | 18 +- x/incentives/types/stake.pb.go | 58 +- x/incentives/types/tx.pb.go | 156 +++--- 49 files changed, 1185 insertions(+), 1187 deletions(-) diff --git a/proto/neutron/dex/deposit_record.proto b/proto/neutron/dex/deposit_record.proto index a637d24b9..8504aa8b1 100644 --- a/proto/neutron/dex/deposit_record.proto +++ b/proto/neutron/dex/deposit_record.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "gogoproto/gogo.proto"; -import "duality/dex/pair_id.proto"; +import "neutron/dex/pair_id.proto"; message DepositRecord { PairID pairID = 1; diff --git a/proto/neutron/dex/genesis.proto b/proto/neutron/dex/genesis.proto index da8d5add4..596dc1c4a 100644 --- a/proto/neutron/dex/genesis.proto +++ b/proto/neutron/dex/genesis.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; import "gogoproto/gogo.proto"; -import "duality/dex/params.proto"; -import "duality/dex/limit_order_tranche_user.proto"; -import "duality/dex/limit_order_tranche.proto"; -import "duality/dex/tick_liquidity.proto"; -import "duality/dex/pool_metadata.proto"; +import "neutron/dex/params.proto"; +import "neutron/dex/limit_order_tranche_user.proto"; +import "neutron/dex/limit_order_tranche.proto"; +import "neutron/dex/tick_liquidity.proto"; +import "neutron/dex/pool_metadata.proto"; // this line is used by starport scaffolding # genesis/proto/import diff --git a/proto/neutron/dex/limit_order_expiration.proto b/proto/neutron/dex/limit_order_expiration.proto index 2c7f1af5c..030965cfb 100644 --- a/proto/neutron/dex/limit_order_expiration.proto +++ b/proto/neutron/dex/limit_order_expiration.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "google/protobuf/timestamp.proto"; diff --git a/proto/neutron/dex/limit_order_tranche.proto b/proto/neutron/dex/limit_order_tranche.proto index b2ffd2749..0f0efc644 100644 --- a/proto/neutron/dex/limit_order_tranche.proto +++ b/proto/neutron/dex/limit_order_tranche.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "google/protobuf/timestamp.proto"; -import "duality/dex/trade_pair_id.proto"; +import "neutron/dex/trade_pair_id.proto"; import "gogoproto/gogo.proto"; -import "duality/dex/pair_id.proto"; +import "neutron/dex/pair_id.proto"; message LimitOrderTrancheKey { TradePairID tradePairID = 1; diff --git a/proto/neutron/dex/limit_order_tranche_user.proto b/proto/neutron/dex/limit_order_tranche_user.proto index e316b08ce..56b1514d4 100644 --- a/proto/neutron/dex/limit_order_tranche_user.proto +++ b/proto/neutron/dex/limit_order_tranche_user.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "gogoproto/gogo.proto"; -import "duality/dex/trade_pair_id.proto"; -import "duality/dex/tx.proto"; +import "neutron/dex/trade_pair_id.proto"; +import "neutron/dex/tx.proto"; message LimitOrderTrancheUser { TradePairID tradePairID = 1; diff --git a/proto/neutron/dex/pair_id.proto b/proto/neutron/dex/pair_id.proto index 65a675ba3..e543ba7a1 100644 --- a/proto/neutron/dex/pair_id.proto +++ b/proto/neutron/dex/pair_id.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; diff --git a/proto/neutron/dex/params.proto b/proto/neutron/dex/params.proto index 4545c871d..70c65c293 100644 --- a/proto/neutron/dex/params.proto +++ b/proto/neutron/dex/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; import "gogoproto/gogo.proto"; diff --git a/proto/neutron/dex/pool.proto b/proto/neutron/dex/pool.proto index 56ec8d8b3..42bf9fac1 100644 --- a/proto/neutron/dex/pool.proto +++ b/proto/neutron/dex/pool.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "gogoproto/gogo.proto"; -import "duality/dex/pool_reserves.proto"; +import "neutron/dex/pool_reserves.proto"; // NOTE: This struct is never actually stored in the KV store. It is merely a convenience wrapper for holding both sides of a pool. diff --git a/proto/neutron/dex/pool_metadata.proto b/proto/neutron/dex/pool_metadata.proto index f54d42303..5d8d8c9f3 100644 --- a/proto/neutron/dex/pool_metadata.proto +++ b/proto/neutron/dex/pool_metadata.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; -import "duality/dex/pair_id.proto"; +import "neutron/dex/pair_id.proto"; message PoolMetadata { uint64 ID = 1; diff --git a/proto/neutron/dex/pool_reserves.proto b/proto/neutron/dex/pool_reserves.proto index 7bab4ab8e..1b75c64cf 100644 --- a/proto/neutron/dex/pool_reserves.proto +++ b/proto/neutron/dex/pool_reserves.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "gogoproto/gogo.proto"; -import "duality/dex/trade_pair_id.proto"; +import "neutron/dex/trade_pair_id.proto"; message PoolReservesKey { TradePairID tradePairID = 1; diff --git a/proto/neutron/dex/query.proto b/proto/neutron/dex/query.proto index 69a055ea8..9e29261b2 100644 --- a/proto/neutron/dex/query.proto +++ b/proto/neutron/dex/query.proto @@ -1,21 +1,21 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "duality/dex/params.proto"; -import "duality/dex/limit_order_tranche_user.proto"; -import "duality/dex/limit_order_tranche.proto"; -import "duality/dex/deposit_record.proto"; -import "duality/dex/tick_liquidity.proto"; -import "duality/dex/pool_reserves.proto"; -import "duality/dex/tx.proto"; +import "neutron/dex/params.proto"; +import "neutron/dex/limit_order_tranche_user.proto"; +import "neutron/dex/limit_order_tranche.proto"; +import "neutron/dex/deposit_record.proto"; +import "neutron/dex/tick_liquidity.proto"; +import "neutron/dex/pool_reserves.proto"; +import "neutron/dex/tx.proto"; import "cosmos/base/v1beta1/coin.proto"; import "google/protobuf/timestamp.proto"; -import "duality/dex/pool.proto"; -import "duality/dex/pool_metadata.proto"; +import "neutron/dex/pool.proto"; +import "neutron/dex/pool_metadata.proto"; // this line is used by starport scaffolding # 1 @@ -25,98 +25,98 @@ option go_package = "github.com/neutron-org/neutron/x/dex/types"; service Query { // Parameters queries the parameters of the module. rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/duality/dex/params"; + option (google.api.http).get = "/neutron/dex/params"; } // Queries a LimitOrderTrancheUser by index. rpc LimitOrderTrancheUser (QueryGetLimitOrderTrancheUserRequest) returns (QueryGetLimitOrderTrancheUserResponse) { - option (google.api.http).get = "/duality/dex/limit_order_tranche_user/{address}/{trancheKey}"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche_user/{address}/{trancheKey}"; } // Queries a list of LimitOrderTrancheMap items. rpc LimitOrderTrancheUserAll (QueryAllLimitOrderTrancheUserRequest) returns (QueryAllLimitOrderTrancheUserResponse) { - option (google.api.http).get = "/duality/dex/limit_order_tranche_user"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche_user"; } // Queries a list of LimitOrderTrancheUser items for a given address. rpc LimitOrderTrancheUserAllByAddress(QueryAllUserLimitOrdersRequest) returns (QueryAllUserLimitOrdersResponse) { - option (google.api.http).get = "/duality/dex/user/limit_orders/{address}"; + option (google.api.http).get = "/neutron/dex/user/limit_orders/{address}"; } // Queries a LimitOrderTranche by index. rpc LimitOrderTranche (QueryGetLimitOrderTrancheRequest) returns (QueryGetLimitOrderTrancheResponse) { - option (google.api.http).get = "/duality/dex/limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; } // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. rpc LimitOrderTrancheAll (QueryAllLimitOrderTrancheRequest) returns (QueryAllLimitOrderTrancheResponse) { - option (google.api.http).get = "/duality/dex/limit_order_tranche/{pairID}/{tokenIn}"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche/{pairID}/{tokenIn}"; } // Queries a list of UserDeposits items. rpc UserDepositsAll (QueryAllUserDepositsRequest) returns (QueryAllUserDepositsResponse) { - option (google.api.http).get = "/duality/dex/user/deposits/{address}"; + option (google.api.http).get = "/neutron/dex/user/deposits/{address}"; } // Queries a list of TickLiquidity items. rpc TickLiquidityAll (QueryAllTickLiquidityRequest) returns (QueryAllTickLiquidityResponse) { - option (google.api.http).get = "/duality/dex/tick_liquidity/{pairID}/{tokenIn}"; + option (google.api.http).get = "/neutron/dex/tick_liquidity/{pairID}/{tokenIn}"; } // Queries a InactiveLimitOrderTranche by index. rpc InactiveLimitOrderTranche (QueryGetInactiveLimitOrderTrancheRequest) returns (QueryGetInactiveLimitOrderTrancheResponse) { - option (google.api.http).get = "/duality/dex/filled_limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; + option (google.api.http).get = "/neutron/dex/filled_limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; } // Queries a list of InactiveLimitOrderTranche items. rpc InactiveLimitOrderTrancheAll (QueryAllInactiveLimitOrderTrancheRequest) returns (QueryAllInactiveLimitOrderTrancheResponse) { - option (google.api.http).get = "/duality/dex/filled_limit_order_tranche"; + option (google.api.http).get = "/neutron/dex/filled_limit_order_tranche"; } // Queries a list of PoolReserves items. rpc PoolReservesAll (QueryAllPoolReservesRequest) returns (QueryAllPoolReservesResponse) { - option (google.api.http).get = "/duality/dex/pool_reserves/{pairID}/{tokenIn}"; + option (google.api.http).get = "/neutron/dex/pool_reserves/{pairID}/{tokenIn}"; } // Queries a PoolReserve by index rpc PoolReserves (QueryGetPoolReservesRequest) returns (QueryGetPoolReservesResponse) { - option (google.api.http).get = "/duality/dex/pool_reserves/{pairID}/{tokenIn}/{tickIndex}/{fee}"; + option (google.api.http).get = "/neutron/dex/pool_reserves/{pairID}/{tokenIn}/{tickIndex}/{fee}"; } // Queries the simulated result of a multihop swap rpc EstimateMultiHopSwap (QueryEstimateMultiHopSwapRequest) returns (QueryEstimateMultiHopSwapResponse) { - option (google.api.http).get = "/duality/dex/estimate_multi_hop_swap"; + option (google.api.http).get = "/neutron/dex/estimate_multi_hop_swap"; } // Queries the simulated result of a multihop swap rpc EstimatePlaceLimitOrder (QueryEstimatePlaceLimitOrderRequest) returns (QueryEstimatePlaceLimitOrderResponse) { - option (google.api.http).get = "/duality/dex/estimate_place_limit_order"; + option (google.api.http).get = "/neutron/dex/estimate_place_limit_order"; } // Queries a pool by pair, tick and fee rpc Pool (QueryPoolRequest) returns (QueryPoolResponse) { - option (google.api.http).get = "/duality/dex/pool/{pairID}/{tickIndex}/{fee}"; + option (google.api.http).get = "/neutron/dex/pool/{pairID}/{tickIndex}/{fee}"; } // Queries a pool by ID rpc PoolByID (QueryPoolByIDRequest) returns (QueryPoolResponse) { - option (google.api.http).get = "/duality/dex/pool/{poolID}"; + option (google.api.http).get = "/neutron/dex/pool/{poolID}"; } // Queries a PoolMetadata by ID rpc PoolMetadata (QueryGetPoolMetadataRequest) returns (QueryGetPoolMetadataResponse) { - option (google.api.http).get = "/duality/dex/pool_metadata/{id}"; + option (google.api.http).get = "/neutron/dex/pool_metadata/{id}"; } // Queries a list of PoolMetadata items. rpc PoolMetadataAll (QueryAllPoolMetadataRequest) returns (QueryAllPoolMetadataResponse) { - option (google.api.http).get = "/duality/dex/pool_metadata"; + option (google.api.http).get = "/neutron/dex/pool_metadata"; } diff --git a/proto/neutron/dex/tick_liquidity.proto b/proto/neutron/dex/tick_liquidity.proto index 3fec914bc..c98840832 100644 --- a/proto/neutron/dex/tick_liquidity.proto +++ b/proto/neutron/dex/tick_liquidity.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "gogoproto/gogo.proto"; -import "duality/dex/limit_order_tranche.proto"; -import "duality/dex/pool_reserves.proto"; +import "neutron/dex/limit_order_tranche.proto"; +import "neutron/dex/pool_reserves.proto"; message TickLiquidity { diff --git a/proto/neutron/dex/trade_pair_id.proto b/proto/neutron/dex/trade_pair_id.proto index bd66e0e25..cb74f94a3 100644 --- a/proto/neutron/dex/trade_pair_id.proto +++ b/proto/neutron/dex/trade_pair_id.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index 8cf92c529..7fca574b3 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.dex; +package neutron.dex; // this line is used by starport scaffolding # proto/tx/import diff --git a/proto/neutron/epochs/genesis.proto b/proto/neutron/epochs/genesis.proto index 97bc08221..4a5c1ca4e 100644 --- a/proto/neutron/epochs/genesis.proto +++ b/proto/neutron/epochs/genesis.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.epochs; +package neutron.epochs; import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; diff --git a/proto/neutron/epochs/query.proto b/proto/neutron/epochs/query.proto index cb9a8c3c7..b615eff97 100644 --- a/proto/neutron/epochs/query.proto +++ b/proto/neutron/epochs/query.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package duality.epochs; +package neutron.epochs; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "duality/epochs/genesis.proto"; +import "neutron/epochs/genesis.proto"; option go_package = "github.com/neutron-org/neutron/x/epochs/types"; @@ -12,12 +12,12 @@ option go_package = "github.com/neutron-org/neutron/x/epochs/types"; service Query { // EpochInfos provide running epochInfos rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { - option (google.api.http).get = "/duality/epochs/epochs"; + option (google.api.http).get = "/neutron/epochs/epochs"; } // CurrentEpoch provide current epoch of specified identifier rpc CurrentEpoch(QueryCurrentEpochRequest) returns (QueryCurrentEpochResponse) { - option (google.api.http).get = "/duality/epochs/current_epoch"; + option (google.api.http).get = "/neutron/epochs/current_epoch"; } } diff --git a/proto/neutron/incentives/account_history.proto b/proto/neutron/incentives/account_history.proto index bd0866436..22188f152 100644 --- a/proto/neutron/incentives/account_history.proto +++ b/proto/neutron/incentives/account_history.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/neutron/incentives/gauge.proto b/proto/neutron/incentives/gauge.proto index bb5a4714e..5399bc761 100644 --- a/proto/neutron/incentives/gauge.proto +++ b/proto/neutron/incentives/gauge.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "duality/dex/pair_id.proto"; +import "neutron/dex/pair_id.proto"; option go_package = "github.com/neutron-org/neutron/x/incentives/types"; @@ -103,7 +103,7 @@ message Gauge { message QueryCondition { // pairID is the token pair which should be distributed to. - duality.dex.PairID pairID = 1; + neutron.dex.PairID pairID = 1; // start_tick is the inclusive lower bound on the location of LP tokens that // qualify for a gauge's distribution. diff --git a/proto/neutron/incentives/genesis.proto b/proto/neutron/incentives/genesis.proto index dfbf299a3..739095ca6 100644 --- a/proto/neutron/incentives/genesis.proto +++ b/proto/neutron/incentives/genesis.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; -import "duality/incentives/params.proto"; -import "duality/incentives/gauge.proto"; -import "duality/incentives/stake.proto"; -import "duality/incentives/account_history.proto"; +import "neutron/incentives/params.proto"; +import "neutron/incentives/gauge.proto"; +import "neutron/incentives/stake.proto"; +import "neutron/incentives/account_history.proto"; option go_package = "github.com/neutron-org/neutron/x/incentives/types"; diff --git a/proto/neutron/incentives/params.proto b/proto/neutron/incentives/params.proto index 25311f0f9..99a7693da 100644 --- a/proto/neutron/incentives/params.proto +++ b/proto/neutron/incentives/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; diff --git a/proto/neutron/incentives/query.proto b/proto/neutron/incentives/query.proto index 4cb3875a3..0ea1c02ee 100644 --- a/proto/neutron/incentives/query.proto +++ b/proto/neutron/incentives/query.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "duality/incentives/gauge.proto"; -import "duality/incentives/stake.proto"; -import "duality/incentives/params.proto"; +import "neutron/incentives/gauge.proto"; +import "neutron/incentives/stake.proto"; +import "neutron/incentives/params.proto"; option go_package = "github.com/neutron-org/neutron/x/incentives/types"; @@ -17,30 +17,30 @@ service Query { rpc GetModuleStatus(GetModuleStatusRequest) returns (GetModuleStatusResponse) { option (google.api.http).get = - "/duality/incentives/v1beta1/module_status"; + "/neutron/incentives/v1beta1/module_status"; } // GetGaugeByID returns a gauge by its ID rpc GetGaugeByID(GetGaugeByIDRequest) returns (GetGaugeByIDResponse) { option (google.api.http).get = - "/duality/incentives/v1beta1/gauges/{id}"; + "/neutron/incentives/v1beta1/gauges/{id}"; } // GetGauges returns gauges according to the filter provided rpc GetGauges(GetGaugesRequest) returns (GetGaugesResponse) { - option (google.api.http).get = "/duality/incentives/v1beta1/gauges"; + option (google.api.http).get = "/neutron/incentives/v1beta1/gauges"; } // GetStakeByID returns a stake by its ID rpc GetStakeByID(GetStakeByIDRequest) returns (GetStakeByIDResponse) { option (google.api.http).get = - "/duality/incentives/stakes/{stake_id}"; + "/neutron/incentives/stakes/{stake_id}"; } // GetStakes returns stakes by the filter provided. At least one filter must be provided. rpc GetStakes(GetStakesRequest) returns (GetStakesResponse) { option (google.api.http).get = - "/duality/incentives/stakes"; + "/neutron/incentives/stakes"; } // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified @@ -48,20 +48,20 @@ service Query { // for which they want to find the associated rewards. rpc GetFutureRewardEstimate(GetFutureRewardEstimateRequest) returns (GetFutureRewardEstimateResponse) { option (google.api.http).get = - "/duality/incentives/v1beta1/future_rewards_estimate/{owner}"; + "/neutron/incentives/v1beta1/future_rewards_estimate/{owner}"; } // GetAccountHistory returns the total accumulated rewards per denom for a given user. rpc GetAccountHistory(GetAccountHistoryRequest) returns (GetAccountHistoryResponse) { option (google.api.http).get = - "/duality/incentives/v1beta1/account_history/{account}"; + "/neutron/incentives/v1beta1/account_history/{account}"; } // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating // the prospective future rewards of staking. rpc GetGaugeQualifyingValue(GetGaugeQualifyingValueRequest) returns (GetGaugeQualifyingValueResponse) { option (google.api.http).get = - "/duality/incentives/v1beta1/get_gauge_qualifying_value/{id}"; + "/neutron/incentives/v1beta1/get_gauge_qualifying_value/{id}"; } } diff --git a/proto/neutron/incentives/stake.proto b/proto/neutron/incentives/stake.proto index 16e26fde2..690c4e9fa 100644 --- a/proto/neutron/incentives/stake.proto +++ b/proto/neutron/incentives/stake.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto/neutron/incentives/tx.proto b/proto/neutron/incentives/tx.proto index 50f38c892..8894133d9 100644 --- a/proto/neutron/incentives/tx.proto +++ b/proto/neutron/incentives/tx.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package duality.incentives; +package neutron.incentives; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "duality/incentives/gauge.proto"; -import "duality/incentives/stake.proto"; +import "neutron/incentives/gauge.proto"; +import "neutron/incentives/stake.proto"; import "google/protobuf/duration.proto"; option go_package = "github.com/neutron-org/neutron/x/incentives/types"; diff --git a/x/dex/types/deposit_record.pb.go b/x/dex/types/deposit_record.pb.go index 27084d1a0..d3d3e54c7 100644 --- a/x/dex/types/deposit_record.pb.go +++ b/x/dex/types/deposit_record.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/deposit_record.proto +// source: neutron/dex/deposit_record.proto package types @@ -37,7 +37,7 @@ func (m *DepositRecord) Reset() { *m = DepositRecord{} } func (m *DepositRecord) String() string { return proto.CompactTextString(m) } func (*DepositRecord) ProtoMessage() {} func (*DepositRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_9d7c76d21a5add72, []int{0} + return fileDescriptor_250413eadaebbf28, []int{0} } func (m *DepositRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -102,35 +102,35 @@ func (m *DepositRecord) GetFee() uint64 { } func init() { - proto.RegisterType((*DepositRecord)(nil), "duality.dex.DepositRecord") + proto.RegisterType((*DepositRecord)(nil), "neutron.dex.DepositRecord") } -func init() { proto.RegisterFile("duality/dex/deposit_record.proto", fileDescriptor_9d7c76d21a5add72) } +func init() { proto.RegisterFile("neutron/dex/deposit_record.proto", fileDescriptor_250413eadaebbf28) } -var fileDescriptor_9d7c76d21a5add72 = []byte{ - // 340 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x3f, 0x4f, 0xc2, 0x40, - 0x18, 0x87, 0x7b, 0x80, 0x24, 0x5e, 0xe3, 0x9f, 0x9c, 0x0e, 0x95, 0xa1, 0x6d, 0x18, 0x48, 0x13, - 0x42, 0x9b, 0xe8, 0xe6, 0x48, 0x70, 0x60, 0xd2, 0x14, 0x27, 0x17, 0x52, 0x7a, 0x27, 0x34, 0x94, - 0x5e, 0x73, 0x77, 0x0d, 0xe5, 0x5b, 0xf8, 0x8d, 0x5c, 0x19, 0x19, 0x8d, 0x43, 0x63, 0x60, 0x73, - 0xf4, 0x13, 0x98, 0x5e, 0x6b, 0x72, 0x32, 0xf5, 0xed, 0x73, 0xcf, 0xfd, 0xde, 0xdc, 0xfb, 0x42, - 0x1b, 0x67, 0x41, 0x1c, 0x89, 0x8d, 0x87, 0x49, 0xee, 0x61, 0x92, 0x52, 0x1e, 0x89, 0x29, 0x23, - 0x21, 0x65, 0xd8, 0x4d, 0x19, 0x15, 0x14, 0xe9, 0xb5, 0xe1, 0x62, 0x92, 0x77, 0xae, 0xe7, 0x74, - 0x4e, 0x25, 0xf7, 0xca, 0xaa, 0x52, 0x3a, 0x37, 0x6a, 0x48, 0x1a, 0x44, 0x6c, 0x1a, 0xd5, 0xb7, - 0xbb, 0xef, 0x0d, 0x78, 0x36, 0xaa, 0x62, 0x7d, 0x99, 0x8a, 0xfa, 0xb0, 0x5d, 0x2a, 0xe3, 0x91, - 0x01, 0x6c, 0xe0, 0xe8, 0xb7, 0x57, 0xae, 0xd2, 0xc0, 0x7d, 0x92, 0x47, 0x7e, 0xad, 0xa0, 0x0c, - 0xea, 0x7c, 0x11, 0x30, 0xc2, 0x1f, 0xd7, 0x09, 0xc1, 0x46, 0xc3, 0x06, 0xce, 0xe9, 0x70, 0xb2, - 0x2d, 0x2c, 0xed, 0xb3, 0xb0, 0x7a, 0xf3, 0x48, 0x2c, 0xb2, 0x99, 0x1b, 0xd2, 0x95, 0x17, 0x52, - 0xbe, 0xa2, 0xbc, 0xfe, 0x0c, 0x38, 0x5e, 0x7a, 0x62, 0x93, 0x12, 0xee, 0x8e, 0x13, 0xf1, 0x5d, - 0x58, 0xba, 0xa0, 0x22, 0x88, 0x27, 0x32, 0xe9, 0xa7, 0xb0, 0xd0, 0x26, 0x58, 0xc5, 0xf7, 0x5d, - 0x05, 0x76, 0x7d, 0xb5, 0x0f, 0x72, 0xe0, 0x45, 0x48, 0x12, 0x41, 0xd8, 0x73, 0x14, 0x2e, 0xc7, - 0x09, 0x26, 0xb9, 0xd1, 0xb4, 0x81, 0xd3, 0xf4, 0x8f, 0x31, 0xea, 0xc1, 0xf3, 0x98, 0xae, 0x55, - 0xb1, 0x25, 0xc5, 0x23, 0x5a, 0x7a, 0x59, 0x9a, 0xaa, 0xde, 0x49, 0xe5, 0xfd, 0xa7, 0xe8, 0x12, - 0x36, 0x5f, 0x09, 0x31, 0xda, 0x36, 0x70, 0x5a, 0x7e, 0x59, 0x0e, 0x1f, 0xb6, 0x7b, 0x13, 0xec, - 0xf6, 0x26, 0xf8, 0xda, 0x9b, 0xe0, 0xed, 0x60, 0x6a, 0xbb, 0x83, 0xa9, 0x7d, 0x1c, 0x4c, 0xed, - 0xa5, 0xaf, 0xbc, 0xbf, 0x9e, 0xe1, 0x20, 0x0e, 0x66, 0xfc, 0xef, 0xc7, 0xcb, 0xe5, 0x42, 0xe4, - 0x20, 0x66, 0x6d, 0xb9, 0x8f, 0xbb, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0x9c, 0x66, 0x85, - 0xf1, 0x01, 0x00, 0x00, +var fileDescriptor_250413eadaebbf28 = []byte{ + // 339 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x3f, 0x6f, 0xf2, 0x30, + 0x10, 0x87, 0x63, 0xe0, 0x45, 0x7a, 0x13, 0xf5, 0x8f, 0xdc, 0x0e, 0x29, 0x43, 0x12, 0x31, 0xa0, + 0xa8, 0x15, 0x89, 0xd4, 0x6e, 0x1d, 0x11, 0x0b, 0x53, 0xab, 0xd0, 0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+ 0x02, 0xbb, 0x81, 0xda, 0x07, 0xbb, 0xfa, 0x59, 0x44, 0x53, 0x41, 0xd9, 0x53, 0x12, 0xcd, 0x47, + 0x29, 0xa1, 0x85, 0xd9, 0x74, 0x90, 0xdb, 0x0c, 0x8e, 0x31, 0xee, 0xe9, 0xa7, 0x0b, 0x58, 0xa9, + 0x62, 0x4b, 0x8a, 0x47, 0xb4, 0xf2, 0xf2, 0x2c, 0x53, 0xbd, 0x7f, 0x07, 0xef, 0x2f, 0xc5, 0xe7, + 0x7a, 0xf3, 0x85, 0x52, 0xb3, 0xed, 0x20, 0xb7, 0x15, 0x54, 0xe5, 0x60, 0xb8, 0xd9, 0x59, 0x68, + 0xbb, 0xb3, 0xd0, 0xe7, 0xce, 0x42, 0xaf, 0x7b, 0x4b, 0xdb, 0xee, 0x2d, 0xed, 0x7d, 0x6f, 0x69, + 0xcf, 0xd7, 0xca, 0xff, 0xeb, 0x19, 0xf6, 0x81, 0xc5, 0xbf, 0xb5, 0x5f, 0xc8, 0x7d, 0xc8, 0x39, + 0x4c, 0xdb, 0x72, 0x1d, 0x77, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa4, 0xd7, 0xff, 0x85, 0xf0, + 0x01, 0x00, 0x00, } func (m *DepositRecord) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/genesis.pb.go b/x/dex/types/genesis.pb.go index d1469d8d6..49dff3899 100644 --- a/x/dex/types/genesis.pb.go +++ b/x/dex/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/genesis.proto +// source: neutron/dex/genesis.proto package types @@ -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_6ccf50bb6779a67a, []int{0} + return fileDescriptor_0c051a8a0d58cd8b, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,38 +109,38 @@ func (m *GenesisState) GetPoolCount() uint64 { } func init() { - proto.RegisterType((*GenesisState)(nil), "duality.dex.GenesisState") + proto.RegisterType((*GenesisState)(nil), "neutron.dex.GenesisState") } -func init() { proto.RegisterFile("duality/dex/genesis.proto", fileDescriptor_6ccf50bb6779a67a) } +func init() { proto.RegisterFile("neutron/dex/genesis.proto", fileDescriptor_0c051a8a0d58cd8b) } -var fileDescriptor_6ccf50bb6779a67a = []byte{ - // 392 bytes of a gzipped FileDescriptorProto +var fileDescriptor_0c051a8a0d58cd8b = []byte{ + // 391 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x4e, 0xea, 0x40, - 0x14, 0xc6, 0xdb, 0x0b, 0x97, 0xe4, 0x0e, 0x77, 0x71, 0x6f, 0x75, 0x51, 0x1a, 0x2d, 0x0d, 0x89, - 0x09, 0xd1, 0xd8, 0x46, 0x7c, 0x03, 0x8c, 0x71, 0x21, 0xfe, 0x09, 0xe2, 0xc6, 0x4d, 0x33, 0xb4, - 0x63, 0x19, 0x6d, 0x3b, 0xd8, 0x99, 0x1a, 0x78, 0x0b, 0x1f, 0x8b, 0x25, 0x4b, 0x57, 0xc6, 0xc0, - 0x8b, 0x98, 0xf9, 0x43, 0x6c, 0x25, 0xe2, 0xae, 0x3d, 0xe7, 0x77, 0xbe, 0xef, 0x7c, 0x27, 0x03, - 0x1a, 0x61, 0x0e, 0x63, 0xcc, 0xa6, 0x5e, 0x88, 0x26, 0x5e, 0x84, 0x52, 0x44, 0x31, 0x75, 0xc7, - 0x19, 0x61, 0xc4, 0xa8, 0xab, 0x96, 0x1b, 0xa2, 0x89, 0xb5, 0x1d, 0x91, 0x88, 0x88, 0xba, 0xc7, - 0xbf, 0x24, 0x62, 0x99, 0xc5, 0xe9, 0x31, 0xcc, 0x60,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0x8d, 0xf2, - 0x81, 0x0b, 0x90, 0x3a, 0xf3, 0xda, 0xa0, 0xb1, 0x03, 0xfe, 0xf0, 0xda, 0x09, 0xc9, 0x53, 0x66, - 0xd6, 0x1c, 0xbd, 0x5d, 0xed, 0x7f, 0x16, 0xba, 0xa7, 0xb3, 0x85, 0xad, 0xcf, 0x17, 0xb6, 0xfe, - 0xbe, 0xb0, 0xf5, 0x97, 0xa5, 0xad, 0xcd, 0x97, 0xb6, 0xf6, 0xba, 0xb4, 0xb5, 0xbb, 0x83, 0x08, - 0xb3, 0x51, 0x3e, 0x74, 0x03, 0x92, 0x78, 0xca, 0xf4, 0x30, 0x86, 0x43, 0xba, 0xfa, 0xf1, 0x26, - 0xf2, 0x25, 0x4d, 0xc7, 0x88, 0x0e, 0x6b, 0xe2, 0x81, 0x1c, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, - 0xb6, 0x99, 0x5f, 0x53, 0x10, 0x03, 0x00, 0x00, + 0x18, 0xc5, 0xdb, 0x0b, 0x97, 0xe4, 0x0e, 0x77, 0x71, 0x6f, 0x75, 0x51, 0x1a, 0x2d, 0x0d, 0x89, + 0x09, 0x21, 0xb1, 0x8d, 0xf8, 0x06, 0x68, 0xe2, 0x42, 0xfc, 0x13, 0xc4, 0x8d, 0x9b, 0x66, 0x68, + 0xc7, 0x32, 0xda, 0x76, 0x70, 0xfa, 0xd5, 0xc0, 0x5b, 0xf8, 0x58, 0x2c, 0x59, 0xba, 0x32, 0x06, + 0x5e, 0xc4, 0x74, 0x3a, 0xc4, 0x56, 0x22, 0xee, 0x26, 0xf3, 0xfd, 0xce, 0x39, 0x73, 0xbe, 0x0c, + 0x6a, 0xc4, 0x24, 0x05, 0xce, 0x62, 0xc7, 0x27, 0x53, 0x27, 0x20, 0x31, 0x49, 0x68, 0x62, 0x4f, + 0x38, 0x03, 0xa6, 0xd5, 0xe5, 0xc8, 0xf6, 0xc9, 0xd4, 0xd8, 0x0d, 0x58, 0xc0, 0xc4, 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xd9, 0xfa, 0x2f, 0xe4, 0xf6, 0x85, 0xfd, 0x6f, 0x61, 0xdf, 0x28, 0x2f, + 0xb8, 0x00, 0xc9, 0x35, 0x6f, 0x08, 0xb5, 0x3d, 0xf4, 0x27, 0xbb, 0x3b, 0x61, 0x69, 0x0c, 0x7a, + 0xcd, 0x52, 0xdb, 0xd5, 0xc1, 0xe7, 0x45, 0xef, 0x74, 0xbe, 0x34, 0xd5, 0xc5, 0xd2, 0x54, 0xdf, + 0x97, 0xa6, 0xfa, 0xb2, 0x32, 0x95, 0xc5, 0xca, 0x54, 0x5e, 0x57, 0xa6, 0x72, 0xd7, 0x09, 0x28, + 0x8c, 0xd3, 0x91, 0xed, 0xb1, 0xc8, 0x91, 0xa1, 0x87, 0x8c, 0x07, 0xeb, 0xb3, 0x33, 0xcd, 0x3f, + 0xd2, 0x6c, 0x42, 0x92, 0x51, 0x4d, 0xfc, 0x8f, 0xe3, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, + 0x44, 0x46, 0xac, 0x0f, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_expiration.pb.go b/x/dex/types/limit_order_expiration.pb.go index 06347e92e..0e9664f02 100644 --- a/x/dex/types/limit_order_expiration.pb.go +++ b/x/dex/types/limit_order_expiration.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/limit_order_expiration.proto +// source: neutron/dex/limit_order_expiration.proto package types @@ -37,7 +37,7 @@ func (m *LimitOrderExpiration) Reset() { *m = LimitOrderExpiration{} } func (m *LimitOrderExpiration) String() string { return proto.CompactTextString(m) } func (*LimitOrderExpiration) ProtoMessage() {} func (*LimitOrderExpiration) Descriptor() ([]byte, []int) { - return fileDescriptor_8874a00326735ee6, []int{0} + return fileDescriptor_61264397cad6ae82, []int{0} } func (m *LimitOrderExpiration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,17 +81,17 @@ func (m *LimitOrderExpiration) GetTrancheRef() []byte { } func init() { - proto.RegisterType((*LimitOrderExpiration)(nil), "duality.dex.LimitOrderExpiration") + proto.RegisterType((*LimitOrderExpiration)(nil), "neutron.dex.LimitOrderExpiration") } func init() { - proto.RegisterFile("duality/dex/limit_order_expiration.proto", fileDescriptor_8874a00326735ee6) + proto.RegisterFile("neutron/dex/limit_order_expiration.proto", fileDescriptor_61264397cad6ae82) } -var fileDescriptor_8874a00326735ee6 = []byte{ - // 256 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0xcf, 0xc9, 0xcc, 0xcd, 0x2c, 0x89, 0xcf, 0x2f, +var fileDescriptor_61264397cad6ae82 = []byte{ + // 255 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0xcf, 0xc9, 0xcc, 0xcd, 0x2c, 0x89, 0xcf, 0x2f, 0x4a, 0x49, 0x2d, 0x8a, 0x4f, 0xad, 0x28, 0xc8, 0x2c, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xaa, 0xd4, 0x4b, 0x49, 0xad, 0x90, 0x92, 0x4f, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x4b, 0x25, 0x95, 0xa6, 0xe9, 0x97, 0x64, 0xe6, 0xa6, 0x16, @@ -101,11 +101,11 @@ var fileDescriptor_8874a00326735ee6 = []byte{ 0xb8, 0x8d, 0xa4,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0xc5, 0x49, 0x6c, 0x60, 0x37, + 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xd9, 0xbe, 0xa6, 0x43, 0x01, 0x00, 0x00, } func (m *LimitOrderExpiration) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_tranche.pb.go b/x/dex/types/limit_order_tranche.pb.go index 3984c5926..272946670 100644 --- a/x/dex/types/limit_order_tranche.pb.go +++ b/x/dex/types/limit_order_tranche.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/limit_order_tranche.proto +// source: neutron/dex/limit_order_tranche.proto package types @@ -9,7 +9,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + github_com_neutron_org_neutron_utils_math "github.com/neutron-org/neutron/utils/math" _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" @@ -39,7 +39,7 @@ func (m *LimitOrderTrancheKey) Reset() { *m = LimitOrderTrancheKey{} } func (m *LimitOrderTrancheKey) String() string { return proto.CompactTextString(m) } func (*LimitOrderTrancheKey) ProtoMessage() {} func (*LimitOrderTrancheKey) Descriptor() ([]byte, []int) { - return fileDescriptor_49e73267811ad014, []int{0} + return fileDescriptor_8c2ded67c80756d1, []int{0} } func (m *LimitOrderTrancheKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -98,15 +98,15 @@ type LimitOrderTranche struct { // JIT orders also use goodTilDate to handle deletion but represent a special case // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live // Order deletion still functions the same and the orders will be deleted at the end of the block - ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` - PriceTakerToMaker github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,7,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` + ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` + PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,7,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` } func (m *LimitOrderTranche) Reset() { *m = LimitOrderTranche{} } func (m *LimitOrderTranche) String() string { return proto.CompactTextString(m) } func (*LimitOrderTranche) ProtoMessage() {} func (*LimitOrderTranche) Descriptor() ([]byte, []int) { - return fileDescriptor_49e73267811ad014, []int{1} + return fileDescriptor_8c2ded67c80756d1, []int{1} } func (m *LimitOrderTranche) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -150,51 +150,51 @@ func (m *LimitOrderTranche) GetExpirationTime() *time.Time { } func init() { - proto.RegisterType((*LimitOrderTrancheKey)(nil), "duality.dex.LimitOrderTrancheKey") - proto.RegisterType((*LimitOrderTranche)(nil), "duality.dex.LimitOrderTranche") + proto.RegisterType((*LimitOrderTrancheKey)(nil), "neutron.dex.LimitOrderTrancheKey") + proto.RegisterType((*LimitOrderTranche)(nil), "neutron.dex.LimitOrderTranche") } func init() { - proto.RegisterFile("duality/dex/limit_order_tranche.proto", fileDescriptor_49e73267811ad014) + proto.RegisterFile("neutron/dex/limit_order_tranche.proto", fileDescriptor_8c2ded67c80756d1) } -var fileDescriptor_49e73267811ad014 = []byte{ - // 560 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x4f, 0x8b, 0xd3, 0x4e, - 0x18, 0xc7, 0x3b, 0xbf, 0xfe, 0x5c, 0xdd, 0xa9, 0x28, 0x1b, 0x56, 0xc9, 0xf6, 0x90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0x54, 0x3e, 0xae, 0x20, 0x4a, 0x53, - 0xb9, 0x25, 0x21, 0xde, 0xde, 0x18, 0x62, 0x5b, 0x68, 0x8b, 0xc3, 0xa9, 0x70, 0x94, 0x86, 0x71, - 0x8e, 0xef, 0xc1, 0x24, 0xa6, 0x9c, 0x08, 0xca, 0x22, 0x87, 0x86, 0xa0, 0xee, 0xc9, 0x47, 0xd7, - 0x34, 0xf3, 0xb5, 0x35, 0x57, 0x6b, 0x6b, 0x3a, 0xab, 0xb5, 0xed, 0xdc, 0x99, 0xa5, 0x3a, 0xba, - 0xfc, 0xae, 0x23, 0x7b, 0x2b, 0x57, 0xf9, 0x8c, 0xf0, 0x41, 0xcc, 0xa9, 0x0b, 0x1b, 0x0b, 0x72, - 0x5b, 0xf6, 0xe5, 0x17, 0x7d, 0x9d, 0x94, 0xfa, 0x2a, 0x1e, 0xf6, 0x71, 0x40, 0x06, 0xc9, 0xea, - 0xc3, 0x1a, 0x0b, 0x1a, 0x24, 0x56, 0x48, 0xc4, 0xc8, 0xbc, 0xe0, 0xe0, 0x76, 0xc1, 0xbd, 0x4e, - 0xf5, 0xaa, 0xec, 0x32, 0xd5, 0xd5, 0xbc, 0xcb, 0x8a, 0xcb, 0xb0, 0xab, 0xe1, 0x9d, 0xe7, 0xb3, - 0xb9, 0x86, 0xae, 0xe6, 0x1a, 0xfa, 0x31, 0xd7, 0xd0, 0xe5, 0x42, 0xab, 0x5d, 0x2d, 0xb4, 0xda, - 0xd7, 0x85, 0x56, 0x7b, 0xf3, 0xf4, 0x6f, 0x44, 0x93, 0xfc, 0xd7, 0x94, 0x8d, 0x7c, 0xb0, 0x27, - 0x07, 0x72, 0xfa, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x12, 0x2d, 0x9d, 0x0b, 0x05, 0x00, 0x00, +var fileDescriptor_8c2ded67c80756d1 = []byte{ + // 557 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 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, 0x5c, 0x19, 0xe8, 0xae, 0x34, 0x72, 0xd8, 0x10, 0xc2, 0x6e, 0xb8, 0x4c, 0xf4, + 0x87, 0x19, 0xca, 0x96, 0xbd, 0x61, 0x6f, 0x17, 0x54, 0x3e, 0xaf, 0x20, 0x0a, 0x53, 0xb9, 0x25, + 0x21, 0xde, 0x5d, 0x19, 0x62, 0xdb, 0x68, 0x8b, 0xc3, 0x29, 0x71, 0x14, 0x86, 0x71, 0x8a, 0xef, + 0xc1, 0x24, 0xa2, 0x9c, 0x08, 0xca, 0x42, 0x87, 0x06, 0xa0, 0xd6, 0xe4, 0xa3, 0x6b, 0x98, 0xd9, + 0xda, 0x9a, 0xab, 0xb5, 0x35, 0x9d, 0xd5, 0xda, 0xb6, 0xef, 0xcc, 0x12, 0x1d, 0x9d, 0xff, 0xd4, + 0x91, 0xbd, 0x95, 0xab, 0x7c, 0x45, 0x78, 0x3f, 0xe2, 0xd4, 0x85, 0x8d, 0x05, 0xb9, 0x2d, 0xfb, + 0xfa, 0x90, 0xf7, 0xf5, 0xac, 0xd0, 0x57, 0xfe, 0xb0, 0x8f, 0x18, 0xf7, 0x57, 0x67, 0x6b, 0x2c, + 0xe8, 0x28, 0xb6, 0x02, 0x22, 0x06, 0xe6, 0x19, 0x07, 0xb7, 0x03, 0xee, 0x65, 0xa2, 0x97, 0x5d, + 0x97, 0x89, 0xae, 0x66, 0x4d, 0x96, 0x42, 0x86, 0x5d, 0x96, 0xb7, 0x3b, 0xb3, 0xb9, 0x86, 0x2e, + 0xe6, 0x1a, 0xfa, 0x35, 0xd7, 0xd0, 0xf9, 0x42, 0xab, 0x5c, 0x2c, 0xb4, 0xca, 0xf7, 0x85, 0x56, + 0x79, 0xfb, 0xf4, 0x3f, 0x40, 0x93, 0xec, 0xc7, 0x94, 0x0e, 0xbc, 0x5f, 0x93, 0xe3, 0x38, 0xfe, + 0x13, 0x00, 0x00, 0xff, 0xff, 0x2a, 0xca, 0x7c, 0xe1, 0x09, 0x05, 0x00, 0x00, } func (m *LimitOrderTrancheKey) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_tranche_user.pb.go b/x/dex/types/limit_order_tranche_user.pb.go index 51228fda7..4920c8518 100644 --- a/x/dex/types/limit_order_tranche_user.pb.go +++ b/x/dex/types/limit_order_tranche_user.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/limit_order_tranche_user.proto +// source: neutron/dex/limit_order_tranche_user.proto package types @@ -32,14 +32,14 @@ type LimitOrderTrancheUser struct { SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"sharesOwned"` SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesWithdrawn" yaml:"sharesWithdrawn"` SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesCancelled" yaml:"sharesCancelled"` - OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=duality.dex.LimitOrderType" json:"orderType,omitempty"` + OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"orderType,omitempty"` } func (m *LimitOrderTrancheUser) Reset() { *m = LimitOrderTrancheUser{} } func (m *LimitOrderTrancheUser) String() string { return proto.CompactTextString(m) } func (*LimitOrderTrancheUser) ProtoMessage() {} func (*LimitOrderTrancheUser) Descriptor() ([]byte, []int) { - return fileDescriptor_896ef6766d8ff3c4, []int{0} + return fileDescriptor_67e5ffbd487ea05f, []int{0} } func (m *LimitOrderTrancheUser) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -104,43 +104,43 @@ func (m *LimitOrderTrancheUser) GetOrderType() LimitOrderType { } func init() { - proto.RegisterType((*LimitOrderTrancheUser)(nil), "duality.dex.LimitOrderTrancheUser") + proto.RegisterType((*LimitOrderTrancheUser)(nil), "neutron.dex.LimitOrderTrancheUser") } func init() { - proto.RegisterFile("duality/dex/limit_order_tranche_user.proto", fileDescriptor_896ef6766d8ff3c4) + proto.RegisterFile("neutron/dex/limit_order_tranche_user.proto", fileDescriptor_67e5ffbd487ea05f) } -var fileDescriptor_896ef6766d8ff3c4 = []byte{ - // 445 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xd4, 0x40, - 0x1c, 0xdd, 0xb1, 0xb6, 0xb5, 0xb3, 0xa0, 0x30, 0xb4, 0x32, 0x54, 0x48, 0x96, 0x3d, 0xc8, 0xa2, - 0x34, 0x81, 0xea, 0xc5, 0x1e, 0xab, 0x1e, 0x16, 0x95, 0x4a, 0x8c, 0x08, 0x7a, 0x08, 0xb3, 0x99, - 0x1f, 0xbb, 0xc3, 0x66, 0x33, 0x61, 0x66, 0x96, 0x26, 0x1f, 0xa0, 0x77, 0x3f, 0x56, 0x8f, 0x3d, - 0x8a, 0x87, 0x20, 0xbb, 0x37, 0x8f, 0xfd, 0x04, 0x92, 0x3f, 0x4d, 0xa7, 0x8b, 0x17, 0xf1, 0x94, - 0xfc, 0xde, 0x7b, 0xbc, 0xf7, 0x06, 0x1e, 0x7e, 0xc6, 0x97, 0x2c, 0x11, 0xa6, 0xf0, 0x39, 0xe4, - 0x7e, 0x22, 0x16, 0xc2, 0x44, 0x52, 0x71, 0x50, 0x91, 0x51, 0x2c, 0x8d, 0x67, 0x10, 0x2d, 0x35, - 0x28, 0x2f, 0x53, 0xd2, 0x48, 0xd2, 0x6f, 0xb5, 0x1e, 0x87, 0xfc, 0x70, 0x7f, 0x2a, 0xa7, 0xb2, - 0xc6, 0xfd, 0xea,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0x9a, 0xfb, 0x8b, 0x30, 0x33, 0xae, 0xd8, 0x79, - 0x4a, 0x77, 0xea, 0xec, 0x6f, 0xff, 0x9c, 0xbd, 0x69, 0x74, 0x5d, 0xba, 0x8f, 0xed, 0xfc, 0x8e, - 0x18, 0x06, 0x9b, 0x52, 0xab, 0xc7, 0x6b, 0x96, 0xc6, 0x90, 0x24, 0xc0, 0xe9, 0xee, 0xff, 0xf5, - 0xe8, 0x8c, 0x36, 0x7b, 0x74, 0x44, 0xd7, 0xa3, 0x43, 0xc8, 0x2b, 0xbc, 0x57, 0x4f, 0x38, 0x2c, - 0x32, 0xa0, 0x0f, 0x06, 0x68, 0xf4, 0xf0, 0xf8, 0xc9, 0x9d, 0xc1, 0x58, 0x4b, 0x2b, 0x32, 0x08, - 0x6e, 0xd5, 0xa7, 0x6f, 0x2f, 0x57, 0x0e, 0xba, 0x5a, 0x39, 0xe8, 0xd7, 0xca, 0x41, 0xdf, 0xd7, - 0x4e, 0xef, 0x6a, 0xed, 0xf4, 0x7e, 0xac, 0x9d, 0xde, 0xd7, 0xe7, 0x56, 0xf5, 0xd6, 0xeb, 0x28, - 0x61, 0x13, 0x7d, 0x73, 0xf8, 0x79, 0xb3, 0xe8, 0xea, 0x0d, 0x93, 0x9d, 0x7a, 0xd5, 0x2f, 0xfe, - 0x04, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x69, 0xfa, 0xa6, 0x5d, 0x03, 0x00, 0x00, +var fileDescriptor_67e5ffbd487ea05f = []byte{ + // 443 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xdb, 0x30, + 0x1c, 0x8d, 0xd6, 0xb5, 0x5d, 0x15, 0xd8, 0x40, 0xb4, 0x43, 0x74, 0x60, 0x87, 0x1c, 0x46, 0x28, + 0xd4, 0x86, 0x6e, 0x97, 0xf5, 0xd8, 0xf5, 0x12, 0xb6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7e, 0xac, 0x9c, 0xde, 0xd7, 0x23, 0xab, 0x7a, 0xeb, 0x75, 0x2c, 0xd5, + 0xe4, 0xfe, 0xee, 0xe7, 0xcd, 0xa0, 0xab, 0x2f, 0x5c, 0xee, 0xd4, 0xa3, 0x7e, 0xf5, 0x27, 0x00, + 0x00, 0xff, 0xff, 0xe5, 0x2a, 0x9f, 0x17, 0x5c, 0x03, 0x00, 0x00, } func (m *LimitOrderTrancheUser) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/pair_id.pb.go b/x/dex/types/pair_id.pb.go index 4b65c4207..7ddce416e 100644 --- a/x/dex/types/pair_id.pb.go +++ b/x/dex/types/pair_id.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/pair_id.proto +// source: neutron/dex/pair_id.proto package types @@ -31,7 +31,7 @@ func (m *PairID) Reset() { *m = PairID{} } func (m *PairID) String() string { return proto.CompactTextString(m) } func (*PairID) ProtoMessage() {} func (*PairID) Descriptor() ([]byte, []int) { - return fileDescriptor_1919813da3dc14c8, []int{0} + return fileDescriptor_7bd5bf8f218c5bfa, []int{0} } func (m *PairID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -75,23 +75,23 @@ func (m *PairID) GetToken1() string { } func init() { - proto.RegisterType((*PairID)(nil), "duality.dex.PairID") + proto.RegisterType((*PairID)(nil), "neutron.dex.PairID") } -func init() { proto.RegisterFile("duality/dex/pair_id.proto", fileDescriptor_1919813da3dc14c8) } +func init() { proto.RegisterFile("neutron/dex/pair_id.proto", fileDescriptor_7bd5bf8f218c5bfa) } -var fileDescriptor_1919813da3dc14c8 = []byte{ - // 159 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0xcc, 0x2c, 0x8a, 0xcf, 0x4c, 0xd1, +var fileDescriptor_7bd5bf8f218c5bfa = []byte{ + // 158 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0xcc, 0x2c, 0x8a, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x4a, 0xe9, 0xa5, 0xa4, 0x56, 0x28, 0x59, 0x70, 0xb1, 0x05, 0x24, 0x66, 0x16, 0x79, 0xba, 0x08, 0x89, 0x71, 0xb1, 0x95, 0xe4, 0x67, 0xa7, 0xe6, 0x19, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x41, 0x79, 0x70, 0x71, 0x43, 0x09, 0x26, 0x24, - 0x71, 0x43, 0x27, 0xd7, 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, 0x4e, - 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0xda, 0xa5, 0x9b, 0x93, 0x98, - 0x54, 0x0c, 0xe3, 0xe8, 0x57, 0x80, 0x5d, 0x55, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, - 0x94, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x72, 0x4e, 0xb2, 0x90, 0xb1, 0x00, 0x00, 0x00, + 0x71, 0x43, 0x27, 0x97, 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, 0x4a, + 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0xda, 0xa5, 0x9b, 0x5f, 0x94, + 0x0e, 0x63, 0xeb, 0x57, 0x80, 0x1d, 0x55, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0x93, + 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x69, 0x6e, 0x73, 0x3d, 0xb0, 0x00, 0x00, 0x00, } func (m *PairID) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/params.pb.go b/x/dex/types/params.pb.go index 968ad5740..8ec299924 100644 --- a/x/dex/types/params.pb.go +++ b/x/dex/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/params.proto +// source: neutron/dex/params.proto package types @@ -31,7 +31,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_0d9808a9c3c4a621, []int{0} + return fileDescriptor_84a6bffcfc21009c, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -68,24 +68,24 @@ func (m *Params) GetFeeTiers() []uint64 { } func init() { - proto.RegisterType((*Params)(nil), "duality.dex.Params") + proto.RegisterType((*Params)(nil), "neutron.dex.Params") } -func init() { proto.RegisterFile("duality/dex/params.proto", fileDescriptor_0d9808a9c3c4a621) } +func init() { proto.RegisterFile("neutron/dex/params.proto", fileDescriptor_84a6bffcfc21009c) } -var fileDescriptor_0d9808a9c3c4a621 = []byte{ - // 174 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, +var fileDescriptor_84a6bffcfc21009c = []byte{ + // 173 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xca, 0xe8, 0xa5, 0xa4, 0x56, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xc5, 0xf5, 0x41, 0x2c, 0x88, 0x12, 0x25, 0x6d, 0x2e, 0xb6, 0x00, 0xb0, 0x16, 0x21, 0x69, 0x2e, 0xce, 0xb4, 0xd4, 0xd4, 0xf8, 0x92, 0xcc, 0xd4, 0xa2, 0x62, 0x09, 0x46, 0x05, 0x66, 0x0d, 0x96, 0x20, 0x8e, 0xb4, 0xd4, 0xd4, 0x10, 0x10, 0xdf, 0x8a, 0x65, 0xc6, 0x02, 0x79, - 0x06, 0x27, 0xd7, 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, 0x4e, 0xcf, - 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0x5a, 0xaa, 0x9b, 0x93, 0x98, 0x54, - 0x0c, 0xe3, 0xe8, 0x57, 0x80, 0x5d, 0x57, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xb6, 0xda, - 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x16, 0x5d, 0xd1, 0xc7, 0xb9, 0x00, 0x00, 0x00, + 0x06, 0x27, 0x97, 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, 0x4a, 0xcf, + 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0x5a, 0xaa, 0x9b, 0x5f, 0x94, 0x0e, + 0x63, 0xeb, 0x57, 0x80, 0x1d, 0x57, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xb6, 0xd9, 0x18, + 0x10, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x44, 0xce, 0x46, 0xb8, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/pool.pb.go b/x/dex/types/pool.pb.go index bfacf593e..7824ad7d1 100644 --- a/x/dex/types/pool.pb.go +++ b/x/dex/types/pool.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/pool.proto +// source: neutron/dex/pool.proto package types @@ -33,7 +33,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_458bee7d4cc3fc09, []int{0} + return fileDescriptor_6ad7a9165eac1fde, []int{0} } func (m *Pool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -84,15 +84,15 @@ func (m *Pool) GetUpperTick1() *PoolReserves { } func init() { - proto.RegisterType((*Pool)(nil), "duality.dex.Pool") + proto.RegisterType((*Pool)(nil), "neutron.dex.Pool") } -func init() { proto.RegisterFile("duality/dex/pool.proto", fileDescriptor_458bee7d4cc3fc09) } +func init() { proto.RegisterFile("neutron/dex/pool.proto", fileDescriptor_6ad7a9165eac1fde) } -var fileDescriptor_458bee7d4cc3fc09 = []byte{ - // 229 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0xd1, 0x2b, 0x28, 0xca, +var fileDescriptor_6ad7a9165eac1fde = []byte{ + // 228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcb, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x8a, 0xeb, 0xa5, 0xa4, 0x56, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xc5, 0xf5, 0x41, 0x2c, 0x88, 0x12, 0x29, 0x79, 0x74, 0xad, 0xf1, 0x45, 0xa9, 0xc5, 0xa9, 0x45, 0x65, 0xa9, 0xc5, 0x10, 0x05, 0x4a, 0x7d, 0x8c, 0x5c, 0x2c, 0x01, 0xf9, 0xf9, 0x39, 0x42, @@ -100,12 +100,12 @@ var fileDescriptor_458bee7d4cc3fc09 = []byte{ 0x56, 0x5c, 0xdc, 0x39, 0xf9, 0xe5, 0xa9, 0x45, 0xf1, 0x25, 0x99, 0xc9, 0xd9, 0x06, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x92, 0x7a, 0x48, 0x56, 0xea, 0x81, 0xf4, 0x05, 0x41, 0x8d, 0x0b, 0xe2, 0x02, 0xab, 0x0e, 0x01, 0x29, 0x06, 0xe9, 0x2d, 0x2d, 0x28, 0x80, 0xea, 0x35, 0x94, 0x60, - 0x26, 0xa8, 0x17, 0xac, 0x1a, 0xa4, 0xd7, 0xd0, 0xc9, 0xf5, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, + 0x26, 0xa8, 0x17, 0xac, 0x1a, 0xa4, 0xd7, 0xd0, 0xc9, 0xe5, 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, 0xb4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, - 0xa1, 0x46, 0xe9, 0xe6, 0x24, 0x26, 0x15, 0xc3, 0x38, 0xfa, 0x15, 0x60, 0x5f, 0x96, 0x54, 0x16, - 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xbd, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x0b, 0xf6, - 0xad, 0x3c, 0x01, 0x00, 0x00, + 0x8f, 0xe5, 0x18, 0xa2, 0xb4, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, + 0xa1, 0x46, 0xe9, 0xe6, 0x17, 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0x60, 0x4f, 0x96, 0x54, 0x16, 0xa4, + 0x16, 0x27, 0xb1, 0x81, 0x7d, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x23, 0x45, 0x18, + 0x3b, 0x01, 0x00, 0x00, } func (m *Pool) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/pool_metadata.pb.go b/x/dex/types/pool_metadata.pb.go index 610f79cfc..91d5a3654 100644 --- a/x/dex/types/pool_metadata.pb.go +++ b/x/dex/types/pool_metadata.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/pool_metadata.proto +// source: neutron/dex/pool_metadata.proto package types @@ -33,7 +33,7 @@ func (m *PoolMetadata) Reset() { *m = PoolMetadata{} } func (m *PoolMetadata) String() string { return proto.CompactTextString(m) } func (*PoolMetadata) ProtoMessage() {} func (*PoolMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_20ad68f12715e384, []int{0} + return fileDescriptor_c2ee8eaeac9c06d8, []int{0} } func (m *PoolMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,15 +91,15 @@ func (m *PoolMetadata) GetPairID() *PairID { } func init() { - proto.RegisterType((*PoolMetadata)(nil), "duality.dex.PoolMetadata") + proto.RegisterType((*PoolMetadata)(nil), "neutron.dex.PoolMetadata") } -func init() { proto.RegisterFile("duality/dex/pool_metadata.proto", fileDescriptor_20ad68f12715e384) } +func init() { proto.RegisterFile("neutron/dex/pool_metadata.proto", fileDescriptor_c2ee8eaeac9c06d8) } -var fileDescriptor_20ad68f12715e384 = []byte{ - // 224 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0x89, 0xcf, 0x4d, 0x2d, +var fileDescriptor_c2ee8eaeac9c06d8 = []byte{ + // 223 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0x89, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x2a, 0xd0, 0x4b, 0x49, 0xad, 0x90, 0x92, 0x44, 0x51, 0x9d, 0x98, 0x59, 0x14, 0x9f, 0x99, 0x02, 0x51, 0xa7, 0x54, 0xc8, 0xc5, 0x13, 0x90, 0x9f, 0x9f, 0xe3, 0x0b, 0xd5, 0x2d, 0xc4, 0xc7, 0xc5, 0xe4, 0xe9, @@ -107,11 +107,11 @@ var fileDescriptor_20ad68f12715e384 = []byte{ 0x99, 0x9c, 0x2d, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x1c, 0x04, 0x66, 0x0b, 0x09, 0x70, 0x31, 0xa7, 0xa5, 0xa6, 0x4a, 0x30, 0x83, 0x15, 0x81, 0x98, 0x42, 0xda, 0x5c, 0x6c, 0x20, 0x63, 0x3d, 0x5d, 0x24, 0x58, 0x14, 0x18, 0x35, 0xb8, 0x8d, 0x84, 0xf5, 0x90, 0xac, 0xd7, 0x0b, 0x00, 0x4b, 0x05, - 0x41, 0x95, 0x38, 0xb9, 0x9e, 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, 0x76, - 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x00, 0xdd, 0x9c, 0xc4, - 0xa4, 0x62, 0x18, 0x47, 0xbf, 0x02, 0xec, 0x83, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, - 0x07, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x45, 0x67, 0x83, 0xda, 0x0b, 0x01, 0x00, 0x00, + 0x41, 0x95, 0x38, 0xb9, 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, 0x56, + 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0x00, 0xdd, 0xfc, 0xa2, + 0x74, 0x18, 0x5b, 0xbf, 0x02, 0xec, 0x81, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xfb, + 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xa8, 0xc5, 0x28, 0x0a, 0x01, 0x00, 0x00, } func (m *PoolMetadata) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/pool_reserves.pb.go b/x/dex/types/pool_reserves.pb.go index b2020007b..eab47e55b 100644 --- a/x/dex/types/pool_reserves.pb.go +++ b/x/dex/types/pool_reserves.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/pool_reserves.proto +// source: neutron/dex/pool_reserves.proto package types @@ -8,7 +8,7 @@ import ( github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" - github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + github_com_neutron_org_neutron_utils_math "github.com/neutron-org/neutron/utils/math" io "io" math "math" math_bits "math/bits" @@ -35,7 +35,7 @@ func (m *PoolReservesKey) Reset() { *m = PoolReservesKey{} } func (m *PoolReservesKey) String() string { return proto.CompactTextString(m) } func (*PoolReservesKey) ProtoMessage() {} func (*PoolReservesKey) Descriptor() ([]byte, []int) { - return fileDescriptor_d37077b416662cb1, []int{0} + return fileDescriptor_f0fe9f734c7ad538, []int{0} } func (m *PoolReservesKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,17 +86,17 @@ func (m *PoolReservesKey) GetFee() uint64 { } type PoolReserves struct { - Key *PoolReservesKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` - PriceTakerToMaker github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,3,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` - PriceOppositeTakerToMaker github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,4,opt,name=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceOppositeTakerToMaker" yaml:"priceOppositeTakerToMaker"` + Key *PoolReservesKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` + PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,3,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` + PriceOppositeTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,4,opt,name=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceOppositeTakerToMaker" yaml:"priceOppositeTakerToMaker"` } func (m *PoolReserves) Reset() { *m = PoolReserves{} } func (m *PoolReserves) String() string { return proto.CompactTextString(m) } func (*PoolReserves) ProtoMessage() {} func (*PoolReserves) Descriptor() ([]byte, []int) { - return fileDescriptor_d37077b416662cb1, []int{1} + return fileDescriptor_f0fe9f734c7ad538, []int{1} } func (m *PoolReserves) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,42 +133,42 @@ func (m *PoolReserves) GetKey() *PoolReservesKey { } func init() { - proto.RegisterType((*PoolReservesKey)(nil), "duality.dex.PoolReservesKey") - proto.RegisterType((*PoolReserves)(nil), "duality.dex.PoolReserves") + proto.RegisterType((*PoolReservesKey)(nil), "neutron.dex.PoolReservesKey") + proto.RegisterType((*PoolReserves)(nil), "neutron.dex.PoolReserves") } -func init() { proto.RegisterFile("duality/dex/pool_reserves.proto", fileDescriptor_d37077b416662cb1) } +func init() { proto.RegisterFile("neutron/dex/pool_reserves.proto", fileDescriptor_f0fe9f734c7ad538) } -var fileDescriptor_d37077b416662cb1 = []byte{ - // 441 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xc1, 0x8a, 0xd3, 0x40, - 0x18, 0xc7, 0x3b, 0xa6, 0x08, 0x4e, 0x05, 0x75, 0x50, 0xc8, 0x2e, 0x92, 0x94, 0x1c, 0xa4, 0x20, - 0x3b, 0x81, 0xd5, 0xd3, 0x1e, 0x97, 0x2a, 0x14, 0x11, 0xcb, 0xd0, 0x93, 0x97, 0x32, 0x4d, 0x3e, - 0xba, 0x43, 0x92, 0x4e, 0x98, 0x99, 0x4a, 0x83, 0x2f, 0xa1, 0x07, 0x0f, 0xbe, 0x82, 0x6f, 0xe0, - 0x1b, 0xec, 0x71, 0x8f, 0xe2, 0x21, 0x48, 0x7b, 0xdb, 0x63, 0x9f, 0x40, 0x32, 0xcd, 0x62, 0x6a, - 0xb3, 0x78, 0xf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x39, 0xa3, 0x91, 0xcc, 0xc2, 0x48, 0xea, - 0x4c, 0xea, 0x7a, 0x38, 0xd1, 0x71, 0x12, 0x9a, 0x22, 0x07, 0x4d, 0x47, 0x0b, 0x73, 0x5d, 0xfa, - 0x2d, 0x59, 0xdb, 0xd2, 0x3f, 0x2a, 0x78, 0x96, 0x9e, 0x05, 0x87, 0xb5, 0x80, 0xb5, 0x6c, 0x20, - 0x5f, 0x11, 0x7e, 0x94, 0x2b, 0x11, 0xc1, 0xde, 0xcd, 0x38, 0x56, 0x29, 0xa9, 0x95, 0x4e, 0x1b, - 0x4a, 0xf5, 0x4f, 0x9e, 0xa4, 0x7c, 0xa6, 0x6f, 0x3e, 0xc2, 0xa5, 0x11, 0xa9, 0x0e, 0x33, 0x6e, - 0x2e, 0xe8, 0x58, 0x41, 0x34, 0x84, 0xe8, 0xba, 0xf4, 0x0f, 0x63, 0xb7, 0xa5, 0xef, 0xee, 0xec, - 0x0e, 0x4a, 0x01, 0x3b, 0xc4, 0xc9, 0x77, 0x84, 0x8f, 0xec, 0xea, 0xbb, 0x3c, 0x97, 0x5a, 0x98, - 0x7d, 0xc7, 0xae, 0x75, 0xfc, 0xf8, 0x5f, 0x8e, 0xb7, 0xc7, 0x6f, 0x4b, 0xbf, 0xdf, 0x70, 0x6d, - 0x43, 0x02, 0x76, 0xfb, 0xf6, 0xf3, 0x57, 0x97, 0x6b, 0x0f, 0x5d, 0xad, 0x3d, 0xf4, 0x6b, 0xed, - 0xa1, 0x4f, 0x1b, 0xaf, 0x73, 0xb5, 0xf1, 0x3a, 0x3f, 0x36, 0x5e, 0xe7, 0xfd, 0xf3, 0x7f, 0x99, - 0xae, 0x76, 0x9d, 0x51, 0xbd, 0xf4, 0xec, 0xae, 0x6d, 0x89, 0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, - 0xff, 0x92, 0xad, 0x36, 0xbf, 0x79, 0x03, 0x00, 0x00, +var fileDescriptor_f0fe9f734c7ad538 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0x87, 0x3b, 0xa6, 0x08, 0x4e, 0x05, 0x75, 0x50, 0xc8, 0x2e, 0x92, 0x94, 0x1c, 0xa4, 0x08, + 0x3b, 0xc1, 0x3f, 0xa7, 0x3d, 0x2e, 0x45, 0x28, 0x22, 0x96, 0xa1, 0x27, 0x2f, 0x25, 0x9b, 0xbc, + 0x74, 0xc7, 0x36, 0x79, 0xc3, 0xcc, 0x54, 0x5a, 0x3f, 0x85, 0x1e, 0x04, 0x3f, 0x82, 0x1f, 0xc1, + 0x8f, 0xb0, 0xc7, 0x3d, 0x8a, 0x87, 0x20, 0xed, 0x6d, 0x8f, 0xfd, 0x04, 0x92, 0x69, 0x16, 0x53, + 0x9b, 0xe2, 0xc1, 0xd3, 0xbc, 0xcc, 0xfb, 0xcc, 0x6f, 0x9e, 0x4c, 0x78, 0xa9, 0x9f, 0xc1, 0xdc, + 0x28, 0xcc, 0xc2, 0x04, 0x16, 0x61, 0x8e, 0x38, 0x1b, 0x2b, 0xd0, 0xa0, 0x3e, 0x80, 0xe6, 0xb9, + 0x42, 0x83, 0xac, 0x53, 0x01, 0x3c, 0x81, 0xc5, 0xf1, 0xc3, 0x09, 0x4e, 0xd0, 0xee, 0x87, 0x65, + 0xb5, 0x45, 0x8e, 0x77, 0x32, 0x8c, 0x8a, 0x12, 0x18, 0xe7, 0x91, 0x54, 0x63, 0x99, 0x6c, 0x81, + 0xe0, 0x0b, 0xa1, 0xf7, 0x86, 0x88, 0x33, 0x51, 0x45, 0xbf, 0x86, 0x25, 0x3b, 0xa5, 0x1d, 0x8b, + 0x0e, 0x23, 0xa9, 0x06, 0x7d, 0x97, 0x74, 0x49, 0xaf, 0xf3, 0xdc, 0xe5, 0xb5, 0xdb, 0xf8, 0xe8, + 0x4f, 0x5f, 0xd4, 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, 0x77, 0xdf, 0xe6, 0x39, 0x6a, 0x69, 0x76, + 0x15, 0xdb, 0x56, 0xf1, 0xe3, 0xff, 0x28, 0x1e, 0x4e, 0xdf, 0x14, 0x7e, 0xb7, 0xa6, 0xda, 0x84, + 0x04, 0xe2, 0xf0, 0xf1, 0xb3, 0xfe, 0xe5, 0xca, 0x23, 0x57, 0x2b, 0x8f, 0xfc, 0x5a, 0x79, 0xe4, + 0xd3, 0xda, 0x6b, 0x5d, 0xad, 0xbd, 0xd6, 0x8f, 0xb5, 0xd7, 0x7a, 0xf7, 0xf4, 0x1f, 0xa2, 0x8b, + 0xed, 0x58, 0x94, 0xbf, 0xf9, 0xfc, 0xb6, 0x9d, 0x87, 0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xfb, 0xee, 0x71, 0xc4, 0x76, 0x03, 0x00, 0x00, } func (m *PoolReservesKey) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/query.pb.go b/x/dex/types/query.pb.go index dc5b5d9ac..b2537e353 100644 --- a/x/dex/types/query.pb.go +++ b/x/dex/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/query.proto +// source: neutron/dex/query.proto package types @@ -13,7 +13,7 @@ import ( grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + github_com_neutron_org_neutron_utils_math "github.com/neutron-org/neutron/utils/math" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -45,7 +45,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_4664128fddcf2b7a, []int{0} + return fileDescriptor_b6613ea5fce61e9c, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -84,7 +84,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_4664128fddcf2b7a, []int{1} + return fileDescriptor_b6613ea5fce61e9c, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ func (m *QueryGetLimitOrderTrancheUserRequest) Reset() { *m = QueryGetLi func (m *QueryGetLimitOrderTrancheUserRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetLimitOrderTrancheUserRequest) ProtoMessage() {} func (*QueryGetLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{2} + return fileDescriptor_b6613ea5fce61e9c, []int{2} } func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -180,7 +180,7 @@ func (m *QueryGetLimitOrderTrancheUserResponse) Reset() { *m = QueryGetL func (m *QueryGetLimitOrderTrancheUserResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetLimitOrderTrancheUserResponse) ProtoMessage() {} func (*QueryGetLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{3} + return fileDescriptor_b6613ea5fce61e9c, []int{3} } func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -224,7 +224,7 @@ func (m *QueryAllLimitOrderTrancheUserRequest) Reset() { *m = QueryAllLi func (m *QueryAllLimitOrderTrancheUserRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllLimitOrderTrancheUserRequest) ProtoMessage() {} func (*QueryAllLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{4} + return fileDescriptor_b6613ea5fce61e9c, []int{4} } func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -269,7 +269,7 @@ func (m *QueryAllLimitOrderTrancheUserResponse) Reset() { *m = QueryAllL func (m *QueryAllLimitOrderTrancheUserResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllLimitOrderTrancheUserResponse) ProtoMessage() {} func (*QueryAllLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{5} + return fileDescriptor_b6613ea5fce61e9c, []int{5} } func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -323,7 +323,7 @@ func (m *QueryGetLimitOrderTrancheRequest) Reset() { *m = QueryGetLimitO func (m *QueryGetLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetLimitOrderTrancheRequest) ProtoMessage() {} func (*QueryGetLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{6} + return fileDescriptor_b6613ea5fce61e9c, []int{6} } func (m *QueryGetLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -388,7 +388,7 @@ func (m *QueryGetLimitOrderTrancheResponse) Reset() { *m = QueryGetLimit func (m *QueryGetLimitOrderTrancheResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetLimitOrderTrancheResponse) ProtoMessage() {} func (*QueryGetLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{7} + return fileDescriptor_b6613ea5fce61e9c, []int{7} } func (m *QueryGetLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -434,7 +434,7 @@ func (m *QueryAllLimitOrderTrancheRequest) Reset() { *m = QueryAllLimitO func (m *QueryAllLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllLimitOrderTrancheRequest) ProtoMessage() {} func (*QueryAllLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{8} + return fileDescriptor_b6613ea5fce61e9c, []int{8} } func (m *QueryAllLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -493,7 +493,7 @@ func (m *QueryAllLimitOrderTrancheResponse) Reset() { *m = QueryAllLimit func (m *QueryAllLimitOrderTrancheResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllLimitOrderTrancheResponse) ProtoMessage() {} func (*QueryAllLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{9} + return fileDescriptor_b6613ea5fce61e9c, []int{9} } func (m *QueryAllLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -545,7 +545,7 @@ func (m *QueryAllUserDepositsRequest) Reset() { *m = QueryAllUserDeposit func (m *QueryAllUserDepositsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllUserDepositsRequest) ProtoMessage() {} func (*QueryAllUserDepositsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{10} + return fileDescriptor_b6613ea5fce61e9c, []int{10} } func (m *QueryAllUserDepositsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -597,7 +597,7 @@ func (m *QueryAllUserDepositsResponse) Reset() { *m = QueryAllUserDeposi func (m *QueryAllUserDepositsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllUserDepositsResponse) ProtoMessage() {} func (*QueryAllUserDepositsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{11} + return fileDescriptor_b6613ea5fce61e9c, []int{11} } func (m *QueryAllUserDepositsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -649,7 +649,7 @@ func (m *QueryAllUserLimitOrdersRequest) Reset() { *m = QueryAllUserLimi func (m *QueryAllUserLimitOrdersRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllUserLimitOrdersRequest) ProtoMessage() {} func (*QueryAllUserLimitOrdersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{12} + return fileDescriptor_b6613ea5fce61e9c, []int{12} } func (m *QueryAllUserLimitOrdersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -701,7 +701,7 @@ func (m *QueryAllUserLimitOrdersResponse) Reset() { *m = QueryAllUserLim func (m *QueryAllUserLimitOrdersResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllUserLimitOrdersResponse) ProtoMessage() {} func (*QueryAllUserLimitOrdersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{13} + return fileDescriptor_b6613ea5fce61e9c, []int{13} } func (m *QueryAllUserLimitOrdersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -754,7 +754,7 @@ func (m *QueryAllTickLiquidityRequest) Reset() { *m = QueryAllTickLiquid func (m *QueryAllTickLiquidityRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllTickLiquidityRequest) ProtoMessage() {} func (*QueryAllTickLiquidityRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{14} + return fileDescriptor_b6613ea5fce61e9c, []int{14} } func (m *QueryAllTickLiquidityRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -813,7 +813,7 @@ func (m *QueryAllTickLiquidityResponse) Reset() { *m = QueryAllTickLiqui func (m *QueryAllTickLiquidityResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllTickLiquidityResponse) ProtoMessage() {} func (*QueryAllTickLiquidityResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{15} + return fileDescriptor_b6613ea5fce61e9c, []int{15} } func (m *QueryAllTickLiquidityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -869,7 +869,7 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) Reset() { func (m *QueryGetInactiveLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetInactiveLimitOrderTrancheRequest) ProtoMessage() {} func (*QueryGetInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{16} + return fileDescriptor_b6613ea5fce61e9c, []int{16} } func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -938,7 +938,7 @@ func (m *QueryGetInactiveLimitOrderTrancheResponse) String() string { } func (*QueryGetInactiveLimitOrderTrancheResponse) ProtoMessage() {} func (*QueryGetInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{17} + return fileDescriptor_b6613ea5fce61e9c, []int{17} } func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -984,7 +984,7 @@ func (m *QueryAllInactiveLimitOrderTrancheRequest) Reset() { func (m *QueryAllInactiveLimitOrderTrancheRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllInactiveLimitOrderTrancheRequest) ProtoMessage() {} func (*QueryAllInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{18} + return fileDescriptor_b6613ea5fce61e9c, []int{18} } func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1033,7 +1033,7 @@ func (m *QueryAllInactiveLimitOrderTrancheResponse) String() string { } func (*QueryAllInactiveLimitOrderTrancheResponse) ProtoMessage() {} func (*QueryAllInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{19} + return fileDescriptor_b6613ea5fce61e9c, []int{19} } func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1086,7 +1086,7 @@ func (m *QueryAllPoolReservesRequest) Reset() { *m = QueryAllPoolReserve func (m *QueryAllPoolReservesRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllPoolReservesRequest) ProtoMessage() {} func (*QueryAllPoolReservesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{20} + return fileDescriptor_b6613ea5fce61e9c, []int{20} } func (m *QueryAllPoolReservesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1145,7 +1145,7 @@ func (m *QueryAllPoolReservesResponse) Reset() { *m = QueryAllPoolReserv func (m *QueryAllPoolReservesResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllPoolReservesResponse) ProtoMessage() {} func (*QueryAllPoolReservesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{21} + return fileDescriptor_b6613ea5fce61e9c, []int{21} } func (m *QueryAllPoolReservesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1199,7 +1199,7 @@ func (m *QueryGetPoolReservesRequest) Reset() { *m = QueryGetPoolReserve func (m *QueryGetPoolReservesRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetPoolReservesRequest) ProtoMessage() {} func (*QueryGetPoolReservesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{22} + return fileDescriptor_b6613ea5fce61e9c, []int{22} } func (m *QueryGetPoolReservesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1264,7 +1264,7 @@ func (m *QueryGetPoolReservesResponse) Reset() { *m = QueryGetPoolReserv func (m *QueryGetPoolReservesResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetPoolReservesResponse) ProtoMessage() {} func (*QueryGetPoolReservesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{23} + return fileDescriptor_b6613ea5fce61e9c, []int{23} } func (m *QueryGetPoolReservesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1301,11 +1301,11 @@ func (m *QueryGetPoolReservesResponse) GetPoolReserves() *PoolReserves { } type QueryEstimateMultiHopSwapRequest struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - ExitLimitPrice github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` @@ -1315,7 +1315,7 @@ func (m *QueryEstimateMultiHopSwapRequest) Reset() { *m = QueryEstimateM func (m *QueryEstimateMultiHopSwapRequest) String() string { return proto.CompactTextString(m) } func (*QueryEstimateMultiHopSwapRequest) ProtoMessage() {} func (*QueryEstimateMultiHopSwapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{24} + return fileDescriptor_b6613ea5fce61e9c, []int{24} } func (m *QueryEstimateMultiHopSwapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1380,7 +1380,7 @@ func (m *QueryEstimateMultiHopSwapResponse) Reset() { *m = QueryEstimate func (m *QueryEstimateMultiHopSwapResponse) String() string { return proto.CompactTextString(m) } func (*QueryEstimateMultiHopSwapResponse) ProtoMessage() {} func (*QueryEstimateMultiHopSwapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{25} + return fileDescriptor_b6613ea5fce61e9c, []int{25} } func (m *QueryEstimateMultiHopSwapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1416,7 +1416,7 @@ type QueryEstimatePlaceLimitOrderRequest struct { TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - OrderType LimitOrderType `protobuf:"varint,7,opt,name=orderType,proto3,enum=duality.dex.LimitOrderType" json:"orderType,omitempty"` + OrderType LimitOrderType `protobuf:"varint,7,opt,name=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"orderType,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. ExpirationTime *time.Time `protobuf:"bytes,8,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` @@ -1426,7 +1426,7 @@ func (m *QueryEstimatePlaceLimitOrderRequest) Reset() { *m = QueryEstima func (m *QueryEstimatePlaceLimitOrderRequest) String() string { return proto.CompactTextString(m) } func (*QueryEstimatePlaceLimitOrderRequest) ProtoMessage() {} func (*QueryEstimatePlaceLimitOrderRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{26} + return fileDescriptor_b6613ea5fce61e9c, []int{26} } func (m *QueryEstimatePlaceLimitOrderRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1520,7 +1520,7 @@ func (m *QueryEstimatePlaceLimitOrderResponse) Reset() { *m = QueryEstim func (m *QueryEstimatePlaceLimitOrderResponse) String() string { return proto.CompactTextString(m) } func (*QueryEstimatePlaceLimitOrderResponse) ProtoMessage() {} func (*QueryEstimatePlaceLimitOrderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{27} + return fileDescriptor_b6613ea5fce61e9c, []int{27} } func (m *QueryEstimatePlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1559,7 +1559,7 @@ func (m *QueryPoolRequest) Reset() { *m = QueryPoolRequest{} } func (m *QueryPoolRequest) String() string { return proto.CompactTextString(m) } func (*QueryPoolRequest) ProtoMessage() {} func (*QueryPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{28} + return fileDescriptor_b6613ea5fce61e9c, []int{28} } func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1617,7 +1617,7 @@ func (m *QueryPoolByIDRequest) Reset() { *m = QueryPoolByIDRequest{} } func (m *QueryPoolByIDRequest) String() string { return proto.CompactTextString(m) } func (*QueryPoolByIDRequest) ProtoMessage() {} func (*QueryPoolByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{29} + return fileDescriptor_b6613ea5fce61e9c, []int{29} } func (m *QueryPoolByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1661,7 +1661,7 @@ func (m *QueryPoolResponse) Reset() { *m = QueryPoolResponse{} } func (m *QueryPoolResponse) String() string { return proto.CompactTextString(m) } func (*QueryPoolResponse) ProtoMessage() {} func (*QueryPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{30} + return fileDescriptor_b6613ea5fce61e9c, []int{30} } func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1705,7 +1705,7 @@ func (m *QueryGetPoolMetadataRequest) Reset() { *m = QueryGetPoolMetadat func (m *QueryGetPoolMetadataRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetPoolMetadataRequest) ProtoMessage() {} func (*QueryGetPoolMetadataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{31} + return fileDescriptor_b6613ea5fce61e9c, []int{31} } func (m *QueryGetPoolMetadataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1749,7 +1749,7 @@ func (m *QueryGetPoolMetadataResponse) Reset() { *m = QueryGetPoolMetada func (m *QueryGetPoolMetadataResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetPoolMetadataResponse) ProtoMessage() {} func (*QueryGetPoolMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{32} + return fileDescriptor_b6613ea5fce61e9c, []int{32} } func (m *QueryGetPoolMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1793,7 +1793,7 @@ func (m *QueryAllPoolMetadataRequest) Reset() { *m = QueryAllPoolMetadat func (m *QueryAllPoolMetadataRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllPoolMetadataRequest) ProtoMessage() {} func (*QueryAllPoolMetadataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{33} + return fileDescriptor_b6613ea5fce61e9c, []int{33} } func (m *QueryAllPoolMetadataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1838,7 +1838,7 @@ func (m *QueryAllPoolMetadataResponse) Reset() { *m = QueryAllPoolMetada func (m *QueryAllPoolMetadataResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllPoolMetadataResponse) ProtoMessage() {} func (*QueryAllPoolMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4664128fddcf2b7a, []int{34} + return fileDescriptor_b6613ea5fce61e9c, []int{34} } func (m *QueryAllPoolMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1882,179 +1882,179 @@ func (m *QueryAllPoolMetadataResponse) GetPagination() *query.PageResponse { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "duality.dex.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "duality.dex.QueryParamsResponse") - proto.RegisterType((*QueryGetLimitOrderTrancheUserRequest)(nil), "duality.dex.QueryGetLimitOrderTrancheUserRequest") - proto.RegisterType((*QueryGetLimitOrderTrancheUserResponse)(nil), "duality.dex.QueryGetLimitOrderTrancheUserResponse") - proto.RegisterType((*QueryAllLimitOrderTrancheUserRequest)(nil), "duality.dex.QueryAllLimitOrderTrancheUserRequest") - proto.RegisterType((*QueryAllLimitOrderTrancheUserResponse)(nil), "duality.dex.QueryAllLimitOrderTrancheUserResponse") - proto.RegisterType((*QueryGetLimitOrderTrancheRequest)(nil), "duality.dex.QueryGetLimitOrderTrancheRequest") - proto.RegisterType((*QueryGetLimitOrderTrancheResponse)(nil), "duality.dex.QueryGetLimitOrderTrancheResponse") - proto.RegisterType((*QueryAllLimitOrderTrancheRequest)(nil), "duality.dex.QueryAllLimitOrderTrancheRequest") - proto.RegisterType((*QueryAllLimitOrderTrancheResponse)(nil), "duality.dex.QueryAllLimitOrderTrancheResponse") - proto.RegisterType((*QueryAllUserDepositsRequest)(nil), "duality.dex.QueryAllUserDepositsRequest") - proto.RegisterType((*QueryAllUserDepositsResponse)(nil), "duality.dex.QueryAllUserDepositsResponse") - proto.RegisterType((*QueryAllUserLimitOrdersRequest)(nil), "duality.dex.QueryAllUserLimitOrdersRequest") - proto.RegisterType((*QueryAllUserLimitOrdersResponse)(nil), "duality.dex.QueryAllUserLimitOrdersResponse") - proto.RegisterType((*QueryAllTickLiquidityRequest)(nil), "duality.dex.QueryAllTickLiquidityRequest") - proto.RegisterType((*QueryAllTickLiquidityResponse)(nil), "duality.dex.QueryAllTickLiquidityResponse") - proto.RegisterType((*QueryGetInactiveLimitOrderTrancheRequest)(nil), "duality.dex.QueryGetInactiveLimitOrderTrancheRequest") - proto.RegisterType((*QueryGetInactiveLimitOrderTrancheResponse)(nil), "duality.dex.QueryGetInactiveLimitOrderTrancheResponse") - proto.RegisterType((*QueryAllInactiveLimitOrderTrancheRequest)(nil), "duality.dex.QueryAllInactiveLimitOrderTrancheRequest") - proto.RegisterType((*QueryAllInactiveLimitOrderTrancheResponse)(nil), "duality.dex.QueryAllInactiveLimitOrderTrancheResponse") - proto.RegisterType((*QueryAllPoolReservesRequest)(nil), "duality.dex.QueryAllPoolReservesRequest") - proto.RegisterType((*QueryAllPoolReservesResponse)(nil), "duality.dex.QueryAllPoolReservesResponse") - proto.RegisterType((*QueryGetPoolReservesRequest)(nil), "duality.dex.QueryGetPoolReservesRequest") - proto.RegisterType((*QueryGetPoolReservesResponse)(nil), "duality.dex.QueryGetPoolReservesResponse") - proto.RegisterType((*QueryEstimateMultiHopSwapRequest)(nil), "duality.dex.QueryEstimateMultiHopSwapRequest") - proto.RegisterType((*QueryEstimateMultiHopSwapResponse)(nil), "duality.dex.QueryEstimateMultiHopSwapResponse") - proto.RegisterType((*QueryEstimatePlaceLimitOrderRequest)(nil), "duality.dex.QueryEstimatePlaceLimitOrderRequest") - proto.RegisterType((*QueryEstimatePlaceLimitOrderResponse)(nil), "duality.dex.QueryEstimatePlaceLimitOrderResponse") - proto.RegisterType((*QueryPoolRequest)(nil), "duality.dex.QueryPoolRequest") - proto.RegisterType((*QueryPoolByIDRequest)(nil), "duality.dex.QueryPoolByIDRequest") - proto.RegisterType((*QueryPoolResponse)(nil), "duality.dex.QueryPoolResponse") - proto.RegisterType((*QueryGetPoolMetadataRequest)(nil), "duality.dex.QueryGetPoolMetadataRequest") - proto.RegisterType((*QueryGetPoolMetadataResponse)(nil), "duality.dex.QueryGetPoolMetadataResponse") - proto.RegisterType((*QueryAllPoolMetadataRequest)(nil), "duality.dex.QueryAllPoolMetadataRequest") - proto.RegisterType((*QueryAllPoolMetadataResponse)(nil), "duality.dex.QueryAllPoolMetadataResponse") -} - -func init() { proto.RegisterFile("duality/dex/query.proto", fileDescriptor_4664128fddcf2b7a) } - -var fileDescriptor_4664128fddcf2b7a = []byte{ - // 2098 bytes of a gzipped FileDescriptorProto + proto.RegisterType((*QueryParamsRequest)(nil), "neutron.dex.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "neutron.dex.QueryParamsResponse") + proto.RegisterType((*QueryGetLimitOrderTrancheUserRequest)(nil), "neutron.dex.QueryGetLimitOrderTrancheUserRequest") + proto.RegisterType((*QueryGetLimitOrderTrancheUserResponse)(nil), "neutron.dex.QueryGetLimitOrderTrancheUserResponse") + proto.RegisterType((*QueryAllLimitOrderTrancheUserRequest)(nil), "neutron.dex.QueryAllLimitOrderTrancheUserRequest") + proto.RegisterType((*QueryAllLimitOrderTrancheUserResponse)(nil), "neutron.dex.QueryAllLimitOrderTrancheUserResponse") + proto.RegisterType((*QueryGetLimitOrderTrancheRequest)(nil), "neutron.dex.QueryGetLimitOrderTrancheRequest") + proto.RegisterType((*QueryGetLimitOrderTrancheResponse)(nil), "neutron.dex.QueryGetLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllLimitOrderTrancheRequest)(nil), "neutron.dex.QueryAllLimitOrderTrancheRequest") + proto.RegisterType((*QueryAllLimitOrderTrancheResponse)(nil), "neutron.dex.QueryAllLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllUserDepositsRequest)(nil), "neutron.dex.QueryAllUserDepositsRequest") + proto.RegisterType((*QueryAllUserDepositsResponse)(nil), "neutron.dex.QueryAllUserDepositsResponse") + proto.RegisterType((*QueryAllUserLimitOrdersRequest)(nil), "neutron.dex.QueryAllUserLimitOrdersRequest") + proto.RegisterType((*QueryAllUserLimitOrdersResponse)(nil), "neutron.dex.QueryAllUserLimitOrdersResponse") + proto.RegisterType((*QueryAllTickLiquidityRequest)(nil), "neutron.dex.QueryAllTickLiquidityRequest") + proto.RegisterType((*QueryAllTickLiquidityResponse)(nil), "neutron.dex.QueryAllTickLiquidityResponse") + proto.RegisterType((*QueryGetInactiveLimitOrderTrancheRequest)(nil), "neutron.dex.QueryGetInactiveLimitOrderTrancheRequest") + proto.RegisterType((*QueryGetInactiveLimitOrderTrancheResponse)(nil), "neutron.dex.QueryGetInactiveLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllInactiveLimitOrderTrancheRequest)(nil), "neutron.dex.QueryAllInactiveLimitOrderTrancheRequest") + proto.RegisterType((*QueryAllInactiveLimitOrderTrancheResponse)(nil), "neutron.dex.QueryAllInactiveLimitOrderTrancheResponse") + proto.RegisterType((*QueryAllPoolReservesRequest)(nil), "neutron.dex.QueryAllPoolReservesRequest") + proto.RegisterType((*QueryAllPoolReservesResponse)(nil), "neutron.dex.QueryAllPoolReservesResponse") + proto.RegisterType((*QueryGetPoolReservesRequest)(nil), "neutron.dex.QueryGetPoolReservesRequest") + proto.RegisterType((*QueryGetPoolReservesResponse)(nil), "neutron.dex.QueryGetPoolReservesResponse") + proto.RegisterType((*QueryEstimateMultiHopSwapRequest)(nil), "neutron.dex.QueryEstimateMultiHopSwapRequest") + proto.RegisterType((*QueryEstimateMultiHopSwapResponse)(nil), "neutron.dex.QueryEstimateMultiHopSwapResponse") + proto.RegisterType((*QueryEstimatePlaceLimitOrderRequest)(nil), "neutron.dex.QueryEstimatePlaceLimitOrderRequest") + proto.RegisterType((*QueryEstimatePlaceLimitOrderResponse)(nil), "neutron.dex.QueryEstimatePlaceLimitOrderResponse") + proto.RegisterType((*QueryPoolRequest)(nil), "neutron.dex.QueryPoolRequest") + proto.RegisterType((*QueryPoolByIDRequest)(nil), "neutron.dex.QueryPoolByIDRequest") + proto.RegisterType((*QueryPoolResponse)(nil), "neutron.dex.QueryPoolResponse") + proto.RegisterType((*QueryGetPoolMetadataRequest)(nil), "neutron.dex.QueryGetPoolMetadataRequest") + proto.RegisterType((*QueryGetPoolMetadataResponse)(nil), "neutron.dex.QueryGetPoolMetadataResponse") + proto.RegisterType((*QueryAllPoolMetadataRequest)(nil), "neutron.dex.QueryAllPoolMetadataRequest") + proto.RegisterType((*QueryAllPoolMetadataResponse)(nil), "neutron.dex.QueryAllPoolMetadataResponse") +} + +func init() { proto.RegisterFile("neutron/dex/query.proto", fileDescriptor_b6613ea5fce61e9c) } + +var fileDescriptor_b6613ea5fce61e9c = []byte{ + // 2097 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0xcf, 0x6f, 0x1c, 0x49, 0x15, 0x4e, 0x79, 0x1c, 0xc7, 0xa9, 0xec, 0xe6, 0x47, 0xc5, 0xd9, 0x4c, 0x26, 0xde, 0x19, 0xa7, - 0x49, 0x62, 0xe7, 0x87, 0xbb, 0x63, 0x2f, 0x59, 0x89, 0x65, 0x05, 0xd8, 0xeb, 0x4d, 0x76, 0x20, - 0x21, 0xa6, 0x77, 0x72, 0x59, 0x24, 0x86, 0xf6, 0x4c, 0xc5, 0x6e, 0xb9, 0xa7, 0xbb, 0xd3, 0x5d, - 0x93, 0x78, 0x64, 0x59, 0x48, 0x7b, 0x41, 0x42, 0x20, 0x16, 0x58, 0x09, 0x84, 0xe0, 0x80, 0x10, - 0xb7, 0x20, 0x56, 0x1c, 0xe0, 0x86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xba, 0x49, 0xf9, 0x2d, 0xc1, 0xfc, 0x1d, 0x41, 0xfc, 0x66, 0xc8, 0xfb, 0xdd, 0x80, 0xfa, + 0xe0, 0x91, 0xe4, 0xf1, 0x11, 0xab, 0x56, 0xf3, 0x69, 0x10, 0x8e, 0x7d, 0xd4, 0x8c, 0x5e, 0x49, + 0x11, 0x63, 0x98, 0xa7, 0x6f, 0xd3, 0x56, 0x7e, 0x42, 0x7e, 0x54, 0x5a, 0xb4, 0x1f, 0x21, 0x7c, + 0x29, 0xc3, 0x05, 0xc0, 0xff, 0x3e, 0x3e, 0x93, 0x68, 0x00, 0xd1, 0x68, 0xb1, 0x68, 0x12, 0x2d, + 0x65, 0x70, 0xc8, 0x4c, 0x1e, 0x46, 0x73, 0x21, 0xd6, 0x55, 0xc7, 0x19, 0x18, 0xeb, 0x0d, 0x8c, + 0xbb, 0x4a, 0x07, 0xe7, 0x97, 0xf5, 0x50, 0x02, 0xba, 0x90, 0x80, 0x1e, 0x2e, 0x38, 0x10, 0x82, + 0xbe, 0x61, 0xd5, 0x29, 0xf4, 0x35, 0x95, 0x9e, 0xda, 0x93, 0x28, 0xf2, 0x74, 0x87, 0xd9, 0x91, + 0xe7, 0xc6, 0x10, 0x39, 0xb9, 0x19, 0x8b, 0x68, 0x42, 0x46, 0x34, 0x9f, 0x19, 0x51, 0x08, 0x2e, + 0x16, 0xd2, 0xcf, 0x11, 0x9e, 0x4b, 0x9d, 0xcc, 0x88, 0xbf, 0xd7, 0x84, 0x0c, 0x6d, 0xbf, 0xbc, + 0x0e, 0x52, 0x81, 0x37, 0x32, 0x8b, 0x8f, 0x8a, 0x45, 0x59, 0x76, 0x6b, 0x74, 0x57, 0x82, 0xc8, + 0x99, 0xdd, 0x06, 0xa1, 0x30, 0xce, 0x76, 0xa8, 0x5b, 0x76, 0xf3, 0xb9, 0x50, 0x61, 0xf0, 0xda, + 0xa3, 0xb0, 0xc9, 0x3e, 0x85, 0x3d, 0xc4, 0x17, 0x06, 0x60, 0x02, 0x8a, 0x4d, 0x7c, 0xaa, 0xef, + 0x23, 0xcc, 0x6d, 0x71, 0x30, 0xbd, 0x40, 0x6d, 0x7f, 0x77, 0xed, 0x37, 0x11, 0x1b, 0x49, 0x13, + 0x9c, 0xc5, 0x86, 0x12, 0xef, 0x44, 0x3c, 0xde, 0xb8, 0xfe, 0x72, 0x2f, 0xac, 0xbf, 0xbf, 0x21, + 0x20, 0x26, 0x19, 0xde, 0x60, 0x62, 0x72, 0x2f, 0x41, 0xcc, 0xf8, 0xf4, 0xf6, 0x43, 0x7c, 0x3e, + 0x8a, 0x40, 0x08, 0x79, 0x3d, 0xdc, 0xf5, 0x83, 0xec, 0x5d, 0xe9, 0x46, 0x02, 0x82, 0x17, 0xe1, + 0xf0, 0x0f, 0x08, 0xcf, 0x26, 0x23, 0x00, 0xfa, 0xde, 0xc1, 0xd3, 0x51, 0x1b, 0xb0, 0x56, 0x88, + 0xb1, 0x06, 0x1f, 0x4d, 0x99, 0xa7, 0x80, 0xb1, 0x4e, 0x8f, 0xf1, 0x11, 0xf5, 0x21, 0xc2, 0x45, + 0x15, 0x67, 0x77, 0x4e, 0xfe, 0x8f, 0x64, 0xfd, 0x19, 0xe1, 0x52, 0x2a, 0x08, 0xe0, 0xeb, 0x5b, + 0xf8, 0x98, 0xd3, 0x6d, 0x1e, 0x79, 0x83, 0x53, 0x3b, 0x8f, 0x8f, 0xbd, 0x5f, 0x29, 0xb3, 0xbc, + 0x69, 0x57, 0x77, 0x6e, 0x45, 0xc7, 0x86, 0x2f, 0x7e, 0x11, 0x7f, 0x8a, 0xf0, 0xeb, 0x29, 0xd0, + 0x80, 0xd1, 0x1b, 0xf8, 0x55, 0xae, 0x7e, 0x48, 0x94, 0x61, 0xac, 0x2b, 0x70, 0x19, 0xef, 0x36, + 0x3e, 0x36, 0x7f, 0x8d, 0xf0, 0x42, 0xb4, 0x21, 0x97, 0x5d, 0xab, 0xca, 0xed, 0x07, 0x74, 0x8c, + 0xdb, 0x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cf, + 0xa7, 0x10, 0xcb, 0xd2, 0x70, 0x33, 0x3f, 0x20, 0x9a, 0x41, 0x05, 0x5b, 0xed, 0xab, 0x32, 0x9a, + 0xeb, 0xe4, 0xcd, 0x17, 0x88, 0x86, 0x7c, 0x82, 0xf0, 0x09, 0xb5, 0x8e, 0x29, 0xf0, 0x2e, 0xa4, + 0xce, 0x79, 0x4f, 0xbd, 0xb5, 0x70, 0x65, 0x08, 0x4b, 0x40, 0x79, 0x55, 0xa2, 0xbc, 0x4c, 0x2e, + 0xf6, 0x4b, 0x03, 0x7e, 0xbb, 0x53, 0x65, 0xf1, 0x3b, 0x84, 0x4f, 0xc6, 0x4a, 0x54, 0x02, 0x57, + 0xb2, 0xb7, 0xa4, 0xfa, 0x5c, 0x61, 0x71, 0x18, 0x53, 0x40, 0xf6, 0x96, 0x44, 0x76, 0x8d, 0xe8, + 0x46, 0xfa, 0xcf, 0x85, 0x49, 0xd4, 0xfd, 0x17, 0xe1, 0x73, 0xa9, 0xb5, 0x12, 0x72, 0x3d, 0x51, + 0x93, 0x59, 0x05, 0x9d, 0xc2, 0x5b, 0xa3, 0x76, 0x83, 0x20, 0xbe, 0x27, 0x83, 0xb8, 0x4b, 0xde, + 0x8f, 0x05, 0x71, 0xcf, 0x76, 0x1c, 0x5a, 0xab, 0xbc, 0xac, 0xb2, 0xff, 0x8a, 0xf0, 0x6c, 0x2a, + 0x04, 0x31, 0x33, 0xd7, 0x13, 0xe9, 0x7e, 0x91, 0x60, 0x87, 0xa9, 0x3f, 0x69, 0x86, 0x0c, 0xf6, + 0x0a, 0x99, 0x1f, 0x32, 0x58, 0xf2, 0x5b, 0x84, 0x4f, 0xa8, 0x37, 0xff, 0x74, 0x95, 0x27, 0x54, + 0x36, 0x52, 0x54, 0x9e, 0x54, 0x82, 0xd0, 0xae, 0x4b, 0x64, 0x06, 0x59, 0x32, 0x52, 0x7f, 0x58, + 0x4e, 0x92, 0xd2, 0x23, 0x14, 0x9e, 0x1a, 0x3a,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0x43, 0x20, + 0x4a, 0xb9, 0x23, 0x0c, 0xe0, 0xa6, 0x83, 0x68, 0x6d, 0xfd, 0xf1, 0xd3, 0x22, 0x7a, 0xf2, 0xb4, + 0x88, 0xfe, 0xfd, 0xb4, 0x88, 0x3e, 0x7e, 0x56, 0x3c, 0xf4, 0xe4, 0x59, 0xf1, 0xd0, 0x67, 0xcf, + 0x8a, 0x87, 0x3e, 0x58, 0xcc, 0x28, 0xc3, 0xed, 0x86, 0xf9, 0x4b, 0x5c, 0x57, 0xb7, 0xa6, 0x64, + 0x05, 0xe4, 0xcd, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x47, 0x35, 0x89, 0x1f, 0x24, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2117,7 +2117,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -2126,7 +2126,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) LimitOrderTrancheUser(ctx context.Context, in *QueryGetLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheUserResponse, error) { out := new(QueryGetLimitOrderTrancheUserResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheUser", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/LimitOrderTrancheUser", in, out, opts...) if err != nil { return nil, err } @@ -2135,7 +2135,7 @@ func (c *queryClient) LimitOrderTrancheUser(ctx context.Context, in *QueryGetLim func (c *queryClient) LimitOrderTrancheUserAll(ctx context.Context, in *QueryAllLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheUserResponse, error) { out := new(QueryAllLimitOrderTrancheUserResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheUserAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/LimitOrderTrancheUserAll", in, out, opts...) if err != nil { return nil, err } @@ -2144,7 +2144,7 @@ func (c *queryClient) LimitOrderTrancheUserAll(ctx context.Context, in *QueryAll func (c *queryClient) LimitOrderTrancheUserAllByAddress(ctx context.Context, in *QueryAllUserLimitOrdersRequest, opts ...grpc.CallOption) (*QueryAllUserLimitOrdersResponse, error) { out := new(QueryAllUserLimitOrdersResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheUserAllByAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/LimitOrderTrancheUserAllByAddress", in, out, opts...) if err != nil { return nil, err } @@ -2153,7 +2153,7 @@ func (c *queryClient) LimitOrderTrancheUserAllByAddress(ctx context.Context, in func (c *queryClient) LimitOrderTranche(ctx context.Context, in *QueryGetLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheResponse, error) { out := new(QueryGetLimitOrderTrancheResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTranche", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/LimitOrderTranche", in, out, opts...) if err != nil { return nil, err } @@ -2162,7 +2162,7 @@ func (c *queryClient) LimitOrderTranche(ctx context.Context, in *QueryGetLimitOr func (c *queryClient) LimitOrderTrancheAll(ctx context.Context, in *QueryAllLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheResponse, error) { out := new(QueryAllLimitOrderTrancheResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/LimitOrderTrancheAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/LimitOrderTrancheAll", in, out, opts...) if err != nil { return nil, err } @@ -2171,7 +2171,7 @@ func (c *queryClient) LimitOrderTrancheAll(ctx context.Context, in *QueryAllLimi func (c *queryClient) UserDepositsAll(ctx context.Context, in *QueryAllUserDepositsRequest, opts ...grpc.CallOption) (*QueryAllUserDepositsResponse, error) { out := new(QueryAllUserDepositsResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/UserDepositsAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/UserDepositsAll", in, out, opts...) if err != nil { return nil, err } @@ -2180,7 +2180,7 @@ func (c *queryClient) UserDepositsAll(ctx context.Context, in *QueryAllUserDepos func (c *queryClient) TickLiquidityAll(ctx context.Context, in *QueryAllTickLiquidityRequest, opts ...grpc.CallOption) (*QueryAllTickLiquidityResponse, error) { out := new(QueryAllTickLiquidityResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/TickLiquidityAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/TickLiquidityAll", in, out, opts...) if err != nil { return nil, err } @@ -2189,7 +2189,7 @@ func (c *queryClient) TickLiquidityAll(ctx context.Context, in *QueryAllTickLiqu func (c *queryClient) InactiveLimitOrderTranche(ctx context.Context, in *QueryGetInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetInactiveLimitOrderTrancheResponse, error) { out := new(QueryGetInactiveLimitOrderTrancheResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/InactiveLimitOrderTranche", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/InactiveLimitOrderTranche", in, out, opts...) if err != nil { return nil, err } @@ -2198,7 +2198,7 @@ func (c *queryClient) InactiveLimitOrderTranche(ctx context.Context, in *QueryGe func (c *queryClient) InactiveLimitOrderTrancheAll(ctx context.Context, in *QueryAllInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllInactiveLimitOrderTrancheResponse, error) { out := new(QueryAllInactiveLimitOrderTrancheResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/InactiveLimitOrderTrancheAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/InactiveLimitOrderTrancheAll", in, out, opts...) if err != nil { return nil, err } @@ -2207,7 +2207,7 @@ func (c *queryClient) InactiveLimitOrderTrancheAll(ctx context.Context, in *Quer func (c *queryClient) PoolReservesAll(ctx context.Context, in *QueryAllPoolReservesRequest, opts ...grpc.CallOption) (*QueryAllPoolReservesResponse, error) { out := new(QueryAllPoolReservesResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolReservesAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/PoolReservesAll", in, out, opts...) if err != nil { return nil, err } @@ -2216,7 +2216,7 @@ func (c *queryClient) PoolReservesAll(ctx context.Context, in *QueryAllPoolReser func (c *queryClient) PoolReserves(ctx context.Context, in *QueryGetPoolReservesRequest, opts ...grpc.CallOption) (*QueryGetPoolReservesResponse, error) { out := new(QueryGetPoolReservesResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolReserves", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/PoolReserves", in, out, opts...) if err != nil { return nil, err } @@ -2225,7 +2225,7 @@ func (c *queryClient) PoolReserves(ctx context.Context, in *QueryGetPoolReserves func (c *queryClient) EstimateMultiHopSwap(ctx context.Context, in *QueryEstimateMultiHopSwapRequest, opts ...grpc.CallOption) (*QueryEstimateMultiHopSwapResponse, error) { out := new(QueryEstimateMultiHopSwapResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/EstimateMultiHopSwap", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/EstimateMultiHopSwap", in, out, opts...) if err != nil { return nil, err } @@ -2234,7 +2234,7 @@ func (c *queryClient) EstimateMultiHopSwap(ctx context.Context, in *QueryEstimat func (c *queryClient) EstimatePlaceLimitOrder(ctx context.Context, in *QueryEstimatePlaceLimitOrderRequest, opts ...grpc.CallOption) (*QueryEstimatePlaceLimitOrderResponse, error) { out := new(QueryEstimatePlaceLimitOrderResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/EstimatePlaceLimitOrder", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/EstimatePlaceLimitOrder", in, out, opts...) if err != nil { return nil, err } @@ -2243,7 +2243,7 @@ func (c *queryClient) EstimatePlaceLimitOrder(ctx context.Context, in *QueryEsti func (c *queryClient) Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) { out := new(QueryPoolResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/Pool", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/Pool", in, out, opts...) if err != nil { return nil, err } @@ -2252,7 +2252,7 @@ func (c *queryClient) Pool(ctx context.Context, in *QueryPoolRequest, opts ...gr func (c *queryClient) PoolByID(ctx context.Context, in *QueryPoolByIDRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) { out := new(QueryPoolResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolByID", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/PoolByID", in, out, opts...) if err != nil { return nil, err } @@ -2261,7 +2261,7 @@ func (c *queryClient) PoolByID(ctx context.Context, in *QueryPoolByIDRequest, op func (c *queryClient) PoolMetadata(ctx context.Context, in *QueryGetPoolMetadataRequest, opts ...grpc.CallOption) (*QueryGetPoolMetadataResponse, error) { out := new(QueryGetPoolMetadataResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolMetadata", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/PoolMetadata", in, out, opts...) if err != nil { return nil, err } @@ -2270,7 +2270,7 @@ func (c *queryClient) PoolMetadata(ctx context.Context, in *QueryGetPoolMetadata func (c *queryClient) PoolMetadataAll(ctx context.Context, in *QueryAllPoolMetadataRequest, opts ...grpc.CallOption) (*QueryAllPoolMetadataResponse, error) { out := new(QueryAllPoolMetadataResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Query/PoolMetadataAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Query/PoolMetadataAll", in, out, opts...) if err != nil { return nil, err } @@ -2390,7 +2390,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/Params", + FullMethod: "/neutron.dex.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -2408,7 +2408,7 @@ func _Query_LimitOrderTrancheUser_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/LimitOrderTrancheUser", + FullMethod: "/neutron.dex.Query/LimitOrderTrancheUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LimitOrderTrancheUser(ctx, req.(*QueryGetLimitOrderTrancheUserRequest)) @@ -2426,7 +2426,7 @@ func _Query_LimitOrderTrancheUserAll_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/LimitOrderTrancheUserAll", + FullMethod: "/neutron.dex.Query/LimitOrderTrancheUserAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LimitOrderTrancheUserAll(ctx, req.(*QueryAllLimitOrderTrancheUserRequest)) @@ -2444,7 +2444,7 @@ func _Query_LimitOrderTrancheUserAllByAddress_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/LimitOrderTrancheUserAllByAddress", + FullMethod: "/neutron.dex.Query/LimitOrderTrancheUserAllByAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LimitOrderTrancheUserAllByAddress(ctx, req.(*QueryAllUserLimitOrdersRequest)) @@ -2462,7 +2462,7 @@ func _Query_LimitOrderTranche_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/LimitOrderTranche", + FullMethod: "/neutron.dex.Query/LimitOrderTranche", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LimitOrderTranche(ctx, req.(*QueryGetLimitOrderTrancheRequest)) @@ -2480,7 +2480,7 @@ func _Query_LimitOrderTrancheAll_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/LimitOrderTrancheAll", + FullMethod: "/neutron.dex.Query/LimitOrderTrancheAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LimitOrderTrancheAll(ctx, req.(*QueryAllLimitOrderTrancheRequest)) @@ -2498,7 +2498,7 @@ func _Query_UserDepositsAll_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/UserDepositsAll", + FullMethod: "/neutron.dex.Query/UserDepositsAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).UserDepositsAll(ctx, req.(*QueryAllUserDepositsRequest)) @@ -2516,7 +2516,7 @@ func _Query_TickLiquidityAll_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/TickLiquidityAll", + FullMethod: "/neutron.dex.Query/TickLiquidityAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TickLiquidityAll(ctx, req.(*QueryAllTickLiquidityRequest)) @@ -2534,7 +2534,7 @@ func _Query_InactiveLimitOrderTranche_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/InactiveLimitOrderTranche", + FullMethod: "/neutron.dex.Query/InactiveLimitOrderTranche", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).InactiveLimitOrderTranche(ctx, req.(*QueryGetInactiveLimitOrderTrancheRequest)) @@ -2552,7 +2552,7 @@ func _Query_InactiveLimitOrderTrancheAll_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/InactiveLimitOrderTrancheAll", + FullMethod: "/neutron.dex.Query/InactiveLimitOrderTrancheAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).InactiveLimitOrderTrancheAll(ctx, req.(*QueryAllInactiveLimitOrderTrancheRequest)) @@ -2570,7 +2570,7 @@ func _Query_PoolReservesAll_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/PoolReservesAll", + FullMethod: "/neutron.dex.Query/PoolReservesAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).PoolReservesAll(ctx, req.(*QueryAllPoolReservesRequest)) @@ -2588,7 +2588,7 @@ func _Query_PoolReserves_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/PoolReserves", + FullMethod: "/neutron.dex.Query/PoolReserves", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).PoolReserves(ctx, req.(*QueryGetPoolReservesRequest)) @@ -2606,7 +2606,7 @@ func _Query_EstimateMultiHopSwap_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/EstimateMultiHopSwap", + FullMethod: "/neutron.dex.Query/EstimateMultiHopSwap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EstimateMultiHopSwap(ctx, req.(*QueryEstimateMultiHopSwapRequest)) @@ -2624,7 +2624,7 @@ func _Query_EstimatePlaceLimitOrder_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/EstimatePlaceLimitOrder", + FullMethod: "/neutron.dex.Query/EstimatePlaceLimitOrder", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EstimatePlaceLimitOrder(ctx, req.(*QueryEstimatePlaceLimitOrderRequest)) @@ -2642,7 +2642,7 @@ func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/Pool", + FullMethod: "/neutron.dex.Query/Pool", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Pool(ctx, req.(*QueryPoolRequest)) @@ -2660,7 +2660,7 @@ func _Query_PoolByID_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/PoolByID", + FullMethod: "/neutron.dex.Query/PoolByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).PoolByID(ctx, req.(*QueryPoolByIDRequest)) @@ -2678,7 +2678,7 @@ func _Query_PoolMetadata_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/PoolMetadata", + FullMethod: "/neutron.dex.Query/PoolMetadata", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).PoolMetadata(ctx, req.(*QueryGetPoolMetadataRequest)) @@ -2696,7 +2696,7 @@ func _Query_PoolMetadataAll_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Query/PoolMetadataAll", + FullMethod: "/neutron.dex.Query/PoolMetadataAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).PoolMetadataAll(ctx, req.(*QueryAllPoolMetadataRequest)) @@ -2705,7 +2705,7 @@ func _Query_PoolMetadataAll_Handler(srv interface{}, ctx context.Context, dec fu } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "duality.dex.Query", + ServiceName: "neutron.dex.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -2782,7 +2782,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "duality/dex/query.proto", + Metadata: "neutron/dex/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/query.pb.gw.go b/x/dex/types/query.pb.gw.go index 2392b6c0e..0d0fae871 100644 --- a/x/dex/types/query.pb.gw.go +++ b/x/dex/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: duality/dex/query.proto +// source: neutron/dex/query.proto /* Package types is a reverse proxy. @@ -2124,41 +2124,41 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTrancheUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "limit_order_tranche_user", "address", "trancheKey"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LimitOrderTrancheUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "limit_order_tranche_user", "address", "trancheKey"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTrancheUserAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "limit_order_tranche_user"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LimitOrderTrancheUserAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "limit_order_tranche_user"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTrancheUserAllByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "user", "limit_orders", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LimitOrderTrancheUserAllByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "user", "limit_orders", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"duality", "dex", "limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "limit_order_tranche", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "limit_order_tranche", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_UserDepositsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "user", "deposits", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_UserDepositsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "user", "deposits", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TickLiquidityAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "tick_liquidity", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_TickLiquidityAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "tick_liquidity", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InactiveLimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"duality", "dex", "filled_limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_InactiveLimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "filled_limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InactiveLimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "filled_limit_order_tranche"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_InactiveLimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "filled_limit_order_tranche"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolReservesAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "dex", "pool_reserves", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PoolReservesAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "pool_reserves", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolReserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"duality", "dex", "pool_reserves", "pairID", "tokenIn", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PoolReserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "pool_reserves", "pairID", "tokenIn", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EstimateMultiHopSwap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "estimate_multi_hop_swap"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_EstimateMultiHopSwap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "estimate_multi_hop_swap"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EstimatePlaceLimitOrder_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "estimate_place_limit_order"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_EstimatePlaceLimitOrder_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "estimate_place_limit_order"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"duality", "dex", "pool", "pairID", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"neutron", "dex", "pool", "pairID", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"duality", "dex", "pool", "poolID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PoolByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "dex", "pool", "poolID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"duality", "dex", "pool_metadata", "id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PoolMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "dex", "pool_metadata", "id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolMetadataAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "dex", "pool_metadata"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PoolMetadataAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "pool_metadata"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/dex/types/tick_liquidity.pb.go b/x/dex/types/tick_liquidity.pb.go index d545fde99..b5b1877c2 100644 --- a/x/dex/types/tick_liquidity.pb.go +++ b/x/dex/types/tick_liquidity.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/tick_liquidity.proto +// source: neutron/dex/tick_liquidity.proto package types @@ -34,7 +34,7 @@ func (m *TickLiquidity) Reset() { *m = TickLiquidity{} } func (m *TickLiquidity) String() string { return proto.CompactTextString(m) } func (*TickLiquidity) ProtoMessage() {} func (*TickLiquidity) Descriptor() ([]byte, []int) { - return fileDescriptor_1bf4777d3c75e20c, []int{0} + return fileDescriptor_fda22cbad7301397, []int{0} } func (m *TickLiquidity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,15 +109,15 @@ func (*TickLiquidity) XXX_OneofWrappers() []interface{} { } func init() { - proto.RegisterType((*TickLiquidity)(nil), "duality.dex.TickLiquidity") + proto.RegisterType((*TickLiquidity)(nil), "neutron.dex.TickLiquidity") } -func init() { proto.RegisterFile("duality/dex/tick_liquidity.proto", fileDescriptor_1bf4777d3c75e20c) } +func init() { proto.RegisterFile("neutron/dex/tick_liquidity.proto", fileDescriptor_fda22cbad7301397) } -var fileDescriptor_1bf4777d3c75e20c = []byte{ - // 262 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc9, 0x4c, 0xce, 0x8e, 0xcf, 0xc9, 0x2c, +var fileDescriptor_fda22cbad7301397 = []byte{ + // 261 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc9, 0x4c, 0xce, 0x8e, 0xcf, 0xc9, 0x2c, 0x2c, 0xcd, 0x4c, 0xc9, 0x2c, 0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xaa, 0xd0, 0x4b, 0x49, 0xad, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x8b, 0xeb, 0x83, 0x58, 0x10, 0x25, 0x52, 0xaa, 0xc8, 0x86, 0xe4, 0x64, 0xe6, 0x66, 0x96, 0xc4, 0xe7, 0x17, 0xa5, 0xa4, 0x16, @@ -127,12 +127,12 @@ var fileDescriptor_1bf4777d3c75e20c = []byte{ 0x54, 0x9d, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0xa4, 0x1e, 0x92, 0x9b, 0xf4, 0x02, 0x90, 0x14, 0x78, 0x30, 0x04, 0xa1, 0x68, 0x10, 0xf2, 0xe3, 0x12, 0x04, 0x3b, 0xc8, 0x1f, 0xe4, 0x9e, 0x10, 0x88, 0x73, 0x24, 0x98, 0xc0, 0xa6, 0xc8, 0xa1, 0x98, 0xe2, 0x83, 0xae, 0xca, 0x83, 0x21, - 0x08, 0x53, 0xab, 0x13, 0x37, 0x17, 0x27, 0x3c, 0x80, 0x9c, 0x5c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, + 0x08, 0x53, 0xab, 0x13, 0x37, 0x17, 0x27, 0x3c, 0x80, 0x9c, 0x5c, 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, 0x3b, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, - 0x57, 0x1f, 0x6a, 0x8b, 0x6e, 0x4e, 0x62, 0x52, 0x31, 0x8c, 0xa3, 0x5f, 0x01, 0x09, 0xf0, 0xca, - 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xef, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x4a, - 0xd5, 0x5a, 0x8c, 0x01, 0x00, 0x00, + 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2b, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, + 0x57, 0x1f, 0x6a, 0x8b, 0x6e, 0x7e, 0x51, 0x3a, 0x8c, 0xad, 0x5f, 0x01, 0x09, 0xef, 0xca, 0x82, + 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xe7, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xea, 0x7b, 0x19, + 0x9a, 0x8b, 0x01, 0x00, 0x00, } func (m *TickLiquidity) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/trade_pair_id.pb.go b/x/dex/types/trade_pair_id.pb.go index 0a29660ee..561d60bd2 100644 --- a/x/dex/types/trade_pair_id.pb.go +++ b/x/dex/types/trade_pair_id.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/trade_pair_id.proto +// source: neutron/dex/trade_pair_id.proto package types @@ -31,7 +31,7 @@ func (m *TradePairID) Reset() { *m = TradePairID{} } func (m *TradePairID) String() string { return proto.CompactTextString(m) } func (*TradePairID) ProtoMessage() {} func (*TradePairID) Descriptor() ([]byte, []int) { - return fileDescriptor_9a4de11785745a60, []int{0} + return fileDescriptor_e0082302b8bd9607, []int{0} } func (m *TradePairID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -75,24 +75,24 @@ func (m *TradePairID) GetTakerDenom() string { } func init() { - proto.RegisterType((*TradePairID)(nil), "duality.dex.TradePairID") + proto.RegisterType((*TradePairID)(nil), "neutron.dex.TradePairID") } -func init() { proto.RegisterFile("duality/dex/trade_pair_id.proto", fileDescriptor_9a4de11785745a60) } +func init() { proto.RegisterFile("neutron/dex/trade_pair_id.proto", fileDescriptor_e0082302b8bd9607) } -var fileDescriptor_9a4de11785745a60 = []byte{ - // 174 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x29, 0x4a, 0x4c, 0x49, 0x8d, 0x2f, 0x48, +var fileDescriptor_e0082302b8bd9607 = []byte{ + // 173 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0x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 0x4a, 0xcf, + 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0x3a, 0x40, 0x37, 0xbf, 0x28, 0x1d, + 0xc6, 0xd6, 0xaf, 0x80, 0xb8, 0xb7, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x50, 0x63, 0x40, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xee, 0x17, 0xd6, 0xa6, 0xcb, 0x00, 0x00, 0x00, } func (m *TradePairID) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index a01cef797..8503e97e5 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/dex/tx.proto +// source: neutron/dex/tx.proto package types @@ -12,7 +12,7 @@ import ( grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - github_com_duality_labs_duality_utils_math "github.com/neutron-org/neutron/utils/math" + github_com_neutron_org_neutron_utils_math "github.com/neutron-org/neutron/utils/math" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -66,7 +66,7 @@ func (x LimitOrderType) String() string { } func (LimitOrderType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{0} + return fileDescriptor_a489f6e187d5e074, []int{0} } type DepositOptions struct { @@ -77,7 +77,7 @@ func (m *DepositOptions) Reset() { *m = DepositOptions{} } func (m *DepositOptions) String() string { return proto.CompactTextString(m) } func (*DepositOptions) ProtoMessage() {} func (*DepositOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{0} + return fileDescriptor_a489f6e187d5e074, []int{0} } func (m *DepositOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,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_0012bae7d4530cbb, []int{1} + return fileDescriptor_a489f6e187d5e074, []int{1} } func (m *MsgDeposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -216,7 +216,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_0012bae7d4530cbb, []int{2} + return fileDescriptor_a489f6e187d5e074, []int{2} } func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -259,7 +259,7 @@ func (m *MsgWithdrawal) Reset() { *m = MsgWithdrawal{} } func (m *MsgWithdrawal) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawal) ProtoMessage() {} func (*MsgWithdrawal) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{3} + return fileDescriptor_a489f6e187d5e074, []int{3} } func (m *MsgWithdrawal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -337,7 +337,7 @@ func (m *MsgWithdrawalResponse) Reset() { *m = MsgWithdrawalResponse{} } func (m *MsgWithdrawalResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawalResponse) ProtoMessage() {} func (*MsgWithdrawalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{4} + return fileDescriptor_a489f6e187d5e074, []int{4} } func (m *MsgWithdrawalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -373,7 +373,7 @@ type MsgPlaceLimitOrder struct { TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=duality.dex.LimitOrderType" json:"orderType,omitempty"` + OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"orderType,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. ExpirationTime *time.Time `protobuf:"bytes,9,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` @@ -383,7 +383,7 @@ func (m *MsgPlaceLimitOrder) Reset() { *m = MsgPlaceLimitOrder{} } func (m *MsgPlaceLimitOrder) String() string { return proto.CompactTextString(m) } func (*MsgPlaceLimitOrder) ProtoMessage() {} func (*MsgPlaceLimitOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{5} + return fileDescriptor_a489f6e187d5e074, []int{5} } func (m *MsgPlaceLimitOrder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -475,7 +475,7 @@ func (m *MsgPlaceLimitOrderResponse) Reset() { *m = MsgPlaceLimitOrderRe func (m *MsgPlaceLimitOrderResponse) String() string { return proto.CompactTextString(m) } func (*MsgPlaceLimitOrderResponse) ProtoMessage() {} func (*MsgPlaceLimitOrderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{6} + return fileDescriptor_a489f6e187d5e074, []int{6} } func (m *MsgPlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -520,7 +520,7 @@ func (m *MsgWithdrawFilledLimitOrder) Reset() { *m = MsgWithdrawFilledLi func (m *MsgWithdrawFilledLimitOrder) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawFilledLimitOrder) ProtoMessage() {} func (*MsgWithdrawFilledLimitOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{7} + return fileDescriptor_a489f6e187d5e074, []int{7} } func (m *MsgWithdrawFilledLimitOrder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -570,7 +570,7 @@ func (m *MsgWithdrawFilledLimitOrderResponse) Reset() { *m = MsgWithdraw func (m *MsgWithdrawFilledLimitOrderResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawFilledLimitOrderResponse) ProtoMessage() {} func (*MsgWithdrawFilledLimitOrderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{8} + return fileDescriptor_a489f6e187d5e074, []int{8} } func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -608,7 +608,7 @@ func (m *MsgCancelLimitOrder) Reset() { *m = MsgCancelLimitOrder{} } func (m *MsgCancelLimitOrder) String() string { return proto.CompactTextString(m) } func (*MsgCancelLimitOrder) ProtoMessage() {} func (*MsgCancelLimitOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{9} + return fileDescriptor_a489f6e187d5e074, []int{9} } func (m *MsgCancelLimitOrder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -658,7 +658,7 @@ func (m *MsgCancelLimitOrderResponse) Reset() { *m = MsgCancelLimitOrder func (m *MsgCancelLimitOrderResponse) String() string { return proto.CompactTextString(m) } func (*MsgCancelLimitOrderResponse) ProtoMessage() {} func (*MsgCancelLimitOrderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{10} + return fileDescriptor_a489f6e187d5e074, []int{10} } func (m *MsgCancelLimitOrderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -695,7 +695,7 @@ func (m *MultiHopRoute) Reset() { *m = MultiHopRoute{} } func (m *MultiHopRoute) String() string { return proto.CompactTextString(m) } func (*MultiHopRoute) ProtoMessage() {} func (*MultiHopRoute) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{11} + return fileDescriptor_a489f6e187d5e074, []int{11} } func (m *MultiHopRoute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -732,11 +732,11 @@ func (m *MultiHopRoute) GetHops() []string { } type MsgMultiHopSwap struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - ExitLimitPrice github_com_duality_labs_duality_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` @@ -746,7 +746,7 @@ func (m *MsgMultiHopSwap) Reset() { *m = MsgMultiHopSwap{} } func (m *MsgMultiHopSwap) String() string { return proto.CompactTextString(m) } func (*MsgMultiHopSwap) ProtoMessage() {} func (*MsgMultiHopSwap) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{12} + return fileDescriptor_a489f6e187d5e074, []int{12} } func (m *MsgMultiHopSwap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -811,7 +811,7 @@ func (m *MsgMultiHopSwapResponse) Reset() { *m = MsgMultiHopSwapResponse func (m *MsgMultiHopSwapResponse) String() string { return proto.CompactTextString(m) } func (*MsgMultiHopSwapResponse) ProtoMessage() {} func (*MsgMultiHopSwapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0012bae7d4530cbb, []int{13} + return fileDescriptor_a489f6e187d5e074, []int{13} } func (m *MsgMultiHopSwapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -841,107 +841,107 @@ func (m *MsgMultiHopSwapResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgMultiHopSwapResponse proto.InternalMessageInfo func init() { - proto.RegisterEnum("duality.dex.LimitOrderType", LimitOrderType_name, LimitOrderType_value) - proto.RegisterType((*DepositOptions)(nil), "duality.dex.DepositOptions") - proto.RegisterType((*MsgDeposit)(nil), "duality.dex.MsgDeposit") - proto.RegisterType((*MsgDepositResponse)(nil), "duality.dex.MsgDepositResponse") - proto.RegisterType((*MsgWithdrawal)(nil), "duality.dex.MsgWithdrawal") - proto.RegisterType((*MsgWithdrawalResponse)(nil), "duality.dex.MsgWithdrawalResponse") - proto.RegisterType((*MsgPlaceLimitOrder)(nil), "duality.dex.MsgPlaceLimitOrder") - proto.RegisterType((*MsgPlaceLimitOrderResponse)(nil), "duality.dex.MsgPlaceLimitOrderResponse") - proto.RegisterType((*MsgWithdrawFilledLimitOrder)(nil), "duality.dex.MsgWithdrawFilledLimitOrder") - proto.RegisterType((*MsgWithdrawFilledLimitOrderResponse)(nil), "duality.dex.MsgWithdrawFilledLimitOrderResponse") - proto.RegisterType((*MsgCancelLimitOrder)(nil), "duality.dex.MsgCancelLimitOrder") - proto.RegisterType((*MsgCancelLimitOrderResponse)(nil), "duality.dex.MsgCancelLimitOrderResponse") - proto.RegisterType((*MultiHopRoute)(nil), "duality.dex.MultiHopRoute") - proto.RegisterType((*MsgMultiHopSwap)(nil), "duality.dex.MsgMultiHopSwap") - proto.RegisterType((*MsgMultiHopSwapResponse)(nil), "duality.dex.MsgMultiHopSwapResponse") -} - -func init() { proto.RegisterFile("duality/dex/tx.proto", fileDescriptor_0012bae7d4530cbb) } - -var fileDescriptor_0012bae7d4530cbb = []byte{ - // 1273 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4b, 0x8f, 0xdb, 0xd4, - 0x17, 0x1f, 0xc7, 0x69, 0x32, 0x73, 0xe6, 0x95, 0xde, 0x3e, 0xc6, 0x7f, 0xf7, 0x4f, 0x1c, 0xb9, - 0x85, 0x86, 0xa2, 0x3a, 0x9d, 0x41, 0x2c, 0x28, 0xab, 0x78, 0x66, 0x0a, 0x6e, 0x93, 0xa6, 0x72, - 0x53, 0x2a, 0x40, 0x22, 0x72, 0x9c, 0xdb, 0xc4, 0x9a, 0xc4, 0xd7, 0xf2, 0xbd, 0x99, 0x66, 0x16, - 0x2c, 0xd8, 0x22, 0x55, 0xea, 0x86, 0x15, 0x6c, 0xf8, 0x0e, 0x48, 0x2c, 0xf8, 0x02, 0x5d, 0x56, - 0x62, 0x83, 0x58, 0x04, 0xd4, 0xee, 0xba, 0x9c, 0x4f, 0x80, 0xfc, 0x8c, 0xed, 0x74, 0x3a, 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xaf, 0xa1, 0x34, 0xd7, 0xa7, 0x2a, 0x59, 0x96, 0x2c, 0x42, 0xac, 0x1e, 0x87, 0x88, 0xf9, - 0x75, 0x58, 0x49, 0x75, 0x9c, 0xff, 0x67, 0x77, 0x26, 0xb5, 0xe2, 0xa5, 0x57, 0x69, 0x23, 0x4e, - 0x75, 0xf7, 0xc9, 0xb3, 0x32, 0xf7, 0xf4, 0x59, 0x99, 0xfb, 0xeb, 0x59, 0x99, 0x7b, 0xfc, 0xbc, - 0xbc, 0xf0, 0xf4, 0x79, 0x79, 0xe1, 0xf7, 0xe7, 0xe5, 0x85, 0x2f, 0x3f, 0x38, 0xae, 0xb2, 0x27, - 0xc1, 0xbf, 0x50, 0x2f, 0xfb, 0xbb, 0x05, 0xff, 0x91, 0xf0, 0xe1, 0xdf, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x3e, 0x98, 0x48, 0x57, 0xa1, 0x0e, 0x00, 0x00, + proto.RegisterEnum("neutron.dex.LimitOrderType", LimitOrderType_name, LimitOrderType_value) + proto.RegisterType((*DepositOptions)(nil), "neutron.dex.DepositOptions") + proto.RegisterType((*MsgDeposit)(nil), "neutron.dex.MsgDeposit") + proto.RegisterType((*MsgDepositResponse)(nil), "neutron.dex.MsgDepositResponse") + proto.RegisterType((*MsgWithdrawal)(nil), "neutron.dex.MsgWithdrawal") + proto.RegisterType((*MsgWithdrawalResponse)(nil), "neutron.dex.MsgWithdrawalResponse") + proto.RegisterType((*MsgPlaceLimitOrder)(nil), "neutron.dex.MsgPlaceLimitOrder") + proto.RegisterType((*MsgPlaceLimitOrderResponse)(nil), "neutron.dex.MsgPlaceLimitOrderResponse") + proto.RegisterType((*MsgWithdrawFilledLimitOrder)(nil), "neutron.dex.MsgWithdrawFilledLimitOrder") + proto.RegisterType((*MsgWithdrawFilledLimitOrderResponse)(nil), "neutron.dex.MsgWithdrawFilledLimitOrderResponse") + proto.RegisterType((*MsgCancelLimitOrder)(nil), "neutron.dex.MsgCancelLimitOrder") + proto.RegisterType((*MsgCancelLimitOrderResponse)(nil), "neutron.dex.MsgCancelLimitOrderResponse") + proto.RegisterType((*MultiHopRoute)(nil), "neutron.dex.MultiHopRoute") + proto.RegisterType((*MsgMultiHopSwap)(nil), "neutron.dex.MsgMultiHopSwap") + proto.RegisterType((*MsgMultiHopSwapResponse)(nil), "neutron.dex.MsgMultiHopSwapResponse") +} + +func init() { proto.RegisterFile("neutron/dex/tx.proto", fileDescriptor_a489f6e187d5e074) } + +var fileDescriptor_a489f6e187d5e074 = []byte{ + // 1269 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x8f, 0xdb, 0x44, + 0x14, 0x5f, 0xc7, 0x69, 0xb2, 0xfb, 0xf6, 0x2b, 0x9d, 0x7e, 0xac, 0x71, 0x21, 0x8e, 0xdc, 0x42, + 0x43, 0xa5, 0x3a, 0xdd, 0x45, 0x1c, 0x28, 0xa7, 0x78, 0x77, 0x0b, 0x6e, 0x93, 0xa6, 0x72, 0x53, + 0x2a, 0x40, 0x22, 0xf2, 0x3a, 0xd3, 0xc4, 0xda, 0xc4, 0x63, 0x79, 0x26, 0xdb, 0xec, 0x81, 0x03, + 0x57, 0x04, 0x52, 0x2f, 0x9c, 0x7a, 0xe2, 0x7f, 0x40, 0xe2, 0xc0, 0x3f, 0xd0, 0x63, 0x25, 0x2e, + 0x88, 0x43, 0x40, 0xed, 0xad, 0xc7, 0xfd, 0x0b, 0x90, 0x3f, 0x63, 0x3b, 0xdd, 0x6e, 0xd3, 0x02, + 0xa7, 0xcc, 0xbc, 0xf7, 0x9b, 0xdf, 0x7b, 0xf3, 0xe6, 0x7d, 0x38, 0x70, 0xd6, 0xc6, 0x23, 0xe6, + 0x12, 0xbb, 0xd6, 0xc5, 0xe3, 0x1a, 0x1b, 0x2b, 0x8e, 0x4b, 0x18, 0x41, 0xcb, 0xa1, 0x54, 0xe9, +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0x49, 0x7b, 0xdb, 0x86, 0x6d, 0xe2, 0xc1, 0xbf, 0x62, 0xf7, 0x3d, + 0xff, 0x42, 0x59, 0xc2, 0xd8, 0xde, 0x45, 0x58, 0x6d, 0x8e, 0x06, 0xcc, 0xfa, 0x9c, 0x38, 0x3a, + 0x19, 0x31, 0xec, 0x75, 0xa8, 0x3e, 0x71, 0x68, 0x30, 0xd9, 0x74, 0x7f, 0x2d, 0x3f, 0xe6, 0x61, + 0xbd, 0x49, 0x7b, 0x11, 0xf0, 0xee, 0x43, 0xc3, 0x79, 0xc3, 0x2e, 0xb4, 0x05, 0x05, 0xd7, 0x33, + 0x43, 0x05, 0xde, 0x1f, 0xc9, 0x62, 0xaa, 0x6a, 0x53, 0x9e, 0xe8, 0x21, 0x32, 0xd5, 0x57, 0xf2, + 0xff, 0x6d, 0x5f, 0xf9, 0x81, 0xf3, 0xba, 0x83, 0xc5, 0xfc, 0x40, 0xdd, 0x71, 0x2d, 0x13, 0xfb, + 0xdd, 0x6e, 0x49, 0xed, 0x86, 0x16, 0x37, 0x13, 0x16, 0x43, 0xcf, 0xaf, 0x12, 0xb7, 0x17, 0xad, + 0x6b, 0x23, 0x66, 0x0d, 0x68, 0x6d, 0x68, 0xb0, 0xbe, 0x72, 0xc7, 0xc5, 0xe6, 0x0e, 0x36, 0xbd, + 0xb9, 0x92, 0xa6, 0x9c, 0xce, 0x95, 0xb4, 0x5c, 0xd6, 0x33, 0x40, 0x74, 0x09, 0x56, 0x1d, 0xcb, + 0xdc, 0x57, 0x31, 0x65, 0x7e, 0x48, 0x84, 0x82, 0xff, 0xc1, 0x99, 0x16, 0xca, 0xdf, 0x73, 0xb0, + 0x91, 0x79, 0x9d, 0xb8, 0x0b, 0x10, 0x28, 0x9a, 0x61, 0x81, 0x71, 0x27, 0x15, 0xd8, 0xf5, 0xf9, + 0x0b, 0x2c, 0x22, 0xd7, 0xa3, 0xc5, 0x95, 0x31, 0xac, 0xa5, 0x7b, 0x2f, 0x3a, 0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, 0xdc, 0xd3, 0x67, 0x65, 0xee, 0xef, 0x67, 0x65, 0xee, 0xd1, 0xf3, 0xf2, 0xc2, 0xd3, 0xe7, + 0xe5, 0x85, 0x3f, 0x9e, 0x97, 0x17, 0xbe, 0xba, 0x72, 0x42, 0x61, 0x8f, 0x83, 0xff, 0xa0, 0x5e, + 0xf2, 0xef, 0x15, 0xfc, 0x4f, 0x84, 0x8f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x56, 0x20, 0xd3, + 0x20, 0x9f, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -974,7 +974,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) { out := new(MsgDepositResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Msg/Deposit", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Msg/Deposit", in, out, opts...) if err != nil { return nil, err } @@ -983,7 +983,7 @@ func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.Ca func (c *msgClient) Withdrawal(ctx context.Context, in *MsgWithdrawal, opts ...grpc.CallOption) (*MsgWithdrawalResponse, error) { out := new(MsgWithdrawalResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Msg/Withdrawal", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Msg/Withdrawal", in, out, opts...) if err != nil { return nil, err } @@ -992,7 +992,7 @@ func (c *msgClient) Withdrawal(ctx context.Context, in *MsgWithdrawal, opts ...g func (c *msgClient) PlaceLimitOrder(ctx context.Context, in *MsgPlaceLimitOrder, opts ...grpc.CallOption) (*MsgPlaceLimitOrderResponse, error) { out := new(MsgPlaceLimitOrderResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Msg/PlaceLimitOrder", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Msg/PlaceLimitOrder", in, out, opts...) if err != nil { return nil, err } @@ -1001,7 +1001,7 @@ func (c *msgClient) PlaceLimitOrder(ctx context.Context, in *MsgPlaceLimitOrder, func (c *msgClient) WithdrawFilledLimitOrder(ctx context.Context, in *MsgWithdrawFilledLimitOrder, opts ...grpc.CallOption) (*MsgWithdrawFilledLimitOrderResponse, error) { out := new(MsgWithdrawFilledLimitOrderResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Msg/WithdrawFilledLimitOrder", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Msg/WithdrawFilledLimitOrder", in, out, opts...) if err != nil { return nil, err } @@ -1010,7 +1010,7 @@ func (c *msgClient) WithdrawFilledLimitOrder(ctx context.Context, in *MsgWithdra func (c *msgClient) CancelLimitOrder(ctx context.Context, in *MsgCancelLimitOrder, opts ...grpc.CallOption) (*MsgCancelLimitOrderResponse, error) { out := new(MsgCancelLimitOrderResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Msg/CancelLimitOrder", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Msg/CancelLimitOrder", in, out, opts...) if err != nil { return nil, err } @@ -1019,7 +1019,7 @@ func (c *msgClient) CancelLimitOrder(ctx context.Context, in *MsgCancelLimitOrde func (c *msgClient) MultiHopSwap(ctx context.Context, in *MsgMultiHopSwap, opts ...grpc.CallOption) (*MsgMultiHopSwapResponse, error) { out := new(MsgMultiHopSwapResponse) - err := c.cc.Invoke(ctx, "/duality.dex.Msg/MultiHopSwap", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.dex.Msg/MultiHopSwap", in, out, opts...) if err != nil { return nil, err } @@ -1073,7 +1073,7 @@ func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Msg/Deposit", + FullMethod: "/neutron.dex.Msg/Deposit", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit)) @@ -1091,7 +1091,7 @@ func _Msg_Withdrawal_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Msg/Withdrawal", + FullMethod: "/neutron.dex.Msg/Withdrawal", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Withdrawal(ctx, req.(*MsgWithdrawal)) @@ -1109,7 +1109,7 @@ func _Msg_PlaceLimitOrder_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Msg/PlaceLimitOrder", + FullMethod: "/neutron.dex.Msg/PlaceLimitOrder", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).PlaceLimitOrder(ctx, req.(*MsgPlaceLimitOrder)) @@ -1127,7 +1127,7 @@ func _Msg_WithdrawFilledLimitOrder_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Msg/WithdrawFilledLimitOrder", + FullMethod: "/neutron.dex.Msg/WithdrawFilledLimitOrder", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WithdrawFilledLimitOrder(ctx, req.(*MsgWithdrawFilledLimitOrder)) @@ -1145,7 +1145,7 @@ func _Msg_CancelLimitOrder_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Msg/CancelLimitOrder", + FullMethod: "/neutron.dex.Msg/CancelLimitOrder", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CancelLimitOrder(ctx, req.(*MsgCancelLimitOrder)) @@ -1163,7 +1163,7 @@ func _Msg_MultiHopSwap_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.dex.Msg/MultiHopSwap", + FullMethod: "/neutron.dex.Msg/MultiHopSwap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).MultiHopSwap(ctx, req.(*MsgMultiHopSwap)) @@ -1172,7 +1172,7 @@ func _Msg_MultiHopSwap_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "duality.dex.Msg", + ServiceName: "neutron.dex.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1201,7 +1201,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "duality/dex/tx.proto", + Metadata: "neutron/dex/tx.proto", } func (m *DepositOptions) Marshal() (dAtA []byte, err error) { diff --git a/x/epochs/types/genesis.pb.go b/x/epochs/types/genesis.pb.go index b0253a65a..d89510958 100644 --- a/x/epochs/types/genesis.pb.go +++ b/x/epochs/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/epochs/genesis.proto +// source: neutron/epochs/genesis.proto package types @@ -77,7 +77,7 @@ func (m *EpochInfo) Reset() { *m = EpochInfo{} } func (m *EpochInfo) String() string { return proto.CompactTextString(m) } func (*EpochInfo) ProtoMessage() {} func (*EpochInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_865ee7616311a8aa, []int{0} + return fileDescriptor_924a4bf36f8131d7, []int{0} } func (m *EpochInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -164,7 +164,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_865ee7616311a8aa, []int{1} + return fileDescriptor_924a4bf36f8131d7, []int{1} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -201,44 +201,43 @@ func (m *GenesisState) GetEpochs() []EpochInfo { } func init() { - proto.RegisterType((*EpochInfo)(nil), "duality.epochs.EpochInfo") - proto.RegisterType((*GenesisState)(nil), "duality.epochs.GenesisState") + proto.RegisterType((*EpochInfo)(nil), "neutron.epochs.EpochInfo") + proto.RegisterType((*GenesisState)(nil), "neutron.epochs.GenesisState") } -func init() { proto.RegisterFile("duality/epochs/genesis.proto", fileDescriptor_865ee7616311a8aa) } +func init() { proto.RegisterFile("neutron/epochs/genesis.proto", fileDescriptor_924a4bf36f8131d7) } -var fileDescriptor_865ee7616311a8aa = []byte{ - // 465 bytes of a gzipped FileDescriptorProto +var fileDescriptor_924a4bf36f8131d7 = []byte{ + // 463 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4d, 0x8f, 0xd3, 0x30, - 0x10, 0xad, 0x69, 0x29, 0xa9, 0x59, 0xbe, 0xac, 0x05, 0x42, 0x05, 0x49, 0x14, 0x2e, 0x95, 0x00, - 0x47, 0x7c, 0x48, 0x48, 0x70, 0x2b, 0xa0, 0x5d, 0x38, 0xa6, 0x1c, 0x10, 0x97, 0x2a, 0x6d, 0x5d, - 0xc7, 0x52, 0x13, 0x47, 0xc9, 0x44, 0xa2, 0x37, 0x7e, 0x42, 0x8f, 0xfc, 0xa4, 0x3d, 0xee, 0x91, - 0x53, 0x40, 0xed, 0x8d, 0xe3, 0xfe, 0x02, 0x14, 0xdb, 0x29, 0x5d, 0x0a, 0xda, 0x5b, 0x3c, 0xef, - 0xcd, 0x7b, 0x9e, 0x97, 0x31, 0xbe, 0x3f, 0x2b, 0xa3, 0x85, 0x80, 0x65, 0xc0, 0x32, 0x39, 0x8d, - 0x8b, 0x80, 0xb3, 0x94, 0x15, 0xa2, 0xa0, 0x59, 0x2e, 0x41, 0x92, 0xeb, 0x06, 0xa5, 0x1a, 0xed, - 0x1f, 0x72, 0xc9, 0xa5, 0x82, 0x82, 0xfa, 0x4b, 0xb3, 0xfa, 0x0e, 0x97, 0x92, 0x2f, 0x58, 0xa0, - 0x4e, 0x93, 0x72,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, 0xd3, 0x3a, 0xdd, 0x38, + 0xad, 0xef, 0x1b, 0xa7, 0xf5, 0xf9, 0x88, 0x71, 0x48, 0xca, 0x69, 0x30, 0x93, 0x69, 0x68, 0xc4, + 0x8e, 0x64, 0xce, 0x9a, 0x73, 0xf8, 0xa5, 0x79, 0x13, 0xb0, 0xcc, 0x68, 0x31, 0xed, 0xaa, 0x88, + 0x9f, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x27, 0xb8, 0xfb, 0x5b, 0x32, 0x03, 0x00, 0x00, } func (m *EpochInfo) Marshal() (dAtA []byte, err error) { diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go index e11a1f169..26f6b8c3c 100644 --- a/x/epochs/types/query.pb.go +++ b/x/epochs/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/epochs/query.proto +// source: neutron/epochs/query.proto package types @@ -37,7 +37,7 @@ func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryEpochsInfoRequest) ProtoMessage() {} func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_46bcc0d8d0692f49, []int{0} + return fileDescriptor_11ec49a7f39aeaae, []int{0} } func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,7 +74,7 @@ func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryEpochsInfoResponse) ProtoMessage() {} func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_46bcc0d8d0692f49, []int{1} + return fileDescriptor_11ec49a7f39aeaae, []int{1} } func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,7 +118,7 @@ func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochReque func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } func (*QueryCurrentEpochRequest) ProtoMessage() {} func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_46bcc0d8d0692f49, []int{2} + return fileDescriptor_11ec49a7f39aeaae, []int{2} } func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -162,7 +162,7 @@ func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResp func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } func (*QueryCurrentEpochResponse) ProtoMessage() {} func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_46bcc0d8d0692f49, []int{3} + return fileDescriptor_11ec49a7f39aeaae, []int{3} } func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -199,42 +199,41 @@ func (m *QueryCurrentEpochResponse) GetCurrentEpoch() int64 { } func init() { - proto.RegisterType((*QueryEpochsInfoRequest)(nil), "duality.epochs.QueryEpochsInfoRequest") - proto.RegisterType((*QueryEpochsInfoResponse)(nil), "duality.epochs.QueryEpochsInfoResponse") - proto.RegisterType((*QueryCurrentEpochRequest)(nil), "duality.epochs.QueryCurrentEpochRequest") - proto.RegisterType((*QueryCurrentEpochResponse)(nil), "duality.epochs.QueryCurrentEpochResponse") -} - -func init() { proto.RegisterFile("duality/epochs/query.proto", fileDescriptor_46bcc0d8d0692f49) } - -var fileDescriptor_46bcc0d8d0692f49 = []byte{ - // 402 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6b, 0xdb, 0x30, - 0x1c, 0xc5, 0xed, 0x64, 0x0b, 0x4c, 0xcb, 0x76, 0x10, 0x23, 0x73, 0xcc, 0xa6, 0x04, 0x8f, 0x6d, - 0xd9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 0x02, - 0x00, 0x00, + proto.RegisterType((*QueryEpochsInfoRequest)(nil), "neutron.epochs.QueryEpochsInfoRequest") + proto.RegisterType((*QueryEpochsInfoResponse)(nil), "neutron.epochs.QueryEpochsInfoResponse") + proto.RegisterType((*QueryCurrentEpochRequest)(nil), "neutron.epochs.QueryCurrentEpochRequest") + proto.RegisterType((*QueryCurrentEpochResponse)(nil), "neutron.epochs.QueryCurrentEpochResponse") +} + +func init() { proto.RegisterFile("neutron/epochs/query.proto", fileDescriptor_11ec49a7f39aeaae) } + +var fileDescriptor_11ec49a7f39aeaae = []byte{ + // 400 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8b, 0xd3, 0x40, + 0x18, 0xc5, 0x93, 0x56, 0x0b, 0x8e, 0xd5, 0xc3, 0x20, 0x35, 0x0d, 0x3a, 0x2d, 0x11, 0xb5, 0x0a, + 0xcd, 0xd0, 0x7a, 0x10, 0x3c, 0x49, 0x45, 0xc4, 0xa3, 0x39, 0x7a, 0x91, 0x24, 0x4e, 0xa7, 0x03, + 0x76, 0xbe, 0x34, 0x33, 0x11, 0x7b, 0xf0, 0xb2, 0xc7, 0x3d, 0x2d, 0xf4, 0x9f, 0xea, 0xb1, 0xb0, + 0x97, 0x3d, 0x2d, 0x4b, 0xbb, 0x7f, 0xc8, 0xd2, 0x49, 0x5a, 0xda, 0x6c, 0x60, 0xf7, 0x94, 0x30, + 0xef, 0xbd, 0xdf, 0xbc, 0xef, 0x63, 0x90, 0x2b, 0x59, 0xa6, 0x53, 0x90, 0x94, 0x25, 0x10, 0x4f, + 0x14, 0x9d, 0x65, 0x2c, 0x9d, 0xfb, 0x49, 0x0a, 0x1a, 0xf0, 0xd3, 0x42, 0xf3, 0x73, 0xcd, 0x7d, + 0xc6, 0x81, 0x83, 0x91, 0xe8, 0xf6, 0x2f, 0x77, 0xb9, 0x2f, 0x38, 0x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0x16, 0x2d, 0xed, 0x3e, 0xff, 0xe0, 0x53, 0x1b, 0x35, 0x0f, 0xc7, 0xc0, 0xbd, 0x4a, 0x72, + 0xc5, 0x96, 0xdc, 0x77, 0xf7, 0x70, 0x16, 0x2d, 0x5e, 0x9b, 0x16, 0x1d, 0xfc, 0xb2, 0xdc, 0xe2, + 0x68, 0x53, 0xa3, 0x6f, 0xcb, 0x35, 0xb1, 0x57, 0x6b, 0x62, 0x5f, 0xad, 0x89, 0x7d, 0xb6, 0x21, + 0xd6, 0x6a, 0x43, 0xac, 0x8b, 0x0d, 0xb1, 0x7e, 0xf6, 0xb9, 0xd0, 0x93, 0x2c, 0xf2, 0x63, 0x98, + 0xee, 0x10, 0x7d, 0x48, 0xf9, 0x1e, 0xf7, 0x6f, 0x07, 0xd4, 0xf3, 0x84, 0xa9, 0xa8, 0x61, 0x5e, + 0xd4, 0x87, 0x9b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xda, 0x17, 0x4e, 0xb5, 0xfd, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -265,7 +264,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { out := new(QueryEpochsInfoResponse) - err := c.cc.Invoke(ctx, "/duality.epochs.Query/EpochInfos", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.epochs.Query/EpochInfos", in, out, opts...) if err != nil { return nil, err } @@ -274,7 +273,7 @@ func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { out := new(QueryCurrentEpochResponse) - err := c.cc.Invoke(ctx, "/duality.epochs.Query/CurrentEpoch", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.epochs.Query/CurrentEpoch", in, out, opts...) if err != nil { return nil, err } @@ -314,7 +313,7 @@ func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.epochs.Query/EpochInfos", + FullMethod: "/neutron.epochs.Query/EpochInfos", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) @@ -332,7 +331,7 @@ func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.epochs.Query/CurrentEpoch", + FullMethod: "/neutron.epochs.Query/CurrentEpoch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) @@ -341,7 +340,7 @@ func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func( } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "duality.epochs.Query", + ServiceName: "neutron.epochs.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -354,7 +353,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "duality/epochs/query.proto", + Metadata: "neutron/epochs/query.proto", } func (m *QueryEpochsInfoRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/epochs/types/query.pb.gw.go b/x/epochs/types/query.pb.gw.go index a20817322..3b0d42301 100644 --- a/x/epochs/types/query.pb.gw.go +++ b/x/epochs/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: duality/epochs/query.proto +// source: neutron/epochs/query.proto /* Package types is a reverse proxy. @@ -224,9 +224,9 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_EpochInfos_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1}, []string{"duality", "epochs"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_EpochInfos_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1}, []string{"neutron", "epochs"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "epochs", "current_epoch"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "epochs", "current_epoch"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/incentives/types/account_history.pb.go b/x/incentives/types/account_history.pb.go index daaa35b10..de7676f41 100644 --- a/x/incentives/types/account_history.pb.go +++ b/x/incentives/types/account_history.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/account_history.proto +// source: neutron/incentives/account_history.proto package types @@ -37,7 +37,7 @@ func (m *AccountHistory) Reset() { *m = AccountHistory{} } func (m *AccountHistory) String() string { return proto.CompactTextString(m) } func (*AccountHistory) ProtoMessage() {} func (*AccountHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_69dfb106c545010e, []int{0} + return fileDescriptor_6b167edf56b0451f, []int{0} } func (m *AccountHistory) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,17 +81,17 @@ func (m *AccountHistory) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { } func init() { - proto.RegisterType((*AccountHistory)(nil), "duality.incentives.AccountHistory") + proto.RegisterType((*AccountHistory)(nil), "neutron.incentives.AccountHistory") } func init() { - proto.RegisterFile("duality/incentives/account_history.proto", fileDescriptor_69dfb106c545010e) + proto.RegisterFile("neutron/incentives/account_history.proto", fileDescriptor_6b167edf56b0451f) } -var fileDescriptor_69dfb106c545010e = []byte{ - // 263 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x4f, +var fileDescriptor_6b167edf56b0451f = []byte{ + // 262 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x89, 0xcf, 0xc8, 0x2c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xaa, 0xd4, 0x43, 0xa8, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x52, 0x72, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, @@ -102,11 +102,11 @@ var fileDescriptor_69dfb106c545010e = []byte{ 0xf5, 0x40, 0x86, 0xeb, 0x41, 0x0d, 0xd7, 0x73, 0xce, 0xcf, 0xcc, 0x73, 0x32, 0x38, 0x71, 0x4f, 0x9e, 0x61, 0xd5, 0x7d, 0x79, 0x8d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x4b, 0x20, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x49, 0x65, 0x41, 0x6a, 0x31, 0x58, - 0x43, 0x71, 0x10, 0xc4, 0x64, 0x27, 0x9f, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, + 0x43, 0x71, 0x10, 0xc4, 0x64, 0x27, 0xef, 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, 0x32, 0x42, 0x32, 0x0a, 0xea, 0x7d, 0xdd, 0x9c, 0xc4, 0xa4, 0x62, 0x18, 0x47, 0xbf, 0x02, - 0x39, 0xdc, 0xc0, 0x46, 0x27, 0xb1, 0x81, 0x3d, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xf0, - 0x48, 0x9b, 0xa0, 0x5a, 0x01, 0x00, 0x00, + 0x88, 0x32, 0x44, 0x32, 0x0a, 0xea, 0x7d, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0x02, 0x39, + 0xd8, 0xc0, 0x26, 0x27, 0xb1, 0x81, 0xfd, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x43, 0xc5, + 0xdc, 0x5f, 0x59, 0x01, 0x00, 0x00, } func (m *AccountHistory) Marshal() (dAtA []byte, err error) { diff --git a/x/incentives/types/gauge.pb.go b/x/incentives/types/gauge.pb.go index 9b1e87dd7..5265a1dc6 100644 --- a/x/incentives/types/gauge.pb.go +++ b/x/incentives/types/gauge.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/gauge.proto +// source: neutron/incentives/gauge.proto package types @@ -103,7 +103,7 @@ func (m *Gauge) Reset() { *m = Gauge{} } func (m *Gauge) String() string { return proto.CompactTextString(m) } func (*Gauge) ProtoMessage() {} func (*Gauge) Descriptor() ([]byte, []int) { - return fileDescriptor_13cec3b76ad4f381, []int{0} + return fileDescriptor_2467fab98b594cb6, []int{0} } func (m *Gauge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -214,7 +214,7 @@ func (m *QueryCondition) Reset() { *m = QueryCondition{} } func (m *QueryCondition) String() string { return proto.CompactTextString(m) } func (*QueryCondition) ProtoMessage() {} func (*QueryCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_13cec3b76ad4f381, []int{1} + return fileDescriptor_2467fab98b594cb6, []int{1} } func (m *QueryCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -265,50 +265,50 @@ func (m *QueryCondition) GetEndTick() int64 { } func init() { - proto.RegisterType((*Gauge)(nil), "duality.incentives.Gauge") - proto.RegisterType((*QueryCondition)(nil), "duality.incentives.QueryCondition") + proto.RegisterType((*Gauge)(nil), "neutron.incentives.Gauge") + proto.RegisterType((*QueryCondition)(nil), "neutron.incentives.QueryCondition") } -func init() { proto.RegisterFile("duality/incentives/gauge.proto", fileDescriptor_13cec3b76ad4f381) } +func init() { proto.RegisterFile("neutron/incentives/gauge.proto", fileDescriptor_2467fab98b594cb6) } -var fileDescriptor_13cec3b76ad4f381 = []byte{ - // 564 bytes of a gzipped FileDescriptorProto +var fileDescriptor_2467fab98b594cb6 = []byte{ + // 566 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0x8d, 0x9b, 0xf4, 0x6f, 0xd2, 0x56, 0x5f, 0xe7, 0xeb, 0xc2, 0xad, 0xc0, 0x09, 0x61, 0x63, - 0x09, 0x75, 0x86, 0x86, 0x1d, 0xcb, 0x14, 0x84, 0x90, 0x40, 0x04, 0x2b, 0x0b, 0xc4, 0xc6, 0x1a, - 0x7b, 0xa6, 0xee, 0x55, 0x6c, 0x8f, 0xe5, 0x19, 0x47, 0xc9, 0x5b, 0xf4, 0x39, 0x78, 0x03, 0xde, - 0xa0, 0xcb, 0x2e, 0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0xb7, + 0x57, 0xc5, 0x20, 0xf9, 0xf8, 0x53, 0xc9, 0x43, 0x9e, 0x44, 0xbe, 0xe6, 0xe1, 0xdc, 0x3e, 0x1e, + 0x58, 0x6e, 0xdd, 0x6b, 0x97, 0xd8, 0x8c, 0x87, 0xf3, 0x61, 0x06, 0x4e, 0x7f, 0x9f, 0x2a, 0x7c, + 0x06, 0x5a, 0xf9, 0x7a, 0xbd, 0x7d, 0x65, 0xf6, 0xa8, 0x3d, 0xfe, 0xff, 0xd7, 0x26, 0x50, 0xb6, + 0x42, 0x53, 0x43, 0x79, 0x65, 0x08, 0x7c, 0x04, 0x2a, 0xfb, 0xc2, 0xb9, 0xd9, 0xae, 0xba, 0xb7, + 0x03, 0xa0, 0x0d, 0x0e, 0x59, 0x42, 0x0d, 0x57, 0x37, 0x5c, 0x75, 0x9d, 0xbc, 0xbb, 0xdd, 0x38, + 0xd6, 0xdd, 0xc6, 0xb1, 0xbe, 0x6f, 0x1c, 0xeb, 0x66, 0xeb, 0xd4, 0xee, 0xb6, 0x4e, 0xed, 0xdb, + 0xd6, 0xa9, 0x7d, 0x1e, 0xed, 0xe9, 0x2d, 0x0b, 0x5f, 0x08, 0x19, 0x55, 0x67, 0xbc, 0xda, 0xff, + 0x57, 0x8d, 0xfc, 0xa0, 0x65, 0x86, 0xfe, 0xe2, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xde, + 0x74, 0xfa, 0xce, 0x03, 0x00, 0x00, } func (m *Gauge) Marshal() (dAtA []byte, err error) { diff --git a/x/incentives/types/genesis.pb.go b/x/incentives/types/genesis.pb.go index 3e5c7de8c..5455123db 100644 --- a/x/incentives/types/genesis.pb.go +++ b/x/incentives/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/genesis.proto +// source: neutron/incentives/genesis.proto package types @@ -42,7 +42,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_a99219687c93d9eb, []int{0} + return fileDescriptor_98ecc78531d9ace2, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,34 +114,34 @@ func (m *GenesisState) GetAccountHistories() []*AccountHistory { } func init() { - proto.RegisterType((*GenesisState)(nil), "duality.incentives.GenesisState") + proto.RegisterType((*GenesisState)(nil), "neutron.incentives.GenesisState") } -func init() { proto.RegisterFile("duality/incentives/genesis.proto", fileDescriptor_a99219687c93d9eb) } +func init() { proto.RegisterFile("neutron/incentives/genesis.proto", fileDescriptor_98ecc78531d9ace2) } -var fileDescriptor_a99219687c93d9eb = []byte{ - // 333 bytes of a gzipped FileDescriptorProto +var fileDescriptor_98ecc78531d9ace2 = []byte{ + // 332 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4f, 0xc2, 0x30, - 0x18, 0xc6, 0x57, 0xc0, 0x1d, 0x8a, 0x26, 0xa6, 0xf1, 0x30, 0x77, 0x28, 0x0b, 0xa7, 0x5d, 0xdc, - 0x22, 0x5e, 0xbc, 0xca, 0x05, 0x49, 0x8c, 0x31, 0xe3, 0xe6, 0x85, 0x94, 0xad, 0x19, 0x8d, 0xb0, - 0x12, 0xda, 0x19, 0xf7, 0x2d, 0xfc, 0x54, 0x86, 0x23, 0x47, 0x4f, 0xc6, 0x6c, 0x5f, 0xc4, 0xb4, - 0x2b, 0x42, 0xc2, 0xf4, 0xd6, 0xbe, 0xcf, 0xef, 0x79, 0xff, 0x42, 0x2f, 0xc9, 0xc9, 0x82, 0xc9, - 0x22, 0x64, 0x59, 0x4c, 0x33, 0xc9, 0x5e, 0xa9, 0x08, 0x53, 0x9a, 0x51, 0xc1, 0x44, 0xb0, 0x5a, - 0x73, 0xc9, 0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x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/incentives/types/params.pb.go b/x/incentives/types/params.pb.go index 9abc27827..43335aa08 100644 --- a/x/incentives/types/params.pb.go +++ b/x/incentives/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/params.proto +// source: neutron/incentives/params.proto package types @@ -35,7 +35,7 @@ func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_7cfdf36cf57c01b8, []int{0} + return fileDescriptor_26b1e31ea29bccbb, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,15 +79,15 @@ func (m *Params) GetMaxGauges() uint64 { } func init() { - proto.RegisterType((*Params)(nil), "duality.incentives.Params") + proto.RegisterType((*Params)(nil), "neutron.incentives.Params") } -func init() { proto.RegisterFile("duality/incentives/params.proto", fileDescriptor_7cfdf36cf57c01b8) } +func init() { proto.RegisterFile("neutron/incentives/params.proto", fileDescriptor_26b1e31ea29bccbb) } -var fileDescriptor_7cfdf36cf57c01b8 = []byte{ - // 243 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xd4, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x2f, +var fileDescriptor_26b1e31ea29bccbb = []byte{ + // 242 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2d, 0x2d, + 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0x2a, 0xd0, 0x43, 0x28, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x4a, 0xd3, 0x19, 0xb9, 0xd8, 0x02, 0xc0, 0x5a, 0x85, 0xc2, 0xb9, 0xc4, 0x52, 0x32, 0x8b, 0x4b, 0x8a, @@ -96,12 +96,12 @@ var fileDescriptor_7cfdf36cf57c01b8 = []byte{ 0x52, 0xc2, 0xae, 0x4e, 0x29, 0x48, 0x04, 0x2c, 0xe1, 0x0a, 0x12, 0xf7, 0x84, 0x0b, 0x0b, 0x99, 0x70, 0x71, 0xe5, 0x26, 0x56, 0xc4, 0xa7, 0x27, 0x96, 0xa6, 0xa7, 0x16, 0x4b, 0x30, 0x29, 0x30, 0x6a, 0xb0, 0x38, 0x89, 0x7e, 0xba, 0x27, 0x2f, 0x08, 0x31, 0x0c, 0x21, 0xa7, 0x14, 0xc4, 0x99, - 0x9b, 0x58, 0xe1, 0x0e, 0x66, 0x3b, 0xf9, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, + 0x9b, 0x58, 0xe1, 0x0e, 0x66, 0x3b, 0x79, 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, 0x51, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0xa3, - 0xba, 0x39, 0x89, 0x49, 0xc5, 0x30, 0x8e, 0x7e, 0x05, 0x72, 0xc0, 0x94, 0x54, 0x16, 0xa4, 0x16, - 0x27, 0xb1, 0x81, 0xbd, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x56, 0x09, 0x16, 0x1d, 0x3b, - 0x01, 0x00, 0x00, + 0x43, 0x94, 0x61, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0xa3, + 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0x72, 0xb8, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x27, + 0xb1, 0x81, 0x7d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x9e, 0xe5, 0x1b, 0x3a, 0x01, + 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/incentives/types/query.pb.go b/x/incentives/types/query.pb.go index 6875b41a9..633166dcd 100644 --- a/x/incentives/types/query.pb.go +++ b/x/incentives/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/query.proto +// source: neutron/incentives/query.proto package types @@ -60,7 +60,7 @@ func (x GaugeStatus) String() string { } func (GaugeStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{0} + return fileDescriptor_04f05289607f461a, []int{0} } type GetModuleStatusRequest struct { @@ -70,7 +70,7 @@ func (m *GetModuleStatusRequest) Reset() { *m = GetModuleStatusRequest{} func (m *GetModuleStatusRequest) String() string { return proto.CompactTextString(m) } func (*GetModuleStatusRequest) ProtoMessage() {} func (*GetModuleStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{0} + return fileDescriptor_04f05289607f461a, []int{0} } func (m *GetModuleStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -110,7 +110,7 @@ func (m *GetModuleStatusResponse) Reset() { *m = GetModuleStatusResponse func (m *GetModuleStatusResponse) String() string { return proto.CompactTextString(m) } func (*GetModuleStatusResponse) ProtoMessage() {} func (*GetModuleStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{1} + return fileDescriptor_04f05289607f461a, []int{1} } func (m *GetModuleStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -169,7 +169,7 @@ func (m *GetGaugeByIDRequest) Reset() { *m = GetGaugeByIDRequest{} } func (m *GetGaugeByIDRequest) String() string { return proto.CompactTextString(m) } func (*GetGaugeByIDRequest) ProtoMessage() {} func (*GetGaugeByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{2} + return fileDescriptor_04f05289607f461a, []int{2} } func (m *GetGaugeByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -214,7 +214,7 @@ func (m *GetGaugeByIDResponse) Reset() { *m = GetGaugeByIDResponse{} } func (m *GetGaugeByIDResponse) String() string { return proto.CompactTextString(m) } func (*GetGaugeByIDResponse) ProtoMessage() {} func (*GetGaugeByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{3} + return fileDescriptor_04f05289607f461a, []int{3} } func (m *GetGaugeByIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -259,7 +259,7 @@ func (m *GetGaugeQualifyingValueRequest) Reset() { *m = GetGaugeQualifyi func (m *GetGaugeQualifyingValueRequest) String() string { return proto.CompactTextString(m) } func (*GetGaugeQualifyingValueRequest) ProtoMessage() {} func (*GetGaugeQualifyingValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{4} + return fileDescriptor_04f05289607f461a, []int{4} } func (m *GetGaugeQualifyingValueRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -304,7 +304,7 @@ func (m *GetGaugeQualifyingValueResponse) Reset() { *m = GetGaugeQualify func (m *GetGaugeQualifyingValueResponse) String() string { return proto.CompactTextString(m) } func (*GetGaugeQualifyingValueResponse) ProtoMessage() {} func (*GetGaugeQualifyingValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{5} + return fileDescriptor_04f05289607f461a, []int{5} } func (m *GetGaugeQualifyingValueResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -341,7 +341,7 @@ func (m *GetGaugeQualifyingValueResponse) GetQualifyingValue() uint64 { } type GetGaugesRequest struct { - Status GaugeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=duality.incentives.GaugeStatus" json:"status,omitempty"` + Status GaugeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=neutron.incentives.GaugeStatus" json:"status,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` } @@ -349,7 +349,7 @@ func (m *GetGaugesRequest) Reset() { *m = GetGaugesRequest{} } func (m *GetGaugesRequest) String() string { return proto.CompactTextString(m) } func (*GetGaugesRequest) ProtoMessage() {} func (*GetGaugesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{6} + return fileDescriptor_04f05289607f461a, []int{6} } func (m *GetGaugesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -401,7 +401,7 @@ func (m *GetGaugesResponse) Reset() { *m = GetGaugesResponse{} } func (m *GetGaugesResponse) String() string { return proto.CompactTextString(m) } func (*GetGaugesResponse) ProtoMessage() {} func (*GetGaugesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{7} + return fileDescriptor_04f05289607f461a, []int{7} } func (m *GetGaugesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -445,7 +445,7 @@ func (m *GetStakeByIDRequest) Reset() { *m = GetStakeByIDRequest{} } func (m *GetStakeByIDRequest) String() string { return proto.CompactTextString(m) } func (*GetStakeByIDRequest) ProtoMessage() {} func (*GetStakeByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{8} + return fileDescriptor_04f05289607f461a, []int{8} } func (m *GetStakeByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -489,7 +489,7 @@ func (m *GetStakeByIDResponse) Reset() { *m = GetStakeByIDResponse{} } func (m *GetStakeByIDResponse) String() string { return proto.CompactTextString(m) } func (*GetStakeByIDResponse) ProtoMessage() {} func (*GetStakeByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{9} + return fileDescriptor_04f05289607f461a, []int{9} } func (m *GetStakeByIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -533,7 +533,7 @@ func (m *GetStakesRequest) Reset() { *m = GetStakesRequest{} } func (m *GetStakesRequest) String() string { return proto.CompactTextString(m) } func (*GetStakesRequest) ProtoMessage() {} func (*GetStakesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{10} + return fileDescriptor_04f05289607f461a, []int{10} } func (m *GetStakesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -577,7 +577,7 @@ func (m *GetStakesResponse) Reset() { *m = GetStakesResponse{} } func (m *GetStakesResponse) String() string { return proto.CompactTextString(m) } func (*GetStakesResponse) ProtoMessage() {} func (*GetStakesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{11} + return fileDescriptor_04f05289607f461a, []int{11} } func (m *GetStakesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -627,7 +627,7 @@ func (m *GetFutureRewardEstimateRequest) Reset() { *m = GetFutureRewardE func (m *GetFutureRewardEstimateRequest) String() string { return proto.CompactTextString(m) } func (*GetFutureRewardEstimateRequest) ProtoMessage() {} func (*GetFutureRewardEstimateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{12} + return fileDescriptor_04f05289607f461a, []int{12} } func (m *GetFutureRewardEstimateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -687,7 +687,7 @@ func (m *GetFutureRewardEstimateResponse) Reset() { *m = GetFutureReward func (m *GetFutureRewardEstimateResponse) String() string { return proto.CompactTextString(m) } func (*GetFutureRewardEstimateResponse) ProtoMessage() {} func (*GetFutureRewardEstimateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{13} + return fileDescriptor_04f05289607f461a, []int{13} } func (m *GetFutureRewardEstimateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -732,7 +732,7 @@ func (m *GetAccountHistoryRequest) Reset() { *m = GetAccountHistoryReque func (m *GetAccountHistoryRequest) String() string { return proto.CompactTextString(m) } func (*GetAccountHistoryRequest) ProtoMessage() {} func (*GetAccountHistoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{14} + return fileDescriptor_04f05289607f461a, []int{14} } func (m *GetAccountHistoryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -777,7 +777,7 @@ func (m *GetAccountHistoryResponse) Reset() { *m = GetAccountHistoryResp func (m *GetAccountHistoryResponse) String() string { return proto.CompactTextString(m) } func (*GetAccountHistoryResponse) ProtoMessage() {} func (*GetAccountHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27b4715672276428, []int{15} + return fileDescriptor_04f05289607f461a, []int{15} } func (m *GetAccountHistoryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -814,96 +814,96 @@ func (m *GetAccountHistoryResponse) GetCoins() github_com_cosmos_cosmos_sdk_type } func init() { - proto.RegisterEnum("duality.incentives.GaugeStatus", GaugeStatus_name, GaugeStatus_value) - proto.RegisterType((*GetModuleStatusRequest)(nil), "duality.incentives.GetModuleStatusRequest") - proto.RegisterType((*GetModuleStatusResponse)(nil), "duality.incentives.GetModuleStatusResponse") - proto.RegisterType((*GetGaugeByIDRequest)(nil), "duality.incentives.GetGaugeByIDRequest") - proto.RegisterType((*GetGaugeByIDResponse)(nil), "duality.incentives.GetGaugeByIDResponse") - proto.RegisterType((*GetGaugeQualifyingValueRequest)(nil), "duality.incentives.GetGaugeQualifyingValueRequest") - proto.RegisterType((*GetGaugeQualifyingValueResponse)(nil), "duality.incentives.GetGaugeQualifyingValueResponse") - proto.RegisterType((*GetGaugesRequest)(nil), "duality.incentives.GetGaugesRequest") - proto.RegisterType((*GetGaugesResponse)(nil), "duality.incentives.GetGaugesResponse") - proto.RegisterType((*GetStakeByIDRequest)(nil), "duality.incentives.GetStakeByIDRequest") - proto.RegisterType((*GetStakeByIDResponse)(nil), "duality.incentives.GetStakeByIDResponse") - proto.RegisterType((*GetStakesRequest)(nil), "duality.incentives.GetStakesRequest") - proto.RegisterType((*GetStakesResponse)(nil), "duality.incentives.GetStakesResponse") - proto.RegisterType((*GetFutureRewardEstimateRequest)(nil), "duality.incentives.GetFutureRewardEstimateRequest") - proto.RegisterType((*GetFutureRewardEstimateResponse)(nil), "duality.incentives.GetFutureRewardEstimateResponse") - proto.RegisterType((*GetAccountHistoryRequest)(nil), "duality.incentives.GetAccountHistoryRequest") - proto.RegisterType((*GetAccountHistoryResponse)(nil), "duality.incentives.GetAccountHistoryResponse") -} - -func init() { proto.RegisterFile("duality/incentives/query.proto", fileDescriptor_27b4715672276428) } - -var fileDescriptor_27b4715672276428 = []byte{ + proto.RegisterEnum("neutron.incentives.GaugeStatus", GaugeStatus_name, GaugeStatus_value) + proto.RegisterType((*GetModuleStatusRequest)(nil), "neutron.incentives.GetModuleStatusRequest") + proto.RegisterType((*GetModuleStatusResponse)(nil), "neutron.incentives.GetModuleStatusResponse") + proto.RegisterType((*GetGaugeByIDRequest)(nil), "neutron.incentives.GetGaugeByIDRequest") + proto.RegisterType((*GetGaugeByIDResponse)(nil), "neutron.incentives.GetGaugeByIDResponse") + proto.RegisterType((*GetGaugeQualifyingValueRequest)(nil), "neutron.incentives.GetGaugeQualifyingValueRequest") + proto.RegisterType((*GetGaugeQualifyingValueResponse)(nil), "neutron.incentives.GetGaugeQualifyingValueResponse") + proto.RegisterType((*GetGaugesRequest)(nil), "neutron.incentives.GetGaugesRequest") + proto.RegisterType((*GetGaugesResponse)(nil), "neutron.incentives.GetGaugesResponse") + proto.RegisterType((*GetStakeByIDRequest)(nil), "neutron.incentives.GetStakeByIDRequest") + proto.RegisterType((*GetStakeByIDResponse)(nil), "neutron.incentives.GetStakeByIDResponse") + proto.RegisterType((*GetStakesRequest)(nil), "neutron.incentives.GetStakesRequest") + proto.RegisterType((*GetStakesResponse)(nil), "neutron.incentives.GetStakesResponse") + proto.RegisterType((*GetFutureRewardEstimateRequest)(nil), "neutron.incentives.GetFutureRewardEstimateRequest") + proto.RegisterType((*GetFutureRewardEstimateResponse)(nil), "neutron.incentives.GetFutureRewardEstimateResponse") + proto.RegisterType((*GetAccountHistoryRequest)(nil), "neutron.incentives.GetAccountHistoryRequest") + proto.RegisterType((*GetAccountHistoryResponse)(nil), "neutron.incentives.GetAccountHistoryResponse") +} + +func init() { proto.RegisterFile("neutron/incentives/query.proto", fileDescriptor_04f05289607f461a) } + +var fileDescriptor_04f05289607f461a = []byte{ // 1075 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x4f, 0x1b, 0xc7, - 0x1b, 0x66, 0xcd, 0x9f, 0xe0, 0x01, 0x81, 0x7f, 0x13, 0xf4, 0xab, 0x71, 0x53, 0x1b, 0x8d, 0x42, - 0x31, 0x24, 0x78, 0xc1, 0x51, 0x95, 0x2a, 0x55, 0x0e, 0x31, 0x01, 0xe3, 0x2a, 0x49, 0x93, 0xa5, - 0xcd, 0xa1, 0x97, 0xd5, 0xd8, 0x9e, 0x2c, 0xab, 0xd8, 0x3b, 0xc6, 0x33, 0x4b, 0x6a, 0x51, 0x7a, + 0x1b, 0x66, 0x0d, 0x76, 0xf0, 0x80, 0xc0, 0xbf, 0x09, 0xfa, 0xd5, 0xb8, 0xa9, 0x8d, 0x46, 0xa1, + 0x18, 0x12, 0xbc, 0xd8, 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0x51, 0x17, 0xa2, 0x2c, 0xe5, 0x47, 0xd6, 0x50, 0x3e, 0x4c, 0xf4, 0x24, 0x70, 0x7d, 0xd6, - 0x73, 0x3d, 0xe7, 0x29, 0x6d, 0xf9, 0x2c, 0xae, 0xf4, 0x03, 0x54, 0x88, 0x8d, 0xd0, 0x28, 0x96, - 0x51, 0x66, 0xaf, 0x6f, 0xb2, 0xf7, 0x03, 0x9b, 0x4e, 0x30, 0xbb, 0x37, 0x1c, 0x42, 0x28, 0xca, - 0x84, 0xd9, 0xc2, 0x9d, 0x83, 0x6f, 0xa3, 0x09, 0x01, 0xfb, 0x05, 0x82, 0x66, 0xca, 0x85, 0xd8, - 0x2e, 0xf4, 0xb6, 0xd2, 0xee, 0x78, 0x0e, 0x8d, 0x37, 0x99, 0xc7, 0xdb, 0xd9, 0xd4, 0x82, 0x51, - 0x4c, 0x5b, 0xea, 0x83, 0x6c, 0xa1, 0xff, 0x0d, 0x94, 0xd0, 0x10, 0xd7, 0xd1, 0x04, 0x10, 0x70, - 0xba, 0xf7, 0x62, 0x99, 0xd2, 0x8e, 0x64, 0x0d, 0x46, 0xb3, 0x13, 0x8c, 0x79, 0x70, 0x34, 0xf3, - 0x68, 0x12, 0x46, 0x6f, 0xf7, 0x59, 0xba, 0x02, 0xdf, 0xb5, 0x70, 0x4a, 0x03, 0x11, 0xa7, 0x53, - 0x02, 0x97, 0xa4, 0x29, 0x41, 0x94, 0xa5, 0xfc, 0xc8, 0x1d, 0x60, 0x09, 0x96, 0xfa, 0x2c, 0x7d, - 0x8c, 0xc6, 0xf9, 0x0b, 0x8f, 0x75, 0x21, 0x49, 0xba, 0x92, 0x79, 0x7b, 0x54, 0x98, 0xee, 0xd1, - 0x76, 0xeb, 0x0e, 0x81, 0x65, 0x62, 0x29, 0xb3, 0x6e, 0x3f, 0x8c, 0x3d, 0x6d, 0x1f, 0x32, 0x27, - 0xb6, 0xaf, 0x20, 0x68, 0x47, 0xf2, 0xd2, 0x80, 0xad, 0x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xf0, 0xdd, 0x0c, 0xa7, 0x34, 0x14, 0x71, + 0x3a, 0x25, 0x70, 0x49, 0x9a, 0x12, 0x44, 0x19, 0xd2, 0x8f, 0xdc, 0x01, 0x96, 0x60, 0x69, 0xc0, + 0xd2, 0x87, 0x28, 0xcd, 0x9e, 0xbb, 0xd4, 0x83, 0x24, 0xd9, 0x7a, 0xee, 0xcd, 0x51, 0x69, 0xba, + 0x6f, 0x75, 0x3b, 0x77, 0x08, 0x2c, 0x13, 0x43, 0x9a, 0x55, 0xfb, 0x61, 0xec, 0x69, 0xfb, 0x90, + 0x39, 0xb1, 0x7d, 0x09, 0x41, 0x39, 0x92, 0x17, 0x1a, 0x6c, 0x95, 0x4d, 0x5f, 0xf8, 0x1e, 0x35, + 0xe0, 0x70, 0x6d, 0x70, 0xe1, 0x74, 0x2d, 0x41, 0xdf, 0x12, 0x12, 0x7e, 0x1f, 0x65, 0x43, 0xca, + 0xe4, 0x59, 0x9c, 0x30, 0x26, 0x15, 0x67, 0x1c, 0x7f, 0x80, 0x90, 0xeb, 0x77, 0x4d, 0xda, 0x63, + 0xad, 0x5d, 0x79, 0x7e, 0xc6, 0x8d, 0xac, 0xeb, 0x77, 0x37, 0x60, 0x21, 0x80, 0x51, 0x8a, 0x85, + 0xa1, 0xba, 0xb3, 0x50, 0xfa, 0x9d, 0xe9, 0x8a, 0xcc, 0x4c, 0xb6, 0x50, 0xbe, 0x41, 0xc5, 0xbd, + 0x56, 0x8b, 0xf9, 0xae, 0xd8, 0x72, 0xb8, 0x60, 0x5e, 0x3f, 0xa4, 0xe1, 0x26, 0xba, 0x62, 0x49, + 0x83, 0x22, 0x02, 0xbf, 0x39, 0x2a, 0xcd, 0x48, 0x22, 0x94, 0x81, 0x18, 0xa1, 0x0b, 0xf9, 0x0e, + 0xcd, 0x47, 0x64, 0xfa, 0xcf, 0x3a, 0x59, 0xf9, 0x14, 0x4d, 0x0d, 0x9d, 0x25, 0x7c, 0x15, 0xcd, + 0xde, 0x5b,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d, 0x4c, 0x95, 0x0c, 0x00, 0x00, } @@ -950,7 +950,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) GetModuleStatus(ctx context.Context, in *GetModuleStatusRequest, opts ...grpc.CallOption) (*GetModuleStatusResponse, error) { out := new(GetModuleStatusResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetModuleStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetModuleStatus", in, out, opts...) if err != nil { return nil, err } @@ -959,7 +959,7 @@ func (c *queryClient) GetModuleStatus(ctx context.Context, in *GetModuleStatusRe func (c *queryClient) GetGaugeByID(ctx context.Context, in *GetGaugeByIDRequest, opts ...grpc.CallOption) (*GetGaugeByIDResponse, error) { out := new(GetGaugeByIDResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetGaugeByID", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetGaugeByID", in, out, opts...) if err != nil { return nil, err } @@ -968,7 +968,7 @@ func (c *queryClient) GetGaugeByID(ctx context.Context, in *GetGaugeByIDRequest, func (c *queryClient) GetGauges(ctx context.Context, in *GetGaugesRequest, opts ...grpc.CallOption) (*GetGaugesResponse, error) { out := new(GetGaugesResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetGauges", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetGauges", in, out, opts...) if err != nil { return nil, err } @@ -977,7 +977,7 @@ func (c *queryClient) GetGauges(ctx context.Context, in *GetGaugesRequest, opts func (c *queryClient) GetStakeByID(ctx context.Context, in *GetStakeByIDRequest, opts ...grpc.CallOption) (*GetStakeByIDResponse, error) { out := new(GetStakeByIDResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetStakeByID", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetStakeByID", in, out, opts...) if err != nil { return nil, err } @@ -986,7 +986,7 @@ func (c *queryClient) GetStakeByID(ctx context.Context, in *GetStakeByIDRequest, func (c *queryClient) GetStakes(ctx context.Context, in *GetStakesRequest, opts ...grpc.CallOption) (*GetStakesResponse, error) { out := new(GetStakesResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetStakes", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetStakes", in, out, opts...) if err != nil { return nil, err } @@ -995,7 +995,7 @@ func (c *queryClient) GetStakes(ctx context.Context, in *GetStakesRequest, opts func (c *queryClient) GetFutureRewardEstimate(ctx context.Context, in *GetFutureRewardEstimateRequest, opts ...grpc.CallOption) (*GetFutureRewardEstimateResponse, error) { out := new(GetFutureRewardEstimateResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetFutureRewardEstimate", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetFutureRewardEstimate", in, out, opts...) if err != nil { return nil, err } @@ -1004,7 +1004,7 @@ func (c *queryClient) GetFutureRewardEstimate(ctx context.Context, in *GetFuture func (c *queryClient) GetAccountHistory(ctx context.Context, in *GetAccountHistoryRequest, opts ...grpc.CallOption) (*GetAccountHistoryResponse, error) { out := new(GetAccountHistoryResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetAccountHistory", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetAccountHistory", in, out, opts...) if err != nil { return nil, err } @@ -1013,7 +1013,7 @@ func (c *queryClient) GetAccountHistory(ctx context.Context, in *GetAccountHisto func (c *queryClient) GetGaugeQualifyingValue(ctx context.Context, in *GetGaugeQualifyingValueRequest, opts ...grpc.CallOption) (*GetGaugeQualifyingValueResponse, error) { out := new(GetGaugeQualifyingValueResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Query/GetGaugeQualifyingValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetGaugeQualifyingValue", in, out, opts...) if err != nil { return nil, err } @@ -1086,7 +1086,7 @@ func _Query_GetModuleStatus_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetModuleStatus", + FullMethod: "/neutron.incentives.Query/GetModuleStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetModuleStatus(ctx, req.(*GetModuleStatusRequest)) @@ -1104,7 +1104,7 @@ func _Query_GetGaugeByID_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetGaugeByID", + FullMethod: "/neutron.incentives.Query/GetGaugeByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetGaugeByID(ctx, req.(*GetGaugeByIDRequest)) @@ -1122,7 +1122,7 @@ func _Query_GetGauges_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetGauges", + FullMethod: "/neutron.incentives.Query/GetGauges", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetGauges(ctx, req.(*GetGaugesRequest)) @@ -1140,7 +1140,7 @@ func _Query_GetStakeByID_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetStakeByID", + FullMethod: "/neutron.incentives.Query/GetStakeByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeByID(ctx, req.(*GetStakeByIDRequest)) @@ -1158,7 +1158,7 @@ func _Query_GetStakes_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetStakes", + FullMethod: "/neutron.incentives.Query/GetStakes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakes(ctx, req.(*GetStakesRequest)) @@ -1176,7 +1176,7 @@ func _Query_GetFutureRewardEstimate_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetFutureRewardEstimate", + FullMethod: "/neutron.incentives.Query/GetFutureRewardEstimate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetFutureRewardEstimate(ctx, req.(*GetFutureRewardEstimateRequest)) @@ -1194,7 +1194,7 @@ func _Query_GetAccountHistory_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetAccountHistory", + FullMethod: "/neutron.incentives.Query/GetAccountHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetAccountHistory(ctx, req.(*GetAccountHistoryRequest)) @@ -1212,7 +1212,7 @@ func _Query_GetGaugeQualifyingValue_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Query/GetGaugeQualifyingValue", + FullMethod: "/neutron.incentives.Query/GetGaugeQualifyingValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetGaugeQualifyingValue(ctx, req.(*GetGaugeQualifyingValueRequest)) @@ -1221,7 +1221,7 @@ func _Query_GetGaugeQualifyingValue_Handler(srv interface{}, ctx context.Context } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "duality.incentives.Query", + ServiceName: "neutron.incentives.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1258,7 +1258,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "duality/incentives/query.proto", + Metadata: "neutron/incentives/query.proto", } func (m *GetModuleStatusRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/incentives/types/query.pb.gw.go b/x/incentives/types/query.pb.gw.go index d3d797117..7d95daa11 100644 --- a/x/incentives/types/query.pb.gw.go +++ b/x/incentives/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: duality/incentives/query.proto +// source: neutron/incentives/query.proto /* Package types is a reverse proxy. @@ -806,21 +806,21 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_GetModuleStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"duality", "incentives", "v1beta1", "module_status"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetModuleStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron", "incentives", "v1beta1", "module_status"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetGaugeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "gauges", "id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetGaugeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "gauges", "id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetGauges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"duality", "incentives", "v1beta1", "gauges"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetGauges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron", "incentives", "v1beta1", "gauges"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"duality", "incentives", "stakes", "stake_id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetStakeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "incentives", "stakes", "stake_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"duality", "incentives", "stakes"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetStakes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "incentives", "stakes"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetFutureRewardEstimate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "future_rewards_estimate", "owner"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetFutureRewardEstimate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "future_rewards_estimate", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetAccountHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "account_history", "account"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetAccountHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "account_history", "account"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetGaugeQualifyingValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"duality", "incentives", "v1beta1", "get_gauge_qualifying_value", "id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetGaugeQualifyingValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "get_gauge_qualifying_value", "id"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/incentives/types/stake.pb.go b/x/incentives/types/stake.pb.go index d21e38a29..fd18e7e04 100644 --- a/x/incentives/types/stake.pb.go +++ b/x/incentives/types/stake.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/stake.proto +// source: neutron/incentives/stake.proto package types @@ -53,7 +53,7 @@ func (m *Stake) Reset() { *m = Stake{} } func (m *Stake) String() string { return proto.CompactTextString(m) } func (*Stake) ProtoMessage() {} func (*Stake) Descriptor() ([]byte, []int) { - return fileDescriptor_0b048b82a83f5ea3, []int{0} + return fileDescriptor_6900551d6712f42b, []int{0} } func (m *Stake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,38 +118,38 @@ func (m *Stake) GetStartDistEpoch() int64 { } func init() { - proto.RegisterType((*Stake)(nil), "duality.incentives.Stake") + proto.RegisterType((*Stake)(nil), "neutron.incentives.Stake") } -func init() { proto.RegisterFile("duality/incentives/stake.proto", fileDescriptor_0b048b82a83f5ea3) } +func init() { proto.RegisterFile("neutron/incentives/stake.proto", fileDescriptor_6900551d6712f42b) } -var fileDescriptor_0b048b82a83f5ea3 = []byte{ - // 397 bytes of a gzipped FileDescriptorProto +var fileDescriptor_6900551d6712f42b = []byte{ + // 396 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xb1, 0x6e, 0xdb, 0x30, 0x10, 0x15, 0xe5, 0xa8, 0x40, 0x98, 0x22, 0x48, 0x85, 0x0c, 0xaa, 0x07, 0x4a, 0xd0, 0x50, 0x68, - 0x68, 0xc8, 0xc6, 0x45, 0x97, 0x8e, 0xaa, 0x3b, 0x04, 0xe8, 0xa4, 0x76, 0xea, 0x12, 0x50, 0x32, - 0xab, 0x10, 0x91, 0x44, 0xc1, 0xa4, 0xd3, 0xea, 0x2f, 0xfc, 0x1d, 0xfd, 0x88, 0xce, 0x1e, 0x3d, - 0x76, 0x92, 0x0b, 0x7b, 0xeb, 0xe8, 0x2f, 0x08, 0x48, 0xca, 0xb0, 0x27, 0x89, 0xef, 0xdd, 0xdd, - 0x7b, 0xef, 0x0e, 0xa2, 0xd9, 0x82, 0x56, 0x5c, 0x75, 0x84, 0x37, 0x05, 0x6b, 0x14, 0x7f, 0x62, - 0x92, 0x48, 0x45, 0x1f, 0x19, 0x6e, 0xe7, 0x42, 0x09, 0xdf, 0x1f, 0x78, 0x7c, 0xe4, 0xc7, 0xd7, - 0xa5, 0x28, 0x85, 0xa1, 0x89, 0xfe, 0xb3, 0x95, 0xe3, 0xb0, 0x14, 0xa2, 0xac, 0x18, 0x31, 0xaf, - 0x7c, 0xf1, 0x83, 0x28, 0x5e, 0x33, 0xa9, 0x68, 0xdd, 0x0e, 0x05, 0xa8, 0x10, 0xb2, 0x16, 0x92, - 0xe4, 0x54, 0x32, 0xf2, 0x74, 0x9b, 0x33, 0x45, 0x6f, 0x49, 0x21, 0x78, 0x63, 0xf9, 0xf8, 0x8f, - 0x0b, 0xbd, 0xaf, 0x5a, 0xda, 0xbf, 0x84, 0xee, 0xdd, 0x34, 0x00, 0x11, 0x48, 0xce, 0x32, 0xf7, - 0x6e, 0xea, 0xbf, 0x81, 0x9e, 0xf8, 0xd9, 0xb0, 0x79, 0xe0, 0x46, 0x20, 0x39, 0x4f, 0xaf, 0xf6, - 0x7d, 0xf8, 0xb2, 0xa3, 0x75, 0xf5, 0x31, 0x36, 0x70, 0x9c, 0x59, 0xda, 0x6f, 0x21, 0x94, 0x8a, - 0xce, 0xd5, 0xbd, 0x96, 0x0e, 0x46, 0x11, 0x48, 0x2e, 0x26, 0x63, 0x6c, 0x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 0x7b, 0x5f, 0xf4, + 0xdb, 0xde, 0x57, 0xfa, 0x61, 0xd9, 0x87, 0xce, 0xff, 0x3e, 0xbc, 0x3c, 0x74, 0xbd, 0x85, 0x5a, + 0x28, 0x5e, 0xb7, 0x6a, 0xbe, 0xeb, 0xc3, 0x57, 0x56, 0xe4, 0xc0, 0xc6, 0x8b, 0x75, 0x88, 0xb2, + 0x53, 0x03, 0xe8, 0x31, 0x7e, 0x8e, 0x3d, 0x9d, 0x40, 0x06, 0x27, 0xd1, 0x28, 0x39, 0xbb, 0x7e, + 0x4d, 0x6d, 0x46, 0xaa, 0x33, 0xd2, 0x21, 0x23, 0xfd, 0x04, 0xa2, 0x49, 0xdf, 0x69, 0xad, 0xdf, + 0xeb, 0x30, 0xa9, 0x84, 0xba, 0x9f, 0x15, 0xb4, 0x84, 0x9a, 0x0d, 0x0b, 0xb1, 0x9f, 0x2b, 0x79, + 0xf7, 0xc0, 0xd4, 0xbc, 0xe5, 0xd2, 0x34, 0xc8, 0xcc, 0x4e, 0xf6, 0x13, 0x7c, 0x61, 0x0d, 0xdc, + 0x09, 0xa9, 0x6e, 0x79, 0x0b, 0xe5, 0x7d, 0xe0, 0x45, 0x28, 0x19, 0x65, 0xe7, 0x06, 0x9f, 0x0a, + 0xa9, 0x3e, 0x6b, 0x34, 0xfd, 0xb2, 0xdc, 0x10, 0xb4, 0xda, 0x10, 0xf4, 0x6f, 0x43, 0xd0, 0x62, + 0x4b, 0x9c, 0xd5, 0x96, 0x38, 0x7f, 0xb7, 0xc4, 0xf9, 0x3e, 0x39, 0x12, 0x1d, 0x0e, 0x7a, 0x05, + 0x5d, 0xb5, 0x7f, 0xb3, 0x5f, 0xc7, 0xe7, 0x37, 0x1e, 0x8a, 0x17, 0x66, 0x5f, 0xef, 0x9f, 0x03, + 0x00, 0x00, 0xff, 0xff, 0xad, 0x4f, 0xba, 0xca, 0x21, 0x02, 0x00, 0x00, } func (m *Stake) Marshal() (dAtA []byte, err error) { diff --git a/x/incentives/types/tx.pb.go b/x/incentives/types/tx.pb.go index 330a3cbce..5043cc76e 100644 --- a/x/incentives/types/tx.pb.go +++ b/x/incentives/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: duality/incentives/tx.proto +// source: neutron/incentives/tx.proto package types @@ -63,7 +63,7 @@ func (m *MsgCreateGauge) Reset() { *m = MsgCreateGauge{} } func (m *MsgCreateGauge) String() string { return proto.CompactTextString(m) } func (*MsgCreateGauge) ProtoMessage() {} func (*MsgCreateGauge) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{0} + return fileDescriptor_5fe3d35711153e8d, []int{0} } func (m *MsgCreateGauge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -148,7 +148,7 @@ func (m *MsgCreateGaugeResponse) Reset() { *m = MsgCreateGaugeResponse{} func (m *MsgCreateGaugeResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateGaugeResponse) ProtoMessage() {} func (*MsgCreateGaugeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{1} + return fileDescriptor_5fe3d35711153e8d, []int{1} } func (m *MsgCreateGaugeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -191,7 +191,7 @@ func (m *MsgAddToGauge) Reset() { *m = MsgAddToGauge{} } func (m *MsgAddToGauge) String() string { return proto.CompactTextString(m) } func (*MsgAddToGauge) ProtoMessage() {} func (*MsgAddToGauge) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{2} + return fileDescriptor_5fe3d35711153e8d, []int{2} } func (m *MsgAddToGauge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -248,7 +248,7 @@ func (m *MsgAddToGaugeResponse) Reset() { *m = MsgAddToGaugeResponse{} } func (m *MsgAddToGaugeResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddToGaugeResponse) ProtoMessage() {} func (*MsgAddToGaugeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{3} + return fileDescriptor_5fe3d35711153e8d, []int{3} } func (m *MsgAddToGaugeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -286,7 +286,7 @@ func (m *MsgStake) Reset() { *m = MsgStake{} } func (m *MsgStake) String() string { return proto.CompactTextString(m) } func (*MsgStake) ProtoMessage() {} func (*MsgStake) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{4} + return fileDescriptor_5fe3d35711153e8d, []int{4} } func (m *MsgStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -337,7 +337,7 @@ func (m *MsgStakeResponse) Reset() { *m = MsgStakeResponse{} } func (m *MsgStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgStakeResponse) ProtoMessage() {} func (*MsgStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{5} + return fileDescriptor_5fe3d35711153e8d, []int{5} } func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -383,7 +383,7 @@ func (m *MsgUnstake) Reset() { *m = MsgUnstake{} } func (m *MsgUnstake) String() string { return proto.CompactTextString(m) } func (*MsgUnstake) ProtoMessage() {} func (*MsgUnstake) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{6} + return fileDescriptor_5fe3d35711153e8d, []int{6} } func (m *MsgUnstake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -435,7 +435,7 @@ func (m *MsgUnstake_UnstakeDescriptor) Reset() { *m = MsgUnstake_Unstake func (m *MsgUnstake_UnstakeDescriptor) String() string { return proto.CompactTextString(m) } func (*MsgUnstake_UnstakeDescriptor) ProtoMessage() {} func (*MsgUnstake_UnstakeDescriptor) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{6, 0} + return fileDescriptor_5fe3d35711153e8d, []int{6, 0} } func (m *MsgUnstake_UnstakeDescriptor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -485,7 +485,7 @@ func (m *MsgUnstakeResponse) Reset() { *m = MsgUnstakeResponse{} } func (m *MsgUnstakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgUnstakeResponse) ProtoMessage() {} func (*MsgUnstakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e2cc69741b48f3e9, []int{7} + return fileDescriptor_5fe3d35711153e8d, []int{7} } func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -515,68 +515,68 @@ func (m *MsgUnstakeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUnstakeResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgCreateGauge)(nil), "duality.incentives.MsgCreateGauge") - proto.RegisterType((*MsgCreateGaugeResponse)(nil), "duality.incentives.MsgCreateGaugeResponse") - proto.RegisterType((*MsgAddToGauge)(nil), "duality.incentives.MsgAddToGauge") - proto.RegisterType((*MsgAddToGaugeResponse)(nil), "duality.incentives.MsgAddToGaugeResponse") - proto.RegisterType((*MsgStake)(nil), "duality.incentives.MsgStake") - proto.RegisterType((*MsgStakeResponse)(nil), "duality.incentives.MsgStakeResponse") - proto.RegisterType((*MsgUnstake)(nil), "duality.incentives.MsgUnstake") - proto.RegisterType((*MsgUnstake_UnstakeDescriptor)(nil), "duality.incentives.MsgUnstake.UnstakeDescriptor") - proto.RegisterType((*MsgUnstakeResponse)(nil), "duality.incentives.MsgUnstakeResponse") + proto.RegisterType((*MsgCreateGauge)(nil), "neutron.incentives.MsgCreateGauge") + proto.RegisterType((*MsgCreateGaugeResponse)(nil), "neutron.incentives.MsgCreateGaugeResponse") + proto.RegisterType((*MsgAddToGauge)(nil), "neutron.incentives.MsgAddToGauge") + proto.RegisterType((*MsgAddToGaugeResponse)(nil), "neutron.incentives.MsgAddToGaugeResponse") + proto.RegisterType((*MsgStake)(nil), "neutron.incentives.MsgStake") + proto.RegisterType((*MsgStakeResponse)(nil), "neutron.incentives.MsgStakeResponse") + proto.RegisterType((*MsgUnstake)(nil), "neutron.incentives.MsgUnstake") + proto.RegisterType((*MsgUnstake_UnstakeDescriptor)(nil), "neutron.incentives.MsgUnstake.UnstakeDescriptor") + proto.RegisterType((*MsgUnstakeResponse)(nil), "neutron.incentives.MsgUnstakeResponse") } -func init() { proto.RegisterFile("duality/incentives/tx.proto", fileDescriptor_e2cc69741b48f3e9) } +func init() { proto.RegisterFile("neutron/incentives/tx.proto", fileDescriptor_5fe3d35711153e8d) } -var fileDescriptor_e2cc69741b48f3e9 = []byte{ +var fileDescriptor_5fe3d35711153e8d = []byte{ // 741 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcb, 0x4e, 0xdb, 0x40, - 0x14, 0x8d, 0xf3, 0x20, 0x61, 0x02, 0x08, 0x2c, 0xda, 0x1a, 0x17, 0x39, 0xc1, 0xaa, 0x50, 0x5a, - 0x09, 0x1b, 0xd2, 0x5d, 0x77, 0x0d, 0x54, 0x15, 0x2a, 0x51, 0xc1, 0x4d, 0x55, 0x09, 0xa9, 0xb2, - 0x26, 0xf6, 0xd4, 0x8c, 0x92, 0x78, 0xac, 0x99, 0x71, 0x20, 0x3f, 0xd0, 0x4d, 0x37, 0x6c, 0xfa, - 0x13, 0xfd, 0x83, 0xf6, 0x0b, 0x58, 0xb2, 0xec, 0x0a, 0x10, 0xfc, 0x01, 0x5f, 0x50, 0xf9, 0x99, - 0xf0, 0x0a, 0xad, 0xd4, 0x76, 0x65, 0x66, 0xce, 0xbd, 0x87, 0x73, 0xcf, 0xb9, 0x76, 0xc0, 0x63, - 0xdb, 0x87, 0x5d, 0xcc, 0x07, 0x3a, 0x76, 0x2d, 0xe4, 0x72, 0xdc, 0x47, 0x4c, 0xe7, 0x07, 0x9a, - 0x47, 0x09, 0x27, 0xa2, 0x18, 0x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 0xcf, 0xf9, 0x7b, 0x7a, 0x22, 0x54, 0x7e, 0x34, 0x0a, 0xcd, 0xc8, 0xb6, 0xa1, 0x9c, 0xee, 0x8b, + 0x32, 0x3a, 0x75, 0x79, 0x71, 0x34, 0x9e, 0x52, 0x36, 0x37, 0x8f, 0x2f, 0x14, 0xe1, 0xe4, 0x42, + 0x11, 0xce, 0x2f, 0x14, 0xe1, 0xe8, 0x52, 0xc9, 0x9d, 0x5c, 0x2a, 0xb9, 0xef, 0x97, 0x4a, 0x6e, + 0x67, 0x65, 0x28, 0xc3, 0x84, 0x6b, 0x89, 0x50, 0x37, 0xbd, 0xd7, 0x0f, 0xae, 0xfd, 0x13, 0x86, + 0x91, 0x76, 0xc6, 0xa2, 0xef, 0xe1, 0xd3, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x41, 0xec, 0xc5, + 0x1c, 0x2c, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -611,7 +611,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) CreateGauge(ctx context.Context, in *MsgCreateGauge, opts ...grpc.CallOption) (*MsgCreateGaugeResponse, error) { out := new(MsgCreateGaugeResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Msg/CreateGauge", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/CreateGauge", in, out, opts...) if err != nil { return nil, err } @@ -620,7 +620,7 @@ func (c *msgClient) CreateGauge(ctx context.Context, in *MsgCreateGauge, opts .. func (c *msgClient) AddToGauge(ctx context.Context, in *MsgAddToGauge, opts ...grpc.CallOption) (*MsgAddToGaugeResponse, error) { out := new(MsgAddToGaugeResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Msg/AddToGauge", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/AddToGauge", in, out, opts...) if err != nil { return nil, err } @@ -629,7 +629,7 @@ func (c *msgClient) AddToGauge(ctx context.Context, in *MsgAddToGauge, opts ...g func (c *msgClient) Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) { out := new(MsgStakeResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Msg/Stake", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/Stake", in, out, opts...) if err != nil { return nil, err } @@ -638,7 +638,7 @@ func (c *msgClient) Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOp func (c *msgClient) Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) { out := new(MsgUnstakeResponse) - err := c.cc.Invoke(ctx, "/duality.incentives.Msg/Unstake", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/Unstake", in, out, opts...) if err != nil { return nil, err } @@ -688,7 +688,7 @@ func _Msg_CreateGauge_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Msg/CreateGauge", + FullMethod: "/neutron.incentives.Msg/CreateGauge", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateGauge(ctx, req.(*MsgCreateGauge)) @@ -706,7 +706,7 @@ func _Msg_AddToGauge_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Msg/AddToGauge", + FullMethod: "/neutron.incentives.Msg/AddToGauge", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddToGauge(ctx, req.(*MsgAddToGauge)) @@ -724,7 +724,7 @@ func _Msg_Stake_Handler(srv interface{}, ctx context.Context, dec func(interface } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Msg/Stake", + FullMethod: "/neutron.incentives.Msg/Stake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Stake(ctx, req.(*MsgStake)) @@ -742,7 +742,7 @@ func _Msg_Unstake_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/duality.incentives.Msg/Unstake", + FullMethod: "/neutron.incentives.Msg/Unstake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Unstake(ctx, req.(*MsgUnstake)) @@ -751,7 +751,7 @@ func _Msg_Unstake_Handler(srv interface{}, ctx context.Context, dec func(interfa } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "duality.incentives.Msg", + ServiceName: "neutron.incentives.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -772,7 +772,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "duality/incentives/tx.proto", + Metadata: "neutron/incentives/tx.proto", } func (m *MsgCreateGauge) Marshal() (dAtA []byte, err error) { From ad4718161ca655fd5a931aacf31f583d823e0cdb Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 28 Sep 2023 17:18:55 -0400 Subject: [PATCH 175/307] update duality code to connect with neutron --- app/app.go | 120 +++++++++++++++++- go.mod | 6 +- tests/ibc/gmp_swap_forward_test.go | 6 +- tests/ibc/ibc_setup_test.go | 23 ++-- tests/ibc/swap_forward_test.go | 4 +- tests/ibc/swap_test.go | 4 +- testutil/apptesting/test_suite.go | 22 +--- testutil/consumer/test_helpers.go | 17 +++ testutil/contractmanager/network/network.go | 4 + testutil/cron/network/network.go | 4 + testutil/integration_test_setup.go | 4 - testutil/interchaintxs/network/network.go | 4 + x/dex/keeper/core_helper_test.go | 25 ++-- ...grpc_query_estimate_multi_hop_swap_test.go | 2 +- x/dex/keeper/grpc_query_user_deposits_test.go | 3 +- x/dex/keeper/integration_multihopswap_test.go | 2 +- x/dex/keeper/liquidity_test.go | 3 +- x/dex/keeper/msg_server_test.go | 30 ++--- x/epochs/keeper/abci_test.go | 4 +- x/epochs/keeper/genesis_test.go | 6 +- x/gmp/ibc_middleware.go | 3 +- x/ibcswap/types/swap_test.go | 17 ++- x/incentives/keeper/distributor_test.go | 4 +- x/incentives/keeper/utils_test.go | 4 +- x/incentives/types/expected_keepers.go | 5 +- 25 files changed, 222 insertions(+), 104 deletions(-) diff --git a/app/app.go b/app/app.go index 798cc7f48..389d3d8ba 100644 --- a/app/app.go +++ b/app/app.go @@ -150,6 +150,24 @@ import ( routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + "github.com/neutron-org/neutron/x/dex" + dexkeeper "github.com/neutron-org/neutron/x/dex/keeper" + dextypes "github.com/neutron-org/neutron/x/dex/types" + + "github.com/neutron-org/neutron/x/incentives" + incentiveskeeper "github.com/neutron-org/neutron/x/incentives/keeper" + incentivestypes "github.com/neutron-org/neutron/x/incentives/types" + + "github.com/neutron-org/neutron/x/epochs" + epochskeeper "github.com/neutron-org/neutron/x/epochs/keeper" + epochstypes "github.com/neutron-org/neutron/x/epochs/types" + + "github.com/neutron-org/neutron/x/ibcswap" + ibcswapkeeper "github.com/neutron-org/neutron/x/ibcswap/keeper" + ibcswaptypes "github.com/neutron-org/neutron/x/ibcswap/types" + + gmpmiddleware "github.com/neutron-org/neutron/x/gmp" + // Block-sdk imports blocksdkabci "github.com/skip-mev/block-sdk/abci" signer_extraction_adapter "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter" @@ -218,6 +236,10 @@ var ( router.AppModuleBasic{}, auction.AppModuleBasic{}, globalfee.AppModule{}, + dex.AppModuleBasic{}, + ibcswap.AppModuleBasic{}, + epochs.AppModuleBasic{}, + incentives.AppModuleBasic{}, ) // module account permissions @@ -234,6 +256,8 @@ var ( ccvconsumertypes.ConsumerToSendToProviderName: nil, tokenfactorytypes.ModuleName: {authtypes.Minter, authtypes.Burner}, crontypes.ModuleName: nil, + dextypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking}, + incentivestypes.ModuleName: nil, } ) @@ -297,6 +321,10 @@ type App struct { TokenFactoryKeeper *tokenfactorykeeper.Keeper CronKeeper cronkeeper.Keeper RouterKeeper *routerkeeper.Keeper + DexKeeper dexkeeper.Keeper + SwapKeeper ibcswapkeeper.Keeper + IncentivesKeeper *incentiveskeeper.Keeper + EpochsKeeper *epochskeeper.Keeper RouterModule router.AppModule @@ -381,7 +409,7 @@ func New( icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, - crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, + crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, dextypes.StoreKey, incentivestypes.StoreKey, epochstypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, feetypes.MemStoreKey) @@ -604,6 +632,59 @@ func New( authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) + app.DexKeeper = *dexkeeper.NewKeeper( + appCodec, + keys[dextypes.StoreKey], + keys[dextypes.MemStoreKey], + app.GetSubspace(dextypes.ModuleName), + app.BankKeeper, + ) + + dexModule := dex.NewAppModule(appCodec, app.DexKeeper, app.BankKeeper) + + app.SwapKeeper = ibcswapkeeper.NewKeeper( + appCodec, + app.MsgServiceRouter(), + app.IBCKeeper.ChannelKeeper, + app.BankKeeper, + ) + + swapModule := ibcswap.NewAppModule(app.SwapKeeper) + + app.EpochsKeeper = epochskeeper.NewKeeper(keys[epochstypes.StoreKey]) + + app.IncentivesKeeper = incentiveskeeper.NewKeeper( + keys[incentivestypes.StoreKey], + app.GetSubspace(incentivestypes.ModuleName), + app.AccountKeeper, + app.BankKeeper, + app.EpochsKeeper, + app.DexKeeper, + // JCP TODO: confirm this is correct + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), + ) + + app.IncentivesKeeper.SetHooks( + incentivestypes.NewMultiIncentiveHooks( + // insert Incentives hooks receivers here + ), + ) + + incentivesModule := incentives.NewAppModule( + app.IncentivesKeeper, + app.AccountKeeper, + app.BankKeeper, + app.EpochsKeeper, + ) + + app.EpochsKeeper.SetHooks(epochstypes.NewMultiEpochHooks( + app.IncentivesKeeper.Hooks(), + )) + + // NB: This must be initialized AFTER app.EpochsKeeper.SetHooks() because otherwise + // we dereference an out-of-date EpochsKeeper. + epochsModule := epochs.NewAppModule(*app.EpochsKeeper) + wasmDir := filepath.Join(homePath, "wasm") wasmConfig, err := wasm.ReadWasmConfig(appOpts) if err != nil { @@ -718,7 +799,7 @@ func New( app.RouterModule = router.NewAppModule(app.RouterKeeper) - ibcStack := router.NewIBCMiddleware( + var ibcStack ibcporttypes.IBCModule = router.NewIBCMiddleware( app.HooksTransferIBCModule, app.RouterKeeper, 0, @@ -726,6 +807,9 @@ func New( routerkeeper.DefaultRefundTransferPacketTimeoutTimestamp, ) + ibcStack = ibcswap.NewIBCMiddleware(ibcStack, app.SwapKeeper) + ibcStack = gmpmiddleware.NewIBCMiddleware(ibcStack) + ibcRouter.AddRoute(icacontrollertypes.SubModuleName, icaControllerStack). AddRoute(icahosttypes.SubModuleName, icaHostIBCModule). AddRoute(ibctransfertypes.ModuleName, ibcStack). @@ -773,6 +857,10 @@ func New( cronModule, globalfee.NewAppModule(app.GetSubspace(globalfee.ModuleName)), auction.NewAppModule(appCodec, app.AuctionKeeper), + swapModule, + dexModule, + incentivesModule, + epochsModule, crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them ) @@ -809,6 +897,10 @@ func New( routertypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, + ibcswaptypes.ModuleName, + dextypes.ModuleName, + incentivestypes.ModuleName, + epochstypes.ModuleName, ) app.mm.SetOrderEndBlockers( @@ -840,6 +932,12 @@ func New( routertypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, + ibcswaptypes.ModuleName, + incentivestypes.ModuleName, + epochstypes.ModuleName, + // NOTE: Because of the gas sensitivity of PurgeExpiredLimit order operations + // dexmodule must be the last endBlock module to run + dextypes.ModuleName, ) // NOTE: The genutils module must occur after staking so that pools are @@ -876,6 +974,10 @@ func New( routertypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, + ibcswaptypes.ModuleName, + dextypes.ModuleName, + incentivestypes.ModuleName, + epochstypes.ModuleName, ) app.mm.RegisterInvariants(&app.CrisisKeeper) @@ -904,6 +1006,7 @@ func New( interchainTxsModule, feeBurnerModule, cronModule, + dexModule, ) app.sm.RegisterStoreDecoders() @@ -1107,12 +1210,22 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo return app.mm.EndBlock(ctx, req) } +func (app *App) EnsureBlockGasMeter(ctx sdk.Context) { + // TrancheKey generation and LimitOrderExpirationPurge both rely on a BlockGas meter. + // check that it works at startup + cp := app.GetConsensusParams(ctx) + if cp == nil || cp.Block == nil || cp.Block.MaxGas <= 0 { + panic("BlockGas meter must be initialized. Genesis must provide value for Block.MaxGas") + } +} + // InitChainer application update at chain initialization func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain { var genesisState GenesisState if err := tmjson.Unmarshal(req.AppStateBytes, &genesisState); err != nil { panic(err) } + app.EnsureBlockGasMeter(ctx) app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap()) return app.mm.InitGenesis(ctx, app.appCodec, genesisState) } @@ -1244,6 +1357,9 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(tokenfactorytypes.StoreKey).WithKeyTable(tokenfactorytypes.ParamKeyTable()) paramsKeeper.Subspace(interchainqueriesmoduletypes.StoreKey).WithKeyTable(interchainqueriesmoduletypes.ParamKeyTable()) paramsKeeper.Subspace(interchaintxstypes.StoreKey).WithKeyTable(interchaintxstypes.ParamKeyTable()) + paramsKeeper.Subspace(dextypes.ModuleName) + paramsKeeper.Subspace(epochstypes.ModuleName) + paramsKeeper.Subspace(incentivestypes.ModuleName) return paramsKeeper } diff --git a/go.mod b/go.mod index a0f9c16f7..0a6c7f1ca 100644 --- a/go.mod +++ b/go.mod @@ -26,6 +26,7 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/iancoleman/orderedmap v0.2.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.30.0 @@ -37,6 +38,8 @@ require ( github.com/stretchr/testify v1.8.4 google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d google.golang.org/grpc v1.59.0 + golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb + google.golang.org/protobuf v1.31.0 gopkg.in/yaml.v2 v2.4.0 ) @@ -120,7 +123,6 @@ require ( github.com/hashicorp/hcl v1.0.0 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/huandu/skiplist v1.2.0 // indirect - github.com/iancoleman/orderedmap v0.2.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect @@ -167,7 +169,6 @@ require ( go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.12.0 // indirect - golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect golang.org/x/net v0.14.0 // indirect golang.org/x/oauth2 v0.11.0 // indirect golang.org/x/sync v0.3.0 // indirect @@ -179,7 +180,6 @@ require ( google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect - google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.7 // indirect diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 023c957a5..3048eea5c 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -7,9 +7,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" - "github.com/duality-labs/duality/x/dex/types" - "github.com/duality-labs/duality/x/gmp" - swaptypes "github.com/duality-labs/duality/x/ibcswap/types" + "github.com/neutron-org/neutron/x/dex/types" + "github.com/neutron-org/neutron/x/gmp" + swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" ) // TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Duality running as a diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index 98b50c608..1daca621b 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -5,6 +5,8 @@ import ( "fmt" "testing" + dbm "github.com/cometbft/cometbft-db" + "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -13,14 +15,13 @@ import ( ibctesting "github.com/cosmos/ibc-go/v7/testing" icsibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" - dbm "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" icstestingutils "github.com/cosmos/interchain-security/v3/testutil/ibc_testing" testutil "github.com/cosmos/interchain-security/v3/testutil/integration" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" ccv "github.com/cosmos/interchain-security/v3/x/ccv/types" - appduality "github.com/duality-labs/duality/app" - dextypes "github.com/duality-labs/duality/x/dex/types" + app "github.com/neutron-org/neutron/app" + dextypes "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/suite" ) @@ -224,21 +225,23 @@ func (s *IBCTestSuite) setupTransferChannel( } func dualityAppIniter() (icsibctesting.TestingApp, map[string]json.RawMessage) { - encoding := appduality.MakeEncodingConfig() - testApp := appduality.NewApp( + encoding := app.MakeEncodingConfig() + db := dbm.NewMemDB() + testApp := app.New( log.NewNopLogger(), - dbm.NewMemDB(), + "neutron-1", + db, nil, true, map[int64]bool{}, - appduality.DefaultNodeHome, - 5, - appduality.EmptyAppOptions{}, + app.DefaultNodeHome, + 0, encoding, + sims.EmptyAppOptions{}, nil, ) - return testApp, appduality.NewDefaultGenesisState(testApp.AppCodec()) + return testApp, app.NewDefaultGenesisState(testApp.AppCodec()) } func (s *IBCTestSuite) providerCtx() sdk.Context { diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 522db1a72..d9fc03af2 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" - "github.com/duality-labs/duality/x/dex/types" - swaptypes "github.com/duality-labs/duality/x/ibcswap/types" + "github.com/neutron-org/neutron/x/dex/types" + swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" "github.com/iancoleman/orderedmap" "golang.org/x/exp/maps" ) diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index 8cb1a8c0f..ab8973221 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" sdk "github.com/cosmos/cosmos-sdk/types" - dextypes "github.com/duality-labs/duality/x/dex/types" - swaptypes "github.com/duality-labs/duality/x/ibcswap/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" + swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" ) // TestIBCSwapMiddleware_Success asserts that the IBC swap middleware works as intended with Duality running as a diff --git a/testutil/apptesting/test_suite.go b/testutil/apptesting/test_suite.go index 4d11c3cbc..d3b3e4f84 100644 --- a/testutil/apptesting/test_suite.go +++ b/testutil/apptesting/test_suite.go @@ -14,9 +14,9 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/store/rootmulti" sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" + dexmoduletypes "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type KeeperTestHelper struct { // Setup sets up basic environment for suite (App, Ctx, and test accounts) func (s *KeeperTestHelper) Setup() { - s.App, _ = testutil.SetupTestingApp("neutron-1")() + s.App = testutil.Setup(s.T(), false) s.Ctx = s.App.BaseApp.NewContext( false, tmtypes.Header{Height: 1, ChainID: "neutron-1", Time: time.Now().UTC()}, @@ -48,12 +48,6 @@ func (s *KeeperTestHelper) Setup() { s.SetEpochStartTime() } -// func (s *KeeperTestHelper) SetupTestForInitGenesis() { -// // Setting to True, leads to init genesis not running -// s.App = app.Setup(true) -// s.Ctx = s.App.BaseApp.NewContext(true, tmtypes.Header{}) -// } - func (s *KeeperTestHelper) SetEpochStartTime() { epochsKeeper := s.App.EpochsKeeper @@ -137,17 +131,9 @@ func (s *KeeperTestHelper) Commit() { // FundAcc funds target address with specified amount. func (s *KeeperTestHelper) FundAcc(acc sdk.AccAddress, amounts sdk.Coins) { - err := s.App.BankKeeper.MintCoins(s.Ctx, banktypes.ModuleName, amounts) + err := s.App.BankKeeper.MintCoins(s.Ctx, dexmoduletypes.ModuleName, amounts) s.Require().NoError(err) - err = s.App.BankKeeper.SendCoinsFromModuleToAccount(s.Ctx, banktypes.ModuleName, acc, amounts) + err = s.App.BankKeeper.SendCoinsFromModuleToAccount(s.Ctx, dexmoduletypes.ModuleName, acc, amounts) s.Require().NoError(err) } - -// StateNotAltered validates that app state is not altered. Fails if it is. -func (s *KeeperTestHelper) StateNotAltered() { - oldState := s.App.ExportState(s.Ctx) - s.App.Commit() - newState := s.App.ExportState(s.Ctx) - s.Require().Equal(oldState, newState) -} diff --git a/testutil/consumer/test_helpers.go b/testutil/consumer/test_helpers.go index 14090e8fe..c32a4c758 100644 --- a/testutil/consumer/test_helpers.go +++ b/testutil/consumer/test_helpers.go @@ -90,3 +90,20 @@ func ModifyConsumerGenesis(val network.Validator) error { return nil } + +func ModifyGenesisBlockGas(val network.Validator) error { + genFile := val.Ctx.Config.GenesisFile() + _, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile) + if err != nil { + return errors.Wrap(err, "failed to read genesis from the file") + } + + genDoc.ConsensusParams.Block.MaxGas = 35_000_000 + + err = genutil.ExportGenesisFile(genDoc, genFile) + if err != nil { + return errors.Wrap(err, "failed to export genesis state") + } + + return nil +} diff --git a/testutil/contractmanager/network/network.go b/testutil/contractmanager/network/network.go index 20e2b8d73..52cf17c17 100644 --- a/testutil/contractmanager/network/network.go +++ b/testutil/contractmanager/network/network.go @@ -71,6 +71,10 @@ func DefaultConfig() network.Config { if err != nil { panic(err) } + err = consumer.ModifyGenesisBlockGas(val.(network.Validator)) + if err != nil { + panic(err) + } return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, diff --git a/testutil/cron/network/network.go b/testutil/cron/network/network.go index b31c16d1b..9455dded2 100644 --- a/testutil/cron/network/network.go +++ b/testutil/cron/network/network.go @@ -73,6 +73,10 @@ func DefaultConfig() network.Config { if err != nil { panic(err) } + err = consumer.ModifyGenesisBlockGas(val.(network.Validator)) + if err != nil { + panic(err) + } return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, diff --git a/testutil/integration_test_setup.go b/testutil/integration_test_setup.go index 4e2189617..ebac488a9 100644 --- a/testutil/integration_test_setup.go +++ b/testutil/integration_test_setup.go @@ -59,10 +59,6 @@ func Setup(t *testing.T, isCheckTx bool) *app.App { pubKey, err := privVal.GetPubKey() require.NoError(t, err) - // JCP TODO: need? - // // Give bank module minter permissions for testing (ie. KeeperTestHelper.FundAcc) - // maccPerms[banktypes.ModuleName] = []string{authtypes.Minter} - // create validator set with single validator validator := tmtypes.NewValidator(pubKey, 1) valSet := tmtypes.NewValidatorSet([]*tmtypes.Validator{validator}) diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index 945ee62b3..3be8f8bb4 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -72,6 +72,10 @@ func DefaultConfig() network.Config { if err != nil { panic(err) } + err = consumer.ModifyGenesisBlockGas(val.(network.Validator)) + if err != nil { + panic(err) + } return app.New( val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go index 6735567fc..bb257dee3 100644 --- a/x/dex/keeper/core_helper_test.go +++ b/x/dex/keeper/core_helper_test.go @@ -4,12 +4,11 @@ import ( "testing" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" dualityapp "github.com/neutron-org/neutron/app" - . "github.com/neutron-org/neutron/x/dex/keeper" + "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/suite" ) @@ -17,14 +16,12 @@ import ( // Test Suite /////////////////////////////////////////////////////////////// type CoreHelpersTestSuite struct { suite.Suite - app *dualityapp.App - msgServer types.MsgServer - ctx sdk.Context - queryClient types.QueryClient - alice sdk.AccAddress - bob sdk.AccAddress - carol sdk.AccAddress - dan sdk.AccAddress + app *dualityapp.App + ctx sdk.Context + alice sdk.AccAddress + bob sdk.AccAddress + carol sdk.AccAddress + dan sdk.AccAddress } func TestCoreHelpersTestSuite(t *testing.T) { @@ -32,16 +29,12 @@ func TestCoreHelpersTestSuite(t *testing.T) { } func (s *CoreHelpersTestSuite) SetupTest() { - app := dualityapp.Setup(s.T(), false) + app := testutil.Setup(s.T(), false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams()) app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) - queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) - types.RegisterQueryServer(queryHelper, app.DexKeeper) - queryClient := types.NewQueryClient(queryHelper) - accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) app.AccountKeeper.SetAccount(ctx, accAlice) accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) @@ -52,9 +45,7 @@ func (s *CoreHelpersTestSuite) SetupTest() { app.AccountKeeper.SetAccount(ctx, accDan) s.app = app - s.msgServer = NewMsgServerImpl(app.DexKeeper) s.ctx = ctx - s.queryClient = queryClient s.alice = sdk.AccAddress([]byte("alice")) s.bob = sdk.AccAddress([]byte("bob")) s.carol = sdk.AccAddress([]byte("carol")) diff --git a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go index c2830469e..ed9721549 100644 --- a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go +++ b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go @@ -2,7 +2,7 @@ package keeper_test import ( sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/neutron-org/neutron/testutil/keeper" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) diff --git a/x/dex/keeper/grpc_query_user_deposits_test.go b/x/dex/keeper/grpc_query_user_deposits_test.go index d9fe413ac..69c4e592b 100644 --- a/x/dex/keeper/grpc_query_user_deposits_test.go +++ b/x/dex/keeper/grpc_query_user_deposits_test.go @@ -7,6 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" dualityapp "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" keepertest "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -26,7 +27,7 @@ func simulateDeposit(ctx sdk.Context, app *dualityapp.App, addr sdk.AccAddress, } func TestUserDepositsAllQueryPaginated(t *testing.T) { - app := dualityapp.Setup(t, false) + app := testutil.Setup(t, false) keeper := app.DexKeeper ctx := app.BaseApp.NewContext(false, tmproto.Header{}) wctx := sdk.WrapSDKContext(ctx) diff --git a/x/dex/keeper/integration_multihopswap_test.go b/x/dex/keeper/integration_multihopswap_test.go index 08b28dbf2..52a5f32da 100644 --- a/x/dex/keeper/integration_multihopswap_test.go +++ b/x/dex/keeper/integration_multihopswap_test.go @@ -2,7 +2,7 @@ package keeper_test import ( sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/neutron-org/neutron/testutil/keeper" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 013080f4c..6b6626e77 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -7,6 +7,7 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" dualityapp "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/suite" @@ -22,7 +23,7 @@ type LiquidityTestSuite struct { // don't need to test both LO and LP. At the level of swap testing these should be indistinguishable. func (s *LiquidityTestSuite) SetupTest() { - s.app = dualityapp.Setup(s.T(), false) + s.app = testutil.Setup(s.T(), false) ctx := s.app.BaseApp.NewContext(false, tmproto.Header{}) ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) s.ctx = ctx diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index 51955b5e4..fdf0f89af 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -8,12 +8,12 @@ import ( abci "github.com/cometbft/cometbft/abci/types" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" dualityapp "github.com/neutron-org/neutron/app" math_utils "github.com/neutron-org/neutron/utils/math" + "github.com/neutron-org/neutron/testutil" . "github.com/neutron-org/neutron/x/dex/keeper" . "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" "github.com/neutron-org/neutron/x/dex/types" @@ -23,15 +23,14 @@ import ( // / Test suite type MsgServerTestSuite struct { suite.Suite - app *dualityapp.App - msgServer types.MsgServer - ctx sdk.Context - queryClient types.QueryClient - alice sdk.AccAddress - bob sdk.AccAddress - carol sdk.AccAddress - dan sdk.AccAddress - goCtx context.Context + app *dualityapp.App + msgServer types.MsgServer + ctx sdk.Context + alice sdk.AccAddress + bob sdk.AccAddress + carol sdk.AccAddress + dan sdk.AccAddress + goCtx context.Context } var defaultPairID *types.PairID = &types.PairID{Token0: "TokenA", Token1: "TokenB"} @@ -51,17 +50,13 @@ func TestMsgServerTestSuite(t *testing.T) { } func (s *MsgServerTestSuite) SetupTest() { - app := dualityapp.Setup(s.T(), false) + app := testutil.Setup(s.T(), false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams()) app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) - queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) - types.RegisterQueryServer(queryHelper, app.DexKeeper) - queryClient := types.NewQueryClient(queryHelper) - accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) app.AccountKeeper.SetAccount(ctx, accAlice) accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) @@ -75,7 +70,6 @@ func (s *MsgServerTestSuite) SetupTest() { s.msgServer = NewMsgServerImpl(app.DexKeeper) s.ctx = ctx s.goCtx = sdk.WrapSDKContext(ctx) - s.queryClient = queryClient s.alice = sdk.AccAddress([]byte("alice")) s.bob = sdk.AccAddress([]byte("bob")) s.carol = sdk.AccAddress([]byte("carol")) @@ -916,7 +910,7 @@ func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwap( ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } - res, err := s.queryClient.EstimateMultiHopSwap(s.goCtx, msg) + res, err := s.app.DexKeeper.EstimateMultiHopSwap(s.goCtx, msg) s.Require().Nil(err) return res.CoinOut } @@ -940,7 +934,7 @@ func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwapFails( ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } - _, err := s.queryClient.EstimateMultiHopSwap(s.goCtx, msg) + _, err := s.app.DexKeeper.EstimateMultiHopSwap(s.goCtx, msg) s.Assert().ErrorIs(err, expectedErr) } diff --git a/x/epochs/keeper/abci_test.go b/x/epochs/keeper/abci_test.go index 44304ae11..2afb5b739 100644 --- a/x/epochs/keeper/abci_test.go +++ b/x/epochs/keeper/abci_test.go @@ -7,7 +7,7 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" - "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/x/epochs/types" "golang.org/x/exp/maps" @@ -239,7 +239,7 @@ func initializeBlankEpochInfoFields( } func TestEpochStartingOneMonthAfterInitGenesis(t *testing.T) { - app := app.Setup(t, false) + app := testutil.Setup(t, false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) // On init genesis, default epochs information is set diff --git a/x/epochs/keeper/genesis_test.go b/x/epochs/keeper/genesis_test.go index 574632ad3..8c0fa9973 100644 --- a/x/epochs/keeper/genesis_test.go +++ b/x/epochs/keeper/genesis_test.go @@ -7,12 +7,12 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" - "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/x/epochs/types" ) func TestEpochsExportGenesis(t *testing.T) { - app := app.Setup(t, false) + app := testutil.Setup(t, false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) chainStartTime := ctx.BlockTime() @@ -31,7 +31,7 @@ func TestEpochsExportGenesis(t *testing.T) { } func TestEpochsInitGenesis(t *testing.T) { - app := app.Setup(t, false) + app := testutil.Setup(t, false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) // On init genesis, default epochs information is set diff --git a/x/gmp/ibc_middleware.go b/x/gmp/ibc_middleware.go index 4d28b23b2..62e7a7286 100644 --- a/x/gmp/ibc_middleware.go +++ b/x/gmp/ibc_middleware.go @@ -7,7 +7,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" - transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" @@ -96,7 +95,7 @@ func (im IBCMiddleware) OnRecvPacket( packet channeltypes.Packet, relayer sdk.AccAddress, ) ibcexported.Acknowledgement { - var data transfertypes.FungibleTokenPacketData + var data types.FungibleTokenPacketData if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil { return channeltypes.NewErrorAcknowledgement(fmt.Errorf("cannot unmarshal ICS-20 transfer packet data")) } diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go index f64a70a01..01368e6bf 100644 --- a/x/ibcswap/types/swap_test.go +++ b/x/ibcswap/types/swap_test.go @@ -1,4 +1,4 @@ -package types +package types_test import ( "encoding/json" @@ -6,14 +6,17 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" - appparams "github.com/neutron-org/neutron/app/params" - "github.com/neutron-org/neutron/x/dex/types" "github.com/iancoleman/orderedmap" + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil/common/sample" + "github.com/neutron-org/neutron/x/dex/types" + . "github.com/neutron-org/neutron/x/ibcswap/types" "github.com/stretchr/testify/require" ) -// Load appparams so that we correctly init acc prefixes -var _ appparams.EncodingConfig +func init() { + _ = app.GetDefaultConfig() +} // TestPacketMetadata_Marshal asserts that the marshaling of the swap metadata works as intended. func TestPacketMetadata_Marshal(t *testing.T) { @@ -97,8 +100,8 @@ func TestSwapMetadata_ValidatePass(t *testing.T) { pm := PacketMetadata{ &SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: "dual1lyaz7emmzreenas4fpz49a49958kye7wxuvsdr", - Receiver: "dual1lyaz7emmzreenas4fpz49a49958kye7wxuvsdr", + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), TokenIn: "token-a", TokenOut: "token-b", AmountIn: sdk.NewInt(123), diff --git a/x/incentives/keeper/distributor_test.go b/x/incentives/keeper/distributor_test.go index a7b0f9895..a1b6f0c42 100644 --- a/x/incentives/keeper/distributor_test.go +++ b/x/incentives/keeper/distributor_test.go @@ -6,7 +6,7 @@ import ( tmtypes "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" dextypes "github.com/neutron-org/neutron/x/dex/types" . "github.com/neutron-org/neutron/x/incentives/keeper" "github.com/neutron-org/neutron/x/incentives/types" @@ -44,7 +44,7 @@ func (k MockKeeper) StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *type } func TestDistributor(t *testing.T) { - app := app.Setup(t, false) + app := testutil.Setup(t, false) ctx := app.BaseApp.NewContext( false, tmtypes.Header{Height: 1, ChainID: "duality-1", Time: time.Now().UTC()}, diff --git a/x/incentives/keeper/utils_test.go b/x/incentives/keeper/utils_test.go index 95172abc0..32b72b3fd 100644 --- a/x/incentives/keeper/utils_test.go +++ b/x/incentives/keeper/utils_test.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" dextypes "github.com/neutron-org/neutron/x/dex/types" . "github.com/neutron-org/neutron/x/incentives/keeper" "github.com/neutron-org/neutron/x/incentives/types" @@ -68,7 +68,7 @@ func TestRemoveValue(t *testing.T) { func TestStakeRefKeys(t *testing.T) { addr1 := sdk.AccAddress([]byte("addr1---------------")) - app := app.Setup(t, false) + app := testutil.Setup(t, false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) pool1, err := app.DexKeeper.InitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 0, 1) diff --git a/x/incentives/types/expected_keepers.go b/x/incentives/types/expected_keepers.go index ca9921a99..4e11a97ff 100644 --- a/x/incentives/types/expected_keepers.go +++ b/x/incentives/types/expected_keepers.go @@ -2,7 +2,6 @@ package types import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/neutron-org/neutron/x/dex/types" dextypes "github.com/neutron-org/neutron/x/dex/types" epochstypes "github.com/neutron-org/neutron/x/epochs/types" @@ -29,6 +28,6 @@ type AccountKeeper interface { } type DexKeeper interface { - GetOrInitPool(ctx sdk.Context, pairID *types.PairID, centerTickIndex int64, fee uint64) (*dextypes.Pool, error) - GetPoolMetadataByDenom(ctx sdk.Context, id string) (types.PoolMetadata, error) + GetOrInitPool(ctx sdk.Context, pairID *dextypes.PairID, centerTickIndex int64, fee uint64) (*dextypes.Pool, error) + GetPoolMetadataByDenom(ctx sdk.Context, id string) (dextypes.PoolMetadata, error) } From f5e47be586733a013e2f16d0707cfb12fa55ba9d Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 29 Sep 2023 12:38:02 -0400 Subject: [PATCH 176/307] downgrade packet-forward-middleware the version of packet-forward-middleware being used by neutron breaks duality's swap-and-forward middleware due to a change in how receiever addresses are handled. --- go.mod | 4 +++- go.sum | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 0a6c7f1ca..1f0796f6d 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,9 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 + // TEMP: Using this version to support duality swap-and-forward + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 + // github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index 1d2952b0f..524231754 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 h1:n+PjYB3JnbKN+sGmX6khST4xMP+D0UdrMNj7O91fuOg= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 h1:iFWb/KrnP5jthNZ23l72wqE8nzHJHzoVe22giUfJce8= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= From 6380617d97f609d360cf080b6629d5d44cc39961 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 10 Oct 2023 16:21:34 -0400 Subject: [PATCH 177/307] add dex, incentives and epochs modules to storeUpgrades keys --- app/upgrades/nextupgrade/constants.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index e082115a3..142f65a92 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -6,6 +6,9 @@ import ( crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" "github.com/neutron-org/neutron/app/upgrades" auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" + epochstypes "github.com/neutron-org/neutron/x/epochs/types" + incentivestypes "github.com/neutron-org/neutron/x/incentives/types" ) const ( @@ -21,6 +24,9 @@ var Upgrade = upgrades.Upgrade{ consensusparamtypes.ModuleName, crisistypes.ModuleName, auctiontypes.ModuleName, + dextypes.ModuleName, + incentivestypes.ModuleName, + epochstypes.ModuleName, }, }, } From 21672837cebbc7c368f81b6a4801685ef1e9a543 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 10 Oct 2023 16:52:56 -0400 Subject: [PATCH 178/307] change dex params to kv store --- app/app.go | 4 +- proto/neutron/dex/tx.proto | 22 ++ testutil/dex/keeper/dex.go | 15 +- x/dex/genesis.go | 5 +- x/dex/keeper/keeper.go | 18 +- x/dex/keeper/msg_server.go | 19 + x/dex/keeper/params.go | 19 +- x/dex/types/keys.go | 3 + x/dex/types/message_update_params.go | 41 ++ x/dex/types/tx.pb.go | 558 +++++++++++++++++++++++---- 10 files changed, 596 insertions(+), 108 deletions(-) create mode 100644 x/dex/types/message_update_params.go diff --git a/app/app.go b/app/app.go index 389d3d8ba..203e711e5 100644 --- a/app/app.go +++ b/app/app.go @@ -636,8 +636,8 @@ func New( appCodec, keys[dextypes.StoreKey], keys[dextypes.MemStoreKey], - app.GetSubspace(dextypes.ModuleName), app.BankKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) dexModule := dex.NewAppModule(appCodec, app.DexKeeper, app.BankKeeper) @@ -655,12 +655,10 @@ func New( app.IncentivesKeeper = incentiveskeeper.NewKeeper( keys[incentivestypes.StoreKey], - app.GetSubspace(incentivestypes.ModuleName), app.AccountKeeper, app.BankKeeper, app.EpochsKeeper, app.DexKeeper, - // JCP TODO: confirm this is correct authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index 7fca574b3..538a0e96c 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -7,6 +7,10 @@ option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "google/protobuf/timestamp.proto"; +import "amino/amino.proto"; +import "neutron/dex/params.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; // Msg defines the Msg service. service Msg { @@ -16,6 +20,7 @@ service Msg { rpc WithdrawFilledLimitOrder(MsgWithdrawFilledLimitOrder) returns (MsgWithdrawFilledLimitOrderResponse); rpc CancelLimitOrder(MsgCancelLimitOrder) returns (MsgCancelLimitOrderResponse); rpc MultiHopSwap(MsgMultiHopSwap) returns (MsgMultiHopSwapResponse); + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); // this line is used by starport scaffolding # proto/tx/rpc } @@ -183,4 +188,21 @@ message MsgMultiHopSwapResponse { ]; } +message MsgUpdateParams { + option (amino.name) = "dex/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: 0.47 +message MsgUpdateParamsResponse {} + + // this line is used by starport scaffolding # proto/tx/message diff --git a/testutil/dex/keeper/dex.go b/testutil/dex/keeper/dex.go index 65c078c17..530139c2f 100644 --- a/testutil/dex/keeper/dex.go +++ b/testutil/dex/keeper/dex.go @@ -6,12 +6,13 @@ import ( cmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + adminmoduletypes "github.com/cosmos/admin-module/x/adminmodule/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/neutron-org/neutron/x/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -30,24 +31,20 @@ func DexKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "DexParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, nil, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) // Initialize params - k.SetParams(ctx, types.DefaultParams()) + if err := k.SetParams(ctx, types.DefaultParams()); err != nil { + panic(err) + } return k, ctx } diff --git a/x/dex/genesis.go b/x/dex/genesis.go index d0d9ff1b2..8d1fbb5f2 100644 --- a/x/dex/genesis.go +++ b/x/dex/genesis.go @@ -36,7 +36,10 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) // Set poolMetadata count k.SetPoolCount(ctx, genState.PoolCount) // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) + err := k.SetParams(ctx, genState.Params) + if err != nil { + panic(err) + } } // ExportGenesis returns the capability module's exported genesis. diff --git a/x/dex/keeper/keeper.go b/x/dex/keeper/keeper.go index 082084f62..52f04cf34 100644 --- a/x/dex/keeper/keeper.go +++ b/x/dex/keeper/keeper.go @@ -8,7 +8,6 @@ import ( "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/neutron-org/neutron/x/dex/types" ) @@ -17,9 +16,8 @@ type ( cdc codec.BinaryCodec storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace - bankKeeper types.BankKeeper + authority string } ) @@ -27,24 +25,22 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, - bankKeeper types.BankKeeper, + authority string, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - return &Keeper{ cdc: cdc, storeKey: storeKey, memKey: memKey, - paramstore: ps, bankKeeper: bankKeeper, + authority: authority, } } func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } + +func (k Keeper) GetAuthority() string { + return k.authority +} diff --git a/x/dex/keeper/msg_server.go b/x/dex/keeper/msg_server.go index 1f36797b0..f9b84fdc6 100644 --- a/x/dex/keeper/msg_server.go +++ b/x/dex/keeper/msg_server.go @@ -3,7 +3,9 @@ package keeper import ( "context" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/dex/types" ) @@ -181,3 +183,20 @@ func (k MsgServer) MultiHopSwap( return &types.MsgMultiHopSwapResponse{CoinOut: coinOut}, nil } + +func (k MsgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + authority := k.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/dex/keeper/params.go b/x/dex/keeper/params.go index 4e37fd76f..9b13ebbae 100644 --- a/x/dex/keeper/params.go +++ b/x/dex/keeper/params.go @@ -7,11 +7,24 @@ import ( // GetParams get all parameters as types.Params func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramstore.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.KeyPrefix(types.ParamsKey)) + if bz == nil { + return params + } + + k.cdc.MustUnmarshal(bz, ¶ms) return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.KeyPrefix(types.ParamsKey), bz) + return nil } diff --git a/x/dex/types/keys.go b/x/dex/types/keys.go index a00a6b0bf..dbefbf132 100644 --- a/x/dex/types/keys.go +++ b/x/dex/types/keys.go @@ -46,6 +46,9 @@ const ( // PoolCountKeyPrefix is the prefix to retrieve the Pool count PoolCountKeyPrefix = "Pool/count/" + + // ParamsKey is the prefix to retrieve params + ParamsKey = "Params/value/" ) func KeyPrefix(p string) []byte { diff --git a/x/dex/types/message_update_params.go b/x/dex/types/message_update_params.go new file mode 100644 index 000000000..750b98a16 --- /dev/null +++ b/x/dex/types/message_update_params.go @@ -0,0 +1,41 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +const TypeMsgUpdateParams = "update-params" + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { + return RouterKey +} + +func (msg *MsgUpdateParams) Type() string { + return TypeMsgUpdateParams +} + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority is invalid") + } + if err := msg.Params.Validate(); err != nil { + return err + } + return nil +} diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index 8503e97e5..5ce055a62 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -6,8 +6,11 @@ package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "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" @@ -840,6 +843,99 @@ func (m *MsgMultiHopSwapResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgMultiHopSwapResponse proto.InternalMessageInfo +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + 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_a489f6e187d5e074, []int{14} +} +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: 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_a489f6e187d5e074, []int{15} +} +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 + func init() { proto.RegisterEnum("neutron.dex.LimitOrderType", LimitOrderType_name, LimitOrderType_value) proto.RegisterType((*DepositOptions)(nil), "neutron.dex.DepositOptions") @@ -856,92 +952,104 @@ func init() { proto.RegisterType((*MultiHopRoute)(nil), "neutron.dex.MultiHopRoute") proto.RegisterType((*MsgMultiHopSwap)(nil), "neutron.dex.MsgMultiHopSwap") proto.RegisterType((*MsgMultiHopSwapResponse)(nil), "neutron.dex.MsgMultiHopSwapResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.dex.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.dex.MsgUpdateParamsResponse") } func init() { proto.RegisterFile("neutron/dex/tx.proto", fileDescriptor_a489f6e187d5e074) } var fileDescriptor_a489f6e187d5e074 = []byte{ - // 1269 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x8f, 0xdb, 0x44, - 0x14, 0x5f, 0xc7, 0x69, 0xb2, 0xfb, 0xf6, 0x2b, 0x9d, 0x7e, 0xac, 0x71, 0x21, 0x8e, 0xdc, 0x42, - 0x43, 0xa5, 0x3a, 0xdd, 0x45, 0x1c,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, 0xf1, 0x47, 0x9d, 0x28, 0x1d, 0xa3, 0x88, 0xe3, 0xd6, - 0x00, 0x48, 0x7c, 0xc9, 0x88, 0x59, 0xf8, 0x54, 0x27, 0xca, 0xc7, 0xeb, 0x62, 0xb6, 0xaf, 0x61, - 0x3d, 0x3b, 0xc4, 0x67, 0x3c, 0xc8, 0x00, 0xc4, 0xcb, 0x27, 0x00, 0x62, 0xf2, 0x03, 0x10, 0x8e, - 0x6d, 0x57, 0xd5, 0xe3, 0x9c, 0xcb, 0x22, 0xc5, 0x6b, 0xaf, 0x8b, 0x8c, 0xed, 0x7e, 0x03, 0xa5, - 0x99, 0x36, 0x55, 0xc9, 0xb2, 0x64, 0x11, 0x62, 0xf5, 0x24, 0x44, 0xcc, 0xaf, 0xc3, 0x4a, 0xaa, - 0xe1, 0xbc, 0x9b, 0x3d, 0x99, 0xd4, 0x8a, 0x97, 0x5e, 0xa5, 0x8d, 0x38, 0xd5, 0x9d, 0x27, 0xcf, - 0xca, 0xdc, 0xd3, 0x67, 0x65, 0xee, 0xef, 0x67, 0x65, 0xee, 0xd1, 0xf3, 0xf2, 0xc2, 0xd3, 0xe7, - 0xe5, 0x85, 0x3f, 0x9e, 0x97, 0x17, 0xbe, 0xba, 0x72, 0x42, 0x61, 0x8f, 0x83, 0xff, 0xa0, 0x5e, - 0xf2, 0xef, 0x15, 0xfc, 0x4f, 0x84, 0x8f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x56, 0x20, 0xd3, - 0x20, 0x9f, 0x0e, 0x00, 0x00, + // 1425 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x8f, 0xd3, 0xc6, + 0x17, 0x5f, 0x27, 0x21, 0xd9, 0xcc, 0xfe, 0xca, 0xce, 0x02, 0x6b, 0xc2, 0xf7, 0x9b, 0x44, 0x86, + 0x2f, 0xe4, 0xbb, 0x12, 0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, 0x2d, 0x1f, 0xe6, 0x5c, 0x1c, 0x99, 0xbf, 0xfc, 0xa6, 0xc8, 0xc0, 0xee, 0x17, 0x20, + 0x37, 0x55, 0x6d, 0x4b, 0x71, 0x96, 0x38, 0x22, 0x5f, 0x3e, 0x0a, 0x11, 0xf0, 0xab, 0x60, 0x3e, + 0x52, 0x37, 0xff, 0x13, 0x5f, 0x19, 0xd6, 0xe6, 0xcf, 0xbf, 0x4e, 0x1b, 0xe6, 0x8c, 0x5c, 0xb0, + 0x29, 0xce, 0xb0, 0x76, 0x9a, 0xf3, 0x55, 0x19, 0x2f, 0x6f, 0x3e, 0x79, 0x56, 0x10, 0x9e, 0x3e, + 0x2b, 0x08, 0x7f, 0x3c, 0x2b, 0x08, 0x0f, 0x9e, 0x17, 0x66, 0x9e, 0x3e, 0x2f, 0xcc, 0xfc, 0xfa, + 0xbc, 0x30, 0xf3, 0xd9, 0xda, 0x11, 0x35, 0x6f, 0xe4, 0x7d, 0xff, 0xbb, 0x75, 0x61, 0x27, 0xcd, + 0x5e, 0x4f, 0xef, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xba, 0xdd, 0x59, 0x72, 0x1b, 0x10, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -962,6 +1070,7 @@ type MsgClient interface { WithdrawFilledLimitOrder(ctx context.Context, in *MsgWithdrawFilledLimitOrder, opts ...grpc.CallOption) (*MsgWithdrawFilledLimitOrderResponse, error) CancelLimitOrder(ctx context.Context, in *MsgCancelLimitOrder, opts ...grpc.CallOption) (*MsgCancelLimitOrderResponse, error) MultiHopSwap(ctx context.Context, in *MsgMultiHopSwap, opts ...grpc.CallOption) (*MsgMultiHopSwapResponse, error) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -1026,6 +1135,15 @@ func (c *msgClient) MultiHopSwap(ctx context.Context, in *MsgMultiHopSwap, opts return out, nil } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/neutron.dex.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 { Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) @@ -1034,6 +1152,7 @@ type MsgServer interface { WithdrawFilledLimitOrder(context.Context, *MsgWithdrawFilledLimitOrder) (*MsgWithdrawFilledLimitOrderResponse, error) CancelLimitOrder(context.Context, *MsgCancelLimitOrder) (*MsgCancelLimitOrderResponse, error) MultiHopSwap(context.Context, *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1058,6 +1177,9 @@ func (*UnimplementedMsgServer) CancelLimitOrder(ctx context.Context, req *MsgCan func (*UnimplementedMsgServer) MultiHopSwap(ctx context.Context, req *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MultiHopSwap not implemented") } +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) @@ -1171,6 +1293,24 @@ func _Msg_MultiHopSwap_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +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: "/neutron.dex.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: "neutron.dex.Msg", HandlerType: (*MsgServer)(nil), @@ -1199,6 +1339,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "MultiHopSwap", Handler: _Msg_MultiHopSwap_Handler, }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "neutron/dex/tx.proto", @@ -1952,6 +2096,69 @@ func (m *MsgMultiHopSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +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 @@ -2273,6 +2480,30 @@ func (m *MsgMultiHopSwapResponse) Size() (n int) { return n } +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 } @@ -4522,6 +4753,171 @@ func (m *MsgMultiHopSwapResponse) Unmarshal(dAtA []byte) error { } return nil } +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 From 678a700597abd1ec7bf0ebd96558b5e91e2f2b1f Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 10 Oct 2023 17:37:11 -0400 Subject: [PATCH 179/307] switch incentives to kvstore params --- proto/neutron/incentives/tx.proto | 24 +- x/incentives/keeper/keeper.go | 24 +- x/incentives/keeper/msg_server.go | 17 + x/incentives/keeper/params.go | 26 +- x/incentives/types/keys.go | 1 + x/incentives/types/msgs.go | 31 ++ x/incentives/types/tx.pb.go | 494 +++++++++++++++++++++++++++--- 7 files changed, 549 insertions(+), 68 deletions(-) diff --git a/proto/neutron/incentives/tx.proto b/proto/neutron/incentives/tx.proto index 8894133d9..b73c85719 100644 --- a/proto/neutron/incentives/tx.proto +++ b/proto/neutron/incentives/tx.proto @@ -7,6 +7,10 @@ import "cosmos/base/v1beta1/coin.proto"; import "neutron/incentives/gauge.proto"; import "neutron/incentives/stake.proto"; import "google/protobuf/duration.proto"; +import "amino/amino.proto"; +import "neutron/incentives/params.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; option go_package = "github.com/neutron-org/neutron/x/incentives/types"; @@ -19,6 +23,8 @@ service Msg { rpc Stake(MsgStake) returns (MsgStakeResponse); // Withdraw LP tokens from the module, forfeiting future rewards from gauges rpc Unstake(MsgUnstake) returns (MsgUnstakeResponse); + // Update incentives params + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } // MsgCreateGauge creates a gague to distribute rewards to users @@ -93,4 +99,20 @@ message MsgUnstake { // If unstake is left empty, this is interpreted as "unstake all" repeated UnstakeDescriptor unstakes = 2; } -message MsgUnstakeResponse {} \ No newline at end of file +message MsgUnstakeResponse {} + +message MsgUpdateParams { + option (amino.name) = "dex/MsgUpdateParams"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + Params params = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: 0.47 +message MsgUpdateParamsResponse {} diff --git a/x/incentives/keeper/keeper.go b/x/incentives/keeper/keeper.go index 0b8471250..f9fcfe12a 100644 --- a/x/incentives/keeper/keeper.go +++ b/x/incentives/keeper/keeper.go @@ -9,13 +9,11 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) // Keeper provides a way to manage incentives module storage. type Keeper struct { storeKey storetypes.StoreKey - paramSpace paramtypes.Subspace hooks types.IncentiveHooks ak types.AccountKeeper bk types.BankKeeper @@ -28,25 +26,19 @@ type Keeper struct { // NewKeeper returns a new instance of the incentive module keeper struct. func NewKeeper( storeKey storetypes.StoreKey, - paramSpace paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, ek types.EpochKeeper, dk types.DexKeeper, authority string, ) *Keeper { - if !paramSpace.HasKeyTable() { - paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable()) - } - keeper := &Keeper{ - storeKey: storeKey, - paramSpace: paramSpace, - ak: ak, - bk: bk, - ek: ek, - dk: dk, - authority: authority, + storeKey: storeKey, + ak: ak, + bk: bk, + ek: ek, + dk: dk, + authority: authority, } keeper.distributor = NewDistributor(keeper) return keeper @@ -79,3 +71,7 @@ func (k Keeper) GetModuleStakedCoins(ctx sdk.Context) sdk.Coins { // all not unstaking + not finished unstaking return k.GetStakes(ctx).GetCoins() } + +func (k Keeper) GetAuthority() string { + return k.authority +} diff --git a/x/incentives/keeper/msg_server.go b/x/incentives/keeper/msg_server.go index 6e7b3671e..c87730284 100644 --- a/x/incentives/keeper/msg_server.go +++ b/x/incentives/keeper/msg_server.go @@ -181,3 +181,20 @@ func (server msgServer) Unstake( // N.B. begin unstake event is emitted downstream in the keeper method. return &types.MsgUnstakeResponse{}, nil } + +func (server msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + authority := server.keeper.GetAuthority() + if authority != req.Authority { + return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := server.keeper.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/incentives/keeper/params.go b/x/incentives/keeper/params.go index de175190f..9a684f11c 100644 --- a/x/incentives/keeper/params.go +++ b/x/incentives/keeper/params.go @@ -1,18 +1,34 @@ package keeper import ( - "github.com/neutron-org/neutron/x/incentives/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" + "github.com/neutron-org/neutron/x/incentives/types" ) // GetParams returns all of the parameters in the incentive module. func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramSpace.GetParamSet(ctx, ¶ms) + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.KeyParams) + if bz == nil { + return params + } + + if err := proto.Unmarshal(bz, ¶ms); err != nil { + panic(err) + } + return params } // SetParams sets all of the parameters in the incentive module. -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramSpace.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := proto.Marshal(¶ms) + if err != nil { + return err + } + + store.Set(types.KeyParams, bz) + return nil } diff --git a/x/incentives/types/keys.go b/x/incentives/types/keys.go index 08bde69a9..7afce2652 100644 --- a/x/incentives/types/keys.go +++ b/x/incentives/types/keys.go @@ -74,6 +74,7 @@ var ( // KeyPrefixAccountHistory defines the prefix for storing account histories. KeyPrefixAccountHistory = []byte{0x10} + KeyParams = []byte{0x11} // KeyndexSeparator defines separator between keys when combine, it should be one that is not used in denom expression. KeyIndexSeparator = []byte{0xFF} ) diff --git a/x/incentives/types/msgs.go b/x/incentives/types/msgs.go index bc4ba01d9..8bdba513b 100644 --- a/x/incentives/types/msgs.go +++ b/x/incentives/types/msgs.go @@ -4,6 +4,7 @@ import ( "fmt" "time" + errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" dextypes "github.com/neutron-org/neutron/x/dex/types" @@ -14,6 +15,7 @@ const ( TypeMsgAddToGauge = "add_to_gauge" TypeMsgStakeTokens = "stake_tokens" TypeMsgBeginUnstaking = "begin_unstaking" + TypeMsgUpdateParams = "update-params" ) var _ sdk.Msg = &MsgCreateGauge{} @@ -228,3 +230,32 @@ func (m MsgUnstake) GetSigners() []sdk.AccAddress { owner, _ := sdk.AccAddressFromBech32(m.Owner) return []sdk.AccAddress{owner} } + +var _ sdk.Msg = &MsgUpdateParams{} + +func (msg *MsgUpdateParams) Route() string { return RouterKey } + +func (msg *MsgUpdateParams) Type() string { return TypeMsgUpdateParams } + +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { + authority, err := sdk.AccAddressFromBech32(msg.Authority) + if err != nil { // should never happen as valid basic rejects invalid addresses + panic(err.Error()) + } + return []sdk.AccAddress{authority} +} + +func (msg *MsgUpdateParams) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgUpdateParams) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority is invalid") + } + if err := msg.Params.Validate(); err != nil { + return err + } + return nil +} diff --git a/x/incentives/types/tx.pb.go b/x/incentives/types/tx.pb.go index 5043cc76e..6dba41aa9 100644 --- a/x/incentives/types/tx.pb.go +++ b/x/incentives/types/tx.pb.go @@ -6,8 +6,11 @@ package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" + _ "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" @@ -514,6 +517,99 @@ func (m *MsgUnstakeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUnstakeResponse proto.InternalMessageInfo +type MsgUpdateParams struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + 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_5fe3d35711153e8d, []int{8} +} +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: 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_5fe3d35711153e8d, []int{9} +} +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 + func init() { proto.RegisterType((*MsgCreateGauge)(nil), "neutron.incentives.MsgCreateGauge") proto.RegisterType((*MsgCreateGaugeResponse)(nil), "neutron.incentives.MsgCreateGaugeResponse") @@ -524,59 +620,71 @@ func init() { proto.RegisterType((*MsgUnstake)(nil), "neutron.incentives.MsgUnstake") proto.RegisterType((*MsgUnstake_UnstakeDescriptor)(nil), "neutron.incentives.MsgUnstake.UnstakeDescriptor") proto.RegisterType((*MsgUnstakeResponse)(nil), "neutron.incentives.MsgUnstakeResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.incentives.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.incentives.MsgUpdateParamsResponse") } func init() { proto.RegisterFile("neutron/incentives/tx.proto", fileDescriptor_5fe3d35711153e8d) } var fileDescriptor_5fe3d35711153e8d = []byte{ - // 741 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x4e, 0xdb, 0x4c, - 0x14, 0x8d, 0xf3, 0x43, 0xc2, 0x0d, 0x20, 0xb0, 0xf8, 0xbe, 0xcf, 0xf8, 0x43, 0x4e, 0xb0, 0x2a, - 0x94, 0x56, 0xc2, 0x06, 0xba, 0xeb, 0xae, 0x81, 0xaa, 0x42, 0x34, 0x2a, 0xb8, 0xa9, 0x2a, 0x21, - 0x55, 0x96, 0x63, 0x4f, 0xcd, 0x28, 0xc4, 0x63, 0xcd, 0x8c, 0x03, 0xbc, 0x40, 0x37, 0xdd, 0xb0, - 0xe9, 0x4b, 0xf4, 0x0d, 0xda, 0x27, 0x60, 0xc9, 0xb2, 0x2b, 0x40, 0xf0, 0x06, 0x3c, 0x41, 0xe5, - 0xdf, 0x84, 0xbf, 0xd0, 0x4a, 0x6d, 0x57, 0xb6, 0xe7, 0xdc, 0x7b, 0x72, 0xee, 0x39, 0xd7, 0x0e, - 0xfc, 0xef, 0xa1, 0x80, 0x53, 0xe2, 0xe9, 0xd8, 0xb3, 0x91, 0xc7, 0x71, 0x1f, 0x31, 0x9d, 0x1f, - 0x68, 0x3e, 0x25, 0x9c, 0x88, 0x62, 0x02, 0x6a, 0x03, 0x50, 0x9e, 0x75, 0x89, 0x4b, 0x22, 0x58, - 0x0f, 0xef, 0xe2, 0x4a, 0xb9, 0xe6, 0x12, 0xe2, 0xee, 0x21, 0x3d, 0x7a, 0xea, 0x04, 0x1f, 0x74, - 0x8e, 0x7b, 0x88, 0x71, 0xab, 0xe7, 0x27, 0x05, 0x8a, 0x4d, 0x58, 0x8f, 0x30, 0xbd, 0x63, 0x31, - 0xa4, 0xf7, 0x57, 0x3a, 0x88, 0x5b, 0x2b, 0xba, 0x4d, 0xb0, 0x97, 0xe2, 0x77, 0xe8, 0x70, 0xad, - 0xc0, 0x45, 0x23, 0x70, 0xc6, 0xad, 0x6e, 0x86, 0xdf, 0x14, 0xe0, 0x04, 0xd4, 0xe2, 0x98, 0x24, - 0xfc, 0xea, 0xb7, 0x02, 0x4c, 0xb5, 0x98, 0xbb, 0x46, 0x91, 0xc5, 0xd1, 0xcb, 0x90, 0x58, 0x5c, - 0x80, 0x09, 0xcc, 0x4c, 0x1f, 0x51, 0x1f, 0xf1, 0xc0, 0xda, 0x93, 0x84, 0xba, 0xd0, 0xa8, 0x18, - 0x55, 0xcc, 0xb6, 0xd2, 0x23, 0x71, 0x11, 0x4a, 0x64, 0xdf, 0x43, 0x54, 0xca, 0xd7, 0x85, 0xc6, - 0x78, 0x73, 0xfa, 0xea, 0xb4, 0x36, 0x71, 0x68, 0xf5, 0xf6, 0x9e, 0xa9, 0xd1, 0xb1, 0x6a, 0xc4, - 0xb0, 0xd8, 0x82, 0x49, 0x07, 0x33, 0x4e, 0x71, 0x27, 0xe0, 0xc8, 0xe4, 0x44, 0x2a, 0xd4, 0x85, - 0x46, 0x75, 0x55, 0xd5, 0x6e, 0x1b, 0xa8, 0x6d, 0x07, 0x88, 0x1e, 0xae, 0x11, 0xcf, 0xc1, 0xa1, - 0xbc, 0x66, 0xf1, 0xf8, 0xb4, 0x96, 0x33, 0x26, 0x06, 0xed, 0x6d, 0x22, 0x5a, 0x50, 0x0a, 0xad, - 0x61, 0x52, 0xb1, 0x5e, 0x68, 0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, 0x3a, 0x75, 0x79, 0x71, 0x34, 0x9e, 0x52, 0x36, 0x37, 0x8f, 0x2f, 0x14, 0xe1, 0xe4, 0x42, - 0x11, 0xce, 0x2f, 0x14, 0xe1, 0xe8, 0x52, 0xc9, 0x9d, 0x5c, 0x2a, 0xb9, 0xef, 0x97, 0x4a, 0x6e, - 0x67, 0x65, 0x28, 0xc3, 0x84, 0x6b, 0x89, 0x50, 0x37, 0xbd, 0xd7, 0x0f, 0xae, 0xfd, 0x13, 0x86, - 0x91, 0x76, 0xc6, 0xa2, 0xef, 0xe1, 0xd3, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x41, 0xec, 0xc5, - 0x1c, 0x2c, 0x07, 0x00, 0x00, + // 907 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6f, 0xdc, 0x44, + 0x18, 0x8d, 0x77, 0x37, 0xbf, 0xbe, 0x4d, 0x4b, 0x62, 0x02, 0x71, 0x4c, 0xe5, 0xdd, 0x1a, 0x14, + 0x2d, 0x41, 0xb1, 0x9b, 0x20, 0x71, 0xa8, 0xc4, 0xa1, 0x9b, 0x20, 0x14, 0x95, 0x15, 0xa9, 0x1b, + 0x84, 0x54, 0x09, 0x99, 0x59, 0x7b, 0x70, 0x46, 0x89, 0x3d, 0xd6, 0xcc, 0x78, 0x9b, 0x5c, 0x39, + 0x70, 0x80, 0x4b, 0x2f, 0xfc, 0x0f, 0x88, 0x53, 0x0e, 0x5c, 0xe0, 0xc8, 0xa9, 0xc7, 0x8a, 0x13, + 0xa7, 0x14, 0x25, 0x87, 0xdc, 0xfb, 0x17, 0xa0, 0x19, 0xff, 0xd8, 0x4d, 0x9a, 0x6c, 0x8b, 0x04, + 0x5c, 0x62, 0x7b, 0xde, 0xf7, 0x3d, 0xbf, 0x6f, 0xde, 0x1b, 0x67, 0xe1, 0x9d, 0x04, 0x67, 0x82, + 0xd1, 0xc4, 0x25, 0x49, 0x80, 0x13, 0x41, 0x06, 0x98, 0xbb, 0xe2, 0xd0, 0x49, 0x19, 0x15, 0x54, + 0xd7, 0x0b, 0xd0, 0x19, 0x82, 0xe6, 0x62, 0x44, 0x23, 0xaa, 0x60, 0x57, 0xde, 0xe5, 0x95, 0x66, + 0x2b, 0xa2, 0x34, 0x3a, 0xc0, 0xae, 0x7a, 0xea, 0x67, 0xdf, 0xb8, 0x82, 0xc4, 0x98, 0x0b, 0x14, + 0xa7, 0x45, 0x81, 0x15, 0x50, 0x1e, 0x53, 0xee, 0xf6, 0x11, 0xc7, 0xee, 0x60, 0xbd, 0x8f, 0x05, + 0x5a, 0x77, 0x03, 0x4a, 0x92, 0x12, 0xbf, 0x42, 0x47, 0x84, 0xb2, 0x08, 0x8f, 0xc1, 0xb9, 0x40, + 0xfb, 0x15, 0x7e, 0x59, 0x40, 0x98, 0x31, 0x24, 0x08, 0x2d, 0xf9, 0x17, 0x50, 0x4c, 0x12, 0xea, + 0xaa, 0xbf, 0xa5, 0xe6, 0x2b, 0x28, 0x53, 0xc4, 0x50, 0xcc, 0x8b, 0x82, 0xa5, 0x42, 0x73, 0xcc, + 0x23, 0x77, 0xb0, 0x2e, 0x2f, 0x05, 0xb0, 0x9c, 0x03, 0x7e, 0xbe, 0x0d, 0xf9, 0x43, 0x0e, 0xd9, + 0xbf, 0xd5, 0xe1, 0x66, 0x8f, 0x47, 0x9b, 0x0c, 0x23, 0x81, 0x3f, 0x95, 0x03, 0xe8, 0xb7, 0x61, + 0x8e, 0x70, 0x3f, 0xc5, 0x2c, 0xc5, 0x22, 0x43, 0x07, 0x86, 0xd6, 0xd6, 0x3a, 0x33, 0x5e, 0x93, + 0xf0, 0x9d, 0x72, 0x49, 0x5f, 0x81, 0x49, 0xfa, 0x38, 0xc1, 0xcc, 0xa8, 0xb5, 0xb5, 0xce, 0x6c, + 0x77, 0xfe, 0xc5, 0x49, 0x6b, 0xee, 0x08, 0xc5, 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x46, 0x51, 0xf9, 0x86, 0xee, 0xfd, 0xa7, 0xa7, + 0x96, 0xf6, 0xec, 0xd4, 0xd2, 0xfe, 0x3a, 0xb5, 0xb4, 0x27, 0x67, 0xd6, 0xc4, 0xb3, 0x33, 0x6b, + 0xe2, 0xcf, 0x33, 0x6b, 0xe2, 0xd1, 0xfa, 0x48, 0xe6, 0x0b, 0xc2, 0x35, 0xca, 0xa2, 0xf2, 0xde, + 0x3d, 0xbc, 0xf0, 0x0b, 0x45, 0x1e, 0x81, 0xfe, 0x94, 0xfa, 0xff, 0xf1, 0xe1, 0xdf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x55, 0x20, 0x0f, 0x95, 0xc4, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -599,6 +707,8 @@ type MsgClient interface { Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) // Withdraw LP tokens from the module, forfeiting future rewards from gauges Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) + // Update incentives params + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -645,6 +755,15 @@ func (c *msgClient) Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.Ca return out, nil } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/neutron.incentives.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 { // Create an incentive program @@ -655,6 +774,8 @@ type MsgServer interface { Stake(context.Context, *MsgStake) (*MsgStakeResponse, error) // Withdraw LP tokens from the module, forfeiting future rewards from gauges Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error) + // Update incentives params + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -673,6 +794,9 @@ func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgSt func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Unstake not implemented") } +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) @@ -750,6 +874,24 @@ func _Msg_Unstake_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +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: "/neutron.incentives.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: "neutron.incentives.Msg", HandlerType: (*MsgServer)(nil), @@ -770,6 +912,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "Unstake", Handler: _Msg_Unstake_Handler, }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "neutron/incentives/tx.proto", @@ -1133,6 +1279,69 @@ func (m *MsgUnstakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +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 @@ -1293,6 +1502,30 @@ func (m *MsgUnstakeResponse) Size() (n int) { return n } +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 } @@ -2228,6 +2461,171 @@ func (m *MsgUnstakeResponse) Unmarshal(dAtA []byte) error { } return nil } +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 From 7d06f9b7ca7c4c8054afa24583322d3af643bcda Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 10 Oct 2023 19:06:34 -0400 Subject: [PATCH 180/307] start using "cosmossdk.io/math" --- tests/ibc/gmp_swap_forward_test.go | 10 +- tests/ibc/ibc_setup_test.go | 27 +-- tests/ibc/swap_forward_test.go | 44 ++--- tests/ibc/swap_test.go | 20 +- testutil/integration_test_setup.go | 2 +- utils/cli_helpers.go | 7 +- utils/dcli/parsers.go | 7 +- utils/dcli/parsers_test.go | 29 +-- utils/math/prec_dec.go | 24 ++- x/dex/client/cli/query_test.go | 48 ++--- x/dex/client/cli/tx_deposit.go | 10 +- x/dex/client/cli/tx_multi_hop_swap.go | 4 +- x/dex/client/cli/tx_place_limit_order.go | 8 +- x/dex/client/cli/tx_test.go | 12 +- x/dex/client/cli/tx_withdrawl.go | 6 +- x/dex/genesis_test.go | 30 +-- x/dex/keeper/core.go | 43 +++-- x/dex/keeper/core_helper.go | 3 +- x/dex/keeper/core_helper_test.go | 5 +- x/dex/keeper/deposit_record_test.go | 20 +- ...grpc_query_estimate_multi_hop_swap_test.go | 81 ++++---- x/dex/keeper/grpc_query_user_deposits_test.go | 11 +- .../integration_deposit_autoswap_unit_test.go | 4 +- .../integration_deposit_doublesided_test.go | 6 +- .../keeper/integration_deposit_multi_test.go | 4 +- x/dex/keeper/integration_multihopswap_test.go | 73 +++---- .../integration_placelimitorder_test.go | 4 +- .../keeper/integration_withdraw_multi_test.go | 8 +- x/dex/keeper/integration_withdraw_test.go | 4 +- .../keeper/internal/testutils/test_helpers.go | 5 +- x/dex/keeper/limit_order_expiration_test.go | 9 +- x/dex/keeper/limit_order_tranche.go | 9 +- x/dex/keeper/limit_order_tranche_user.go | 7 +- x/dex/keeper/limit_order_tranche_user_test.go | 25 +-- x/dex/keeper/liquidity.go | 15 +- x/dex/keeper/liquidity_test.go | 17 +- x/dex/keeper/msg_server_test.go | 149 +++++++------- x/dex/keeper/multihop_swap.go | 7 +- x/dex/keeper/pair_helper.go | 4 +- x/dex/keeper/pool_test.go | 5 +- x/dex/types/events.go | 27 +-- x/dex/types/limit_order_tranche.go | 37 ++-- x/dex/types/liquidity.go | 4 +- x/dex/types/message_deposit.go | 7 +- x/dex/types/message_deposit_test.go | 38 ++-- x/dex/types/message_multi_hop_swap.go | 5 +- x/dex/types/message_multi_hop_swap_test.go | 6 +- x/dex/types/message_place_limit_order.go | 7 +- x/dex/types/message_place_limit_order_test.go | 18 +- x/dex/types/message_withdrawl.go | 5 +- x/dex/types/message_withdrawl_test.go | 18 +- x/dex/types/pool.go | 61 +++--- x/dex/types/pool_liquidity.go | 8 +- x/dex/types/pool_reserves.go | 8 +- x/dex/types/pool_test.go | 182 +++++++++--------- x/dex/types/tick_liquidity_test.go | 10 +- x/dex/utils/math.go | 6 +- x/ibcswap/ibc_middleware.go | 3 +- x/ibcswap/keeper/keeper.go | 3 +- x/ibcswap/types/swap_test.go | 24 +-- x/incentives/client/cli/cli_test.go | 43 +++-- x/incentives/client/cli/query_test.go | 2 +- x/incentives/keeper/distribute.go | 12 +- x/incentives/keeper/distribute_test.go | 11 +- x/incentives/keeper/distributor.go | 9 +- x/incentives/keeper/distributor_test.go | 21 +- x/incentives/keeper/suite_test.go | 5 +- x/incentives/types/gauge.go | 3 +- x/incentives/types/gauge_test.go | 15 +- x/incentives/types/msgs_test.go | 15 +- 70 files changed, 727 insertions(+), 692 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 3048eea5c..fdf4a6075 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/neutron-org/neutron/x/dex/types" @@ -25,7 +25,7 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) // deposit stake<>ibcTransferToken to initialize the pool on Duality - depositAmount := sdk.NewInt(100_000) + depositAmount := math.NewInt(100_000) s.dualityDeposit( nativeDenom, s.providerToDualityDenom, @@ -36,8 +36,8 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { s.dualityAddr) // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := sdk.NewInt(100000) - expectedAmountOut := sdk.NewInt(99990) + swapAmount := math.NewInt(100000) + expectedAmountOut := math.NewInt(99990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) @@ -99,7 +99,7 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) // Check that duality account did not keep any of the transfer denom s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index 1daca621b..415aa36e1 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -5,6 +5,7 @@ import ( "fmt" "testing" + "cosmossdk.io/math" dbm "github.com/cometbft/cometbft-db" "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" @@ -27,8 +28,8 @@ import ( var ( nativeDenom = sdk.DefaultBondDenom - ibcTransferAmount = sdk.NewInt(100_000) - genesisWalletAmount, _ = sdk.NewIntFromString("10000000000000000000") + ibcTransferAmount = math.NewInt(100_000) + genesisWalletAmount, _ = math.NewIntFromString("10000000000000000000") ) type IBCTestSuite struct { @@ -260,7 +261,7 @@ func (s *IBCTestSuite) IBCTransfer( fromAddr sdk.AccAddress, toAddr sdk.AccAddress, transferDenom string, - transferAmount sdk.Int, + transferAmount math.Int, memo string, ) { timeoutHeight := clienttypes.NewHeight(1, 110) @@ -292,7 +293,7 @@ func (s *IBCTestSuite) IBCTransferProviderToDuality( providerAddr sdk.AccAddress, dualityAddr sdk.AccAddress, transferDenom string, - transferAmount sdk.Int, + transferAmount math.Int, memo string, ) { s.IBCTransfer( @@ -321,7 +322,7 @@ func (s *IBCTestSuite) assertBalance( chain *icsibctesting.TestChain, addr sdk.AccAddress, denom string, - expectedAmt sdk.Int, + expectedAmt math.Int, ) { actualAmt := s.getBalance(bk, chain, addr, denom).Amount s.Assert(). @@ -331,7 +332,7 @@ func (s *IBCTestSuite) assertBalance( func (s *IBCTestSuite) assertDualityBalance( addr sdk.AccAddress, denom string, - expectedAmt sdk.Int, + expectedAmt math.Int, ) { s.assertBalance(s.dualityApp.GetTestBankKeeper(), s.dualityChain, addr, denom, expectedAmt) } @@ -339,24 +340,24 @@ func (s *IBCTestSuite) assertDualityBalance( func (s *IBCTestSuite) assertProviderBalance( addr sdk.AccAddress, denom string, - expectedAmt sdk.Int, + expectedAmt math.Int, ) { s.assertBalance(s.providerApp.GetTestBankKeeper(), s.providerChain, addr, denom, expectedAmt) } -func (s *IBCTestSuite) assertChainBBalance(addr sdk.AccAddress, denom string, expectedAmt sdk.Int) { +func (s *IBCTestSuite) assertChainBBalance(addr sdk.AccAddress, denom string, expectedAmt math.Int) { s.assertBalance(s.bundleB.App.GetTestBankKeeper(), s.bundleB.Chain, addr, denom, expectedAmt) } -func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, expectedAmt sdk.Int) { +func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, expectedAmt math.Int) { s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) } func (s *IBCTestSuite) dualityDeposit( token0 string, token1 string, - depositAmount0 sdk.Int, - depositAmount1 sdk.Int, + depositAmount0 math.Int, + depositAmount1 math.Int, tickIndex int64, fee uint64, creator sdk.AccAddress, @@ -367,8 +368,8 @@ func (s *IBCTestSuite) dualityDeposit( creator.String(), token0, token1, - []sdk.Int{depositAmount0}, - []sdk.Int{depositAmount1}, + []math.Int{depositAmount0}, + []math.Int{depositAmount1}, []int64{tickIndex}, []uint64{fee}, []*dextypes.DepositOptions{{false}}, diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index d9fc03af2..386e3ad64 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -4,12 +4,12 @@ import ( "encoding/json" "time" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" + "github.com/iancoleman/orderedmap" "github.com/neutron-org/neutron/x/dex/types" swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" - "github.com/iancoleman/orderedmap" "golang.org/x/exp/maps" ) @@ -30,7 +30,7 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) // deposit stake<>ibcTransferToken to initialize the pool on Duality - depositAmount := sdk.NewInt(100_000) + depositAmount := math.NewInt(100_000) s.dualityDeposit( nativeDenom, s.providerToDualityDenom, @@ -41,13 +41,13 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { s.dualityAddr) // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := sdk.NewInt(100000) - expectedAmountOut := sdk.NewInt(99990) + swapAmount := math.NewInt(100000) + expectedAmountOut := math.NewInt(99990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) @@ -109,7 +109,7 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { ) // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) // Check that duality account did not keep any of the transfer denom s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) @@ -143,7 +143,7 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) // deposit stake<>ibcTransferToken to initialize the pool on Duality - depositAmount := sdk.NewInt(100_000) + depositAmount := math.NewInt(100_000) s.dualityDeposit( nativeDenom, s.providerToDualityDenom, @@ -154,14 +154,14 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { s.dualityAddr) // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := sdk.NewInt(100000) + swapAmount := math.NewInt(100000) - expectedOut := sdk.NewInt(99_990) + expectedOut := math.NewInt(99_990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() @@ -253,7 +253,7 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { newProviderBalNative.Sub(ibcTransferAmount), ) // Check that chain B balance is unchanged - s.assertChainBBalance(chainBAddr, transferDenomDuality_B, sdk.ZeroInt()) + s.assertChainBBalance(chainBAddr, transferDenomDuality_B, math.ZeroInt()) // Check that funds made it to chainC s.assertChainCBalance(chainCAddr, transferDenomB_C, expectedOut) @@ -279,7 +279,7 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) // deposit stake<>ibcTransferToken to initialize the pool on Duality - depositAmount := sdk.NewInt(100_000) + depositAmount := math.NewInt(100_000) s.dualityDeposit( nativeDenom, s.providerToDualityDenom, @@ -290,12 +290,12 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.dualityAddr) // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) - swapAmount := sdk.NewInt(100000) - expectedAmountOut := sdk.NewInt(99990) + swapAmount := math.NewInt(100000) + expectedAmountOut := math.NewInt(99990) retries := uint8(0) @@ -381,7 +381,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) // deposit stake<>ibcTransferToken to initialize the pool on Duality - depositAmount := sdk.NewInt(100_000) + depositAmount := math.NewInt(100_000) s.dualityDeposit( nativeDenom, s.providerToDualityDenom, @@ -392,13 +392,13 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { s.dualityAddr) // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := sdk.NewInt(100000) - expectedAmountOut := sdk.NewInt(99990) + swapAmount := math.NewInt(100000) + expectedAmountOut := math.NewInt(99990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) @@ -461,7 +461,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { ) // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) // Check that the amountOut stays on the dualitychain s.assertDualityBalance( s.dualityAddr, @@ -477,5 +477,5 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { ) transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - s.assertChainBBalance(chainBAddr, transferDenomDuality_B, sdk.ZeroInt()) + s.assertChainBBalance(chainBAddr, transferDenomDuality_B, math.ZeroInt()) } diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index ab8973221..3cc72adb4 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -3,7 +3,7 @@ package ibc_test import ( "encoding/json" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" dextypes "github.com/neutron-org/neutron/x/dex/types" swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" ) @@ -27,7 +27,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) // deposit stake<>ibcTransferToken to initialize the pool on Duality - depositAmount := sdk.NewInt(100_000) + depositAmount := math.NewInt(100_000) s.dualityDeposit( nativeDenom, s.providerToDualityDenom, @@ -38,13 +38,13 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.dualityAddr) // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) // Send an IBC transfer from providerChain to Duality with packet memo containing the swap metadata - swapAmount := sdk.NewInt(100000) - expectedOut := sdk.NewInt(99_990) + swapAmount := math.NewInt(100000) + expectedOut := math.NewInt(99_990) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ @@ -83,14 +83,14 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Add(expectedOut)) // Check that all of the IBC transfer denom have been used up - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) } // TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Duality running as a // consumer chain connected to the Cosmos Hub. The swap should fail and a refund to the src chain should take place. func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair - swapAmount := sdk.NewInt(100000) + swapAmount := math.NewInt(100000) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ @@ -121,7 +121,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { // Check that the funds are not present in the account on Duality s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, sdk.ZeroInt()) + s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) // Check that the refund takes place and the funds are moved back to the account on Gaia s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) @@ -131,7 +131,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { // consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Duality. func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair - swapAmount := sdk.NewInt(100000) + swapAmount := math.NewInt(100000) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ @@ -175,7 +175,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair refundAddr := s.dualityChain.SenderAccounts[1].SenderAccount.GetAddress() - swapAmount := sdk.NewInt(100000) + swapAmount := math.NewInt(100000) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ diff --git a/testutil/integration_test_setup.go b/testutil/integration_test_setup.go index ebac488a9..5d8284ac2 100644 --- a/testutil/integration_test_setup.go +++ b/testutil/integration_test_setup.go @@ -73,7 +73,7 @@ func Setup(t *testing.T, isCheckTx bool) *app.App { ) balance := banktypes.Balance{ Address: acc.GetAddress().String(), - Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100000000000000))), + Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, math.NewInt(100000000000000))), } app := SetupWithGenesisValSet(t, valSet, []authtypes.GenesisAccount{acc}, balance) diff --git a/utils/cli_helpers.go b/utils/cli_helpers.go index 8dc123204..9c2779825 100644 --- a/utils/cli_helpers.go +++ b/utils/cli_helpers.go @@ -4,6 +4,7 @@ import ( "strconv" "strings" + "cosmossdk.io/math" "github.com/cometbft/cometbft/crypto/ed25519" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -27,8 +28,8 @@ func ParseUint64SliceFromString(s, separator string) ([]uint64, error) { return parsedInts, nil } -func ParseSdkIntFromString(s, separator string) ([]sdk.Int, error) { - var parsedInts []sdk.Int +func ParseSdkIntFromString(s, separator string) ([]math.Int, error) { + var parsedInts []math.Int for _, weightStr := range strings.Split(s, separator) { weightStr = strings.TrimSpace(weightStr) @@ -36,7 +37,7 @@ func ParseSdkIntFromString(s, separator string) ([]sdk.Int, error) { if err != nil { return parsedInts, err } - parsedInts = append(parsedInts, sdk.NewIntFromUint64(parsed)) + parsedInts = append(parsedInts, math.NewIntFromUint64(parsed)) } return parsedInts, nil } diff --git a/utils/dcli/parsers.go b/utils/dcli/parsers.go index 0575ded5c..65af3d222 100644 --- a/utils/dcli/parsers.go +++ b/utils/dcli/parsers.go @@ -8,6 +8,7 @@ import ( "strings" "time" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/spf13/pflag" @@ -339,10 +340,10 @@ func ParseCoins(arg, fieldName string) (sdk.Coins, error) { } // TODO: This really shouldn't be getting used in the CLI, its misdesign on the CLI ux -func ParseSdkInt(arg, fieldName string) (sdk.Int, error) { - i, ok := sdk.NewIntFromString(arg) +func ParseSdkInt(arg, fieldName string) (math.Int, error) { + i, ok := math.NewIntFromString(arg) if !ok { - return sdk.Int{}, fmt.Errorf("could not parse %s as sdk.Int for field %s", arg, fieldName) + return math.Int{}, fmt.Errorf("could not parse %s as math.Int for field %s", arg, fieldName) } return i, nil } diff --git a/utils/dcli/parsers_test.go b/utils/dcli/parsers_test.go index 5748dc6d6..2a90ca363 100644 --- a/utils/dcli/parsers_test.go +++ b/utils/dcli/parsers_test.go @@ -5,6 +5,7 @@ import ( "testing" "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" . "github.com/neutron-org/neutron/utils/dcli" "github.com/stretchr/testify/require" @@ -19,7 +20,7 @@ type testingStruct struct { Pointer *testingStruct Slice sdk.Coins Struct interface{} - Dec sdk.Dec + Dec math.LegacyDec } func TestParseFieldFromArg(t *testing.T) { @@ -81,24 +82,24 @@ func TestParseFieldFromArg(t *testing.T) { }, "Slice change": { testingStruct: testingStruct{Slice: sdk.Coins{ - sdk.NewCoin("foo", sdk.NewInt(100)), - sdk.NewCoin("bar", sdk.NewInt(100)), + sdk.NewCoin("foo", math.NewInt(100)), + sdk.NewCoin("bar", math.NewInt(100)), }}, arg: "10foo,10bar", // Should be of a format suitable for ParseCoinsNormalized fieldIndex: 6, expectedStruct: testingStruct{Slice: sdk.Coins{ // swapped places due to lexicographic order - sdk.NewCoin("bar", sdk.NewInt(10)), - sdk.NewCoin("foo", sdk.NewInt(10)), + sdk.NewCoin("bar", math.NewInt(10)), + sdk.NewCoin("foo", math.NewInt(10)), }}, }, "Struct (sdk.Coin) change": { - testingStruct: testingStruct{Struct: sdk.NewCoin("bar", sdk.NewInt(10))}, // only supports sdk.Int, sdk.Coin or time.Time, other structs are not recognized + testingStruct: testingStruct{Struct: sdk.NewCoin("bar", math.NewInt(10))}, // only supports math.Int, sdk.Coin or time.Time, other structs are not recognized arg: "100bar", fieldIndex: 7, - expectedStruct: testingStruct{Struct: sdk.NewCoin("bar", sdk.NewInt(10))}, + expectedStruct: testingStruct{Struct: sdk.NewCoin("bar", math.NewInt(10))}, }, "Unrecognizable struct": { - testingStruct: testingStruct{Struct: testingStruct{}}, // only supports sdk.Int, sdk.Coin or time.Time, other structs are not recognized + testingStruct: testingStruct{Struct: testingStruct{}}, // only supports math.Int, sdk.Coin or time.Time, other structs are not recognized arg: "whatever", fieldIndex: 7, expectingErr: true, @@ -118,10 +119,10 @@ func TestParseFieldFromArg(t *testing.T) { Duration: time.Second, Pointer: &testingStruct{}, Slice: sdk.Coins{ - sdk.NewCoin("foo", sdk.NewInt(100)), - sdk.NewCoin("bar", sdk.NewInt(100)), + sdk.NewCoin("foo", math.NewInt(100)), + sdk.NewCoin("bar", math.NewInt(100)), }, - Struct: sdk.NewCoin("bar", sdk.NewInt(10)), + Struct: sdk.NewCoin("bar", math.NewInt(10)), }, arg: "1foo,15bar", fieldIndex: 6, @@ -133,10 +134,10 @@ func TestParseFieldFromArg(t *testing.T) { Duration: time.Second, Pointer: &testingStruct{}, Slice: sdk.Coins{ - sdk.NewCoin("bar", sdk.NewInt(15)), - sdk.NewCoin("foo", sdk.NewInt(1)), + sdk.NewCoin("bar", math.NewInt(15)), + sdk.NewCoin("foo", math.NewInt(1)), }, - Struct: sdk.NewCoin("bar", sdk.NewInt(10)), + Struct: sdk.NewCoin("bar", math.NewInt(10)), }, }, "Dec struct": { diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go index f0cb85370..e09555bff 100644 --- a/utils/math/prec_dec.go +++ b/utils/math/prec_dec.go @@ -10,8 +10,6 @@ import ( "testing" "cosmossdk.io/math" - - sdk "github.com/cosmos/cosmos-sdk/types" ) // NOTE: This file is nearly direct copy from cosmossdk.io/math/dec.go @v1.01 @@ -131,13 +129,13 @@ func NewPrecDecFromBigIntWithPrec(i *big.Int, prec int64) PrecDec { // create a new PrecDec from big integer assuming whole numbers // CONTRACT: prec <= Precision -func NewPrecDecFromInt(i sdk.Int) PrecDec { +func NewPrecDecFromInt(i math.Int) PrecDec { return NewPrecDecFromIntWithPrec(i, 0) } // create a new PrecDec from big integer with decimal place at prec // CONTRACT: prec <= Precision -func NewPrecDecFromIntWithPrec(i sdk.Int, prec int64) PrecDec { +func NewPrecDecFromIntWithPrec(i math.Int, prec int64) PrecDec { return PrecDec{ new(big.Int).Mul(i.BigInt(), precisionMultiplier(prec)), } @@ -247,7 +245,7 @@ func (d PrecDec) ImmutOp(op func(PrecDec, PrecDec) PrecDec, d2 PrecDec) PrecDec return op(d.Clone(), d2) } -func (d PrecDec) ImmutOpInt(op func(PrecDec, sdk.Int) PrecDec, d2 sdk.Int) PrecDec { +func (d PrecDec) ImmutOpInt(op func(PrecDec, math.Int) PrecDec, d2 math.Int) PrecDec { return op(d.Clone(), d2) } @@ -328,11 +326,11 @@ func (d PrecDec) MulTruncateMut(d2 PrecDec) PrecDec { } // multiplication -func (d PrecDec) MulInt(i sdk.Int) PrecDec { +func (d PrecDec) MulInt(i math.Int) PrecDec { return d.ImmutOpInt(PrecDec.MulIntMut, i) } -func (d PrecDec) MulIntMut(i sdk.Int) PrecDec { +func (d PrecDec) MulIntMut(i math.Int) PrecDec { d.i.Mul(d.i, i.BigInt()) if d.i.BitLen() > maxPrecDecBitLen { panic("Int overflow") @@ -411,11 +409,11 @@ func (d PrecDec) QuoRoundupMut(d2 PrecDec) PrecDec { } // quotient -func (d PrecDec) QuoInt(i sdk.Int) PrecDec { +func (d PrecDec) QuoInt(i math.Int) PrecDec { return d.ImmutOpInt(PrecDec.QuoIntMut, i) } -func (d PrecDec) QuoIntMut(i sdk.Int) PrecDec { +func (d PrecDec) QuoIntMut(i math.Int) PrecDec { d.i.Quo(d.i, i.BigInt()) return d } @@ -684,8 +682,8 @@ func (d PrecDec) RoundInt64() int64 { } // RoundInt round the decimal using bankers rounding -func (d PrecDec) RoundInt() sdk.Int { - return sdk.NewIntFromBigInt(chopPrecisionAndRoundNonMutative(d.i)) +func (d PrecDec) RoundInt() math.Int { + return math.NewIntFromBigInt(chopPrecisionAndRoundNonMutative(d.i)) } // chopPrecisionAndTruncate is similar to chopPrecisionAndRound, @@ -710,8 +708,8 @@ func (d PrecDec) TruncateInt64() int64 { } // TruncateInt truncates the decimals from the number and returns an Int -func (d PrecDec) TruncateInt() sdk.Int { - return sdk.NewIntFromBigInt(chopPrecisionAndTruncateNonMutative(d.i)) +func (d PrecDec) TruncateInt() math.Int { + return math.NewIntFromBigInt(chopPrecisionAndTruncateNonMutative(d.i)) } // TruncatePrecDec truncates the decimals from the number and returns a PrecDec diff --git a/x/dex/client/cli/query_test.go b/x/dex/client/cli/query_test.go index bccd16375..a3774204e 100644 --- a/x/dex/client/cli/query_test.go +++ b/x/dex/client/cli/query_test.go @@ -54,10 +54,10 @@ package cli // TokenIn: "TokenB", // TickIndex: 1, // TrancheKey: "0", -// ReservesTokenIn: sdk.NewInt(10), -// ReservesTokenOut: sdk.ZeroInt(), -// TotalTokenIn: sdk.NewInt(10), -// TotalTokenOut: sdk.ZeroInt(), +// ReservesTokenIn: math.NewInt(10), +// ReservesTokenOut: math.ZeroInt(), +// TotalTokenIn: math.NewInt(10), +// TotalTokenOut: math.ZeroInt(), // }, // }, // }, @@ -71,10 +71,10 @@ package cli // TokenIn: "TokenB", // TickIndex: 2, // TrancheKey: "1", -// ReservesTokenIn: sdk.NewInt(10), -// ReservesTokenOut: sdk.ZeroInt(), -// TotalTokenIn: sdk.NewInt(10), -// TotalTokenOut: sdk.ZeroInt(), +// ReservesTokenIn: math.NewInt(10), +// ReservesTokenOut: math.ZeroInt(), +// TotalTokenIn: math.NewInt(10), +// TotalTokenOut: math.ZeroInt(), // }, // }, // }, @@ -86,20 +86,20 @@ package cli // TokenIn: "TokenB", // TickIndex: 0, // TrancheKey: "0", -// TotalTokenIn: sdk.NewInt(10), -// TotalTokenOut: sdk.NewInt(10), -// ReservesTokenOut: sdk.NewInt(10), -// ReservesTokenIn: sdk.NewInt(0), +// TotalTokenIn: math.NewInt(10), +// TotalTokenOut: math.NewInt(10), +// ReservesTokenOut: math.NewInt(10), +// ReservesTokenIn: math.NewInt(0), // }, // { // PairID: &types.PairID{Token0: "TokenA", Token1: "TokenB"}, // TokenIn: "TokenB", // TickIndex: 0, // TrancheKey: "1", -// TotalTokenIn: sdk.NewInt(10), -// TotalTokenOut: sdk.NewInt(10), -// ReservesTokenOut: sdk.NewInt(10), -// ReservesTokenIn: sdk.NewInt(0), +// TotalTokenIn: math.NewInt(10), +// TotalTokenOut: math.NewInt(10), +// ReservesTokenOut: math.NewInt(10), +// ReservesTokenIn: math.NewInt(0), // }, // } @@ -114,7 +114,7 @@ package cli // TokenIn: "TokenB", // TickIndex: 0, // Fee: 1, -// Reserves: sdk.NewInt(10), +// Reserves: math.NewInt(10), // }, // }, // }, @@ -128,7 +128,7 @@ package cli // TokenIn: "TokenB", // TickIndex: 0, // Fee: 3, -// Reserves: sdk.NewInt(10), +// Reserves: math.NewInt(10), // }, // }, // }, @@ -141,9 +141,9 @@ package cli // TickIndex: 1, // TrancheKey: "0", // Address: testAddress.String(), -// SharesOwned: sdk.NewInt(10), -// SharesWithdrawn: sdk.NewInt(0), -// SharesCancelled: sdk.NewInt(0), +// SharesOwned: math.NewInt(10), +// SharesWithdrawn: math.NewInt(0), +// SharesCancelled: math.NewInt(0), // }, // { // PairID: &types.PairID{Token0: "TokenA", Token1: "TokenB"}, @@ -151,9 +151,9 @@ package cli // TickIndex: 20, // TrancheKey: "1", // Address: testAddress.String(), -// SharesOwned: sdk.NewInt(10), -// SharesWithdrawn: sdk.NewInt(0), -// SharesCancelled: sdk.NewInt(0), +// SharesOwned: math.NewInt(10), +// SharesWithdrawn: math.NewInt(0), +// SharesCancelled: math.NewInt(0), // }, // } diff --git a/x/dex/client/cli/tx_deposit.go b/x/dex/client/cli/tx_deposit.go index 23c6300e4..31a833303 100644 --- a/x/dex/client/cli/tx_deposit.go +++ b/x/dex/client/cli/tx_deposit.go @@ -5,10 +5,10 @@ import ( "strconv" "strings" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" @@ -41,14 +41,14 @@ func CmdDeposit() *cobra.Command { argFees := strings.Split(args[6], ",") argDepositOptions := strings.Split(args[7], ",") - var AmountsA []sdk.Int - var AmountsB []sdk.Int + var AmountsA []math.Int + var AmountsB []math.Int var TicksIndexesInt []int64 var FeesUint []uint64 var DepositOptions []*types.DepositOptions for _, s := range argAmountsA { - amountA, ok := sdk.NewIntFromString(s) + amountA, ok := math.NewIntFromString(s) if !ok { return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer overflow for amountsA") } @@ -57,7 +57,7 @@ func CmdDeposit() *cobra.Command { } for _, s := range argAmountsB { - amountB, ok := sdk.NewIntFromString(s) + amountB, ok := math.NewIntFromString(s) if !ok { return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer overflow for amountsB") } diff --git a/x/dex/client/cli/tx_multi_hop_swap.go b/x/dex/client/cli/tx_multi_hop_swap.go index ff3eb34f9..bf703cb2a 100644 --- a/x/dex/client/cli/tx_multi_hop_swap.go +++ b/x/dex/client/cli/tx_multi_hop_swap.go @@ -4,10 +4,10 @@ import ( "strconv" "strings" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" @@ -33,7 +33,7 @@ func CmdMultiHopSwap() *cobra.Command { routesArr[i] = strings.Split(route, ",") } - amountInInt, ok := sdk.NewIntFromString(argAmountIn) + amountInInt, ok := math.NewIntFromString(argAmountIn) if !ok { return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Invalid value for amount-in") } diff --git a/x/dex/client/cli/tx_place_limit_order.go b/x/dex/client/cli/tx_place_limit_order.go index 4e4faa95d..6ae51074c 100644 --- a/x/dex/client/cli/tx_place_limit_order.go +++ b/x/dex/client/cli/tx_place_limit_order.go @@ -5,10 +5,10 @@ import ( "strings" "time" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" @@ -36,7 +36,7 @@ func CmdPlaceLimitOrder() *cobra.Command { } argAmountIn := args[4] - amountInInt, ok := sdk.NewIntFromString(argAmountIn) + amountInInt, ok := math.NewIntFromString(argAmountIn) if !ok { return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer overflow for amount-in") } @@ -64,9 +64,9 @@ func CmdPlaceLimitOrder() *cobra.Command { if err != nil { return err } - var maxAmountOutIntP *sdk.Int = nil + var maxAmountOutIntP *math.Int = nil if maxAmountOutArg != "" { - maxAmountOutInt, ok := sdk.NewIntFromString(maxAmountOutArg) + maxAmountOutInt, ok := math.NewIntFromString(maxAmountOutArg) if !ok { return sdkerrors.Wrapf( types.ErrIntOverflowTx, diff --git a/x/dex/client/cli/tx_test.go b/x/dex/client/cli/tx_test.go index 389138114..2e40e8ea6 100644 --- a/x/dex/client/cli/tx_test.go +++ b/x/dex/client/cli/tx_test.go @@ -156,7 +156,7 @@ package cli // fmt.Sprintf( // "--%s=%s", // flags.FlagFees, -// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(10))).String(), // ), // } // out, err := clitestutil.MsgSendExec( @@ -180,7 +180,7 @@ package cli // fmt.Sprintf( // "--%s=%s", // flags.FlagFees, -// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(10))).String(), // ), // fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), // fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), @@ -283,7 +283,7 @@ package cli // fmt.Sprintf( // "--%s=%s", // flags.FlagFees, -// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(10))).String(), // ), // fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), // fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), @@ -396,7 +396,7 @@ package cli // fmt.Sprintf( // "--%s=%s", // flags.FlagFees, -// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(10))).String(), // ), // fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), // fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), @@ -521,7 +521,7 @@ package cli // fmt.Sprintf( // "--%s=%s", // flags.FlagFees, -// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(10))).String(), // ), // fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), // fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), @@ -585,7 +585,7 @@ package cli // fmt.Sprintf( // "--%s=%s", // flags.FlagFees, -// sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10))).String(), +// sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(10))).String(), // ), // fmt.Sprintf("--%s=%s", flags.FlagGas, "200000000"), // fmt.Sprintf("--%s=%s", flags.FlagFrom, val[0].Address.String()), diff --git a/x/dex/client/cli/tx_withdrawl.go b/x/dex/client/cli/tx_withdrawl.go index 534ee2613..277f31488 100644 --- a/x/dex/client/cli/tx_withdrawl.go +++ b/x/dex/client/cli/tx_withdrawl.go @@ -4,10 +4,10 @@ import ( "strconv" "strings" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" @@ -32,11 +32,11 @@ func CmdWithdrawal() *cobra.Command { argTickIndexes := strings.Split(args[4], ",") argFees := strings.Split(args[5], ",") - var SharesToRemoveInt []sdk.Int + var SharesToRemoveInt []math.Int var TicksIndexesInt []int64 var FeesUint []uint64 for _, s := range argSharesToRemove { - sharesToRemoveInt, ok := sdk.NewIntFromString(s) + sharesToRemoveInt, ok := math.NewIntFromString(s) if !ok { return sdkerrors.Wrapf(types.ErrIntOverflowTx, "Integer Overflow for shares-to-remove") diff --git a/x/dex/genesis_test.go b/x/dex/genesis_test.go index 3984887c7..d315eb455 100644 --- a/x/dex/genesis_test.go +++ b/x/dex/genesis_test.go @@ -3,7 +3,7 @@ package dex_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/testutil/dex/nullify" "github.com/neutron-org/neutron/x/dex" @@ -23,9 +23,9 @@ func TestGenesis(t *testing.T) { TickIndexTakerToMaker: 1, TrancheKey: "0", Address: "fakeAddr", - SharesOwned: sdk.NewInt(10), - SharesWithdrawn: sdk.NewInt(0), - SharesCancelled: sdk.NewInt(0), + SharesOwned: math.NewInt(10), + SharesWithdrawn: math.NewInt(0), + SharesCancelled: math.NewInt(0), }, { TradePairID: &types.TradePairID{ @@ -35,9 +35,9 @@ func TestGenesis(t *testing.T) { TickIndexTakerToMaker: 20, TrancheKey: "0", Address: "fakeAddr", - SharesOwned: sdk.NewInt(10), - SharesWithdrawn: sdk.NewInt(0), - SharesCancelled: sdk.NewInt(0), + SharesOwned: math.NewInt(10), + SharesWithdrawn: math.NewInt(0), + SharesCancelled: math.NewInt(0), }, }, TickLiquidityList: []*types.TickLiquidity{ @@ -48,10 +48,10 @@ func TestGenesis(t *testing.T) { "TokenA", "0", 0, - sdk.ZeroInt(), - sdk.ZeroInt(), - sdk.ZeroInt(), - sdk.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), ), }, }, @@ -62,10 +62,10 @@ func TestGenesis(t *testing.T) { "TokenA", "0", 0, - sdk.ZeroInt(), - sdk.ZeroInt(), - sdk.ZeroInt(), - sdk.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), + math.ZeroInt(), ), }, }, diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index 5e35eae1a..1fa69de81 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -4,6 +4,7 @@ import ( "context" "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" @@ -11,7 +12,7 @@ import ( "github.com/neutron-org/neutron/x/dex/utils" ) -// NOTE: Currently we are using TruncateInt in multiple places for converting Decs back into sdk.Ints. +// NOTE: Currently we are using TruncateInt in multiple places for converting Decs back into math.Ints. // This may create some accounting anomalies but seems preferable to other alternatives. // See full ADR here: https://www.notion.so/dualityxyz/A-Modest-Proposal-For-Truncating-696a919d59254876a617f82fb9567895 @@ -22,23 +23,23 @@ func (k Keeper) DepositCore( pairID *types.PairID, callerAddr sdk.AccAddress, receiverAddr sdk.AccAddress, - amounts0 []sdk.Int, - amounts1 []sdk.Int, + amounts0 []math.Int, + amounts1 []math.Int, tickIndices []int64, fees []uint64, options []*types.DepositOptions, -) (amounts0Deposit, amounts1Deposit []sdk.Int, sharesIssued sdk.Coins, err error) { +) (amounts0Deposit, amounts1Deposit []math.Int, sharesIssued sdk.Coins, err error) { ctx := sdk.UnwrapSDKContext(goCtx) - totalAmountReserve0 := sdk.ZeroInt() - totalAmountReserve1 := sdk.ZeroInt() - amounts0Deposited := make([]sdk.Int, len(amounts0)) - amounts1Deposited := make([]sdk.Int, len(amounts1)) + totalAmountReserve0 := math.ZeroInt() + totalAmountReserve1 := math.ZeroInt() + amounts0Deposited := make([]math.Int, len(amounts0)) + amounts1Deposited := make([]math.Int, len(amounts1)) sharesIssued = sdk.Coins{} for i := 0; i < len(amounts0); i++ { - amounts0Deposited[i] = sdk.ZeroInt() - amounts1Deposited[i] = sdk.ZeroInt() + amounts0Deposited[i] = math.ZeroInt() + amounts1Deposited[i] = math.ZeroInt() } for i, amount0 := range amounts0 { @@ -124,13 +125,13 @@ func (k Keeper) WithdrawCore( pairID *types.PairID, callerAddr sdk.AccAddress, receiverAddr sdk.AccAddress, - sharesToRemoveList []sdk.Int, + sharesToRemoveList []math.Int, tickIndicesNormalized []int64, fees []uint64, ) error { ctx := sdk.UnwrapSDKContext(goCtx) - totalReserve0ToRemove := sdk.ZeroInt() - totalReserve1ToRemove := sdk.ZeroInt() + totalReserve0ToRemove := math.ZeroInt() + totalReserve1ToRemove := math.ZeroInt() for i, fee := range fees { sharesToRemove := sharesToRemoveList[i] @@ -212,7 +213,7 @@ func (k Keeper) WithdrawCore( func (k Keeper) MultiHopSwapCore( goCtx context.Context, - amountIn sdk.Int, + amountIn math.Int, routes []*types.MultiHopRoute, exitLimitPrice math_utils.PrecDec, pickBestRoute bool, @@ -228,7 +229,7 @@ func (k Keeper) MultiHopSwapCore( coinOut sdk.Coin route []string } - bestRoute.coinOut = sdk.Coin{Amount: sdk.ZeroInt()} + bestRoute.coinOut = sdk.Coin{Amount: math.ZeroInt()} for _, route := range routes { routeCoinOut, writeRoute, err := k.RunMultihopRoute( @@ -300,11 +301,11 @@ func (k Keeper) PlaceLimitOrderCore( goCtx context.Context, tokenIn string, tokenOut string, - amountIn sdk.Int, + amountIn math.Int, tickIndexInToOut int64, orderType types.LimitOrderType, goodTil *time.Time, - maxAmountOut *sdk.Int, + maxAmountOut *math.Int, callerAddr sdk.AccAddress, receiverAddr sdk.AccAddress, ) (trancheKey string, totalInCoin sdk.Coin, swapInCoin sdk.Coin, swapOutCoin sdk.Coin, err error) { @@ -316,7 +317,7 @@ func (k Keeper) PlaceLimitOrderCore( return } - amountLeft, totalIn := amountIn, sdk.ZeroInt() + amountLeft, totalIn := amountIn, math.ZeroInt() // For everything except just-in-time (JIT) orders try to execute as a swap first if !orderType.IsJIT() { @@ -387,7 +388,7 @@ func (k Keeper) PlaceLimitOrderCore( receiverAddr.String(), ) - sharesIssued := sdk.ZeroInt() + sharesIssued := math.ZeroInt() // FOR GTC, JIT & GoodTil try to place a maker limitOrder with remaining Amount if amountLeft.IsPositive() && (orderType.IsGTC() || orderType.IsJIT() || orderType.IsGoodTil()) { @@ -537,10 +538,10 @@ func (k Keeper) WithdrawFilledLimitOrderCore( ) amountOutTokenOut := math_utils.ZeroPrecDec() - remainingTokenIn := sdk.ZeroInt() + remainingTokenIn := math.ZeroInt() // It's possible that a TrancheUser exists but tranche does not if LO was filled entirely through a swap if found { - var amountOutTokenIn sdk.Int + var amountOutTokenIn math.Int amountOutTokenIn, amountOutTokenOut = tranche.Withdraw(trancheUser) if wasFilled { diff --git a/x/dex/keeper/core_helper.go b/x/dex/keeper/core_helper.go index b6089cf83..cf5d0ff81 100644 --- a/x/dex/keeper/core_helper.go +++ b/x/dex/keeper/core_helper.go @@ -1,6 +1,7 @@ package keeper import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" @@ -91,7 +92,7 @@ func (k Keeper) MintShares(ctx sdk.Context, addr sdk.AccAddress, shareCoin sdk.C func (k Keeper) BurnShares( ctx sdk.Context, addr sdk.AccAddress, - amount sdk.Int, + amount math.Int, sharesID string, ) error { sharesCoins := sdk.Coins{sdk.NewCoin(sharesID, amount)} diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go index bb257dee3..d04e3d996 100644 --- a/x/dex/keeper/core_helper_test.go +++ b/x/dex/keeper/core_helper_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "testing" + "cosmossdk.io/math" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -59,8 +60,8 @@ func (s *CoreHelpersTestSuite) setLPAtFee1Pool(tickIndex int64, amountA int, amo panic(err) } lowerTick, upperTick := pool.LowerTick0, pool.UpperTick1 - amountAInt := sdk.NewInt(int64(amountA)) - amountBInt := sdk.NewInt(int64(amountB)) + amountAInt := math.NewInt(int64(amountA)) + amountBInt := math.NewInt(int64(amountB)) existingShares := s.app.BankKeeper.GetSupply(s.ctx, pool.GetPoolDenom()).Amount diff --git a/x/dex/keeper/deposit_record_test.go b/x/dex/keeper/deposit_record_test.go index aed7bcc1d..864b5b111 100644 --- a/x/dex/keeper/deposit_record_test.go +++ b/x/dex/keeper/deposit_record_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -10,20 +10,20 @@ func (s *MsgServerTestSuite) TestGetAllDeposits() { // GIVEN Alice Deposits 3 positions and withdraws the first s.aliceDeposits( &Deposit{ - AmountA: sdk.NewInt(1), - AmountB: sdk.NewInt(0), + AmountA: math.NewInt(1), + AmountB: math.NewInt(0), TickIndex: -50, Fee: 1, }, &Deposit{ - AmountA: sdk.NewInt(5), - AmountB: sdk.NewInt(5), + AmountA: math.NewInt(5), + AmountB: math.NewInt(5), TickIndex: 0, Fee: 1, }, &Deposit{ - AmountA: sdk.NewInt(0), - AmountB: sdk.NewInt(10), + AmountA: math.NewInt(0), + AmountB: math.NewInt(10), TickIndex: 2, Fee: 1, }, @@ -31,7 +31,7 @@ func (s *MsgServerTestSuite) TestGetAllDeposits() { s.aliceWithdraws(&Withdrawal{ TickIndex: -50, Fee: 1, - Shares: sdk.NewInt(1), + Shares: math.NewInt(1), }, ) @@ -40,7 +40,7 @@ func (s *MsgServerTestSuite) TestGetAllDeposits() { s.Assert().Equal(2, len(depositList)) s.Assert().Equal(&types.DepositRecord{ PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 0, LowerTickIndex: -1, UpperTickIndex: 1, @@ -50,7 +50,7 @@ func (s *MsgServerTestSuite) TestGetAllDeposits() { ) s.Assert().Equal(&types.DepositRecord{ PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 2, LowerTickIndex: 1, UpperTickIndex: 3, diff --git a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go index ed9721549..8d8080ded 100644 --- a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go +++ b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" math_utils "github.com/neutron-org/neutron/utils/math" @@ -22,7 +23,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapSingleRoute() { coinOut := s.aliceEstimatesMultiHopSwap(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) // THEN alice would get out 99 TokenD - s.Assert().Equal(sdk.NewInt(97), coinOut.Amount) + s.Assert().Equal(math.NewInt(97), coinOut.Amount) s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) s.assertAccountBalanceWithDenom(s.alice, "TokenD", 0) @@ -99,8 +100,8 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) @@ -110,27 +111,27 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { // THEN swap estimation succeeds through route A<>B, B<>E, E<>X - s.Assert().Equal(sdk.NewInt(97), coinOut.Amount) + s.Assert().Equal(math.NewInt(97), coinOut.Amount) s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) s.assertAccountBalanceWithDenom(s.alice, "TokenX", 0) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) @@ -138,43 +139,43 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { // Other pools are unaffected s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 2200, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 2200, 1, ) @@ -247,25 +248,25 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { // THEN swap succeeds through route A<>B, B<>E, E<>X - s.Assert().Equal(sdk.NewCoin("TokenX", sdk.NewInt(132)), coinOut) + s.Assert().Equal(sdk.NewCoin("TokenX", math.NewInt(132)), coinOut) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(1000), + math.NewInt(0), + math.NewInt(1000), -3000, 1, ) @@ -273,29 +274,29 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { // Other pools are unaffected s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(1000), + math.NewInt(0), + math.NewInt(1000), -1000, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(1000), + math.NewInt(0), + math.NewInt(1000), -2000, 1, ) @@ -338,12 +339,12 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLongRouteWithCache() { coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.8"), true) // THEN swap succeeds with second route - s.Assert().Equal(coinOut, sdk.NewCoin("TokenX", sdk.NewInt(88))) + s.Assert().Equal(coinOut, sdk.NewCoin("TokenX", math.NewInt(88))) s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenM", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) diff --git a/x/dex/keeper/grpc_query_user_deposits_test.go b/x/dex/keeper/grpc_query_user_deposits_test.go index 69c4e592b..5719b94e2 100644 --- a/x/dex/keeper/grpc_query_user_deposits_test.go +++ b/x/dex/keeper/grpc_query_user_deposits_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "testing" + "cosmossdk.io/math" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" @@ -35,7 +36,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { msgs := []*types.DepositRecord{ { PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 2, LowerTickIndex: 1, UpperTickIndex: 3, @@ -43,7 +44,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { }, { PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 3, LowerTickIndex: 2, UpperTickIndex: 4, @@ -51,7 +52,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { }, { PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 4, LowerTickIndex: 3, UpperTickIndex: 5, @@ -59,7 +60,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { }, { PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 5, LowerTickIndex: 4, UpperTickIndex: 6, @@ -67,7 +68,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { }, { PairID: defaultPairID, - SharesOwned: sdk.NewInt(10), + SharesOwned: math.NewInt(10), CenterTickIndex: 6, LowerTickIndex: 5, UpperTickIndex: 7, diff --git a/x/dex/keeper/integration_deposit_autoswap_unit_test.go b/x/dex/keeper/integration_deposit_autoswap_unit_test.go index e7236da73..551c6dd44 100644 --- a/x/dex/keeper/integration_deposit_autoswap_unit_test.go +++ b/x/dex/keeper/integration_deposit_autoswap_unit_test.go @@ -24,7 +24,7 @@ func (s *MsgServerTestSuite) TestAutoswapperWithdraws() { // Calculated expected amounts out autoswapSharesMinted := s.calcAutoswapSharesMinted(int64(tickIndex), uint64(fee), 7, 0, 5, 5, bobSharesMinted.Int64(), bobSharesMinted.Int64()) - // totalShares := autoswapSharesMinted.Add(sdk.NewInt(20)) + // totalShares := autoswapSharesMinted.Add(math.NewInt(20)) aliceExpectedBalance0, aliceExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(autoswapSharesMinted, s.alice, int64(tickIndex), uint64(fee)) @@ -90,7 +90,7 @@ func (s *MsgServerTestSuite) TestAutoswapBothWithdraws() { // Calculated expected amounts out autoswapSharesMinted := s.calcAutoswapSharesMinted(int64(tickIndex), uint64(fee), 5, 0, 5, 5, bobSharesMinted.Int64(), bobSharesMinted.Int64()) - // totalShares := autoswapSharesMinted.Add(sdk.NewInt(20)) + // totalShares := autoswapSharesMinted.Add(math.NewInt(20)) bobExpectedBalance0, bobExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(bobSharesMinted, s.bob, int64(tickIndex), uint64(fee)) diff --git a/x/dex/keeper/integration_deposit_doublesided_test.go b/x/dex/keeper/integration_deposit_doublesided_test.go index dc03f571f..a5a09eddb 100644 --- a/x/dex/keeper/integration_deposit_doublesided_test.go +++ b/x/dex/keeper/integration_deposit_doublesided_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -221,7 +221,7 @@ func (s *MsgServerTestSuite) TestDepositValueAccural() { // Alice deposits 100TokenA @ tick0 => 100 shares s.aliceDeposits(NewDeposit(100, 0, 0, 10)) s.assertAliceShares(0, 10, 100) - s.assertLiquidityAtTick(sdk.NewInt(100), sdk.ZeroInt(), 0, 10) + s.assertLiquidityAtTick(math.NewInt(100), math.ZeroInt(), 0, 10) // Lots of trade activity => ~200 ExistingValueToken0 @@ -233,7 +233,7 @@ func (s *MsgServerTestSuite) TestDepositValueAccural() { s.bobLimitSells("TokenA", 10, int(liquidityB.Int64())+10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) } } - s.assertLiquidityAtTick(sdk.NewInt(200), sdk.NewInt(0), 0, 10) + s.assertLiquidityAtTick(math.NewInt(200), math.NewInt(0), 0, 10) s.assertDexBalances(200, 0) // Carol deposits 100TokenA @tick0 diff --git a/x/dex/keeper/integration_deposit_multi_test.go b/x/dex/keeper/integration_deposit_multi_test.go index 330ab70d9..6423954a8 100644 --- a/x/dex/keeper/integration_deposit_multi_test.go +++ b/x/dex/keeper/integration_deposit_multi_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -40,6 +40,6 @@ func (s *MsgServerTestSuite) TestDepositMultiSuccess() { // THEN // both deposits should go through s.assertAliceBalances(35, 35) - s.assertLiquidityAtTick(sdk.NewInt(15), sdk.NewInt(15), 0, 1) + s.assertLiquidityAtTick(math.NewInt(15), math.NewInt(15), 0, 1) s.assertDexBalances(15, 15) } diff --git a/x/dex/keeper/integration_multihopswap_test.go b/x/dex/keeper/integration_multihopswap_test.go index 52a5f32da..ad926f342 100644 --- a/x/dex/keeper/integration_multihopswap_test.go +++ b/x/dex/keeper/integration_multihopswap_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" math_utils "github.com/neutron-org/neutron/utils/math" @@ -30,8 +31,8 @@ func NewPoolSetup(tokenA, tokenB string, amountA, amountB, tickIndex, fee int) P func (s *MsgServerTestSuite) SetupMultiplePools(poolSetups ...PoolSetup) { for _, p := range poolSetups { coins := sdk.NewCoins( - sdk.NewCoin(p.TokenA, sdk.NewInt(int64(p.AmountA))), - sdk.NewCoin(p.TokenB, sdk.NewInt(int64(p.AmountB))), + sdk.NewCoin(p.TokenA, math.NewInt(int64(p.AmountA))), + sdk.NewCoin(p.TokenB, math.NewInt(int64(p.AmountB))), ) s.fundAccountBalancesWithDenom(s.bob, coins) pairID := types.PairID{Token0: p.TokenA, Token1: p.TokenB} @@ -138,22 +139,22 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteOneGood() { s.assertAccountBalanceWithDenom(s.alice, "TokenX", 97) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - sdk.NewInt(100), - sdk.NewInt(1), + math.NewInt(100), + math.NewInt(1), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - sdk.NewInt(99), - sdk.NewInt(2), + math.NewInt(99), + math.NewInt(2), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - sdk.NewInt(98), - sdk.NewInt(3), + math.NewInt(98), + math.NewInt(3), 0, 1, ) @@ -161,43 +162,43 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteOneGood() { // Other pools are unaffected s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 2200, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(50), + math.NewInt(0), + math.NewInt(50), 2200, 1, ) @@ -274,22 +275,22 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { s.assertAccountBalanceWithDenom(s.alice, "TokenX", 132) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - sdk.NewInt(100), - sdk.NewInt(1), + math.NewInt(100), + math.NewInt(1), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - sdk.NewInt(99), - sdk.NewInt(2), + math.NewInt(99), + math.NewInt(2), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - sdk.NewInt(98), - sdk.NewInt(868), + math.NewInt(98), + math.NewInt(868), -3000, 1, ) @@ -297,29 +298,29 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { // Other pools are unaffected s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(1000), + math.NewInt(0), + math.NewInt(1000), -1000, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - sdk.NewInt(0), - sdk.NewInt(1000), + math.NewInt(0), + math.NewInt(1000), -2000, 1, ) @@ -366,8 +367,8 @@ func (s *MsgServerTestSuite) TestMultiHopSwapLongRouteWithCache() { s.assertAccountBalanceWithDenom(s.alice, "TokenX", 88) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenM", Token1: "TokenX"}, - sdk.NewInt(89), - sdk.NewInt(12), + math.NewInt(89), + math.NewInt(12), 0, 1, ) diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 59ce4ad3f..605441408 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -4,8 +4,8 @@ import ( "math" "time" + sdkmath "cosmossdk.io/math" abci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/dex/types" ) @@ -763,7 +763,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilAlreadyExpiredFails() { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.NewInt(50), + AmountIn: sdkmath.NewInt(50), OrderType: types.LimitOrderType_GOOD_TIL_TIME, ExpirationTime: &yesterday, }) diff --git a/x/dex/keeper/integration_withdraw_multi_test.go b/x/dex/keeper/integration_withdraw_multi_test.go index ae4485ff9..6b092f4c3 100644 --- a/x/dex/keeper/integration_withdraw_multi_test.go +++ b/x/dex/keeper/integration_withdraw_multi_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -11,7 +11,7 @@ func (s *MsgServerTestSuite) TestWithdrawMultiFailure() { // alice deposits 5 A, 5 B in tick 0 fee 0 s.aliceDeposits(NewDeposit(5, 5, 0, 1)) s.assertAliceShares(0, 1, 10) - s.assertLiquidityAtTick(sdk.NewInt(5), sdk.NewInt(5), 0, 1) + s.assertLiquidityAtTick(math.NewInt(5), math.NewInt(5), 0, 1) s.assertAliceBalances(45, 45) s.assertDexBalances(5, 5) @@ -33,7 +33,7 @@ func (s *MsgServerTestSuite) TestWithdrawMultiSuccess() { // alice deposits 5 A, 5 B in tick 0 fee 1 s.aliceDeposits(NewDeposit(5, 5, 0, 1)) s.assertAliceShares(0, 1, 10) - s.assertLiquidityAtTick(sdk.NewInt(5), sdk.NewInt(5), 0, 1) + s.assertLiquidityAtTick(math.NewInt(5), math.NewInt(5), 0, 1) s.assertAliceBalances(45, 45) s.assertDexBalances(5, 5) @@ -48,7 +48,7 @@ func (s *MsgServerTestSuite) TestWithdrawMultiSuccess() { // both withdraws should work // i.e. no shares remaining and entire balance transferred out s.assertAliceShares(0, 1, 0) - s.assertLiquidityAtTick(sdk.ZeroInt(), sdk.ZeroInt(), 0, 1) + s.assertLiquidityAtTick(math.ZeroInt(), math.ZeroInt(), 0, 1) s.assertAliceBalances(50, 50) s.assertDexBalances(0, 0) } diff --git a/x/dex/keeper/integration_withdraw_test.go b/x/dex/keeper/integration_withdraw_test.go index afd7f4ece..afeeb89e9 100644 --- a/x/dex/keeper/integration_withdraw_test.go +++ b/x/dex/keeper/integration_withdraw_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "math" - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -251,7 +251,7 @@ func (s *MsgServerTestSuite) TestWithdrawalFailsWithNonExistentPair() { Receiver: s.alice.String(), TokenA: "TokenX", TokenB: "TokenZ", - SharesToRemove: []sdk.Int{sdk.NewInt(10)}, + SharesToRemove: []sdkmath.Int{sdkmath.NewInt(10)}, TickIndexesAToB: []int64{0}, Fees: []uint64{0}, }) diff --git a/x/dex/keeper/internal/testutils/test_helpers.go b/x/dex/keeper/internal/testutils/test_helpers.go index fc72286eb..4b87f7f95 100644 --- a/x/dex/keeper/internal/testutils/test_helpers.go +++ b/x/dex/keeper/internal/testutils/test_helpers.go @@ -1,16 +1,17 @@ package keeper import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" dexmoduletypes "github.com/neutron-org/neutron/x/dex/types" ) -func NewACoin(amt sdk.Int) sdk.Coin { +func NewACoin(amt math.Int) sdk.Coin { return sdk.NewCoin("TokenA", amt) } -func NewBCoin(amt sdk.Int) sdk.Coin { +func NewBCoin(amt math.Int) sdk.Coin { return sdk.NewCoin("TokenB", amt) } diff --git a/x/dex/keeper/limit_order_expiration_test.go b/x/dex/keeper/limit_order_expiration_test.go index 9e5b2c6af..e73978b37 100644 --- a/x/dex/keeper/limit_order_expiration_test.go +++ b/x/dex/keeper/limit_order_expiration_test.go @@ -5,6 +5,7 @@ import ( "testing" "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/x/dex/keeper" @@ -47,10 +48,10 @@ func createLimitOrderExpirationAndTranches( TickIndexTakerToMaker: 0, TrancheKey: strconv.Itoa(i), }, - ReservesMakerDenom: sdk.NewInt(10), - ReservesTakerDenom: sdk.NewInt(10), - TotalMakerDenom: sdk.NewInt(10), - TotalTakerDenom: sdk.NewInt(10), + ReservesMakerDenom: math.NewInt(10), + ReservesTakerDenom: math.NewInt(10), + TotalMakerDenom: math.NewInt(10), + TotalTakerDenom: math.NewInt(10), ExpirationTime: &expTimes[i], } items[i].ExpirationTime = expTimes[i] diff --git a/x/dex/keeper/limit_order_tranche.go b/x/dex/keeper/limit_order_tranche.go index 6628c4e12..791629989 100644 --- a/x/dex/keeper/limit_order_tranche.go +++ b/x/dex/keeper/limit_order_tranche.go @@ -4,6 +4,7 @@ import ( "fmt" "time" + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/dex/types" @@ -20,10 +21,10 @@ func NewLimitOrderTranche( } return &types.LimitOrderTranche{ Key: limitOrderTrancheKey, - ReservesMakerDenom: sdk.ZeroInt(), - ReservesTakerDenom: sdk.ZeroInt(), - TotalMakerDenom: sdk.ZeroInt(), - TotalTakerDenom: sdk.ZeroInt(), + ReservesMakerDenom: math.ZeroInt(), + ReservesTakerDenom: math.ZeroInt(), + TotalMakerDenom: math.ZeroInt(), + TotalTakerDenom: math.ZeroInt(), ExpirationTime: goodTil, PriceTakerToMaker: priceTakerToMaker, }, nil diff --git a/x/dex/keeper/limit_order_tranche_user.go b/x/dex/keeper/limit_order_tranche_user.go index 077982a41..b075fff67 100644 --- a/x/dex/keeper/limit_order_tranche_user.go +++ b/x/dex/keeper/limit_order_tranche_user.go @@ -1,6 +1,7 @@ package keeper import ( + "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/dex/types" @@ -20,9 +21,9 @@ func (k Keeper) GetOrInitLimitOrderTrancheUser( return &types.LimitOrderTrancheUser{ TrancheKey: trancheKey, Address: receiver, - SharesOwned: sdk.ZeroInt(), - SharesWithdrawn: sdk.ZeroInt(), - SharesCancelled: sdk.ZeroInt(), + SharesOwned: math.ZeroInt(), + SharesWithdrawn: math.ZeroInt(), + SharesCancelled: math.ZeroInt(), TickIndexTakerToMaker: tickIndex, TradePairID: tradePairID, OrderType: orderType, diff --git a/x/dex/keeper/limit_order_tranche_user_test.go b/x/dex/keeper/limit_order_tranche_user_test.go index 7ac9acbbc..65cf048f4 100644 --- a/x/dex/keeper/limit_order_tranche_user_test.go +++ b/x/dex/keeper/limit_order_tranche_user_test.go @@ -4,6 +4,7 @@ import ( "strconv" "testing" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/testutil/dex/nullify" @@ -20,9 +21,9 @@ func createNLimitOrderTrancheUser(keeper *keeper.Keeper, ctx sdk.Context, n int) Address: strconv.Itoa(i), TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, - SharesOwned: sdk.ZeroInt(), - SharesWithdrawn: sdk.ZeroInt(), - SharesCancelled: sdk.ZeroInt(), + SharesOwned: math.ZeroInt(), + SharesWithdrawn: math.ZeroInt(), + SharesCancelled: math.ZeroInt(), } items[i] = val keeper.SetLimitOrderTrancheUser(ctx, items[i]) @@ -39,9 +40,9 @@ func createNLimitOrderTrancheUserWithAddress(keeper *keeper.Keeper, ctx sdk.Cont Address: address, TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, - SharesOwned: sdk.ZeroInt(), - SharesWithdrawn: sdk.ZeroInt(), - SharesCancelled: sdk.ZeroInt(), + SharesOwned: math.ZeroInt(), + SharesWithdrawn: math.ZeroInt(), + SharesCancelled: math.ZeroInt(), } items[i] = val keeper.SetLimitOrderTrancheUser(ctx, items[i]) @@ -89,9 +90,9 @@ func (s *MsgServerTestSuite) TestGetAllLimitOrders() { TickIndexTakerToMaker: 1, TrancheKey: trancheKeyA, Address: s.alice.String(), - SharesOwned: sdk.NewInt(10), - SharesWithdrawn: sdk.NewInt(0), - SharesCancelled: sdk.NewInt(0), + SharesOwned: math.NewInt(10), + SharesWithdrawn: math.NewInt(0), + SharesCancelled: math.NewInt(0), }, LOList[0], ) @@ -100,9 +101,9 @@ func (s *MsgServerTestSuite) TestGetAllLimitOrders() { TickIndexTakerToMaker: 0, TrancheKey: trancheKeyB, Address: s.alice.String(), - SharesOwned: sdk.NewInt(10), - SharesWithdrawn: sdk.NewInt(0), - SharesCancelled: sdk.NewInt(0), + SharesOwned: math.NewInt(10), + SharesWithdrawn: math.NewInt(0), + SharesCancelled: math.NewInt(0), }, LOList[1], ) diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index 4615f7741..f6a8d4521 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -1,6 +1,7 @@ package keeper import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" @@ -9,19 +10,19 @@ import ( func (k Keeper) Swap( ctx sdk.Context, tradePairID *types.TradePairID, - maxAmountTakerDenom sdk.Int, - maxAmountMakerDenom *sdk.Int, + maxAmountTakerDenom math.Int, + maxAmountMakerDenom *math.Int, limitPrice *math_utils.PrecDec, ) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool, err error) { useMaxOut := maxAmountMakerDenom != nil - var remainingMakerDenom *sdk.Int + var remainingMakerDenom *math.Int if useMaxOut { copy := *maxAmountMakerDenom remainingMakerDenom = © } remainingTakerDenom := maxAmountTakerDenom - totalMakerDenom := sdk.ZeroInt() + totalMakerDenom := math.ZeroInt() orderFilled = false // verify that amount left is not zero and that there are additional valid ticks to check @@ -57,7 +58,7 @@ func (k Keeper) Swap( remainingMakerDenom = © // if maxAmountOut has been used up then exit - if remainingMakerDenom.LTE(sdk.ZeroInt()) { + if remainingMakerDenom.LTE(math.ZeroInt()) { orderFilled = true break } @@ -77,8 +78,8 @@ func (k Keeper) Swap( func (k Keeper) SwapWithCache( ctx sdk.Context, tradePairID *types.TradePairID, - maxAmountIn sdk.Int, - maxAmountOut *sdk.Int, + maxAmountIn math.Int, + maxAmountOut *math.Int, limitPrice *math_utils.PrecDec, ) (totalIn, totalOut sdk.Coin, orderFilled bool, err error) { cacheCtx, writeCache := ctx.CacheContext() diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 6b6626e77..1a8f606e8 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -4,6 +4,7 @@ import ( "math" "testing" + sdkmath "cosmossdk.io/math" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" dualityapp "github.com/neutron-org/neutron/app" @@ -602,7 +603,7 @@ func (s *LiquidityTestSuite) placeGTCLimitOrder( types.LimitOrderType_GOOD_TIL_CANCELLED, ) s.Assert().NoError(err) - tranche.PlaceMakerLimitOrder(sdk.NewInt(amountIn)) + tranche.PlaceMakerLimitOrder(sdkmath.NewInt(amountIn)) s.app.DexKeeper.SaveTranche(s.ctx, tranche) } @@ -616,7 +617,7 @@ func (s *LiquidityTestSuite) swap( coinIn, coinOut, _, err = s.app.DexKeeper.Swap( s.ctx, tradePairID, - sdk.NewInt(maxAmountIn), + sdkmath.NewInt(maxAmountIn), nil, nil, ) @@ -631,11 +632,11 @@ func (s *LiquidityTestSuite) swapWithMaxOut( maxAmountOut int64, ) (coinIn, coinOut sdk.Coin) { tradePairID := types.MustNewTradePairID(tokenIn, tokenOut) - maxAmountOutInt := sdk.NewInt(maxAmountOut) + maxAmountOutInt := sdkmath.NewInt(maxAmountOut) coinIn, coinOut, _, err := s.app.DexKeeper.Swap( s.ctx, tradePairID, - sdk.NewInt(maxAmountIn), + sdkmath.NewInt(maxAmountIn), &maxAmountOutInt, nil, ) @@ -654,17 +655,17 @@ func (s *LiquidityTestSuite) assertSwapOutput( amtOut := actualOut.Amount s.Assert(). - True(amtIn.Equal(sdk.NewInt(expectedIn)), "Expected amountIn %d != %s", expectedIn, amtIn) + True(amtIn.Equal(sdkmath.NewInt(expectedIn)), "Expected amountIn %d != %s", expectedIn, amtIn) s.Assert(). - True(amtOut.Equal(sdk.NewInt(expectedOut)), "Expected amountOut %d != %s", expectedOut, amtOut) + True(amtOut.Equal(sdkmath.NewInt(expectedOut)), "Expected amountOut %d != %s", expectedOut, amtOut) } func (s *LiquidityTestSuite) assertDexBalances(expectedABalance int64, expectedBBalance int64) { // NOTE: We can't just check the actual DEX bank balances since we are testing swap // before any transfers take place. Instead we have to sum up the total amount of coins // at each tick - expectedAInt := sdk.NewInt(expectedABalance) - expectedBInt := sdk.NewInt(expectedBBalance) + expectedAInt := sdkmath.NewInt(expectedABalance) + expectedBInt := sdkmath.NewInt(expectedBBalance) allCoins := sdk.Coins{} ticks := s.app.DexKeeper.GetAllTickLiquidity(s.ctx) inactiveLOs := s.app.DexKeeper.GetAllInactiveLimitOrderTranche(s.ctx) diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index fdf0f89af..fb8b1073c 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -6,14 +6,15 @@ import ( "testing" "time" + sdkmath "cosmossdk.io/math" abci "github.com/cometbft/cometbft/abci/types" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" dualityapp "github.com/neutron-org/neutron/app" - math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/testutil" + math_utils "github.com/neutron-org/neutron/utils/math" . "github.com/neutron-org/neutron/x/dex/keeper" . "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" "github.com/neutron-org/neutron/x/dex/types" @@ -79,8 +80,8 @@ func (s *MsgServerTestSuite) SetupTest() { /// Fund accounts func (s *MsgServerTestSuite) fundAccountBalances(account sdk.AccAddress, aBalance, bBalance int64) { - aBalanceInt := sdk.NewInt(aBalance) - bBalanceInt := sdk.NewInt(bBalance) + aBalanceInt := sdkmath.NewInt(aBalance) + bBalanceInt := sdkmath.NewInt(bBalance) balances := sdk.NewCoins(NewACoin(aBalanceInt), NewBCoin(bBalanceInt)) err := FundAccount(s.app.BankKeeper, s.ctx, account, balances) s.Assert().NoError(err) @@ -118,8 +119,8 @@ func (s *MsgServerTestSuite) fundDanBalances(a, b int64) { func (s *MsgServerTestSuite) assertAccountBalancesInt( account sdk.AccAddress, - aBalance sdk.Int, - bBalance sdk.Int, + aBalance sdkmath.Int, + bBalance sdkmath.Int, ) { aActual := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenA").Amount s.Assert().True(aBalance.Equal(aActual), "expected %s != actual %s", aBalance, aActual) @@ -133,7 +134,7 @@ func (s *MsgServerTestSuite) assertAccountBalances( aBalance int64, bBalance int64, ) { - s.assertAccountBalancesInt(account, sdk.NewInt(aBalance), sdk.NewInt(bBalance)) + s.assertAccountBalancesInt(account, sdkmath.NewInt(aBalance), sdkmath.NewInt(bBalance)) } func (s *MsgServerTestSuite) assertAccountBalanceWithDenom( @@ -142,7 +143,7 @@ func (s *MsgServerTestSuite) assertAccountBalanceWithDenom( expBalance int64, ) { actualBalance := s.app.BankKeeper.GetBalance(s.ctx, account, denom).Amount - expBalanceInt := sdk.NewInt(expBalance) + expBalanceInt := sdkmath.NewInt(expBalance) s.Assert(). True(expBalanceInt.Equal(actualBalance), "expected %s != actual %s", expBalance, actualBalance) } @@ -151,7 +152,7 @@ func (s *MsgServerTestSuite) assertAliceBalances(a, b int64) { s.assertAccountBalances(s.alice, a, b) } -func (s *MsgServerTestSuite) assertAliceBalancesInt(a, b sdk.Int) { +func (s *MsgServerTestSuite) assertAliceBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.alice, a, b) } @@ -159,7 +160,7 @@ func (s *MsgServerTestSuite) assertBobBalances(a, b int64) { s.assertAccountBalances(s.bob, a, b) } -func (s *MsgServerTestSuite) assertBobBalancesInt(a, b sdk.Int) { +func (s *MsgServerTestSuite) assertBobBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.bob, a, b) } @@ -167,7 +168,7 @@ func (s *MsgServerTestSuite) assertCarolBalances(a, b int64) { s.assertAccountBalances(s.carol, a, b) } -func (s *MsgServerTestSuite) assertCarolBalancesInt(a, b sdk.Int) { +func (s *MsgServerTestSuite) assertCarolBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.carol, a, b) } @@ -175,7 +176,7 @@ func (s *MsgServerTestSuite) assertDanBalances(a, b int64) { s.assertAccountBalances(s.dan, a, b) } -func (s *MsgServerTestSuite) assertDanBalancesInt(a, b sdk.Int) { +func (s *MsgServerTestSuite) assertDanBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.dan, a, b) } @@ -191,7 +192,7 @@ func (s *MsgServerTestSuite) assertDexBalanceWithDenom(denom string, expectedAmo ) } -func (s *MsgServerTestSuite) assertDexBalancesInt(a, b sdk.Int) { +func (s *MsgServerTestSuite) assertDexBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.app.AccountKeeper.GetModuleAddress("dex"), a, b) } @@ -372,7 +373,7 @@ func (s *MsgServerTestSuite) limitSellsWithMaxOut( maxAmoutOut int, ) string { tokenIn, tokenOut := GetInOutTokens(tokenIn, "TokenA", "TokenB") - maxAmountOutInt := sdk.NewInt(int64(maxAmoutOut)) + maxAmountOutInt := sdkmath.NewInt(int64(maxAmoutOut)) msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ Creator: account.String(), @@ -380,7 +381,7 @@ func (s *MsgServerTestSuite) limitSellsWithMaxOut( TokenIn: tokenIn, TokenOut: tokenOut, TickIndexInToOut: int64(tick), - AmountIn: sdk.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)), OrderType: types.LimitOrderType_FILL_OR_KILL, MaxAmountOut: &maxAmountOutInt, }) @@ -411,7 +412,7 @@ func (s *MsgServerTestSuite) limitSells( TokenIn: tradePairID.TakerDenom, TokenOut: tradePairID.MakerDenom, TickIndexInToOut: tickIndexTakerToMaker, - AmountIn: sdk.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)), OrderType: orderType, }) @@ -433,7 +434,7 @@ func (s *MsgServerTestSuite) limitSellsGoodTil( TokenIn: tradePairID.TakerDenom, TokenOut: tradePairID.MakerDenom, TickIndexInToOut: tickIndexTakerToMaker, - AmountIn: sdk.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)), OrderType: types.LimitOrderType_GOOD_TIL_TIME, ExpirationTime: &goodTil, }) @@ -445,8 +446,8 @@ func (s *MsgServerTestSuite) limitSellsGoodTil( // / Deposit type Deposit struct { - AmountA sdk.Int - AmountB sdk.Int + AmountA sdkmath.Int + AmountB sdkmath.Int TickIndex int64 Fee uint64 } @@ -456,8 +457,8 @@ type DepositOptions struct { } type DepositWithOptions struct { - AmountA sdk.Int - AmountB sdk.Int + AmountA sdkmath.Int + AmountB sdkmath.Int TickIndex int64 Fee uint64 Options DepositOptions @@ -465,8 +466,8 @@ type DepositWithOptions struct { func NewDeposit(amountA, amountB, tickIndex, fee int) *Deposit { return &Deposit{ - AmountA: sdk.NewInt(int64(amountA)), - AmountB: sdk.NewInt(int64(amountB)), + AmountA: sdkmath.NewInt(int64(amountA)), + AmountB: sdkmath.NewInt(int64(amountB)), TickIndex: int64(tickIndex), Fee: uint64(fee), } @@ -477,8 +478,8 @@ func NewDepositWithOptions( options DepositOptions, ) *DepositWithOptions { return &DepositWithOptions{ - AmountA: sdk.NewInt(int64(amountA)), - AmountB: sdk.NewInt(int64(amountB)), + AmountA: sdkmath.NewInt(int64(amountA)), + AmountB: sdkmath.NewInt(int64(amountB)), TickIndex: int64(tickIndex), Fee: uint64(fee), Options: options, @@ -514,8 +515,8 @@ func (s *MsgServerTestSuite) deposits( deposits []*Deposit, pairID ...types.PairID, ) { - amountsA := make([]sdk.Int, len(deposits)) - amountsB := make([]sdk.Int, len(deposits)) + amountsA := make([]sdkmath.Int, len(deposits)) + amountsB := make([]sdkmath.Int, len(deposits)) tickIndexes := make([]int64, len(deposits)) fees := make([]uint64, len(deposits)) options := make([]*types.DepositOptions, len(deposits)) @@ -557,8 +558,8 @@ func (s *MsgServerTestSuite) depositsWithOptions( account sdk.AccAddress, deposits ...*DepositWithOptions, ) { - amountsA := make([]sdk.Int, len(deposits)) - amountsB := make([]sdk.Int, len(deposits)) + amountsA := make([]sdkmath.Int, len(deposits)) + amountsB := make([]sdkmath.Int, len(deposits)) tickIndexes := make([]int64, len(deposits)) fees := make([]uint64, len(deposits)) options := make([]*types.DepositOptions, len(deposits)) @@ -586,7 +587,7 @@ func (s *MsgServerTestSuite) depositsWithOptions( s.Assert().Nil(err) } -func (s *MsgServerTestSuite) getLiquidityAtTick(tickIndex int64, fee uint64) (sdk.Int, sdk.Int) { +func (s *MsgServerTestSuite) getLiquidityAtTick(tickIndex int64, fee uint64) (sdkmath.Int, sdkmath.Int) { pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, defaultPairID, tickIndex, fee) s.Assert().NoError(err) @@ -600,7 +601,7 @@ func (s *MsgServerTestSuite) getLiquidityAtTickWithDenom( pairID *types.PairID, tickIndex int64, fee uint64, -) (sdk.Int, sdk.Int) { +) (sdkmath.Int, sdkmath.Int) { pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, pairID, tickIndex, fee) s.Assert().NoError(err) @@ -631,8 +632,8 @@ func (s *MsgServerTestSuite) assertDepositFails( expectedErr error, deposits ...*Deposit, ) { - amountsA := make([]sdk.Int, len(deposits)) - amountsB := make([]sdk.Int, len(deposits)) + amountsA := make([]sdkmath.Int, len(deposits)) + amountsB := make([]sdkmath.Int, len(deposits)) tickIndexes := make([]int64, len(deposits)) fees := make([]uint64, len(deposits)) options := make([]*types.DepositOptions, len(deposits)) @@ -677,18 +678,18 @@ func (s *MsgServerTestSuite) assertDepositReponse( } type DepositReponse struct { - amountsA []sdk.Int - amountsB []sdk.Int + amountsA []sdkmath.Int + amountsB []sdkmath.Int } // Withdraw type Withdrawal struct { TickIndex int64 Fee uint64 - Shares sdk.Int + Shares sdkmath.Int } -func NewWithdrawalInt(shares sdk.Int, tick int64, fee uint64) *Withdrawal { +func NewWithdrawalInt(shares sdkmath.Int, tick int64, fee uint64) *Withdrawal { return &Withdrawal{ Shares: shares, Fee: fee, @@ -697,7 +698,7 @@ func NewWithdrawalInt(shares sdk.Int, tick int64, fee uint64) *Withdrawal { } func NewWithdrawal(shares, tick int64, fee uint64) *Withdrawal { - return NewWithdrawalInt(sdk.NewInt(shares), tick, fee) + return NewWithdrawalInt(sdkmath.NewInt(shares), tick, fee) } func (s *MsgServerTestSuite) aliceWithdraws(withdrawals ...*Withdrawal) { @@ -719,7 +720,7 @@ func (s *MsgServerTestSuite) danWithdraws(withdrawals ...*Withdrawal) { func (s *MsgServerTestSuite) withdraws(account sdk.AccAddress, withdrawals ...*Withdrawal) { tickIndexes := make([]int64, len(withdrawals)) fee := make([]uint64, len(withdrawals)) - sharesToRemove := make([]sdk.Int, len(withdrawals)) + sharesToRemove := make([]sdkmath.Int, len(withdrawals)) for i, e := range withdrawals { tickIndexes[i] = e.TickIndex fee[i] = e.Fee @@ -761,7 +762,7 @@ func (s *MsgServerTestSuite) withdrawFails( ) { tickIndexes := make([]int64, len(withdrawals)) fee := make([]uint64, len(withdrawals)) - sharesToRemove := make([]sdk.Int, len(withdrawals)) + sharesToRemove := make([]sdkmath.Int, len(withdrawals)) for i, e := range withdrawals { tickIndexes[i] = e.TickIndex fee[i] = e.Fee @@ -884,7 +885,7 @@ func (s *MsgServerTestSuite) multiHopSwaps( account.String(), account.String(), routes, - sdk.NewInt(int64(amountIn)), + sdkmath.NewInt(int64(amountIn)), exitLimitPrice, pickBest, ) @@ -906,7 +907,7 @@ func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwap( Creator: s.alice.String(), Receiver: s.alice.String(), Routes: multiHopRoutes, - AmountIn: sdk.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)), ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } @@ -930,7 +931,7 @@ func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwapFails( Creator: s.alice.String(), Receiver: s.alice.String(), Routes: multiHopRoutes, - AmountIn: sdk.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)), ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } @@ -990,7 +991,7 @@ func (s *MsgServerTestSuite) multiHopSwapFails( account.String(), account.String(), routes, - sdk.NewInt(int64(amountIn)), + sdkmath.NewInt(int64(amountIn)), exitLimitPrice, pickBest, ) @@ -1058,10 +1059,10 @@ func (s *MsgServerTestSuite) getPoolShares( token1 string, tick int64, fee uint64, -) (shares sdk.Int) { +) (shares sdkmath.Int) { poolID, found := s.app.DexKeeper.GetPoolIDByParams(s.ctx, &types.PairID{Token0: token0, Token1: token1}, tick, fee) if !found { - return sdk.ZeroInt() + return sdkmath.ZeroInt() } poolDenom := types.NewPoolDenom(poolID) return s.app.BankKeeper.GetSupply(s.ctx, poolDenom).Amount @@ -1072,7 +1073,7 @@ func (s *MsgServerTestSuite) assertPoolShares( fee uint64, sharesExpected uint64, ) { - sharesExpectedInt := sdk.NewIntFromUint64(sharesExpected) + sharesExpectedInt := sdkmath.NewIntFromUint64(sharesExpected) sharesOwned := s.getPoolShares("TokenA", "TokenB", tick, fee) s.Assert().Equal(sharesExpectedInt, sharesOwned) } @@ -1083,10 +1084,10 @@ func (s *MsgServerTestSuite) getAccountShares( token1 string, tick int64, fee uint64, -) (shares sdk.Int) { +) (shares sdkmath.Int) { id, found := s.app.DexKeeper.GetPoolIDByParams(s.ctx, types.MustNewPairID(token0, token1), tick, fee) if !found { - return sdk.ZeroInt() + return sdkmath.ZeroInt() } poolDenom := types.NewPoolDenom(id) @@ -1099,7 +1100,7 @@ func (s *MsgServerTestSuite) assertAccountShares( fee uint64, sharesExpected uint64, ) { - sharesExpectedInt := sdk.NewIntFromUint64(sharesExpected) + sharesExpectedInt := sdkmath.NewIntFromUint64(sharesExpected) sharesOwned := s.getAccountShares(account, "TokenA", "TokenB", tick, fee) s.Assert(). Equal(sharesExpectedInt, sharesOwned, "expected %s != actual %s", sharesExpected, sharesOwned) @@ -1156,7 +1157,7 @@ func (s *MsgServerTestSuite) assertCurr1To0(curr1To0Expected int64) { // Pool liquidity (i.e. deposited rather than LO) func (s *MsgServerTestSuite) assertLiquidityAtTick( - amountA, amountB sdk.Int, + amountA, amountB sdkmath.Int, tickIndex int64, fee uint64, ) { @@ -1169,7 +1170,7 @@ func (s *MsgServerTestSuite) assertLiquidityAtTick( func (s *MsgServerTestSuite) assertLiquidityAtTickWithDenom( pairID *types.PairID, - expected0, expected1 sdk.Int, + expected0, expected1 sdkmath.Int, tickIndex int64, fee uint64, ) { @@ -1185,11 +1186,11 @@ func (s *MsgServerTestSuite) assertPoolLiquidity( tickIndex int64, fee uint64, ) { - s.assertLiquidityAtTick(sdk.NewInt(int64(amountA)), sdk.NewInt(int64(amountB)), tickIndex, fee) + s.assertLiquidityAtTick(sdkmath.NewInt(int64(amountA)), sdkmath.NewInt(int64(amountB)), tickIndex, fee) } func (s *MsgServerTestSuite) assertNoLiquidityAtTick(tickIndex int64, fee uint64) { - s.assertLiquidityAtTick(sdk.ZeroInt(), sdk.ZeroInt(), tickIndex, fee) + s.assertLiquidityAtTick(sdkmath.ZeroInt(), sdkmath.ZeroInt(), tickIndex, fee) } // Filled limit liquidity @@ -1246,7 +1247,7 @@ func (s *MsgServerTestSuite) assertLimitFilledAtTickAtIndex( ) userRatio := math_utils.NewPrecDecFromInt(userShares).QuoInt(totalShares) filled := s.getLimitFilledLiquidityAtTickAtIndex(selling, tickIndex, trancheKey) - amt := sdk.NewInt(int64(amount)) + amt := sdkmath.NewInt(int64(amount)) userFilled := userRatio.MulInt(filled).RoundInt() s.Assert().True(amt.Equal(userFilled)) } @@ -1302,13 +1303,13 @@ func (s *MsgServerTestSuite) assertLimitLiquidityAtTick( selling string, tickIndexNormalized, amount int64, ) { - s.assertLimitLiquidityAtTickInt(selling, tickIndexNormalized, sdk.NewInt(amount)) + s.assertLimitLiquidityAtTickInt(selling, tickIndexNormalized, sdkmath.NewInt(amount)) } func (s *MsgServerTestSuite) assertLimitLiquidityAtTickInt( selling string, tickIndexNormalized int64, - amount sdk.Int, + amount sdkmath.Int, ) { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) @@ -1317,7 +1318,7 @@ func (s *MsgServerTestSuite) assertLimitLiquidityAtTickInt( tradePairID, tickIndexTakerToMaker, ) - liquidity := sdk.ZeroInt() + liquidity := sdkmath.ZeroInt() for _, t := range tranches { if !t.IsExpired(s.ctx) { liquidity = liquidity.Add(t.ReservesMakerDenom) @@ -1358,7 +1359,7 @@ func (s *MsgServerTestSuite) getLimitUserSharesAtTick( account sdk.AccAddress, selling string, tickIndexNormalized int64, -) sdk.Int { +) sdkmath.Int { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( @@ -1381,7 +1382,7 @@ func (s *MsgServerTestSuite) getLimitUserSharesAtTick( func (s *MsgServerTestSuite) getLimitUserSharesAtTickAtIndex( account sdk.AccAddress, trancheKey string, -) sdk.Int { +) sdkmath.Int { userShares, found := s.app.DexKeeper.GetLimitOrderTrancheUser( s.ctx, account.String(), @@ -1394,7 +1395,7 @@ func (s *MsgServerTestSuite) getLimitUserSharesAtTickAtIndex( func (s *MsgServerTestSuite) getLimitTotalSharesAtTick( selling string, tickIndexNormalized int64, -) sdk.Int { +) sdkmath.Int { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( @@ -1403,7 +1404,7 @@ func (s *MsgServerTestSuite) getLimitTotalSharesAtTick( tickIndexTakerToMaker, ) // get user shares and total shares - totalShares := sdk.ZeroInt() + totalShares := sdkmath.ZeroInt() for _, t := range tranches { totalShares = totalShares.Add(t.TotalMakerDenom) } @@ -1415,7 +1416,7 @@ func (s *MsgServerTestSuite) getLimitFilledLiquidityAtTickAtIndex( selling string, tickIndex int64, trancheKey string, -) sdk.Int { +) sdkmath.Int { // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ @@ -1432,7 +1433,7 @@ func (s *MsgServerTestSuite) getLimitReservesAtTickAtKey( selling string, tickIndex int64, trancheKey string, -) sdk.Int { +) sdkmath.Int { // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ @@ -1452,18 +1453,18 @@ func (s *MsgServerTestSuite) calcAutoswapSharesMinted( centerTick int64, fee uint64, residual0, residual1, balanced0, balanced1, totalShares, valuePool int64, -) sdk.Int { - residual0Int, residual1Int, balanced0Int, balanced1Int, totalSharesInt, valuePoolInt := sdk.NewInt( +) sdkmath.Int { + residual0Int, residual1Int, balanced0Int, balanced1Int, totalSharesInt, valuePoolInt := sdkmath.NewInt( residual0, - ), sdk.NewInt( + ), sdkmath.NewInt( residual1, - ), sdk.NewInt( + ), sdkmath.NewInt( balanced0, - ), sdk.NewInt( + ), sdkmath.NewInt( balanced1, - ), sdk.NewInt( + ), sdkmath.NewInt( totalShares, - ), sdk.NewInt( + ), sdkmath.NewInt( valuePool, ) @@ -1487,19 +1488,19 @@ func (s *MsgServerTestSuite) calcAutoswapSharesMinted( return valueMint.Mul(totalSharesInt).Quo(valuePoolInt) } -func (s *MsgServerTestSuite) calcSharesMinted(centerTick, amount0Int, amount1Int int64) sdk.Int { - amount0, amount1 := sdk.NewInt(amount0Int), sdk.NewInt(amount1Int) +func (s *MsgServerTestSuite) calcSharesMinted(centerTick, amount0Int, amount1Int int64) sdkmath.Int { + amount0, amount1 := sdkmath.NewInt(amount0Int), sdkmath.NewInt(amount1Int) centerPrice := types.MustCalcPrice(-1 * centerTick) return math_utils.NewPrecDecFromInt(amount0).Add(centerPrice.Mul(math_utils.NewPrecDecFromInt(amount1))).TruncateInt() } func (s *MsgServerTestSuite) calcExpectedBalancesAfterWithdrawOnePool( - sharesMinted sdk.Int, + sharesMinted sdkmath.Int, account sdk.AccAddress, tickIndex int64, fee uint64, -) (sdk.Int, sdk.Int, sdk.Int, sdk.Int) { +) (sdkmath.Int, sdkmath.Int, sdkmath.Int, sdkmath.Int) { dexCurrentBalance0 := s.app.BankKeeper.GetBalance( s.ctx, s.app.AccountKeeper.GetModuleAddress("dex"), diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index e26321290..02dac052a 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -1,6 +1,7 @@ package keeper import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" @@ -51,10 +52,10 @@ type StepResult struct { type multihopCacheKey struct { TokenIn string TokenOut string - InAmount sdk.Int + InAmount math.Int } -func newCacheKey(tokenIn, tokenOut string, inAmount sdk.Int) multihopCacheKey { +func newCacheKey(tokenIn, tokenOut string, inAmount math.Int) multihopCacheKey { return multihopCacheKey{ TokenIn: tokenIn, TokenOut: tokenOut, @@ -147,7 +148,7 @@ func (k Keeper) RunMultihopRoute( func (k Keeper) SwapExactAmountIn(ctx sdk.Context, tradePairID *types.TradePairID, - amountIn sdk.Int, + amountIn math.Int, ) (totalOut sdk.Coin, err error) { _, swapAmountMakerDenom, orderFilled, err := k.Swap( ctx, diff --git a/x/dex/keeper/pair_helper.go b/x/dex/keeper/pair_helper.go index 82ce6b6b0..a54f31934 100644 --- a/x/dex/keeper/pair_helper.go +++ b/x/dex/keeper/pair_helper.go @@ -1,10 +1,10 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" ) -func SortAmounts(tokenA, token0 string, amountsA, amountsB []sdk.Int) ([]sdk.Int, []sdk.Int) { +func SortAmounts(tokenA, token0 string, amountsA, amountsB []math.Int) ([]math.Int, []math.Int) { if tokenA == token0 { return amountsA, amountsB } diff --git a/x/dex/keeper/pool_test.go b/x/dex/keeper/pool_test.go index ecb231ff9..14d0bb05e 100644 --- a/x/dex/keeper/pool_test.go +++ b/x/dex/keeper/pool_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "testing" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/x/dex/keeper" @@ -17,7 +18,7 @@ func createNPools(k *keeper.Keeper, ctx sdk.Context, n int) []*types.Pool { if err != nil { panic("failed to create pool") } - pool.Deposit(sdk.NewInt(10), sdk.NewInt(0), sdk.ZeroInt(), true) + pool.Deposit(math.NewInt(10), math.NewInt(0), math.ZeroInt(), true) k.SetPool(ctx, pool) items[i] = pool } @@ -30,7 +31,7 @@ func TestPoolInit(t *testing.T) { pool, err := keeper.InitPool(ctx, defaultPairID, 0, 1) require.NoError(t, err) - pool.Deposit(sdk.NewInt(100), sdk.NewInt(100), sdk.NewInt(0), true) + pool.Deposit(math.NewInt(100), math.NewInt(100), math.NewInt(0), true) keeper.SetPool(ctx, pool) dbPool, found := keeper.GetPool(ctx, defaultPairID, 0, 1) diff --git a/x/dex/types/events.go b/x/dex/types/events.go index 1d428f844..1c50ff105 100644 --- a/x/dex/types/events.go +++ b/x/dex/types/events.go @@ -4,6 +4,7 @@ import ( "strconv" "strings" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -14,9 +15,9 @@ func CreateDepositEvent( token1 string, tickIndex int64, fee uint64, - depositAmountReserve0 sdk.Int, - depositAmountReserve1 sdk.Int, - sharesMinted sdk.Int, + depositAmountReserve0 math.Int, + depositAmountReserve1 math.Int, + sharesMinted math.Int, ) sdk.Event { attrs := []sdk.Attribute{ sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), @@ -42,9 +43,9 @@ func CreateWithdrawEvent( token1 string, tickIndex int64, fee uint64, - withdrawAmountReserve0 sdk.Int, - withdrawAmountReserve1 sdk.Int, - sharesRemoved sdk.Int, + withdrawAmountReserve0 math.Int, + withdrawAmountReserve1 math.Int, + sharesRemoved math.Int, ) sdk.Event { attrs := []sdk.Attribute{ sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), @@ -68,8 +69,8 @@ func CreateMultihopSwapEvent( receiver sdk.AccAddress, makerDenom string, tokenOut string, - amountIn sdk.Int, - amountOut sdk.Int, + amountIn math.Int, + amountOut math.Int, route []string, ) sdk.Event { attrs := []sdk.Attribute{ @@ -94,10 +95,10 @@ func CreatePlaceLimitOrderEvent( token1 string, makerDenom string, tokenOut string, - amountIn sdk.Int, + amountIn math.Int, limitTick int64, orderType string, - shares sdk.Int, + shares math.Int, trancheKey string, ) sdk.Event { attrs := []sdk.Attribute{ @@ -125,7 +126,7 @@ func WithdrawFilledLimitOrderEvent( token1 string, makerDenom string, tokenOut string, - amountOut sdk.Int, + amountOut math.Int, trancheKey string, ) sdk.Event { attrs := []sdk.Attribute{ @@ -149,7 +150,7 @@ func CancelLimitOrderEvent( token1 string, makerDenom string, tokenOut string, - amountOut sdk.Int, + amountOut math.Int, trancheKey string, ) sdk.Event { attrs := []sdk.Attribute{ @@ -172,7 +173,7 @@ func TickUpdateEvent( token1 string, makerDenom string, tickIndex int64, - reserves sdk.Int, + reserves math.Int, otherAttrs ...sdk.Attribute, ) sdk.Event { attrs := []sdk.Attribute{ diff --git a/x/dex/types/limit_order_tranche.go b/x/dex/types/limit_order_tranche.go index dc6b69f03..6e9a7dc74 100644 --- a/x/dex/types/limit_order_tranche.go +++ b/x/dex/types/limit_order_tranche.go @@ -1,6 +1,7 @@ package types import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/utils" @@ -11,10 +12,10 @@ func NewLimitOrderTranche( takerDenom string, trancheKey string, tickIndex int64, - reservesMakerDenom sdk.Int, - reservesTakerDenom sdk.Int, - totalMakerDenom sdk.Int, - totalTakerDenom sdk.Int, + reservesMakerDenom math.Int, + reservesTakerDenom math.Int, + totalMakerDenom math.Int, + totalTakerDenom math.Int, ) (*LimitOrderTranche, error) { tradePairID, err := NewTradePairID(takerDenom, makerDenom) if err != nil { @@ -44,10 +45,10 @@ func MustNewLimitOrderTranche( takerDenom string, trancheKey string, tickIndex int64, - reservesMakerDenom sdk.Int, - reservesTakerDenom sdk.Int, - totalMakerDenom sdk.Int, - totalTakerDenom sdk.Int, + reservesMakerDenom math.Int, + reservesTakerDenom math.Int, + totalMakerDenom math.Int, + totalTakerDenom math.Int, ) *LimitOrderTranche { limitOrderTranche, err := NewLimitOrderTranche( makerDenom, @@ -82,11 +83,11 @@ func (t LimitOrderTranche) IsExpired(ctx sdk.Context) bool { } func (t LimitOrderTranche) HasTokenIn() bool { - return t.ReservesMakerDenom.GT(sdk.ZeroInt()) + return t.ReservesMakerDenom.GT(math.ZeroInt()) } func (t LimitOrderTranche) HasTokenOut() bool { - return t.ReservesTakerDenom.GT(sdk.ZeroInt()) + return t.ReservesTakerDenom.GT(math.ZeroInt()) } func (t LimitOrderTranche) Price() math_utils.PrecDec { @@ -105,12 +106,12 @@ func (t LimitOrderTranche) AmountUnfilled() math_utils.PrecDec { } func (t LimitOrderTranche) HasLiquidity() bool { - return t.ReservesMakerDenom.GT(sdk.ZeroInt()) + return t.ReservesMakerDenom.GT(math.ZeroInt()) } func (t *LimitOrderTranche) RemoveTokenIn( trancheUser *LimitOrderTrancheUser, -) (amountToRemove sdk.Int) { +) (amountToRemove math.Int) { amountUnfilled := t.AmountUnfilled() maxAmountToRemove := amountUnfilled.MulInt(trancheUser.SharesOwned). QuoInt(t.TotalMakerDenom). @@ -121,7 +122,7 @@ func (t *LimitOrderTranche) RemoveTokenIn( return amountToRemove } -func (t *LimitOrderTranche) Withdraw(trancheUser *LimitOrderTrancheUser) (sdk.Int, math_utils.PrecDec) { +func (t *LimitOrderTranche) Withdraw(trancheUser *LimitOrderTrancheUser) (math.Int, math_utils.PrecDec) { reservesTokenOutDec := math_utils.NewPrecDecFromInt(t.ReservesTakerDenom) ratioFilled := t.RatioFilled() @@ -133,15 +134,15 @@ func (t *LimitOrderTranche) Withdraw(trancheUser *LimitOrderTrancheUser) (sdk.In return amountOutTokenIn, amountOutTokenOut } -func (t *LimitOrderTranche) Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) ( - inAmount sdk.Int, - outAmount sdk.Int, +func (t *LimitOrderTranche) Swap(maxAmountTakerIn math.Int, maxAmountMakerOut *math.Int) ( + inAmount math.Int, + outAmount math.Int, ) { reservesTokenOut := &t.ReservesMakerDenom fillTokenIn := &t.ReservesTakerDenom totalTokenIn := &t.TotalTakerDenom maxOutGivenIn := t.PriceTakerToMaker.MulInt(maxAmountTakerIn).TruncateInt() - possibleOutAmounts := []sdk.Int{*reservesTokenOut, maxOutGivenIn} + possibleOutAmounts := []math.Int{*reservesTokenOut, maxOutGivenIn} if maxAmountMakerOut != nil { possibleOutAmounts = append(possibleOutAmounts, *maxAmountMakerOut) } @@ -156,7 +157,7 @@ func (t *LimitOrderTranche) Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sd return inAmount, outAmount } -func (t *LimitOrderTranche) PlaceMakerLimitOrder(amountIn sdk.Int) { +func (t *LimitOrderTranche) PlaceMakerLimitOrder(amountIn math.Int) { t.ReservesMakerDenom = t.ReservesMakerDenom.Add(amountIn) t.TotalMakerDenom = t.TotalMakerDenom.Add(amountIn) } diff --git a/x/dex/types/liquidity.go b/x/dex/types/liquidity.go index 60cc306b4..d8a4f105f 100644 --- a/x/dex/types/liquidity.go +++ b/x/dex/types/liquidity.go @@ -1,11 +1,11 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" math_utils "github.com/neutron-org/neutron/utils/math" ) type Liquidity interface { - Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) (inAmount, outAmount sdk.Int) + Swap(maxAmountTakerIn math.Int, maxAmountMakerOut *math.Int) (inAmount, outAmount math.Int) Price() math_utils.PrecDec } diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go index f05fd015e..4288ca2e6 100644 --- a/x/dex/types/message_deposit.go +++ b/x/dex/types/message_deposit.go @@ -1,6 +1,7 @@ package types import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -15,7 +16,7 @@ func NewMsgDeposit( tokenA, tokenB string, amountsA, - amountsB []sdk.Int, + amountsB []math.Int, tickIndexes []int64, fees []uint64, depositOptions []*DepositOptions, @@ -78,10 +79,10 @@ func (msg *MsgDeposit) ValidateBasic() error { } for i := 0; i < numDeposits; i++ { - if msg.AmountsA[i].LT(sdk.ZeroInt()) || msg.AmountsB[i].LT(sdk.ZeroInt()) { + if msg.AmountsA[i].LT(math.ZeroInt()) || msg.AmountsB[i].LT(math.ZeroInt()) { return ErrZeroDeposit } - if msg.AmountsA[i].Equal(sdk.ZeroInt()) && msg.AmountsB[i].Equal(sdk.ZeroInt()) { + if msg.AmountsA[i].Equal(math.ZeroInt()) && msg.AmountsB[i].Equal(math.ZeroInt()) { return ErrZeroDeposit } } diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go index 590444805..12ca261f3 100644 --- a/x/dex/types/message_deposit_test.go +++ b/x/dex/types/message_deposit_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" @@ -23,8 +23,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - AmountsA: []sdk.Int{sdk.OneInt()}, - AmountsB: []sdk.Int{sdk.OneInt()}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{math.OneInt()}, }, err: sdkerrors.ErrInvalidAddress, }, @@ -35,8 +35,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: "invalid address", Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - AmountsA: []sdk.Int{sdk.OneInt()}, - AmountsB: []sdk.Int{sdk.OneInt()}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{math.OneInt()}, }, err: sdkerrors.ErrInvalidAddress, }, @@ -47,8 +47,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{}, - AmountsA: []sdk.Int{}, - AmountsB: []sdk.Int{}, + AmountsA: []math.Int{}, + AmountsB: []math.Int{}, }, err: ErrUnbalancedTxArray, }, @@ -59,8 +59,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{}, TickIndexesAToB: []int64{0}, - AmountsA: []sdk.Int{}, - AmountsB: []sdk.Int{}, + AmountsA: []math.Int{}, + AmountsB: []math.Int{}, }, err: ErrUnbalancedTxArray, }, @@ -71,8 +71,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{}, TickIndexesAToB: []int64{}, - AmountsA: []sdk.Int{sdk.OneInt()}, - AmountsB: []sdk.Int{}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{}, }, err: ErrUnbalancedTxArray, }, @@ -83,8 +83,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{}, TickIndexesAToB: []int64{}, - AmountsA: []sdk.Int{}, - AmountsB: []sdk.Int{sdk.OneInt()}, + AmountsA: []math.Int{}, + AmountsB: []math.Int{math.OneInt()}, }, err: ErrUnbalancedTxArray, }, @@ -95,8 +95,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{}, TickIndexesAToB: []int64{}, - AmountsA: []sdk.Int{}, - AmountsB: []sdk.Int{}, + AmountsA: []math.Int{}, + AmountsB: []math.Int{}, }, err: ErrZeroDeposit, }, @@ -107,8 +107,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - AmountsA: []sdk.Int{sdk.ZeroInt()}, - AmountsB: []sdk.Int{sdk.ZeroInt()}, + AmountsA: []math.Int{math.ZeroInt()}, + AmountsB: []math.Int{math.ZeroInt()}, }, err: ErrZeroDeposit, }, @@ -119,8 +119,8 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - AmountsA: []sdk.Int{sdk.OneInt()}, - AmountsB: []sdk.Int{sdk.OneInt()}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{math.OneInt()}, }, }, } diff --git a/x/dex/types/message_multi_hop_swap.go b/x/dex/types/message_multi_hop_swap.go index c9c292884..b8e543f04 100644 --- a/x/dex/types/message_multi_hop_swap.go +++ b/x/dex/types/message_multi_hop_swap.go @@ -1,6 +1,7 @@ package types import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" @@ -14,7 +15,7 @@ func NewMsgMultiHopSwap( creator string, receiever string, routesArr [][]string, - amountIn sdk.Int, + amountIn math.Int, exitLimitPrice math_utils.PrecDec, pickBestRoute bool, ) *MsgMultiHopSwap { @@ -77,7 +78,7 @@ func (msg *MsgMultiHopSwap) ValidateBasic() error { } } - if msg.AmountIn.LTE(sdk.ZeroInt()) { + if msg.AmountIn.LTE(math.ZeroInt()) { return ErrZeroSwap } diff --git a/x/dex/types/message_multi_hop_swap_test.go b/x/dex/types/message_multi_hop_swap_test.go index b9fc67acc..af2d5b7a5 100644 --- a/x/dex/types/message_multi_hop_swap_test.go +++ b/x/dex/types/message_multi_hop_swap_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" @@ -58,7 +58,7 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { Creator: sample.AccAddress(), Receiver: sample.AccAddress(), Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, - AmountIn: sdk.NewInt(-1), + AmountIn: math.NewInt(-1), }, err: ErrZeroSwap, }, @@ -68,7 +68,7 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, Creator: sample.AccAddress(), Receiver: sample.AccAddress(), - AmountIn: sdk.OneInt(), + AmountIn: math.OneInt(), }, }, } diff --git a/x/dex/types/message_place_limit_order.go b/x/dex/types/message_place_limit_order.go index 23135d2f5..255005925 100644 --- a/x/dex/types/message_place_limit_order.go +++ b/x/dex/types/message_place_limit_order.go @@ -3,6 +3,7 @@ package types import ( "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -17,10 +18,10 @@ func NewMsgPlaceLimitOrder( tokenIn, tokenOut string, tickIndex int64, - amountIn sdk.Int, + amountIn math.Int, orderType LimitOrderType, goodTil *time.Time, - maxAmountOut *sdk.Int, + maxAmountOut *math.Int, ) *MsgPlaceLimitOrder { return &MsgPlaceLimitOrder{ Creator: creator, @@ -68,7 +69,7 @@ func (msg *MsgPlaceLimitOrder) ValidateBasic() error { return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) } - if msg.AmountIn.LTE(sdk.ZeroInt()) { + if msg.AmountIn.LTE(math.ZeroInt()) { return ErrZeroLimitOrder } diff --git a/x/dex/types/message_place_limit_order_test.go b/x/dex/types/message_place_limit_order_test.go index bdbaeda59..27fa00b57 100644 --- a/x/dex/types/message_place_limit_order_test.go +++ b/x/dex/types/message_place_limit_order_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" @@ -11,8 +11,8 @@ import ( ) func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { - ZEROINT := sdk.ZeroInt() - ONEINT := sdk.OneInt() + ZEROINT := math.ZeroInt() + ONEINT := math.OneInt() tests := []struct { name string msg MsgPlaceLimitOrder @@ -26,7 +26,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.OneInt(), + AmountIn: math.OneInt(), }, err: sdkerrors.ErrInvalidAddress, }, @@ -38,7 +38,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.OneInt(), + AmountIn: math.OneInt(), }, err: sdkerrors.ErrInvalidAddress, }, @@ -50,7 +50,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.ZeroInt(), + AmountIn: math.ZeroInt(), }, err: ErrZeroLimitOrder, }, @@ -62,7 +62,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.OneInt(), + AmountIn: math.OneInt(), MaxAmountOut: &ZEROINT, OrderType: LimitOrderType_FILL_OR_KILL, }, @@ -76,7 +76,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.OneInt(), + AmountIn: math.OneInt(), MaxAmountOut: &ONEINT, OrderType: LimitOrderType_GOOD_TIL_CANCELLED, }, @@ -90,7 +90,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TokenIn: "TokenA", TokenOut: "TokenB", TickIndexInToOut: 0, - AmountIn: sdk.OneInt(), + AmountIn: math.OneInt(), }, }, } diff --git a/x/dex/types/message_withdrawl.go b/x/dex/types/message_withdrawl.go index 3448d2f1d..82580f9ec 100644 --- a/x/dex/types/message_withdrawl.go +++ b/x/dex/types/message_withdrawl.go @@ -1,6 +1,7 @@ package types import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -13,7 +14,7 @@ func NewMsgWithdrawal(creator, receiver, tokenA, tokenB string, - sharesToRemove []sdk.Int, + sharesToRemove []math.Int, tickIndexes []int64, fees []uint64, ) *MsgWithdrawal { @@ -72,7 +73,7 @@ func (msg *MsgWithdrawal) ValidateBasic() error { } for i := 0; i < len(msg.Fees); i++ { - if msg.SharesToRemove[i].LTE(sdk.ZeroInt()) { + if msg.SharesToRemove[i].LTE(math.ZeroInt()) { return ErrZeroWithdraw } } diff --git a/x/dex/types/message_withdrawl_test.go b/x/dex/types/message_withdrawl_test.go index 288fc3bbe..b551cb800 100644 --- a/x/dex/types/message_withdrawl_test.go +++ b/x/dex/types/message_withdrawl_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" @@ -23,7 +23,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - SharesToRemove: []sdk.Int{sdk.OneInt()}, + SharesToRemove: []math.Int{math.OneInt()}, }, err: sdkerrors.ErrInvalidAddress, }, @@ -34,7 +34,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: "invalid_address", Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - SharesToRemove: []sdk.Int{sdk.OneInt()}, + SharesToRemove: []math.Int{math.OneInt()}, }, err: sdkerrors.ErrInvalidAddress, }, @@ -45,7 +45,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{}, TickIndexesAToB: []int64{0}, - SharesToRemove: []sdk.Int{sdk.OneInt()}, + SharesToRemove: []math.Int{math.OneInt()}, }, err: ErrUnbalancedTxArray, }, @@ -56,7 +56,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{}, - SharesToRemove: []sdk.Int{sdk.OneInt()}, + SharesToRemove: []math.Int{math.OneInt()}, }, err: ErrUnbalancedTxArray, }, @@ -67,7 +67,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - SharesToRemove: []sdk.Int{}, + SharesToRemove: []math.Int{}, }, err: ErrUnbalancedTxArray, }, @@ -78,7 +78,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{}, TickIndexesAToB: []int64{}, - SharesToRemove: []sdk.Int{}, + SharesToRemove: []math.Int{}, }, err: ErrZeroWithdraw, }, @@ -89,7 +89,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - SharesToRemove: []sdk.Int{sdk.ZeroInt()}, + SharesToRemove: []math.Int{math.ZeroInt()}, }, err: ErrZeroWithdraw, }, @@ -100,7 +100,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { Receiver: sample.AccAddress(), Fees: []uint64{0}, TickIndexesAToB: []int64{0}, - SharesToRemove: []sdk.Int{sdk.OneInt()}, + SharesToRemove: []math.Int{math.OneInt()}, }, }, } diff --git a/x/dex/types/pool.go b/x/dex/types/pool.go index 8c320277b..72e73e9ae 100644 --- a/x/dex/types/pool.go +++ b/x/dex/types/pool.go @@ -1,6 +1,7 @@ package types import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/utils" @@ -56,19 +57,19 @@ func (p *Pool) Fee() uint64 { return p.UpperTick1.Key.Fee } -func (p *Pool) GetLowerReserve0() sdk.Int { +func (p *Pool) GetLowerReserve0() math.Int { return p.LowerTick0.ReservesMakerDenom } -func (p *Pool) GetUpperReserve1() sdk.Int { +func (p *Pool) GetUpperReserve1() math.Int { return p.UpperTick1.ReservesMakerDenom } func (p *Pool) Swap( tradePairID *TradePairID, - maxAmountTakerIn sdk.Int, - maxAmountMakerOut *sdk.Int, -) (amountTakerIn, amountMakerOut sdk.Int) { + maxAmountTakerIn math.Int, + maxAmountMakerOut *math.Int, +) (amountTakerIn, amountMakerOut math.Int) { var takerReserves, makerReserves *PoolReserves if tradePairID.IsMakerDenomToken0() { makerReserves = p.LowerTick0 @@ -78,13 +79,13 @@ func (p *Pool) Swap( takerReserves = p.LowerTick0 } - if maxAmountTakerIn.Equal(sdk.ZeroInt()) || - makerReserves.ReservesMakerDenom.Equal(sdk.ZeroInt()) { - return sdk.ZeroInt(), sdk.ZeroInt() + if maxAmountTakerIn.Equal(math.ZeroInt()) || + makerReserves.ReservesMakerDenom.Equal(math.ZeroInt()) { + return math.ZeroInt(), math.ZeroInt() } maxOutGivenTakerIn := makerReserves.PriceTakerToMaker.MulInt(maxAmountTakerIn).TruncateInt() - possibleAmountsMakerOut := []sdk.Int{makerReserves.ReservesMakerDenom, maxOutGivenTakerIn} + possibleAmountsMakerOut := []math.Int{makerReserves.ReservesMakerDenom, maxOutGivenTakerIn} if maxAmountMakerOut != nil { possibleAmountsMakerOut = append(possibleAmountsMakerOut, *maxAmountMakerOut) } @@ -110,9 +111,9 @@ func (p *Pool) Swap( func (p *Pool) Deposit( maxAmount0, maxAmount1, - existingShares sdk.Int, + existingShares math.Int, autoswap bool, -) (inAmount0, inAmount1 sdk.Int, outShares sdk.Coin) { +) (inAmount0, inAmount1 math.Int, outShares sdk.Coin) { lowerReserve0 := &p.LowerTick0.ReservesMakerDenom upperReserve1 := &p.UpperTick1.ReservesMakerDenom @@ -123,8 +124,8 @@ func (p *Pool) Deposit( maxAmount1, ) - if inAmount0.Equal(sdk.ZeroInt()) && inAmount1.Equal(sdk.ZeroInt()) { - return sdk.ZeroInt(), sdk.ZeroInt(), sdk.Coin{Denom: p.GetPoolDenom()} + if inAmount0.Equal(math.ZeroInt()) && inAmount1.Equal(math.ZeroInt()) { + return math.ZeroInt(), math.ZeroInt(), sdk.Coin{Denom: p.GetPoolDenom()} } outShares = p.CalcSharesMinted(inAmount0, inAmount1, existingShares) @@ -169,9 +170,9 @@ func (p *Pool) MustCalcPrice1To0Center() math_utils.PrecDec { } func (p *Pool) CalcSharesMinted( - amount0 sdk.Int, - amount1 sdk.Int, - existingShares sdk.Int, + amount0 math.Int, + amount1 math.Int, + existingShares math.Int, ) (sharesMinted sdk.Coin) { price1To0Center := p.MustCalcPrice1To0Center() valueMintedToken0 := CalcAmountAsToken0(amount0, amount1, price1To0Center) @@ -181,7 +182,7 @@ func (p *Pool) CalcSharesMinted( p.UpperTick1.ReservesMakerDenom, price1To0Center, ) - var sharesMintedAmount sdk.Int + var sharesMintedAmount math.Int if valueExistingToken0.GT(math_utils.ZeroPrecDec()) { sharesMintedAmount = valueMintedToken0.MulInt(existingShares). Quo(valueExistingToken0). @@ -194,8 +195,8 @@ func (p *Pool) CalcSharesMinted( } func (p *Pool) CalcResidualSharesMinted( - residualAmount0 sdk.Int, - residualAmount1 sdk.Int, + residualAmount0 math.Int, + residualAmount1 math.Int, ) (sharesMinted sdk.Coin, err error) { fee := CalcFee(p.UpperTick1.Key.TickIndexTakerToMaker, p.LowerTick0.Key.TickIndexTakerToMaker) valueMintedToken0, err := CalcResidualValue( @@ -211,7 +212,7 @@ func (p *Pool) CalcResidualSharesMinted( return sdk.Coin{Denom: p.GetPoolDenom(), Amount: valueMintedToken0.TruncateInt()}, nil } -func (p *Pool) RedeemValue(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int) { +func (p *Pool) RedeemValue(sharesToRemove, totalShares math.Int) (outAmount0, outAmount1 math.Int) { reserves0 := &p.LowerTick0.ReservesMakerDenom reserves1 := &p.UpperTick1.ReservesMakerDenom // outAmount1 = ownershipRatio * reserves1 @@ -226,7 +227,7 @@ func (p *Pool) RedeemValue(sharesToRemove, totalShares sdk.Int) (outAmount0, out return outAmount0, outAmount1 } -func (p *Pool) Withdraw(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int) { +func (p *Pool) Withdraw(sharesToRemove, totalShares math.Int) (outAmount0, outAmount1 math.Int) { reserves0 := &p.LowerTick0.ReservesMakerDenom reserves1 := &p.UpperTick1.ReservesMakerDenom outAmount0, outAmount1 = p.RedeemValue(sharesToRemove, totalShares) @@ -238,16 +239,16 @@ func (p *Pool) Withdraw(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmo // Balance trueAmount1 to the pool ratio func CalcGreatestMatchingRatio( - targetAmount0 sdk.Int, - targetAmount1 sdk.Int, - amount0 sdk.Int, - amount1 sdk.Int, -) (resultAmount0, resultAmount1 sdk.Int) { + targetAmount0 math.Int, + targetAmount1 math.Int, + amount0 math.Int, + amount1 math.Int, +) (resultAmount0, resultAmount1 math.Int) { targetAmount0Dec := sdk.NewDecFromInt(targetAmount0) targetAmount1Dec := sdk.NewDecFromInt(targetAmount1) // See spec: https://www.notion.so/dualityxyz/Autoswap-Spec-e856fa7b2438403c95147010d479b98c - if targetAmount1.GT(sdk.ZeroInt()) { + if targetAmount1.GT(math.ZeroInt()) { resultAmount0 = sdk.MinInt( amount0, sdk.NewDecFromInt(amount1).Mul(targetAmount0Dec).Quo(targetAmount1Dec).TruncateInt()) @@ -255,7 +256,7 @@ func CalcGreatestMatchingRatio( resultAmount0 = amount0 } - if targetAmount0.GT(sdk.ZeroInt()) { + if targetAmount0.GT(math.ZeroInt()) { resultAmount1 = sdk.MinInt( amount1, sdk.NewDecFromInt(amount0).Mul(targetAmount1Dec).Quo(targetAmount0Dec).TruncateInt()) @@ -267,7 +268,7 @@ func CalcGreatestMatchingRatio( } func CalcResidualValue( - amount0, amount1 sdk.Int, + amount0, amount1 math.Int, priceLowerTakerToMaker math_utils.PrecDec, fee int64, ) (math_utils.PrecDec, error) { @@ -284,7 +285,7 @@ func CalcFee(upperTickIndex, lowerTickIndex int64) int64 { return (upperTickIndex - lowerTickIndex) / 2 } -func CalcAmountAsToken0(amount0, amount1 sdk.Int, price1To0 math_utils.PrecDec) math_utils.PrecDec { +func CalcAmountAsToken0(amount0, amount1 math.Int, price1To0 math_utils.PrecDec) math_utils.PrecDec { amount0Dec := math_utils.NewPrecDecFromInt(amount0) return amount0Dec.Add(price1To0.MulInt(amount1)) diff --git a/x/dex/types/pool_liquidity.go b/x/dex/types/pool_liquidity.go index 47e2eefd6..6456df9e4 100644 --- a/x/dex/types/pool_liquidity.go +++ b/x/dex/types/pool_liquidity.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" math_utils "github.com/neutron-org/neutron/utils/math" ) @@ -11,9 +11,9 @@ type PoolLiquidity struct { } func (pl *PoolLiquidity) Swap( - maxAmountTakerDenomIn sdk.Int, - maxAmountMakerDenomOut *sdk.Int, -) (inAmount, outAmount sdk.Int) { + maxAmountTakerDenomIn math.Int, + maxAmountMakerDenomOut *math.Int, +) (inAmount, outAmount math.Int) { return pl.Pool.Swap( pl.TradePairID, maxAmountTakerDenomIn, diff --git a/x/dex/types/pool_reserves.go b/x/dex/types/pool_reserves.go index 0d523338a..d4f29eff6 100644 --- a/x/dex/types/pool_reserves.go +++ b/x/dex/types/pool_reserves.go @@ -1,11 +1,11 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" ) func (p PoolReserves) HasToken() bool { - return p.ReservesMakerDenom.GT(sdk.ZeroInt()) + return p.ReservesMakerDenom.GT(math.ZeroInt()) } func NewPoolReservesFromCounterpart( @@ -14,7 +14,7 @@ func NewPoolReservesFromCounterpart( thisID := counterpart.Key.Counterpart() return &PoolReserves{ Key: thisID, - ReservesMakerDenom: sdk.ZeroInt(), + ReservesMakerDenom: math.ZeroInt(), PriceTakerToMaker: counterpart.PriceOppositeTakerToMaker, PriceOppositeTakerToMaker: counterpart.PriceTakerToMaker, } @@ -35,7 +35,7 @@ func NewPoolReserves( return &PoolReserves{ Key: poolReservesID, - ReservesMakerDenom: sdk.ZeroInt(), + ReservesMakerDenom: math.ZeroInt(), PriceTakerToMaker: priceTakerToMaker, PriceOppositeTakerToMaker: priceOppositeTakerToMaker, }, nil diff --git a/x/dex/types/pool_test.go b/x/dex/types/pool_test.go index 98f721143..328ada29f 100644 --- a/x/dex/types/pool_test.go +++ b/x/dex/types/pool_test.go @@ -3,206 +3,206 @@ package types_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/assert" ) func TestCalcGreatestMatchingRatioBothReservesNonZero(t *testing.T) { trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(10), - sdk.NewInt(40), - sdk.NewInt(100), - sdk.NewInt(100), + math.NewInt(10), + math.NewInt(40), + math.NewInt(100), + math.NewInt(100), ) - assert.Equal(t, sdk.NewInt(25), trueAmount0) - assert.Equal(t, sdk.NewInt(100), trueAmount1) + assert.Equal(t, math.NewInt(25), trueAmount0) + assert.Equal(t, math.NewInt(100), trueAmount1) } func TestCalcGreatestMatchingRatioBothReservesZero(t *testing.T) { trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(0), - sdk.NewInt(0), - sdk.NewInt(100), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(0), + math.NewInt(100), + math.NewInt(100), ) - assert.Equal(t, sdk.NewInt(100), trueAmount0) - assert.Equal(t, sdk.NewInt(100), trueAmount1) + assert.Equal(t, math.NewInt(100), trueAmount0) + assert.Equal(t, math.NewInt(100), trueAmount1) } func TestCalcGreatestMatchingRatioWrongCoinDeposited(t *testing.T) { trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(100), - sdk.NewInt(0), - sdk.NewInt(0), - sdk.NewInt(100), + math.NewInt(100), + math.NewInt(0), + math.NewInt(0), + math.NewInt(100), ) - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) trueAmount0, trueAmount1 = CalcGreatestMatchingRatio( - sdk.NewInt(0), - sdk.NewInt(100), - sdk.NewInt(100), - sdk.NewInt(0), + math.NewInt(0), + math.NewInt(100), + math.NewInt(100), + math.NewInt(0), ) - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) } func TestCalcGreatestMatchingRatioOneReserveZero(t *testing.T) { trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(100), - sdk.NewInt(0), - sdk.NewInt(100), - sdk.NewInt(100), + math.NewInt(100), + math.NewInt(0), + math.NewInt(100), + math.NewInt(100), ) - assert.Equal(t, sdk.NewInt(100), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(100), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) trueAmount0, trueAmount1 = CalcGreatestMatchingRatio( - sdk.NewInt(0), - sdk.NewInt(100), - sdk.NewInt(100), - sdk.NewInt(100), + math.NewInt(0), + math.NewInt(100), + math.NewInt(100), + math.NewInt(100), ) - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(100), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(100), trueAmount1) } func TestCalcGreatestMatchingRatio2SidedPoolBothSidesRightRatio(t *testing.T) { // WHEN deposit into a pool with a ratio of 2:5 with the same ratio all of the tokens are used trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(20), - sdk.NewInt(50), - sdk.NewInt(4), - sdk.NewInt(10), + math.NewInt(20), + math.NewInt(50), + math.NewInt(4), + math.NewInt(10), ) // THEN both amounts are fully user - assert.Equal(t, sdk.NewInt(4), trueAmount0) - assert.Equal(t, sdk.NewInt(10), trueAmount1) + assert.Equal(t, math.NewInt(4), trueAmount0) + assert.Equal(t, math.NewInt(10), trueAmount1) } func TestCalcGreatestMatchingRatio2SidedPoolBothSidesWrongRatio(t *testing.T) { // WHEN deposit into a pool with a ratio of 3:2 with a ratio of 2:1 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(3), - sdk.NewInt(2), - sdk.NewInt(20), - sdk.NewInt(10), + math.NewInt(3), + math.NewInt(2), + math.NewInt(20), + math.NewInt(10), ) // THEN all of Token1 is used and 3/4 of token0 is used - assert.Equal(t, sdk.NewInt(15), trueAmount0) - assert.Equal(t, sdk.NewInt(10), trueAmount1) + assert.Equal(t, math.NewInt(15), trueAmount0) + assert.Equal(t, math.NewInt(10), trueAmount1) } func TestCalcGreatestMatchingRatio2SidedPoolBothSidesWrongRatio2(t *testing.T) { // IF deposit into a pool with a ratio of 2:3 with a ratio of 1:2 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(2), - sdk.NewInt(3), - sdk.NewInt(10), - sdk.NewInt(20), + math.NewInt(2), + math.NewInt(3), + math.NewInt(10), + math.NewInt(20), ) // THEN all of Token0 is used and 3/4 of token1 is used - assert.Equal(t, sdk.NewInt(10), trueAmount0) - assert.Equal(t, sdk.NewInt(15), trueAmount1) + assert.Equal(t, math.NewInt(10), trueAmount0) + assert.Equal(t, math.NewInt(15), trueAmount1) } func TestCalcGreatestMatchingRatio1SidedPoolBothSides(t *testing.T) { // WHEN deposit Token0 and Token1 into a pool with only Token0 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(10), - sdk.NewInt(0), - sdk.NewInt(10), - sdk.NewInt(10), + math.NewInt(10), + math.NewInt(0), + math.NewInt(10), + math.NewInt(10), ) // THEN only Token0 is used - assert.Equal(t, sdk.NewInt(10), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(10), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) } func TestCalcGreatestMatchingRatio1SidedPoolBothSides2(t *testing.T) { // WHEN deposit Token0 and Token1 into a pool with only Token1 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(0), - sdk.NewInt(10), - sdk.NewInt(10), - sdk.NewInt(10), + math.NewInt(0), + math.NewInt(10), + math.NewInt(10), + math.NewInt(10), ) // THEN only Token1 is used - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(10), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(10), trueAmount1) } func TestCalcGreatestMatchingRatio1SidedPool1SidedToken0(t *testing.T) { // WHEN deposit Token0 into a pool with only Token1 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(0), - sdk.NewInt(10), - sdk.NewInt(10), - sdk.NewInt(0), + math.NewInt(0), + math.NewInt(10), + math.NewInt(10), + math.NewInt(0), ) // THEN no amounts are used - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) } func TestCalcGreatestMatchingRatio1SidedPool1SidedToken0B(t *testing.T) { // WHEN deposit Token0 into a pool with only Token0 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(10), - sdk.NewInt(0), - sdk.NewInt(10), - sdk.NewInt(0), + math.NewInt(10), + math.NewInt(0), + math.NewInt(10), + math.NewInt(0), ) // THEN all of Token0 is used - assert.Equal(t, sdk.NewInt(10), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(10), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) } func TestCalcGreatestMatchingRatio1SidedPool1SidedToken1(t *testing.T) { // WHEN deposit Token1 into a pool with only Token0 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(10), - sdk.NewInt(0), - sdk.NewInt(0), - sdk.NewInt(1), + math.NewInt(10), + math.NewInt(0), + math.NewInt(0), + math.NewInt(1), ) // THEN no amounts are used - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(0), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(0), trueAmount1) } func TestCalcGreatestMatchingRatio1SidedPool1SidedToken1B(t *testing.T) { // WHEN deposit Token1 into a pool with only Token1 trueAmount0, trueAmount1 := CalcGreatestMatchingRatio( - sdk.NewInt(0), - sdk.NewInt(10), - sdk.NewInt(0), - sdk.NewInt(10), + math.NewInt(0), + math.NewInt(10), + math.NewInt(0), + math.NewInt(10), ) // THEN all of Token1 is used - assert.Equal(t, sdk.NewInt(0), trueAmount0) - assert.Equal(t, sdk.NewInt(10), trueAmount1) + assert.Equal(t, math.NewInt(0), trueAmount0) + assert.Equal(t, math.NewInt(10), trueAmount1) } diff --git a/x/dex/types/tick_liquidity_test.go b/x/dex/types/tick_liquidity_test.go index 01aeeea58..e16d62c40 100644 --- a/x/dex/types/tick_liquidity_test.go +++ b/x/dex/types/tick_liquidity_test.go @@ -3,32 +3,32 @@ package types_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/assert" ) func TestHasTokenEmptyReserves(t *testing.T) { // WHEN has no reserves - tick := &types.PoolReserves{ReservesMakerDenom: sdk.ZeroInt()} + tick := &types.PoolReserves{ReservesMakerDenom: math.ZeroInt()} assert.False(t, tick.HasToken()) } func TestHasTokenEmptyLO(t *testing.T) { // WHEN has no limits orders - tick := &types.LimitOrderTranche{ReservesMakerDenom: sdk.NewInt(0)} + tick := &types.LimitOrderTranche{ReservesMakerDenom: math.NewInt(0)} assert.False(t, tick.HasTokenIn()) } func TestHasToken0HasReserves(t *testing.T) { // WHEN tick has Reserves - tick := &types.PoolReserves{ReservesMakerDenom: sdk.NewInt(10)} + tick := &types.PoolReserves{ReservesMakerDenom: math.NewInt(10)} assert.True(t, tick.HasToken()) } func TestHasTokenHasLO(t *testing.T) { // WHEN has limit ordeers - tick := &types.LimitOrderTranche{ReservesMakerDenom: sdk.NewInt(10)} + tick := &types.LimitOrderTranche{ReservesMakerDenom: math.NewInt(10)} assert.True(t, tick.HasTokenIn()) } diff --git a/x/dex/utils/math.go b/x/dex/utils/math.go index 6fe67f632..23d23e96f 100644 --- a/x/dex/utils/math.go +++ b/x/dex/utils/math.go @@ -5,7 +5,7 @@ import ( "math" "strconv" - sdk "github.com/cosmos/cosmos-sdk/types" + sdkmath "cosmossdk.io/math" math_utils "github.com/neutron-org/neutron/utils/math" ) @@ -22,7 +22,7 @@ func Abs(x int64) uint64 { return uint64(x) } -func MinIntArr(vals []sdk.Int) sdk.Int { +func MinIntArr(vals []sdkmath.Int) sdkmath.Int { min := vals[0] for _, val := range vals { if val.LT(min) { @@ -33,7 +33,7 @@ func MinIntArr(vals []sdk.Int) sdk.Int { return min } -func MaxIntArr(vals []sdk.Int) sdk.Int { +func MaxIntArr(vals []sdkmath.Int) sdkmath.Int { max := vals[0] for _, val := range vals { if val.GT(max) { diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index f1273e315..08bce70c4 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -5,6 +5,7 @@ import ( "encoding/json" "strings" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" @@ -303,7 +304,7 @@ func (im IBCMiddleware) handleNoRefund( return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) } - amount, ok := sdk.NewIntFromString(data.Amount) + amount, ok := math.NewIntFromString(data.Amount) if !ok { wrappedErr := sdkerrors.Wrapf( transfertypes.ErrInvalidAmount, diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index d71c683ab..548b592c9 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -3,6 +3,7 @@ package keeper import ( "fmt" + "cosmossdk.io/math" "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" @@ -117,7 +118,7 @@ func (k Keeper) RefundPacketToken( trace := transfertypes.ParseDenomTrace(data.Denom) // parse the transfer amount - transferAmount, ok := sdk.NewIntFromString(data.Amount) + transferAmount, ok := math.NewIntFromString(data.Amount) if !ok { return sdkerrors.Wrapf( transfertypes.ErrInvalidAmount, diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go index 01368e6bf..ff7ba8a60 100644 --- a/x/ibcswap/types/swap_test.go +++ b/x/ibcswap/types/swap_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/math" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" "github.com/iancoleman/orderedmap" "github.com/neutron-org/neutron/app" @@ -27,7 +27,7 @@ func TestPacketMetadata_Marshal(t *testing.T) { Receiver: "test-1", TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -61,9 +61,9 @@ func TestPacketMetadata_MarshalWithNext(t *testing.T) { TokenIn: "token-a", TokenOut: "token-b", TickIndexInToOut: 0, - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), OrderType: types.LimitOrderType_FILL_OR_KILL, - // MaxAmountOut: sdk.NewInt(456), + // MaxAmountOut: math.NewInt(456), }, Next: NewJSONObject(false, nextBz, orderedmap.OrderedMap{}), }, @@ -104,7 +104,7 @@ func TestSwapMetadata_ValidatePass(t *testing.T) { Receiver: sample.AccAddress(), TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -125,7 +125,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "test-1", TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -143,7 +143,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "", TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -161,7 +161,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "test-1", TokenIn: "", TokenOut: "token-b", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -179,7 +179,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "receiver", TokenIn: "token-a", TokenOut: "", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -197,7 +197,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "receiver", TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(0), + AmountIn: math.NewInt(0), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -215,7 +215,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "receiver", TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(-1), + AmountIn: math.NewInt(-1), TickIndexInToOut: 0, OrderType: types.LimitOrderType_FILL_OR_KILL, }, @@ -233,7 +233,7 @@ func TestSwapMetadata_ValidateFail(t *testing.T) { Receiver: "receiver", TokenIn: "token-a", TokenOut: "token-b", - AmountIn: sdk.NewInt(123), + AmountIn: math.NewInt(123), TickIndexInToOut: 0, OrderType: types.LimitOrderType_GOOD_TIL_CANCELLED, }, diff --git a/x/incentives/client/cli/cli_test.go b/x/incentives/client/cli/cli_test.go index 473b37297..3ac098792 100644 --- a/x/incentives/client/cli/cli_test.go +++ b/x/incentives/client/cli/cli_test.go @@ -5,6 +5,7 @@ import ( "testing" "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/utils" "github.com/neutron-org/neutron/utils/dcli" @@ -149,8 +150,8 @@ func TestNewCreateGaugeCmd(t *testing.T) { EndTick: 100, }, Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(100)), - sdk.NewCoin("TokenB", sdk.NewInt(100)), + sdk.NewCoin("TokenA", math.NewInt(100)), + sdk.NewCoin("TokenB", math.NewInt(100)), ), StartTime: time.Unix(0, 0).UTC(), NumEpochsPaidOver: 50, @@ -172,8 +173,8 @@ func TestNewCreateGaugeCmd(t *testing.T) { EndTick: 20, }, Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(100)), - sdk.NewCoin("TokenB", sdk.NewInt(100)), + sdk.NewCoin("TokenA", math.NewInt(100)), + sdk.NewCoin("TokenB", math.NewInt(100)), ), StartTime: testTime, NumEpochsPaidOver: 50, @@ -195,8 +196,8 @@ func TestNewCreateGaugeCmd(t *testing.T) { EndTick: 20, }, Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(100)), - sdk.NewCoin("TokenB", sdk.NewInt(100)), + sdk.NewCoin("TokenA", math.NewInt(100)), + sdk.NewCoin("TokenB", math.NewInt(100)), ), StartTime: testTime, NumEpochsPaidOver: 50, @@ -217,8 +218,8 @@ func TestNewCreateGaugeCmd(t *testing.T) { EndTick: 20, }, Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(100)), - sdk.NewCoin("TokenB", sdk.NewInt(100)), + sdk.NewCoin("TokenA", math.NewInt(100)), + sdk.NewCoin("TokenB", math.NewInt(100)), ), StartTime: time.Unix(0, 0).UTC(), NumEpochsPaidOver: 1, @@ -237,7 +238,7 @@ func TestNewAddToGaugeCmd(t *testing.T) { ExpectedMsg: &types.MsgAddToGauge{ Owner: testAddresses[0].String(), GaugeId: 1, - Rewards: sdk.NewCoins(sdk.NewCoin("TokenA", sdk.NewInt(1000))), + Rewards: sdk.NewCoins(sdk.NewCoin("TokenA", math.NewInt(1000))), }, }, "multiple tokens": { @@ -246,8 +247,8 @@ func TestNewAddToGaugeCmd(t *testing.T) { Owner: testAddresses[0].String(), GaugeId: 1, Rewards: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(1000)), - sdk.NewCoin("TokenZ", sdk.NewInt(1)), + sdk.NewCoin("TokenA", math.NewInt(1000)), + sdk.NewCoin("TokenZ", math.NewInt(1)), ), }, }, @@ -262,7 +263,7 @@ func TestNewStakeCmd(t *testing.T) { Cmd: fmt.Sprintf("1000TokenA --from %s", testAddresses[0]), ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), - Coins: sdk.NewCoins(sdk.NewCoin("TokenA", sdk.NewInt(1000))), + Coins: sdk.NewCoins(sdk.NewCoin("TokenA", math.NewInt(1000))), }, }, "multiple tokens": { @@ -270,8 +271,8 @@ func TestNewStakeCmd(t *testing.T) { ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(1000)), - sdk.NewCoin("TokenZ", sdk.NewInt(1)), + sdk.NewCoin("TokenA", math.NewInt(1000)), + sdk.NewCoin("TokenZ", math.NewInt(1)), ), }, }, @@ -283,7 +284,7 @@ func TestNewStakeCmd(t *testing.T) { ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t123-f30", sdk.NewInt(1000)), + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t123-f30", math.NewInt(1000)), ), }, }, @@ -295,7 +296,7 @@ func TestNewStakeCmd(t *testing.T) { ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", sdk.NewInt(1000)), + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), ), }, }, @@ -307,8 +308,8 @@ func TestNewStakeCmd(t *testing.T) { ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", sdk.NewInt(1000)), - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-124-f30", sdk.NewInt(1)), + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), + sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-124-f30", math.NewInt(1)), ), }, }, @@ -334,13 +335,13 @@ func TestNewUnstakeCmd(t *testing.T) { { ID: 1, Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(10)), + sdk.NewCoin("TokenA", math.NewInt(10)), ), }, { ID: 10, Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", sdk.NewInt(10)), - sdk.NewCoin("TokenC", sdk.NewInt(10)), + sdk.NewCoin("TokenA", math.NewInt(10)), + sdk.NewCoin("TokenC", math.NewInt(10)), ), }, }, diff --git a/x/incentives/client/cli/query_test.go b/x/incentives/client/cli/query_test.go index 657944430..b0102ff02 100644 --- a/x/incentives/client/cli/query_test.go +++ b/x/incentives/client/cli/query_test.go @@ -46,7 +46,7 @@ func (s *QueryTestSuite) SetupSuite() { // set up stake with id = 1 addr := apptesting.SetupAddr(0) - s.SetupStake(addr, sdk.Coins{sdk.NewCoin(denom, sdk.NewInt(1000000))}, time.Hour*24) + s.SetupStake(addr, sdk.Coins{sdk.NewCoin(denom, math.NewInt(1000000))}, time.Hour*24) s.Commit() } diff --git a/x/incentives/keeper/distribute.go b/x/incentives/keeper/distribute.go index 9dff4b39d..3990e0046 100644 --- a/x/incentives/keeper/distribute.go +++ b/x/incentives/keeper/distribute.go @@ -4,20 +4,20 @@ import ( "fmt" "time" + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" math_utils "github.com/neutron-org/neutron/utils/math" dextypes "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/incentives/types" - - sdk "github.com/cosmos/cosmos-sdk/types" ) var _ DistributorKeeper = Keeper{} -func (k Keeper) ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (sdk.Int, error) { +func (k Keeper) ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (math.Int, error) { totalShares := k.bk.GetSupply(ctx, coin.Denom).Amount poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, coin.Denom) if err != nil { - return sdk.ZeroInt(), err + return math.ZeroInt(), err } pool, err := k.dk.GetOrInitPool( @@ -27,12 +27,12 @@ func (k Keeper) ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (sdk. poolMetadata.Fee, ) if err != nil { - return sdk.ZeroInt(), err + return math.ZeroInt(), err } amount0, amount1 := pool.RedeemValue(coin.Amount, totalShares) price1To0Center, err := dextypes.CalcPrice(-1 * tick) if err != nil { - return sdk.ZeroInt(), err + return math.ZeroInt(), err } return math_utils.NewPrecDecFromInt(amount0).Add(price1To0Center.MulInt(amount1)).TruncateInt(), nil } diff --git a/x/incentives/keeper/distribute_test.go b/x/incentives/keeper/distribute_test.go index b699bcf2e..44516848e 100644 --- a/x/incentives/keeper/distribute_test.go +++ b/x/incentives/keeper/distribute_test.go @@ -7,6 +7,7 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/testutil/apptesting" dextypes "github.com/neutron-org/neutron/x/dex/types" @@ -28,7 +29,7 @@ func (suite *KeeperTestSuite) TestValueForShares() { deposits []depositSpec coin sdk.Coin tick int64 - expectation sdk.Int + expectation math.Int err error }{ // gauge 1 gives 3k coins. three stakes, all eligible. 1k coins per stake. @@ -46,7 +47,7 @@ func (suite *KeeperTestSuite) TestValueForShares() { }, coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), tick: 1000, - expectation: sdk.NewInt(21), + expectation: math.NewInt(21), }, { name: "one deposit: no adjustment", @@ -61,7 +62,7 @@ func (suite *KeeperTestSuite) TestValueForShares() { }, coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), tick: 0, - expectation: sdk.NewInt(20), + expectation: math.NewInt(20), }, { name: "two deposits: one extraneous", @@ -83,7 +84,7 @@ func (suite *KeeperTestSuite) TestValueForShares() { }, coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), tick: 1000, - expectation: sdk.NewInt(21), + expectation: math.NewInt(21), }, { name: "two deposits: both relevant", @@ -105,7 +106,7 @@ func (suite *KeeperTestSuite) TestValueForShares() { }, coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), tick: 1000, - expectation: sdk.NewInt(21), + expectation: math.NewInt(21), }, } for _, tc := range tests { diff --git a/x/incentives/keeper/distributor.go b/x/incentives/keeper/distributor.go index 837986dd5..46197d28d 100644 --- a/x/incentives/keeper/distributor.go +++ b/x/incentives/keeper/distributor.go @@ -1,12 +1,13 @@ package keeper import ( + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/incentives/types" ) type DistributorKeeper interface { - ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (sdk.Int, error) + ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (math.Int, error) GetStakesByQueryCondition(ctx sdk.Context, distrTo *types.QueryCondition) types.Stakes StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *types.Stake, distrTo types.QueryCondition) sdk.Coins } @@ -34,17 +35,17 @@ func (d Distributor) Distribute( rewardsNextEpoch := gauge.RewardsNextEpoch() - adjustedGaugeTotal := sdk.ZeroInt() + adjustedGaugeTotal := math.ZeroInt() gaugeStakes := d.keeper.GetStakesByQueryCondition(ctx, &gauge.DistributeTo) if filterStakes == nil { filterStakes = gaugeStakes } - stakeSumCache := make(map[uint64]sdk.Int, len(gaugeStakes)) + stakeSumCache := make(map[uint64]math.Int, len(gaugeStakes)) for _, stake := range gaugeStakes { stakeCoins := d.keeper.StakeCoinsPassingQueryCondition(ctx, stake, gauge.DistributeTo) - stakeTotal := sdk.ZeroInt() + stakeTotal := math.ZeroInt() for _, stakeCoin := range stakeCoins { adjustedPositionValue, err := d.keeper.ValueForShares(ctx, stakeCoin, gauge.PricingTick) if err != nil { diff --git a/x/incentives/keeper/distributor_test.go b/x/incentives/keeper/distributor_test.go index a1b6f0c42..36e59528e 100644 --- a/x/incentives/keeper/distributor_test.go +++ b/x/incentives/keeper/distributor_test.go @@ -4,6 +4,7 @@ import ( "testing" time "time" + "cosmossdk.io/math" tmtypes "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/testutil" @@ -28,8 +29,8 @@ func NewMockKeeper(keeper DistributorKeeper, stakes types.Stakes) MockKeeper { } } -func (k MockKeeper) ValueForShares(_ sdk.Context, coin sdk.Coin, tick int64) (sdk.Int, error) { - return coin.Amount.Mul(sdk.NewInt(2)), nil +func (k MockKeeper) ValueForShares(_ sdk.Context, coin sdk.Coin, tick int64) (math.Int, error) { + return coin.Amount.Mul(math.NewInt(2)), nil } func (k MockKeeper) GetStakesByQueryCondition( @@ -61,7 +62,7 @@ func TestDistributor(t *testing.T) { StartTick: -10, EndTick: 10, }, - sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(100))}, + sdk.Coins{sdk.NewCoin("coin1", math.NewInt(100))}, ctx.BlockTime(), 10, 0, @@ -73,10 +74,10 @@ func TestDistributor(t *testing.T) { nonRewardPool, _ := app.DexKeeper.GetOrInitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 12, 1) nonRewardedDenom := nonRewardPool.GetPoolDenom() allStakes := types.Stakes{ - {1, "addr1", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, sdk.NewInt(50))}, 0}, - {2, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, sdk.NewInt(25))}, 0}, - {3, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, sdk.NewInt(25))}, 0}, - {4, "addr3", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(nonRewardedDenom, sdk.NewInt(50))}, 0}, + {1, "addr1", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(50))}, 0}, + {2, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, 0}, + {3, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, 0}, + {4, "addr3", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(nonRewardedDenom, math.NewInt(50))}, 0}, } distributor := NewDistributor(NewMockKeeper(app.IncentivesKeeper, allStakes)) @@ -100,8 +101,8 @@ func TestDistributor(t *testing.T) { timeOffset: 0, filterStakes: allStakes, expected: types.DistributionSpec{ - "addr1": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(5))}, - "addr2": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(4))}, + "addr1": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, + "addr2": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(4))}, }, expectedErr: nil, }, @@ -110,7 +111,7 @@ func TestDistributor(t *testing.T) { timeOffset: 0, filterStakes: types.Stakes{allStakes[0]}, expected: types.DistributionSpec{ - "addr1": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(5))}, + "addr1": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, }, expectedErr: nil, }, diff --git a/x/incentives/keeper/suite_test.go b/x/incentives/keeper/suite_test.go index 89596b341..cf0ab8382 100644 --- a/x/incentives/keeper/suite_test.go +++ b/x/incentives/keeper/suite_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "time" + "cosmossdk.io/math" dextypes "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/incentives/types" @@ -50,8 +51,8 @@ func (suite *KeeperTestSuite) SetupDeposit(ss []depositSpec) sdk.Coins { dextypes.MustNewPairID(s.token0.Denom, s.token1.Denom), s.addr, s.addr, - []sdk.Int{s.token0.Amount}, - []sdk.Int{s.token1.Amount}, + []math.Int{s.token0.Amount}, + []math.Int{s.token1.Amount}, []int64{s.tick}, []uint64{s.fee}, []*dextypes.DepositOptions{{}}, diff --git a/x/incentives/types/gauge.go b/x/incentives/types/gauge.go index 139be2874..94a43dc16 100644 --- a/x/incentives/types/gauge.go +++ b/x/incentives/types/gauge.go @@ -3,6 +3,7 @@ package types import ( time "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -62,7 +63,7 @@ func (gauge Gauge) RewardsNextEpoch() sdk.Coins { } for _, rewardRemainingCoin := range gauge.CoinsRemaining() { - amount := rewardRemainingCoin.Amount.Quo(sdk.NewInt(int64(epochsRemaining))) + amount := rewardRemainingCoin.Amount.Quo(math.NewInt(int64(epochsRemaining))) result = result.Add(sdk.Coin{Denom: rewardRemainingCoin.Denom, Amount: amount}) } diff --git a/x/incentives/types/gauge_test.go b/x/incentives/types/gauge_test.go index d05370d66..431aeb815 100644 --- a/x/incentives/types/gauge_test.go +++ b/x/incentives/types/gauge_test.go @@ -4,6 +4,7 @@ import ( "testing" "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" . "github.com/neutron-org/neutron/x/incentives/types" "github.com/stretchr/testify/assert" @@ -48,18 +49,18 @@ func TestGaugeEpochsRemaining(t *testing.T) { } func TestGaugeCoinsRemaining(t *testing.T) { - coins := sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(100))} - distCoins := sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(50))} + coins := sdk.Coins{sdk.NewCoin("coin1", math.NewInt(100))} + distCoins := sdk.Coins{sdk.NewCoin("coin1", math.NewInt(50))} gauge := NewGauge(1, false, QueryCondition{}, coins, time.Time{}, 10, 5, distCoins, 0) - assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(50))}, gauge.CoinsRemaining()) + assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", math.NewInt(50))}, gauge.CoinsRemaining()) } func TestGaugeGetTotal(t *testing.T) { distSpec := DistributionSpec{ - "addr1": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(10))}, - "addr2": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(20))}, - "addr3": sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(30))}, + "addr1": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(10))}, + "addr2": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(20))}, + "addr3": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(30))}, } - assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", sdk.NewInt(60))}, distSpec.GetTotal()) + assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", math.NewInt(60))}, distSpec.GetTotal()) } diff --git a/x/incentives/types/msgs_test.go b/x/incentives/types/msgs_test.go index 659d13b21..4ebdde3ea 100644 --- a/x/incentives/types/msgs_test.go +++ b/x/incentives/types/msgs_test.go @@ -7,6 +7,7 @@ import ( "github.com/cometbft/cometbft/crypto/ed25519" "github.com/stretchr/testify/require" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/testutil/apptesting" @@ -197,7 +198,7 @@ func TestMsgSetupStake(t *testing.T) { name: "proper msg", msg: MsgStake{ Owner: addr1, - Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), }, expectPass: true, }, @@ -205,14 +206,14 @@ func TestMsgSetupStake(t *testing.T) { name: "invalid owner", msg: MsgStake{ Owner: invalidAddr, - Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), }, }, { name: "zero token amount", msg: MsgStake{ Owner: addr1, - Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(0))), + Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(0))), }, }, } @@ -248,7 +249,7 @@ func TestMsgUnstake(t *testing.T) { Unstakes: []*MsgUnstake_UnstakeDescriptor{ { ID: 1, - Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), }, }, }, @@ -261,7 +262,7 @@ func TestMsgUnstake(t *testing.T) { Unstakes: []*MsgUnstake_UnstakeDescriptor{ { ID: 1, - Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), }, }, }, @@ -273,7 +274,7 @@ func TestMsgUnstake(t *testing.T) { Unstakes: []*MsgUnstake_UnstakeDescriptor{ { ID: 0, - Coins: sdk.NewCoins(sdk.NewCoin("test", sdk.NewInt(100))), + Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), }, }, }, @@ -285,7 +286,7 @@ func TestMsgUnstake(t *testing.T) { Unstakes: []*MsgUnstake_UnstakeDescriptor{ { ID: 1, - Coins: sdk.NewCoins(sdk.NewCoin("test1", sdk.NewInt(0))), + Coins: sdk.NewCoins(sdk.NewCoin("test1", math.NewInt(0))), }, }, }, From 5b598bf0f82be9ca83d9a8039383372a70b8e0c7 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 16 Oct 2023 13:35:22 -0400 Subject: [PATCH 181/307] FIX: deprecation github.com/cosmos/cosmos-sdk/types/errors => cosmossdk.io/errors --- x/dex/client/cli/tx_deposit.go | 2 +- x/dex/client/cli/tx_multi_hop_swap.go | 2 +- x/dex/client/cli/tx_place_limit_order.go | 2 +- x/dex/client/cli/tx_withdrawl.go | 2 +- x/dex/keeper/core.go | 2 +- x/dex/keeper/core_helper.go | 4 ++-- .../grpc_query_estimate_place_limit_order.go | 2 +- x/dex/keeper/grpc_query_pool_metadata.go | 3 +-- x/dex/keeper/grpc_query_pool_metadata_test.go | 3 +-- x/dex/keeper/msg_server.go | 6 ++--- x/dex/keeper/multihop_swap.go | 2 +- x/dex/types/errors.go | 7 +++++- x/dex/types/message_cancel_limit_order.go | 4 ++-- .../types/message_cancel_limit_order_test.go | 3 +-- x/dex/types/message_deposit.go | 6 ++--- x/dex/types/message_deposit_test.go | 5 ++-- x/dex/types/message_multi_hop_swap.go | 6 ++--- x/dex/types/message_multi_hop_swap_test.go | 5 ++-- x/dex/types/message_place_limit_order.go | 6 ++--- x/dex/types/message_place_limit_order_test.go | 5 ++-- x/dex/types/message_withdrawl.go | 6 ++--- .../message_withdrawl_filled_limit_order.go | 4 ++-- ...ssage_withdrawl_filled_limit_order_test.go | 3 +-- x/dex/types/message_withdrawl_test.go | 5 ++-- x/dex/types/pair_id.go | 2 +- x/dex/types/trade_pair_id.go | 2 +- x/dex/utils/abci.go | 5 ++-- x/epochs/types/hooks_test.go | 2 +- x/ibcswap/ibc_middleware.go | 2 +- x/ibcswap/keeper/keeper.go | 2 +- x/ibcswap/types/errors.go | 2 +- x/ibcswap/types/swap.go | 6 ++--- x/incentives/keeper/msg_server.go | 12 +++++----- x/incentives/keeper/query_server.go | 8 +++---- x/incentives/keeper/stake.go | 12 +++++----- x/incentives/types/errors.go | 12 +++++++++- x/incentives/types/msgs.go | 24 +++++++++---------- 37 files changed, 97 insertions(+), 89 deletions(-) diff --git a/x/dex/client/cli/tx_deposit.go b/x/dex/client/cli/tx_deposit.go index 31a833303..8d58c44b7 100644 --- a/x/dex/client/cli/tx_deposit.go +++ b/x/dex/client/cli/tx_deposit.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/client/cli/tx_multi_hop_swap.go b/x/dex/client/cli/tx_multi_hop_swap.go index bf703cb2a..9c33cc3d4 100644 --- a/x/dex/client/cli/tx_multi_hop_swap.go +++ b/x/dex/client/cli/tx_multi_hop_swap.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" diff --git a/x/dex/client/cli/tx_place_limit_order.go b/x/dex/client/cli/tx_place_limit_order.go index 6ae51074c..e57e1a017 100644 --- a/x/dex/client/cli/tx_place_limit_order.go +++ b/x/dex/client/cli/tx_place_limit_order.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/client/cli/tx_withdrawl.go b/x/dex/client/cli/tx_withdrawl.go index 277f31488..3da7962a0 100644 --- a/x/dex/client/cli/tx_withdrawl.go +++ b/x/dex/client/cli/tx_withdrawl.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index 1fa69de81..6268b908d 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -6,7 +6,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" diff --git a/x/dex/keeper/core_helper.go b/x/dex/keeper/core_helper.go index cf5d0ff81..e22495807 100644 --- a/x/dex/keeper/core_helper.go +++ b/x/dex/keeper/core_helper.go @@ -1,9 +1,9 @@ package keeper import ( + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "golang.org/x/exp/slices" @@ -67,7 +67,7 @@ func (k Keeper) GetValidFees(ctx sdk.Context) []uint64 { func (k Keeper) ValidateFee(ctx sdk.Context, fee uint64) error { validFees := k.GetValidFees(ctx) if !slices.Contains(validFees, fee) { - return sdkerrors.Wrapf(types.ErrInvalidFee, "%s", validFees) + return sdkerrors.Wrapf(types.ErrInvalidFee, "%d", validFees) } return nil diff --git a/x/dex/keeper/grpc_query_estimate_place_limit_order.go b/x/dex/keeper/grpc_query_estimate_place_limit_order.go index 26069379e..69285cf75 100644 --- a/x/dex/keeper/grpc_query_estimate_place_limit_order.go +++ b/x/dex/keeper/grpc_query_estimate_place_limit_order.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" ) diff --git a/x/dex/keeper/grpc_query_pool_metadata.go b/x/dex/keeper/grpc_query_pool_metadata.go index 628d2bf2a..a4ebc6feb 100644 --- a/x/dex/keeper/grpc_query_pool_metadata.go +++ b/x/dex/keeper/grpc_query_pool_metadata.go @@ -5,7 +5,6 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" "github.com/neutron-org/neutron/x/dex/types" "google.golang.org/grpc/codes" @@ -47,7 +46,7 @@ func (k Keeper) PoolMetadata(goCtx context.Context, req *types.QueryGetPoolMetad ctx := sdk.UnwrapSDKContext(goCtx) poolMetadata, found := k.GetPoolMetadata(ctx, req.Id) if !found { - return nil, sdkerrors.ErrKeyNotFound + return nil, status.Error(codes.NotFound, "PoolMetadata not found for key") } return &types.QueryGetPoolMetadataResponse{PoolMetadata: poolMetadata}, nil diff --git a/x/dex/keeper/grpc_query_pool_metadata_test.go b/x/dex/keeper/grpc_query_pool_metadata_test.go index 13153e102..88f61d2da 100644 --- a/x/dex/keeper/grpc_query_pool_metadata_test.go +++ b/x/dex/keeper/grpc_query_pool_metadata_test.go @@ -4,7 +4,6 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" @@ -38,7 +37,7 @@ func TestPoolMetadataQuerySingle(t *testing.T) { { desc: "KeyNotFound", request: &types.QueryGetPoolMetadataRequest{Id: uint64(len(msgs))}, - err: sdkerrors.ErrKeyNotFound, + err: status.Error(codes.NotFound, "PoolMetadata not found for key"), }, { desc: "InvalidRequest", diff --git a/x/dex/keeper/msg_server.go b/x/dex/keeper/msg_server.go index f9b84fdc6..4857aa1c2 100644 --- a/x/dex/keeper/msg_server.go +++ b/x/dex/keeper/msg_server.go @@ -3,10 +3,10 @@ package keeper import ( "context" - "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" ) type MsgServer struct { @@ -190,7 +190,7 @@ func (k MsgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParam } authority := k.GetAuthority() if authority != req.Authority { - return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + return nil, status.Errorf(codes.PermissionDenied, "invalid authority; expected %s, got %s", authority, req.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index 02dac052a..d8ed175c6 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -3,7 +3,7 @@ package keeper import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index 7aad622ad..744c2e289 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -3,7 +3,7 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" ) // x/dex module sentinel errors @@ -160,4 +160,9 @@ var ( 1148, "Fee must must a legal fee amount:", ) + ErrInvalidAddress = sdkerrors.Register( + ModuleName, + 1149, + "Invalid Address", + ) ) diff --git a/x/dex/types/message_cancel_limit_order.go b/x/dex/types/message_cancel_limit_order.go index 7b8433ffe..538ab9b0e 100644 --- a/x/dex/types/message_cancel_limit_order.go +++ b/x/dex/types/message_cancel_limit_order.go @@ -1,8 +1,8 @@ package types import ( + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) const TypeMsgCancelLimitOrder = "cancel_limit_order" @@ -41,7 +41,7 @@ func (msg *MsgCancelLimitOrder) GetSignBytes() []byte { func (msg *MsgCancelLimitOrder) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) } return nil diff --git a/x/dex/types/message_cancel_limit_order_test.go b/x/dex/types/message_cancel_limit_order_test.go index 6e87664fb..421defb08 100644 --- a/x/dex/types/message_cancel_limit_order_test.go +++ b/x/dex/types/message_cancel_limit_order_test.go @@ -3,7 +3,6 @@ package types_test import ( "testing" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -21,7 +20,7 @@ func TestMsgCancelLimitOrder_ValidateBasic(t *testing.T) { Creator: "invalid_address", TrancheKey: "ORDER123", }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "valid msg", msg: MsgCancelLimitOrder{ diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go index 4288ca2e6..841b0328e 100644 --- a/x/dex/types/message_deposit.go +++ b/x/dex/types/message_deposit.go @@ -1,9 +1,9 @@ package types import ( + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) const TypeMsgDeposit = "deposit" @@ -59,12 +59,12 @@ func (msg *MsgDeposit) GetSignBytes() []byte { func (msg *MsgDeposit) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) } _, err = sdk.AccAddressFromBech32(msg.Receiver) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid receiver address (%s)", err) } // Verify that the lengths of TickIndexes, Fees, AmountsA, AmountsB are all equal diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go index 12ca261f3..33c8baf35 100644 --- a/x/dex/types/message_deposit_test.go +++ b/x/dex/types/message_deposit_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -26,7 +25,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid receiver", @@ -38,7 +37,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid fee indexes length", diff --git a/x/dex/types/message_multi_hop_swap.go b/x/dex/types/message_multi_hop_swap.go index b8e543f04..57375f20f 100644 --- a/x/dex/types/message_multi_hop_swap.go +++ b/x/dex/types/message_multi_hop_swap.go @@ -1,9 +1,9 @@ package types import ( + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" math_utils "github.com/neutron-org/neutron/utils/math" ) @@ -59,11 +59,11 @@ func (msg *MsgMultiHopSwap) GetSignBytes() []byte { func (msg *MsgMultiHopSwap) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) } _, err = sdk.AccAddressFromBech32(msg.Receiver) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid receiver address (%s)", err) } if len(msg.Routes) == 0 { diff --git a/x/dex/types/message_multi_hop_swap_test.go b/x/dex/types/message_multi_hop_swap_test.go index af2d5b7a5..87ee40107 100644 --- a/x/dex/types/message_multi_hop_swap_test.go +++ b/x/dex/types/message_multi_hop_swap_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -22,7 +21,7 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { Creator: "invalid_address", Receiver: sample.AccAddress(), }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid receiver address", @@ -30,7 +29,7 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { Creator: sample.AccAddress(), Receiver: "invalid_address", }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "missing route", diff --git a/x/dex/types/message_place_limit_order.go b/x/dex/types/message_place_limit_order.go index 255005925..33593ad26 100644 --- a/x/dex/types/message_place_limit_order.go +++ b/x/dex/types/message_place_limit_order.go @@ -3,9 +3,9 @@ package types import ( "time" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) const TypeMsgPlaceLimitOrder = "place_limit_order" @@ -61,12 +61,12 @@ func (msg *MsgPlaceLimitOrder) GetSignBytes() []byte { func (msg *MsgPlaceLimitOrder) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) } _, err = sdk.AccAddressFromBech32(msg.Receiver) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid receiver address (%s)", err) } if msg.AmountIn.LTE(math.ZeroInt()) { diff --git a/x/dex/types/message_place_limit_order_test.go b/x/dex/types/message_place_limit_order_test.go index 27fa00b57..2c80d90d1 100644 --- a/x/dex/types/message_place_limit_order_test.go +++ b/x/dex/types/message_place_limit_order_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -28,7 +27,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TickIndexInToOut: 0, AmountIn: math.OneInt(), }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid receiver", @@ -40,7 +39,7 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { TickIndexInToOut: 0, AmountIn: math.OneInt(), }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid zero limit order", diff --git a/x/dex/types/message_withdrawl.go b/x/dex/types/message_withdrawl.go index 82580f9ec..564b3edbf 100644 --- a/x/dex/types/message_withdrawl.go +++ b/x/dex/types/message_withdrawl.go @@ -1,9 +1,9 @@ package types import ( + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) const TypeMsgWithdrawal = "withdrawal" @@ -54,12 +54,12 @@ func (msg *MsgWithdrawal) GetSignBytes() []byte { func (msg *MsgWithdrawal) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) } _, err = sdk.AccAddressFromBech32(msg.Receiver) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid receiver address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid receiver address (%s)", err) } // Verify that the lengths of TickIndexes, Fees, SharesToRemove are all equal diff --git a/x/dex/types/message_withdrawl_filled_limit_order.go b/x/dex/types/message_withdrawl_filled_limit_order.go index 929329650..0291f2808 100644 --- a/x/dex/types/message_withdrawl_filled_limit_order.go +++ b/x/dex/types/message_withdrawl_filled_limit_order.go @@ -1,8 +1,8 @@ package types import ( + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) const TypeMsgWithdrawFilledLimitOrder = "withdrawal_withdrawn_limit_order" @@ -41,7 +41,7 @@ func (msg *MsgWithdrawFilledLimitOrder) GetSignBytes() []byte { func (msg *MsgWithdrawFilledLimitOrder) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) } return nil diff --git a/x/dex/types/message_withdrawl_filled_limit_order_test.go b/x/dex/types/message_withdrawl_filled_limit_order_test.go index e1fceeec1..9ac8b476e 100644 --- a/x/dex/types/message_withdrawl_filled_limit_order_test.go +++ b/x/dex/types/message_withdrawl_filled_limit_order_test.go @@ -3,7 +3,6 @@ package types_test import ( "testing" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -21,7 +20,7 @@ func TestMsgWithdrawFilledLimitOrder_ValidateBasic(t *testing.T) { Creator: "invalid_address", TrancheKey: "ORDER123", }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "valid msg", msg: MsgWithdrawFilledLimitOrder{ diff --git a/x/dex/types/message_withdrawl_test.go b/x/dex/types/message_withdrawl_test.go index b551cb800..b2bfce5ba 100644 --- a/x/dex/types/message_withdrawl_test.go +++ b/x/dex/types/message_withdrawl_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/neutron-org/neutron/testutil/common/sample" . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" @@ -25,7 +24,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, SharesToRemove: []math.Int{math.OneInt()}, }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid receiver", @@ -36,7 +35,7 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, SharesToRemove: []math.Int{math.OneInt()}, }, - err: sdkerrors.ErrInvalidAddress, + err: ErrInvalidAddress, }, { name: "invalid fee indexes length", diff --git a/x/dex/types/pair_id.go b/x/dex/types/pair_id.go index 4f18aadfe..af61d7634 100644 --- a/x/dex/types/pair_id.go +++ b/x/dex/types/pair_id.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" ) func NewPairID(token0, token1 string) (*PairID, error) { diff --git a/x/dex/types/trade_pair_id.go b/x/dex/types/trade_pair_id.go index 591017f3b..f04c0e11f 100644 --- a/x/dex/types/trade_pair_id.go +++ b/x/dex/types/trade_pair_id.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" ) diff --git a/x/dex/utils/abci.go b/x/dex/utils/abci.go index ec96f9534..22e281428 100644 --- a/x/dex/utils/abci.go +++ b/x/dex/utils/abci.go @@ -1,8 +1,9 @@ package utils import ( + "errors" + sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) func GetBlockGasUsed(ctx sdk.Context) (gasUsed uint64, err error) { @@ -14,7 +15,7 @@ func GetBlockGasUsed(ctx sdk.Context) (gasUsed uint64, err error) { return 0, nil default: // Otherwise, BlockGasMeter should probably be initialized - return 0, sdkerrors.Wrap(sdkerrors.ErrAppConfig, "Block Gas Meter is not initialized") + return 0, errors.New("block Gas Meter is not initialized") } } diff --git a/x/epochs/types/hooks_test.go b/x/epochs/types/hooks_test.go index b1cf86396..143b171d3 100644 --- a/x/epochs/types/hooks_test.go +++ b/x/epochs/types/hooks_test.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" "github.com/stretchr/testify/suite" "github.com/neutron-org/neutron/x/epochs/types" diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 08bce70c4..11e254560 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -7,7 +7,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index 548b592c9..a3d45b12a 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" "github.com/cosmos/gogoproto/proto" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" diff --git a/x/ibcswap/types/errors.go b/x/ibcswap/types/errors.go index 68037f2f1..819589ae8 100644 --- a/x/ibcswap/types/errors.go +++ b/x/ibcswap/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +import sdkerrors "cosmossdk.io/errors" var ( ErrInvalidSwapMetadata = sdkerrors.Register(ModuleName, 2, "invalid swap metadata") diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go index 45b360394..0694889db 100644 --- a/x/ibcswap/types/swap.go +++ b/x/ibcswap/types/swap.go @@ -3,10 +3,10 @@ package types import ( "encoding/json" + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - dextypes "github.com/neutron-org/neutron/x/dex/types" "github.com/iancoleman/orderedmap" + dextypes "github.com/neutron-org/neutron/x/dex/types" ) // PacketMetadata wraps the SwapMetadata. The root key in the incoming ICS20 transfer packet's memo needs to be set to the same @@ -42,7 +42,7 @@ func (sm SwapMetadata) Validate() error { if sm.RefundAddress != "" { _, err := sdk.AccAddressFromBech32(sm.RefundAddress) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "%s is not a valid Duality address", sm.RefundAddress) + return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Duality address", sm.RefundAddress) } } diff --git a/x/incentives/keeper/msg_server.go b/x/incentives/keeper/msg_server.go index c87730284..8905b0468 100644 --- a/x/incentives/keeper/msg_server.go +++ b/x/incentives/keeper/msg_server.go @@ -8,8 +8,8 @@ import ( "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/incentives/types" + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) var _ types.MsgServer = msgServer{} @@ -58,7 +58,7 @@ func (server msgServer) CreateGauge( msg.PricingTick, ) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } ctx.EventManager().EmitEvents(sdk.Events{ @@ -85,7 +85,7 @@ func (server msgServer) AddToGauge( err = server.keeper.AddToGaugeRewards(ctx, owner, msg.Rewards, msg.GaugeId) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } ctx.EventManager().EmitEvents(sdk.Events{ @@ -158,7 +158,7 @@ func (server msgServer) Unstake( for _, unstake := range unstakes { stake, err := server.keeper.GetStakeByID(ctx, unstake.ID) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } if msg.Owner != stake.Owner { @@ -174,7 +174,7 @@ func (server msgServer) Unstake( _, err = server.keeper.Unstake(ctx, stake, unstake.Coins) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } } @@ -188,7 +188,7 @@ func (server msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdate } authority := server.keeper.GetAuthority() if authority != req.Authority { - return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + return nil, errors.Wrapf(types.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) diff --git a/x/incentives/keeper/query_server.go b/x/incentives/keeper/query_server.go index 6f259ee65..8b13d9e72 100644 --- a/x/incentives/keeper/query_server.go +++ b/x/incentives/keeper/query_server.go @@ -7,8 +7,8 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" dextypes "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/incentives/types" @@ -88,7 +88,7 @@ func (q QueryServer) GetGauges( case types.GaugeStatus_FINISHED: prefix = types.KeyPrefixGaugeIndexFinished default: - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid status filter value") + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, "invalid status filter value") } var lowerTick, upperTick int64 @@ -191,11 +191,11 @@ func (q QueryServer) GetFutureRewardEstimate( return nil, status.Error(codes.InvalidArgument, "empty request") } if len(req.Owner) == 0 && len(req.StakeIds) == 0 { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "empty owner") + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, "empty owner") } if req.NumEpochs > 365 { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "end epoch out of ranges") + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, "end epoch out of ranges") } var ownerAddress sdk.AccAddress diff --git a/x/incentives/keeper/stake.go b/x/incentives/keeper/stake.go index 677494ffa..90ef98fb4 100644 --- a/x/incentives/keeper/stake.go +++ b/x/incentives/keeper/stake.go @@ -5,8 +5,8 @@ import ( "strconv" "time" + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/gogoproto/proto" "github.com/neutron-org/neutron/x/incentives/types" @@ -198,22 +198,22 @@ func (k Keeper) CreateStake( owner, err := sdk.AccAddressFromBech32(stake.Owner) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } err = stake.ValidateBasic() if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, stake.Coins); err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } // store stake object into the store err = k.setStake(ctx, stake) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } k.hooks.OnTokenStaked(ctx, owner, stake.ID, stake.Coins, ctx.BlockTime()) @@ -222,7 +222,7 @@ func (k Keeper) CreateStake( // add stake refs into not unlocking queue err = k.addStakeRefs(ctx, stake) if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error()) + return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) } return stake, nil diff --git a/x/incentives/types/errors.go b/x/incentives/types/errors.go index b6963a8d6..526e1280e 100644 --- a/x/incentives/types/errors.go +++ b/x/incentives/types/errors.go @@ -3,7 +3,7 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "cosmossdk.io/errors" ) // x/incentives module sentinel errors. @@ -40,4 +40,14 @@ var ( 8, "owner must be module authority", ) + ErrInvalidRequest = sdkerrors.Register( + ModuleName, + 9, + "invalid request", + ) + ErrInvalidAddress = sdkerrors.Register( + ModuleName, + 10, + "Invalid Address", + ) ) diff --git a/x/incentives/types/msgs.go b/x/incentives/types/msgs.go index 8bdba513b..6b710339a 100644 --- a/x/incentives/types/msgs.go +++ b/x/incentives/types/msgs.go @@ -5,8 +5,8 @@ import ( "time" errorsmod "cosmossdk.io/errors" + sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" dextypes "github.com/neutron-org/neutron/x/dex/types" ) @@ -50,27 +50,27 @@ func (m MsgCreateGauge) Type() string { return TypeMsgCreateGauge } // ValidateBasic checks that the create gauge message is valid. func (m MsgCreateGauge) ValidateBasic() error { if m.Owner == "" { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "owner should be set") + return sdkerrors.Wrapf(ErrInvalidRequest, "owner should be set") } // TODO: If this is not set, infer start time as "now" if m.StartTime.Equal(time.Time{}) { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "distribution start time should be set") + return sdkerrors.Wrapf(ErrInvalidRequest, "distribution start time should be set") } if m.NumEpochsPaidOver == 0 { return sdkerrors.Wrapf( - sdkerrors.ErrInvalidRequest, + ErrInvalidRequest, "distribution period should be at least 1 epoch", ) } if m.IsPerpetual && m.NumEpochsPaidOver != 1 { return sdkerrors.Wrapf( - sdkerrors.ErrInvalidRequest, + ErrInvalidRequest, "distribution period should be 1 epoch for perpetual gauge", ) } if dextypes.IsTickOutOfRange(m.PricingTick) { return sdkerrors.Wrapf( - sdkerrors.ErrInvalidRequest, + ErrInvalidRequest, "pricing tick is out of range, must be between %d and %d", int64(dextypes.MaxTickExp)*-1, dextypes.MaxTickExp, @@ -78,7 +78,7 @@ func (m MsgCreateGauge) ValidateBasic() error { } if dextypes.IsTickOutOfRange(m.DistributeTo.StartTick) { return sdkerrors.Wrapf( - sdkerrors.ErrInvalidRequest, + ErrInvalidRequest, "start tick is out of range, must be between %d and %d", int64(dextypes.MaxTickExp)*-1, dextypes.MaxTickExp, @@ -86,7 +86,7 @@ func (m MsgCreateGauge) ValidateBasic() error { } if dextypes.IsTickOutOfRange(m.DistributeTo.EndTick) { return sdkerrors.Wrapf( - sdkerrors.ErrInvalidRequest, + ErrInvalidRequest, "start tick is out of range, must be between %d and %d", int64(dextypes.MaxTickExp)*-1, dextypes.MaxTickExp, @@ -127,11 +127,11 @@ func (m MsgAddToGauge) Type() string { return TypeMsgAddToGauge } // ValidateBasic checks that the add to gauge message is valid. func (m MsgAddToGauge) ValidateBasic() error { if m.Owner == "" { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "owner should be set") + return sdkerrors.Wrapf(ErrInvalidRequest, "owner should be set") } if m.Rewards.Empty() { return sdkerrors.Wrapf( - sdkerrors.ErrInvalidRequest, + ErrInvalidRequest, "additional rewards should not be empty", ) } @@ -165,7 +165,7 @@ func (m MsgStake) Type() string { return TypeMsgStakeTokens } func (m MsgStake) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Owner) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid owner address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "Invalid owner address (%s)", err) } if !m.Coins.IsAllPositive() { @@ -206,7 +206,7 @@ func (m MsgUnstake) Type() string { return TypeMsgBeginUnstaking } func (m MsgUnstake) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(m.Owner) if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid owner address (%s)", err) + return sdkerrors.Wrapf(ErrInvalidAddress, "Invalid owner address (%s)", err) } for _, unstake := range m.Unstakes { From 5d44551e31dde7ee47d0a25f688fb9cd5d4e8595 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 16 Oct 2023 14:30:26 -0400 Subject: [PATCH 182/307] FIX: missing import --- x/incentives/client/cli/query_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/incentives/client/cli/query_test.go b/x/incentives/client/cli/query_test.go index b0102ff02..49d606075 100644 --- a/x/incentives/client/cli/query_test.go +++ b/x/incentives/client/cli/query_test.go @@ -4,6 +4,7 @@ import ( "testing" "time" + "cosmossdk.io/math" "github.com/stretchr/testify/suite" "github.com/neutron-org/neutron/testutil/apptesting" From c4dea365ae536dacbffa68cc77e7e2ab7808719b Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 16 Oct 2023 15:10:39 -0400 Subject: [PATCH 183/307] go fumpt --extra on all duality files --- x/dex/client/cli/tx_deposit.go | 2 +- x/dex/client/cli/tx_multi_hop_swap.go | 2 +- x/dex/client/cli/tx_place_limit_order.go | 2 +- x/dex/client/cli/tx_withdrawl.go | 2 +- x/dex/keeper/core.go | 4 +-- x/dex/keeper/core_helper_test.go | 4 +-- .../grpc_query_estimate_place_limit_order.go | 2 +- x/dex/keeper/grpc_query_pool_metadata.go | 2 +- x/dex/keeper/grpc_query_pool_reserves.go | 6 ++-- x/dex/keeper/liquidity_test.go | 2 +- x/dex/keeper/multihop_swap.go | 2 +- x/dex/types/pool_metadata.go | 2 +- x/epochs/types/hooks_test.go | 2 +- x/ibcswap/ibc_middleware.go | 2 +- x/ibcswap/keeper/keeper.go | 6 ++-- x/ibcswap/module.go | 4 +-- x/ibcswap/types/expected_keepers.go | 2 +- x/incentives/keeper/iterator.go | 2 +- x/incentives/types/errors.go | 4 +-- x/incentives/types/query_condition_test.go | 36 +++++++++---------- 20 files changed, 44 insertions(+), 46 deletions(-) diff --git a/x/dex/client/cli/tx_deposit.go b/x/dex/client/cli/tx_deposit.go index 8d58c44b7..55787ce79 100644 --- a/x/dex/client/cli/tx_deposit.go +++ b/x/dex/client/cli/tx_deposit.go @@ -5,11 +5,11 @@ import ( "strconv" "strings" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/client/cli/tx_multi_hop_swap.go b/x/dex/client/cli/tx_multi_hop_swap.go index 9c33cc3d4..0dab65dab 100644 --- a/x/dex/client/cli/tx_multi_hop_swap.go +++ b/x/dex/client/cli/tx_multi_hop_swap.go @@ -4,11 +4,11 @@ import ( "strconv" "strings" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" diff --git a/x/dex/client/cli/tx_place_limit_order.go b/x/dex/client/cli/tx_place_limit_order.go index e57e1a017..f174016c5 100644 --- a/x/dex/client/cli/tx_place_limit_order.go +++ b/x/dex/client/cli/tx_place_limit_order.go @@ -5,11 +5,11 @@ import ( "strings" "time" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/client/cli/tx_withdrawl.go b/x/dex/client/cli/tx_withdrawl.go index 3da7962a0..720b44394 100644 --- a/x/dex/client/cli/tx_withdrawl.go +++ b/x/dex/client/cli/tx_withdrawl.go @@ -4,11 +4,11 @@ import ( "strconv" "strings" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index 6268b908d..b2d8a47a4 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -4,9 +4,9 @@ import ( "context" "time" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" @@ -308,7 +308,7 @@ func (k Keeper) PlaceLimitOrderCore( maxAmountOut *math.Int, callerAddr sdk.AccAddress, receiverAddr sdk.AccAddress, -) (trancheKey string, totalInCoin sdk.Coin, swapInCoin sdk.Coin, swapOutCoin sdk.Coin, err error) { +) (trancheKey string, totalInCoin, swapInCoin, swapOutCoin sdk.Coin, err error) { ctx := sdk.UnwrapSDKContext(goCtx) var pairID *types.PairID diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go index d04e3d996..663f8519f 100644 --- a/x/dex/keeper/core_helper_test.go +++ b/x/dex/keeper/core_helper_test.go @@ -6,8 +6,6 @@ import ( "cosmossdk.io/math" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" dualityapp "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/x/dex/types" @@ -53,7 +51,7 @@ func (s *CoreHelpersTestSuite) SetupTest() { s.dan = sdk.AccAddress([]byte("dan")) } -func (s *CoreHelpersTestSuite) setLPAtFee1Pool(tickIndex int64, amountA int, amountB int) { +func (s *CoreHelpersTestSuite) setLPAtFee1Pool(tickIndex int64, amountA, amountB int) { pairID := &types.PairID{Token0: "TokenA", Token1: "TokenB"} pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, pairID, tickIndex, 1) if err != nil { diff --git a/x/dex/keeper/grpc_query_estimate_place_limit_order.go b/x/dex/keeper/grpc_query_estimate_place_limit_order.go index 69285cf75..d616708ea 100644 --- a/x/dex/keeper/grpc_query_estimate_place_limit_order.go +++ b/x/dex/keeper/grpc_query_estimate_place_limit_order.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/dex/types" ) diff --git a/x/dex/keeper/grpc_query_pool_metadata.go b/x/dex/keeper/grpc_query_pool_metadata.go index a4ebc6feb..5debb51c2 100644 --- a/x/dex/keeper/grpc_query_pool_metadata.go +++ b/x/dex/keeper/grpc_query_pool_metadata.go @@ -22,7 +22,7 @@ func (k Keeper) PoolMetadataAll(goCtx context.Context, req *types.QueryAllPoolMe store := ctx.KVStore(k.storeKey) poolMetadataStore := prefix.NewStore(store, types.KeyPrefix(types.PoolMetadataKeyPrefix)) - pageRes, err := query.Paginate(poolMetadataStore, req.Pagination, func(key []byte, value []byte) error { + pageRes, err := query.Paginate(poolMetadataStore, req.Pagination, func(key, value []byte) error { var poolMetadata types.PoolMetadata if err := k.cdc.Unmarshal(value, &poolMetadata); err != nil { return err diff --git a/x/dex/keeper/grpc_query_pool_reserves.go b/x/dex/keeper/grpc_query_pool_reserves.go index b44af3958..927018c01 100644 --- a/x/dex/keeper/grpc_query_pool_reserves.go +++ b/x/dex/keeper/grpc_query_pool_reserves.go @@ -74,9 +74,9 @@ func (k Keeper) PoolReserves( tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) poolReservesID := &types.PoolReservesKey{ - tradePairID, - req.TickIndex, - req.Fee, + TradePairID: tradePairID, + TickIndexTakerToMaker: req.TickIndex, + Fee: req.Fee, } val, found := k.GetPoolReserves(ctx, poolReservesID) if !found { diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 1a8f606e8..d99b39163 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -660,7 +660,7 @@ func (s *LiquidityTestSuite) assertSwapOutput( True(amtOut.Equal(sdkmath.NewInt(expectedOut)), "Expected amountOut %d != %s", expectedOut, amtOut) } -func (s *LiquidityTestSuite) assertDexBalances(expectedABalance int64, expectedBBalance int64) { +func (s *LiquidityTestSuite) assertDexBalances(expectedABalance, expectedBBalance int64) { // NOTE: We can't just check the actual DEX bank balances since we are testing swap // before any transfers take place. Instead we have to sum up the total amount of coins // at each tick diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index d8ed175c6..09b8d24be 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -1,9 +1,9 @@ package keeper import ( + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "cosmossdk.io/errors" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) diff --git a/x/dex/types/pool_metadata.go b/x/dex/types/pool_metadata.go index eff09212b..1f2e70606 100644 --- a/x/dex/types/pool_metadata.go +++ b/x/dex/types/pool_metadata.go @@ -1,5 +1,5 @@ package types -func NewPoolMetadata(pairID *PairID, tick int64, fee uint64, poolID uint64) PoolMetadata { +func NewPoolMetadata(pairID *PairID, tick int64, fee, poolID uint64) PoolMetadata { return PoolMetadata{PairID: pairID, Tick: tick, Fee: fee, ID: poolID} } diff --git a/x/epochs/types/hooks_test.go b/x/epochs/types/hooks_test.go index 143b171d3..8ea59a49e 100644 --- a/x/epochs/types/hooks_test.go +++ b/x/epochs/types/hooks_test.go @@ -4,9 +4,9 @@ import ( "strconv" "testing" + "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" - "cosmossdk.io/errors" "github.com/stretchr/testify/suite" "github.com/neutron-org/neutron/x/epochs/types" diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 11e254560..99d1fc143 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -5,9 +5,9 @@ import ( "encoding/json" "strings" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "cosmossdk.io/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index a3d45b12a..e5427c52b 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/cometbft/cometbft/libs/log" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "cosmossdk.io/errors" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" "github.com/cosmos/gogoproto/proto" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" @@ -170,7 +170,7 @@ func (k Keeper) RefundPacketToken( } // SendCoins wraps the BankKeepers SendCoins function so it can be invoked from the middleware. -func (k Keeper) SendCoins(ctx sdk.Context, fromAddr string, toAddr string, amt sdk.Coins) error { +func (k Keeper) SendCoins(ctx sdk.Context, fromAddr, toAddr string, amt sdk.Coins) error { from, err := sdk.AccAddressFromBech32(fromAddr) if err != nil { return err @@ -184,6 +184,6 @@ func (k Keeper) SendCoins(ctx sdk.Context, fromAddr string, toAddr string, amt s return k.bankKeeper.SendCoins(ctx, from, to, amt) } -func (k Keeper) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool) { +func (k Keeper) GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool) { return k.ics4Wrapper.GetAppVersion(ctx, portID, channelID) } diff --git a/x/ibcswap/module.go b/x/ibcswap/module.go index ad5e25176..3d2d40198 100644 --- a/x/ibcswap/module.go +++ b/x/ibcswap/module.go @@ -10,10 +10,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/neutron-org/neutron/x/ibcswap/keeper" - "github.com/neutron-org/neutron/x/ibcswap/types" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/neutron-org/neutron/x/ibcswap/keeper" + "github.com/neutron-org/neutron/x/ibcswap/types" "github.com/spf13/cobra" ) diff --git a/x/ibcswap/types/expected_keepers.go b/x/ibcswap/types/expected_keepers.go index 0ea6192ea..4380703bf 100644 --- a/x/ibcswap/types/expected_keepers.go +++ b/x/ibcswap/types/expected_keepers.go @@ -6,7 +6,7 @@ import ( // BankKeeper defines the expected interface that the swap middleware needs in order to facilitate refunds. type BankKeeper interface { - SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error diff --git a/x/incentives/keeper/iterator.go b/x/incentives/keeper/iterator.go index f536fcce0..4fdaa3cc6 100644 --- a/x/incentives/keeper/iterator.go +++ b/x/incentives/keeper/iterator.go @@ -16,7 +16,7 @@ func (k Keeper) iterator(ctx sdk.Context, prefix []byte) sdk.Iterator { } // iterator returns an iterator over all gauges in the {prefix} space of state. -func (k Keeper) iteratorStartEnd(ctx sdk.Context, start []byte, end []byte) sdk.Iterator { +func (k Keeper) iteratorStartEnd(ctx sdk.Context, start, end []byte) sdk.Iterator { store := ctx.KVStore(k.storeKey) return store.Iterator(start, end) } diff --git a/x/incentives/types/errors.go b/x/incentives/types/errors.go index 526e1280e..f54f5c663 100644 --- a/x/incentives/types/errors.go +++ b/x/incentives/types/errors.go @@ -13,8 +13,8 @@ var ( 1, "msg sender is not the owner of specified stake", ) - ErrStakeNotFound = sdkerrors.Register(ModuleName, 2, "stake not found") - ErrGaugeNotActive = sdkerrors.Register( + ErrStakeNotFound = sdkerrors.Register(ModuleName, 2, "stake not found") + ErrGaugeNotActive = sdkerrors.Register( ModuleName, 3, "cannot distribute from gauges when it is not active", diff --git a/x/incentives/types/query_condition_test.go b/x/incentives/types/query_condition_test.go index c21e77208..13a0fe619 100644 --- a/x/incentives/types/query_condition_test.go +++ b/x/incentives/types/query_condition_test.go @@ -16,40 +16,40 @@ func TestQueryCondition(t *testing.T) { } tests := []struct { - name string - queryCond QueryCondition + name string + queryCond QueryCondition poolMetadata dextypes.PoolMetadata - testResult bool + testResult bool }{ { - name: "Matching denom and tick range", - queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, + name: "Matching denom and tick range", + queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, poolMetadata: dextypes.NewPoolMetadata(pairID, 15, 5, 0), - testResult: true, + testResult: true, }, { - name: "Non-matching denom", - queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, + name: "Non-matching denom", + queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, poolMetadata: dextypes.NewPoolMetadata(&dextypes.PairID{Token0: "coin1", Token1: "coin3"}, 15, 5, 0), - testResult: false, + testResult: false, }, { - name: "Non-matching tick range", - queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, + name: "Non-matching tick range", + queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, poolMetadata: dextypes.NewPoolMetadata(pairID, 15, 6, 0), - testResult: false, + testResult: false, }, { - name: "Non-matching tick fee range lower", - queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, + name: "Non-matching tick fee range lower", + queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, poolMetadata: dextypes.NewPoolMetadata(pairID, 10, 5, 0), - testResult: false, + testResult: false, }, { - name: "Non-matching tick fee range upper", - queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, + name: "Non-matching tick fee range upper", + queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, poolMetadata: dextypes.NewPoolMetadata(pairID, 20, 5, 0), - testResult: false, + testResult: false, }, } From d3d5368d83db594629d3130aab1e3b8c3a2adfdd Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 16 Oct 2023 15:10:22 -0400 Subject: [PATCH 184/307] misc linting fixes --- tests/ibc/gmp_swap_forward_test.go | 4 +- tests/ibc/ibc_setup_test.go | 9 +-- tests/ibc/swap_forward_test.go | 25 +++--- testutil/apptesting/events.go | 2 +- testutil/apptesting/test_suite.go | 2 +- testutil/dex/keeper/dex.go | 6 +- testutil/integration_test_setup.go | 6 +- utils/bank.go | 59 +++++++------- utils/dcli/cli_tester.go | 10 +-- utils/dcli/index_cmd.go | 2 +- utils/dcli/parsers.go | 14 ++-- utils/dcli/query_cmd_wrap.go | 4 +- utils/generic_helper.go | 4 +- utils/math/prec_dec.go | 4 +- utils/slice_helper.go | 3 +- x/dex/client/cli/tx_place_limit_order.go | 2 +- x/dex/keeper/core.go | 3 +- x/dex/keeper/core_helper_test.go | 10 +-- x/dex/keeper/grpc_query_params_test.go | 3 +- x/dex/keeper/grpc_query_user_deposits_test.go | 2 +- .../inactive_limit_order_tranche_test.go | 11 +-- .../keeper/internal/testutils/test_helpers.go | 8 +- x/dex/keeper/limit_order_tranche_test.go | 4 +- x/dex/keeper/limit_order_tranche_user_test.go | 4 +- x/dex/keeper/liquidity.go | 8 +- x/dex/keeper/liquidity_test.go | 22 +---- x/dex/keeper/msg_server_test.go | 29 ++++--- x/dex/keeper/multihop_swap.go | 11 +-- x/dex/keeper/params_test.go | 3 +- x/dex/keeper/pool.go | 7 +- x/dex/keeper/pool_metadata_test.go | 4 +- x/dex/keeper/pool_reserves_test.go | 4 +- x/dex/module_simulation.go | 3 +- x/dex/types/codec.go | 1 - x/dex/types/errors.go | 1 - x/dex/types/keys.go | 4 +- x/dex/types/limit_order_tranche_key.go | 31 ------- x/dex/types/message_update_params.go | 6 +- x/dex/types/pair_id.go | 18 +++-- x/dex/types/params.go | 9 +-- x/dex/types/pool_reserves_key.go | 31 ------- x/dex/types/price.go | 4 +- x/dex/types/trade_pair_id.go | 4 +- x/epochs/keeper/abci.go | 4 +- x/epochs/keeper/abci_test.go | 8 +- x/epochs/keeper/epoch_test.go | 4 +- x/epochs/keeper/genesis_test.go | 4 +- x/epochs/keeper/hooks.go | 8 +- x/epochs/module.go | 6 +- x/epochs/types/hooks.go | 15 ++-- x/epochs/types/hooks_test.go | 38 ++++----- x/ibcswap/ibc_middleware.go | 2 +- x/ibcswap/module.go | 38 ++++----- x/incentives/client/cli/query.go | 1 + x/incentives/client/cli/query_test.go | 81 +------------------ x/incentives/keeper/distribute.go | 4 +- x/incentives/keeper/distributor_test.go | 23 +++--- x/incentives/keeper/gas_test.go | 14 ++-- x/incentives/keeper/gauge.go | 16 ++-- x/incentives/keeper/gauge_test.go | 17 ++-- x/incentives/keeper/genesis.go | 4 +- x/incentives/keeper/hooks.go | 12 +-- x/incentives/keeper/msg_server.go | 5 +- x/incentives/keeper/query_server.go | 2 +- x/incentives/keeper/stake_test.go | 6 +- x/incentives/keeper/utils_test.go | 5 +- x/incentives/module.go | 36 +-------- x/incentives/module_simulation.go | 33 ++++++++ x/incentives/types/hooks.go | 8 +- x/incentives/types/msgs.go | 12 ++- x/incentives/types/params.go | 5 +- x/incentives/types/tx.pb.go | 2 +- 72 files changed, 321 insertions(+), 493 deletions(-) create mode 100644 x/incentives/module_simulation.go diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index fdf4a6075..95e579f97 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -108,10 +108,10 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { s.dualityChainBPath.EndpointA.ChannelID, nativeDenom, ) - transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + transferDenomChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() // Check that the funds are now present in the acc on chainB - s.assertChainBBalance(chainBAddr, transferDenomDuality_B, expectedAmountOut) + s.assertChainBBalance(chainBAddr, transferDenomChainB, expectedAmountOut) s.Assert().NoError(err) } diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index 415aa36e1..ebe6802ed 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -249,10 +249,6 @@ func (s *IBCTestSuite) providerCtx() sdk.Context { return s.providerChain.GetContext() } -func (s *IBCTestSuite) dualityCtx() sdk.Context { - return s.dualityChain.GetContext() -} - // Helper Methods ///////////////////////////////////////////////////////////// func (s *IBCTestSuite) IBCTransfer( @@ -285,8 +281,8 @@ func (s *IBCTestSuite) IBCTransfer( packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents()) s.Require().NoError(err) + //nolint:errcheck // this will return an error for multi-hop routes; that's expected path.RelayPacket(packet) - s.Assert().NoError(err) } func (s *IBCTestSuite) IBCTransferProviderToDuality( @@ -353,6 +349,7 @@ func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, ex s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) } +//nolint:unparam // keep this flexible even if we aren't currently using all the params func (s *IBCTestSuite) dualityDeposit( token0 string, token1 string, @@ -372,7 +369,7 @@ func (s *IBCTestSuite) dualityDeposit( []math.Int{depositAmount1}, []int64{tickIndex}, []uint64{fee}, - []*dextypes.DepositOptions{{false}}, + []*dextypes.DepositOptions{{DisableAutoswap: false}}, ) // execute deposit msg diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 386e3ad64..6dd383a2b 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -118,10 +118,10 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { s.dualityChainBPath.EndpointA.ChannelID, nativeDenom, ) - transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + transferDenomDualityChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() // Check that the funds are now present in the acc on chainB - s.assertChainBBalance(chainBAddr, transferDenomDuality_B, expectedAmountOut) + s.assertChainBBalance(chainBAddr, transferDenomDualityChainB, expectedAmountOut) s.Assert().NoError(err) } @@ -233,18 +233,18 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { err = s.RelayAllPacketsAToB(s.chainBChainCPath) s.Require().NoError(err) - transferDenomPathDuality_B := transfertypes.GetPrefixedDenom( + transferDenomPathDualityChainB := transfertypes.GetPrefixedDenom( transfertypes.PortID, s.dualityChainBPath.EndpointB.ChannelID, nativeDenom, ) - transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPathDuality_B).IBCDenom() - transferDenomPathB_C := transfertypes.GetPrefixedDenom( + transferDenomDualityChainB := transfertypes.ParseDenomTrace(transferDenomPathDualityChainB).IBCDenom() + transferDenomPathChainC := transfertypes.GetPrefixedDenom( transfertypes.PortID, s.chainBChainCPath.EndpointB.ChannelID, - transferDenomPathDuality_B, + transferDenomPathDualityChainB, ) - transferDenomB_C := transfertypes.ParseDenomTrace(transferDenomPathB_C).IBCDenom() + transferDenomChainC := transfertypes.ParseDenomTrace(transferDenomPathChainC).IBCDenom() // Check that the funds are moved out of the acc on chainA s.assertProviderBalance( @@ -253,10 +253,10 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { newProviderBalNative.Sub(ibcTransferAmount), ) // Check that chain B balance is unchanged - s.assertChainBBalance(chainBAddr, transferDenomDuality_B, math.ZeroInt()) + s.assertChainBBalance(chainBAddr, transferDenomDualityChainB, math.ZeroInt()) // Check that funds made it to chainC - s.assertChainCBalance(chainCAddr, transferDenomB_C, expectedOut) + s.assertChainCBalance(chainCAddr, transferDenomChainC, expectedOut) } // TestSwapAndForward_UnwindIBCDenomSuccess asserts that the swap and forward middleware stack works as intended in the @@ -345,7 +345,8 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { ) // Relay the packets - s.RelayAllPacketsAToB(s.dualityTransferPath) + err = s.RelayAllPacketsAToB(s.dualityTransferPath) + s.Assert().NoError(err) s.coordinator.CommitBlock(s.dualityChain) // Check that the amountIn is deduced from the duality account @@ -475,7 +476,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { s.dualityChainBPath.EndpointA.ChannelID, nativeDenom, ) - transferDenomDuality_B := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + transferDenomDualityChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - s.assertChainBBalance(chainBAddr, transferDenomDuality_B, math.ZeroInt()) + s.assertChainBBalance(chainBAddr, transferDenomDualityChainB, math.ZeroInt()) } diff --git a/testutil/apptesting/events.go b/testutil/apptesting/events.go index 354f87a9e..55e2fa7be 100644 --- a/testutil/apptesting/events.go +++ b/testutil/apptesting/events.go @@ -34,7 +34,7 @@ func (s *KeeperTestHelper) ExtractAttributes(event sdk.Event) map[string]string return attrs } for _, a := range event.Attributes { - attrs[string(a.Key)] = string(a.Value) + attrs[a.Key] = a.Value } return attrs diff --git a/testutil/apptesting/test_suite.go b/testutil/apptesting/test_suite.go index d3b3e4f84..5ddb5dfb8 100644 --- a/testutil/apptesting/test_suite.go +++ b/testutil/apptesting/test_suite.go @@ -34,7 +34,7 @@ type KeeperTestHelper struct { // Setup sets up basic environment for suite (App, Ctx, and test accounts) func (s *KeeperTestHelper) Setup() { - s.App = testutil.Setup(s.T(), false) + s.App = testutil.Setup(s.T()) s.Ctx = s.App.BaseApp.NewContext( false, tmtypes.Header{Height: 1, ChainID: "neutron-1", Time: time.Now().UTC()}, diff --git a/testutil/dex/keeper/dex.go b/testutil/dex/keeper/dex.go index 530139c2f..6f0586b92 100644 --- a/testutil/dex/keeper/dex.go +++ b/testutil/dex/keeper/dex.go @@ -53,7 +53,7 @@ func AssertEventEmitted(t *testing.T, ctx sdk.Context, eventValue, message strin allEvents := ctx.EventManager().Events() for _, event := range allEvents { for _, attr := range event.Attributes { - if string(attr.Value) == eventValue { + if attr.Value == eventValue { return } } @@ -66,7 +66,7 @@ func AssertNEventsEmitted(t *testing.T, ctx sdk.Context, eventValue string, nEve allEvents := ctx.EventManager().Events() for _, event := range allEvents { for _, attr := range event.Attributes { - if string(attr.Value) == eventValue { + if attr.Value == eventValue { emissions++ } } @@ -78,7 +78,7 @@ func AssertEventNotEmitted(t *testing.T, ctx sdk.Context, eventValue, message st allEvents := ctx.EventManager().Events() if len(allEvents) != 0 { for _, attr := range allEvents[len(allEvents)-1].Attributes { - if string(attr.Value) == eventValue { + if attr.Value == eventValue { require.Fail(t, message) } } diff --git a/testutil/integration_test_setup.go b/testutil/integration_test_setup.go index 5d8284ac2..083533a5e 100644 --- a/testutil/integration_test_setup.go +++ b/testutil/integration_test_setup.go @@ -29,7 +29,7 @@ import ( "github.com/stretchr/testify/require" ) -func setup(withGenesis bool, invCheckPeriod uint) (*app.App, app.GenesisState) { +func setup(withGenesis bool) (*app.App, app.GenesisState) { encoding := app.MakeEncodingConfig() db := dbm.NewMemDB() testApp := app.New( @@ -52,7 +52,7 @@ func setup(withGenesis bool, invCheckPeriod uint) (*app.App, app.GenesisState) { return testApp, app.GenesisState{} } -func Setup(t *testing.T, isCheckTx bool) *app.App { +func Setup(t *testing.T) *app.App { t.Helper() privVal := mock.NewPV() @@ -93,7 +93,7 @@ func SetupWithGenesisValSet( ) *app.App { t.Helper() - app, genesisState := setup(true, 5) + app, genesisState := setup(true) genesisState, err := GenesisStateWithValSet( app.AppCodec(), genesisState, diff --git a/utils/bank.go b/utils/bank.go index a9740a8fa..b89845735 100644 --- a/utils/bank.go +++ b/utils/bank.go @@ -69,42 +69,39 @@ func FilteredPaginateAccountBalances( return &query.PageResponse{ NextKey: nextKey, }, nil - } else { - // default pagination (with offset) - - end := offset + limit - - var ( - numHits uint64 - nextKey []byte - ) - - bankKeeper.IterateAccountBalances(ctx, address, func(coin sdk.Coin) bool { - accumulate := numHits >= offset && numHits < end - hit := onResult(coin, accumulate) + } + // else default pagination (with offset) + end := offset + limit + var ( + numHits uint64 + nextKey []byte + ) + + bankKeeper.IterateAccountBalances(ctx, address, func(coin sdk.Coin) bool { + accumulate := numHits >= offset && numHits < end + hit := onResult(coin, accumulate) + + if hit { + numHits++ + } - if hit { - numHits++ + if numHits == end+1 { + if nextKey == nil { + nextKey = []byte(coin.Denom) } - if numHits == end+1 { - if nextKey == nil { - nextKey = []byte(coin.Denom) - } - - if !countTotal { - return true - } + if !countTotal { + return true } - - return false - }) - - res := &query.PageResponse{NextKey: nextKey} - if countTotal { - res.Total = numHits } - return res, nil + return false + }) + + res := &query.PageResponse{NextKey: nextKey} + if countTotal { + res.Total = numHits } + + return res, nil } diff --git a/utils/dcli/cli_tester.go b/utils/dcli/cli_tester.go index 7c16aac5d..3f12da339 100644 --- a/utils/dcli/cli_tester.go +++ b/utils/dcli/cli_tester.go @@ -29,7 +29,7 @@ type QueryCliTestCase[Q proto.Message] struct { func RunTxTestCases[M sdk.Msg](t *testing.T, desc *TxCliDesc, testcases map[string]TxCliTestCase[M]) { for name, tc := range testcases { t.Run(name, func(t *testing.T) { - RunTxTestCase(t, desc, &tc) + RunTxTestCase(t, desc, tc) }) } } @@ -37,12 +37,12 @@ func RunTxTestCases[M sdk.Msg](t *testing.T, desc *TxCliDesc, testcases map[stri func RunQueryTestCases[Q proto.Message](t *testing.T, desc *QueryDescriptor, testcases map[string]QueryCliTestCase[Q]) { for name, tc := range testcases { t.Run(name, func(t *testing.T) { - RunQueryTestCase(t, desc, &tc) + RunQueryTestCase(t, desc, tc) }) } } -func RunTxTestCase[M sdk.Msg](t *testing.T, desc *TxCliDesc, tc *TxCliTestCase[M]) { +func RunTxTestCase[M sdk.Msg](t *testing.T, desc *TxCliDesc, tc TxCliTestCase[M]) { cmd := BuildTxCli[M](desc) err := resetCommandFlagValues(cmd) require.NoError(t, err, "error in resetCommandFlagValues") @@ -65,7 +65,7 @@ func RunTxTestCase[M sdk.Msg](t *testing.T, desc *TxCliDesc, tc *TxCliTestCase[M require.Equal(t, tc.ExpectedMsg, msg) } -func RunQueryTestCase[Q proto.Message](t *testing.T, desc *QueryDescriptor, tc *QueryCliTestCase[Q]) { +func RunQueryTestCase[Q proto.Message](t *testing.T, desc *QueryDescriptor, tc QueryCliTestCase[Q]) { cmd := BuildQueryCli[Q, int](desc, nil) err := resetCommandFlagValues(cmd) require.NoError(t, err, "error in resetCommandFlagValues") @@ -97,7 +97,7 @@ func newClientContextWithFrom(t *testing.T, fs *pflag.FlagSet) client.Context { // taken from https://github.com/golang/debug/pull/8, // due to no cobra command for resetting flag value func resetCommandFlagValues(cmd *cobra.Command) error { - var retErr error = nil + var retErr error cmd.Flags().VisitAll(func(f *pflag.Flag) { if f.Changed { err := f.Value.Set(f.DefValue) diff --git a/utils/dcli/index_cmd.go b/utils/dcli/index_cmd.go index b332189f1..6ebd395d3 100644 --- a/utils/dcli/index_cmd.go +++ b/utils/dcli/index_cmd.go @@ -17,7 +17,7 @@ func IndexCmd(moduleName string) *cobra.Command { } } -func indexRunCmd(cmd *cobra.Command, args []string) error { +func indexRunCmd(cmd *cobra.Command, _ []string) error { usageTemplate := `Usage:{{if .HasAvailableSubCommands}} {{.CommandPath}} [command]{{end}} diff --git a/utils/dcli/parsers.go b/utils/dcli/parsers.go index 65af3d222..840d9b62d 100644 --- a/utils/dcli/parsers.go +++ b/utils/dcli/parsers.go @@ -249,15 +249,17 @@ func ParseFieldFromArg(fVal reflect.Value, fType reflect.StructField, arg string typeStr := fType.Type.String() var v any var err error - if typeStr == "types.Coin" { + + switch { + case typeStr == "types.Coin": v, err = ParseCoin(arg, fType.Name) - } else if typeStr == "types.Int" { + case typeStr == "types.Int": v, err = ParseSdkInt(arg, fType.Name) - } else if typeStr == "time.Time" { + case typeStr == "time.Time": v, err = ParseUnixTime(arg, fType.Name) - } else if typeStr == "math.LegacyDec" { + case typeStr == "math.LegacyDec": v, err = ParseSdkDec(arg, fType.Name) - } else { + default: return fmt.Errorf("struct field type not recognized. Got type %v", fType) } @@ -317,7 +319,7 @@ func ParseUnixTime(arg, fieldName string) (time.Time, error) { return startTime, nil } -func ParseDenom(arg, fieldName string) (string, error) { +func ParseDenom(arg, _ string) (string, error) { return strings.TrimSpace(arg), nil } diff --git a/utils/dcli/query_cmd_wrap.go b/utils/dcli/query_cmd_wrap.go index 2dbfb8b9a..332de88eb 100644 --- a/utils/dcli/query_cmd_wrap.go +++ b/utils/dcli/query_cmd_wrap.go @@ -72,7 +72,7 @@ func prepareDescriptor[reqP proto.Message](desc *QueryDescriptor) { desc.numArgs = ParseNumFields[reqP]() - len(desc.CustomFlagOverrides) if desc.HasPagination { - desc.numArgs = desc.numArgs - 1 + desc.numArgs-- } } @@ -135,7 +135,7 @@ func callQueryClientFn(ctx context.Context, fnName string, req proto.Message, q qVal := reflect.ValueOf(q) method := qVal.MethodByName(fnName) if (method == reflect.Value{}) { - return nil, fmt.Errorf("Method %s does not exist on the querier."+ + return nil, fmt.Errorf("method %s does not exist on the querier."+ " You likely need to override QueryFnName in your Query descriptor", fnName) } args := []reflect.Value{ diff --git a/utils/generic_helper.go b/utils/generic_helper.go index e05ead8ae..93e2995ca 100644 --- a/utils/generic_helper.go +++ b/utils/generic_helper.go @@ -11,7 +11,7 @@ func MakeNew[T any]() T { elem := typ.Elem() //nolint:forcetypeassert return reflect.New(elem).Interface().(T) // must use reflect - } else { - return *new(T) // v is not ptr, alloc with new } + + return *new(T) // v is not ptr, alloc with new } diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go index e09555bff..07996bf70 100644 --- a/utils/math/prec_dec.go +++ b/utils/math/prec_dec.go @@ -1,4 +1,4 @@ -package math_utils +package math import ( "encoding/json" @@ -525,7 +525,7 @@ func (d PrecDec) IsInteger() bool { } // format decimal state -func (d PrecDec) Format(s fmt.State, verb rune) { +func (d PrecDec) Format(s fmt.State) { _, err := s.Write([]byte(d.String())) if err != nil { panic(err) diff --git a/utils/slice_helper.go b/utils/slice_helper.go index 933542e62..ffeb69bd7 100644 --- a/utils/slice_helper.go +++ b/utils/slice_helper.go @@ -43,9 +43,8 @@ func ContainsDuplicate[T any](arr []T) bool { for i := 0; i < len(arr); i++ { if visited[arr[i]] { return true - } else { - visited[arr[i]] = true } + visited[arr[i]] = true } return false } diff --git a/x/dex/client/cli/tx_place_limit_order.go b/x/dex/client/cli/tx_place_limit_order.go index f174016c5..13f83d0c5 100644 --- a/x/dex/client/cli/tx_place_limit_order.go +++ b/x/dex/client/cli/tx_place_limit_order.go @@ -64,7 +64,7 @@ func CmdPlaceLimitOrder() *cobra.Command { if err != nil { return err } - var maxAmountOutIntP *math.Int = nil + var maxAmountOutIntP *math.Int if maxAmountOutArg != "" { maxAmountOutInt, ok := math.NewIntFromString(maxAmountOutArg) if !ok { diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index b2d8a47a4..ebe804de0 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -325,7 +325,6 @@ func (k Keeper) PlaceLimitOrderCore( takerTradePairID := pairID.MustTradePairIDFromMaker(tokenOut) var limitPrice math_utils.PrecDec limitPrice, err = types.CalcPrice(tickIndexInToOut) - err = err if err != nil { return } @@ -437,7 +436,7 @@ func (k Keeper) PlaceLimitOrderCore( trancheKey, )) - return + return trancheKey, totalInCoin, swapInCoin, swapOutCoin, nil } // Handles MsgCancelLimitOrder, removing a specified number of shares from a limit order diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go index 663f8519f..9660dd74c 100644 --- a/x/dex/keeper/core_helper_test.go +++ b/x/dex/keeper/core_helper_test.go @@ -28,12 +28,9 @@ func TestCoreHelpersTestSuite(t *testing.T) { } func (s *CoreHelpersTestSuite) SetupTest() { - app := testutil.Setup(s.T(), false) + app := testutil.Setup(s.T()) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) - app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams()) - app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) - accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) app.AccountKeeper.SetAccount(ctx, accAlice) accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) @@ -65,7 +62,8 @@ func (s *CoreHelpersTestSuite) setLPAtFee1Pool(tickIndex int64, amountA, amountB totalShares := pool.CalcSharesMinted(amountAInt, amountBInt, existingShares) - s.app.DexKeeper.MintShares(s.ctx, s.alice, totalShares) + err = s.app.DexKeeper.MintShares(s.ctx, s.alice, totalShares) + s.Require().NoError(err) lowerTick.ReservesMakerDenom = amountAInt upperTick.ReservesMakerDenom = amountBInt @@ -100,7 +98,6 @@ func (s *CoreHelpersTestSuite) TestGetCurrTick1To0WithLiq() { func (s *CoreHelpersTestSuite) TestGetCurrTick1To0WithMinLiq() { // GIVEN tick with token0 @ index -1 s.setLPAtFee1Pool(-1, 10, 0) - s.setLPAtFee1Pool(1, 0, 0) // THEN GetCurrTick1To0 finds the tick at -2 @@ -138,7 +135,6 @@ func (s *CoreHelpersTestSuite) TestGetCurrTick0To1WithLiq() { func (s *CoreHelpersTestSuite) TestGetCurrTick0To1WithMinLiq() { // WHEN tick with token1 @ index 1 - s.setLPAtFee1Pool(-1, 0, 0) s.setLPAtFee1Pool(1, 0, 10) // THEN GetCurrTick0To1 finds the tick at 2 diff --git a/x/dex/keeper/grpc_query_params_test.go b/x/dex/keeper/grpc_query_params_test.go index daa26bd2e..5b44a7a10 100644 --- a/x/dex/keeper/grpc_query_params_test.go +++ b/x/dex/keeper/grpc_query_params_test.go @@ -13,7 +13,8 @@ func TestParamsQuery(t *testing.T) { keeper, ctx := testkeeper.DexKeeper(t) wctx := sdk.WrapSDKContext(ctx) params := types.DefaultParams() - keeper.SetParams(ctx, params) + err := keeper.SetParams(ctx, params) + require.NoError(t, err) response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) require.NoError(t, err) diff --git a/x/dex/keeper/grpc_query_user_deposits_test.go b/x/dex/keeper/grpc_query_user_deposits_test.go index 5719b94e2..19f2e4a7a 100644 --- a/x/dex/keeper/grpc_query_user_deposits_test.go +++ b/x/dex/keeper/grpc_query_user_deposits_test.go @@ -28,7 +28,7 @@ func simulateDeposit(ctx sdk.Context, app *dualityapp.App, addr sdk.AccAddress, } func TestUserDepositsAllQueryPaginated(t *testing.T) { - app := testutil.Setup(t, false) + app := testutil.Setup(t) keeper := app.DexKeeper ctx := app.BaseApp.NewContext(false, tmproto.Header{}) wctx := sdk.WrapSDKContext(ctx) diff --git a/x/dex/keeper/inactive_limit_order_tranche_test.go b/x/dex/keeper/inactive_limit_order_tranche_test.go index 4dc47b2cc..68e0d34ed 100644 --- a/x/dex/keeper/inactive_limit_order_tranche_test.go +++ b/x/dex/keeper/inactive_limit_order_tranche_test.go @@ -43,8 +43,8 @@ func TestInactiveLimitOrderTrancheGet(t *testing.T) { rst, found := keeper.GetInactiveLimitOrderTranche(ctx, item.Key) require.True(t, found) require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), + nullify.Fill(item), + nullify.Fill(rst), ) } } @@ -62,12 +62,9 @@ func TestInactiveLimitOrderTrancheRemove(t *testing.T) { func TestInactiveLimitOrderTrancheGetAll(t *testing.T) { keeper, ctx := keepertest.DexKeeper(t) items := createNInactiveLimitOrderTranche(keeper, ctx, 10) - pointerItems := make([]*types.LimitOrderTranche, len(items)) - for i := range items { - pointerItems[i] = items[i] - } + require.ElementsMatch(t, - pointerItems, + items, keeper.GetAllInactiveLimitOrderTranche(ctx), ) } diff --git a/x/dex/keeper/internal/testutils/test_helpers.go b/x/dex/keeper/internal/testutils/test_helpers.go index 4b87f7f95..700489211 100644 --- a/x/dex/keeper/internal/testutils/test_helpers.go +++ b/x/dex/keeper/internal/testutils/test_helpers.go @@ -15,10 +15,12 @@ func NewBCoin(amt math.Int) sdk.Coin { return sdk.NewCoin("TokenB", amt) } -func FundAccount(bankKeeper bankkeeper.Keeper, ctx sdk.Context, addr sdk.AccAddress, amounts sdk.Coins) error { +func FundAccount(bankKeeper bankkeeper.Keeper, ctx sdk.Context, addr sdk.AccAddress, amounts sdk.Coins) { if err := bankKeeper.MintCoins(ctx, dexmoduletypes.ModuleName, amounts); err != nil { - return err + panic(err) } - return bankKeeper.SendCoinsFromModuleToAccount(ctx, dexmoduletypes.ModuleName, addr, amounts) + if err := bankKeeper.SendCoinsFromModuleToAccount(ctx, dexmoduletypes.ModuleName, addr, amounts); err != nil { + panic(err) + } } diff --git a/x/dex/keeper/limit_order_tranche_test.go b/x/dex/keeper/limit_order_tranche_test.go index 36e9374af..70e22ab44 100644 --- a/x/dex/keeper/limit_order_tranche_test.go +++ b/x/dex/keeper/limit_order_tranche_test.go @@ -43,8 +43,8 @@ func TestGetLimitOrderTranche(t *testing.T) { rst := keeper.GetLimitOrderTranche(ctx, item.Key) require.NotNil(t, rst) require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), + nullify.Fill(item), + nullify.Fill(rst), ) } } diff --git a/x/dex/keeper/limit_order_tranche_user_test.go b/x/dex/keeper/limit_order_tranche_user_test.go index 65cf048f4..b9d8dd956 100644 --- a/x/dex/keeper/limit_order_tranche_user_test.go +++ b/x/dex/keeper/limit_order_tranche_user_test.go @@ -58,8 +58,8 @@ func TestLimitOrderTrancheUserGet(t *testing.T) { rst, found := keeper.GetLimitOrderTrancheUser(ctx, item.Address, item.TrancheKey) require.True(t, found) require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), + nullify.Fill(item), + nullify.Fill(rst), ) } } diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index f6a8d4521..a24ec9bfb 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -17,8 +17,8 @@ func (k Keeper) Swap( useMaxOut := maxAmountMakerDenom != nil var remainingMakerDenom *math.Int if useMaxOut { - copy := *maxAmountMakerDenom - remainingMakerDenom = © + temp := *maxAmountMakerDenom + remainingMakerDenom = &temp } remainingTakerDenom := maxAmountTakerDenom @@ -54,8 +54,8 @@ func (k Keeper) Swap( } if useMaxOut { - copy := remainingMakerDenom.Sub(outAmount) - remainingMakerDenom = © + temp := remainingMakerDenom.Sub(outAmount) + remainingMakerDenom = &temp // if maxAmountOut has been used up then exit if remainingMakerDenom.LTE(math.ZeroInt()) { diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index d99b39163..1fc93edee 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -24,7 +24,7 @@ type LiquidityTestSuite struct { // don't need to test both LO and LP. At the level of swap testing these should be indistinguishable. func (s *LiquidityTestSuite) SetupTest() { - s.app = testutil.Setup(s.T(), false) + s.app = testutil.Setup(s.T()) ctx := s.app.BaseApp.NewContext(false, tmproto.Header{}) ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) s.ctx = ctx @@ -726,23 +726,3 @@ func (s *LiquidityTestSuite) assertCurr1To0(curr1To0Expected int64) { s.Assert().Equal(curr1To0Expected, curr1to0Actual) } } - -func (s *LiquidityTestSuite) assertFillAndPlaceTrancheKeys( - selling string, - tickIndex int64, - expectedFill, expectedPlace string, -) { - tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) - placeTranche := s.app.DexKeeper.GetPlaceTranche(s.ctx, tradePairID, tickIndex) - fillTranche, foundFill := s.app.DexKeeper.GetFillTranche(s.ctx, tradePairID, tickIndex) - placeKey, fillKey := "", "" - if placeTranche != nil { - placeKey = placeTranche.Key.TrancheKey - } - - if foundFill { - fillKey = fillTranche.Key.TrancheKey - } - s.Assert().Equal(expectedFill, fillKey) - s.Assert().Equal(expectedPlace, placeKey) -} diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index fb8b1073c..13a46cf85 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -1,3 +1,4 @@ +//nolint:unused,unparam // Lots of useful test helper fns that we don't want to delete, also extra params we need to keep package keeper_test import ( @@ -10,8 +11,6 @@ import ( abci "github.com/cometbft/cometbft/abci/types" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" dualityapp "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" math_utils "github.com/neutron-org/neutron/utils/math" @@ -51,13 +50,10 @@ func TestMsgServerTestSuite(t *testing.T) { } func (s *MsgServerTestSuite) SetupTest() { - app := testutil.Setup(s.T(), false) + app := testutil.Setup(s.T()) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) - app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams()) - app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) - accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) app.AccountKeeper.SetAccount(ctx, accAlice) accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) @@ -83,20 +79,21 @@ func (s *MsgServerTestSuite) fundAccountBalances(account sdk.AccAddress, aBalanc aBalanceInt := sdkmath.NewInt(aBalance) bBalanceInt := sdkmath.NewInt(bBalance) balances := sdk.NewCoins(NewACoin(aBalanceInt), NewBCoin(bBalanceInt)) - err := FundAccount(s.app.BankKeeper, s.ctx, account, balances) - s.Assert().NoError(err) + FundAccount(s.app.BankKeeper, s.ctx, account, balances) s.assertAccountBalances(account, aBalance, bBalance) } func (s *MsgServerTestSuite) fundAccountBalancesWithDenom( addr sdk.AccAddress, amounts sdk.Coins, -) error { +) { if err := s.app.BankKeeper.MintCoins(s.ctx, types.ModuleName, amounts); err != nil { - return err + panic(err) } - return s.app.BankKeeper.SendCoinsFromModuleToAccount(s.ctx, types.ModuleName, addr, amounts) + if err := s.app.BankKeeper.SendCoinsFromModuleToAccount(s.ctx, types.ModuleName, addr, amounts); err != nil { + panic(err) + } } func (s *MsgServerTestSuite) fundAliceBalances(a, b int64) { @@ -1420,9 +1417,9 @@ func (s *MsgServerTestSuite) getLimitFilledLiquidityAtTickAtIndex( // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ - tradePairID, - tickIndex, - trancheKey, + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndex, + TrancheKey: trancheKey, }) s.Assert().True(found, "Failed to get limit order filled reserves for index %s", trancheKey) @@ -1437,7 +1434,9 @@ func (s *MsgServerTestSuite) getLimitReservesAtTickAtKey( // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ - tradePairID, tickIndex, trancheKey, + TradePairID: tradePairID, + TickIndexTakerToMaker: tickIndex, + TrancheKey: trancheKey, }) s.Assert().True(found, "Failed to get limit order reserves for index %s", trancheKey) diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index 09b8d24be..656a76732 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -16,7 +16,6 @@ type MultihopStep struct { func (k Keeper) HopsToRouteData( ctx sdk.Context, hops []string, - exitLimitPrice math_utils.PrecDec, ) ([]MultihopStep, error) { nPairs := len(hops) - 1 routeArr := make([]MultihopStep, nPairs) @@ -67,9 +66,6 @@ func (k Keeper) MultihopStep( bctx *types.BranchableCache, step MultihopStep, inCoin sdk.Coin, - exitLimitPrice math_utils.PrecDec, - currentPrice math_utils.PrecDec, - remainingSteps []MultihopStep, stepCache map[multihopCacheKey]StepResult, ) (sdk.Coin, *types.BranchableCache, error) { cacheKey := newCacheKey(step.tradePairID.TakerDenom, step.tradePairID.MakerDenom, inCoin.Amount) @@ -100,7 +96,7 @@ func (k Keeper) RunMultihopRoute( exitLimitPrice math_utils.PrecDec, stepCache map[multihopCacheKey]StepResult, ) (sdk.Coin, func(), error) { - routeData, err := k.HopsToRouteData(ctx, route.Hops, exitLimitPrice) + routeData, err := k.HopsToRouteData(ctx, route.Hops) if err != nil { return sdk.Coin{}, nil, err } @@ -110,7 +106,7 @@ func (k Keeper) RunMultihopRoute( inCoin := initialInCoin bCacheCtx := types.NewBranchableCache(ctx) - for i, step := range routeData { + for _, step := range routeData { // If we can't hit the best possible price we can greedily abort priceUpperbound := currentPrice.Mul(step.RemainingBestPrice) if exitLimitPrice.GT(priceUpperbound) { @@ -121,9 +117,6 @@ func (k Keeper) RunMultihopRoute( bCacheCtx, step, inCoin, - exitLimitPrice, - currentPrice, - routeData[i:], stepCache, ) inCoin = currentOutCoin diff --git a/x/dex/keeper/params_test.go b/x/dex/keeper/params_test.go index 21529526d..9dadfb7d8 100644 --- a/x/dex/keeper/params_test.go +++ b/x/dex/keeper/params_test.go @@ -12,7 +12,8 @@ func TestGetParams(t *testing.T) { k, ctx := testkeeper.DexKeeper(t) params := types.DefaultParams() - k.SetParams(ctx, params) + err := k.SetParams(ctx, params) + require.NoError(t, err) require.EqualValues(t, params, k.GetParams(ctx)) } diff --git a/x/dex/keeper/pool.go b/x/dex/keeper/pool.go index 6bc34a26e..b0172824a 100644 --- a/x/dex/keeper/pool.go +++ b/x/dex/keeper/pool.go @@ -78,11 +78,12 @@ func (k Keeper) GetPool( upperTick, upperTickFound := k.GetPoolReserves(ctx, id0To1) lowerTick, lowerTickFound := k.GetPoolReserves(ctx, id0To1.Counterpart()) - if !lowerTickFound && upperTickFound { + switch { + case !lowerTickFound && upperTickFound: lowerTick = types.NewPoolReservesFromCounterpart(upperTick) - } else if lowerTickFound && !upperTickFound { + case lowerTickFound && !upperTickFound: upperTick = types.NewPoolReservesFromCounterpart(lowerTick) - } else if !lowerTickFound && !upperTickFound { + case !lowerTickFound && !upperTickFound: // Pool has already been initialized before so we can safely assume that pool creation doesn't throw an error return types.MustNewPool(pairID, centerTickIndexNormalized, fee, poolID), true } diff --git a/x/dex/keeper/pool_metadata_test.go b/x/dex/keeper/pool_metadata_test.go index bc41fcb40..7bb9088e9 100644 --- a/x/dex/keeper/pool_metadata_test.go +++ b/x/dex/keeper/pool_metadata_test.go @@ -28,8 +28,8 @@ func TestPoolMetadataGet(t *testing.T) { got, found := keeper.GetPoolMetadata(ctx, item.ID) require.True(t, found) require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&got), + nullify.Fill(item), + nullify.Fill(got), ) } } diff --git a/x/dex/keeper/pool_reserves_test.go b/x/dex/keeper/pool_reserves_test.go index 13e361128..b3dff4c09 100644 --- a/x/dex/keeper/pool_reserves_test.go +++ b/x/dex/keeper/pool_reserves_test.go @@ -27,8 +27,8 @@ func TestGetPoolReserves(t *testing.T) { rst, found := keeper.GetPoolReserves(ctx, item.Key) require.True(t, found) require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), + nullify.Fill(item), + nullify.Fill(rst), ) } } diff --git a/x/dex/module_simulation.go b/x/dex/module_simulation.go index f83b5ac42..c2d1311d7 100644 --- a/x/dex/module_simulation.go +++ b/x/dex/module_simulation.go @@ -21,6 +21,7 @@ var ( _ = baseapp.Paramspace ) +//nolint:gosec // false positive const ( opWeightMsgDeposit = "op_weight_msg_deposit" // TODO: Determine the simulation weight value @@ -63,7 +64,7 @@ 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 } diff --git a/x/dex/types/codec.go b/x/dex/types/codec.go index c7401e6cd..9ed387fb7 100644 --- a/x/dex/types/codec.go +++ b/x/dex/types/codec.go @@ -1,4 +1,3 @@ -//nolint:all package types import ( diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index 744c2e289..d555b76fa 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -8,7 +8,6 @@ import ( // x/dex module sentinel errors -//nolint:all var ( ErrInvalidTradingPair = sdkerrors.Register( ModuleName, diff --git a/x/dex/types/keys.go b/x/dex/types/keys.go index dbefbf132..65c00f1d3 100644 --- a/x/dex/types/keys.go +++ b/x/dex/types/keys.go @@ -79,9 +79,9 @@ func BytesToTickIndex(bz []byte) (int64, error) { if isNegative { return int64(-tickTakerToMaker), nil - } else { - return int64(tickTakerToMaker), nil } + // else + return int64(tickTakerToMaker), nil } // LimitOrderTrancheUserKey returns the store key to retrieve a LimitOrderTrancheUser from the index fields diff --git a/x/dex/types/limit_order_tranche_key.go b/x/dex/types/limit_order_tranche_key.go index d05342989..76c2aca95 100644 --- a/x/dex/types/limit_order_tranche_key.go +++ b/x/dex/types/limit_order_tranche_key.go @@ -1,9 +1,6 @@ package types import ( - "errors" - "strings" - math_utils "github.com/neutron-org/neutron/utils/math" ) @@ -34,34 +31,6 @@ func (p LimitOrderTrancheKey) KeyMarshal() []byte { return key } -func (p LimitOrderTrancheKey) KeyUnmarshal(bz []byte) error { - split := strings.Split(string(bz), "/") - - if len(split) != 5 { - return errors.New("invalid input length") - } - - pairKey, err := NewPairIDFromCanonicalString(split[0]) - if err != nil { - return err - } - p.TradePairID = pairKey.MustTradePairIDFromMaker(split[1]) - - tickIndex, err := BytesToTickIndex([]byte(split[2])) - if err != nil { - return err - } - p.TickIndexTakerToMaker = tickIndex - - if split[3] != LiquidityTypeLimitOrder { - return errors.New("unexpected liquidity type") - } - - p.TrancheKey = split[4] - - return nil -} - func (p LimitOrderTrancheKey) PriceTakerToMaker() (priceTakerToMaker math_utils.PrecDec, err error) { return CalcPrice(p.TickIndexTakerToMaker) } diff --git a/x/dex/types/message_update_params.go b/x/dex/types/message_update_params.go index 750b98a16..599c7d911 100644 --- a/x/dex/types/message_update_params.go +++ b/x/dex/types/message_update_params.go @@ -34,8 +34,6 @@ func (msg *MsgUpdateParams) ValidateBasic() error { if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { return errorsmod.Wrap(err, "authority is invalid") } - if err := msg.Params.Validate(); err != nil { - return err - } - return nil + + return msg.Params.Validate() } diff --git a/x/dex/types/pair_id.go b/x/dex/types/pair_id.go index af61d7634..dd2b9b9e6 100644 --- a/x/dex/types/pair_id.go +++ b/x/dex/types/pair_id.go @@ -65,27 +65,29 @@ func NewPairIDFromCanonicalString(pairIDStr string) (*PairID, error) { func SortTokens(tokenA, tokenB string) (string, string) { if tokenA < tokenB { return tokenA, tokenB - } else { - return tokenB, tokenA } + // else + return tokenB, tokenA } func (p *PairID) MustTradePairIDFromMaker(maker string) *TradePairID { - if p.Token0 == maker { + switch { + case p.Token0 == maker: return MustNewTradePairID(p.Token1, p.Token0) - } else if p.Token1 == maker { + case p.Token1 == maker: return MustNewTradePairID(p.Token0, p.Token1) - } else { + default: panic(fmt.Errorf("pair.TradePairIDFromMaker(maker string) called where maker does not equal either pair.Token0 or pair.Token1")) } } func (p *PairID) MustTradePairIDFromTaker(taker string) *TradePairID { - if p.Token0 == taker { + switch { + case p.Token0 == taker: return MustNewTradePairID(p.Token0, p.Token1) - } else if p.Token1 == taker { + case p.Token1 == taker: return MustNewTradePairID(p.Token1, p.Token0) - } else { + default: panic(fmt.Errorf("pair.TradePairIDFromMaker(maker string) called where maker does not equal either pair.Token0 or pair.Token1")) } } diff --git a/x/dex/types/params.go b/x/dex/types/params.go index fbd7d08d8..8bb7fdc0b 100644 --- a/x/dex/types/params.go +++ b/x/dex/types/params.go @@ -10,8 +10,8 @@ import ( var _ paramtypes.ParamSet = (*Params)(nil) var ( - KeyFeeTiers = []byte("FeeTiers") - DefaultFeeTiers []uint64 = []uint64{0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 150, 200} + KeyFeeTiers = []byte("FeeTiers") + DefaultFeeTiers = []uint64{0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 150, 200} ) // ParamKeyTable the param key table for launch module @@ -44,10 +44,7 @@ func (p Params) String() string { // Validate validates the set of params func (p Params) Validate() error { - if err := validateFeeTiers(p.FeeTiers); err != nil { - return err - } - return nil + return validateFeeTiers(p.FeeTiers) } func validateFeeTiers(v interface{}) error { diff --git a/x/dex/types/pool_reserves_key.go b/x/dex/types/pool_reserves_key.go index 0560f9fa1..766a5ca42 100644 --- a/x/dex/types/pool_reserves_key.go +++ b/x/dex/types/pool_reserves_key.go @@ -1,9 +1,6 @@ package types import ( - "errors" - "strings" - sdk "github.com/cosmos/cosmos-sdk/types" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/utils" @@ -37,34 +34,6 @@ func (p PoolReservesKey) KeyMarshal() []byte { return key } -func (p PoolReservesKey) KeyUnmarshal(bz []byte) error { - split := strings.Split(string(bz), "/") - - if len(split) != 5 { - return errors.New("invalid input length") - } - - pairKey, err := NewPairIDFromCanonicalString(split[0]) - if err != nil { - return err - } - p.TradePairID = pairKey.MustTradePairIDFromMaker(split[1]) - - tickIndex, err := BytesToTickIndex([]byte(split[2])) - if err != nil { - return err - } - p.TickIndexTakerToMaker = tickIndex - - if split[3] != LiquidityTypePoolReserves { - return errors.New("unexpected liquidity type") - } - - p.Fee = sdk.BigEndianToUint64([]byte(split[4])) - - return nil -} - func (p PoolReservesKey) Counterpart() *PoolReservesKey { feeInt64 := utils.MustSafeUint64ToInt64(p.Fee) return &PoolReservesKey{ diff --git a/x/dex/types/price.go b/x/dex/types/price.go index cd799dd41..82625f700 100644 --- a/x/dex/types/price.go +++ b/x/dex/types/price.go @@ -19,9 +19,9 @@ func CalcPrice(relativeTickIndex int64) (math_utils.PrecDec, error) { } if relativeTickIndex < 0 { return utils.BasePrice().Power(uint64(-1 * relativeTickIndex)), nil - } else { - return math_utils.OnePrecDec().Quo(utils.BasePrice().Power(uint64(relativeTickIndex))), nil } + // else + return math_utils.OnePrecDec().Quo(utils.BasePrice().Power(uint64(relativeTickIndex))), nil } func MustCalcPrice(relativeTickIndex int64) math_utils.PrecDec { diff --git a/x/dex/types/trade_pair_id.go b/x/dex/types/trade_pair_id.go index f04c0e11f..4e82ef59a 100644 --- a/x/dex/types/trade_pair_id.go +++ b/x/dex/types/trade_pair_id.go @@ -81,9 +81,9 @@ func (p TradePairID) TickIndexTakerToMaker(tickIndexNormalized int64) int64 { pairID := p.MustPairID() if pairID.Token1 == p.MakerDenom { return tickIndexNormalized - } else { - return -1 * tickIndexNormalized } + // else + return -1 * tickIndexNormalized } func (p TradePairID) TickIndexNormalized(tickIndexTakerToMaker int64) int64 { diff --git a/x/epochs/keeper/abci.go b/x/epochs/keeper/abci.go index c8eedc570..ccf3fcf87 100644 --- a/x/epochs/keeper/abci.go +++ b/x/epochs/keeper/abci.go @@ -53,7 +53,7 @@ func (k Keeper) BeginBlocker(ctx sdk.Context) { sdk.NewAttribute(types.AttributeEpochNumber, fmt.Sprintf("%d", epochInfo.CurrentEpoch)), ), ) - k.AfterEpochEnd(ctx, epochInfo.Identifier, epochInfo.CurrentEpoch) + k.AfterEpochEnd(ctx, epochInfo.Identifier) epochInfo.CurrentEpoch++ epochInfo.CurrentEpochStartTime = epochInfo.CurrentEpochStartTime.Add(epochInfo.Duration) logger.Info("Starting epoch", "Identifier", epochInfo.Identifier, "CurEpoch", epochInfo.CurrentEpoch) @@ -74,7 +74,7 @@ func (k Keeper) BeginBlocker(ctx sdk.Context) { ), ) k.setEpochInfo(ctx, epochInfo) - k.BeforeEpochStart(ctx, epochInfo.Identifier, epochInfo.CurrentEpoch) + k.BeforeEpochStart(ctx, epochInfo.Identifier) return false }) diff --git a/x/epochs/keeper/abci_test.go b/x/epochs/keeper/abci_test.go index 2afb5b739..c8989e5e2 100644 --- a/x/epochs/keeper/abci_test.go +++ b/x/epochs/keeper/abci_test.go @@ -17,7 +17,8 @@ import ( // This test is responsible for testing how epochs increment based off // of their initial conditions, and subsequent block height / times. -func (suite KeeperTestSuite) TestEpochInfoBeginBlockChanges() { + +func (suite *KeeperTestSuite) TestEpochInfoBeginBlockChanges() { block1Time := time.Unix(1656907200, 0).UTC() const defaultIdentifier = "hourly" const defaultDuration = time.Hour @@ -198,7 +199,8 @@ func (suite KeeperTestSuite) TestEpochInfoBeginBlockChanges() { defaultIdentifier, defaultDuration, ) - suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, initialEpoch) + err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, initialEpoch) + suite.Require().NoError(err) suite.App.EpochsKeeper.BeginBlocker(suite.Ctx) // get sorted heights @@ -239,7 +241,7 @@ func initializeBlankEpochInfoFields( } func TestEpochStartingOneMonthAfterInitGenesis(t *testing.T) { - app := testutil.Setup(t, false) + app := testutil.Setup(t) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) // On init genesis, default epochs information is set diff --git a/x/epochs/keeper/epoch_test.go b/x/epochs/keeper/epoch_test.go index 536ea9392..8a7630a0b 100644 --- a/x/epochs/keeper/epoch_test.go +++ b/x/epochs/keeper/epoch_test.go @@ -79,7 +79,9 @@ func (suite *KeeperTestSuite) TestEpochLifeCycle() { suite.SetupTest() epochInfo := types.NewGenesisEpochInfo("monthly", time.Hour*24*30) - suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) + err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) + suite.Require().NoError(err) + epochInfoSaved := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, "monthly") // setup expected epoch info diff --git a/x/epochs/keeper/genesis_test.go b/x/epochs/keeper/genesis_test.go index 8c0fa9973..2d685b0fd 100644 --- a/x/epochs/keeper/genesis_test.go +++ b/x/epochs/keeper/genesis_test.go @@ -12,7 +12,7 @@ import ( ) func TestEpochsExportGenesis(t *testing.T) { - app := testutil.Setup(t, false) + app := testutil.Setup(t) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) chainStartTime := ctx.BlockTime() @@ -31,7 +31,7 @@ func TestEpochsExportGenesis(t *testing.T) { } func TestEpochsInitGenesis(t *testing.T) { - app := testutil.Setup(t, false) + app := testutil.Setup(t) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) // On init genesis, default epochs information is set diff --git a/x/epochs/keeper/hooks.go b/x/epochs/keeper/hooks.go index f1d36ff17..5828d2ef6 100644 --- a/x/epochs/keeper/hooks.go +++ b/x/epochs/keeper/hooks.go @@ -6,17 +6,17 @@ import ( // AfterEpochEnd gets called at the end of the epoch, // end of epoch is the timestamp of first block produced after epoch duration. -func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string, epochNumber int64) { +func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string) { // Error is not handled as AfterEpochEnd Hooks use utils.ApplyFuncIfNoError() if k.hooks != nil { - _ = k.hooks.AfterEpochEnd(ctx, identifier, epochNumber) + _ = k.hooks.AfterEpochEnd(ctx, identifier) } } // BeforeEpochStart new epoch is next block of epoch end block -func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string, epochNumber int64) { +func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string) { // Error is not handled as BeforeEpochStart Hooks use utils.ApplyFuncIfNoError() if k.hooks != nil { - _ = k.hooks.BeforeEpochStart(ctx, identifier, epochNumber) + _ = k.hooks.BeforeEpochStart(ctx, identifier) } } diff --git a/x/epochs/module.go b/x/epochs/module.go index c6a4f8b4f..9bf259b38 100644 --- a/x/epochs/module.go +++ b/x/epochs/module.go @@ -84,11 +84,7 @@ func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) {} // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - types.RegisterQueryHandlerClient( - context.Background(), - mux, - types.NewQueryClient(clientCtx), - ) //nolint:errcheck + types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) //nolint:errcheck } // GetTxCmd returns the capability module's root tx command. diff --git a/x/epochs/types/hooks.go b/x/epochs/types/hooks.go index 77b76bd11..d3cab5e61 100644 --- a/x/epochs/types/hooks.go +++ b/x/epochs/types/hooks.go @@ -10,9 +10,9 @@ import ( type EpochHooks interface { // the first block whose timestamp is after the duration is counted as the end of the epoch - AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error + AfterEpochEnd(ctx sdk.Context, epochIdentifier string) error // new epoch is next block of epoch end block - BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error + BeforeEpochStart(ctx sdk.Context, epochIdentifier string) error } var _ EpochHooks = MultiEpochHooks{} @@ -28,10 +28,9 @@ func NewMultiEpochHooks(hooks ...EpochHooks) MultiEpochHooks { func (h MultiEpochHooks) AfterEpochEnd( ctx sdk.Context, epochIdentifier string, - epochNumber int64, ) error { for i := range h { - panicCatchingEpochHook(ctx, h[i].AfterEpochEnd, epochIdentifier, epochNumber) + panicCatchingEpochHook(ctx, h[i].AfterEpochEnd, epochIdentifier) } return nil @@ -41,10 +40,9 @@ func (h MultiEpochHooks) AfterEpochEnd( func (h MultiEpochHooks) BeforeEpochStart( ctx sdk.Context, epochIdentifier string, - epochNumber int64, ) error { for i := range h { - panicCatchingEpochHook(ctx, h[i].BeforeEpochStart, epochIdentifier, epochNumber) + panicCatchingEpochHook(ctx, h[i].BeforeEpochStart, epochIdentifier) } return nil @@ -52,12 +50,11 @@ func (h MultiEpochHooks) BeforeEpochStart( func panicCatchingEpochHook( ctx sdk.Context, - hookFn func(ctx sdk.Context, epochIdentifier string, epochNumber int64) error, + hookFn func(ctx sdk.Context, epochIdentifier string) error, epochIdentifier string, - epochNumber int64, ) { wrappedHookFn := func(ctx sdk.Context) error { - return hookFn(ctx, epochIdentifier, epochNumber) + return hookFn(ctx, epochIdentifier) } // TODO: Thread info for which hook this is, may be dependent on larger hook system refactoring err := utils.ApplyFuncIfNoError(ctx, wrappedHookFn) diff --git a/x/epochs/types/hooks_test.go b/x/epochs/types/hooks_test.go index 8ea59a49e..84475d652 100644 --- a/x/epochs/types/hooks_test.go +++ b/x/epochs/types/hooks_test.go @@ -1,7 +1,6 @@ package types_test import ( - "strconv" "testing" "cosmossdk.io/errors" @@ -28,19 +27,17 @@ func (s *KeeperTestSuite) SetupTest() { ) } -func dummyAfterEpochEndEvent(epochIdentifier string, epochNumber int64) sdk.Event { +func dummyAfterEpochEndEvent(epochIdentifier string) sdk.Event { return sdk.NewEvent( "afterEpochEnd", sdk.NewAttribute("epochIdentifier", epochIdentifier), - sdk.NewAttribute("epochNumber", strconv.FormatInt(epochNumber, 10)), ) } -func dummyBeforeEpochStartEvent(epochIdentifier string, epochNumber int64) sdk.Event { +func dummyBeforeEpochStartEvent(epochIdentifier string) sdk.Event { return sdk.NewEvent( "beforeEpochStart", sdk.NewAttribute("epochIdentifier", epochIdentifier), - sdk.NewAttribute("epochNumber", strconv.FormatInt(epochNumber, 10)), ) } @@ -58,7 +55,6 @@ type dummyEpochHook struct { func (hook *dummyEpochHook) AfterEpochEnd( ctx sdk.Context, epochIdentifier string, - epochNumber int64, ) error { if hook.shouldPanic { panic("dummyEpochHook is panicking") @@ -67,7 +63,7 @@ func (hook *dummyEpochHook) AfterEpochEnd( return errDummy } hook.successCounter++ - ctx.EventManager().EmitEvent(dummyAfterEpochEndEvent(epochIdentifier, epochNumber)) + ctx.EventManager().EmitEvent(dummyAfterEpochEndEvent(epochIdentifier)) return nil } @@ -75,7 +71,6 @@ func (hook *dummyEpochHook) AfterEpochEnd( func (hook *dummyEpochHook) BeforeEpochStart( ctx sdk.Context, epochIdentifier string, - epochNumber int64, ) error { if hook.shouldPanic { panic("dummyEpochHook is panicking") @@ -84,7 +79,7 @@ func (hook *dummyEpochHook) BeforeEpochStart( return errDummy } hook.successCounter++ - ctx.EventManager().EmitEvent(dummyBeforeEpochStartEvent(epochIdentifier, epochNumber)) + ctx.EventManager().EmitEvent(dummyBeforeEpochStartEvent(epochIdentifier)) return nil } @@ -100,7 +95,7 @@ func (hook *dummyEpochHook) Clone() *dummyEpochHook { var _ types.EpochHooks = &dummyEpochHook{} -func (suite *KeeperTestSuite) TestHooksPanicRecovery() { +func (s *KeeperTestSuite) TestHooksPanicRecovery() { // panicHook := dummyEpochHook{shouldPanic: true} noPanicHook := dummyEpochHook{shouldPanic: false} // errorHook := dummyEpochHook{shouldError: true} @@ -120,7 +115,7 @@ func (suite *KeeperTestSuite) TestHooksPanicRecovery() { for tcIndex, tc := range tests { for epochActionSelector := 0; epochActionSelector < 2; epochActionSelector++ { - suite.SetupTest() + s.SetupTest() hookRefs := []types.EpochHooks{} for _, hook := range tc.hooks { @@ -129,37 +124,38 @@ func (suite *KeeperTestSuite) TestHooksPanicRecovery() { hooks := types.NewMultiEpochHooks(hookRefs...) - events := func(epochID string, epochNumber int64, dummyEvent func(id string, number int64) sdk.Event) sdk.Events { + events := func(epochID string, dummyEvent func(id string) sdk.Event) sdk.Events { evts := make(sdk.Events, tc.lenEvents) for i := 0; i < tc.lenEvents; i++ { - evts[i] = dummyEvent(epochID, epochNumber) + evts[i] = dummyEvent(epochID) } return evts } - suite.NotPanics(func() { + s.NotPanics(func() { if epochActionSelector == 0 { - hooks.BeforeEpochStart(suite.Ctx, "id", 0) - suite.Require().Equal( + err := hooks.BeforeEpochStart(s.Ctx, "id") + s.Require().NoError(err) + s.Require().Equal( events( "id", - 0, dummyBeforeEpochStartEvent, ), - suite.Ctx.EventManager().Events(), + s.Ctx.EventManager().Events(), "test case index %d, before epoch event check", tcIndex, ) } else if epochActionSelector == 1 { - hooks.AfterEpochEnd(suite.Ctx, "id", 0) - suite.Require().Equal(events("id", 0, dummyAfterEpochEndEvent), suite.Ctx.EventManager().Events(), + err := hooks.AfterEpochEnd(s.Ctx, "id") + s.Require().NoError(err) + s.Require().Equal(events("id", dummyAfterEpochEndEvent), s.Ctx.EventManager().Events(), "test case index %d, after epoch event check", tcIndex) } }) for i := 0; i < len(hooks); i++ { epochHook := hookRefs[i].(*dummyEpochHook) - suite.Require(). + s.Require(). Equal(tc.expectedCounterValues[i], epochHook.successCounter, "test case index %d", tcIndex) } } diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 99d1fc143..4abad72ce 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -226,7 +226,7 @@ func (im IBCMiddleware) SendPacket( return im.keeper.SendPacket( ctx, chanCap, - sourceChannel, + sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, diff --git a/x/ibcswap/module.go b/x/ibcswap/module.go index 3d2d40198..8a20873b0 100644 --- a/x/ibcswap/module.go +++ b/x/ibcswap/module.go @@ -32,30 +32,30 @@ func (AppModuleBasic) Name() string { } // RegisterLegacyAminoCodec implements AppModuleBasic interface. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} // RegisterInterfaces registers module concrete types into protobuf Any. -func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {} +func (AppModuleBasic) RegisterInterfaces(_ codectypes.InterfaceRegistry) {} // DefaultGenesis returns default genesis state as raw bytes for the swap module. -func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { +func (AppModuleBasic) DefaultGenesis(_ codec.JSONCodec) json.RawMessage { return nil } // ValidateGenesis performs genesis state validation for the swap module. func (AppModuleBasic) ValidateGenesis( - cdc codec.JSONCodec, - config client.TxEncodingConfig, - bz json.RawMessage, + _ codec.JSONCodec, + _ client.TxEncodingConfig, + _ json.RawMessage, ) error { return nil } // RegisterRESTRoutes implements AppModuleBasic interface. -func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) {} +func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) {} // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the swap module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {} +func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux) {} // GetTxCmd implements AppModuleBasic interface. func (AppModuleBasic) GetTxCmd() *cobra.Command { @@ -80,7 +80,7 @@ func NewAppModule(keeper keeper.Keeper) *AppModule { } // RegisterInvariants implements the AppModule interface. -func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {} +func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} // QuerierRoute implements the AppModule interface. func (AppModule) QuerierRoute() string { @@ -88,20 +88,20 @@ func (AppModule) QuerierRoute() string { } // RegisterServices registers module services. -func (am AppModule) RegisterServices(cfg module.Configurator) {} +func (am AppModule) RegisterServices(_ module.Configurator) {} // InitGenesis performs genesis initialization for the ibc-router module. It returns // no validator updates. func (am AppModule) InitGenesis( - ctx sdk.Context, - cdc codec.JSONCodec, - data json.RawMessage, + _ sdk.Context, + _ codec.JSONCodec, + _ json.RawMessage, ) []abci.ValidatorUpdate { return []abci.ValidatorUpdate{} } // ExportGenesis returns the exported genesis state as raw bytes for the swap module. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { +func (am AppModule) ExportGenesis(_ sdk.Context, _ codec.JSONCodec) json.RawMessage { return nil } @@ -109,23 +109,23 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw func (AppModule) ConsensusVersion() uint64 { return 1 } // BeginBlock implements the AppModule interface. -func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {} +func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} // EndBlock implements the AppModule interface. -func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate { +func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { return []abci.ValidatorUpdate{} } // GenerateGenesisState implements the AppModuleSimulation interface. -func (AppModule) GenerateGenesisState(simState *module.SimulationState) {} +func (AppModule) GenerateGenesisState(_ *module.SimulationState) {} // ProposalContents implements the AppModuleSimulation interface. -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil } // RegisterStoreDecoder implements the AppModuleSimulation interface. -func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {} +func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} // WeightedOperations implements the AppModuleSimulation interface. func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { diff --git a/x/incentives/client/cli/query.go b/x/incentives/client/cli/query.go index b2d7c2fe4..a922baffa 100644 --- a/x/incentives/client/cli/query.go +++ b/x/incentives/client/cli/query.go @@ -43,6 +43,7 @@ func GetCmdGetGaugeByID() (*dcli.QueryDescriptor, *types.GetGaugeByIDRequest) { }, &types.GetGaugeByIDRequest{} } +//nolint:unparam // we can't change return values since we need to match interface func parseGaugeStatus(arg string, _ *pflag.FlagSet) (any, dcli.FieldReadLocation, error) { gaugeStatusInt, ok := types.GaugeStatus_value[arg] if !ok { diff --git a/x/incentives/client/cli/query_test.go b/x/incentives/client/cli/query_test.go index 49d606075..2a60451d3 100644 --- a/x/incentives/client/cli/query_test.go +++ b/x/incentives/client/cli/query_test.go @@ -2,7 +2,6 @@ package cli_test import ( "testing" - "time" "cosmossdk.io/math" "github.com/stretchr/testify/suite" @@ -24,14 +23,13 @@ type QueryTestSuite struct { func (s *QueryTestSuite) SetupStake( addr sdk.AccAddress, coins sdk.Coins, - duration time.Duration, ) (stakeID uint64) { msgServer := keeper.NewMsgServerImpl(s.App.IncentivesKeeper) s.FundAcc(addr, coins) msgResponse, err := msgServer.Stake( sdk.WrapSDKContext(s.Ctx), - types.NewMsgSetupStake(addr, duration, coins), + types.NewMsgSetupStake(addr, coins), ) s.Require().NoError(err) @@ -47,86 +45,11 @@ func (s *QueryTestSuite) SetupSuite() { // set up stake with id = 1 addr := apptesting.SetupAddr(0) - s.SetupStake(addr, sdk.Coins{sdk.NewCoin(denom, math.NewInt(1000000))}, time.Hour*24) + s.SetupStake(addr, sdk.Coins{sdk.NewCoin(denom, math.NewInt(1000000))}) s.Commit() } -// func (s *QueryTestSuite) TestQueriesNeverAlterState() { -// testCases := []struct { -// name string -// query string -// input interface{} -// output interface{} -// }{ -// // { -// // "Query active gauges", -// // "/duality.incentives.Query/ActiveGauges", -// // &types.ActiveGetGaugesActiveUpcomingRequest{}, -// // &types.ActiveGetGaugesActiveUpcomingResponse{}, -// // }, -// // { -// // "Query active gauges per denom", -// // "/duality.incentives.Query/ActiveGaugesPerDenom", -// // &types.ActiveGaugesPerDenomRequest{Denom: "stake"}, -// // &types.ActiveGaugesPerDenomResponse{}, -// // }, -// // { -// // "Query gauge by id", -// // "/duality.incentives.Query/GetGaugeByID", -// // &types.GetGaugeByIDRequest{Id: 1}, -// // &types.GetGaugeByIDResponse{}, -// // }, -// // { -// // "Query all gauges", -// // "/duality.incentives.Query/Gauges", -// // &types.GetGaugesActiveUpcomingRequest{}, -// // &types.GetGaugesActiveUpcomingResponse{}, -// // }, -// // { -// // "Query stakeable durations", -// // "/duality.incentives.Query/StakeableDurations", -// // &types.QueryStakeableDurationsRequest{}, -// // &types.QueryStakeableDurationsResponse{}, -// // }, -// // { -// // "Query module to distibute coins", -// // "/duality.incentives.Query/GetModuleCoinsToBeDistributed", -// // &types.GetModuleCoinsToBeDistributedRequest{}, -// // &types.GetModuleCoinsToBeDistributedResponse{}, -// // }, -// // { -// // "Query reward estimate", -// // "/duality.incentives.Query/RewardsEst", -// // &types.RewardsEstRequest{Owner: s.TestAccs[0].String()}, -// // &types.RewardsEstResponse{}, -// // }, -// // { -// // "Query upcoming gauges", -// // "/duality.incentives.Query/UpcomingGauges", -// // &types.UpcomingGetGaugesActiveUpcomingRequest{}, -// // &types.UpcomingGetGaugesActiveUpcomingResponse{}, -// // }, -// // { -// // "Query upcoming gauges", -// // "/duality.incentives.Query/UpcomingGaugesPerDenom", -// // &types.UpcomingGaugesPerDenomRequest{Denom: "stake"}, -// // &types.UpcomingGaugesPerDenomResponse{}, -// // }, -// } - -// for _, tc := range testCases { -// tc := tc - -// s.Run(tc.name, func() { -// s.SetupSuite() -// err := s.QueryHelper.Invoke(gocontext.Background(), tc.query, tc.input, tc.output) -// s.Require().NoError(err) -// s.StateNotAltered() -// }) -// } -// } - func TestQueryTestSuite(t *testing.T) { suite.Run(t, new(QueryTestSuite)) } diff --git a/x/incentives/keeper/distribute.go b/x/incentives/keeper/distribute.go index 3990e0046..9ea79d702 100644 --- a/x/incentives/keeper/distribute.go +++ b/x/incentives/keeper/distribute.go @@ -80,7 +80,9 @@ func (k Keeper) Distribute(ctx sdk.Context, gauges types.Gauges) (types.Distribu } else { accHistory = NewAccountHistory(addr, rewards) } - k.SetAccountHistory(ctx, accHistory) + if err := k.SetAccountHistory(ctx, accHistory); err != nil { + return nil, err + } // Emit events ctx.EventManager().EmitEvents(sdk.Events{ diff --git a/x/incentives/keeper/distributor_test.go b/x/incentives/keeper/distributor_test.go index 36e59528e..a924902b0 100644 --- a/x/incentives/keeper/distributor_test.go +++ b/x/incentives/keeper/distributor_test.go @@ -29,13 +29,13 @@ func NewMockKeeper(keeper DistributorKeeper, stakes types.Stakes) MockKeeper { } } -func (k MockKeeper) ValueForShares(_ sdk.Context, coin sdk.Coin, tick int64) (math.Int, error) { +func (k MockKeeper) ValueForShares(_ sdk.Context, coin sdk.Coin, _ int64) (math.Int, error) { return coin.Amount.Mul(math.NewInt(2)), nil } func (k MockKeeper) GetStakesByQueryCondition( _ sdk.Context, - distrTo *types.QueryCondition, + _ *types.QueryCondition, ) types.Stakes { return k.stakes } @@ -45,7 +45,7 @@ func (k MockKeeper) StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *type } func TestDistributor(t *testing.T) { - app := testutil.Setup(t, false) + app := testutil.Setup(t) ctx := app.BaseApp.NewContext( false, tmtypes.Header{Height: 1, ChainID: "duality-1", Time: time.Now().UTC()}, @@ -73,11 +73,14 @@ func TestDistributor(t *testing.T) { rewardedDenom := rewardPool.GetPoolDenom() nonRewardPool, _ := app.DexKeeper.GetOrInitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 12, 1) nonRewardedDenom := nonRewardPool.GetPoolDenom() + addr1 := sdk.AccAddress("addr1") + addr2 := sdk.AccAddress("addr2") + addr3 := sdk.AccAddress("addr3") allStakes := types.Stakes{ - {1, "addr1", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(50))}, 0}, - {2, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, 0}, - {3, "addr2", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, 0}, - {4, "addr3", ctx.BlockTime(), sdk.Coins{sdk.NewCoin(nonRewardedDenom, math.NewInt(50))}, 0}, + types.NewStake(1, addr1, sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(50))}, ctx.BlockTime(), 0), + types.NewStake(2, addr2, sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, ctx.BlockTime(), 0), + types.NewStake(3, addr2, sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, ctx.BlockTime(), 0), + types.NewStake(4, addr3, sdk.Coins{sdk.NewCoin(nonRewardedDenom, math.NewInt(50))}, ctx.BlockTime(), 0), } distributor := NewDistributor(NewMockKeeper(app.IncentivesKeeper, allStakes)) @@ -101,8 +104,8 @@ func TestDistributor(t *testing.T) { timeOffset: 0, filterStakes: allStakes, expected: types.DistributionSpec{ - "addr1": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, - "addr2": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(4))}, + addr1.String(): sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, + addr2.String(): sdk.Coins{sdk.NewCoin("coin1", math.NewInt(4))}, }, expectedErr: nil, }, @@ -111,7 +114,7 @@ func TestDistributor(t *testing.T) { timeOffset: 0, filterStakes: types.Stakes{allStakes[0]}, expected: types.DistributionSpec{ - "addr1": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, + addr1.String(): sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, }, expectedErr: nil, }, diff --git a/x/incentives/keeper/gas_test.go b/x/incentives/keeper/gas_test.go index 70d052fa7..c52c2abcf 100644 --- a/x/incentives/keeper/gas_test.go +++ b/x/incentives/keeper/gas_test.go @@ -1,13 +1,13 @@ package keeper_test -import ( - sdk "github.com/cosmos/cosmos-sdk/types" -) +// import ( +// sdk "github.com/cosmos/cosmos-sdk/types" +// ) -var ( - defaultAddr sdk.AccAddress = sdk.AccAddress([]byte("addr1---------------")) - defaultCoins sdk.Coins = sdk.Coins{sdk.NewInt64Coin("stake", 10)} -) +// var ( +// defaultAddr sdk.AccAddress = sdk.AccAddress([]byte("addr1---------------")) +// defaultCoins sdk.Coins = sdk.Coins{sdk.NewInt64Coin("stake", 10)} +// ) // func (suite *KeeperTestSuite) measureStakeGas(addr sdk.AccAddress, coins sdk.Coins, dur time.Duration) uint64 { // // fundAccount outside of gas measurement diff --git a/x/incentives/keeper/gauge.go b/x/incentives/keeper/gauge.go index 3ffa3c7ca..180b3d101 100644 --- a/x/incentives/keeper/gauge.go +++ b/x/incentives/keeper/gauge.go @@ -56,7 +56,8 @@ func (k Keeper) getGaugesFromIterator(ctx sdk.Context, iterator db.Iterator) typ } func (k Keeper) setGaugeRefs(ctx sdk.Context, gauge *types.Gauge) error { - if gauge.IsUpcomingGauge(ctx.BlockTime()) { + switch { + case gauge.IsUpcomingGauge(ctx.BlockTime()): if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexUpcoming, types.GetTimeKey(gauge.StartTime)), gauge.Id); err != nil { return err } @@ -68,7 +69,7 @@ func (k Keeper) setGaugeRefs(ctx sdk.Context, gauge *types.Gauge) error { if err != nil { return err } - } else if gauge.IsActiveGauge(ctx.BlockTime()) { + case gauge.IsActiveGauge(ctx.BlockTime()): err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, types.GetTimeKey(gauge.StartTime)), gauge.Id) if err != nil { return err @@ -77,7 +78,7 @@ func (k Keeper) setGaugeRefs(ctx sdk.Context, gauge *types.Gauge) error { if err != nil { return err } - } else { // finished gauge + default: // finished gauge err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexFinished, types.GetTimeKey(gauge.StartTime)), gauge.Id) if err != nil { return err @@ -213,7 +214,7 @@ func (k Keeper) GetGaugeQualifyingValue(ctx sdk.Context, gaugeID uint64) (uint64 if err := proto.Unmarshal(bz, &gauge); err != nil { return 0, err } - var value uint64 = 0 + var value uint64 stakes := k.GetStakesByQueryCondition(ctx, &gauge.DistributeTo) for _, stake := range stakes { stakeCoins := k.StakeCoinsPassingQueryCondition(ctx, stake, gauge.DistributeTo) @@ -259,10 +260,9 @@ func (k Keeper) moveUpcomingGaugeToActiveGauge(ctx sdk.Context, gauge *types.Gau if err := k.deleteRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexUpcoming, timeKey), gauge.Id); err != nil { return err } - if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, timeKey), gauge.Id); err != nil { - return err - } - return nil + + err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, timeKey), gauge.Id) + return err } // moveActiveGaugeToFinishedGauge moves a gauge that has completed its distribution from an active to a finished status. diff --git a/x/incentives/keeper/gauge_test.go b/x/incentives/keeper/gauge_test.go index 9258f7954..11d96f27c 100644 --- a/x/incentives/keeper/gauge_test.go +++ b/x/incentives/keeper/gauge_test.go @@ -44,7 +44,8 @@ func (suite *KeeperTestSuite) TestGaugeLifecycle() { }) // assert that the gauge is not in effect yet by triggering an epoch end before gauge start - suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 1) + err := suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") + require.NoError(suite.T(), err) // no distribution yet require.Equal( suite.T(), @@ -58,7 +59,8 @@ func (suite *KeeperTestSuite) TestGaugeLifecycle() { // advance time to epoch at or after the gauge starts, triggering distribution suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) - suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 2) + err = suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") + require.NoError(suite.T(), err) // assert that the gauge distributed require.Equal( @@ -73,7 +75,8 @@ func (suite *KeeperTestSuite) TestGaugeLifecycle() { // advance to next epoch suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) - suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 3) + err = suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") + require.NoError(suite.T(), err) // assert new distribution require.Equal( @@ -88,7 +91,8 @@ func (suite *KeeperTestSuite) TestGaugeLifecycle() { // repeat advancing to next epoch until gauge should be finished suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) - suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day", 4) + err = suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") + require.NoError(suite.T(), err) // assert no additional distribution from finished gauge require.Equal( @@ -107,7 +111,8 @@ func (suite *KeeperTestSuite) TestGaugeLimit() { // We set the gauge limit to 20. On the 21st gauge, we should encounter an error. params := suite.App.IncentivesKeeper.GetParams(suite.Ctx) params.MaxGauges = 20 - suite.App.IncentivesKeeper.SetParams(suite.Ctx, params) + err := suite.App.IncentivesKeeper.SetParams(suite.Ctx, params) + suite.Require().NoError(err) addr0 := suite.SetupAddr(0) @@ -144,7 +149,7 @@ func (suite *KeeperTestSuite) TestGaugeLimit() { suite.FundAcc(addr, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10))) // create gauge - _, err := suite.App.IncentivesKeeper.CreateGauge( + _, err = suite.App.IncentivesKeeper.CreateGauge( suite.Ctx, false, addr, diff --git a/x/incentives/keeper/genesis.go b/x/incentives/keeper/genesis.go index 1943cd7a1..710671120 100644 --- a/x/incentives/keeper/genesis.go +++ b/x/incentives/keeper/genesis.go @@ -10,7 +10,9 @@ import ( // InitGenesis initializes the incentives module's state from a provided genesis state. func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { - k.SetParams(ctx, genState.Params) + if err := k.SetParams(ctx, genState.Params); err != nil { + panic(err) + } if err := k.InitializeAllStakes(ctx, genState.Stakes); err != nil { panic(err) } diff --git a/x/incentives/keeper/hooks.go b/x/incentives/keeper/hooks.go index 4fd1c92fa..6d8fb1911 100644 --- a/x/incentives/keeper/hooks.go +++ b/x/incentives/keeper/hooks.go @@ -7,12 +7,12 @@ import ( ) // BeforeEpochStart is the epoch start hook. -func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { +func (k Keeper) BeforeEpochStart(_ sdk.Context, _ string) error { return nil } // AfterEpochEnd is the epoch end hook. -func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { +func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string) error { params := k.GetParams(ctx) if epochIdentifier == params.DistrEpochIdentifier { // begin distribution if it's start time @@ -50,11 +50,11 @@ func (k Keeper) Hooks() Hooks { } // BeforeEpochStart is the epoch start hook. -func (h Hooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { - return h.k.BeforeEpochStart(ctx, epochIdentifier, epochNumber) +func (h Hooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string) error { + return h.k.BeforeEpochStart(ctx, epochIdentifier) } // AfterEpochEnd is the epoch end hook. -func (h Hooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error { - return h.k.AfterEpochEnd(ctx, epochIdentifier, epochNumber) +func (h Hooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string) error { + return h.k.AfterEpochEnd(ctx, epochIdentifier) } diff --git a/x/incentives/keeper/msg_server.go b/x/incentives/keeper/msg_server.go index 8905b0468..c0feb7306 100644 --- a/x/incentives/keeper/msg_server.go +++ b/x/incentives/keeper/msg_server.go @@ -5,7 +5,6 @@ import ( "fmt" "strconv" - "cosmossdk.io/errors" "github.com/neutron-org/neutron/x/incentives/types" sdkerrors "cosmossdk.io/errors" @@ -33,7 +32,7 @@ func (server msgServer) CreateGauge( msg *types.MsgCreateGauge, ) (*types.MsgCreateGaugeResponse, error) { if server.keeper.authority != msg.Owner { - return nil, errors.Wrapf( + return nil, sdkerrors.Wrapf( types.ErrInvalidSigner, "invalid authority; expected %s, got %s", server.keeper.authority, @@ -188,7 +187,7 @@ func (server msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdate } authority := server.keeper.GetAuthority() if authority != req.Authority { - return nil, errors.Wrapf(types.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) + return nil, sdkerrors.Wrapf(types.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) diff --git a/x/incentives/keeper/query_server.go b/x/incentives/keeper/query_server.go index 8b13d9e72..4d2426ca8 100644 --- a/x/incentives/keeper/query_server.go +++ b/x/incentives/keeper/query_server.go @@ -28,7 +28,7 @@ func NewQueryServer(k *Keeper) QueryServer { func (q QueryServer) GetModuleStatus( goCtx context.Context, - req *types.GetModuleStatusRequest, + _ *types.GetModuleStatusRequest, ) (*types.GetModuleStatusResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) return &types.GetModuleStatusResponse{ diff --git a/x/incentives/keeper/stake_test.go b/x/incentives/keeper/stake_test.go index db858ff8f..00da937c8 100644 --- a/x/incentives/keeper/stake_test.go +++ b/x/incentives/keeper/stake_test.go @@ -30,7 +30,8 @@ func (suite *KeeperTestSuite) TestStakeLifecycle() { suite.Require().NotNil(retrievedStake) // unstake the full amount - suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) + _, err = suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) + suite.Require().NoError(err) balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 20)), balances) _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) @@ -67,7 +68,8 @@ func (suite *KeeperTestSuite) TestMultipleStakeLifecycle() { suite.Require().NotNil(retrievedStake) // unstake the full amount - suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) + _, err = suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) + suite.Require().NoError(err) balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) suite.Require().Equal( sdk.NewCoins( diff --git a/x/incentives/keeper/utils_test.go b/x/incentives/keeper/utils_test.go index 32b72b3fd..6a63d401e 100644 --- a/x/incentives/keeper/utils_test.go +++ b/x/incentives/keeper/utils_test.go @@ -68,7 +68,7 @@ func TestRemoveValue(t *testing.T) { func TestStakeRefKeys(t *testing.T) { addr1 := sdk.AccAddress([]byte("addr1---------------")) - app := testutil.Setup(t, false) + app := testutil.Setup(t) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) pool1, err := app.DexKeeper.InitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 0, 1) @@ -106,11 +106,13 @@ func TestStakeRefKeys(t *testing.T) { // not empty address and 1 coin stake3 := types.NewStake(1, addr1, sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, time.Now(), 10) keys3, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake3) + require.NoError(t, err) require.Len(t, keys3, 6) // not empty address and empty coin stake4 := types.NewStake(1, addr1, sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, time.Now(), 10) keys4, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake4) + require.NoError(t, err) require.Len(t, keys4, 6) // not empty address and 2 coins @@ -122,5 +124,6 @@ func TestStakeRefKeys(t *testing.T) { 10, ) keys5, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake5) + require.NoError(t, err) require.Len(t, keys5, 10) } diff --git a/x/incentives/module.go b/x/incentives/module.go index 6340f41a2..9fdfc6439 100644 --- a/x/incentives/module.go +++ b/x/incentives/module.go @@ -22,8 +22,6 @@ import ( cdctypes "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" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/neutron-org/neutron/x/incentives/client/cli" @@ -71,7 +69,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { // ValidateGenesis performs genesis state validation for the module. func (AppModuleBasic) ValidateGenesis( cdc codec.JSONCodec, - config client.TxEncodingConfig, + _ client.TxEncodingConfig, bz json.RawMessage, ) error { var genState types.GenesisState @@ -82,7 +80,7 @@ func (AppModuleBasic) ValidateGenesis( } // RegisterRESTRoutes registers the module's REST service handlers. -func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { +func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) { } // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. @@ -178,35 +176,5 @@ func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.Valid return []abci.ValidatorUpdate{} } -// AppModuleSimulation functions - -// GenerateGenesisState creates a randomized GenState of the incentives module. -func (AppModule) GenerateGenesisState(simState *module.SimulationState) { - simulation.RandomizedGenState(simState) -} - -// ProposalContents returns nil for governance proposals contents. -// Should eventually be deleted in a future update. -func (AppModule) ProposalContents( - simState module.SimulationState, -) []simtypes.WeightedProposalContent { - return nil -} - -// RegisterStoreDecoder has an unknown purpose. Should eventually be deleted in a future update. -func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { -} - -// WeightedOperations returns the all the module's operations with their respective weights. -// func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { -// // return simulation.WeightedOperations( -// // simState.AppParams, simState.Cdc, -// // am.accountKeeper, am.bankKeeper, am.epochKeeper, am.keeper, -// // ) -// // simtypes.NewMsgBasedAction("stake tokens", am.keeper, simulation.RandomMsgStakeTokens), -// // simtypes.NewMsgBasedAction("unstake all tokens", am.keeper, simulation.RandomMsgBeginUnstakingAll), -// // simtypes.NewMsgBasedAction("unstake stake", am.keeper, simulation.RandomMsgBeginUnstaking), -// } - // ConsensusVersion implements AppModule/ConsensusVersion. func (AppModule) ConsensusVersion() uint64 { return 1 } diff --git a/x/incentives/module_simulation.go b/x/incentives/module_simulation.go new file mode 100644 index 000000000..c79664124 --- /dev/null +++ b/x/incentives/module_simulation.go @@ -0,0 +1,33 @@ +package incentives + +import ( + "github.com/CosmWasm/wasmd/x/wasm/simulation" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" +) + +// AppModuleSimulation functions + +// GenerateGenesisState creates a randomized GenState of the incentives module. +func (AppModule) GenerateGenesisState(simState *module.SimulationState) { + simulation.RandomizedGenState(simState) +} + +// ProposalContents returns nil for governance proposals contents. +// Should eventually be deleted in a future update. +func (AppModule) ProposalContents( + _ module.SimulationState, +) []simtypes.WeightedProposalMsg { + return nil +} + +// RegisterStoreDecoder has an unknown purpose. Should eventually be deleted in a future update. +func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) { +} + +// WeightedOperations returns the all the module's operations with their respective weights. +func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { + operations := make([]simtypes.WeightedOperation, 0) + return operations +} diff --git a/x/incentives/types/hooks.go b/x/incentives/types/hooks.go index 3c95c2110..bcb37bbc7 100644 --- a/x/incentives/types/hooks.go +++ b/x/incentives/types/hooks.go @@ -7,10 +7,10 @@ import ( ) type IncentiveHooks interface { - AfterCreateGauge(ctx sdk.Context, gaugeId uint64) - AfterAddToGauge(ctx sdk.Context, gaugeId uint64) - AfterStartDistribution(ctx sdk.Context, gaugeId uint64) - AfterFinishDistribution(ctx sdk.Context, gaugeId uint64) + AfterCreateGauge(ctx sdk.Context, gaugeID uint64) + AfterAddToGauge(ctx sdk.Context, gaugeID uint64) + AfterStartDistribution(ctx sdk.Context, gaugeID uint64) + AfterFinishDistribution(ctx sdk.Context, gaugeID uint64) AfterEpochDistribution(ctx sdk.Context) AfterAddTokensToStake(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins) OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) diff --git a/x/incentives/types/msgs.go b/x/incentives/types/msgs.go index 6b710339a..92e5e49fa 100644 --- a/x/incentives/types/msgs.go +++ b/x/incentives/types/msgs.go @@ -4,7 +4,6 @@ import ( "fmt" "time" - errorsmod "cosmossdk.io/errors" sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" dextypes "github.com/neutron-org/neutron/x/dex/types" @@ -153,7 +152,7 @@ func (m MsgAddToGauge) GetSigners() []sdk.AccAddress { var _ sdk.Msg = &MsgStake{} // NewMsgStakeTokens creates a message to stake tokens. -func NewMsgSetupStake(owner sdk.AccAddress, duration time.Duration, coins sdk.Coins) *MsgStake { +func NewMsgSetupStake(owner sdk.AccAddress, coins sdk.Coins) *MsgStake { return &MsgStake{ Owner: owner.String(), Coins: coins, @@ -252,10 +251,9 @@ func (msg *MsgUpdateParams) GetSignBytes() []byte { func (msg *MsgUpdateParams) ValidateBasic() error { if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { - return errorsmod.Wrap(err, "authority is invalid") + return sdkerrors.Wrap(err, "authority is invalid") } - if err := msg.Params.Validate(); err != nil { - return err - } - return nil + + err := msg.Params.Validate() + return err } diff --git a/x/incentives/types/params.go b/x/incentives/types/params.go index 560ec9b67..51747339d 100644 --- a/x/incentives/types/params.go +++ b/x/incentives/types/params.go @@ -35,10 +35,7 @@ func DefaultParams() Params { // Validate checks that the incentives module parameters are valid. func (p Params) Validate() error { - if err := epochtypes.ValidateEpochIdentifierInterface(p.DistrEpochIdentifier); err != nil { - return err - } - return nil + return epochtypes.ValidateEpochIdentifierInterface(p.DistrEpochIdentifier) } // ParamSetPairs takes the parameter struct and associates the paramsubspace key and field of the parameters as a KVStore. diff --git a/x/incentives/types/tx.pb.go b/x/incentives/types/tx.pb.go index 6dba41aa9..bb30ac56e 100644 --- a/x/incentives/types/tx.pb.go +++ b/x/incentives/types/tx.pb.go @@ -185,7 +185,7 @@ type MsgAddToGauge struct { // owner is the gauge owner's address Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` // gauge_id is the ID of gauge that rewards are getting added to - GaugeId uint64 `protobuf:"varint,2,opt,name=gauge_id,json=gaugeId,proto3" json:"gauge_id,omitempty"` + GaugeId uint64 `protobuf:"varint,2,opt,name=gauge_id,json=gaugeID,proto3" json:"gauge_id,omitempty"` // rewards are the coin(s) to add to gauge Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"` } From f0c7447bd8129df9e3d1021fd6552f436c3407b8 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 17 Oct 2023 16:45:27 -0400 Subject: [PATCH 185/307] General Test cleanup cleanup KeeperTestHelper and re-use for dex testing centralize event testing assertions rename test suite to be more informative --- testutil/apptesting/events.go | 36 ++ testutil/apptesting/test_suite.go | 4 +- testutil/dex/keeper/dex.go | 36 -- x/dex/keeper/deposit_record_test.go | 4 +- ...grpc_query_estimate_multi_hop_swap_test.go | 19 +- .../integration_cancellimitorder_test.go | 34 +- .../integration_deposit_autoswap_unit_test.go | 6 +- .../integration_deposit_doublesided_test.go | 22 +- .../keeper/integration_deposit_multi_test.go | 4 +- .../integration_deposit_singlesided_test.go | 40 +- x/dex/keeper/integration_multihopswap_test.go | 21 +- .../integration_placelimitorder_test.go | 84 ++-- .../keeper/integration_withdraw_multi_test.go | 4 +- x/dex/keeper/integration_withdraw_test.go | 20 +- .../keeper/integration_withdrawfilled_test.go | 18 +- x/dex/keeper/limit_order_expiration_test.go | 110 ++--- x/dex/keeper/limit_order_tranche_user_test.go | 4 +- x/dex/keeper/liquidity_test.go | 216 ++++----- x/dex/keeper/msg_server_test.go | 455 +++++++++--------- x/epochs/keeper/abci_test.go | 2 +- x/epochs/keeper/epoch_test.go | 6 +- x/epochs/keeper/grpc_query_test.go | 2 +- x/epochs/keeper/keeper_test.go | 8 +- x/incentives/keeper/distribute_test.go | 4 +- x/incentives/keeper/gauge_test.go | 6 +- x/incentives/keeper/genesis_test.go | 2 +- x/incentives/keeper/keeper_test.go | 8 +- x/incentives/keeper/query_server_test.go | 4 +- x/incentives/keeper/stake_test.go | 6 +- x/incentives/keeper/suite_test.go | 12 +- 30 files changed, 556 insertions(+), 641 deletions(-) diff --git a/testutil/apptesting/events.go b/testutil/apptesting/events.go index 55e2fa7be..f06410fc2 100644 --- a/testutil/apptesting/events.go +++ b/testutil/apptesting/events.go @@ -39,3 +39,39 @@ func (s *KeeperTestHelper) ExtractAttributes(event sdk.Event) map[string]string return attrs } + +func (s *KeeperTestHelper) AssertEventValueEmitted(eventValue, message string) { + allEvents := s.Ctx.EventManager().Events() + for _, event := range allEvents { + for _, attr := range event.Attributes { + if attr.Value == eventValue { + return + } + } + } + s.Fail(message) +} + +func (s *KeeperTestHelper) AssertNEventValuesEmitted(eventValue string, nEvents int) { + emissions := 0 + allEvents := s.Ctx.EventManager().Events() + for _, event := range allEvents { + for _, attr := range event.Attributes { + if attr.Value == eventValue { + emissions++ + } + } + } + s.Equal(nEvents, emissions, "Expected %v events, got %v", nEvents, emissions) +} + +func (s *KeeperTestHelper) AssertEventValueNotEmitted(eventValue, message string) { + allEvents := s.Ctx.EventManager().Events() + if len(allEvents) != 0 { + for _, attr := range allEvents[len(allEvents)-1].Attributes { + if attr.Value == eventValue { + s.Fail(message) + } + } + } +} diff --git a/testutil/apptesting/test_suite.go b/testutil/apptesting/test_suite.go index 5ddb5dfb8..4f885b495 100644 --- a/testutil/apptesting/test_suite.go +++ b/testutil/apptesting/test_suite.go @@ -35,10 +35,12 @@ type KeeperTestHelper struct { // Setup sets up basic environment for suite (App, Ctx, and test accounts) func (s *KeeperTestHelper) Setup() { s.App = testutil.Setup(s.T()) - s.Ctx = s.App.BaseApp.NewContext( + ctx := s.App.BaseApp.NewContext( false, tmtypes.Header{Height: 1, ChainID: "neutron-1", Time: time.Now().UTC()}, ) + s.Ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) + s.GoCtx = sdk.WrapSDKContext(s.Ctx) s.QueryHelper = &baseapp.QueryServiceTestHelper{ GRPCQueryRouter: s.App.GRPCQueryRouter(), diff --git a/testutil/dex/keeper/dex.go b/testutil/dex/keeper/dex.go index 6f0586b92..275d46a85 100644 --- a/testutil/dex/keeper/dex.go +++ b/testutil/dex/keeper/dex.go @@ -48,39 +48,3 @@ func DexKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { return k, ctx } - -func AssertEventEmitted(t *testing.T, ctx sdk.Context, eventValue, message string) { - allEvents := ctx.EventManager().Events() - for _, event := range allEvents { - for _, attr := range event.Attributes { - if attr.Value == eventValue { - return - } - } - } - require.Fail(t, message) -} - -func AssertNEventsEmitted(t *testing.T, ctx sdk.Context, eventValue string, nEvents int) { - emissions := 0 - allEvents := ctx.EventManager().Events() - for _, event := range allEvents { - for _, attr := range event.Attributes { - if attr.Value == eventValue { - emissions++ - } - } - } - require.Equal(t, nEvents, emissions, "Expected %v events, got %v", nEvents, emissions) -} - -func AssertEventNotEmitted(t *testing.T, ctx sdk.Context, eventValue, message string) { - allEvents := ctx.EventManager().Events() - if len(allEvents) != 0 { - for _, attr := range allEvents[len(allEvents)-1].Attributes { - if attr.Value == eventValue { - require.Fail(t, message) - } - } - } -} diff --git a/x/dex/keeper/deposit_record_test.go b/x/dex/keeper/deposit_record_test.go index 864b5b111..4ed8526f2 100644 --- a/x/dex/keeper/deposit_record_test.go +++ b/x/dex/keeper/deposit_record_test.go @@ -5,7 +5,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestGetAllDeposits() { +func (s *DexTestSuite) TestGetAllDeposits() { s.fundAliceBalances(20, 20) // GIVEN Alice Deposits 3 positions and withdraws the first s.aliceDeposits( @@ -36,7 +36,7 @@ func (s *MsgServerTestSuite) TestGetAllDeposits() { ) // THEN GetAllDeposits returns the two remaining LP positions - depositList := s.app.DexKeeper.GetAllDepositsForAddress(s.ctx, s.alice) + depositList := s.App.DexKeeper.GetAllDepositsForAddress(s.Ctx, s.alice) s.Assert().Equal(2, len(depositList)) s.Assert().Equal(&types.DepositRecord{ PairID: defaultPairID, diff --git a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go index 8d8080ded..2ad474b81 100644 --- a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go +++ b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go @@ -3,12 +3,11 @@ package keeper_test import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapSingleRoute() { +func (s *DexTestSuite) TestEstimateMultiHopSwapSingleRoute() { s.fundAliceBalances(100, 0) // GIVEN liquidity in pools A<>B, B<>C, C<>D, @@ -33,7 +32,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapSingleRoute() { s.assertDexBalanceWithDenom("TokenD", 100) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapInsufficientLiquiditySingleRoute() { +func (s *DexTestSuite) TestEstimateMultiHopSwapInsufficientLiquiditySingleRoute() { s.fundAliceBalances(100, 0) // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D @@ -54,7 +53,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapInsufficientLiquiditySingle ) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLimitPriceNotMetSingleRoute() { +func (s *DexTestSuite) TestEstimateMultiHopSwapLimitPriceNotMetSingleRoute() { s.fundAliceBalances(100, 0) // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D @@ -75,7 +74,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLimitPriceNotMetSingleRoute ) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { +func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { s.fundAliceBalances(100, 0) // GIVEN viable liquidity in pools A<>B, B<>E, E<>X @@ -181,7 +180,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { ) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteAllFail() { +func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteAllFail() { s.fundAliceBalances(100, 0) // GIVEN liquidity in sufficient liquidity but inadequate prices @@ -224,7 +223,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteAllFail() { ) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { +func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { s.fundAliceBalances(100, 0) // GIVEN viable liquidity in pools but with a best route through E<>X @@ -302,7 +301,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { ) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLongRouteWithCache() { +func (s *DexTestSuite) TestEstimateMultiHopSwapLongRouteWithCache() { s.fundAliceBalances(100, 0) // GIVEN viable route from A->B->C...->L but last leg to X only possible through K->M->X @@ -350,7 +349,7 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapLongRouteWithCache() { ) } -func (s *MsgServerTestSuite) TestEstimateMultiHopSwapEventsEmitted() { +func (s *DexTestSuite) TestEstimateMultiHopSwapEventsEmitted() { s.fundAliceBalances(100, 0) s.SetupMultiplePools( @@ -362,5 +361,5 @@ func (s *MsgServerTestSuite) TestEstimateMultiHopSwapEventsEmitted() { _ = s.aliceEstimatesMultiHopSwap(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) // 8 tickUpdateEvents are emitted 4x for pool setup 4x for two swaps - keepertest.AssertEventNotEmitted(s.T(), s.ctx, types.TickUpdateEventKey, "Expected no events") + s.AssertEventValueNotEmitted(types.TickUpdateEventKey, "Expected no events") } diff --git a/x/dex/keeper/integration_cancellimitorder_test.go b/x/dex/keeper/integration_cancellimitorder_test.go index 00aadff0b..92ba79939 100644 --- a/x/dex/keeper/integration_cancellimitorder_test.go +++ b/x/dex/keeper/integration_cancellimitorder_test.go @@ -8,7 +8,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestCancelEntireLimitOrderAOneExists() { +func (s *DexTestSuite) TestCancelEntireLimitOrderAOneExists() { s.fundAliceBalances(50, 50) // CASE // Alice adds a limit order of A for B and cancels it right away @@ -28,11 +28,11 @@ func (s *MsgServerTestSuite) TestCancelEntireLimitOrderAOneExists() { s.assertCurr0To1(math.MaxInt64) // Assert that the LimitOrderTrancheUser has been deleted - _, found := s.app.DexKeeper.GetLimitOrderTrancheUser(s.ctx, s.alice.String(), trancheKey) + _, found := s.App.DexKeeper.GetLimitOrderTrancheUser(s.Ctx, s.alice.String(), trancheKey) s.Assert().False(found) } -func (s *MsgServerTestSuite) TestCancelEntireLimitOrderBOneExists() { +func (s *DexTestSuite) TestCancelEntireLimitOrderBOneExists() { s.fundAliceBalances(50, 50) // CASE // Alice adds a limit order of B for A and cancels it right away @@ -52,7 +52,7 @@ func (s *MsgServerTestSuite) TestCancelEntireLimitOrderBOneExists() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestCancelHigherEntireLimitOrderATwoExistDiffTicksSameDirection() { +func (s *DexTestSuite) TestCancelHigherEntireLimitOrderATwoExistDiffTicksSameDirection() { s.fundAliceBalances(50, 50) // CASE // Alice adds two limit orders from A to B and removes the one at the higher tick (0) @@ -73,7 +73,7 @@ func (s *MsgServerTestSuite) TestCancelHigherEntireLimitOrderATwoExistDiffTicksS s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksSameDirection() { +func (s *DexTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksSameDirection() { s.fundAliceBalances(50, 50) // CASE // Alice adds two limit orders from A to B and removes the one at the lower tick (-1) @@ -94,7 +94,7 @@ func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksSa s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksDiffDirection() { +func (s *DexTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksDiffDirection() { s.fundAliceBalances(50, 50) // CASE // Alice adds one limit orders from A to B and one from B to A and removes the one from A to B @@ -115,7 +115,7 @@ func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderATwoExistDiffTicksDi s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestCancelHigherEntireLimitOrderBTwoExistDiffTicksSameDirection() { +func (s *DexTestSuite) TestCancelHigherEntireLimitOrderBTwoExistDiffTicksSameDirection() { s.fundAliceBalances(50, 50) // CASE // Alice adds two limit orders from B to A and removes the one at tick 0 @@ -136,7 +136,7 @@ func (s *MsgServerTestSuite) TestCancelHigherEntireLimitOrderBTwoExistDiffTicksS s.assertCurr0To1(-1) } -func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderBTwoExistDiffTicksSameDirection() { +func (s *DexTestSuite) TestCancelLowerEntireLimitOrderBTwoExistDiffTicksSameDirection() { s.fundAliceBalances(50, 50) // CASE // Alice adds two limit orders from B to A and removes the one at tick 0 @@ -157,7 +157,7 @@ func (s *MsgServerTestSuite) TestCancelLowerEntireLimitOrderBTwoExistDiffTicksSa s.assertCurr0To1(0) } -func (s *MsgServerTestSuite) TestCancelTwiceFails() { +func (s *DexTestSuite) TestCancelTwiceFails() { s.fundAliceBalances(50, 50) // CASE // Alice tries to cancel the same limit order twice @@ -175,7 +175,7 @@ func (s *MsgServerTestSuite) TestCancelTwiceFails() { s.aliceCancelsLimitSellFails(trancheKey, types.ErrActiveLimitOrderNotFound) } -func (s *MsgServerTestSuite) TestCancelPartiallyFilled() { +func (s *DexTestSuite) TestCancelPartiallyFilled() { s.fundAliceBalances(50, 0) s.fundBobBalances(0, 50) @@ -195,7 +195,7 @@ func (s *MsgServerTestSuite) TestCancelPartiallyFilled() { s.assertDexBalances(0, 25) } -func (s *MsgServerTestSuite) TestCancelPartiallyFilledMultiUser() { +func (s *DexTestSuite) TestCancelPartiallyFilledMultiUser() { s.fundAliceBalances(50, 0) s.fundBobBalances(0, 50) s.fundCarolBalances(100, 0) @@ -222,7 +222,7 @@ func (s *MsgServerTestSuite) TestCancelPartiallyFilledMultiUser() { s.assertDexBalances(1, 25) } -func (s *MsgServerTestSuite) TestCancelGoodTil() { +func (s *DexTestSuite) TestCancelGoodTil() { s.fundAliceBalances(50, 0) tomorrow := time.Now().AddDate(0, 0, 1) // GIVEN alice limit sells 50 TokenA with goodTil date of tommrow @@ -238,7 +238,7 @@ func (s *MsgServerTestSuite) TestCancelGoodTil() { s.assertNLimitOrderExpiration(0) } -func (s *MsgServerTestSuite) TestCancelGoodTilAfterExpirationFails() { +func (s *DexTestSuite) TestCancelGoodTilAfterExpirationFails() { s.fundAliceBalances(50, 0) tomorrow := time.Now().AddDate(0, 0, 1) // GIVEN alice limit sells 50 TokenA with goodTil date of tommrow @@ -248,13 +248,13 @@ func (s *MsgServerTestSuite) TestCancelGoodTilAfterExpirationFails() { // WHEN expiration date has passed s.nextBlockWithTime(time.Now().AddDate(0, 0, 2)) - s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + s.App.EndBlock(abci.RequestEndBlock{Height: 0}) // THEN alice cancellation fails s.aliceCancelsLimitSellFails(trancheKey, types.ErrActiveLimitOrderNotFound) } -func (s *MsgServerTestSuite) TestCancelJITSameBlock() { +func (s *DexTestSuite) TestCancelJITSameBlock() { s.fundAliceBalances(50, 0) // GIVEN alice limit sells 50 TokenA as JIT trancheKey := s.aliceLimitSells("TokenA", 0, 50, types.LimitOrderType_JUST_IN_TIME) @@ -269,7 +269,7 @@ func (s *MsgServerTestSuite) TestCancelJITSameBlock() { s.assertNLimitOrderExpiration(0) } -func (s *MsgServerTestSuite) TestCancelJITNextBlock() { +func (s *DexTestSuite) TestCancelJITNextBlock() { s.fundAliceBalances(50, 0) // GIVEN alice limit sells 50 TokenA as JIT trancheKey := s.aliceLimitSells("TokenA", 0, 50, types.LimitOrderType_JUST_IN_TIME) @@ -278,7 +278,7 @@ func (s *MsgServerTestSuite) TestCancelJITNextBlock() { // WHEN we move to block N+1 s.nextBlockWithTime(time.Now()) - s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + s.App.EndBlock(abci.RequestEndBlock{Height: 0}) // THEN alice cancellation fails s.aliceCancelsLimitSellFails(trancheKey, types.ErrActiveLimitOrderNotFound) diff --git a/x/dex/keeper/integration_deposit_autoswap_unit_test.go b/x/dex/keeper/integration_deposit_autoswap_unit_test.go index 551c6dd44..5fc6eb9b6 100644 --- a/x/dex/keeper/integration_deposit_autoswap_unit_test.go +++ b/x/dex/keeper/integration_deposit_autoswap_unit_test.go @@ -1,6 +1,6 @@ package keeper_test -func (s *MsgServerTestSuite) TestAutoswapperWithdraws() { +func (s *DexTestSuite) TestAutoswapperWithdraws() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -34,7 +34,7 @@ func (s *MsgServerTestSuite) TestAutoswapperWithdraws() { s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) } -func (s *MsgServerTestSuite) TestAutoswapOtherDepositorWithdraws() { +func (s *DexTestSuite) TestAutoswapOtherDepositorWithdraws() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -66,7 +66,7 @@ func (s *MsgServerTestSuite) TestAutoswapOtherDepositorWithdraws() { s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) } -func (s *MsgServerTestSuite) TestAutoswapBothWithdraws() { +func (s *DexTestSuite) TestAutoswapBothWithdraws() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) diff --git a/x/dex/keeper/integration_deposit_doublesided_test.go b/x/dex/keeper/integration_deposit_doublesided_test.go index a5a09eddb..79fb8dc91 100644 --- a/x/dex/keeper/integration_deposit_doublesided_test.go +++ b/x/dex/keeper/integration_deposit_doublesided_test.go @@ -5,7 +5,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestDepositDoubleSidedInSpreadCurrTickAdjusted() { +func (s *DexTestSuite) TestDepositDoubleSidedInSpreadCurrTickAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -28,7 +28,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedInSpreadCurrTickAdjusted() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedAroundSpreadCurrTickNotAdjusted() { +func (s *DexTestSuite) TestDepositDoubleSidedAroundSpreadCurrTickNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -51,7 +51,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedAroundSpreadCurrTickNotAdjust s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick0To1Adjusted() { +func (s *DexTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick0To1Adjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -74,7 +74,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick0To1Adjus s.assertCurr0To1(5) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick1To0Adjusted() { +func (s *DexTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick1To0Adjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -97,7 +97,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedHalfInSpreadCurrTick1To0Adjus s.assertCurr0To1(4) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedCreatingArbBelow() { +func (s *DexTestSuite) TestDepositDoubleSidedCreatingArbBelow() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -119,7 +119,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedCreatingArbBelow() { s.bobLimitSells("TokenA", 0, 10, types.LimitOrderType_FILL_OR_KILL) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedCreatingArbAbove() { +func (s *DexTestSuite) TestDepositDoubleSidedCreatingArbAbove() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -141,7 +141,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedCreatingArbAbove() { s.bobLimitSells("TokenB", 0, 10, types.LimitOrderType_FILL_OR_KILL) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedFirstSharesMintedTotal() { +func (s *DexTestSuite) TestDepositDoubleSidedFirstSharesMintedTotal() { s.fundAliceBalances(50, 50) // GIVEN @@ -158,7 +158,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedFirstSharesMintedTotal() { s.assertPoolShares(0, 1, 15) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedFirstSharesMintedUser() { +func (s *DexTestSuite) TestDepositDoubleSidedFirstSharesMintedUser() { s.fundAliceBalances(50, 50) // GIVEN @@ -176,7 +176,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedFirstSharesMintedUser() { s.assertAliceShares(0, 1, 15) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedExistingSharesMintedTotal() { +func (s *DexTestSuite) TestDepositDoubleSidedExistingSharesMintedTotal() { s.fundAliceBalances(50, 50) // GIVEN @@ -194,7 +194,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedExistingSharesMintedTotal() { s.assertPoolShares(0, 1, 30) } -func (s *MsgServerTestSuite) TestDepositDoubleSidedExistingSharesMintedUser() { +func (s *DexTestSuite) TestDepositDoubleSidedExistingSharesMintedUser() { s.fundAliceBalances(50, 50) // GIVEN @@ -213,7 +213,7 @@ func (s *MsgServerTestSuite) TestDepositDoubleSidedExistingSharesMintedUser() { s.assertAliceShares(0, 1, 24) } -func (s *MsgServerTestSuite) TestDepositValueAccural() { +func (s *DexTestSuite) TestDepositValueAccural() { s.fundAliceBalances(100, 0) s.fundBobBalances(1000, 1000) s.fundCarolBalances(100, 1) diff --git a/x/dex/keeper/integration_deposit_multi_test.go b/x/dex/keeper/integration_deposit_multi_test.go index 6423954a8..cbf999695 100644 --- a/x/dex/keeper/integration_deposit_multi_test.go +++ b/x/dex/keeper/integration_deposit_multi_test.go @@ -5,7 +5,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestDepositMultiCompleteFailure() { +func (s *DexTestSuite) TestDepositMultiCompleteFailure() { s.fundAliceBalances(50, 50) // GIVEN @@ -24,7 +24,7 @@ func (s *MsgServerTestSuite) TestDepositMultiCompleteFailure() { ) } -func (s *MsgServerTestSuite) TestDepositMultiSuccess() { +func (s *DexTestSuite) TestDepositMultiSuccess() { s.fundAliceBalances(50, 50) // GIVEN diff --git a/x/dex/keeper/integration_deposit_singlesided_test.go b/x/dex/keeper/integration_deposit_singlesided_test.go index a7a85e3df..0d5a176c1 100644 --- a/x/dex/keeper/integration_deposit_singlesided_test.go +++ b/x/dex/keeper/integration_deposit_singlesided_test.go @@ -6,7 +6,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestDepositSingleSidedInSpread1To0() { +func (s *DexTestSuite) TestDepositSingleSidedInSpread1To0() { s.fundAliceBalances(50, 50) // GIVEN @@ -28,7 +28,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedInSpread1To0() { s.assertCurr1To0(-1) } -func (s *MsgServerTestSuite) TestDepositSingleSidedInSpread0To1() { +func (s *DexTestSuite) TestDepositSingleSidedInSpread0To1() { s.fundAliceBalances(50, 50) // GIVEN @@ -50,7 +50,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedInSpread0To1() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestDepositSingleSidedInSpreadMinMaxNotAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedInSpreadMinMaxNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -69,7 +69,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedInSpreadMinMaxNotAdjusted() { // assert min, max not moved } -func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpread0To1NotAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedOutOfSpread0To1NotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -91,7 +91,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpread0To1NotAdjusted() s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpread1To0NotAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedOutOfSpread1To0NotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -113,7 +113,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpread1To0NotAdjusted() s.assertCurr1To0(-1) } -func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMinAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedOutOfSpreadMinAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -134,7 +134,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMinAdjusted() { // assert min moved } -func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMaxAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedOutOfSpreadMaxAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -155,7 +155,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMaxAdjusted() { // assert max moved } -func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMinNotAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedOutOfSpreadMinNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -180,7 +180,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMinNotAdjusted() { // assert min not moved } -func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMaxNotAdjusted() { +func (s *DexTestSuite) TestDepositSingleSidedOutOfSpreadMaxNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -205,7 +205,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedOutOfSpreadMaxNotAdjusted() { // assert max not moved } -func (s *MsgServerTestSuite) TestDepositSingleSidedExistingLiquidityA() { +func (s *DexTestSuite) TestDepositSingleSidedExistingLiquidityA() { s.fundAliceBalances(50, 50) // GIVEN @@ -230,7 +230,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedExistingLiquidityA() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestDepositSingleSidedExistingLiquidityB() { +func (s *DexTestSuite) TestDepositSingleSidedExistingLiquidityB() { s.fundAliceBalances(50, 50) // GIVEN @@ -255,7 +255,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedExistingLiquidityB() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestDepositSingleSidedCreatingArbToken0() { +func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken0() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -279,7 +279,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedCreatingArbToken0() { s.assertBobBalances(50, 52) } -func (s *MsgServerTestSuite) TestDepositSingleSidedCreatingArbToken1() { +func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken1() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -304,7 +304,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedCreatingArbToken1() { s.assertBobBalances(52, 50) } -func (s *MsgServerTestSuite) TestDepositSingleSidedMultiA() { +func (s *DexTestSuite) TestDepositSingleSidedMultiA() { s.fundAliceBalances(50, 50) // GIVEN @@ -333,7 +333,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedMultiA() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestDepositSingleSidedMultiB() { +func (s *DexTestSuite) TestDepositSingleSidedMultiB() { s.fundAliceBalances(50, 50) // GIVEN @@ -362,7 +362,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedMultiB() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestDepositSingleSidedLowerTickOutsideRange() { +func (s *DexTestSuite) TestDepositSingleSidedLowerTickOutsideRange() { s.fundAliceBalances(50, 50) // GIVEN @@ -378,7 +378,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedLowerTickOutsideRange() { s.assertAliceDepositFails(err, NewDeposit(10, 0, tickIndex, 1)) } -func (s *MsgServerTestSuite) TestDepositSingleSidedUpperTickOutsideRange() { +func (s *DexTestSuite) TestDepositSingleSidedUpperTickOutsideRange() { s.fundAliceBalances(50, 50) // GIVEN @@ -394,7 +394,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedUpperTickOutsideRange() { s.assertAliceDepositFails(err, NewDeposit(0, 10, tickIndex, 1)) } -func (s *MsgServerTestSuite) TestDepositSingleSidedZeroTrueAmountsFail() { +func (s *DexTestSuite) TestDepositSingleSidedZeroTrueAmountsFail() { s.fundAliceBalances(50, 50) // GIVEN @@ -410,7 +410,7 @@ func (s *MsgServerTestSuite) TestDepositSingleSidedZeroTrueAmountsFail() { s.assertAliceDepositFails(err, NewDeposit(0, 5, 0, 1)) } -func (s *MsgServerTestSuite) TestDepositSingleLowTickUnderflowFails() { +func (s *DexTestSuite) TestDepositSingleLowTickUnderflowFails() { s.fundAliceBalances(0, 50) // GIVEN @@ -422,7 +422,7 @@ func (s *MsgServerTestSuite) TestDepositSingleLowTickUnderflowFails() { ) } -func (s *MsgServerTestSuite) TestDepositSingleInvalidFeeFails() { +func (s *DexTestSuite) TestDepositSingleInvalidFeeFails() { s.fundAliceBalances(0, 50) // GIVEN diff --git a/x/dex/keeper/integration_multihopswap_test.go b/x/dex/keeper/integration_multihopswap_test.go index ad926f342..6bb951ae0 100644 --- a/x/dex/keeper/integration_multihopswap_test.go +++ b/x/dex/keeper/integration_multihopswap_test.go @@ -3,7 +3,6 @@ package keeper_test import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -28,7 +27,7 @@ func NewPoolSetup(tokenA, tokenB string, amountA, amountB, tickIndex, fee int) P } } -func (s *MsgServerTestSuite) SetupMultiplePools(poolSetups ...PoolSetup) { +func (s *DexTestSuite) SetupMultiplePools(poolSetups ...PoolSetup) { for _, p := range poolSetups { coins := sdk.NewCoins( sdk.NewCoin(p.TokenA, math.NewInt(int64(p.AmountA))), @@ -44,7 +43,7 @@ func (s *MsgServerTestSuite) SetupMultiplePools(poolSetups ...PoolSetup) { } } -func (s *MsgServerTestSuite) TestMultiHopSwapSingleRoute() { +func (s *DexTestSuite) TestMultiHopSwapSingleRoute() { s.fundAliceBalances(100, 0) // GIVEN liquidity in pools A<>B, B<>C, C<>D, @@ -68,7 +67,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapSingleRoute() { s.assertDexBalanceWithDenom("TokenD", 3) } -func (s *MsgServerTestSuite) TestMultiHopSwapInsufficientLiquiditySingleRoute() { +func (s *DexTestSuite) TestMultiHopSwapInsufficientLiquiditySingleRoute() { s.fundAliceBalances(100, 0) // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D @@ -89,7 +88,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapInsufficientLiquiditySingleRoute() ) } -func (s *MsgServerTestSuite) TestMultiHopSwapLimitPriceNotMetSingleRoute() { +func (s *DexTestSuite) TestMultiHopSwapLimitPriceNotMetSingleRoute() { s.fundAliceBalances(100, 0) // GIVEN liquidity in pools A<>B, B<>C, C<>D with insufficient liquidity in C<>D @@ -110,7 +109,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapLimitPriceNotMetSingleRoute() { ) } -func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteOneGood() { +func (s *DexTestSuite) TestMultiHopSwapMultiRouteOneGood() { s.fundAliceBalances(100, 0) // GIVEN viable liquidity in pools A<>B, B<>E, E<>X @@ -204,7 +203,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteOneGood() { ) } -func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteAllFail() { +func (s *DexTestSuite) TestMultiHopSwapMultiRouteAllFail() { s.fundAliceBalances(100, 0) // GIVEN liquidity in sufficient liquidity but inadequate prices @@ -247,7 +246,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteAllFail() { ) } -func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { +func (s *DexTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { s.fundAliceBalances(100, 0) // GIVEN viable liquidity in pools but with a best route through E<>X @@ -326,7 +325,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { ) } -func (s *MsgServerTestSuite) TestMultiHopSwapLongRouteWithCache() { +func (s *DexTestSuite) TestMultiHopSwapLongRouteWithCache() { s.fundAliceBalances(100, 0) // GIVEN viable route from A->B->C...->L but last leg to X only possible through K->M->X @@ -374,7 +373,7 @@ func (s *MsgServerTestSuite) TestMultiHopSwapLongRouteWithCache() { ) } -func (s *MsgServerTestSuite) TestMultiHopSwapEventsEmitted() { +func (s *DexTestSuite) TestMultiHopSwapEventsEmitted() { s.fundAliceBalances(100, 0) s.SetupMultiplePools( @@ -386,5 +385,5 @@ func (s *MsgServerTestSuite) TestMultiHopSwapEventsEmitted() { s.aliceMultiHopSwaps(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) // 8 tickUpdateEvents are emitted 4x for pool setup 4x for two swaps - keepertest.AssertNEventsEmitted(s.T(), s.ctx, types.TickUpdateEventKey, 8) + s.AssertNEventValuesEmitted(types.TickUpdateEventKey, 8) } diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 605441408..0f2aa189e 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -11,7 +11,7 @@ import ( ) // Core tests w/ GTC limitOrders ////////////////////////////////////////////// -func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpread1To0() { +func (s *DexTestSuite) TestPlaceLimitOrderInSpread1To0() { s.fundAliceBalances(50, 50) // GIVEN @@ -33,7 +33,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpread1To0() { s.assertCurr1To0(-1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpread0To1() { +func (s *DexTestSuite) TestPlaceLimitOrderInSpread0To1() { s.fundAliceBalances(50, 50) // GIVEN @@ -55,7 +55,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpread0To1() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpreadMinMaxNotAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderInSpreadMinMaxNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -74,7 +74,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderInSpreadMinMaxNotAdjusted() { // assert min, max not moved } -func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpread0To1NotAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpread0To1NotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -96,7 +96,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpread0To1NotAdjusted() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpread1To0NotAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpread1To0NotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -118,7 +118,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpread1To0NotAdjusted() { s.assertCurr1To0(-1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMinAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMinAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -139,7 +139,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMinAdjusted() { // assert min moved } -func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMaxAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMaxAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -160,7 +160,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMaxAdjusted() { // assert max moved } -func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMinNotAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMinNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -185,7 +185,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMinNotAdjusted() { // assert min not moved } -func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMaxNotAdjusted() { +func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMaxNotAdjusted() { s.fundAliceBalances(50, 50) // GIVEN @@ -210,7 +210,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderOutOfSpreadMaxNotAdjusted() { // assert max not moved } -func (s *MsgServerTestSuite) TestPlaceLimitOrderExistingLiquidityA() { +func (s *DexTestSuite) TestPlaceLimitOrderExistingLiquidityA() { s.fundAliceBalances(50, 50) // GIVEN @@ -237,7 +237,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderExistingLiquidityA() { // s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderExistingLiquidityB() { +func (s *DexTestSuite) TestPlaceLimitOrderExistingLiquidityB() { s.fundAliceBalances(50, 50) // GIVEN @@ -264,7 +264,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderExistingLiquidityB() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderNoLOPlaceLODoesntIncrementPlaceTrancheKey() { +func (s *DexTestSuite) TestPlaceLimitOrderNoLOPlaceLODoesntIncrementPlaceTrancheKey() { s.fundAliceBalances(50, 50) // GIVEN @@ -282,7 +282,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderNoLOPlaceLODoesntIncrementPlaceT s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey, trancheKey) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderUnfilledLOPlaceLODoesntIncrementPlaceTrancheKey() { +func (s *DexTestSuite) TestPlaceLimitOrderUnfilledLOPlaceLODoesntIncrementPlaceTrancheKey() { s.fundAliceBalances(50, 50) // GIVEN @@ -300,7 +300,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderUnfilledLOPlaceLODoesntIncrement s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey, trancheKey) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderPartiallyFilledLOPlaceLOIncrementsPlaceTrancheKey() { +func (s *DexTestSuite) TestPlaceLimitOrderPartiallyFilledLOPlaceLOIncrementsPlaceTrancheKey() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -319,7 +319,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderPartiallyFilledLOPlaceLOIncremen s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey0, trancheKey1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFilledLOPlaceLODoesntIncrementsPlaceTrancheKey() { +func (s *DexTestSuite) TestPlaceLimitOrderFilledLOPlaceLODoesntIncrementsPlaceTrancheKey() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -339,7 +339,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFilledLOPlaceLODoesntIncrementsP s.assertFillAndPlaceTrancheKeys("TokenA", -1, trancheKey0, trancheKey1) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderInsufficientFunds() { +func (s *DexTestSuite) TestPlaceLimitOrderInsufficientFunds() { // GIVEN // alice has no funds s.assertAliceBalances(0, 0) @@ -353,7 +353,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderInsufficientFunds() { s.assertAliceLimitSellFails(err, "TokenA", 0, 10) } -func (s *MsgServerTestSuite) TestLimitOrderPartialFillDepositCancel() { +func (s *DexTestSuite) TestLimitOrderPartialFillDepositCancel() { s.fundAliceBalances(100, 100) s.fundBobBalances(100, 100) s.assertDexBalances(0, 0) @@ -412,7 +412,7 @@ func (s *MsgServerTestSuite) TestLimitOrderPartialFillDepositCancel() { } // Fill Or Kill limit orders /////////////////////////////////////////////////////////// -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKNoLiq() { +func (s *DexTestSuite) TestPlaceLimitOrderFoKNoLiq() { s.fundAliceBalances(10, 0) // GIVEN no liquidity // THEN alice's LimitOrder fails @@ -428,7 +428,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKNoLiq() { s.assertAliceBalances(10, 0) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKWithLPFills() { +func (s *DexTestSuite) TestPlaceLimitOrderFoKWithLPFills() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) // GIVEN LP liq at tick -1 @@ -444,7 +444,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKWithLPFills() { s.assertLimitLiquidityAtTick("TokenA", 1, 0) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKFailsWithInsufficientLiq() { +func (s *DexTestSuite) TestPlaceLimitOrderFoKFailsWithInsufficientLiq() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) // GIVEN LP liq at tick -1 of 9 tokenB @@ -459,7 +459,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKFailsWithInsufficientLiq() { ) } -func (s *MsgServerTestSuite) TestPlaceLimitOrder0FoKFailsWithLowLimit() { +func (s *DexTestSuite) TestPlaceLimitOrder0FoKFailsWithLowLimit() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) // GIVEN LP liq at tick -1 of 20 tokenB @@ -474,7 +474,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrder0FoKFailsWithLowLimit() { ) } -func (s *MsgServerTestSuite) TestPlaceLimitOrder1FoKFailsWithHighLimit() { +func (s *DexTestSuite) TestPlaceLimitOrder1FoKFailsWithHighLimit() { s.fundAliceBalances(0, 10) s.fundBobBalances(20, 0) // GIVEN LP liq at tick 20 of 20 tokenA @@ -489,7 +489,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrder1FoKFailsWithHighLimit() { ) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoK0TotalAmountInNotUsed() { +func (s *DexTestSuite) TestPlaceLimitOrderFoK0TotalAmountInNotUsed() { s.fundAliceBalances(9998, 0) s.fundBobBalances(0, 5000) // GIVEN LP liq at tick 20,000 & 20,001 of 1000 TokenB @@ -503,7 +503,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoK0TotalAmountInNotUsed() { s.assertAliceBalances(6, 1352) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { +func (s *DexTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { s.fundAliceBalances(0, 9998) s.fundBobBalances(5000, 0) // GIVEN LP liq at tick -20,000 & -20,001 of 1000 tokenA @@ -517,7 +517,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { s.assertAliceBalances(1352, 6) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { +func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { s.fundAliceBalances(0, 50) s.fundBobBalances(50, 0) // GIVEN LP 50 TokenA at tick 600 @@ -531,7 +531,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { s.assertAliceBalances(20, 31) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { +func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { s.fundAliceBalances(0, 50) s.fundBobBalances(50, 0) // GIVEN LP 30 TokenA at tick 600-602 @@ -549,7 +549,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { // Immediate Or Cancel LimitOrders //////////////////////////////////////////////////////////////////// -func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCNoLiq() { +func (s *DexTestSuite) TestPlaceLimitOrderIoCNoLiq() { s.fundAliceBalances(10, 0) // GIVEN no liquidity // WHEN alice submits IoC limitOrder @@ -564,7 +564,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCNoLiq() { s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") } -func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPFills() { +func (s *DexTestSuite) TestPlaceLimitOrderIoCWithLPFills() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) // GIVEN LP liq at tick -1 @@ -581,7 +581,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPFills() { s.assertFillAndPlaceTrancheKeys("TokenA", 1, "", "") } -func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPPartialFill() { +func (s *DexTestSuite) TestPlaceLimitOrderIoCWithLPPartialFill() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) // GIVEN LP of 5 tokenB at tick -1 @@ -598,7 +598,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPPartialFill() { s.assertLimitLiquidityAtTick("TokenA", 1, 0) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPNoFill() { +func (s *DexTestSuite) TestPlaceLimitOrderIoCWithLPNoFill() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) // GIVEN LP of 5 tokenB at tick -1 @@ -616,7 +616,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderIoCWithLPNoFill() { // Just In Time Limit Orders ////////////////////////////////////////////////// -func (s *MsgServerTestSuite) TestPlaceLimitOrderJITFills() { +func (s *DexTestSuite) TestPlaceLimitOrderJITFills() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) @@ -635,7 +635,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderJITFills() { s.assertAliceBalances(0, 10) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderJITBehindEnemyLines() { +func (s *DexTestSuite) TestPlaceLimitOrderJITBehindEnemyLines() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) @@ -656,7 +656,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderJITBehindEnemyLines() { s.assertAliceBalances(0, 9) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderJITNextBlock() { +func (s *DexTestSuite) TestPlaceLimitOrderJITNextBlock() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) @@ -667,7 +667,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderJITNextBlock() { // WHEN we move to block N+1 s.nextBlockWithTime(time.Now()) - s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + s.App.EndBlock(abci.RequestEndBlock{Height: 0}) // THEN there is no liquidity available s.assertLimitLiquidityAtTick("TokenA", 0, 0) @@ -678,7 +678,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderJITNextBlock() { // GoodTilLimitOrders ////////////////////////////////////////////////// -func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilFills() { +func (s *DexTestSuite) TestPlaceLimitOrderGoodTilFills() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) tomorrow := time.Now().AddDate(0, 0, 1) @@ -697,7 +697,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilFills() { s.assertAliceBalances(0, 10) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpires() { +func (s *DexTestSuite) TestPlaceLimitOrderGoodTilExpires() { s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) tomorrow := time.Now().AddDate(0, 0, 1) @@ -708,7 +708,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpires() { // When two days go by and multiple blocks are created (ie. purge is run) s.nextBlockWithTime(time.Now().AddDate(0, 0, 2)) - s.app.EndBlock(abci.RequestEndBlock{Height: 0}) + s.App.EndBlock(abci.RequestEndBlock{Height: 0}) // THEN there is no liquidity available s.assertLimitLiquidityAtTick("TokenA", 0, 0) // Alice can withdraw the entirety of the unfilled limitOrder @@ -716,7 +716,7 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpires() { s.assertAliceBalances(10, 0) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpiresNotPurged() { +func (s *DexTestSuite) TestPlaceLimitOrderGoodTilExpiresNotPurged() { // This is testing the case where the limitOrder has expired but has not yet been purged s.fundAliceBalances(10, 0) s.fundBobBalances(0, 20) @@ -737,11 +737,11 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilExpiresNotPurged() { s.assertAliceBalances(10, 0) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilHandlesTimezoneCorrectly() { +func (s *DexTestSuite) TestPlaceLimitOrderGoodTilHandlesTimezoneCorrectly() { s.fundAliceBalances(10, 0) timeInPST, _ := time.Parse(time.RFC3339, "2050-01-02T15:04:05-08:00") trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 10, timeInPST) - tranche := s.app.DexKeeper.GetLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ + tranche := s.App.DexKeeper.GetLimitOrderTranche(s.Ctx, &types.LimitOrderTrancheKey{ TradePairID: defaultTradePairID1To0, TickIndexTakerToMaker: 0, TrancheKey: trancheKey, @@ -750,14 +750,14 @@ func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilHandlesTimezoneCorrectly( s.Assert().Equal(tranche.ExpirationTime.Unix(), timeInPST.Unix()) } -func (s *MsgServerTestSuite) TestPlaceLimitOrderGoodTilAlreadyExpiredFails() { +func (s *DexTestSuite) TestPlaceLimitOrderGoodTilAlreadyExpiredFails() { s.fundAliceBalances(10, 0) now := time.Now() yesterday := time.Now().AddDate(0, 0, -1) s.nextBlockWithTime(now) - _, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + _, err := s.msgServer.PlaceLimitOrder(s.GoCtx, &types.MsgPlaceLimitOrder{ Creator: s.alice.String(), Receiver: s.alice.String(), TokenIn: "TokenA", diff --git a/x/dex/keeper/integration_withdraw_multi_test.go b/x/dex/keeper/integration_withdraw_multi_test.go index 6b092f4c3..410b2878d 100644 --- a/x/dex/keeper/integration_withdraw_multi_test.go +++ b/x/dex/keeper/integration_withdraw_multi_test.go @@ -5,7 +5,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestWithdrawMultiFailure() { +func (s *DexTestSuite) TestWithdrawMultiFailure() { s.fundAliceBalances(50, 50) // GIVEN // alice deposits 5 A, 5 B in tick 0 fee 0 @@ -26,7 +26,7 @@ func (s *MsgServerTestSuite) TestWithdrawMultiFailure() { ) } -func (s *MsgServerTestSuite) TestWithdrawMultiSuccess() { +func (s *DexTestSuite) TestWithdrawMultiSuccess() { s.fundAliceBalances(50, 50) // GIVEN diff --git a/x/dex/keeper/integration_withdraw_test.go b/x/dex/keeper/integration_withdraw_test.go index afeeb89e9..4b2d100b3 100644 --- a/x/dex/keeper/integration_withdraw_test.go +++ b/x/dex/keeper/integration_withdraw_test.go @@ -7,7 +7,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestPartialWithdrawOnlyA() { +func (s *DexTestSuite) TestPartialWithdrawOnlyA() { s.fundAliceBalances(50, 50) // CASE // Alice deposits 10 of A at tick 0, fee tier 0 @@ -32,7 +32,7 @@ func (s *MsgServerTestSuite) TestPartialWithdrawOnlyA() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestPartialWithdrawOnlyB() { +func (s *DexTestSuite) TestPartialWithdrawOnlyB() { s.fundAliceBalances(50, 50) // CASE // Alice deposits 10 of B at tick 0, fee tier 0 @@ -57,7 +57,7 @@ func (s *MsgServerTestSuite) TestPartialWithdrawOnlyB() { s.assertCurr0To1(1) } -func (s *MsgServerTestSuite) TestFullWithdrawOnlyB() { +func (s *DexTestSuite) TestFullWithdrawOnlyB() { s.fundAliceBalances(50, 50) // CASE // Alice deposits 10 of B at tick 0, fee tier 0 @@ -82,7 +82,7 @@ func (s *MsgServerTestSuite) TestFullWithdrawOnlyB() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSidedDepositAndPartialWithdrawal() { +func (s *DexTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSidedDepositAndPartialWithdrawal() { s.fundAliceBalances(50, 50) // CASE // Alice deposits 10 of A and B with a spread (fee) of +- 3 ticks @@ -112,7 +112,7 @@ func (s *MsgServerTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSid s.assertCurr0To1(3) } -func (s *MsgServerTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSidedDepositAndFulllWithdrawal() { +func (s *DexTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSidedDepositAndFulllWithdrawal() { s.fundAliceBalances(50, 50) // CASE // Alice deposits 10 of A and B with a spread (fee) of +- 3 ticks @@ -141,7 +141,7 @@ func (s *MsgServerTestSuite) TestCurrentTickUpdatesAfterDoubleSidedThenSingleSid s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestTwoFullDoubleSidedRebalancedAtooMuchTick0() { +func (s *DexTestSuite) TestTwoFullDoubleSidedRebalancedAtooMuchTick0() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) // CASE @@ -184,7 +184,7 @@ func (s *MsgServerTestSuite) TestTwoFullDoubleSidedRebalancedAtooMuchTick0() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestTwoFullDoubleSidedRebalancedBtooMuchTick0() { +func (s *DexTestSuite) TestTwoFullDoubleSidedRebalancedBtooMuchTick0() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) // CASE @@ -227,7 +227,7 @@ func (s *MsgServerTestSuite) TestTwoFullDoubleSidedRebalancedBtooMuchTick0() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestWithdrawalFailsWhenNotEnoughShares() { +func (s *DexTestSuite) TestWithdrawalFailsWhenNotEnoughShares() { s.fundAliceBalances(100, 0) // IF Alice deposits 100 @@ -239,14 +239,14 @@ func (s *MsgServerTestSuite) TestWithdrawalFailsWhenNotEnoughShares() { s.aliceWithdrawFails(err, NewWithdrawal(200, 0, 1)) } -func (s *MsgServerTestSuite) TestWithdrawalFailsWithNonExistentPair() { +func (s *DexTestSuite) TestWithdrawalFailsWithNonExistentPair() { s.fundAliceBalances(100, 0) // IF Alice Deposists 100 s.aliceDeposits(NewDeposit(100, 0, 0, 1)) // WHEN Alice tries to withdraw from a nonexistent tokenPair - _, err := s.msgServer.Withdrawal(s.goCtx, &types.MsgWithdrawal{ + _, err := s.msgServer.Withdrawal(s.GoCtx, &types.MsgWithdrawal{ Creator: s.alice.String(), Receiver: s.alice.String(), TokenA: "TokenX", diff --git a/x/dex/keeper/integration_withdrawfilled_test.go b/x/dex/keeper/integration_withdrawfilled_test.go index 2ff2cd1a1..2f8b4c651 100644 --- a/x/dex/keeper/integration_withdrawfilled_test.go +++ b/x/dex/keeper/integration_withdrawfilled_test.go @@ -6,7 +6,7 @@ import ( "github.com/neutron-org/neutron/x/dex/types" ) -func (s *MsgServerTestSuite) TestWithdrawFilledSimpleFull() { +func (s *DexTestSuite) TestWithdrawFilledSimpleFull() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) // CASE @@ -39,11 +39,11 @@ func (s *MsgServerTestSuite) TestWithdrawFilledSimpleFull() { s.assertCurr0To1(math.MaxInt64) // Assert that the LimitOrderTrancheUser has been deleted - _, found := s.app.DexKeeper.GetLimitOrderTrancheUser(s.ctx, s.alice.String(), trancheKey) + _, found := s.App.DexKeeper.GetLimitOrderTrancheUser(s.Ctx, s.alice.String(), trancheKey) s.Assert().False(found) } -func (s *MsgServerTestSuite) TestWithdrawFilledPartial() { +func (s *DexTestSuite) TestWithdrawFilledPartial() { s.fundAliceBalances(100, 100) s.fundBobBalances(100, 100) @@ -73,11 +73,11 @@ func (s *MsgServerTestSuite) TestWithdrawFilledPartial() { s.assertBobBalances(90, 110) // the LimitOrderTrancheUser still exists - _, found := s.app.DexKeeper.GetLimitOrderTrancheUser(s.ctx, s.alice.String(), trancheKey) + _, found := s.App.DexKeeper.GetLimitOrderTrancheUser(s.Ctx, s.alice.String(), trancheKey) s.Assert().True(found) } -func (s *MsgServerTestSuite) TestWithdrawFilledTwiceFullSameDirection() { +func (s *DexTestSuite) TestWithdrawFilledTwiceFullSameDirection() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) // CASE @@ -129,7 +129,7 @@ func (s *MsgServerTestSuite) TestWithdrawFilledTwiceFullSameDirection() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestWithdrawFilledTwiceFullDifferentDirection() { +func (s *DexTestSuite) TestWithdrawFilledTwiceFullDifferentDirection() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) // CASE @@ -181,7 +181,7 @@ func (s *MsgServerTestSuite) TestWithdrawFilledTwiceFullDifferentDirection() { s.assertCurr0To1(math.MaxInt64) } -func (s *MsgServerTestSuite) TestWithdrawFilledEmptyFilled() { +func (s *DexTestSuite) TestWithdrawFilledEmptyFilled() { s.fundAliceBalances(50, 50) // GIVEN @@ -196,7 +196,7 @@ func (s *MsgServerTestSuite) TestWithdrawFilledEmptyFilled() { s.aliceWithdrawLimitSellFails(err, trancheKey) } -func (s *MsgServerTestSuite) TestWithdrawFilledNoExistingOrderByUser() { +func (s *DexTestSuite) TestWithdrawFilledNoExistingOrderByUser() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) @@ -212,7 +212,7 @@ func (s *MsgServerTestSuite) TestWithdrawFilledNoExistingOrderByUser() { s.bobWithdrawLimitSellFails(err, trancheKey) } -func (s *MsgServerTestSuite) TestWithdrawFilledOtherUserOrder() { +func (s *DexTestSuite) TestWithdrawFilledOtherUserOrder() { s.fundAliceBalances(50, 50) s.fundBobBalances(50, 50) diff --git a/x/dex/keeper/limit_order_expiration_test.go b/x/dex/keeper/limit_order_expiration_test.go index e73978b37..598a6ac25 100644 --- a/x/dex/keeper/limit_order_expiration_test.go +++ b/x/dex/keeper/limit_order_expiration_test.go @@ -2,20 +2,14 @@ package keeper_test import ( "strconv" - "testing" "time" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/x/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/require" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func createNLimitOrderExpiration( keeper *keeper.Keeper, ctx sdk.Context, @@ -62,55 +56,51 @@ func createLimitOrderExpirationAndTranches( } } -func TestLimitOrderExpirationGet(t *testing.T) { - keeper, ctx := keepertest.DexKeeper(t) - items := createNLimitOrderExpiration(keeper, ctx, 10) +func (s *DexTestSuite) TestLimitOrderExpirationGet() { + keeper := s.App.DexKeeper + items := createNLimitOrderExpiration(&keeper, s.Ctx, 10) for _, item := range items { - rst, found := keeper.GetLimitOrderExpiration(ctx, + rst, found := keeper.GetLimitOrderExpiration(s.Ctx, item.ExpirationTime, item.TrancheRef, ) - require.True(t, found) - require.Equal(t, - item, - *rst, - ) + s.True(found) + s.Equal(item, *rst) } } -func TestLimitOrderExpirationRemove(t *testing.T) { - keeper, ctx := keepertest.DexKeeper(t) - items := createNLimitOrderExpiration(keeper, ctx, 10) +func (s *DexTestSuite) TestLimitOrderExpirationRemove() { + keeper := s.App.DexKeeper + items := createNLimitOrderExpiration(&keeper, s.Ctx, 10) for _, item := range items { - keeper.RemoveLimitOrderExpiration(ctx, + keeper.RemoveLimitOrderExpiration(s.Ctx, item.ExpirationTime, item.TrancheRef, ) - _, found := keeper.GetLimitOrderExpiration(ctx, + _, found := keeper.GetLimitOrderExpiration(s.Ctx, item.ExpirationTime, item.TrancheRef, ) - require.False(t, found) + s.False(found) } } -func TestLimitOrderExpirationGetAll(t *testing.T) { - keeper, ctx := keepertest.DexKeeper(t) - items := createNLimitOrderExpiration(keeper, ctx, 10) +func (s *DexTestSuite) TestLimitOrderExpirationGetAll() { + items := createNLimitOrderExpiration(&s.App.DexKeeper, s.Ctx, 10) pointerItems := make([]*types.LimitOrderExpiration, len(items)) for i := range items { pointerItems[i] = &items[i] } - require.ElementsMatch(t, + s.ElementsMatch( pointerItems, - keeper.GetAllLimitOrderExpiration(ctx), + s.App.DexKeeper.GetAllLimitOrderExpiration(s.Ctx), ) } -func TestPurgeExpiredLimitOrders(t *testing.T) { - keeper, ctx := keepertest.DexKeeper(t) +func (s *DexTestSuite) TestPurgeExpiredLimitOrders() { + keeper := s.App.DexKeeper now := time.Now().UTC() - ctx = ctx.WithBlockTime(now) + ctx := s.Ctx.WithBlockTime(now) ctx = ctx.WithBlockGasMeter(sdk.NewGasMeter(1000000)) yesterday := now.AddDate(0, 0, -1) @@ -125,33 +115,33 @@ func TestPurgeExpiredLimitOrders(t *testing.T) { nextWeek, } - createLimitOrderExpirationAndTranches(keeper, ctx, expTimes) - keeper.PurgeExpiredLimitOrders(ctx, now) + createLimitOrderExpirationAndTranches(&keeper, s.Ctx, expTimes) + keeper.PurgeExpiredLimitOrders(s.Ctx, now) // Only future LimitOrderExpiration items still exist - expList := keeper.GetAllLimitOrderExpiration(ctx) - require.Equal(t, 2, len(expList)) - require.Equal(t, tomorrow, expList[0].ExpirationTime) - require.Equal(t, nextWeek, expList[1].ExpirationTime) + expList := keeper.GetAllLimitOrderExpiration(s.Ctx) + s.Equal(2, len(expList)) + s.Equal(tomorrow, expList[0].ExpirationTime) + s.Equal(nextWeek, expList[1].ExpirationTime) // Only future LimitOrderTranches Exist - trancheList := keeper.GetAllLimitOrderTrancheAtIndex(ctx, defaultTradePairID1To0, 0) - require.Equal(t, 2, len(trancheList)) - require.Equal(t, tomorrow, *trancheList[0].ExpirationTime) - require.Equal(t, nextWeek, *trancheList[1].ExpirationTime) + trancheList := keeper.GetAllLimitOrderTrancheAtIndex(s.Ctx, defaultTradePairID1To0, 0) + s.Equal(2, len(trancheList)) + s.Equal(tomorrow, *trancheList[0].ExpirationTime) + s.Equal(nextWeek, *trancheList[1].ExpirationTime) // InactiveLimitOrderTranches have been created for the expired tranched inactiveTrancheList := keeper.GetAllInactiveLimitOrderTranche(ctx) - require.Equal(t, 3, len(inactiveTrancheList)) - require.Equal(t, yesterday, *inactiveTrancheList[0].ExpirationTime) - require.Equal(t, yesterday, *inactiveTrancheList[1].ExpirationTime) - require.Equal(t, now, *inactiveTrancheList[2].ExpirationTime) + s.Equal(3, len(inactiveTrancheList)) + s.Equal(yesterday, *inactiveTrancheList[0].ExpirationTime) + s.Equal(yesterday, *inactiveTrancheList[1].ExpirationTime) + s.Equal(now, *inactiveTrancheList[2].ExpirationTime) } -func TestPurgeExpiredLimitOrdersAtBlockGasLimit(t *testing.T) { - keeper, ctx := keepertest.DexKeeper(t) +func (s *DexTestSuite) TestPurgeExpiredLimitOrdersAtBlockGasLimit() { + keeper := s.App.DexKeeper now := time.Now().UTC() - ctx = ctx.WithBlockTime(now) + ctx := s.Ctx.WithBlockTime(now) gasLimit := 1000000 ctx = ctx.WithBlockGasMeter(sdk.NewGasMeter(uint64(gasLimit))) timeRequiredToPurgeOneNonJIT := 35000 @@ -166,7 +156,7 @@ func TestPurgeExpiredLimitOrdersAtBlockGasLimit(t *testing.T) { yesterday, yesterday, } - createLimitOrderExpirationAndTranches(keeper, ctx, expTimes) + createLimitOrderExpirationAndTranches(&keeper, ctx, expTimes) // IF blockGasMeter is nearing the GoodTilPurgeBuffer ctx = ctx.WithGasMeter(sdk.NewGasMeter(uint64(gasLimit))) @@ -176,25 +166,20 @@ func TestPurgeExpiredLimitOrdersAtBlockGasLimit(t *testing.T) { keeper.PurgeExpiredLimitOrders(ctx, now) // THEN GoodTilPurgeHitGasLimit event is emitted - keepertest.AssertEventEmitted( - t, - ctx, - types.GoodTilPurgeHitGasLimitEventKey, - "Gas Limit Event not emitted", - ) + s.AssertEventValueEmitted(types.GoodTilPurgeHitGasLimitEventKey, "Gas Limit Event not emitted") // All JIT expirations are purged but other expirations remain expList := keeper.GetAllLimitOrderExpiration(ctx) // NOTE: this test is very brittle because it relies on an estimated cost // for deleting expirations. If this cost changes the number of remaining // expirations may change - require.Equal(t, 1, len(expList)) + s.Equal(1, len(expList)) } -func TestPurgeExpiredLimitOrdersAtBlockGasLimitOnlyJIT(t *testing.T) { - keeper, ctx := keepertest.DexKeeper(t) +func (s *DexTestSuite) TestPurgeExpiredLimitOrdersAtBlockGasLimitOnlyJIT() { + keeper := s.App.DexKeeper now := time.Now().UTC() - ctx = ctx.WithBlockTime(now) + ctx := s.Ctx.WithBlockTime(now) gasLimt := 1000000 ctx = ctx.WithBlockGasMeter(sdk.NewGasMeter(uint64(gasLimt))) gasUsed := gasLimt - types.GoodTilPurgeGasBuffer - 30000 @@ -209,20 +194,15 @@ func TestPurgeExpiredLimitOrdersAtBlockGasLimitOnlyJIT(t *testing.T) { types.JITGoodTilTime(), } - createLimitOrderExpirationAndTranches(keeper, ctx, expTimes) + createLimitOrderExpirationAndTranches(&keeper, ctx, expTimes) ctx = ctx.WithGasMeter(sdk.NewGasMeter(100000)) ctx.BlockGasMeter().ConsumeGas(uint64(gasUsed), "stub block gas usage") keeper.PurgeExpiredLimitOrders(ctx, now) // GoodTilPurgeHitGasLimit event is not been emitted - keepertest.AssertEventNotEmitted( - t, - ctx, - types.GoodTilPurgeHitGasLimitEventGas, - "Hit gas limit purging JIT expirations", - ) + s.AssertEventValueNotEmitted(types.GoodTilPurgeHitGasLimitEventGas, "Hit gas limit purging JIT expirations") // All JIT expirations are purged expList := keeper.GetAllLimitOrderExpiration(ctx) - require.Equal(t, 0, len(expList)) + s.Equal(0, len(expList)) } diff --git a/x/dex/keeper/limit_order_tranche_user_test.go b/x/dex/keeper/limit_order_tranche_user_test.go index b9d8dd956..3c507ce49 100644 --- a/x/dex/keeper/limit_order_tranche_user_test.go +++ b/x/dex/keeper/limit_order_tranche_user_test.go @@ -74,7 +74,7 @@ func TestLimitOrderTrancheUserRemove(t *testing.T) { } } -func (s *MsgServerTestSuite) TestGetAllLimitOrders() { +func (s *DexTestSuite) TestGetAllLimitOrders() { // WHEN Alice places 2 limit orders s.fundAliceBalances(20, 20) s.fundBobBalances(20, 20) @@ -83,7 +83,7 @@ func (s *MsgServerTestSuite) TestGetAllLimitOrders() { s.bobLimitSells("TokenA", -1, 10) // THEN GetAllLimitOrders returns alice's same two orders - LOList := s.app.DexKeeper.GetAllLimitOrderTrancheUserForAddress(s.ctx, s.alice) + LOList := s.App.DexKeeper.GetAllLimitOrderTrancheUserForAddress(s.Ctx, s.alice) s.Assert().Equal(2, len(LOList)) s.Assert().Equal(&types.LimitOrderTrancheUser{ TradePairID: defaultTradePairID1To0, diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 1fc93edee..cdfb199cf 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -2,39 +2,15 @@ package keeper_test import ( "math" - "testing" sdkmath "cosmossdk.io/math" - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - dualityapp "github.com/neutron-org/neutron/app" - "github.com/neutron-org/neutron/testutil" - keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/suite" ) -type LiquidityTestSuite struct { - suite.Suite - app *dualityapp.App - ctx sdk.Context -} - // TODO: In an ideal world, there should be enough lower level testing that the swap tests // don't need to test both LO and LP. At the level of swap testing these should be indistinguishable. - -func (s *LiquidityTestSuite) SetupTest() { - s.app = testutil.Setup(s.T()) - ctx := s.app.BaseApp.NewContext(false, tmproto.Header{}) - ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) - s.ctx = ctx -} - -func TestLiquidityTestSuite(t *testing.T) { - suite.Run(t, new(LiquidityTestSuite)) -} - -func (s *LiquidityTestSuite) TestSwap0To1NoLiquidity() { +func (s *DexTestSuite) TestSwap0To1NoLiquidity() { // GIVEN no liqudity of token B (deposit only token A and LO of token A) s.addDeposit(NewDeposit(10, 0, 0, 1)) s.placeGTCLimitOrder("TokenA", 1000, 10) @@ -44,12 +20,12 @@ func (s *LiquidityTestSuite) TestSwap0To1NoLiquidity() { // THEN swap should do nothing s.assertSwapOutput(tokenIn, 0, tokenOut, 0) - s.assertDexBalances(1010, 0) + s.assertTickBalances(1010, 0) s.assertCurr0To1(math.MaxInt64) } -func (s *LiquidityTestSuite) TestSwap1To0NoLiquidity() { +func (s *DexTestSuite) TestSwap1To0NoLiquidity() { // GIVEN no liqudity of token A (deposit only token B and LO of token B) s.addDeposit(NewDeposit(0, 10, 0, 1)) s.placeGTCLimitOrder("TokenB", 1000, 10) @@ -59,14 +35,14 @@ func (s *LiquidityTestSuite) TestSwap1To0NoLiquidity() { // THEN swap should do nothing s.assertSwapOutput(tokenIn, 0, tokenOut, 0) - s.assertDexBalances(0, 1010) + s.assertTickBalances(0, 1010) s.assertCurr1To0(math.MinInt64) } // swaps against LPs only ///////////////////////////////////////////////////// -func (s *LiquidityTestSuite) TestSwap0To1PartialFillLP() { +func (s *DexTestSuite) TestSwap0To1PartialFillLP() { // GIVEN 10 tokenB LP @ tick 0 fee 1 s.addDeposit(NewDeposit(0, 10, 0, 1)) @@ -77,13 +53,13 @@ func (s *LiquidityTestSuite) TestSwap0To1PartialFillLP() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 11, tokenOut, 10) - s.assertDexBalances(11, 0) + s.assertTickBalances(11, 0) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-1) } -func (s *LiquidityTestSuite) TestSwap1To0PartialFillLP() { +func (s *DexTestSuite) TestSwap1To0PartialFillLP() { // GIVEN 10 tokenA LP @ tick 0 fee 1 s.addDeposit(NewDeposit(10, 0, 0, 1)) @@ -94,13 +70,13 @@ func (s *LiquidityTestSuite) TestSwap1To0PartialFillLP() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 11, tokenOut, 10) - s.assertDexBalances(0, 11) + s.assertTickBalances(0, 11) s.assertCurr0To1(1) s.assertCurr1To0(math.MinInt64) } -func (s *LiquidityTestSuite) TestSwap0To1FillLP() { +func (s *DexTestSuite) TestSwap0To1FillLP() { // GIVEN 100 tokenB LP @ tick 200 fee 5 s.addDeposit(NewDeposit(0, 100, 200, 5)) @@ -111,13 +87,13 @@ func (s *LiquidityTestSuite) TestSwap0To1FillLP() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 100, tokenOut, 97) - s.assertDexBalances(100, 3) + s.assertTickBalances(100, 3) s.assertCurr0To1(205) s.assertCurr1To0(195) } -func (s *LiquidityTestSuite) TestSwap1To0FillLP() { +func (s *DexTestSuite) TestSwap1To0FillLP() { // GIVEN 100 tokenA LP @ tick -20,000 fee 1 s.addDeposit(NewDeposit(100, 0, -20_000, 1)) @@ -129,13 +105,13 @@ func (s *LiquidityTestSuite) TestSwap1To0FillLP() { s.Assert().Equal("TokenA", tokenOut.Denom) // NOTE: Given rounding for amountOut, amountIn does not use the full maxAmount s.assertSwapOutput(tokenIn, 97, tokenOut, 13) - s.assertDexBalances(87, 97) + s.assertTickBalances(87, 97) s.assertCurr0To1(-19_999) s.assertCurr1To0(-20_001) } -func (s *LiquidityTestSuite) TestSwap0To1FillLPHighFee() { +func (s *DexTestSuite) TestSwap0To1FillLPHighFee() { // GIVEN 100 tokenB LP @ tick 20,000 fee 1,000 s.addDeposit(NewDeposit(0, 100, 20_000, 1_000)) @@ -146,13 +122,13 @@ func (s *LiquidityTestSuite) TestSwap0To1FillLPHighFee() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 98, tokenOut, 12) - s.assertDexBalances(98, 88) + s.assertTickBalances(98, 88) s.assertCurr0To1(21_000) s.assertCurr1To0(19_000) } -func (s *LiquidityTestSuite) TestSwap1To0FillLPHighFee() { +func (s *DexTestSuite) TestSwap1To0FillLPHighFee() { // GIVEN 1000 tokenA LP @ tick 20,000 fee 1000 s.addDeposit(NewDeposit(1000, 0, 20_000, 1000)) @@ -163,13 +139,13 @@ func (s *LiquidityTestSuite) TestSwap1To0FillLPHighFee() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 100, tokenOut, 668) - s.assertDexBalances(332, 100) + s.assertTickBalances(332, 100) s.assertCurr0To1(21_000) s.assertCurr1To0(19_000) } -func (s *LiquidityTestSuite) TestSwap0To1PartialFillMultipleLP() { +func (s *DexTestSuite) TestSwap0To1PartialFillMultipleLP() { // GIVEN 300 worth of tokenB LPs s.addDeposits( NewDeposit(0, 100, -20_000, 1), @@ -184,13 +160,13 @@ func (s *LiquidityTestSuite) TestSwap0To1PartialFillMultipleLP() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 42, tokenOut, 300) - s.assertDexBalances(42, 0) + s.assertTickBalances(42, 0) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-20_001) } -func (s *LiquidityTestSuite) TestSwap1To0PartialFillMultipleLP() { +func (s *DexTestSuite) TestSwap1To0PartialFillMultipleLP() { // GIVEN 300 worth of tokenA LPs s.addDeposits( NewDeposit(100, 0, 20_000, 1), @@ -205,13 +181,13 @@ func (s *LiquidityTestSuite) TestSwap1To0PartialFillMultipleLP() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 42, tokenOut, 300) - s.assertDexBalances(0, 42) + s.assertTickBalances(0, 42) s.assertCurr0To1(20_001) s.assertCurr1To0(math.MinInt64) } -func (s *LiquidityTestSuite) TestSwap0To1FillMultipleLP() { +func (s *DexTestSuite) TestSwap0To1FillMultipleLP() { // GIVEN 400 worth of tokenB LPs s.addDeposits( NewDeposit(0, 100, -20, 1), @@ -227,13 +203,13 @@ func (s *LiquidityTestSuite) TestSwap0To1FillMultipleLP() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 400, tokenOut, 400) - s.assertDexBalances(400, 0) + s.assertTickBalances(400, 0) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-21) } -func (s *LiquidityTestSuite) TestSwap1To0FillMultipleLP() { +func (s *DexTestSuite) TestSwap1To0FillMultipleLP() { // GIVEN 400 worth of tokenA LPs s.addDeposits( NewDeposit(100, 0, 20, 1), @@ -249,13 +225,13 @@ func (s *LiquidityTestSuite) TestSwap1To0FillMultipleLP() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 400, tokenOut, 400) - s.assertDexBalances(0, 400) + s.assertTickBalances(0, 400) s.assertCurr0To1(21) s.assertCurr1To0(math.MinInt64) } -func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountUsed() { +func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsed() { // GIVEN 10 TokenB available s.addDeposits(NewDeposit(0, 10, 0, 1)) @@ -264,10 +240,10 @@ func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountUsed() { // THEN swap should return 6 TokenA in and 5 TokenB out s.assertSwapOutput(tokenIn, 6, tokenOut, 5) - s.assertDexBalances(6, 5) + s.assertTickBalances(6, 5) } -func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountUsed() { +func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsed() { // GIVEN 10 TokenA available s.addDeposits(NewDeposit(10, 0, 0, 1)) @@ -276,10 +252,10 @@ func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountUsed() { // THEN swap should return 6 TokenB in and 5 TokenA out s.assertSwapOutput(tokenIn, 6, tokenOut, 5) - s.assertDexBalances(5, 6) + s.assertTickBalances(5, 6) } -func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountNotUsed() { +func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsed() { // GIVEN 10 TokenB available s.addDeposits(NewDeposit(0, 10, 0, 1)) @@ -288,10 +264,10 @@ func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountNotUsed() { // THEN swap should return 8 TokenA in and 7 TokenB out s.assertSwapOutput(tokenIn, 8, tokenOut, 7) - s.assertDexBalances(8, 3) + s.assertTickBalances(8, 3) } -func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountNotUsed() { +func (s *DexTestSuite) TestSwap1To0LPMaxAmountNotUsed() { // GIVEN 10 TokenA available s.addDeposits(NewDeposit(10, 0, 0, 1)) @@ -300,10 +276,10 @@ func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountNotUsed() { // THEN swap should return 8 TokenB in and 7 TokenA out s.assertSwapOutput(tokenIn, 8, tokenOut, 7) - s.assertDexBalances(3, 8) + s.assertTickBalances(3, 8) } -func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { +func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { // GIVEN 50 TokenB available s.addDeposits( NewDeposit(0, 5, 0, 1), @@ -318,10 +294,10 @@ func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { // THEN swap should return 24 TokenA in and 20 TokenB out s.assertSwapOutput(tokenIn, 24, tokenOut, 20) - s.assertDexBalances(24, 30) + s.assertTickBalances(24, 30) } -func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { +func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { // GIVEN 50 TokenA available s.addDeposits( NewDeposit(5, 0, 0, 1), @@ -336,10 +312,10 @@ func (s *LiquidityTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { // THEN swap should return 20 TokenB in and 20 TokenA out s.assertSwapOutput(tokenIn, 20, tokenOut, 20) - s.assertDexBalances(30, 20) + s.assertTickBalances(30, 20) } -func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { +func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { // GIVEN 50 TokenB available s.addDeposits( NewDeposit(0, 5, 0, 1), @@ -354,12 +330,12 @@ func (s *LiquidityTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { // THEN swap should return 19 TokenA in and 15 TokenB out s.assertSwapOutput(tokenIn, 18, tokenOut, 15) - s.assertDexBalances(18, 35) + s.assertTickBalances(18, 35) } // swaps against LOs only ///////////////////////////////////////////////////// -func (s *LiquidityTestSuite) TestSwap0To1PartialFillLO() { +func (s *DexTestSuite) TestSwap0To1PartialFillLO() { // GIVEN 10 tokenB LO @ tick 1,000 s.placeGTCLimitOrder("TokenB", 10, 1_000) @@ -370,10 +346,10 @@ func (s *LiquidityTestSuite) TestSwap0To1PartialFillLO() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 12, tokenOut, 10) - s.assertDexBalances(12, 0) + s.assertTickBalances(12, 0) } -func (s *LiquidityTestSuite) TestSwap1To0PartialFillLO() { +func (s *DexTestSuite) TestSwap1To0PartialFillLO() { // GIVEN 10 tokenA LO @ tick -1,000 s.placeGTCLimitOrder("TokenA", 10, -1_000) @@ -384,13 +360,13 @@ func (s *LiquidityTestSuite) TestSwap1To0PartialFillLO() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 12, tokenOut, 10) - s.assertDexBalances(0, 12) + s.assertTickBalances(0, 12) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(math.MinInt64) } -func (s *LiquidityTestSuite) TestSwap0To1FillLO() { +func (s *DexTestSuite) TestSwap0To1FillLO() { // GIVEN 100 tokenB LO @ tick 10,000 s.placeGTCLimitOrder("TokenB", 100, 10_000) @@ -401,13 +377,13 @@ func (s *LiquidityTestSuite) TestSwap0To1FillLO() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 98, tokenOut, 36) - s.assertDexBalances(98, 64) + s.assertTickBalances(98, 64) s.assertCurr0To1(10_000) s.assertCurr1To0(math.MinInt64) } -func (s *LiquidityTestSuite) TestSwap1To0FillLO() { +func (s *DexTestSuite) TestSwap1To0FillLO() { // GIVEN 100 tokenA LO @ tick 10,000 s.placeGTCLimitOrder("TokenA", 100, -10_000) @@ -418,13 +394,13 @@ func (s *LiquidityTestSuite) TestSwap1To0FillLO() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 9, tokenOut, 3) - s.assertDexBalances(97, 9) + s.assertTickBalances(97, 9) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-10_000) } -func (s *LiquidityTestSuite) TestSwap0To1FillMultipleLO() { +func (s *DexTestSuite) TestSwap0To1FillMultipleLO() { // GIVEN 300 tokenB across multiple LOs s.placeGTCLimitOrder("TokenB", 100, 1_000) s.placeGTCLimitOrder("TokenB", 100, 1_001) @@ -437,13 +413,13 @@ func (s *LiquidityTestSuite) TestSwap0To1FillMultipleLO() { s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) s.assertSwapOutput(tokenIn, 300, tokenOut, 270) - s.assertDexBalances(300, 30) + s.assertTickBalances(300, 30) s.assertCurr0To1(1_002) s.assertCurr1To0(math.MinInt64) } -func (s *LiquidityTestSuite) TestSwap1To0FillMultipleLO() { +func (s *DexTestSuite) TestSwap1To0FillMultipleLO() { // GIVEN 300 tokenA across multiple LOs s.placeGTCLimitOrder("TokenA", 100, -1_000) s.placeGTCLimitOrder("TokenA", 100, -1_001) @@ -456,13 +432,13 @@ func (s *LiquidityTestSuite) TestSwap1To0FillMultipleLO() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) s.assertSwapOutput(tokenIn, 300, tokenOut, 270) - s.assertDexBalances(30, 300) + s.assertTickBalances(30, 300) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-1_002) } -func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountUsed() { +func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsed() { // GIVEN 10 TokenB available s.placeGTCLimitOrder("TokenB", 10, 1) @@ -471,10 +447,10 @@ func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountUsed() { // THEN swap should return 6 TokenA in and 5 TokenB out s.assertSwapOutput(tokenIn, 6, tokenOut, 5) - s.assertDexBalances(6, 5) + s.assertTickBalances(6, 5) } -func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountUsed() { +func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsed() { // GIVEN 10 TokenA available s.placeGTCLimitOrder("TokenA", 10, 0) @@ -483,10 +459,10 @@ func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountUsed() { // THEN swap should return 5 TokenB in and 5 TokenA out s.assertSwapOutput(tokenIn, 5, tokenOut, 5) - s.assertDexBalances(5, 5) + s.assertTickBalances(5, 5) } -func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountNotUsed() { +func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsed() { // GIVEN 10 TokenB available s.placeGTCLimitOrder("TokenB", 10, 1) @@ -495,10 +471,10 @@ func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountNotUsed() { // THEN swap should return 8 TokenA in and 7 TokenB out s.assertSwapOutput(tokenIn, 8, tokenOut, 7) - s.assertDexBalances(8, 3) + s.assertTickBalances(8, 3) } -func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountNotUsed() { +func (s *DexTestSuite) TestSwap1To0LOMaxAmountNotUsed() { // GIVEN 10 TokenA available s.placeGTCLimitOrder("TokenA", 10, 1) @@ -507,10 +483,10 @@ func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountNotUsed() { // THEN swap should return 8 TokenB in and 8 TokenA out s.assertSwapOutput(tokenIn, 8, tokenOut, 8) - s.assertDexBalances(2, 8) + s.assertTickBalances(2, 8) } -func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { +func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { // GIVEN 50 TokenB available s.placeGTCLimitOrder("TokenB", 5, 0) s.placeGTCLimitOrder("TokenB", 5, 1) @@ -523,10 +499,10 @@ func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { // THEN swap should return 23 TokenA in and 20 TokenB out s.assertSwapOutput(tokenIn, 23, tokenOut, 20) - s.assertDexBalances(23, 30) + s.assertTickBalances(23, 30) } -func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { +func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { // GIVEN 50 TokenA available s.placeGTCLimitOrder("TokenA", 5, 0) s.placeGTCLimitOrder("TokenA", 5, 1) @@ -539,10 +515,10 @@ func (s *LiquidityTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { // THEN swap should return 20 TokenB in and 20 TokenA out s.assertSwapOutput(tokenIn, 20, tokenOut, 20) - s.assertDexBalances(30, 20) + s.assertTickBalances(30, 20) } -func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { +func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { // GIVEN 50 TokenB available s.placeGTCLimitOrder("TokenB", 5, 0) s.placeGTCLimitOrder("TokenB", 5, 1) @@ -555,12 +531,12 @@ func (s *LiquidityTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { // THEN swap should return 19 TokenA in and 16 TokenB out s.assertSwapOutput(tokenIn, 19, tokenOut, 16) - s.assertDexBalances(19, 34) + s.assertTickBalances(19, 34) } // Swap LO and LP //////////////////////////////////////////////////////////// -func (s *LiquidityTestSuite) TestSwapExhaustsLOAndLP() { +func (s *DexTestSuite) TestSwapExhaustsLOAndLP() { s.placeGTCLimitOrder("TokenB", 10, 0) s.addDeposits(NewDeposit(0, 10, 0, 1)) @@ -569,34 +545,34 @@ func (s *LiquidityTestSuite) TestSwapExhaustsLOAndLP() { // There should be total of 6 tick updates // (limitOrder, 2x deposit, 2x swap LP, swap LO) - keepertest.AssertNEventsEmitted(s.T(), s.ctx, types.TickUpdateEventKey, 6) + s.AssertNEventValuesEmitted(types.TickUpdateEventKey, 6) } // Test helpers /////////////////////////////////////////////////////////////// -func (s *LiquidityTestSuite) addDeposit(deposit *Deposit) { - pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, defaultPairID, deposit.TickIndex, deposit.Fee) +func (s *DexTestSuite) addDeposit(deposit *Deposit) { + pool, err := s.App.DexKeeper.GetOrInitPool(s.Ctx, defaultPairID, deposit.TickIndex, deposit.Fee) s.Assert().NoError(err) pool.LowerTick0.ReservesMakerDenom = pool.LowerTick0.ReservesMakerDenom.Add(deposit.AmountA) pool.UpperTick1.ReservesMakerDenom = pool.UpperTick1.ReservesMakerDenom.Add(deposit.AmountB) - s.app.DexKeeper.SetPool(s.ctx, pool) + s.App.DexKeeper.SetPool(s.Ctx, pool) } -func (s *LiquidityTestSuite) addDeposits(deposits ...*Deposit) { +func (s *DexTestSuite) addDeposits(deposits ...*Deposit) { for _, deposit := range deposits { s.addDeposit(deposit) } } -func (s *LiquidityTestSuite) placeGTCLimitOrder( +func (s *DexTestSuite) placeGTCLimitOrder( makerDenom string, amountIn int64, tickIndex int64, ) { tradePairID := defaultPairID.MustTradePairIDFromMaker(makerDenom) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndex) - tranche, err := s.app.DexKeeper.GetOrInitPlaceTranche( - s.ctx, + tranche, err := s.App.DexKeeper.GetOrInitPlaceTranche( + s.Ctx, tradePairID, tickIndexTakerToMaker, nil, @@ -604,18 +580,18 @@ func (s *LiquidityTestSuite) placeGTCLimitOrder( ) s.Assert().NoError(err) tranche.PlaceMakerLimitOrder(sdkmath.NewInt(amountIn)) - s.app.DexKeeper.SaveTranche(s.ctx, tranche) + s.App.DexKeeper.SaveTranche(s.Ctx, tranche) } -func (s *LiquidityTestSuite) swap( +func (s *DexTestSuite) swap( tokenIn string, tokenOut string, maxAmountIn int64, ) (coinIn, coinOut sdk.Coin) { tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) s.Assert().NoError(err) - coinIn, coinOut, _, err = s.app.DexKeeper.Swap( - s.ctx, + coinIn, coinOut, _, err = s.App.DexKeeper.Swap( + s.Ctx, tradePairID, sdkmath.NewInt(maxAmountIn), nil, @@ -625,7 +601,7 @@ func (s *LiquidityTestSuite) swap( return coinIn, coinOut } -func (s *LiquidityTestSuite) swapWithMaxOut( +func (s *DexTestSuite) swapWithMaxOut( tokenIn string, tokenOut string, maxAmountIn int64, @@ -633,8 +609,8 @@ func (s *LiquidityTestSuite) swapWithMaxOut( ) (coinIn, coinOut sdk.Coin) { tradePairID := types.MustNewTradePairID(tokenIn, tokenOut) maxAmountOutInt := sdkmath.NewInt(maxAmountOut) - coinIn, coinOut, _, err := s.app.DexKeeper.Swap( - s.ctx, + coinIn, coinOut, _, err := s.App.DexKeeper.Swap( + s.Ctx, tradePairID, sdkmath.NewInt(maxAmountIn), &maxAmountOutInt, @@ -645,7 +621,7 @@ func (s *LiquidityTestSuite) swapWithMaxOut( return coinIn, coinOut } -func (s *LiquidityTestSuite) assertSwapOutput( +func (s *DexTestSuite) assertSwapOutput( actualIn sdk.Coin, expectedIn int64, actualOut sdk.Coin, @@ -660,15 +636,15 @@ func (s *LiquidityTestSuite) assertSwapOutput( True(amtOut.Equal(sdkmath.NewInt(expectedOut)), "Expected amountOut %d != %s", expectedOut, amtOut) } -func (s *LiquidityTestSuite) assertDexBalances(expectedABalance, expectedBBalance int64) { +func (s *DexTestSuite) assertTickBalances(expectedABalance, expectedBBalance int64) { // NOTE: We can't just check the actual DEX bank balances since we are testing swap // before any transfers take place. Instead we have to sum up the total amount of coins // at each tick expectedAInt := sdkmath.NewInt(expectedABalance) expectedBInt := sdkmath.NewInt(expectedBBalance) allCoins := sdk.Coins{} - ticks := s.app.DexKeeper.GetAllTickLiquidity(s.ctx) - inactiveLOs := s.app.DexKeeper.GetAllInactiveLimitOrderTranche(s.ctx) + ticks := s.App.DexKeeper.GetAllTickLiquidity(s.Ctx) + inactiveLOs := s.App.DexKeeper.GetAllInactiveLimitOrderTranche(s.Ctx) for _, tick := range ticks { switch liquidity := tick.Liquidity.(type) { @@ -702,27 +678,3 @@ func (s *LiquidityTestSuite) assertDexBalances(expectedABalance, expectedBBalanc s.Assert(). True(actualB.Equal(expectedBInt), "TokenB: expected %s != actual %s", expectedBInt, actualB) } - -func (s *LiquidityTestSuite) assertCurr0To1(curr0To1Expected int64) { - curr0To1Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( - s.ctx, - defaultTradePairID0To1, - ) - if curr0To1Expected == math.MaxInt64 { - s.Assert().False(found) - } else { - s.Assert().Equal(curr0To1Expected, curr0To1Actual) - } -} - -func (s *LiquidityTestSuite) assertCurr1To0(curr1To0Expected int64) { - curr1to0Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( - s.ctx, - defaultTradePairID1To0, - ) - if curr1To0Expected == math.MinInt64 { - s.Assert().False(found) - } else { - s.Assert().Equal(curr1To0Expected, curr1to0Actual) - } -} diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index 13a46cf85..f6dd8b43c 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -2,7 +2,6 @@ package keeper_test import ( - "context" "math" "testing" "time" @@ -11,8 +10,7 @@ import ( abci "github.com/cometbft/cometbft/abci/types" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - dualityapp "github.com/neutron-org/neutron/app" - "github.com/neutron-org/neutron/testutil" + "github.com/neutron-org/neutron/testutil/apptesting" math_utils "github.com/neutron-org/neutron/utils/math" . "github.com/neutron-org/neutron/x/dex/keeper" . "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" @@ -21,16 +19,13 @@ import ( ) // / Test suite -type MsgServerTestSuite struct { - suite.Suite - app *dualityapp.App +type DexTestSuite struct { + apptesting.KeeperTestHelper msgServer types.MsgServer - ctx sdk.Context alice sdk.AccAddress bob sdk.AccAddress carol sdk.AccAddress dan sdk.AccAddress - goCtx context.Context } var defaultPairID *types.PairID = &types.PairID{Token0: "TokenA", Token1: "TokenB"} @@ -45,88 +40,76 @@ var defaultTradePairID1To0 *types.TradePairID = &types.TradePairID{ MakerDenom: "TokenA", } -func TestMsgServerTestSuite(t *testing.T) { - suite.Run(t, new(MsgServerTestSuite)) +func TestDexTestSuite(t *testing.T) { + suite.Run(t, new(DexTestSuite)) } -func (s *MsgServerTestSuite) SetupTest() { - app := testutil.Setup(s.T()) - ctx := app.BaseApp.NewContext(false, tmproto.Header{}) - ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) +func (s *DexTestSuite) SetupTest() { + s.Setup() - accAlice := app.AccountKeeper.NewAccountWithAddress(ctx, s.alice) - app.AccountKeeper.SetAccount(ctx, accAlice) - accBob := app.AccountKeeper.NewAccountWithAddress(ctx, s.bob) - app.AccountKeeper.SetAccount(ctx, accBob) - accCarol := app.AccountKeeper.NewAccountWithAddress(ctx, s.carol) - app.AccountKeeper.SetAccount(ctx, accCarol) - accDan := app.AccountKeeper.NewAccountWithAddress(ctx, s.dan) - app.AccountKeeper.SetAccount(ctx, accDan) - - s.app = app - s.msgServer = NewMsgServerImpl(app.DexKeeper) - s.ctx = ctx - s.goCtx = sdk.WrapSDKContext(ctx) s.alice = sdk.AccAddress([]byte("alice")) s.bob = sdk.AccAddress([]byte("bob")) s.carol = sdk.AccAddress([]byte("carol")) s.dan = sdk.AccAddress([]byte("dan")) + + s.msgServer = NewMsgServerImpl(s.App.DexKeeper) } /// Fund accounts -func (s *MsgServerTestSuite) fundAccountBalances(account sdk.AccAddress, aBalance, bBalance int64) { +func (s *DexTestSuite) fundAccountBalances(account sdk.AccAddress, aBalance, bBalance int64) { aBalanceInt := sdkmath.NewInt(aBalance) bBalanceInt := sdkmath.NewInt(bBalance) balances := sdk.NewCoins(NewACoin(aBalanceInt), NewBCoin(bBalanceInt)) - FundAccount(s.app.BankKeeper, s.ctx, account, balances) + + FundAccount(s.App.BankKeeper, s.Ctx, account, balances) s.assertAccountBalances(account, aBalance, bBalance) } -func (s *MsgServerTestSuite) fundAccountBalancesWithDenom( +func (s *DexTestSuite) fundAccountBalancesWithDenom( addr sdk.AccAddress, amounts sdk.Coins, ) { - if err := s.app.BankKeeper.MintCoins(s.ctx, types.ModuleName, amounts); err != nil { + if err := s.App.BankKeeper.MintCoins(s.Ctx, types.ModuleName, amounts); err != nil { panic(err) } - if err := s.app.BankKeeper.SendCoinsFromModuleToAccount(s.ctx, types.ModuleName, addr, amounts); err != nil { + if err := s.App.BankKeeper.SendCoinsFromModuleToAccount(s.Ctx, types.ModuleName, addr, amounts); err != nil { panic(err) } } -func (s *MsgServerTestSuite) fundAliceBalances(a, b int64) { +func (s *DexTestSuite) fundAliceBalances(a, b int64) { s.fundAccountBalances(s.alice, a, b) } -func (s *MsgServerTestSuite) fundBobBalances(a, b int64) { +func (s *DexTestSuite) fundBobBalances(a, b int64) { s.fundAccountBalances(s.bob, a, b) } -func (s *MsgServerTestSuite) fundCarolBalances(a, b int64) { +func (s *DexTestSuite) fundCarolBalances(a, b int64) { s.fundAccountBalances(s.carol, a, b) } -func (s *MsgServerTestSuite) fundDanBalances(a, b int64) { +func (s *DexTestSuite) fundDanBalances(a, b int64) { s.fundAccountBalances(s.dan, a, b) } /// Assert balances -func (s *MsgServerTestSuite) assertAccountBalancesInt( +func (s *DexTestSuite) assertAccountBalancesInt( account sdk.AccAddress, aBalance sdkmath.Int, bBalance sdkmath.Int, ) { - aActual := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenA").Amount + aActual := s.App.BankKeeper.GetBalance(s.Ctx, account, "TokenA").Amount s.Assert().True(aBalance.Equal(aActual), "expected %s != actual %s", aBalance, aActual) - bActual := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenB").Amount + bActual := s.App.BankKeeper.GetBalance(s.Ctx, account, "TokenB").Amount s.Assert().True(bBalance.Equal(bActual), "expected %s != actual %s", bBalance, bActual) } -func (s *MsgServerTestSuite) assertAccountBalances( +func (s *DexTestSuite) assertAccountBalances( account sdk.AccAddress, aBalance int64, bBalance int64, @@ -134,74 +117,74 @@ func (s *MsgServerTestSuite) assertAccountBalances( s.assertAccountBalancesInt(account, sdkmath.NewInt(aBalance), sdkmath.NewInt(bBalance)) } -func (s *MsgServerTestSuite) assertAccountBalanceWithDenom( +func (s *DexTestSuite) assertAccountBalanceWithDenom( account sdk.AccAddress, denom string, expBalance int64, ) { - actualBalance := s.app.BankKeeper.GetBalance(s.ctx, account, denom).Amount + actualBalance := s.App.BankKeeper.GetBalance(s.Ctx, account, denom).Amount expBalanceInt := sdkmath.NewInt(expBalance) s.Assert(). True(expBalanceInt.Equal(actualBalance), "expected %s != actual %s", expBalance, actualBalance) } -func (s *MsgServerTestSuite) assertAliceBalances(a, b int64) { +func (s *DexTestSuite) assertAliceBalances(a, b int64) { s.assertAccountBalances(s.alice, a, b) } -func (s *MsgServerTestSuite) assertAliceBalancesInt(a, b sdkmath.Int) { +func (s *DexTestSuite) assertAliceBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.alice, a, b) } -func (s *MsgServerTestSuite) assertBobBalances(a, b int64) { +func (s *DexTestSuite) assertBobBalances(a, b int64) { s.assertAccountBalances(s.bob, a, b) } -func (s *MsgServerTestSuite) assertBobBalancesInt(a, b sdkmath.Int) { +func (s *DexTestSuite) assertBobBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.bob, a, b) } -func (s *MsgServerTestSuite) assertCarolBalances(a, b int64) { +func (s *DexTestSuite) assertCarolBalances(a, b int64) { s.assertAccountBalances(s.carol, a, b) } -func (s *MsgServerTestSuite) assertCarolBalancesInt(a, b sdkmath.Int) { +func (s *DexTestSuite) assertCarolBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.carol, a, b) } -func (s *MsgServerTestSuite) assertDanBalances(a, b int64) { +func (s *DexTestSuite) assertDanBalances(a, b int64) { s.assertAccountBalances(s.dan, a, b) } -func (s *MsgServerTestSuite) assertDanBalancesInt(a, b sdkmath.Int) { +func (s *DexTestSuite) assertDanBalancesInt(a, b sdkmath.Int) { s.assertAccountBalancesInt(s.dan, a, b) } -func (s *MsgServerTestSuite) assertDexBalances(a, b int64) { - s.assertAccountBalances(s.app.AccountKeeper.GetModuleAddress("dex"), a, b) +func (s *DexTestSuite) assertDexBalances(a, b int64) { + s.assertAccountBalances(s.App.AccountKeeper.GetModuleAddress("dex"), a, b) } -func (s *MsgServerTestSuite) assertDexBalanceWithDenom(denom string, expectedAmount int64) { +func (s *DexTestSuite) assertDexBalanceWithDenom(denom string, expectedAmount int64) { s.assertAccountBalanceWithDenom( - s.app.AccountKeeper.GetModuleAddress("dex"), + s.App.AccountKeeper.GetModuleAddress("dex"), denom, expectedAmount, ) } -func (s *MsgServerTestSuite) assertDexBalancesInt(a, b sdkmath.Int) { - s.assertAccountBalancesInt(s.app.AccountKeeper.GetModuleAddress("dex"), a, b) +func (s *DexTestSuite) assertDexBalancesInt(a, b sdkmath.Int) { + s.assertAccountBalancesInt(s.App.AccountKeeper.GetModuleAddress("dex"), a, b) } -func (s *MsgServerTestSuite) traceBalances() { - aliceA := s.app.BankKeeper.GetBalance(s.ctx, s.alice, "TokenA") - aliceB := s.app.BankKeeper.GetBalance(s.ctx, s.alice, "TokenB") - bobA := s.app.BankKeeper.GetBalance(s.ctx, s.bob, "TokenA") - bobB := s.app.BankKeeper.GetBalance(s.ctx, s.bob, "TokenB") - carolA := s.app.BankKeeper.GetBalance(s.ctx, s.carol, "TokenA") - carolB := s.app.BankKeeper.GetBalance(s.ctx, s.carol, "TokenB") - danA := s.app.BankKeeper.GetBalance(s.ctx, s.dan, "TokenA") - danB := s.app.BankKeeper.GetBalance(s.ctx, s.dan, "TokenB") +func (s *DexTestSuite) traceBalances() { + aliceA := s.App.BankKeeper.GetBalance(s.Ctx, s.alice, "TokenA") + aliceB := s.App.BankKeeper.GetBalance(s.Ctx, s.alice, "TokenB") + bobA := s.App.BankKeeper.GetBalance(s.Ctx, s.bob, "TokenA") + bobB := s.App.BankKeeper.GetBalance(s.Ctx, s.bob, "TokenB") + carolA := s.App.BankKeeper.GetBalance(s.Ctx, s.carol, "TokenA") + carolB := s.App.BankKeeper.GetBalance(s.Ctx, s.carol, "TokenB") + danA := s.App.BankKeeper.GetBalance(s.Ctx, s.dan, "TokenA") + danB := s.App.BankKeeper.GetBalance(s.Ctx, s.dan, "TokenB") s.T().Logf( "Alice: %+v %+v\nBob: %+v %+v\nCarol: %+v %+v\nDan: %+v %+v", aliceA, aliceB, @@ -213,7 +196,7 @@ func (s *MsgServerTestSuite) traceBalances() { /// Place limit order -func (s *MsgServerTestSuite) aliceLimitSells( +func (s *DexTestSuite) aliceLimitSells( selling string, tick, amountIn int, orderTypeOpt ...types.LimitOrderType, @@ -221,7 +204,7 @@ func (s *MsgServerTestSuite) aliceLimitSells( return s.limitSellsSuccess(s.alice, selling, tick, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) bobLimitSells( +func (s *DexTestSuite) bobLimitSells( selling string, tick, amountIn int, orderTypeOpt ...types.LimitOrderType, @@ -229,7 +212,7 @@ func (s *MsgServerTestSuite) bobLimitSells( return s.limitSellsSuccess(s.bob, selling, tick, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) carolLimitSells( +func (s *DexTestSuite) carolLimitSells( selling string, tick, amountIn int, orderTypeOpt ...types.LimitOrderType, @@ -237,7 +220,7 @@ func (s *MsgServerTestSuite) carolLimitSells( return s.limitSellsSuccess(s.carol, selling, tick, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) danLimitSells( +func (s *DexTestSuite) danLimitSells( selling string, tick, amountIn int, orderTypeOpt ...types.LimitOrderType, @@ -245,7 +228,7 @@ func (s *MsgServerTestSuite) danLimitSells( return s.limitSellsSuccess(s.dan, selling, tick, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) limitSellsSuccess( +func (s *DexTestSuite) limitSellsSuccess( account sdk.AccAddress, tokenIn string, tick, amountIn int, @@ -256,7 +239,7 @@ func (s *MsgServerTestSuite) limitSellsSuccess( return trancheKey } -func (s *MsgServerTestSuite) aliceLimitSellsGoodTil( +func (s *DexTestSuite) aliceLimitSellsGoodTil( selling string, tick, amountIn int, goodTil time.Time, @@ -264,7 +247,7 @@ func (s *MsgServerTestSuite) aliceLimitSellsGoodTil( return s.limitSellsGoodTil(s.alice, selling, tick, amountIn, goodTil) } -func (s *MsgServerTestSuite) bobLimitSellsGoodTil( +func (s *DexTestSuite) bobLimitSellsGoodTil( selling string, tick, amountIn int, goodTil time.Time, @@ -272,7 +255,7 @@ func (s *MsgServerTestSuite) bobLimitSellsGoodTil( return s.limitSellsGoodTil(s.bob, selling, tick, amountIn, goodTil) } -func (s *MsgServerTestSuite) carolLimitSellsGoodTil( +func (s *DexTestSuite) carolLimitSellsGoodTil( selling string, tick, amountIn int, goodTil time.Time, @@ -280,7 +263,7 @@ func (s *MsgServerTestSuite) carolLimitSellsGoodTil( return s.limitSellsGoodTil(s.carol, selling, tick, amountIn, goodTil) } -func (s *MsgServerTestSuite) danLimitSellsGoodTil( +func (s *DexTestSuite) danLimitSellsGoodTil( selling string, tick, amountIn int, goodTil time.Time, @@ -288,7 +271,7 @@ func (s *MsgServerTestSuite) danLimitSellsGoodTil( return s.limitSellsGoodTil(s.dan, selling, tick, amountIn, goodTil) } -func (s *MsgServerTestSuite) assertAliceLimitSellFails( +func (s *DexTestSuite) assertAliceLimitSellFails( err error, selling string, tickIndexNormalized, amountIn int, @@ -297,7 +280,7 @@ func (s *MsgServerTestSuite) assertAliceLimitSellFails( s.assertLimitSellFails(s.alice, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) assertBobLimitSellFails( +func (s *DexTestSuite) assertBobLimitSellFails( err error, selling string, tickIndexNormalized, amountIn int, @@ -306,7 +289,7 @@ func (s *MsgServerTestSuite) assertBobLimitSellFails( s.assertLimitSellFails(s.bob, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) assertCarolLimitSellFails( +func (s *DexTestSuite) assertCarolLimitSellFails( err error, selling string, tickIndexNormalized, amountIn int, @@ -315,7 +298,7 @@ func (s *MsgServerTestSuite) assertCarolLimitSellFails( s.assertLimitSellFails(s.carol, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) assertDanLimitSellFails( +func (s *DexTestSuite) assertDanLimitSellFails( err error, selling string, tickIndexNormalized, amountIn int, @@ -324,7 +307,7 @@ func (s *MsgServerTestSuite) assertDanLimitSellFails( s.assertLimitSellFails(s.dan, err, selling, tickIndexNormalized, amountIn, orderTypeOpt...) } -func (s *MsgServerTestSuite) assertLimitSellFails( +func (s *DexTestSuite) assertLimitSellFails( account sdk.AccAddress, expectedErr error, tokenIn string, @@ -335,35 +318,35 @@ func (s *MsgServerTestSuite) assertLimitSellFails( s.Assert().ErrorIs(err, expectedErr) } -func (s *MsgServerTestSuite) aliceLimitSellsWithMaxOut( +func (s *DexTestSuite) aliceLimitSellsWithMaxOut( selling string, tick, amountIn, maxAmountOut int, ) string { return s.limitSellsWithMaxOut(s.alice, selling, tick, amountIn, maxAmountOut) } -func (s *MsgServerTestSuite) bobLimitSellsWithMaxOut( +func (s *DexTestSuite) bobLimitSellsWithMaxOut( selling string, tick, amountIn, maxAmountOut int, ) string { return s.limitSellsWithMaxOut(s.bob, selling, tick, amountIn, maxAmountOut) } -func (s *MsgServerTestSuite) carolLimitSellsWithMaxOut( +func (s *DexTestSuite) carolLimitSellsWithMaxOut( selling string, tick, amountIn, maxAmountOut int, ) string { return s.limitSellsWithMaxOut(s.carol, selling, tick, amountIn, maxAmountOut) } -func (s *MsgServerTestSuite) danLimitSellsWithMaxOut( +func (s *DexTestSuite) danLimitSellsWithMaxOut( selling string, tick, amountIn, maxAmountOut int, ) string { return s.limitSellsWithMaxOut(s.dan, selling, tick, amountIn, maxAmountOut) } -func (s *MsgServerTestSuite) limitSellsWithMaxOut( +func (s *DexTestSuite) limitSellsWithMaxOut( account sdk.AccAddress, tokenIn string, tick, amountIn int, @@ -372,7 +355,7 @@ func (s *MsgServerTestSuite) limitSellsWithMaxOut( tokenIn, tokenOut := GetInOutTokens(tokenIn, "TokenA", "TokenB") maxAmountOutInt := sdkmath.NewInt(int64(maxAmoutOut)) - msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + msg, err := s.msgServer.PlaceLimitOrder(s.GoCtx, &types.MsgPlaceLimitOrder{ Creator: account.String(), Receiver: account.String(), TokenIn: tokenIn, @@ -388,7 +371,7 @@ func (s *MsgServerTestSuite) limitSellsWithMaxOut( return msg.TrancheKey } -func (s *MsgServerTestSuite) limitSells( +func (s *DexTestSuite) limitSells( account sdk.AccAddress, tokenIn string, tickIndexNormalized, amountIn int, @@ -403,7 +386,7 @@ func (s *MsgServerTestSuite) limitSells( tradePairID := types.NewTradePairIDFromTaker(defaultPairID, tokenIn) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(int64(tickIndexNormalized)) - msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + msg, err := s.msgServer.PlaceLimitOrder(s.GoCtx, &types.MsgPlaceLimitOrder{ Creator: account.String(), Receiver: account.String(), TokenIn: tradePairID.TakerDenom, @@ -416,7 +399,7 @@ func (s *MsgServerTestSuite) limitSells( return msg.TrancheKey, err } -func (s *MsgServerTestSuite) limitSellsGoodTil( +func (s *DexTestSuite) limitSellsGoodTil( account sdk.AccAddress, tokenIn string, tick, amountIn int, @@ -425,7 +408,7 @@ func (s *MsgServerTestSuite) limitSellsGoodTil( tradePairID := types.NewTradePairIDFromTaker(defaultPairID, tokenIn) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(int64(tick)) - msg, err := s.msgServer.PlaceLimitOrder(s.goCtx, &types.MsgPlaceLimitOrder{ + msg, err := s.msgServer.PlaceLimitOrder(s.GoCtx, &types.MsgPlaceLimitOrder{ Creator: account.String(), Receiver: account.String(), TokenIn: tradePairID.TakerDenom, @@ -483,31 +466,31 @@ func NewDepositWithOptions( } } -func (s *MsgServerTestSuite) aliceDeposits(deposits ...*Deposit) { +func (s *DexTestSuite) aliceDeposits(deposits ...*Deposit) { s.deposits(s.alice, deposits) } -func (s *MsgServerTestSuite) aliceDepositsWithOptions(deposits ...*DepositWithOptions) { +func (s *DexTestSuite) aliceDepositsWithOptions(deposits ...*DepositWithOptions) { s.depositsWithOptions(s.alice, deposits...) } -func (s *MsgServerTestSuite) bobDeposits(deposits ...*Deposit) { +func (s *DexTestSuite) bobDeposits(deposits ...*Deposit) { s.deposits(s.bob, deposits) } -func (s *MsgServerTestSuite) bobDepositsWithOptions(deposits ...*DepositWithOptions) { +func (s *DexTestSuite) bobDepositsWithOptions(deposits ...*DepositWithOptions) { s.depositsWithOptions(s.bob, deposits...) } -func (s *MsgServerTestSuite) carolDeposits(deposits ...*Deposit) { +func (s *DexTestSuite) carolDeposits(deposits ...*Deposit) { s.deposits(s.carol, deposits) } -func (s *MsgServerTestSuite) danDeposits(deposits ...*Deposit) { +func (s *DexTestSuite) danDeposits(deposits ...*Deposit) { s.deposits(s.dan, deposits) } -func (s *MsgServerTestSuite) deposits( +func (s *DexTestSuite) deposits( account sdk.AccAddress, deposits []*Deposit, pairID ...types.PairID, @@ -537,7 +520,7 @@ func (s *MsgServerTestSuite) deposits( s.Assert().Fail("Only 1 pairID can be provided") } - _, err := s.msgServer.Deposit(s.goCtx, &types.MsgDeposit{ + _, err := s.msgServer.Deposit(s.GoCtx, &types.MsgDeposit{ Creator: account.String(), Receiver: account.String(), TokenA: tokenA, @@ -551,7 +534,7 @@ func (s *MsgServerTestSuite) deposits( s.Assert().Nil(err) } -func (s *MsgServerTestSuite) depositsWithOptions( +func (s *DexTestSuite) depositsWithOptions( account sdk.AccAddress, deposits ...*DepositWithOptions, ) { @@ -570,7 +553,7 @@ func (s *MsgServerTestSuite) depositsWithOptions( } } - _, err := s.msgServer.Deposit(s.goCtx, &types.MsgDeposit{ + _, err := s.msgServer.Deposit(s.GoCtx, &types.MsgDeposit{ Creator: account.String(), Receiver: account.String(), TokenA: "TokenA", @@ -584,8 +567,8 @@ func (s *MsgServerTestSuite) depositsWithOptions( s.Assert().Nil(err) } -func (s *MsgServerTestSuite) getLiquidityAtTick(tickIndex int64, fee uint64) (sdkmath.Int, sdkmath.Int) { - pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, defaultPairID, tickIndex, fee) +func (s *DexTestSuite) getLiquidityAtTick(tickIndex int64, fee uint64) (sdkmath.Int, sdkmath.Int) { + pool, err := s.App.DexKeeper.GetOrInitPool(s.Ctx, defaultPairID, tickIndex, fee) s.Assert().NoError(err) liquidityA := pool.LowerTick0.ReservesMakerDenom @@ -594,12 +577,12 @@ func (s *MsgServerTestSuite) getLiquidityAtTick(tickIndex int64, fee uint64) (sd return liquidityA, liquidityB } -func (s *MsgServerTestSuite) getLiquidityAtTickWithDenom( +func (s *DexTestSuite) getLiquidityAtTickWithDenom( pairID *types.PairID, tickIndex int64, fee uint64, ) (sdkmath.Int, sdkmath.Int) { - pool, err := s.app.DexKeeper.GetOrInitPool(s.ctx, pairID, tickIndex, fee) + pool, err := s.App.DexKeeper.GetOrInitPool(s.Ctx, pairID, tickIndex, fee) s.Assert().NoError(err) liquidityA := pool.LowerTick0.ReservesMakerDenom @@ -608,23 +591,23 @@ func (s *MsgServerTestSuite) getLiquidityAtTickWithDenom( return liquidityA, liquidityB } -func (s *MsgServerTestSuite) assertAliceDepositFails(err error, deposits ...*Deposit) { +func (s *DexTestSuite) assertAliceDepositFails(err error, deposits ...*Deposit) { s.assertDepositFails(s.alice, err, deposits...) } -func (s *MsgServerTestSuite) assertBobDepositFails(err error, deposits ...*Deposit) { +func (s *DexTestSuite) assertBobDepositFails(err error, deposits ...*Deposit) { s.assertDepositFails(s.bob, err, deposits...) } -func (s *MsgServerTestSuite) assertCarolDepositFails(err error, deposits ...*Deposit) { +func (s *DexTestSuite) assertCarolDepositFails(err error, deposits ...*Deposit) { s.assertDepositFails(s.carol, err, deposits...) } -func (s *MsgServerTestSuite) assertDanDepositFails(err error, deposits ...*Deposit) { +func (s *DexTestSuite) assertDanDepositFails(err error, deposits ...*Deposit) { s.assertDepositFails(s.dan, err, deposits...) } -func (s *MsgServerTestSuite) assertDepositFails( +func (s *DexTestSuite) assertDepositFails( account sdk.AccAddress, expectedErr error, deposits ...*Deposit, @@ -642,7 +625,7 @@ func (s *MsgServerTestSuite) assertDepositFails( options[i] = &types.DepositOptions{DisableAutoswap: true} } - _, err := s.msgServer.Deposit(s.goCtx, &types.MsgDeposit{ + _, err := s.msgServer.Deposit(s.GoCtx, &types.MsgDeposit{ Creator: account.String(), Receiver: account.String(), TokenA: "TokenA", @@ -657,7 +640,7 @@ func (s *MsgServerTestSuite) assertDepositFails( s.Assert().ErrorIs(err, expectedErr) } -func (s *MsgServerTestSuite) assertDepositReponse( +func (s *DexTestSuite) assertDepositReponse( depositResponse, expectedDepositResponse DepositReponse, ) { for i := range expectedDepositResponse.amountsA { @@ -698,23 +681,23 @@ func NewWithdrawal(shares, tick int64, fee uint64) *Withdrawal { return NewWithdrawalInt(sdkmath.NewInt(shares), tick, fee) } -func (s *MsgServerTestSuite) aliceWithdraws(withdrawals ...*Withdrawal) { +func (s *DexTestSuite) aliceWithdraws(withdrawals ...*Withdrawal) { s.withdraws(s.alice, withdrawals...) } -func (s *MsgServerTestSuite) bobWithdraws(withdrawals ...*Withdrawal) { +func (s *DexTestSuite) bobWithdraws(withdrawals ...*Withdrawal) { s.withdraws(s.bob, withdrawals...) } -func (s *MsgServerTestSuite) carolWithdraws(withdrawals ...*Withdrawal) { +func (s *DexTestSuite) carolWithdraws(withdrawals ...*Withdrawal) { s.withdraws(s.carol, withdrawals...) } -func (s *MsgServerTestSuite) danWithdraws(withdrawals ...*Withdrawal) { +func (s *DexTestSuite) danWithdraws(withdrawals ...*Withdrawal) { s.withdraws(s.dan, withdrawals...) } -func (s *MsgServerTestSuite) withdraws(account sdk.AccAddress, withdrawals ...*Withdrawal) { +func (s *DexTestSuite) withdraws(account sdk.AccAddress, withdrawals ...*Withdrawal) { tickIndexes := make([]int64, len(withdrawals)) fee := make([]uint64, len(withdrawals)) sharesToRemove := make([]sdkmath.Int, len(withdrawals)) @@ -724,7 +707,7 @@ func (s *MsgServerTestSuite) withdraws(account sdk.AccAddress, withdrawals ...*W sharesToRemove[i] = e.Shares } - _, err := s.msgServer.Withdrawal(s.goCtx, &types.MsgWithdrawal{ + _, err := s.msgServer.Withdrawal(s.GoCtx, &types.MsgWithdrawal{ Creator: account.String(), Receiver: account.String(), TokenA: "TokenA", @@ -736,23 +719,23 @@ func (s *MsgServerTestSuite) withdraws(account sdk.AccAddress, withdrawals ...*W s.Assert().Nil(err) } -func (s *MsgServerTestSuite) aliceWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { +func (s *DexTestSuite) aliceWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { s.withdrawFails(s.alice, expectedErr, withdrawals...) } -func (s *MsgServerTestSuite) bobWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { +func (s *DexTestSuite) bobWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { s.withdrawFails(s.bob, expectedErr, withdrawals...) } -func (s *MsgServerTestSuite) carolWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { +func (s *DexTestSuite) carolWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { s.withdrawFails(s.carol, expectedErr, withdrawals...) } -func (s *MsgServerTestSuite) danWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { +func (s *DexTestSuite) danWithdrawFails(expectedErr error, withdrawals ...*Withdrawal) { s.withdrawFails(s.dan, expectedErr, withdrawals...) } -func (s *MsgServerTestSuite) withdrawFails( +func (s *DexTestSuite) withdrawFails( account sdk.AccAddress, expectedErr error, withdrawals ...*Withdrawal, @@ -766,7 +749,7 @@ func (s *MsgServerTestSuite) withdrawFails( sharesToRemove[i] = e.Shares } - _, err := s.msgServer.Withdrawal(s.goCtx, &types.MsgWithdrawal{ + _, err := s.msgServer.Withdrawal(s.GoCtx, &types.MsgWithdrawal{ Creator: account.String(), Receiver: account.String(), TokenA: "TokenA", @@ -781,52 +764,52 @@ func (s *MsgServerTestSuite) withdrawFails( /// Cancel limit order -func (s *MsgServerTestSuite) aliceCancelsLimitSell(trancheKey string) { +func (s *DexTestSuite) aliceCancelsLimitSell(trancheKey string) { s.cancelsLimitSell(s.alice, trancheKey) } -func (s *MsgServerTestSuite) bobCancelsLimitSell(trancheKey string) { +func (s *DexTestSuite) bobCancelsLimitSell(trancheKey string) { s.cancelsLimitSell(s.bob, trancheKey) } -func (s *MsgServerTestSuite) carolCancelsLimitSell(trancheKey string) { +func (s *DexTestSuite) carolCancelsLimitSell(trancheKey string) { s.cancelsLimitSell(s.carol, trancheKey) } -func (s *MsgServerTestSuite) danCancelsLimitSell(trancheKey string) { +func (s *DexTestSuite) danCancelsLimitSell(trancheKey string) { s.cancelsLimitSell(s.dan, trancheKey) } -func (s *MsgServerTestSuite) cancelsLimitSell(account sdk.AccAddress, trancheKey string) { - _, err := s.msgServer.CancelLimitOrder(s.goCtx, &types.MsgCancelLimitOrder{ +func (s *DexTestSuite) cancelsLimitSell(account sdk.AccAddress, trancheKey string) { + _, err := s.msgServer.CancelLimitOrder(s.GoCtx, &types.MsgCancelLimitOrder{ Creator: account.String(), TrancheKey: trancheKey, }) s.Assert().Nil(err) } -func (s *MsgServerTestSuite) aliceCancelsLimitSellFails(trancheKey string, expectedErr error) { +func (s *DexTestSuite) aliceCancelsLimitSellFails(trancheKey string, expectedErr error) { s.cancelsLimitSellFails(s.alice, trancheKey, expectedErr) } -func (s *MsgServerTestSuite) bobCancelsLimitSellFails(trancheKey string, expectedErr error) { +func (s *DexTestSuite) bobCancelsLimitSellFails(trancheKey string, expectedErr error) { s.cancelsLimitSellFails(s.bob, trancheKey, expectedErr) } -func (s *MsgServerTestSuite) carolCancelsLimitSellFails(trancheKey string, expectedErr error) { +func (s *DexTestSuite) carolCancelsLimitSellFails(trancheKey string, expectedErr error) { s.cancelsLimitSellFails(s.carol, trancheKey, expectedErr) } -func (s *MsgServerTestSuite) danCancelsLimitSellFails(trancheKey string, expectedErr error) { +func (s *DexTestSuite) danCancelsLimitSellFails(trancheKey string, expectedErr error) { s.cancelsLimitSellFails(s.dan, trancheKey, expectedErr) } -func (s *MsgServerTestSuite) cancelsLimitSellFails( +func (s *DexTestSuite) cancelsLimitSellFails( account sdk.AccAddress, trancheKey string, expectedErr error, ) { - _, err := s.msgServer.CancelLimitOrder(s.goCtx, &types.MsgCancelLimitOrder{ + _, err := s.msgServer.CancelLimitOrder(s.GoCtx, &types.MsgCancelLimitOrder{ Creator: account.String(), TrancheKey: trancheKey, }) @@ -835,7 +818,7 @@ func (s *MsgServerTestSuite) cancelsLimitSellFails( /// MultiHopSwap -func (s *MsgServerTestSuite) aliceMultiHopSwaps( +func (s *DexTestSuite) aliceMultiHopSwaps( routes [][]string, amountIn int, exitLimitPrice math_utils.PrecDec, @@ -844,7 +827,7 @@ func (s *MsgServerTestSuite) aliceMultiHopSwaps( s.multiHopSwaps(s.alice, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) bobMultiHopSwaps( +func (s *DexTestSuite) bobMultiHopSwaps( routes [][]string, amountIn int, exitLimitPrice math_utils.PrecDec, @@ -853,7 +836,7 @@ func (s *MsgServerTestSuite) bobMultiHopSwaps( s.multiHopSwaps(s.bob, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) carolMultiHopSwaps( +func (s *DexTestSuite) carolMultiHopSwaps( routes [][]string, amountIn int, exitLimitPrice math_utils.PrecDec, @@ -862,7 +845,7 @@ func (s *MsgServerTestSuite) carolMultiHopSwaps( s.multiHopSwaps(s.carol, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) danMultiHopSwaps( +func (s *DexTestSuite) danMultiHopSwaps( routes [][]string, amountIn int, exitLimitPrice math_utils.PrecDec, @@ -871,7 +854,7 @@ func (s *MsgServerTestSuite) danMultiHopSwaps( s.multiHopSwaps(s.dan, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) multiHopSwaps( +func (s *DexTestSuite) multiHopSwaps( account sdk.AccAddress, routes [][]string, amountIn int, @@ -886,11 +869,11 @@ func (s *MsgServerTestSuite) multiHopSwaps( exitLimitPrice, pickBest, ) - _, err := s.msgServer.MultiHopSwap(s.goCtx, msg) + _, err := s.msgServer.MultiHopSwap(s.GoCtx, msg) s.Assert().Nil(err) } -func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwap( +func (s *DexTestSuite) aliceEstimatesMultiHopSwap( routes [][]string, amountIn int, exitLimitPrice math_utils.PrecDec, @@ -908,12 +891,12 @@ func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwap( ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } - res, err := s.app.DexKeeper.EstimateMultiHopSwap(s.goCtx, msg) + res, err := s.App.DexKeeper.EstimateMultiHopSwap(s.GoCtx, msg) s.Require().Nil(err) return res.CoinOut } -func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwapFails( +func (s *DexTestSuite) aliceEstimatesMultiHopSwapFails( expectedErr error, routes [][]string, amountIn int, @@ -932,11 +915,11 @@ func (s *MsgServerTestSuite) aliceEstimatesMultiHopSwapFails( ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } - _, err := s.app.DexKeeper.EstimateMultiHopSwap(s.goCtx, msg) + _, err := s.App.DexKeeper.EstimateMultiHopSwap(s.GoCtx, msg) s.Assert().ErrorIs(err, expectedErr) } -func (s *MsgServerTestSuite) aliceMultiHopSwapFails( +func (s *DexTestSuite) aliceMultiHopSwapFails( err error, routes [][]string, amountIn int, @@ -946,7 +929,7 @@ func (s *MsgServerTestSuite) aliceMultiHopSwapFails( s.multiHopSwapFails(s.alice, err, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) bobMultiHopSwapFails( +func (s *DexTestSuite) bobMultiHopSwapFails( err error, routes [][]string, amountIn int, @@ -956,7 +939,7 @@ func (s *MsgServerTestSuite) bobMultiHopSwapFails( s.multiHopSwapFails(s.bob, err, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) carolMultiHopSwapFails( +func (s *DexTestSuite) carolMultiHopSwapFails( err error, routes [][]string, amountIn int, @@ -966,7 +949,7 @@ func (s *MsgServerTestSuite) carolMultiHopSwapFails( s.multiHopSwapFails(s.carol, err, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) danMultiHopSwapFails( +func (s *DexTestSuite) danMultiHopSwapFails( err error, routes [][]string, amountIn int, @@ -976,7 +959,7 @@ func (s *MsgServerTestSuite) danMultiHopSwapFails( s.multiHopSwapFails(s.dan, err, routes, amountIn, exitLimitPrice, pickBest) } -func (s *MsgServerTestSuite) multiHopSwapFails( +func (s *DexTestSuite) multiHopSwapFails( account sdk.AccAddress, expectedErr error, routes [][]string, @@ -992,58 +975,58 @@ func (s *MsgServerTestSuite) multiHopSwapFails( exitLimitPrice, pickBest, ) - _, err := s.msgServer.MultiHopSwap(s.goCtx, msg) + _, err := s.msgServer.MultiHopSwap(s.GoCtx, msg) s.Assert().ErrorIs(err, expectedErr) } /// Withdraw filled limit order -func (s *MsgServerTestSuite) aliceWithdrawsLimitSell(trancheKey string) { +func (s *DexTestSuite) aliceWithdrawsLimitSell(trancheKey string) { s.withdrawsLimitSell(s.alice, trancheKey) } -func (s *MsgServerTestSuite) bobWithdrawsLimitSell(trancheKey string) { +func (s *DexTestSuite) bobWithdrawsLimitSell(trancheKey string) { s.withdrawsLimitSell(s.bob, trancheKey) } -func (s *MsgServerTestSuite) carolWithdrawsLimitSell(trancheKey string) { +func (s *DexTestSuite) carolWithdrawsLimitSell(trancheKey string) { s.withdrawsLimitSell(s.carol, trancheKey) } -func (s *MsgServerTestSuite) danWithdrawsLimitSell(trancheKey string) { +func (s *DexTestSuite) danWithdrawsLimitSell(trancheKey string) { s.withdrawsLimitSell(s.dan, trancheKey) } -func (s *MsgServerTestSuite) withdrawsLimitSell(account sdk.AccAddress, trancheKey string) { - _, err := s.msgServer.WithdrawFilledLimitOrder(s.goCtx, &types.MsgWithdrawFilledLimitOrder{ +func (s *DexTestSuite) withdrawsLimitSell(account sdk.AccAddress, trancheKey string) { + _, err := s.msgServer.WithdrawFilledLimitOrder(s.GoCtx, &types.MsgWithdrawFilledLimitOrder{ Creator: account.String(), TrancheKey: trancheKey, }) s.Assert().Nil(err) } -func (s *MsgServerTestSuite) aliceWithdrawLimitSellFails(expectedErr error, trancheKey string) { +func (s *DexTestSuite) aliceWithdrawLimitSellFails(expectedErr error, trancheKey string) { s.withdrawLimitSellFails(s.alice, expectedErr, trancheKey) } -func (s *MsgServerTestSuite) bobWithdrawLimitSellFails(expectedErr error, trancheKey string) { +func (s *DexTestSuite) bobWithdrawLimitSellFails(expectedErr error, trancheKey string) { s.withdrawLimitSellFails(s.bob, expectedErr, trancheKey) } -func (s *MsgServerTestSuite) carolWithdrawLimitSellFails(expectedErr error, trancheKey string) { +func (s *DexTestSuite) carolWithdrawLimitSellFails(expectedErr error, trancheKey string) { s.withdrawLimitSellFails(s.carol, expectedErr, trancheKey) } -func (s *MsgServerTestSuite) danWithdrawLimitSellFails(expectedErr error, trancheKey string) { +func (s *DexTestSuite) danWithdrawLimitSellFails(expectedErr error, trancheKey string) { s.withdrawLimitSellFails(s.dan, expectedErr, trancheKey) } -func (s *MsgServerTestSuite) withdrawLimitSellFails( +func (s *DexTestSuite) withdrawLimitSellFails( account sdk.AccAddress, expectedErr error, trancheKey string, ) { - _, err := s.msgServer.WithdrawFilledLimitOrder(s.goCtx, &types.MsgWithdrawFilledLimitOrder{ + _, err := s.msgServer.WithdrawFilledLimitOrder(s.GoCtx, &types.MsgWithdrawFilledLimitOrder{ Creator: account.String(), TrancheKey: trancheKey, }) @@ -1051,21 +1034,21 @@ func (s *MsgServerTestSuite) withdrawLimitSellFails( } // Shares -func (s *MsgServerTestSuite) getPoolShares( +func (s *DexTestSuite) getPoolShares( token0 string, token1 string, tick int64, fee uint64, ) (shares sdkmath.Int) { - poolID, found := s.app.DexKeeper.GetPoolIDByParams(s.ctx, &types.PairID{Token0: token0, Token1: token1}, tick, fee) + poolID, found := s.App.DexKeeper.GetPoolIDByParams(s.Ctx, &types.PairID{Token0: token0, Token1: token1}, tick, fee) if !found { return sdkmath.ZeroInt() } poolDenom := types.NewPoolDenom(poolID) - return s.app.BankKeeper.GetSupply(s.ctx, poolDenom).Amount + return s.App.BankKeeper.GetSupply(s.Ctx, poolDenom).Amount } -func (s *MsgServerTestSuite) assertPoolShares( +func (s *DexTestSuite) assertPoolShares( tick int64, fee uint64, sharesExpected uint64, @@ -1075,23 +1058,23 @@ func (s *MsgServerTestSuite) assertPoolShares( s.Assert().Equal(sharesExpectedInt, sharesOwned) } -func (s *MsgServerTestSuite) getAccountShares( +func (s *DexTestSuite) getAccountShares( account sdk.AccAddress, token0 string, token1 string, tick int64, fee uint64, ) (shares sdkmath.Int) { - id, found := s.app.DexKeeper.GetPoolIDByParams(s.ctx, types.MustNewPairID(token0, token1), tick, fee) + id, found := s.App.DexKeeper.GetPoolIDByParams(s.Ctx, types.MustNewPairID(token0, token1), tick, fee) if !found { return sdkmath.ZeroInt() } poolDenom := types.NewPoolDenom(id) - return s.app.BankKeeper.GetBalance(s.ctx, account, poolDenom).Amount + return s.App.BankKeeper.GetBalance(s.Ctx, account, poolDenom).Amount } -func (s *MsgServerTestSuite) assertAccountShares( +func (s *DexTestSuite) assertAccountShares( account sdk.AccAddress, tick int64, fee uint64, @@ -1103,24 +1086,24 @@ func (s *MsgServerTestSuite) assertAccountShares( Equal(sharesExpectedInt, sharesOwned, "expected %s != actual %s", sharesExpected, sharesOwned) } -func (s *MsgServerTestSuite) assertAliceShares(tick int64, fee, sharesExpected uint64) { +func (s *DexTestSuite) assertAliceShares(tick int64, fee, sharesExpected uint64) { s.assertAccountShares(s.alice, tick, fee, sharesExpected) } -func (s *MsgServerTestSuite) assertBobShares(tick int64, fee, sharesExpected uint64) { +func (s *DexTestSuite) assertBobShares(tick int64, fee, sharesExpected uint64) { s.assertAccountShares(s.bob, tick, fee, sharesExpected) } -func (s *MsgServerTestSuite) assertCarolShares(tick int64, fee, sharesExpected uint64) { +func (s *DexTestSuite) assertCarolShares(tick int64, fee, sharesExpected uint64) { s.assertAccountShares(s.carol, tick, fee, sharesExpected) } -func (s *MsgServerTestSuite) assertDanShares(tick int64, fee, sharesExpected uint64) { +func (s *DexTestSuite) assertDanShares(tick int64, fee, sharesExpected uint64) { s.assertAccountShares(s.dan, tick, fee, sharesExpected) } // Ticks -func (s *MsgServerTestSuite) assertCurrentTicks( +func (s *DexTestSuite) assertCurrentTicks( expected1To0 int64, expected0To1 int64, ) { @@ -1128,9 +1111,9 @@ func (s *MsgServerTestSuite) assertCurrentTicks( s.assertCurr1To0(expected1To0) } -func (s *MsgServerTestSuite) assertCurr0To1(curr0To1Expected int64) { - curr0To1Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( - s.ctx, +func (s *DexTestSuite) assertCurr0To1(curr0To1Expected int64) { + curr0To1Actual, found := s.App.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( + s.Ctx, defaultTradePairID0To1, ) if curr0To1Expected == math.MaxInt64 { @@ -1140,9 +1123,9 @@ func (s *MsgServerTestSuite) assertCurr0To1(curr0To1Expected int64) { } } -func (s *MsgServerTestSuite) assertCurr1To0(curr1To0Expected int64) { - curr1to0Actual, found := s.app.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( - s.ctx, +func (s *DexTestSuite) assertCurr1To0(curr1To0Expected int64) { + curr1to0Actual, found := s.App.DexKeeper.GetCurrTickIndexTakerToMakerNormalized( + s.Ctx, defaultTradePairID1To0, ) if curr1To0Expected == math.MinInt64 { @@ -1153,7 +1136,7 @@ func (s *MsgServerTestSuite) assertCurr1To0(curr1To0Expected int64) { } // Pool liquidity (i.e. deposited rather than LO) -func (s *MsgServerTestSuite) assertLiquidityAtTick( +func (s *DexTestSuite) assertLiquidityAtTick( amountA, amountB sdkmath.Int, tickIndex int64, fee uint64, @@ -1165,7 +1148,7 @@ func (s *MsgServerTestSuite) assertLiquidityAtTick( True(amountB.Equal(liquidityB), "liquidity B: actual %s, expected %s", liquidityB, amountB) } -func (s *MsgServerTestSuite) assertLiquidityAtTickWithDenom( +func (s *DexTestSuite) assertLiquidityAtTickWithDenom( pairID *types.PairID, expected0, expected1 sdkmath.Int, tickIndex int64, @@ -1178,7 +1161,7 @@ func (s *MsgServerTestSuite) assertLiquidityAtTickWithDenom( True(expected1.Equal(liquidity1), "liquidity 1: actual %s, expected %s", liquidity1, expected1) } -func (s *MsgServerTestSuite) assertPoolLiquidity( +func (s *DexTestSuite) assertPoolLiquidity( amountA, amountB int, tickIndex int64, fee uint64, @@ -1186,12 +1169,12 @@ func (s *MsgServerTestSuite) assertPoolLiquidity( s.assertLiquidityAtTick(sdkmath.NewInt(int64(amountA)), sdkmath.NewInt(int64(amountB)), tickIndex, fee) } -func (s *MsgServerTestSuite) assertNoLiquidityAtTick(tickIndex int64, fee uint64) { +func (s *DexTestSuite) assertNoLiquidityAtTick(tickIndex int64, fee uint64) { s.assertLiquidityAtTick(sdkmath.ZeroInt(), sdkmath.ZeroInt(), tickIndex, fee) } // Filled limit liquidity -func (s *MsgServerTestSuite) assertAliceLimitFilledAtTickAtIndex( +func (s *DexTestSuite) assertAliceLimitFilledAtTickAtIndex( selling string, amount int, tickIndex int64, @@ -1200,7 +1183,7 @@ func (s *MsgServerTestSuite) assertAliceLimitFilledAtTickAtIndex( s.assertLimitFilledAtTickAtIndex(s.alice, selling, amount, tickIndex, trancheKey) } -func (s *MsgServerTestSuite) assertBobLimitFilledAtTickAtIndex( +func (s *DexTestSuite) assertBobLimitFilledAtTickAtIndex( selling string, amount int, tickIndex int64, @@ -1209,7 +1192,7 @@ func (s *MsgServerTestSuite) assertBobLimitFilledAtTickAtIndex( s.assertLimitFilledAtTickAtIndex(s.bob, selling, amount, tickIndex, trancheKey) } -func (s *MsgServerTestSuite) assertCarolLimitFilledAtTickAtIndex( +func (s *DexTestSuite) assertCarolLimitFilledAtTickAtIndex( selling string, amount int, tickIndex int64, @@ -1218,7 +1201,7 @@ func (s *MsgServerTestSuite) assertCarolLimitFilledAtTickAtIndex( s.assertLimitFilledAtTickAtIndex(s.carol, selling, amount, tickIndex, trancheKey) } -func (s *MsgServerTestSuite) assertDanLimitFilledAtTickAtIndex( +func (s *DexTestSuite) assertDanLimitFilledAtTickAtIndex( selling string, amount int, tickIndex int64, @@ -1227,7 +1210,7 @@ func (s *MsgServerTestSuite) assertDanLimitFilledAtTickAtIndex( s.assertLimitFilledAtTickAtIndex(s.dan, selling, amount, tickIndex, trancheKey) } -func (s *MsgServerTestSuite) assertLimitFilledAtTickAtIndex( +func (s *DexTestSuite) assertLimitFilledAtTickAtIndex( account sdk.AccAddress, selling string, amount int, @@ -1250,7 +1233,7 @@ func (s *MsgServerTestSuite) assertLimitFilledAtTickAtIndex( } // Limit liquidity -func (s *MsgServerTestSuite) assertAliceLimitLiquidityAtTick( +func (s *DexTestSuite) assertAliceLimitLiquidityAtTick( selling string, amount int, tickIndex int64, @@ -1258,7 +1241,7 @@ func (s *MsgServerTestSuite) assertAliceLimitLiquidityAtTick( s.assertAccountLimitLiquidityAtTick(s.alice, selling, amount, tickIndex) } -func (s *MsgServerTestSuite) assertBobLimitLiquidityAtTick( +func (s *DexTestSuite) assertBobLimitLiquidityAtTick( selling string, amount int, tickIndex int64, @@ -1266,7 +1249,7 @@ func (s *MsgServerTestSuite) assertBobLimitLiquidityAtTick( s.assertAccountLimitLiquidityAtTick(s.bob, selling, amount, tickIndex) } -func (s *MsgServerTestSuite) assertCarolLimitLiquidityAtTick( +func (s *DexTestSuite) assertCarolLimitLiquidityAtTick( selling string, amount int, tickIndex int64, @@ -1274,7 +1257,7 @@ func (s *MsgServerTestSuite) assertCarolLimitLiquidityAtTick( s.assertAccountLimitLiquidityAtTick(s.carol, selling, amount, tickIndex) } -func (s *MsgServerTestSuite) assertDanLimitLiquidityAtTick( +func (s *DexTestSuite) assertDanLimitLiquidityAtTick( selling string, amount int, tickIndex int64, @@ -1282,7 +1265,7 @@ func (s *MsgServerTestSuite) assertDanLimitLiquidityAtTick( s.assertAccountLimitLiquidityAtTick(s.dan, selling, amount, tickIndex) } -func (s *MsgServerTestSuite) assertAccountLimitLiquidityAtTick( +func (s *DexTestSuite) assertAccountLimitLiquidityAtTick( account sdk.AccAddress, selling string, amount int, @@ -1296,28 +1279,28 @@ func (s *MsgServerTestSuite) assertAccountLimitLiquidityAtTick( s.assertLimitLiquidityAtTick(selling, tickIndexNormalized, userLiquidity.Int64()) } -func (s *MsgServerTestSuite) assertLimitLiquidityAtTick( +func (s *DexTestSuite) assertLimitLiquidityAtTick( selling string, tickIndexNormalized, amount int64, ) { s.assertLimitLiquidityAtTickInt(selling, tickIndexNormalized, sdkmath.NewInt(amount)) } -func (s *MsgServerTestSuite) assertLimitLiquidityAtTickInt( +func (s *DexTestSuite) assertLimitLiquidityAtTickInt( selling string, tickIndexNormalized int64, amount sdkmath.Int, ) { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) - tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( - s.ctx, + tranches := s.App.DexKeeper.GetAllLimitOrderTrancheAtIndex( + s.Ctx, tradePairID, tickIndexTakerToMaker, ) liquidity := sdkmath.ZeroInt() for _, t := range tranches { - if !t.IsExpired(s.ctx) { + if !t.IsExpired(s.Ctx) { liquidity = liquidity.Add(t.ReservesMakerDenom) } } @@ -1326,16 +1309,16 @@ func (s *MsgServerTestSuite) assertLimitLiquidityAtTickInt( True(amount.Equal(liquidity), "Incorrect liquidity: expected %s, have %s", amount.String(), liquidity.String()) } -func (s *MsgServerTestSuite) assertFillAndPlaceTrancheKeys( +func (s *DexTestSuite) assertFillAndPlaceTrancheKeys( selling string, tickIndexNormalized int64, expectedFill, expectedPlace string, ) { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) - placeTranche := s.app.DexKeeper.GetPlaceTranche(s.ctx, tradePairID, tickIndexTakerToMaker) - fillTranche, foundFill := s.app.DexKeeper.GetFillTranche( - s.ctx, + placeTranche := s.App.DexKeeper.GetPlaceTranche(s.Ctx, tradePairID, tickIndexTakerToMaker) + fillTranche, foundFill := s.App.DexKeeper.GetFillTranche( + s.Ctx, tradePairID, tickIndexTakerToMaker, ) @@ -1352,15 +1335,15 @@ func (s *MsgServerTestSuite) assertFillAndPlaceTrancheKeys( } // Limit order map helpers -func (s *MsgServerTestSuite) getLimitUserSharesAtTick( +func (s *DexTestSuite) getLimitUserSharesAtTick( account sdk.AccAddress, selling string, tickIndexNormalized int64, ) sdkmath.Int { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) - tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( - s.ctx, + tranches := s.App.DexKeeper.GetAllLimitOrderTrancheAtIndex( + s.Ctx, tradePairID, tickIndexTakerToMaker, ) @@ -1376,12 +1359,12 @@ func (s *MsgServerTestSuite) getLimitUserSharesAtTick( return userShares } -func (s *MsgServerTestSuite) getLimitUserSharesAtTickAtIndex( +func (s *DexTestSuite) getLimitUserSharesAtTickAtIndex( account sdk.AccAddress, trancheKey string, ) sdkmath.Int { - userShares, found := s.app.DexKeeper.GetLimitOrderTrancheUser( - s.ctx, + userShares, found := s.App.DexKeeper.GetLimitOrderTrancheUser( + s.Ctx, account.String(), trancheKey, ) @@ -1389,14 +1372,14 @@ func (s *MsgServerTestSuite) getLimitUserSharesAtTickAtIndex( return userShares.SharesOwned } -func (s *MsgServerTestSuite) getLimitTotalSharesAtTick( +func (s *DexTestSuite) getLimitTotalSharesAtTick( selling string, tickIndexNormalized int64, ) sdkmath.Int { tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) - tranches := s.app.DexKeeper.GetAllLimitOrderTrancheAtIndex( - s.ctx, + tranches := s.App.DexKeeper.GetAllLimitOrderTrancheAtIndex( + s.Ctx, tradePairID, tickIndexTakerToMaker, ) @@ -1409,14 +1392,14 @@ func (s *MsgServerTestSuite) getLimitTotalSharesAtTick( return totalShares } -func (s *MsgServerTestSuite) getLimitFilledLiquidityAtTickAtIndex( +func (s *DexTestSuite) getLimitFilledLiquidityAtTickAtIndex( selling string, tickIndex int64, trancheKey string, ) sdkmath.Int { // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) - tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ + tranche, _, found := s.App.DexKeeper.FindLimitOrderTranche(s.Ctx, &types.LimitOrderTrancheKey{ TradePairID: tradePairID, TickIndexTakerToMaker: tickIndex, TrancheKey: trancheKey, @@ -1426,14 +1409,14 @@ func (s *MsgServerTestSuite) getLimitFilledLiquidityAtTickAtIndex( return tranche.ReservesTakerDenom } -func (s *MsgServerTestSuite) getLimitReservesAtTickAtKey( +func (s *DexTestSuite) getLimitReservesAtTickAtKey( selling string, tickIndex int64, trancheKey string, ) sdkmath.Int { // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) - tranche, _, found := s.app.DexKeeper.FindLimitOrderTranche(s.ctx, &types.LimitOrderTrancheKey{ + tranche, _, found := s.App.DexKeeper.FindLimitOrderTranche(s.Ctx, &types.LimitOrderTrancheKey{ TradePairID: tradePairID, TickIndexTakerToMaker: tickIndex, TrancheKey: trancheKey, @@ -1443,12 +1426,12 @@ func (s *MsgServerTestSuite) getLimitReservesAtTickAtKey( return tranche.ReservesMakerDenom } -func (s *MsgServerTestSuite) assertNLimitOrderExpiration(expected int) { - exps := s.app.DexKeeper.GetAllLimitOrderExpiration(s.ctx) +func (s *DexTestSuite) assertNLimitOrderExpiration(expected int) { + exps := s.App.DexKeeper.GetAllLimitOrderExpiration(s.Ctx) s.Assert().Equal(expected, len(exps)) } -func (s *MsgServerTestSuite) calcAutoswapSharesMinted( +func (s *DexTestSuite) calcAutoswapSharesMinted( centerTick int64, fee uint64, residual0, residual1, balanced0, balanced1, totalShares, valuePool int64, @@ -1487,31 +1470,31 @@ func (s *MsgServerTestSuite) calcAutoswapSharesMinted( return valueMint.Mul(totalSharesInt).Quo(valuePoolInt) } -func (s *MsgServerTestSuite) calcSharesMinted(centerTick, amount0Int, amount1Int int64) sdkmath.Int { +func (s *DexTestSuite) calcSharesMinted(centerTick, amount0Int, amount1Int int64) sdkmath.Int { amount0, amount1 := sdkmath.NewInt(amount0Int), sdkmath.NewInt(amount1Int) centerPrice := types.MustCalcPrice(-1 * centerTick) return math_utils.NewPrecDecFromInt(amount0).Add(centerPrice.Mul(math_utils.NewPrecDecFromInt(amount1))).TruncateInt() } -func (s *MsgServerTestSuite) calcExpectedBalancesAfterWithdrawOnePool( +func (s *DexTestSuite) calcExpectedBalancesAfterWithdrawOnePool( sharesMinted sdkmath.Int, account sdk.AccAddress, tickIndex int64, fee uint64, ) (sdkmath.Int, sdkmath.Int, sdkmath.Int, sdkmath.Int) { - dexCurrentBalance0 := s.app.BankKeeper.GetBalance( - s.ctx, - s.app.AccountKeeper.GetModuleAddress("dex"), + dexCurrentBalance0 := s.App.BankKeeper.GetBalance( + s.Ctx, + s.App.AccountKeeper.GetModuleAddress("dex"), "TokenA", ).Amount - dexCurrentBalance1 := s.app.BankKeeper.GetBalance( - s.ctx, - s.app.AccountKeeper.GetModuleAddress("dex"), + dexCurrentBalance1 := s.App.BankKeeper.GetBalance( + s.Ctx, + s.App.AccountKeeper.GetModuleAddress("dex"), "TokenB", ).Amount - currentBalance0 := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenA").Amount - currentBalance1 := s.app.BankKeeper.GetBalance(s.ctx, account, "TokenB").Amount + currentBalance0 := s.App.BankKeeper.GetBalance(s.Ctx, account, "TokenA").Amount + currentBalance1 := s.App.BankKeeper.GetBalance(s.Ctx, account, "TokenB").Amount amountPool0, amountPool1 := s.getLiquidityAtTick(tickIndex, fee) poolShares := s.getPoolShares("TokenA", "TokenB", tickIndex, fee) @@ -1526,12 +1509,12 @@ func (s *MsgServerTestSuite) calcExpectedBalancesAfterWithdrawOnePool( return expectedBalance0, expectedBalance1, dexExpectedBalance0, dexExpectedBalance1 } -func (s *MsgServerTestSuite) nextBlockWithTime(blockTime time.Time) { - newCtx := s.ctx.WithBlockTime(blockTime) - s.ctx = newCtx - s.goCtx = sdk.WrapSDKContext(newCtx) - s.app.BeginBlock(abci.RequestBeginBlock{Header: tmproto.Header{ - Height: s.app.LastBlockHeight() + 1, AppHash: s.app.LastCommitID().Hash, +func (s *DexTestSuite) nextBlockWithTime(blockTime time.Time) { + newCtx := s.Ctx.WithBlockTime(blockTime) + s.Ctx = newCtx + s.GoCtx = sdk.WrapSDKContext(newCtx) + s.App.BeginBlock(abci.RequestBeginBlock{Header: tmproto.Header{ + Height: s.App.LastBlockHeight() + 1, AppHash: s.App.LastCommitID().Hash, Time: blockTime, }}) } diff --git a/x/epochs/keeper/abci_test.go b/x/epochs/keeper/abci_test.go index c8989e5e2..223827ac6 100644 --- a/x/epochs/keeper/abci_test.go +++ b/x/epochs/keeper/abci_test.go @@ -18,7 +18,7 @@ import ( // This test is responsible for testing how epochs increment based off // of their initial conditions, and subsequent block height / times. -func (suite *KeeperTestSuite) TestEpochInfoBeginBlockChanges() { +func (suite *EpochsTestSuite) TestEpochInfoBeginBlockChanges() { block1Time := time.Unix(1656907200, 0).UTC() const defaultIdentifier = "hourly" const defaultDuration = time.Hour diff --git a/x/epochs/keeper/epoch_test.go b/x/epochs/keeper/epoch_test.go index 8a7630a0b..94ab6c0d3 100644 --- a/x/epochs/keeper/epoch_test.go +++ b/x/epochs/keeper/epoch_test.go @@ -6,7 +6,7 @@ import ( "github.com/neutron-org/neutron/x/epochs/types" ) -func (suite *KeeperTestSuite) TestAddEpochInfo() { +func (suite *EpochsTestSuite) TestAddEpochInfo() { defaultIdentifier := "default_add_epoch_info_id" defaultDuration := time.Hour startBlockHeight := int64(100) @@ -66,7 +66,7 @@ func (suite *KeeperTestSuite) TestAddEpochInfo() { } } -func (suite *KeeperTestSuite) TestDuplicateAddEpochInfo() { +func (suite *EpochsTestSuite) TestDuplicateAddEpochInfo() { identifier := "duplicate_add_epoch_info" epochInfo := types.NewGenesisEpochInfo(identifier, time.Hour*24*30) err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) @@ -75,7 +75,7 @@ func (suite *KeeperTestSuite) TestDuplicateAddEpochInfo() { suite.Require().Error(err) } -func (suite *KeeperTestSuite) TestEpochLifeCycle() { +func (suite *EpochsTestSuite) TestEpochLifeCycle() { suite.SetupTest() epochInfo := types.NewGenesisEpochInfo("monthly", time.Hour*24*30) diff --git a/x/epochs/keeper/grpc_query_test.go b/x/epochs/keeper/grpc_query_test.go index 20029a17e..a2b5c8c95 100644 --- a/x/epochs/keeper/grpc_query_test.go +++ b/x/epochs/keeper/grpc_query_test.go @@ -6,7 +6,7 @@ import ( "github.com/neutron-org/neutron/x/epochs/types" ) -func (suite *KeeperTestSuite) TestQueryEpochInfos() { +func (suite *EpochsTestSuite) TestQueryEpochInfos() { suite.SetupTest() queryClient := suite.queryClient diff --git a/x/epochs/keeper/keeper_test.go b/x/epochs/keeper/keeper_test.go index 988287c5b..4871e2de1 100644 --- a/x/epochs/keeper/keeper_test.go +++ b/x/epochs/keeper/keeper_test.go @@ -9,16 +9,16 @@ import ( "github.com/neutron-org/neutron/x/epochs/types" ) -type KeeperTestSuite struct { +type EpochsTestSuite struct { apptesting.KeeperTestHelper queryClient types.QueryClient } -func (suite *KeeperTestSuite) SetupTest() { +func (suite *EpochsTestSuite) SetupTest() { suite.Setup() suite.queryClient = types.NewQueryClient(suite.QueryHelper) } -func TestKeeperTestSuite(t *testing.T) { - suite.Run(t, new(KeeperTestSuite)) +func TestEpochsTestSuite(t *testing.T) { + suite.Run(t, new(EpochsTestSuite)) } diff --git a/x/incentives/keeper/distribute_test.go b/x/incentives/keeper/distribute_test.go index 44516848e..d97ab4342 100644 --- a/x/incentives/keeper/distribute_test.go +++ b/x/incentives/keeper/distribute_test.go @@ -21,7 +21,7 @@ type balanceAssertion struct { balances sdk.Coins } -func (suite *KeeperTestSuite) TestValueForShares() { +func (suite *IncentivesTestSuite) TestValueForShares() { addrs := apptesting.SetupAddrs(3) tests := []struct { @@ -126,7 +126,7 @@ func (suite *KeeperTestSuite) TestValueForShares() { // TestDistribute tests that when the distribute command is executed on a provided gauge // that the correct amount of rewards is sent to the correct stake owners. -func (suite *KeeperTestSuite) TestDistribute() { +func (suite *IncentivesTestSuite) TestDistribute() { addrs := apptesting.SetupAddrs(3) tests := []struct { name string diff --git a/x/incentives/keeper/gauge_test.go b/x/incentives/keeper/gauge_test.go index 11d96f27c..00b4970b1 100644 --- a/x/incentives/keeper/gauge_test.go +++ b/x/incentives/keeper/gauge_test.go @@ -15,7 +15,7 @@ import ( var _ = suite.TestingSuite(nil) -func (suite *KeeperTestSuite) TestGaugeLifecycle() { +func (suite *IncentivesTestSuite) TestGaugeLifecycle() { addr0 := suite.SetupAddr(0) // setup dex deposit and stake of those shares @@ -107,7 +107,7 @@ func (suite *KeeperTestSuite) TestGaugeLifecycle() { // fin. } -func (suite *KeeperTestSuite) TestGaugeLimit() { +func (suite *IncentivesTestSuite) TestGaugeLimit() { // We set the gauge limit to 20. On the 21st gauge, we should encounter an error. params := suite.App.IncentivesKeeper.GetParams(suite.Ctx) params.MaxGauges = 20 @@ -171,7 +171,7 @@ func (suite *KeeperTestSuite) TestGaugeLimit() { // TestGaugeCreateFails tests that when the distribute command is executed on a provided bad gauge // that the step fails gracefully. -func (suite *KeeperTestSuite) TestGaugeCreateFails() { +func (suite *IncentivesTestSuite) TestGaugeCreateFails() { addrs := apptesting.SetupAddrs(3) tests := []struct { name string diff --git a/x/incentives/keeper/genesis_test.go b/x/incentives/keeper/genesis_test.go index efeac77cb..d1747b173 100644 --- a/x/incentives/keeper/genesis_test.go +++ b/x/incentives/keeper/genesis_test.go @@ -12,7 +12,7 @@ import ( ) // TestIncentivesExportGenesis tests export genesis command for the incentives module. -func (suite *KeeperTestSuite) TestGenesis() { +func (suite *IncentivesTestSuite) TestGenesis() { validAddr, _ := apptesting.GenerateTestAddrs() genesisState := types.GenesisState{ Params: types.DefaultParams(), diff --git a/x/incentives/keeper/keeper_test.go b/x/incentives/keeper/keeper_test.go index 6017bc4f1..6268a0516 100644 --- a/x/incentives/keeper/keeper_test.go +++ b/x/incentives/keeper/keeper_test.go @@ -11,7 +11,7 @@ import ( "github.com/neutron-org/neutron/x/incentives/types" ) -type KeeperTestSuite struct { +type IncentivesTestSuite struct { apptesting.KeeperTestHelper QueryServer keeper.QueryServer @@ -21,7 +21,7 @@ type KeeperTestSuite struct { } // SetupTest sets incentives parameters from the suite's context -func (suite *KeeperTestSuite) SetupTest() { +func (suite *IncentivesTestSuite) SetupTest() { suite.Setup() suite.QueryServer = keeper.NewQueryServer(suite.App.IncentivesKeeper) suite.MsgServer = keeper.NewMsgServerImpl(suite.App.IncentivesKeeper) @@ -47,6 +47,6 @@ func (suite *KeeperTestSuite) SetupTest() { suite.SetEpochStartTime() } -func TestKeeperTestSuite(t *testing.T) { - suite.Run(t, new(KeeperTestSuite)) +func TestIncentivesTestSuite(t *testing.T) { + suite.Run(t, new(IncentivesTestSuite)) } diff --git a/x/incentives/keeper/query_server_test.go b/x/incentives/keeper/query_server_test.go index 1a99a7117..d1545f6a1 100644 --- a/x/incentives/keeper/query_server_test.go +++ b/x/incentives/keeper/query_server_test.go @@ -10,7 +10,7 @@ import ( var _ = suite.TestingSuite(nil) -func (suite *KeeperTestSuite) TestGetFutureRewardEstimate() { +func (suite *IncentivesTestSuite) TestGetFutureRewardEstimate() { addr1 := suite.SetupAddr(0) suite.SetupDepositAndStake(depositStakeSpec{ depositSpecs: []depositSpec{ @@ -67,7 +67,7 @@ func (suite *KeeperTestSuite) TestGetFutureRewardEstimate() { suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin("foocoin", 750)), estimate.Coins) } -func (suite *KeeperTestSuite) TestGetGauges() { +func (suite *IncentivesTestSuite) TestGetGauges() { addr1 := suite.SetupAddr(0) suite.SetupDepositAndStake(depositStakeSpec{ depositSpecs: []depositSpec{ diff --git a/x/incentives/keeper/stake_test.go b/x/incentives/keeper/stake_test.go index 00da937c8..d5caf9e0b 100644 --- a/x/incentives/keeper/stake_test.go +++ b/x/incentives/keeper/stake_test.go @@ -8,7 +8,7 @@ import ( var _ = suite.TestingSuite(nil) -func (suite *KeeperTestSuite) TestStakeLifecycle() { +func (suite *IncentivesTestSuite) TestStakeLifecycle() { addr0 := suite.SetupAddr(0) // setup dex deposit and stake of those shares @@ -39,7 +39,7 @@ func (suite *KeeperTestSuite) TestStakeLifecycle() { suite.Require().Error(err) } -func (suite *KeeperTestSuite) TestMultipleStakeLifecycle() { +func (suite *IncentivesTestSuite) TestMultipleStakeLifecycle() { addr0 := suite.SetupAddr(0) // setup dex deposit and stake of those shares @@ -81,7 +81,7 @@ func (suite *KeeperTestSuite) TestMultipleStakeLifecycle() { suite.Require().Error(err) } -func (suite *KeeperTestSuite) TestStakeUnstakePartial() { +func (suite *IncentivesTestSuite) TestStakeUnstakePartial() { addr0 := suite.SetupAddr(0) // setup dex deposit and stake of those shares diff --git a/x/incentives/keeper/suite_test.go b/x/incentives/keeper/suite_test.go index cf0ab8382..7668ea9b1 100644 --- a/x/incentives/keeper/suite_test.go +++ b/x/incentives/keeper/suite_test.go @@ -34,7 +34,7 @@ type gaugeSpec struct { } // AddToGauge adds coins to the specified gauge. -func (suite *KeeperTestSuite) AddToGauge(coins sdk.Coins, gaugeID uint64) uint64 { +func (suite *IncentivesTestSuite) AddToGauge(coins sdk.Coins, gaugeID uint64) uint64 { addr := sdk.AccAddress([]byte("addrx---------------")) suite.FundAcc(addr, coins) err := suite.App.IncentivesKeeper.AddToGaugeRewards(suite.Ctx, addr, coins, gaugeID) @@ -42,7 +42,7 @@ func (suite *KeeperTestSuite) AddToGauge(coins sdk.Coins, gaugeID uint64) uint64 return gaugeID } -func (suite *KeeperTestSuite) SetupDeposit(ss []depositSpec) sdk.Coins { +func (suite *IncentivesTestSuite) SetupDeposit(ss []depositSpec) sdk.Coins { shares := sdk.NewCoins() for _, s := range ss { suite.FundAcc(s.addr, sdk.Coins{s.token0, s.token1}) @@ -64,13 +64,13 @@ func (suite *KeeperTestSuite) SetupDeposit(ss []depositSpec) sdk.Coins { return shares } -func (suite *KeeperTestSuite) SetupDepositAndStake(s depositStakeSpec) *types.Stake { +func (suite *IncentivesTestSuite) SetupDepositAndStake(s depositStakeSpec) *types.Stake { shares := suite.SetupDeposit(s.depositSpecs) return suite.SetupStake(s.depositSpecs[0].addr, shares, s.stakeDistEpochOffset) } // StakeTokens stakes tokens for the specified duration -func (suite *KeeperTestSuite) SetupStake( +func (suite *IncentivesTestSuite) SetupStake( addr sdk.AccAddress, shares sdk.Coins, distEpochOffset int, @@ -89,7 +89,7 @@ func (suite *KeeperTestSuite) SetupStake( } // setupNewGauge creates a gauge with the specified duration. -func (suite *KeeperTestSuite) SetupGauge(s gaugeSpec) *types.Gauge { +func (suite *IncentivesTestSuite) SetupGauge(s gaugeSpec) *types.Gauge { addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) // fund reward tokens @@ -117,7 +117,7 @@ func (suite *KeeperTestSuite) SetupGauge(s gaugeSpec) *types.Gauge { return gauge } -func (suite *KeeperTestSuite) SetupGauges(specs []gaugeSpec) { +func (suite *IncentivesTestSuite) SetupGauges(specs []gaugeSpec) { for _, s := range specs { suite.SetupGauge(s) } From 040d01287e66c06bacceee447c544b206ed2ca9f Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 17 Oct 2023 19:34:15 -0400 Subject: [PATCH 186/307] set max_gas in init-neutrond.sh duality code requires max gas to be set initChain panics --- network/init-neutrond.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 390284816..d2461210f 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -643,6 +643,7 @@ set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BY set_genesis_param proposer_fee "\"0.25\"" # builder(POB) set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) set_genesis_param sudo_call_gas_limit "\"1000000\"" # contractmanager +set_genesis_param max_gas "\"40000000\"" # consensus_params if ! jq -e . "$GENESIS_PATH" >/dev/null 2>&1; then echo "genesis appears to become incorrect json" >&2 From 6a06cc233ffe36bf6d0a4b7f416b3a0f810b8957 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 17 Oct 2023 19:59:56 -0400 Subject: [PATCH 187/307] remove vestigial code --- x/incentives/types/account.pb.go | 391 ------------------------------- 1 file changed, 391 deletions(-) delete mode 100644 x/incentives/types/account.pb.go diff --git a/x/incentives/types/account.pb.go b/x/incentives/types/account.pb.go deleted file mode 100644 index eb0a043c9..000000000 --- a/x/incentives/types/account.pb.go +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: dualitylabs/duality/incentives/account.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Describes the total distributions to an account over time -type Account struct { - // the address of this account - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - // coins describes the total amount of coins that have been distributed to this user over time - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` -} - -func (m *Account) Reset() { *m = Account{} } -func (m *Account) String() string { return proto.CompactTextString(m) } -func (*Account) ProtoMessage() {} -func (*Account) Descriptor() ([]byte, []int) { - return fileDescriptor_2ae6444a4cf54b42, []int{0} -} -func (m *Account) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Account.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 *Account) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account.Merge(m, src) -} -func (m *Account) XXX_Size() int { - return m.Size() -} -func (m *Account) XXX_DiscardUnknown() { - xxx_messageInfo_Account.DiscardUnknown(m) -} - -var xxx_messageInfo_Account proto.InternalMessageInfo - -func (m *Account) GetAccount() string { - if m != nil { - return m.Account - } - return "" -} - -func (m *Account) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -func init() { - proto.RegisterType((*Account)(nil), "dualitylabs.duality.incentives.Account") -} - -func init() { - proto.RegisterFile("dualitylabs/duality/incentives/account.proto", fileDescriptor_2ae6444a4cf54b42) -} - -var fileDescriptor_2ae6444a4cf54b42 = []byte{ - // 258 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x29, 0x4d, 0xcc, - 0xc9, 0x2c, 0xa9, 0xcc, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xb2, 0xf5, 0x33, 0xf3, 0x92, 0x53, 0xf3, - 0x4a, 0x32, 0xcb, 0x52, 0x8b, 0xf5, 0x13, 0x93, 0x93, 0xf3, 0x4b, 0xf3, 0x4a, 0xf4, 0x0a, 0x8a, - 0xf2, 0x4b, 0xf2, 0x85, 0xe4, 0x90, 0x54, 0xeb, 0x41, 0xd9, 0x7a, 0x08, 0xd5, 0x52, 0x22, 0xe9, - 0xf9, 0xe9, 0xf9, 0x60, 0xa5, 0xfa, 0x20, 0x16, 0x44, 0x97, 0x94, 0x5c, 0x72, 0x7e, 0x71, 0x6e, - 0x7e, 0xb1, 0x7e, 0x52, 0x62, 0x71, 0xaa, 0x7e, 0x99, 0x61, 0x52, 0x6a, 0x49, 0xa2, 0xa1, 0x7e, - 0x72, 0x7e, 0x66, 0x1e, 0x44, 0x5e, 0xa9, 0x8d, 0x91, 0x8b, 0xdd, 0x11, 0x62, 0x8f, 0x90, 0x04, - 0x17, 0x3b, 0xd4, 0x4a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, 0x28, 0x91, 0x8b, - 0x15, 0xa4, 0xa7, 0x58, 0x82, 0x49, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x52, 0x0f, 0x62, 0xaa, 0x1e, - 0xc8, 0x54, 0x3d, 0xa8, 0xa9, 0x7a, 0xce, 0xf9, 0x99, 0x79, 0x4e, 0x06, 0x27, 0xee, 0xc9, 0x33, - 0xac, 0xba, 0x2f, 0xaf, 0x91, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, - 0x75, 0x02, 0x84, 0xd2, 0x2d, 0x4e, 0xc9, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x06, 0x6b, 0x28, - 0x0e, 0x82, 0x98, 0xec, 0xe4, 0x73, 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, - 0x46, 0x48, 0x46, 0x41, 0xfd, 0xad, 0x8b, 0x12, 0x64, 0x15, 0xc8, 0x81, 0x06, 0x36, 0x3a, 0x89, - 0x0d, 0xec, 0x3b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0xe1, 0x38, 0x8e, 0x63, 0x01, - 0x00, 0x00, -} - -func (m *Account) 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 *Account) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Account) > 0 { - i -= len(m.Account) - copy(dAtA[i:], m.Account) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Account))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintAccount(dAtA []byte, offset int, v uint64) int { - offset -= sovAccount(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Account) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Account) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovAccount(uint64(l)) - } - } - return n -} - -func sovAccount(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozAccount(x uint64) (n int) { - return sovAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Account) 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 ErrIntOverflowAccount - } - 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: Account: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - 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 ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Account = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipAccount(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, ErrIntOverflowAccount - } - 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, ErrIntOverflowAccount - } - 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, ErrIntOverflowAccount - } - 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, ErrInvalidLengthAccount - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAccount - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthAccount - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") -) From 549c39a69f3f5619f8405424e6842e81009e0bee Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 17 Oct 2023 20:03:29 -0400 Subject: [PATCH 188/307] rename duality => neutron where applicable in code --- tests/ibc/gmp_swap_forward_test.go | 42 ++-- tests/ibc/ibc_setup_test.go | 110 ++++---- tests/ibc/swap_forward_test.go | 234 +++++++++--------- tests/ibc/swap_test.go | 104 ++++---- testutil/integration_test_setup.go | 2 +- wasmbinding/stargate_allowlist.go | 38 +-- x/dex/keeper/core_helper_test.go | 4 +- x/dex/keeper/grpc_query_user_deposits_test.go | 4 +- x/dex/types/errors.go | 2 +- x/dex/types/pool_denom.go | 2 +- x/dex/types/pool_denom_test.go | 8 +- x/epochs/README.md | 8 +- x/ibcswap/keeper/keeper.go | 2 +- x/ibcswap/types/swap.go | 2 +- x/incentives/README LOCKUP.md | 106 ++++---- x/incentives/client/cli/cli_test.go | 14 +- x/incentives/client/cli/query.go | 2 +- x/incentives/keeper/distributor_test.go | 2 +- x/incentives/types/codec.go | 8 +- 19 files changed, 335 insertions(+), 359 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 95e579f97..06dfa33a3 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -12,28 +12,28 @@ import ( swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" ) -// TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Duality running as a +// TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Neutron running as a // consumer chain connected to two other chains via IBC. func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { - // Send an IBC transfer from provider to Duality, so we can initialize a pool with the IBC denom token + native Duality token - s.IBCTransferProviderToDuality(s.providerAddr, s.dualityAddr, nativeDenom, ibcTransferAmount, "") + // Send an IBC transfer from provider to Neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, "") - // Assert that the funds are gone from the acc on provider and present in the acc on Duality + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - // deposit stake<>ibcTransferToken to initialize the pool on Duality + // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) - s.dualityDeposit( + s.neutronDeposit( nativeDenom, - s.providerToDualityDenom, + s.providerToNeutronDenom, depositAmount, depositAmount, 0, 1, - s.dualityAddr) + s.neutronAddr) // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) @@ -44,8 +44,8 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { forwardMetadata := forwardtypes.PacketMetadata{ Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), - Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, - Channel: s.dualityChainBPath.EndpointA.ChannelID, + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.neutronChainBPath.EndpointA.ChannelID, Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, @@ -62,9 +62,9 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { swapMetadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 2, @@ -89,23 +89,23 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Send an IBC transfer from chainA to chainB with packet memo containing the swap metadata - s.IBCTransferProviderToDuality(s.providerAddr, s.dualityAddr, nativeDenom, ibcTransferAmount, string(gmpMetadataBz)) + s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, string(gmpMetadataBz)) // Relay the packet - err = s.RelayAllPacketsAToB(s.dualityChainBPath) + err = s.RelayAllPacketsAToB(s.neutronChainBPath) s.Assert().NoError(err) // Check that the funds are moved out of the acc on providerChain s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - // Check that duality account did not keep any of the transfer denom - s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + // Check that the amountIn is deduced from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + // Check that neutron account did not keep any of the transfer denom + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, - s.dualityChainBPath.EndpointA.ChannelID, + s.neutronChainBPath.EndpointA.ChannelID, nativeDenom, ) transferDenomChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index ebe6802ed..e3df4b424 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -1,13 +1,10 @@ package ibc_test import ( - "encoding/json" "fmt" "testing" "cosmossdk.io/math" - dbm "github.com/cometbft/cometbft-db" - "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -16,12 +13,11 @@ import ( ibctesting "github.com/cosmos/ibc-go/v7/testing" icsibctesting "github.com/cosmos/interchain-security/v3/legacy_ibc_testing/testing" - "github.com/cometbft/cometbft/libs/log" icstestingutils "github.com/cosmos/interchain-security/v3/testutil/ibc_testing" - testutil "github.com/cosmos/interchain-security/v3/testutil/integration" + icstestutil "github.com/cosmos/interchain-security/v3/testutil/integration" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" ccv "github.com/cosmos/interchain-security/v3/x/ccv/types" - app "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/testutil" dextypes "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/suite" ) @@ -37,20 +33,20 @@ type IBCTestSuite struct { coordinator *icsibctesting.Coordinator providerChain *icsibctesting.TestChain - providerApp testutil.ProviderApp - dualityChain *icsibctesting.TestChain // aka chainA - dualityApp testutil.ConsumerApp + providerApp icstestutil.ProviderApp + neutronChain *icsibctesting.TestChain // aka chainA + neutronApp icstestutil.ConsumerApp bundleB *icstestingutils.ConsumerBundle bundleC *icstestingutils.ConsumerBundle - dualityCCVPath *icsibctesting.Path - dualityTransferPath *icsibctesting.Path - dualityChainBPath *icsibctesting.Path + neutronCCVPath *icsibctesting.Path + neutronTransferPath *icsibctesting.Path + neutronChainBPath *icsibctesting.Path chainBChainCPath *icsibctesting.Path providerAddr sdk.AccAddress - dualityAddr sdk.AccAddress - providerToDualityDenom string + neutronAddr sdk.AccAddress + providerToNeutronDenom string } func TestIBCTestSuite(t *testing.T) { @@ -60,46 +56,46 @@ func TestIBCTestSuite(t *testing.T) { func (s *IBCTestSuite) SetupTest() { // Create coordinator s.coordinator = icsibctesting.NewCoordinator(s.T(), 0) - s.providerChain, s.providerApp = icstestingutils.AddProvider[testutil.ProviderApp]( + s.providerChain, s.providerApp = icstestingutils.AddProvider[icstestutil.ProviderApp]( s.T(), s.coordinator, icstestingutils.ProviderAppIniter, ) - // Setup duality as a consumer chain - dualityBundle := s.addConsumerChain(dualityAppIniter, 1) - s.dualityChain = dualityBundle.Chain - s.dualityApp = dualityBundle.App - s.dualityCCVPath = dualityBundle.Path - s.dualityTransferPath = dualityBundle.TransferPath + // Setup neutron as a consumer chain + neutronBundle := s.addConsumerChain(testutil.SetupTestingApp("neutron-1"), 1) + s.neutronChain = neutronBundle.Chain + s.neutronApp = neutronBundle.App + s.neutronCCVPath = neutronBundle.Path + s.neutronTransferPath = neutronBundle.TransferPath // Setup consumer chainB - // NOTE: using dualityAppIniter otherwise the consumer chain doesn't have the packetForwarding middleware - s.bundleB = s.addConsumerChain(dualityAppIniter, 2) + // NOTE: using neutron Setup for chain B, otherwise the consumer chain doesn't have the packetForwarding middleware + s.bundleB = s.addConsumerChain(testutil.SetupTestingApp("chainB-1"), 2) // Setup consumer chainC s.bundleC = s.addConsumerChain(icstestingutils.ConsumerAppIniter, 3) - // setup transfer channel between duality and consumerChainB - s.dualityChainBPath = s.setupConsumerToConsumerTransferChannel(dualityBundle, s.bundleB) + // setup transfer channel between neutron and consumerChainB + s.neutronChainBPath = s.setupConsumerToConsumerTransferChannel(neutronBundle, s.bundleB) // setup transfer channel between consumerChainB and consumerChainC s.chainBChainCPath = s.setupConsumerToConsumerTransferChannel(s.bundleB, s.bundleC) - // Store ibc transfer denom for providerChain=>duality for test convenience + // Store ibc transfer denom for providerChain=>neutron for test convenience fullTransferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, - s.dualityTransferPath.EndpointB.ChannelID, + s.neutronTransferPath.EndpointB.ChannelID, nativeDenom, ) transferDenom := transfertypes.ParseDenomTrace(fullTransferDenomPath).IBCDenom() - s.providerToDualityDenom = transferDenom + s.providerToNeutronDenom = transferDenom - // Store default addresses from duality and provider chain for test convenience + // Store default addresses from neutron and provider chain for test convenience s.providerAddr = s.providerChain.SenderAccount.GetAddress() - s.dualityAddr = s.dualityChain.SenderAccount.GetAddress() + s.neutronAddr = s.neutronChain.SenderAccount.GetAddress() // ensure genesis balances are as expected - s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) } @@ -107,7 +103,7 @@ func (s *IBCTestSuite) addConsumerChain( appIniter icsibctesting.AppIniter, chainIdx int, ) *icstestingutils.ConsumerBundle { - bundle := icstestingutils.AddConsumer[testutil.ProviderApp, testutil.ConsumerApp]( + bundle := icstestingutils.AddConsumer[icstestutil.ProviderApp, icstestutil.ConsumerApp]( s.coordinator, &s.Suite, chainIdx, @@ -136,7 +132,7 @@ func (s *IBCTestSuite) setupCCVChannel(bundle *icstestingutils.ConsumerBundle) * ccvPath := icsibctesting.NewPath(bundle.Chain, s.providerChain) providerKeeper := s.providerApp.GetProviderKeeper() - dualityKeeper := bundle.GetKeeper() + neutronKeeper := bundle.GetKeeper() providerEndpointClientID, found := providerKeeper.GetConsumerClientId( s.providerCtx(), @@ -145,7 +141,7 @@ func (s *IBCTestSuite) setupCCVChannel(bundle *icstestingutils.ConsumerBundle) * s.Require().True(found, "provider endpoint clientID not found") ccvPath.EndpointB.ClientID = providerEndpointClientID - consumerEndpointClientID, found := dualityKeeper.GetProviderClientID(bundle.GetCtx()) + consumerEndpointClientID, found := neutronKeeper.GetProviderClientID(bundle.GetCtx()) s.Require().True(found, "consumer endpoint clientID not found") ccvPath.EndpointA.ClientID = consumerEndpointClientID @@ -188,7 +184,7 @@ func (s *IBCTestSuite) setupConsumerToConsumerTransferChannel( func (s *IBCTestSuite) setupTransferChannel( ccvPath *icsibctesting.Path, - appA testutil.ConsumerApp, + appA icstestutil.ConsumerApp, chainA, chainB *icsibctesting.TestChain, ) *icsibctesting.Path { // transfer path will use the same connection as ibc path @@ -225,26 +221,6 @@ func (s *IBCTestSuite) setupTransferChannel( return transferPath } -func dualityAppIniter() (icsibctesting.TestingApp, map[string]json.RawMessage) { - encoding := app.MakeEncodingConfig() - db := dbm.NewMemDB() - testApp := app.New( - log.NewNopLogger(), - "neutron-1", - db, - nil, - true, - map[int64]bool{}, - app.DefaultNodeHome, - 0, - encoding, - sims.EmptyAppOptions{}, - nil, - ) - - return testApp, app.NewDefaultGenesisState(testApp.AppCodec()) -} - func (s *IBCTestSuite) providerCtx() sdk.Context { return s.providerChain.GetContext() } @@ -277,7 +253,7 @@ func (s *IBCTestSuite) IBCTransfer( res, err := sourceEndpoint.Chain.SendMsgs(transferMsg) s.Assert().NoError(err) - // Relay transfer msg to Duality chain + // Relay transfer msg to Neutron chain packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents()) s.Require().NoError(err) @@ -285,18 +261,18 @@ func (s *IBCTestSuite) IBCTransfer( path.RelayPacket(packet) } -func (s *IBCTestSuite) IBCTransferProviderToDuality( +func (s *IBCTestSuite) IBCTransferProviderToNeutron( providerAddr sdk.AccAddress, - dualityAddr sdk.AccAddress, + neutronAddr sdk.AccAddress, transferDenom string, transferAmount math.Int, memo string, ) { s.IBCTransfer( - s.dualityTransferPath, - s.dualityTransferPath.EndpointB, + s.neutronTransferPath, + s.neutronTransferPath.EndpointB, providerAddr, - dualityAddr, + neutronAddr, transferDenom, transferAmount, memo, @@ -304,7 +280,7 @@ func (s *IBCTestSuite) IBCTransferProviderToDuality( } func (s *IBCTestSuite) getBalance( - bk testutil.TestBankKeeper, + bk icstestutil.TestBankKeeper, chain *icsibctesting.TestChain, addr sdk.AccAddress, denom string, @@ -314,7 +290,7 @@ func (s *IBCTestSuite) getBalance( } func (s *IBCTestSuite) assertBalance( - bk testutil.TestBankKeeper, + bk icstestutil.TestBankKeeper, chain *icsibctesting.TestChain, addr sdk.AccAddress, denom string, @@ -325,12 +301,12 @@ func (s *IBCTestSuite) assertBalance( Equal(expectedAmt, actualAmt, "Expected amount of %s: %s; Got: %s", denom, expectedAmt, actualAmt) } -func (s *IBCTestSuite) assertDualityBalance( +func (s *IBCTestSuite) assertNeutronBalance( addr sdk.AccAddress, denom string, expectedAmt math.Int, ) { - s.assertBalance(s.dualityApp.GetTestBankKeeper(), s.dualityChain, addr, denom, expectedAmt) + s.assertBalance(s.neutronApp.GetTestBankKeeper(), s.neutronChain, addr, denom, expectedAmt) } func (s *IBCTestSuite) assertProviderBalance( @@ -350,7 +326,7 @@ func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, ex } //nolint:unparam // keep this flexible even if we aren't currently using all the params -func (s *IBCTestSuite) dualityDeposit( +func (s *IBCTestSuite) neutronDeposit( token0 string, token1 string, depositAmount0 math.Int, @@ -373,7 +349,7 @@ func (s *IBCTestSuite) dualityDeposit( ) // execute deposit msg - _, err := s.dualityChain.SendMsgs(msgDeposit) + _, err := s.neutronChain.SendMsgs(msgDeposit) s.Assert().NoError(err, "Deposit Failed") } diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 6dd383a2b..12d07e448 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -14,36 +14,36 @@ import ( ) func (s *IBCTestSuite) TestSwapAndForward_Success() { - // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, "", ) - // Assert that the funds are gone from the acc on provider and present in the acc on Duality + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - // deposit stake<>ibcTransferToken to initialize the pool on Duality + // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) - s.dualityDeposit( + s.neutronDeposit( nativeDenom, - s.providerToDualityDenom, + s.providerToNeutronDenom, depositAmount, depositAmount, 0, 1, - s.dualityAddr) + s.neutronAddr) - // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) @@ -55,8 +55,8 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { forwardMetadata := forwardtypes.PacketMetadata{ Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), - Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, - Channel: s.dualityChainBPath.EndpointA.ChannelID, + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.neutronChainBPath.EndpointA.ChannelID, Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, @@ -73,9 +73,9 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 2, @@ -88,17 +88,17 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) - // Send an IBC transfer from provider to duality with packet memo containing the swap metadata - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) // Relay the packets - err = s.RelayAllPacketsAToB(s.dualityChainBPath) + err = s.RelayAllPacketsAToB(s.neutronChainBPath) s.Assert().NoError(err) // Check that the funds are moved out of the acc on providerChain @@ -108,55 +108,55 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - // Check that duality account did not keep any of the transfer denom - s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + // Check that the amountIn is deducted from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + // Check that neutron account did not keep any of the transfer denom + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, - s.dualityChainBPath.EndpointA.ChannelID, + s.neutronChainBPath.EndpointA.ChannelID, nativeDenom, ) - transferDenomDualityChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() // Check that the funds are now present in the acc on chainB - s.assertChainBBalance(chainBAddr, transferDenomDualityChainB, expectedAmountOut) + s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) s.Assert().NoError(err) } func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { - // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, "", ) - // Assert that the funds are gone from the acc on provider and present in the acc on Duality + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - // deposit stake<>ibcTransferToken to initialize the pool on Duality + // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) - s.dualityDeposit( + s.neutronDeposit( nativeDenom, - s.providerToDualityDenom, + s.providerToNeutronDenom, depositAmount, depositAmount, 0, 1, - s.dualityAddr) + s.neutronAddr) - // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) @@ -184,8 +184,8 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { forwardMetadata := forwardtypes.PacketMetadata{ Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), - Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, - Channel: s.dualityChainBPath.EndpointA.ChannelID, + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.neutronChainBPath.EndpointA.ChannelID, Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nextForwardJSON, @@ -201,9 +201,9 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 2, @@ -216,33 +216,33 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { metadataBz, err := json.Marshal(metadata) s.Assert().NoError(err) - // Send an IBC transfer from provider to duality with packet memo containing the swap metadata - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) - dualityPacket := maps.Values(s.dualityChain.SentPackets)[0] - err = s.dualityChainBPath.EndpointB.UpdateClient() + neutronPacket := maps.Values(s.neutronChain.SentPackets)[0] + err = s.neutronChainBPath.EndpointB.UpdateClient() s.Require().NoError(err) - err = s.dualityChainBPath.EndpointB.RecvPacket(dualityPacket) + err = s.neutronChainBPath.EndpointB.RecvPacket(neutronPacket) s.Require().NoError(err) err = s.RelayAllPacketsAToB(s.chainBChainCPath) s.Require().NoError(err) - transferDenomPathDualityChainB := transfertypes.GetPrefixedDenom( + transferDenomPathNeutronChainB := transfertypes.GetPrefixedDenom( transfertypes.PortID, - s.dualityChainBPath.EndpointB.ChannelID, + s.neutronChainBPath.EndpointB.ChannelID, nativeDenom, ) - transferDenomDualityChainB := transfertypes.ParseDenomTrace(transferDenomPathDualityChainB).IBCDenom() + transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPathNeutronChainB).IBCDenom() transferDenomPathChainC := transfertypes.GetPrefixedDenom( transfertypes.PortID, s.chainBChainCPath.EndpointB.ChannelID, - transferDenomPathDualityChainB, + transferDenomPathNeutronChainB, ) transferDenomChainC := transfertypes.ParseDenomTrace(transferDenomPathChainC).IBCDenom() @@ -253,7 +253,7 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { newProviderBalNative.Sub(ibcTransferAmount), ) // Check that chain B balance is unchanged - s.assertChainBBalance(chainBAddr, transferDenomDualityChainB, math.ZeroInt()) + s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) // Check that funds made it to chainC s.assertChainCBalance(chainCAddr, transferDenomChainC, expectedOut) @@ -261,38 +261,38 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { // TestSwapAndForward_UnwindIBCDenomSuccess asserts that the swap and forward middleware stack works as intended in the // case that a native token from ChainB is sent to ChainA and then ChainA initiates a swap and forward with the token. -// This asserts that denom unwinding works as intended when going provider->duality->provider +// This asserts that denom unwinding works as intended when going provider->neutron->provider func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { - // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, "", ) - // Assert that the funds are gone from the acc on provider and present in the acc on Duality + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - // deposit stake<>ibcTransferToken to initialize the pool on Duality + // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) - s.dualityDeposit( + s.neutronDeposit( nativeDenom, - s.providerToDualityDenom, + s.providerToNeutronDenom, depositAmount, depositAmount, 0, 1, - s.dualityAddr) + s.neutronAddr) - // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) swapAmount := math.NewInt(100000) expectedAmountOut := math.NewInt(99990) @@ -302,8 +302,8 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { forwardMetadata := forwardtypes.PacketMetadata{ Forward: &forwardtypes.ForwardMetadata{ Receiver: s.providerAddr.String(), - Port: s.dualityTransferPath.EndpointA.ChannelConfig.PortID, - Channel: s.dualityTransferPath.EndpointA.ChannelID, + Port: s.neutronTransferPath.EndpointA.ChannelConfig.PortID, + Channel: s.neutronTransferPath.EndpointA.ChannelID, Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, @@ -320,10 +320,10 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), TokenIn: nativeDenom, - TokenOut: s.providerToDualityDenom, + TokenOut: s.providerToNeutronDenom, AmountIn: swapAmount, TickIndexInToOut: 2, OrderType: types.LimitOrderType_FILL_OR_KILL, @@ -335,24 +335,24 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) - // Send an IBC transfer from provider to duality with packet memo containing the swap metadata - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) // Relay the packets - err = s.RelayAllPacketsAToB(s.dualityTransferPath) + err = s.RelayAllPacketsAToB(s.neutronTransferPath) s.Assert().NoError(err) - s.coordinator.CommitBlock(s.dualityChain) + s.coordinator.CommitBlock(s.neutronChain) - // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Sub(swapAmount)) - // Check that the amountIn has been deducted from the duality chain - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Sub(swapAmount)) + // Check that the amountIn is deduced from the neutron account + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) + // Check that the amountIn has been deducted from the neutron chain + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, @@ -366,36 +366,36 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { // TestSwapAndForward_ForwardFails asserts that the swap and forward middleware stack works as intended in the case // that an incoming IBC swap succeeds but the forward fails. func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { - // Send an IBC transfer from provider chain to duality, so we can initialize a pool with the IBC denom token + native Duality token - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, "", ) - // Assert that the funds are gone from the acc on provider and present in the acc on Duality + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - // deposit stake<>ibcTransferToken to initialize the pool on Duality + // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) - s.dualityDeposit( + s.neutronDeposit( nativeDenom, - s.providerToDualityDenom, + s.providerToNeutronDenom, depositAmount, depositAmount, 0, 1, - s.dualityAddr) + s.neutronAddr) - // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) @@ -407,7 +407,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { forwardMetadata := forwardtypes.PacketMetadata{ Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), - Port: s.dualityChainBPath.EndpointA.ChannelConfig.PortID, + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: "invalid-channel", // add an invalid channel identifier so the forward fails Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, @@ -425,9 +425,9 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 2, @@ -440,17 +440,17 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) - // Send an IBC transfer from provider to duality with packet memo containing the swap metadata - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) - // Relay the packets from duality => ChainB - err = s.RelayAllPacketsAToB(s.dualityChainBPath) + // Relay the packets from neutron => ChainB + err = s.RelayAllPacketsAToB(s.neutronChainBPath) // Relay Fails s.Assert().Error(err) @@ -461,22 +461,22 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deduced from the duality account - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - // Check that the amountOut stays on the dualitychain - s.assertDualityBalance( - s.dualityAddr, + // Check that the amountIn is deduced from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + // Check that the amountOut stays on the neutronchain + s.assertNeutronBalance( + s.neutronAddr, nativeDenom, - postDepositDualityBalNative.Add(expectedAmountOut), + postDepositNeutronBalNative.Add(expectedAmountOut), ) // Check that nothing made it to chainB transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, - s.dualityChainBPath.EndpointA.ChannelID, + s.neutronChainBPath.EndpointA.ChannelID, nativeDenom, ) - transferDenomDualityChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - s.assertChainBBalance(chainBAddr, transferDenomDualityChainB, math.ZeroInt()) + s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) } diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index 3cc72adb4..a7cf723af 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -8,50 +8,50 @@ import ( swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" ) -// TestIBCSwapMiddleware_Success asserts that the IBC swap middleware works as intended with Duality running as a +// TestIBCSwapMiddleware_Success asserts that the IBC swap middleware works as intended with Neutron running as a // consumer chain connected to the Cosmos Hub. func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { - // Send an IBC transfer from provider to Duality, so we can initialize a pool with the IBC denom token + native Duality token - s.IBCTransferProviderToDuality( + // Send an IBC transfer from provider to Neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, "", ) - // Assert that the funds are gone from the acc on provider and present in the acc on Duality + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - // deposit stake<>ibcTransferToken to initialize the pool on Duality + // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) - s.dualityDeposit( + s.neutronDeposit( nativeDenom, - s.providerToDualityDenom, + s.providerToNeutronDenom, depositAmount, depositAmount, 0, 1, - s.dualityAddr) + s.neutronAddr) - // Assert that the deposit was successful and the funds are moved out of the Duality user acc - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) - postDepositDualityBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative) + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - // Send an IBC transfer from providerChain to Duality with packet memo containing the swap metadata + // Send an IBC transfer from providerChain to Neutron with packet memo containing the swap metadata swapAmount := math.NewInt(100000) expectedOut := math.NewInt(99_990) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 1, @@ -64,9 +64,9 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) - s.IBCTransferProviderToDuality( + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), @@ -79,14 +79,14 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the swap funds are now present in the acc on Duality - s.assertDualityBalance(s.dualityAddr, nativeDenom, postDepositDualityBalNative.Add(expectedOut)) + // Check that the swap funds are now present in the acc on Neutron + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) // Check that all of the IBC transfer denom have been used up - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) } -// TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Duality running as a +// TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Neutron running as a // consumer chain connected to the Cosmos Hub. The swap should fail and a refund to the src chain should take place. func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair @@ -94,9 +94,9 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 1, @@ -111,33 +111,33 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { s.Require().NoError(err) // Send (failing) IBC transfer with swap metadata - s.IBCTransferProviderToDuality( + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) - // Check that the funds are not present in the account on Duality - s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, math.ZeroInt()) + // Check that the funds are not present in the account on Neutron + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) // Check that the refund takes place and the funds are moved back to the account on Gaia s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) } -// TestIBCSwapMiddleware_FailNoRefund asserts that the IBC swap middleware works as intended with Duality running as a -// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Duality. +// TestIBCSwapMiddleware_FailNoRefund asserts that the IBC swap middleware works as intended with Neutron running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron. func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair swapAmount := math.NewInt(100000) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 1, @@ -152,36 +152,36 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { s.Require().NoError(err) // Send (failing) IBC transfer with swap metadata - s.IBCTransferProviderToDuality( + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) - // Check that the funds are present in the account on Duality - s.assertDualityBalance(s.dualityAddr, nativeDenom, genesisWalletAmount) - s.assertDualityBalance(s.dualityAddr, s.providerToDualityDenom, ibcTransferAmount) + // Check that the funds are present in the account on Neutron + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) // Check that no refund takes place and the funds are not in the account on provider s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) } -// TestIBCSwapMiddleware_FailWithRefundAddr asserts that the IBC swap middleware works as intended with Duality running as a -// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Duality but be moved +// TestIBCSwapMiddleware_FailWithRefundAddr asserts that the IBC swap middleware works as intended with Neutron running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron but be moved // to the refund address. func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair - refundAddr := s.dualityChain.SenderAccounts[1].SenderAccount.GetAddress() + refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() swapAmount := math.NewInt(100000) metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ - Creator: s.dualityAddr.String(), - Receiver: s.dualityAddr.String(), - TokenIn: s.providerToDualityDenom, + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, TokenOut: nativeDenom, AmountIn: swapAmount, TickIndexInToOut: 1, @@ -197,17 +197,17 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { s.Require().NoError(err) // Send (failing) IBC transfer with swap metadata - s.IBCTransferProviderToDuality( + s.IBCTransferProviderToNeutron( s.providerAddr, - s.dualityAddr, + s.neutronAddr, nativeDenom, ibcTransferAmount, string(metadataBz), ) // Check that the funds have been moved to the refund address - s.assertDualityBalance(refundAddr, nativeDenom, genesisWalletAmount) - s.assertDualityBalance(refundAddr, s.providerToDualityDenom, ibcTransferAmount) + s.assertNeutronBalance(refundAddr, nativeDenom, genesisWalletAmount) + s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) // Check that no refund takes place and the funds are not in the account on provider s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) diff --git a/testutil/integration_test_setup.go b/testutil/integration_test_setup.go index 083533a5e..93091eb6b 100644 --- a/testutil/integration_test_setup.go +++ b/testutil/integration_test_setup.go @@ -252,7 +252,7 @@ func GenesisStateWithValSet( // var _ network.TestFixtureFactory = NewTestNetworkFixture // func NewTestNetworkFixture() network.TestFixture { -// dir, err := os.MkdirTemp("", "duality") +// dir, err := os.MkdirTemp("", "neutron") // if err != nil { // panic(fmt.Sprintf("failed creating temporary directory: %v", err)) // } diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 2526ca97b..ac0a41597 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -56,28 +56,28 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/neutron.feeburner.Query/Params": &feeburnertypes.QueryParamsResponse{}, // dex - "/dualitylabs.duality.dex.Query/Params": &dextypes.QueryParamsResponse{}, - "/dualitylabs.duality.dex.Query/LimitOrderTrancheUser": &dextypes.QueryGetLimitOrderTrancheUserResponse{}, - "/dualitylabs.duality.dex.Query/LimitOrderTranche": &dextypes.QueryGetLimitOrderTrancheResponse{}, - "/dualitylabs.duality.dex.Query/UserDepositsAll": &dextypes.QueryAllUserDepositsResponse{}, - "/dualitylabs.duality.dex.Query/UserLimitOrdersAll": &dextypes.QueryAllUserLimitOrdersResponse{}, - "/dualitylabs.duality.dex.Query/InactiveLimitOrderTranche": &dextypes.QueryGetInactiveLimitOrderTrancheResponse{}, - "/dualitylabs.duality.dex.Query/PoolReserves": &dextypes.QueryGetPoolReservesResponse{}, - "/dualitylabs.duality.dex.Query/EstimateMultiHopSwap": &dextypes.QueryEstimateMultiHopSwapResponse{}, - "/dualitylabs.duality.dex.Query/EstimatePlaceLimitOrder": &dextypes.QueryEstimatePlaceLimitOrderResponse{}, + "/neutron.dex.Query/Params": &dextypes.QueryParamsResponse{}, + "/neutron.dex.Query/LimitOrderTrancheUser": &dextypes.QueryGetLimitOrderTrancheUserResponse{}, + "/neutron.dex.Query/LimitOrderTranche": &dextypes.QueryGetLimitOrderTrancheResponse{}, + "/neutron.dex.Query/UserDepositsAll": &dextypes.QueryAllUserDepositsResponse{}, + "/neutron.dex.Query/UserLimitOrdersAll": &dextypes.QueryAllUserLimitOrdersResponse{}, + "/neutron.dex.Query/InactiveLimitOrderTranche": &dextypes.QueryGetInactiveLimitOrderTrancheResponse{}, + "/neutron.dex.Query/PoolReserves": &dextypes.QueryGetPoolReservesResponse{}, + "/neutron.dex.Query/EstimateMultiHopSwap": &dextypes.QueryEstimateMultiHopSwapResponse{}, + "/neutron.dex.Query/EstimatePlaceLimitOrder": &dextypes.QueryEstimatePlaceLimitOrderResponse{}, // incentives - "/dualitylabs.duality.incentives.Query/GetModuleStatus": &incentivestypes.GetModuleStatusResponse{}, - "/dualitylabs.duality.incentives.Query/GetGaugeByID": &incentivestypes.GetGaugeByIDResponse{}, - "/dualitylabs.duality.incentives.Query/GetGauges": &incentivestypes.GetGaugesResponse{}, - "/dualitylabs.duality.incentives.Query/GetStakeByID": &incentivestypes.GetStakeByIDResponse{}, - "/dualitylabs.duality.incentives.Query/GetStakes": &incentivestypes.GetStakesResponse{}, - "/dualitylabs.duality.incentives.Query/GetFutureRewardEstimate": &incentivestypes.GetFutureRewardEstimateResponse{}, - "/dualitylabs.duality.incentives.Query/GetAccountHistory": &incentivestypes.GetAccountHistoryResponse{}, - "/dualitylabs.duality.incentives.Query/GetGaugeQualifyingValue": &incentivestypes.GetGaugeQualifyingValueResponse{}, + "/neutron.incentives.Query/GetModuleStatus": &incentivestypes.GetModuleStatusResponse{}, + "/neutron.incentives.Query/GetGaugeByID": &incentivestypes.GetGaugeByIDResponse{}, + "/neutron.incentives.Query/GetGauges": &incentivestypes.GetGaugesResponse{}, + "/neutron.incentives.Query/GetStakeByID": &incentivestypes.GetStakeByIDResponse{}, + "/neutron.incentives.Query/GetStakes": &incentivestypes.GetStakesResponse{}, + "/neutron.incentives.Query/GetFutureRewardEstimate": &incentivestypes.GetFutureRewardEstimateResponse{}, + "/neutron.incentives.Query/GetAccountHistory": &incentivestypes.GetAccountHistoryResponse{}, + "/neutron.incentives.Query/GetGaugeQualifyingValue": &incentivestypes.GetGaugeQualifyingValueResponse{}, // epochs - "/dualitylabs.duality.epochs.Query/EpochInfos": &epochstypes.QueryEpochsInfoResponse{}, - "/dualitylabs.duality.epochs.Query/CurrentEpoch": &epochstypes.QueryCurrentEpochResponse{}, + "/neutron.epochs.Query/EpochInfos": &epochstypes.QueryEpochsInfoResponse{}, + "/neutron.epochs.Query/CurrentEpoch": &epochstypes.QueryCurrentEpochResponse{}, } } diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go index 9660dd74c..1e864fbd9 100644 --- a/x/dex/keeper/core_helper_test.go +++ b/x/dex/keeper/core_helper_test.go @@ -6,7 +6,7 @@ import ( "cosmossdk.io/math" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - dualityapp "github.com/neutron-org/neutron/app" + neutronapp "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/suite" @@ -15,7 +15,7 @@ import ( // Test Suite /////////////////////////////////////////////////////////////// type CoreHelpersTestSuite struct { suite.Suite - app *dualityapp.App + app *neutronapp.App ctx sdk.Context alice sdk.AccAddress bob sdk.AccAddress diff --git a/x/dex/keeper/grpc_query_user_deposits_test.go b/x/dex/keeper/grpc_query_user_deposits_test.go index 19f2e4a7a..871a6dcf0 100644 --- a/x/dex/keeper/grpc_query_user_deposits_test.go +++ b/x/dex/keeper/grpc_query_user_deposits_test.go @@ -7,7 +7,7 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - dualityapp "github.com/neutron-org/neutron/app" + neutronapp "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" keepertest "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" "github.com/neutron-org/neutron/x/dex/types" @@ -16,7 +16,7 @@ import ( "google.golang.org/grpc/status" ) -func simulateDeposit(ctx sdk.Context, app *dualityapp.App, addr sdk.AccAddress, deposit *types.DepositRecord) { +func simulateDeposit(ctx sdk.Context, app *neutronapp.App, addr sdk.AccAddress, deposit *types.DepositRecord) { // NOTE: For simplicyt sake, we are not actually doing a deposit, we are just initializing // the pool and adding the poolDenom to the users account pool, err := app.DexKeeper.InitPool(ctx, deposit.PairID, deposit.CenterTickIndex, deposit.Fee) diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index d555b76fa..7f4eaa964 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -47,7 +47,7 @@ var ( ErrInvalidPoolDenom = sdkerrors.Register( ModuleName, 1118, - "Denom is not an instance of Duality PoolDenom", + "Denom is not an instance of Neutron PoolDenom", ) ErrInvalidPairIDStr = sdkerrors.Register( ModuleName, diff --git a/x/dex/types/pool_denom.go b/x/dex/types/pool_denom.go index f27660d7d..eb3f87104 100644 --- a/x/dex/types/pool_denom.go +++ b/x/dex/types/pool_denom.go @@ -7,7 +7,7 @@ import ( ) const ( - PoolDenomPrefix = "duality/pool/" + PoolDenomPrefix = "neutron/pool/" PoolDenomRegexpStr = "^" + PoolDenomPrefix + `(\d+)` + "$" ) diff --git a/x/dex/types/pool_denom_test.go b/x/dex/types/pool_denom_test.go index 9c609e797..0d46a66f8 100644 --- a/x/dex/types/pool_denom_test.go +++ b/x/dex/types/pool_denom_test.go @@ -16,24 +16,24 @@ func TestParsePoolIDFromDenom(t *testing.T) { }{ { desc: "valid denom", - denom: "duality/pool/0", + denom: "neutron/pool/0", expected: 0, valid: true, }, { desc: "valid denom long", - denom: "duality/pool/999999999", + denom: "neutron/pool/999999999", expected: 999999999, valid: true, }, { desc: "invalid format 1", - denom: "/duality/pool/0", + denom: "/neutron/pool/0", valid: false, }, { desc: "invalid format 2", - denom: "duality/pool/0/", + denom: "neutron/pool/0/", valid: false, }, { diff --git a/x/epochs/README.md b/x/epochs/README.md index ae92f0529..0b95457c9 100644 --- a/x/epochs/README.md +++ b/x/epochs/README.md @@ -26,7 +26,7 @@ We refer to the period in between two timer ticks as an "epoch". Every timer has a unique identifier. Every epoch will have a start time, and an end time, where `end time = start time + timer interval`. -On Duality mainnet, we only utilize one identifier, with a time interval of `one day`. +On Neutron mainnet, we only utilize one identifier, with a time interval of `one day`. The timer will tick at the first block whose blocktime is greater than the timer end time, and set the start as the prior timer end time. (Notably, its not set to the block time!) @@ -137,7 +137,7 @@ service Query { Query the currently running epochInfos ```sh -dualityd query epochs epoch-infos +neutrond query epochs epoch-infos ``` ::: details Example @@ -169,7 +169,7 @@ epochs: Query the current epoch by the specified identifier ```sh -dualityd query epochs current-epoch [identifier] +neutrond query epochs current-epoch [identifier] ``` ::: details Example @@ -177,7 +177,7 @@ dualityd query epochs current-epoch [identifier] Query the current `day` epoch: ```sh -dualityd query epochs current-epoch day +neutrond query epochs current-epoch day ``` Which in this example outputs: diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index e5427c52b..5ddfc1315 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -134,7 +134,7 @@ func (k Keeper) RefundPacketToken( return err } - // if the sender chain is source that means a voucher was minted on Duality when the ics20 transfer took place + // if the sender chain is source that means a voucher was minted on Neutron when the ics20 transfer took place if transfertypes.SenderChainIsSource(packet.SourcePort, packet.SourceChannel, data.Denom) { // transfer coins from user account to transfer module err = k.bankKeeper.SendCoinsFromAccountToModule( diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go index 0694889db..57e9faf5e 100644 --- a/x/ibcswap/types/swap.go +++ b/x/ibcswap/types/swap.go @@ -42,7 +42,7 @@ func (sm SwapMetadata) Validate() error { if sm.RefundAddress != "" { _, err := sdk.AccAddressFromBech32(sm.RefundAddress) if err != nil { - return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Duality address", sm.RefundAddress) + return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.RefundAddress) } } diff --git a/x/incentives/README LOCKUP.md b/x/incentives/README LOCKUP.md index fbd2e8184..43cd1fb39 100644 --- a/x/incentives/README LOCKUP.md +++ b/x/incentives/README LOCKUP.md @@ -365,7 +365,7 @@ reference queues are removed. Bond tokens in a LP for a set duration ```sh -dualityd tx stakeup stake-tokens [tokens] --duration --from --chain-id +neutrond tx stakeup stake-tokens [tokens] --duration --from --chain-id ``` ::: details Example @@ -373,19 +373,19 @@ dualityd tx stakeup stake-tokens [tokens] --duration --from --chain-id To stakeup `15.527546134174465309gamm/pool/3` tokens for a `one day` bonding period from `WALLET_NAME` on the osmosis mainnet: ```bash -dualityd tx stakeup stake-tokens 15527546134174465309gamm/pool/3 --duration="24h" --from WALLET_NAME --chain-id osmosis-1 +neutrond tx stakeup stake-tokens 15527546134174465309gamm/pool/3 --duration="24h" --from WALLET_NAME --chain-id osmosis-1 ``` To stakeup `25.527546134174465309gamm/pool/13` tokens for a `one week` bonding period from `WALLET_NAME` on the osmosis testnet: ```bash -dualityd tx stakeup stake-tokens 25527546134174465309gamm/pool/13 --duration="168h" --from WALLET_NAME --chain-id osmo-test-4 +neutrond tx stakeup stake-tokens 25527546134174465309gamm/pool/13 --duration="168h" --from WALLET_NAME --chain-id osmo-test-4 ``` To stakeup `35.527546134174465309 gamm/pool/197` tokens for a `two week` bonding period from `WALLET_NAME` on the osmosis mainnet: ```bash -dualityd tx stakeup stake-tokens 35527546134174465309gamm/pool/197 --duration="336h" --from WALLET_NAME --chain-id osmosis-1 +neutrond tx stakeup stake-tokens 35527546134174465309gamm/pool/197 --duration="336h" --from WALLET_NAME --chain-id osmosis-1 ``` ::: @@ -395,7 +395,7 @@ dualityd tx stakeup stake-tokens 35527546134174465309gamm/pool/197 --duration="3 Begin the unbonding process for tokens given their unique stake ID ```sh -dualityd tx stakeup begin-unstake-by-id [id] --from --chain-id +neutrond tx stakeup begin-unstake-by-id [id] --from --chain-id ``` ::: details Example @@ -403,7 +403,7 @@ dualityd tx stakeup begin-unstake-by-id [id] --from --chain-id To begin the unbonding time for all bonded tokens under id `75` from `WALLET_NAME` on the osmosis mainnet: ```bash -dualityd tx stakeup begin-unstake-by-id 75 --from WALLET_NAME --chain-id osmosis-1 +neutrond tx stakeup begin-unstake-by-id 75 --from WALLET_NAME --chain-id osmosis-1 ``` ::: ::: warning Note @@ -415,7 +415,7 @@ The ID corresponds to the unique ID given to your stakeup transaction (explained Begin unbonding process for all bonded tokens in a wallet ```sh -dualityd tx stakeup begin-unstake-tokens --from --chain-id +neutrond tx stakeup begin-unstake-tokens --from --chain-id ``` ::: details Example @@ -424,7 +424,7 @@ To begin unbonding time for ALL pools and ALL bonded tokens in `WALLET_NAME` on ```bash -dualityd tx stakeup begin-unstake-tokens --from=WALLET_NAME --chain-id=osmosis-1 --yes +neutrond tx stakeup begin-unstake-tokens --from=WALLET_NAME --chain-id=osmosis-1 --yes ``` ::: @@ -484,7 +484,7 @@ In this example, the current UNIX time is `1639776682`, 2 days from now is appro An account's `ADDRESS` is staked in both the `1 day` and `1 week` gamm/pool/3. To query the `ADDRESS` with a timestamp 2 days from now `1639971082`: ```bash -dualityd query stakeup account-staked-beforetime ADDRESS 1639971082 +neutrond query stakeup account-staked-beforetime ADDRESS 1639971082 ``` In this example will output the `1 day` stake but not the `1 week` stake: @@ -503,7 +503,7 @@ stakes: If querying the same `ADDRESS` with a timestamp 15 days from now `1641094282`: ```bash -dualityd query stakeup account-staked-beforetime ADDRESS 1641094282 +neutrond query stakeup account-staked-beforetime ADDRESS 1641094282 ``` In this example will output both the `1 day` and `1 week` stake: @@ -533,13 +533,13 @@ stakes: Query an account's staked (bonded) LP tokens ```sh -dualityd query stakeup account-staked-coins [address] +neutrond query stakeup account-staked-coins [address] ``` :::: details Example ```bash -dualityd query stakeup account-staked-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +neutrond query stakeup account-staked-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 ``` An example output: @@ -571,7 +571,7 @@ You may also specify a --height flag to see bonded LP tokens at a specified heig Query an account's staked records that are greater than or equal to a specified stake duration ```sh -dualityd query stakeup account-staked-longer-duration [address] [duration] +neutrond query stakeup account-staked-longer-duration [address] [duration] ``` ::: details Example @@ -579,7 +579,7 @@ dualityd query stakeup account-staked-longer-duration [address] [duration] Here is an example of querying an `ADDRESS` for all `1 day` or greater bonding periods: ```bash -dualityd query stakeup account-staked-longer-duration osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h +neutrond query stakeup account-staked-longer-duration osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h ``` An example output: @@ -609,7 +609,7 @@ stakes: Query an account's staked records for a denom that is staked equal to or greater than the specified duration AND match a specified denom ```sh -dualityd query stakeup account-staked-longer-duration-denom [address] [duration] [denom] +neutrond query stakeup account-staked-longer-duration-denom [address] [duration] [denom] ``` ::: details Example @@ -617,7 +617,7 @@ dualityd query stakeup account-staked-longer-duration-denom [address] [duration] Here is an example of an `ADDRESS` that is staked in both the `1 day` and `1 week` for both the gamm/pool/3 and gamm/pool/1, then queries the `ADDRESS` for all bonding periods equal to or greater than `1 day` for just the gamm/pool/3: ```bash -dualityd query stakeup account-staked-longer-duration-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h gamm/pool/3 +neutrond query stakeup account-staked-longer-duration-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h gamm/pool/3 ``` An example output: @@ -649,7 +649,7 @@ As shown, the gamm/pool/3 is returned but not the gamm/pool/1 due to the denom f Query an account's staked records for a denom that is staked equal to or greater than the specified duration AND is not in the process of being unstaked ```sh -dualityd query stakeup account-staked-longer-duration-not-unstaking [address] [duration] +neutrond query stakeup account-staked-longer-duration-not-unstaking [address] [duration] ``` ::: details Example @@ -657,7 +657,7 @@ dualityd query stakeup account-staked-longer-duration-not-unstaking [address] [d Here is an example of an `ADDRESS` that is staked in both the `1 day` and `1 week` gamm/pool/3, begins unstaking process for the `1 day` bond, and queries the `ADDRESS` for all bonding periods equal to or greater than `1 day` that are not unbonding: ```bash -dualityd query stakeup account-staked-longer-duration-not-unstaking osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h +neutrond query stakeup account-staked-longer-duration-not-unstaking osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h ``` An example output: @@ -682,7 +682,7 @@ The `1 day` bond does not show since it is in the process of unbonding. Query the staked records of an account with the unstake time beyond timestamp (UNIX) ```bash -dualityd query stakeup account-staked-pasttime [address] [timestamp] +neutrond query stakeup account-staked-pasttime [address] [timestamp] ``` ::: details Example @@ -690,7 +690,7 @@ dualityd query stakeup account-staked-pasttime [address] [timestamp] Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) ```bash -dualityd query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 +neutrond query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 ``` The example output: @@ -715,7 +715,7 @@ Note that the `1 day` stake ID did not display because, if the unbonding time be Query the staked records of an account with the unstake time beyond timestamp (unix) and filter by a specific denom ```bash -dualityd query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 [timestamp] [denom] +neutrond query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 [timestamp] [denom] ``` ::: details Example @@ -723,7 +723,7 @@ dualityd query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafde Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3 and `1 day` and `1 week` gamm/pool/1. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) and filters for gamm/pool/3 ```bash -dualityd query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 gamm/pool/3 +neutrond query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 gamm/pool/3 ``` The example output: @@ -748,7 +748,7 @@ Note that the `1 day` stake ID did not display because, if the unbonding time be Query the staked records of an account with the unstake time beyond timestamp (unix) AND is not in the process of unstaking ```sh -dualityd query stakeup account-staked-pasttime [address] [timestamp] +neutrond query stakeup account-staked-pasttime [address] [timestamp] ``` ::: details Example @@ -756,7 +756,7 @@ dualityd query stakeup account-staked-pasttime [address] [timestamp] Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) AND is not unstaking: ```bash -dualityd query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 +neutrond query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 ``` The example output: @@ -781,7 +781,7 @@ Note that the `1 day` stake ID did not display because, if the unbonding time be Query an address's LP shares that have completed the unstaking period and are ready to be withdrawn ```bash -dualityd query stakeup account-unstakeable-coins ADDRESS +neutrond query stakeup account-unstakeable-coins ADDRESS ``` @@ -791,13 +791,13 @@ dualityd query stakeup account-unstakeable-coins ADDRESS Query an address's LP shares that are currently unstaking ```sh -dualityd query stakeup account-unstaking-coins [address] +neutrond query stakeup account-unstaking-coins [address] ``` ::: details Example ```bash -dualityd query stakeup account-unstaking-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 +neutrond query stakeup account-unstaking-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 ``` Example output: @@ -815,7 +815,7 @@ coins: Query a stake record by its ID ```sh -dualityd query stakeup stake-by-id [id] +neutrond query stakeup stake-by-id [id] ``` ::: details Example @@ -825,7 +825,7 @@ Every time a user bonds tokens to an LP, a unique stake ID is created for that t Here is an example viewing the stake record for ID 9: ```bash -dualityd query stakeup stake-by-id 9 +neutrond query stakeup stake-by-id 9 ``` And its output: @@ -850,13 +850,13 @@ In summary, this shows wallet `osmo16r39ghhwqjcwxa8q3yswlz8jhzldygy66vlm82` bond Query the balance of all LP shares (bonded and unbonded) ```sh -dualityd query stakeup module-balance +neutrond query stakeup module-balance ``` ::: details Example ```bash -dualityd query stakeup module-balance +neutrond query stakeup module-balance ``` An example output: @@ -904,13 +904,13 @@ coins: Query the balance of all bonded LP shares ```sh -dualityd query stakeup module-staked-amount +neutrond query stakeup module-staked-amount ``` ::: details Example ```bash -dualityd query stakeup module-staked-amount +neutrond query stakeup module-staked-amount ``` An example output: @@ -964,7 +964,7 @@ NOTE: This command seems to only work on gRPC and on CLI returns an EOF error. Output all stakes into a json file ```sh -dualityd query stakeup output-all-stakes [max stake ID] +neutrond query stakeup output-all-stakes [max stake ID] ``` :::: details Example @@ -972,7 +972,7 @@ dualityd query stakeup output-all-stakes [max stake ID] This example command outputs stakes 1-1000 and saves to a json file: ```bash -dualityd query stakeup output-all-stakes 1000 +neutrond query stakeup output-all-stakes 1000 ``` ::: warning Note If a stakeup has been completed, the stakeup status will show as "0" (or successful) and no further information will be available. To get further information on a completed stake, run the stake-by-id query. @@ -985,7 +985,7 @@ If a stakeup has been completed, the stakeup status will show as "0" (or success Query staked amount for a specific denom in the duration provided ```sh -dualityd query stakeup total-staked-of-denom [denom] --min-duration +neutrond query stakeup total-staked-of-denom [denom] --min-duration ``` :::: details Example @@ -993,7 +993,7 @@ dualityd query stakeup total-staked-of-denom [denom] --min-duration This example command outputs the amount of `gamm/pool/2` LP shares that staked in the `2 week` bonding period: ```bash -dualityd query stakeup total-staked-of-denom gamm/pool/2 --min-duration "336h" +neutrond query stakeup total-staked-of-denom gamm/pool/2 --min-duration "336h" ``` Which, at the time of this writing outputs `14106985399822075248947045` which is equivalent to `14106985.3998 gamm/pool/2` @@ -1005,50 +1005,50 @@ NOTE: As of this writing, there is a bug that defaults the min duration to days ```sh # 1 day 100stake stake-tokens command -dualityd tx stakeup stake-tokens 200stake --duration="86400s" --from=validator --chain-id=testing --keyring-backend=test --yes +neutrond tx stakeup stake-tokens 200stake --duration="86400s" --from=validator --chain-id=testing --keyring-backend=test --yes # 5s 100stake stake-tokens command -dualityd tx stakeup stake-tokens 100stake --duration="5s" --from=validator --chain-id=testing --keyring-backend=test --yes +neutrond tx stakeup stake-tokens 100stake --duration="5s" --from=validator --chain-id=testing --keyring-backend=test --yes # begin unstake tokens, NOTE: add more gas when unstaking more than two stakes in a same command -dualityd tx stakeup begin-unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes +neutrond tx stakeup begin-unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes # unstake tokens, NOTE: add more gas when unstaking more than two stakes in a same command -dualityd tx stakeup unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes +neutrond tx stakeup unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes # unstake specific period stake -dualityd tx stakeup unstake-by-id 1 --from=validator --chain-id=testing --keyring-backend=test --yes +neutrond tx stakeup unstake-by-id 1 --from=validator --chain-id=testing --keyring-backend=test --yes # account balance -dualityd query bank balances $(dualityd keys show -a validator --keyring-backend=test) +neutrond query bank balances $(neutrond keys show -a validator --keyring-backend=test) # query module balance -dualityd query stakeup module-balance +neutrond query stakeup module-balance # query staked amount -dualityd query stakeup module-staked-amount +neutrond query stakeup module-staked-amount # query stake by id -dualityd query stakeup stake-by-id 1 +neutrond query stakeup stake-by-id 1 # query account unstakeable coins -dualityd query stakeup account-unstakeable-coins $(dualityd keys show -a validator --keyring-backend=test) +neutrond query stakeup account-unstakeable-coins $(neutrond keys show -a validator --keyring-backend=test) # query account stakes by denom past time -dualityd query stakeup account-staked-pasttime-denom $(dualityd keys show -a validator --keyring-backend=test) 1611879610 stake +neutrond query stakeup account-staked-pasttime-denom $(neutrond keys show -a validator --keyring-backend=test) 1611879610 stake # query account stakes past time -dualityd query stakeup account-staked-pasttime $(dualityd keys show -a validator --keyring-backend=test) 1611879610 +neutrond query stakeup account-staked-pasttime $(neutrond keys show -a validator --keyring-backend=test) 1611879610 # query account stakes by denom with longer duration -dualityd query stakeup account-staked-longer-duration-denom $(dualityd keys show -a validator --keyring-backend=test) 5.1s stake +neutrond query stakeup account-staked-longer-duration-denom $(neutrond keys show -a validator --keyring-backend=test) 5.1s stake # query account stakes with longer duration -dualityd query stakeup account-staked-longer-duration $(dualityd keys show -a validator --keyring-backend=test) 5.1s +neutrond query stakeup account-staked-longer-duration $(neutrond keys show -a validator --keyring-backend=test) 5.1s # query account staked coins -dualityd query stakeup account-staked-coins $(dualityd keys show -a validator --keyring-backend=test) +neutrond query stakeup account-staked-coins $(neutrond keys show -a validator --keyring-backend=test) # query account stakes before time -dualityd query stakeup account-staked-beforetime $(dualityd keys show -a validator --keyring-backend=test) 1611879610 +neutrond query stakeup account-staked-beforetime $(neutrond keys show -a validator --keyring-backend=test) 1611879610 ``` diff --git a/x/incentives/client/cli/cli_test.go b/x/incentives/client/cli/cli_test.go index 3ac098792..17b5b8aff 100644 --- a/x/incentives/client/cli/cli_test.go +++ b/x/incentives/client/cli/cli_test.go @@ -278,38 +278,38 @@ func TestNewStakeCmd(t *testing.T) { }, "tokenized share test": { Cmd: fmt.Sprintf( - "1000DualityPoolShares-tokenA-tokenB-t123-f30 --from %s", + "1000NeutronPoolShares-tokenA-tokenB-t123-f30 --from %s", testAddresses[0], ), ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t123-f30", math.NewInt(1000)), + sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t123-f30", math.NewInt(1000)), ), }, }, "tokenized share negative tick index test": { Cmd: fmt.Sprintf( - "1000DualityPoolShares-tokenA-tokenB-t-123-f30 --from %s", + "1000NeutronPoolShares-tokenA-tokenB-t-123-f30 --from %s", testAddresses[0], ), ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), + sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), ), }, }, "multiple tokenized shares": { Cmd: fmt.Sprintf( - "1000DualityPoolShares-tokenA-tokenB-t-123-f30,1DualityPoolShares-tokenA-tokenB-t-124-f30 --from %s", + "1000NeutronPoolShares-tokenA-tokenB-t-123-f30,1NeutronPoolShares-tokenA-tokenB-t-124-f30 --from %s", testAddresses[0], ), ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), - sdk.NewCoin("DualityPoolShares-tokenA-tokenB-t-124-f30", math.NewInt(1)), + sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), + sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t-124-f30", math.NewInt(1)), ), }, }, diff --git a/x/incentives/client/cli/query.go b/x/incentives/client/cli/query.go index a922baffa..4cb6481b0 100644 --- a/x/incentives/client/cli/query.go +++ b/x/incentives/client/cli/query.go @@ -59,7 +59,7 @@ func GetCmdGauges() (*dcli.QueryDescriptor, *types.GetGaugesRequest) { return &dcli.QueryDescriptor{ Use: "list-gauges [status] [denom]", Short: "Query gauges", - Long: `{{.Short}}{{.ExampleHeader}} list-gauges UPCOMING DualityPoolShares-stake-token-t0-f1`, + Long: `{{.Short}}{{.ExampleHeader}} list-gauges UPCOMING NeutronPoolShares-stake-token-t0-f1`, CustomFieldParsers: map[string]dcli.CustomFieldParserFn{ "Status": parseGaugeStatus, }, diff --git a/x/incentives/keeper/distributor_test.go b/x/incentives/keeper/distributor_test.go index a924902b0..a9989c065 100644 --- a/x/incentives/keeper/distributor_test.go +++ b/x/incentives/keeper/distributor_test.go @@ -48,7 +48,7 @@ func TestDistributor(t *testing.T) { app := testutil.Setup(t) ctx := app.BaseApp.NewContext( false, - tmtypes.Header{Height: 1, ChainID: "duality-1", Time: time.Now().UTC()}, + tmtypes.Header{Height: 1, ChainID: "neutron-1", Time: time.Now().UTC()}, ) gauge := types.NewGauge( diff --git a/x/incentives/types/codec.go b/x/incentives/types/codec.go index b2e2b954f..d58ef0655 100644 --- a/x/incentives/types/codec.go +++ b/x/incentives/types/codec.go @@ -15,10 +15,10 @@ var ( // RegisterCodec registers the necessary x/incentives interfaces and concrete types on the provided // LegacyAmino codec. These types are used for Amino JSON serialization. func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgCreateGauge{}, "duality/incentives/create-gauge", nil) - cdc.RegisterConcrete(&MsgAddToGauge{}, "duality/incentives/add-to-gauge", nil) - cdc.RegisterConcrete(&MsgStake{}, "duality/stake/stake-tokens", nil) - cdc.RegisterConcrete(&MsgUnstake{}, "duality/stake/begin-unstake-period-stake", nil) + cdc.RegisterConcrete(&MsgCreateGauge{}, "neutron/incentives/create-gauge", nil) + cdc.RegisterConcrete(&MsgAddToGauge{}, "neutron/incentives/add-to-gauge", nil) + cdc.RegisterConcrete(&MsgStake{}, "neutron/stake/stake-tokens", nil) + cdc.RegisterConcrete(&MsgUnstake{}, "neutron/stake/begin-unstake-period-stake", nil) } // RegisterInterfaces registers interfaces and implementations of the incentives module. From fe5a99dcffc385cb274f9e79a149fedd1dc59055 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 18 Oct 2023 13:54:05 -0400 Subject: [PATCH 189/307] add dex and incentives updaateParams msgs to proposal whitelist --- app/proposals_allowlisting.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index a5853cf30..624c7e577 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -13,8 +13,10 @@ import ( ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" + incentivestypes "github.com/neutron-org/neutron/x/incentives/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -60,7 +62,9 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *feeburnertypes.MsgUpdateParams, *feerefundertypes.MsgUpdateParams, *crontypes.MsgUpdateParams, - *contractmanagertypes.MsgUpdateParams: + *contractmanagertypes.MsgUpdateParams, + *incentivestypes.MsgUpdateParams, + *dextypes.MsgUpdateParams: return true } return false From 9db539cc52de24aa09ae3ff941227e31a049adc4 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 18 Oct 2023 13:54:37 -0400 Subject: [PATCH 190/307] Add note to dex and incentives UpdateParams msg --- proto/neutron/dex/tx.proto | 1 + proto/neutron/incentives/tx.proto | 1 + x/dex/types/tx.pb.go | 3 ++- x/incentives/types/tx.pb.go | 5 +++-- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index 538a0e96c..b2bacb988 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -194,6 +194,7 @@ message MsgUpdateParams { // Authority is the address of the governance account. string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + // NOTE: All parameters must be supplied. Params params = 2 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; } diff --git a/proto/neutron/incentives/tx.proto b/proto/neutron/incentives/tx.proto index b73c85719..cb6487234 100644 --- a/proto/neutron/incentives/tx.proto +++ b/proto/neutron/incentives/tx.proto @@ -107,6 +107,7 @@ message MsgUpdateParams { // Authority is the address of the governance account. string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + // NOTE: All parameters must be supplied. Params params = 2 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; } diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index 5ce055a62..a90fadfc9 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -846,7 +846,8 @@ var xxx_messageInfo_MsgMultiHopSwapResponse proto.InternalMessageInfo type MsgUpdateParams struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` + // NOTE: All parameters must be supplied. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` } func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } diff --git a/x/incentives/types/tx.pb.go b/x/incentives/types/tx.pb.go index bb30ac56e..aa9553cc0 100644 --- a/x/incentives/types/tx.pb.go +++ b/x/incentives/types/tx.pb.go @@ -185,7 +185,7 @@ type MsgAddToGauge struct { // owner is the gauge owner's address Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` // gauge_id is the ID of gauge that rewards are getting added to - GaugeId uint64 `protobuf:"varint,2,opt,name=gauge_id,json=gaugeID,proto3" json:"gauge_id,omitempty"` + GaugeId uint64 `protobuf:"varint,2,opt,name=gauge_id,json=gaugeId,proto3" json:"gauge_id,omitempty"` // rewards are the coin(s) to add to gauge Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"` } @@ -520,7 +520,8 @@ var xxx_messageInfo_MsgUnstakeResponse proto.InternalMessageInfo type MsgUpdateParams struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` + // NOTE: All parameters must be supplied. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` } func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } From 56ac6531a141c27ef6e5e15af13db7b3d538bcf6 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 18 Oct 2023 14:01:00 -0400 Subject: [PATCH 191/307] FIX: update incentives cli tests to match new denom format --- x/incentives/client/cli/cli_test.go | 22 +++++----------------- x/incentives/client/cli/query.go | 2 +- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/x/incentives/client/cli/cli_test.go b/x/incentives/client/cli/cli_test.go index 17b5b8aff..526dcda41 100644 --- a/x/incentives/client/cli/cli_test.go +++ b/x/incentives/client/cli/cli_test.go @@ -278,38 +278,26 @@ func TestNewStakeCmd(t *testing.T) { }, "tokenized share test": { Cmd: fmt.Sprintf( - "1000NeutronPoolShares-tokenA-tokenB-t123-f30 --from %s", + "1000neutron/pool/1 --from %s", testAddresses[0], ), ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t123-f30", math.NewInt(1000)), - ), - }, - }, - "tokenized share negative tick index test": { - Cmd: fmt.Sprintf( - "1000NeutronPoolShares-tokenA-tokenB-t-123-f30 --from %s", - testAddresses[0], - ), - ExpectedMsg: &types.MsgStake{ - Owner: testAddresses[0].String(), - Coins: sdk.NewCoins( - sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), + sdk.NewCoin("neutron/pool/1", math.NewInt(1000)), ), }, }, "multiple tokenized shares": { Cmd: fmt.Sprintf( - "1000NeutronPoolShares-tokenA-tokenB-t-123-f30,1NeutronPoolShares-tokenA-tokenB-t-124-f30 --from %s", + "1000neutron/pool/1,1neutron/pool/2 --from %s", testAddresses[0], ), ExpectedMsg: &types.MsgStake{ Owner: testAddresses[0].String(), Coins: sdk.NewCoins( - sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t-123-f30", math.NewInt(1000)), - sdk.NewCoin("NeutronPoolShares-tokenA-tokenB-t-124-f30", math.NewInt(1)), + sdk.NewCoin("neutron/pool/1", math.NewInt(1000)), + sdk.NewCoin("neutron/pool/2", math.NewInt(1)), ), }, }, diff --git a/x/incentives/client/cli/query.go b/x/incentives/client/cli/query.go index 4cb6481b0..13fa2f876 100644 --- a/x/incentives/client/cli/query.go +++ b/x/incentives/client/cli/query.go @@ -59,7 +59,7 @@ func GetCmdGauges() (*dcli.QueryDescriptor, *types.GetGaugesRequest) { return &dcli.QueryDescriptor{ Use: "list-gauges [status] [denom]", Short: "Query gauges", - Long: `{{.Short}}{{.ExampleHeader}} list-gauges UPCOMING NeutronPoolShares-stake-token-t0-f1`, + Long: `{{.Short}}{{.ExampleHeader}} list-gauges UPCOMING neutron/pool/1`, CustomFieldParsers: map[string]dcli.CustomFieldParserFn{ "Status": parseGaugeStatus, }, From 32d3e07433c749c5046ec98985a44b72c54a94c0 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 24 Oct 2023 15:58:15 -0400 Subject: [PATCH 192/307] FIX: more canonical naming for GoodTilPurgeHitGasLimit event --- x/dex/keeper/limit_order_expiration_test.go | 2 +- x/dex/types/events.go | 3 +-- x/dex/types/keys.go | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/x/dex/keeper/limit_order_expiration_test.go b/x/dex/keeper/limit_order_expiration_test.go index 598a6ac25..212fc60e0 100644 --- a/x/dex/keeper/limit_order_expiration_test.go +++ b/x/dex/keeper/limit_order_expiration_test.go @@ -166,7 +166,7 @@ func (s *DexTestSuite) TestPurgeExpiredLimitOrdersAtBlockGasLimit() { keeper.PurgeExpiredLimitOrders(ctx, now) // THEN GoodTilPurgeHitGasLimit event is emitted - s.AssertEventValueEmitted(types.GoodTilPurgeHitGasLimitEventKey, "Gas Limit Event not emitted") + s.AssertEventEmitted(ctx, types.EventTypeGoodTilPurgeHitGasLimit, 1) // All JIT expirations are purged but other expirations remain expList := keeper.GetAllLimitOrderExpiration(ctx) diff --git a/x/dex/types/events.go b/x/dex/types/events.go index 1c50ff105..cfc0b6bf6 100644 --- a/x/dex/types/events.go +++ b/x/dex/types/events.go @@ -220,9 +220,8 @@ func CreateTickUpdateLimitOrderTranche(tranche *LimitOrderTranche) sdk.Event { func GoodTilPurgeHitLimitEvent(gas sdk.Gas) sdk.Event { attrs := []sdk.Attribute{ sdk.NewAttribute(sdk.AttributeKeyModule, "dex"), - sdk.NewAttribute(sdk.AttributeKeyAction, GoodTilPurgeHitGasLimitEventKey), sdk.NewAttribute(GoodTilPurgeHitGasLimitEventGas, strconv.FormatUint(gas, 10)), } - return sdk.NewEvent(sdk.EventTypeMessage, attrs...) + return sdk.NewEvent(EventTypeGoodTilPurgeHitGasLimit, attrs...) } diff --git a/x/dex/types/keys.go b/x/dex/types/keys.go index 65c00f1d3..ec12ebd3d 100644 --- a/x/dex/types/keys.go +++ b/x/dex/types/keys.go @@ -276,8 +276,8 @@ const ( ) const ( - GoodTilPurgeHitGasLimitEventKey = "GoodTilPurgeHitGasLimit" - GoodTilPurgeHitGasLimitEventGas = "Gas" + EventTypeGoodTilPurgeHitGasLimit = "GoodTilPurgeHitGasLimit" + GoodTilPurgeHitGasLimitEventGas = "Gas" ) const ( From c1672b72a164d9c32668cbee4a13f00c7dd430cd Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 25 Oct 2023 01:56:58 -0400 Subject: [PATCH 193/307] FIX: remove vestigial tests --- .../integration_placelimitorder_test.go | 135 ++---------------- 1 file changed, 12 insertions(+), 123 deletions(-) diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 0f2aa189e..90cc398a2 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -55,25 +55,6 @@ func (s *DexTestSuite) TestPlaceLimitOrderInSpread0To1() { s.assertCurr0To1(1) } -func (s *DexTestSuite) TestPlaceLimitOrderInSpreadMinMaxNotAdjusted() { - s.fundAliceBalances(50, 50) - - // GIVEN - // create spread around -5, 5 - s.aliceDeposits(NewDeposit(10, 10, 0, 5)) - s.assertAliceBalances(40, 40) - s.assertDexBalances(10, 10) - - // WHEN - // place limit order for B at tick -1 - s.aliceLimitSells("TokenA", -1, 10) - s.assertAliceBalances(30, 40) - s.assertDexBalances(20, 10) - - // THEN - // assert min, max not moved -} - func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpread0To1NotAdjusted() { s.fundAliceBalances(50, 50) @@ -118,98 +99,6 @@ func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpread1To0NotAdjusted() { s.assertCurr1To0(-1) } -func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMinAdjusted() { - s.fundAliceBalances(50, 50) - - // GIVEN - // create spread around -1, 1 - s.aliceDeposits(NewDeposit(10, 10, 0, 1)) - s.assertAliceBalances(40, 40) - s.assertDexBalances(10, 10) - s.assertCurr1To0(-1) - s.assertCurr0To1(1) - - // WHEN - // place limit order out of spread (for B at tick -3) - s.aliceLimitSells("TokenA", -3, 10) - s.assertAliceBalances(30, 40) - s.assertDexBalances(20, 10) - - // THEN - // assert min moved -} - -func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMaxAdjusted() { - s.fundAliceBalances(50, 50) - - // GIVEN - // create spread around -1, 1 - s.aliceDeposits(NewDeposit(10, 10, 0, 1)) - s.assertAliceBalances(40, 40) - s.assertDexBalances(10, 10) - s.assertCurr1To0(-1) - s.assertCurr0To1(1) - - // WHEN - // place limit order out of spread (for A at tick 3) - s.aliceLimitSells("TokenB", 3, 10) - s.assertAliceBalances(40, 30) - s.assertDexBalances(10, 20) - - // THEN - // assert max moved -} - -func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMinNotAdjusted() { - s.fundAliceBalances(50, 50) - - // GIVEN - // create spread around -1, 1 - s.aliceDeposits(NewDeposit(10, 10, 0, 1)) - s.assertAliceBalances(40, 40) - s.assertDexBalances(10, 10) - s.assertCurr1To0(-1) - s.assertCurr0To1(1) - // deposit new min at -5 - s.aliceDeposits(NewDeposit(10, 0, 0, 5)) - s.assertAliceBalances(30, 40) - s.assertDexBalances(20, 10) - - // WHEN - // place limit order in spread (for B at tick -3) - s.aliceLimitSells("TokenA", -3, 10) - s.assertAliceBalances(20, 40) - s.assertDexBalances(30, 10) - - // THEN - // assert min not moved -} - -func (s *DexTestSuite) TestPlaceLimitOrderOutOfSpreadMaxNotAdjusted() { - s.fundAliceBalances(50, 50) - - // GIVEN - // create spread around -1, 1 - s.aliceDeposits(NewDeposit(10, 10, 0, 1)) - s.assertAliceBalances(40, 40) - s.assertDexBalances(10, 10) - s.assertCurr1To0(-1) - s.assertCurr0To1(1) - // deposit new max at 5 - s.aliceDeposits(NewDeposit(0, 10, 0, 5)) - s.assertAliceBalances(40, 30) - s.assertDexBalances(10, 20) - - // WHEN - // place limit order in spread (for A at tick 3) - s.aliceLimitSells("TokenB", 3, 10) - s.assertAliceBalances(40, 20) - s.assertDexBalances(10, 30) - - // THEN - // assert max not moved -} - func (s *DexTestSuite) TestPlaceLimitOrderExistingLiquidityA() { s.fundAliceBalances(50, 50) @@ -223,18 +112,18 @@ func (s *DexTestSuite) TestPlaceLimitOrderExistingLiquidityA() { s.assertCurr1To0(-1) s.assertCurr0To1(math.MaxInt64) - // // WHEN - // // place limit order on same tick (for B at tick -1) - // s.aliceLimitSells("TokenA", -1, 10) - - // // THEN - // // assert 20 of token A deposited at tick 0 fee 0 and ticks unchanged - // s.assertLimitLiquidityAtTick("TokenA", -1, 20) - // s.assertAliceLimitLiquidityAtTick("TokenA", 20, -1) - // s.assertAliceBalances(30, 50) - // s.assertDexBalances(20, 0) - // s.assertCurr1To0(-1) - // s.assertCurr0To1(math.MaxInt64) + // WHEN + // place limit order on same tick (for B at tick -1) + s.aliceLimitSells("TokenA", -1, 10) + + // THEN + // assert 20 of token A deposited at tick 0 fee 0 and ticks unchanged + s.assertLimitLiquidityAtTick("TokenA", -1, 20) + s.assertAliceLimitLiquidityAtTick("TokenA", 20, -1) + s.assertAliceBalances(30, 50) + s.assertDexBalances(20, 0) + s.assertCurr1To0(-1) + s.assertCurr0To1(math.MaxInt64) } func (s *DexTestSuite) TestPlaceLimitOrderExistingLiquidityB() { From eed9cefc103ef830a08fa3bdc3433280b3f05cc0 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 1 Nov 2023 14:22:39 -0400 Subject: [PATCH 194/307] Rewrite test helpers to default to BIGToken (exponent 6) In order to simulate more realistic trade volume and avoid inadvertent failures due to ErrInvalidPositionSpread all of the basic user operations (fundXXXBalance, assertXXXBalance, XXXLimitsSells, etc.) treat TokenA and TokenB as BIG tokens with an exponent of 6. Ie. fundAliceBalance(10, 10) funds alices account with 10,000,000 small TokenA and TokenB. For tests requiring more accuracy methods that take Ints (ie. assertXXXAccountBalancesInt, NewWithdrawlInt) are used and assume that amount are being provided in terms of small tokens. Example: s.fundAliceBalances(10, 10) s.assertAliceBalances(10, 10) ==> True s.assertAliceBalancesInt(sdkmath.NewInt(10_000_000), sdkmath.NewInt(10_000_000)) ==> true --- x/dex/keeper/deposit_record_test.go | 32 +-- ...grpc_query_estimate_multi_hop_swap_test.go | 94 +++---- .../integration_cancellimitorder_test.go | 9 +- .../integration_deposit_autoswap_unit_test.go | 25 +- .../integration_deposit_doublesided_test.go | 30 +-- .../keeper/integration_deposit_multi_test.go | 6 +- .../integration_deposit_singlesided_test.go | 29 ++- x/dex/keeper/integration_multihopswap_test.go | 105 ++++---- .../integration_placelimitorder_test.go | 18 +- .../keeper/integration_withdraw_multi_test.go | 7 +- x/dex/keeper/limit_order_tranche_user_test.go | 4 +- x/dex/keeper/liquidity_test.go | 232 ++++++++++-------- x/dex/keeper/msg_server_test.go | 159 +++++++----- x/dex/keeper/pool_test.go | 2 +- x/incentives/keeper/distribute_test.go | 68 ++--- x/incentives/keeper/gauge_test.go | 24 +- x/incentives/keeper/query_server_test.go | 16 +- x/incentives/keeper/stake_test.go | 30 +-- 18 files changed, 472 insertions(+), 418 deletions(-) diff --git a/x/dex/keeper/deposit_record_test.go b/x/dex/keeper/deposit_record_test.go index 4ed8526f2..4bb305d86 100644 --- a/x/dex/keeper/deposit_record_test.go +++ b/x/dex/keeper/deposit_record_test.go @@ -9,38 +9,18 @@ func (s *DexTestSuite) TestGetAllDeposits() { s.fundAliceBalances(20, 20) // GIVEN Alice Deposits 3 positions and withdraws the first s.aliceDeposits( - &Deposit{ - AmountA: math.NewInt(1), - AmountB: math.NewInt(0), - TickIndex: -50, - Fee: 1, - }, - &Deposit{ - AmountA: math.NewInt(5), - AmountB: math.NewInt(5), - TickIndex: 0, - Fee: 1, - }, - &Deposit{ - AmountA: math.NewInt(0), - AmountB: math.NewInt(10), - TickIndex: 2, - Fee: 1, - }, - ) - s.aliceWithdraws(&Withdrawal{ - TickIndex: -50, - Fee: 1, - Shares: math.NewInt(1), - }, + NewDeposit(1, 0, -50, 1), + NewDeposit(5, 5, 0, 1), + NewDeposit(0, 10, 2, 1), ) + s.aliceWithdraws(NewWithdrawal(1, -50, 1)) // THEN GetAllDeposits returns the two remaining LP positions depositList := s.App.DexKeeper.GetAllDepositsForAddress(s.Ctx, s.alice) s.Assert().Equal(2, len(depositList)) s.Assert().Equal(&types.DepositRecord{ PairID: defaultPairID, - SharesOwned: math.NewInt(10), + SharesOwned: math.NewInt(10_000_000), CenterTickIndex: 0, LowerTickIndex: -1, UpperTickIndex: 1, @@ -50,7 +30,7 @@ func (s *DexTestSuite) TestGetAllDeposits() { ) s.Assert().Equal(&types.DepositRecord{ PairID: defaultPairID, - SharesOwned: math.NewInt(10), + SharesOwned: math.NewInt(10_002_000), CenterTickIndex: 2, LowerTickIndex: 1, UpperTickIndex: 3, diff --git a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go index 2ad474b81..a589a6dee 100644 --- a/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go +++ b/x/dex/keeper/grpc_query_estimate_multi_hop_swap_test.go @@ -21,8 +21,8 @@ func (s *DexTestSuite) TestEstimateMultiHopSwapSingleRoute() { route := [][]string{{"TokenA", "TokenB", "TokenC", "TokenD"}} coinOut := s.aliceEstimatesMultiHopSwap(route, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) - // THEN alice would get out 99 TokenD - s.Assert().Equal(math.NewInt(97), coinOut.Amount) + // THEN alice would get out ~99 BIGTokenD + s.Assert().Equal(math.NewInt(99970003), coinOut.Amount) s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) s.assertAccountBalanceWithDenom(s.alice, "TokenD", 0) @@ -99,82 +99,82 @@ func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteOneGood() { s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) - coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) - _ = coinOut + coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.91"), false) // THEN swap estimation succeeds through route A<>B, B<>E, E<>X - s.Assert().Equal(math.NewInt(97), coinOut.Amount) + s.Assert().Equal(math.NewInt(99970003), coinOut.Amount) + + // pools and accounts are unaffected s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) s.assertAccountBalanceWithDenom(s.alice, "TokenX", 0) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) - // Other pools are unaffected s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(50), + 0, + 50, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(50), + 0, + 50, 2200, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(50), + 0, + 50, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(50), + 0, + 50, 2200, 1, ) @@ -208,7 +208,7 @@ func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteAllFail() { types.ErrExitLimitPriceHit, routes, 100, - math_utils.MustNewPrecDecFromStr("0.9"), + math_utils.MustNewPrecDecFromStr("0.91"), true, ) @@ -218,7 +218,7 @@ func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteAllFail() { types.ErrExitLimitPriceHit, routes, 100, - math_utils.MustNewPrecDecFromStr("0.9"), + math_utils.MustNewPrecDecFromStr("0.91"), false, ) } @@ -247,55 +247,55 @@ func (s *DexTestSuite) TestEstimateMultiHopSwapMultiRouteFindBestRoute() { // THEN swap succeeds through route A<>B, B<>E, E<>X - s.Assert().Equal(sdk.NewCoin("TokenX", math.NewInt(132)), coinOut) + // pools are unaffected + s.Assert().Equal(sdk.NewCoin("TokenX", math.NewInt(134943366)), coinOut) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(1000), + 0, + 1000, -3000, 1, ) - // Other pools are unaffected s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(1000), + 0, + 1000, -1000, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(1000), + 0, + 1000, -2000, 1, ) @@ -338,12 +338,12 @@ func (s *DexTestSuite) TestEstimateMultiHopSwapLongRouteWithCache() { coinOut := s.aliceEstimatesMultiHopSwap(routes, 100, math_utils.MustNewPrecDecFromStr("0.8"), true) // THEN swap succeeds with second route - s.Assert().Equal(coinOut, sdk.NewCoin("TokenX", math.NewInt(88))) + s.Assert().Equal(coinOut, sdk.NewCoin("TokenX", math.NewInt(99880066))) s.assertAccountBalanceWithDenom(s.alice, "TokenA", 100) s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenM", Token1: "TokenX"}, - math.NewInt(0), - math.NewInt(100), + 0, + 100, 0, 1, ) diff --git a/x/dex/keeper/integration_cancellimitorder_test.go b/x/dex/keeper/integration_cancellimitorder_test.go index 92ba79939..6bfdd305a 100644 --- a/x/dex/keeper/integration_cancellimitorder_test.go +++ b/x/dex/keeper/integration_cancellimitorder_test.go @@ -4,6 +4,7 @@ import ( "math" "time" + sdkmath "cosmossdk.io/math" abci "github.com/cometbft/cometbft/abci/types" "github.com/neutron-org/neutron/x/dex/types" ) @@ -214,12 +215,12 @@ func (s *DexTestSuite) TestCancelPartiallyFilledMultiUser() { s.aliceCancelsLimitSell(trancheKey) s.carolCancelsLimitSell(trancheKey) - // THEN alice gets back 41 TokenA (125 * 1/3) - s.assertAliceBalances(41, 0) + // THEN alice gets back ~41 BIGTokenA (125 * 1/3) + s.assertAliceBalancesInt(sdkmath.NewInt(41_666_666), sdkmath.ZeroInt()) // Carol gets back 83 TokenA (125 * 2/3) - s.assertCarolBalances(83, 0) - s.assertDexBalances(1, 25) + s.assertCarolBalancesInt(sdkmath.NewInt(83_333_333), sdkmath.ZeroInt()) + s.assertDexBalancesInt(sdkmath.OneInt(), sdkmath.NewInt(25_000_000)) } func (s *DexTestSuite) TestCancelGoodTil() { diff --git a/x/dex/keeper/integration_deposit_autoswap_unit_test.go b/x/dex/keeper/integration_deposit_autoswap_unit_test.go index 5fc6eb9b6..f3fd9c6b6 100644 --- a/x/dex/keeper/integration_deposit_autoswap_unit_test.go +++ b/x/dex/keeper/integration_deposit_autoswap_unit_test.go @@ -30,8 +30,8 @@ func (s *DexTestSuite) TestAutoswapperWithdraws() { s.aliceWithdraws(NewWithdrawalInt(autoswapSharesMinted, int64(tickIndex), uint64(fee))) - s.assertAliceBalances(aliceExpectedBalance0.Int64(), aliceExpectedBalance1.Int64()) - s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) + s.assertAliceBalancesInt(aliceExpectedBalance0, aliceExpectedBalance1) + s.assertDexBalancesInt(dexExpectedBalance0, dexExpectedBalance1) } func (s *DexTestSuite) TestAutoswapOtherDepositorWithdraws() { @@ -60,10 +60,10 @@ func (s *DexTestSuite) TestAutoswapOtherDepositorWithdraws() { bobExpectedBalance0, bobExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(bobSharesMinted, s.bob, int64(tickIndex), uint64(fee)) - s.bobWithdraws(NewWithdrawal(bobSharesMinted.Int64(), int64(tickIndex), uint64(fee))) + s.bobWithdraws(NewWithdrawalInt(bobSharesMinted, int64(tickIndex), uint64(fee))) - s.assertBobBalances(bobExpectedBalance0.Int64(), bobExpectedBalance1.Int64()) - s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) + s.assertBobBalancesInt(bobExpectedBalance0, bobExpectedBalance1) + s.assertDexBalancesInt(dexExpectedBalance0, dexExpectedBalance1) } func (s *DexTestSuite) TestAutoswapBothWithdraws() { @@ -77,9 +77,8 @@ func (s *DexTestSuite) TestAutoswapBothWithdraws() { tickIndex := 10000 fee := 5 - bobSharesMinted := s.calcSharesMinted(int64(tickIndex), int64(bobDep0), int64(bobDep1)) - s.bobDeposits(NewDeposit(bobDep0, bobDep1, tickIndex, fee)) + bobSharesMinted := s.getAccountShares(s.bob, "TokenA", "TokenB", int64(tickIndex), uint64(fee)) s.assertBobBalances(40, 40) s.assertDexBalances(10, 10) @@ -89,20 +88,20 @@ func (s *DexTestSuite) TestAutoswapBothWithdraws() { s.assertDexBalances(20, 15) // Calculated expected amounts out - autoswapSharesMinted := s.calcAutoswapSharesMinted(int64(tickIndex), uint64(fee), 5, 0, 5, 5, bobSharesMinted.Int64(), bobSharesMinted.Int64()) + autoswapSharesMinted := s.getAccountShares(s.alice, "TokenA", "TokenB", int64(tickIndex), uint64(fee)) // totalShares := autoswapSharesMinted.Add(math.NewInt(20)) bobExpectedBalance0, bobExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(bobSharesMinted, s.bob, int64(tickIndex), uint64(fee)) - s.bobWithdraws(NewWithdrawal(bobSharesMinted.Int64(), int64(tickIndex), uint64(fee))) + s.bobWithdraws(NewWithdrawalInt(bobSharesMinted, int64(tickIndex), uint64(fee))) - s.assertBobBalances(bobExpectedBalance0.Int64(), bobExpectedBalance1.Int64()) - s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) + s.assertBobBalancesInt(bobExpectedBalance0, bobExpectedBalance1) + s.assertDexBalancesInt(dexExpectedBalance0, dexExpectedBalance1) aliceExpectedBalance0, aliceExpectedBalance1, dexExpectedBalance0, dexExpectedBalance1 := s.calcExpectedBalancesAfterWithdrawOnePool(autoswapSharesMinted, s.alice, int64(tickIndex), uint64(fee)) s.aliceWithdraws(NewWithdrawalInt(autoswapSharesMinted, int64(tickIndex), uint64(fee))) - s.assertAliceBalances(aliceExpectedBalance0.Int64(), aliceExpectedBalance1.Int64()) - s.assertDexBalances(dexExpectedBalance0.Int64(), dexExpectedBalance1.Int64()) + s.assertAliceBalancesInt(aliceExpectedBalance0, aliceExpectedBalance1) + s.assertDexBalancesInt(dexExpectedBalance0, dexExpectedBalance1) } diff --git a/x/dex/keeper/integration_deposit_doublesided_test.go b/x/dex/keeper/integration_deposit_doublesided_test.go index 79fb8dc91..951ffb004 100644 --- a/x/dex/keeper/integration_deposit_doublesided_test.go +++ b/x/dex/keeper/integration_deposit_doublesided_test.go @@ -113,7 +113,7 @@ func (s *DexTestSuite) TestDepositDoubleSidedCreatingArbBelow() { // THEN // deposit should not fail with BEL error, balances and liquidity should not change at deposited tick - s.aliceDeposits(NewDeposit(10, 10, -5, 1)) + s.aliceDeposits(NewDeposit(10, 11, -5, 1)) // buying liquidity behind enemy lines doesn't break anything s.bobLimitSells("TokenA", 0, 10, types.LimitOrderType_FILL_OR_KILL) @@ -135,7 +135,7 @@ func (s *DexTestSuite) TestDepositDoubleSidedCreatingArbAbove() { // THEN // deposit should not fail with BEL error, balances and liquidity should not change at deposited tick - s.aliceDeposits(NewDeposit(10, 10, 5, 1)) + s.aliceDeposits(NewDeposit(11, 10, 5, 1)) // buying liquidity behind enemy lines doesn't break anything s.bobLimitSells("TokenB", 0, 10, types.LimitOrderType_FILL_OR_KILL) @@ -221,28 +221,30 @@ func (s *DexTestSuite) TestDepositValueAccural() { // Alice deposits 100TokenA @ tick0 => 100 shares s.aliceDeposits(NewDeposit(100, 0, 0, 10)) s.assertAliceShares(0, 10, 100) - s.assertLiquidityAtTick(math.NewInt(100), math.ZeroInt(), 0, 10) + s.assertLiquidityAtTick(100, 0, 0, 10) - // Lots of trade activity => ~200 ExistingValueToken0 + // Lots of trade activity => ~110 ExistingValueToken0 for i := 0; i < 100; i++ { - liquidityA, liquidityB := s.getLiquidityAtTick(0, 10) if i%2 == 0 { - s.bobLimitSells("TokenB", -10, int(liquidityA.Int64())+10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + s.bobLimitSells("TokenB", -10, 1000, types.LimitOrderType_IMMEDIATE_OR_CANCEL) } else { - s.bobLimitSells("TokenA", 10, int(liquidityB.Int64())+10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) + s.bobLimitSells("TokenA", 10, 1000, types.LimitOrderType_IMMEDIATE_OR_CANCEL) } } - s.assertLiquidityAtTick(math.NewInt(200), math.NewInt(0), 0, 10) - s.assertDexBalances(200, 0) + s.assertLiquidityAtTickInt(math.NewInt(110516593), math.ZeroInt(), 0, 10) + s.assertDexBalancesInt(math.NewInt(110516593), math.ZeroInt()) + s.assertLiquidityAtTickInt(math.NewInt(110516593), math.ZeroInt(), 0, 10) // Carol deposits 100TokenA @tick0 - s.carolDeposits(NewDeposit(100, 1, 0, 10)) - s.assertCarolShares(0, 10, 50) + s.carolDeposits(NewDeposit(100, 0, 0, 10)) + s.assertLiquidityAtTickInt(math.NewInt(210516593), math.ZeroInt(), 0, 10) + s.assertAccountSharesInt(s.carol, 0, 10, math.NewInt(90484150)) + // Alice gets back 100% of the accrued trade value s.aliceWithdraws(NewWithdrawal(100, 0, 10)) - s.assertAliceBalances(200, 0) - - s.carolWithdraws(NewWithdrawal(50, 0, 10)) + s.assertAliceBalancesInt(math.NewInt(110516593), math.NewInt(0)) + // AND carol get's back only what she put in + s.carolWithdraws(NewWithdrawalInt(math.NewInt(90484150), 0, 10)) s.assertCarolBalances(100, 1) } diff --git a/x/dex/keeper/integration_deposit_multi_test.go b/x/dex/keeper/integration_deposit_multi_test.go index cbf999695..b2ca79a8b 100644 --- a/x/dex/keeper/integration_deposit_multi_test.go +++ b/x/dex/keeper/integration_deposit_multi_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -34,12 +33,13 @@ func (s *DexTestSuite) TestDepositMultiSuccess() { // alice deposits 5 A, 5 B at tick 0 fee 0 and then 10 A, 10 B at tick 5 fee 0 s.aliceDeposits( NewDeposit(5, 5, 0, 1), - NewDeposit(10, 10, 0, 1), + NewDeposit(10, 10, 5, 0), ) // THEN // both deposits should go through s.assertAliceBalances(35, 35) - s.assertLiquidityAtTick(math.NewInt(15), math.NewInt(15), 0, 1) + s.assertLiquidityAtTick(5, 5, 0, 1) + s.assertLiquidityAtTick(10, 10, 5, 0) s.assertDexBalances(15, 15) } diff --git a/x/dex/keeper/integration_deposit_singlesided_test.go b/x/dex/keeper/integration_deposit_singlesided_test.go index 0d5a176c1..661747407 100644 --- a/x/dex/keeper/integration_deposit_singlesided_test.go +++ b/x/dex/keeper/integration_deposit_singlesided_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "math" + sdkmath "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -276,7 +277,7 @@ func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken0() { // Bob arbs s.bobLimitSells("TokenB", -1, 50, types.LimitOrderType_IMMEDIATE_OR_CANCEL) s.bobLimitSells("TokenA", 1, 10) - s.assertBobBalances(50, 52) + s.assertBobBalancesInt(sdkmath.NewInt(50_000_000), sdkmath.NewInt(53_294_995)) } func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken1() { @@ -301,7 +302,7 @@ func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken1() { // Bob arbs s.bobLimitSells("TokenA", -1, 50, types.LimitOrderType_IMMEDIATE_OR_CANCEL) s.bobLimitSells("TokenB", -1, 10) - s.assertBobBalances(52, 50) + s.assertBobBalancesInt(sdkmath.NewInt(53_295_665), sdkmath.NewInt(50_000_000)) } func (s *DexTestSuite) TestDepositSingleSidedMultiA() { @@ -410,17 +411,19 @@ func (s *DexTestSuite) TestDepositSingleSidedZeroTrueAmountsFail() { s.assertAliceDepositFails(err, NewDeposit(0, 5, 0, 1)) } -func (s *DexTestSuite) TestDepositSingleLowTickUnderflowFails() { - s.fundAliceBalances(0, 50) - - // GIVEN - // deposit 50 of token B at tick -352436 fee 0 - // THEN 0 shares would be issued so deposit fails - s.assertAliceDepositFails( - types.ErrDepositShareUnderflow, - NewDeposit(0, 50, -352436, 0), - ) -} +// NOTE: The error checking for ShareUnderflow is completely subsumed by the ensureFairTruePrice check +// it no longer possible to manually check this test case. Leaving the example test here should things change in the future +// func (s *DexTestSuite) TestDepositSingleLowTickUnderflowFails() { +// s.fundAliceBalances(0, 40_000_000_000_0) + +// // GIVEN +// // deposit 50 of token B at tick -352436 fee 0 +// // THEN 0 shares would be issued so deposit fails +// s.assertAliceDepositFails( +// types.ErrDepositShareUnderflow, +// NewDeposit(0, 26457, -240_000, 0), +// ) +// } func (s *DexTestSuite) TestDepositSingleInvalidFeeFails() { s.fundAliceBalances(0, 50) diff --git a/x/dex/keeper/integration_multihopswap_test.go b/x/dex/keeper/integration_multihopswap_test.go index 6bb951ae0..776b13e7f 100644 --- a/x/dex/keeper/integration_multihopswap_test.go +++ b/x/dex/keeper/integration_multihopswap_test.go @@ -29,9 +29,11 @@ func NewPoolSetup(tokenA, tokenB string, amountA, amountB, tickIndex, fee int) P func (s *DexTestSuite) SetupMultiplePools(poolSetups ...PoolSetup) { for _, p := range poolSetups { + amountAInt := math.NewInt(int64(p.AmountA)).Mul(denomMultiple) + amountBInt := math.NewInt(int64(p.AmountB)).Mul(denomMultiple) coins := sdk.NewCoins( - sdk.NewCoin(p.TokenA, math.NewInt(int64(p.AmountA))), - sdk.NewCoin(p.TokenB, math.NewInt(int64(p.AmountB))), + sdk.NewCoin(p.TokenA, amountAInt), + sdk.NewCoin(p.TokenB, amountBInt), ) s.fundAccountBalancesWithDenom(s.bob, coins) pairID := types.PairID{Token0: p.TokenA, Token1: p.TokenB} @@ -59,12 +61,12 @@ func (s *DexTestSuite) TestMultiHopSwapSingleRoute() { // THEN alice gets out 99 TokenD s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) - s.assertAccountBalanceWithDenom(s.alice, "TokenD", 97) + s.assertAccountBalanceWithDenomInt(s.alice, "TokenD", math.NewInt(99_970_003)) s.assertDexBalanceWithDenom("TokenA", 100) s.assertDexBalanceWithDenom("TokenB", 100) s.assertDexBalanceWithDenom("TokenC", 100) - s.assertDexBalanceWithDenom("TokenD", 3) + s.assertDexBalanceWithDenomInt("TokenD", math.NewInt(29_997)) } func (s *DexTestSuite) TestMultiHopSwapInsufficientLiquiditySingleRoute() { @@ -131,73 +133,73 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteOneGood() { {"TokenA", "TokenB", "TokenD", "TokenX"}, {"TokenA", "TokenB", "TokenE", "TokenX"}, } - s.aliceMultiHopSwaps(routes, 100, math_utils.MustNewPrecDecFromStr("0.9"), false) + s.aliceMultiHopSwaps(routes, 100, math_utils.MustNewPrecDecFromStr("0.91"), false) // THEN swap succeeds through route A<>B, B<>E, E<>X s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) - s.assertAccountBalanceWithDenom(s.alice, "TokenX", 97) - s.assertLiquidityAtTickWithDenom( + s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(99_970_003)) + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(100), - math.NewInt(1), + math.NewInt(99_999_999), + math.NewInt(10_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - math.NewInt(99), - math.NewInt(2), + math.NewInt(99_990_000), + math.NewInt(19_999), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - math.NewInt(98), - math.NewInt(3), + math.NewInt(99_980_001), + math.NewInt(29_997), 0, 1, ) // Other pools are unaffected - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, math.NewInt(0), - math.NewInt(100), + math.NewInt(100_000_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, math.NewInt(0), - math.NewInt(50), + math.NewInt(50_000_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, math.NewInt(0), - math.NewInt(50), + math.NewInt(50_000_000), 2200, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, math.NewInt(0), - math.NewInt(100), + math.NewInt(100_000_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, math.NewInt(0), - math.NewInt(50), + math.NewInt(50_000_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, math.NewInt(0), - math.NewInt(50), + math.NewInt(50_000_000), 2200, 1, ) @@ -231,7 +233,7 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteAllFail() { types.ErrExitLimitPriceHit, routes, 100, - math_utils.MustNewPrecDecFromStr("0.9"), + math_utils.MustNewPrecDecFromStr("0.91"), true, ) @@ -241,7 +243,7 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteAllFail() { types.ErrExitLimitPriceHit, routes, 100, - math_utils.MustNewPrecDecFromStr("0.9"), + math_utils.MustNewPrecDecFromStr("0.91"), false, ) } @@ -271,55 +273,56 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { // THEN swap succeeds through route A<>B, B<>E, E<>X s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) - s.assertAccountBalanceWithDenom(s.alice, "TokenX", 132) - s.assertLiquidityAtTickWithDenom( + s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(134_943_366)) + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(100), - math.NewInt(1), + math.NewInt(99_999_999), + math.NewInt(10000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - math.NewInt(99), - math.NewInt(2), + math.NewInt(99_990_000), + math.NewInt(19_999), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - math.NewInt(98), - math.NewInt(868), + math.NewInt(99_980_001), + math.NewInt(865_056_634), -3000, 1, ) // Other pools are unaffected - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenC"}, math.NewInt(0), - math.NewInt(100), + math.NewInt(100_000_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenC", Token1: "TokenX"}, math.NewInt(0), - math.NewInt(1000), + math.NewInt(1_000_000_000), -1000, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenD"}, math.NewInt(0), - math.NewInt(100), + math.NewInt(100_000_000), 0, 1, ) - s.assertLiquidityAtTickWithDenom( + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenD", Token1: "TokenX"}, math.NewInt(0), - math.NewInt(1000), + math.NewInt(1_000_000_000), -2000, 1, ) @@ -363,11 +366,11 @@ func (s *DexTestSuite) TestMultiHopSwapLongRouteWithCache() { // THEN swap succeeds with second route s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) - s.assertAccountBalanceWithDenom(s.alice, "TokenX", 88) - s.assertLiquidityAtTickWithDenom( + s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(99_880_066)) + s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenM", Token1: "TokenX"}, - math.NewInt(89), - math.NewInt(12), + math.NewInt(99_890_055), + math.NewInt(119_934), 0, 1, ) diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 90cc398a2..0fc08221f 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -389,7 +389,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoK0TotalAmountInNotUsed() { // WHEN alice submits FoK limitOrder for 9998 it succeeds // even though trueAmountIn < specifiedAmountIn due to rounding s.aliceLimitSells("TokenA", 21000, 9998, types.LimitOrderType_FILL_OR_KILL) - s.assertAliceBalances(6, 1352) + s.assertAliceBalancesInt(sdkmath.NewInt(5), sdkmath.NewInt(1_353_046_854)) } func (s *DexTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { @@ -403,7 +403,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { // WHEN alice submits FoK limitOrder for 9998 it succeeds // even though trueAmountIn < specifiedAmountIn due to rounding s.aliceLimitSells("TokenB", -21000, 9998, types.LimitOrderType_FILL_OR_KILL) - s.assertAliceBalances(1352, 6) + s.assertAliceBalancesInt(sdkmath.NewInt(135_3046_854), sdkmath.NewInt(5)) } func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { @@ -416,8 +416,8 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { // WHEN alice submits FoK limitOrder of 50 TokenB with maxOut of 20 s.aliceLimitSellsWithMaxOut("TokenB", 0, 50, 20) - // THEN alice swap 19 TokenB and gets back 20 TokenA - s.assertAliceBalances(20, 31) + // THEN alice swap ~19 BIGTokenB and gets back 20 BIGTokenA + s.assertAliceBalancesInt(sdkmath.NewInt(20_000_000), sdkmath.NewInt(31_162_769)) } func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { @@ -432,8 +432,8 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { // WHEN alice submits FoK limitOrder of 50 TokenB with maxOut of 20 s.aliceLimitSellsWithMaxOut("TokenB", 0, 50, 20) - // THEN alice swap 20 TokenB and gets back 20 TokenA - s.assertAliceBalances(20, 30) + // THEN alice swap ~19 BIGTokenB and gets back 20 BIGTokenA + s.assertAliceBalancesInt(sdkmath.NewInt(20_000_000), sdkmath.NewInt(31_165_594)) } // Immediate Or Cancel LimitOrders //////////////////////////////////////////////////////////////////// @@ -536,13 +536,13 @@ func (s *DexTestSuite) TestPlaceLimitOrderJITBehindEnemyLines() { s.assertLimitLiquidityAtTick("TokenA", 1, 10) s.assertAliceBalances(0, 0) // AND bob swaps through all the liquidity - s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_FILL_OR_KILL) + s.bobLimitSells("TokenB", -10, 10, types.LimitOrderType_IMMEDIATE_OR_CANCEL) // THEN all liquidity is depleted s.assertLimitLiquidityAtTick("TokenA", 1, 0) - // Alice can withdraw 9 TokenB + // Alice can withdraw ~10 BIGTokenB s.aliceWithdrawsLimitSell(trancheKey) - s.assertAliceBalances(0, 9) + s.assertAliceBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(9999000)) } func (s *DexTestSuite) TestPlaceLimitOrderJITNextBlock() { diff --git a/x/dex/keeper/integration_withdraw_multi_test.go b/x/dex/keeper/integration_withdraw_multi_test.go index 410b2878d..b7f8edcb4 100644 --- a/x/dex/keeper/integration_withdraw_multi_test.go +++ b/x/dex/keeper/integration_withdraw_multi_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "cosmossdk.io/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -11,7 +10,7 @@ func (s *DexTestSuite) TestWithdrawMultiFailure() { // alice deposits 5 A, 5 B in tick 0 fee 0 s.aliceDeposits(NewDeposit(5, 5, 0, 1)) s.assertAliceShares(0, 1, 10) - s.assertLiquidityAtTick(math.NewInt(5), math.NewInt(5), 0, 1) + s.assertLiquidityAtTick(5, 5, 0, 1) s.assertAliceBalances(45, 45) s.assertDexBalances(5, 5) @@ -33,7 +32,7 @@ func (s *DexTestSuite) TestWithdrawMultiSuccess() { // alice deposits 5 A, 5 B in tick 0 fee 1 s.aliceDeposits(NewDeposit(5, 5, 0, 1)) s.assertAliceShares(0, 1, 10) - s.assertLiquidityAtTick(math.NewInt(5), math.NewInt(5), 0, 1) + s.assertLiquidityAtTick(5, 5, 0, 1) s.assertAliceBalances(45, 45) s.assertDexBalances(5, 5) @@ -48,7 +47,7 @@ func (s *DexTestSuite) TestWithdrawMultiSuccess() { // both withdraws should work // i.e. no shares remaining and entire balance transferred out s.assertAliceShares(0, 1, 0) - s.assertLiquidityAtTick(math.ZeroInt(), math.ZeroInt(), 0, 1) + s.assertLiquidityAtTick(0, 0, 0, 1) s.assertAliceBalances(50, 50) s.assertDexBalances(0, 0) } diff --git a/x/dex/keeper/limit_order_tranche_user_test.go b/x/dex/keeper/limit_order_tranche_user_test.go index 3c507ce49..c3eef976b 100644 --- a/x/dex/keeper/limit_order_tranche_user_test.go +++ b/x/dex/keeper/limit_order_tranche_user_test.go @@ -90,7 +90,7 @@ func (s *DexTestSuite) TestGetAllLimitOrders() { TickIndexTakerToMaker: 1, TrancheKey: trancheKeyA, Address: s.alice.String(), - SharesOwned: math.NewInt(10), + SharesOwned: math.NewInt(10_000_000), SharesWithdrawn: math.NewInt(0), SharesCancelled: math.NewInt(0), }, @@ -101,7 +101,7 @@ func (s *DexTestSuite) TestGetAllLimitOrders() { TickIndexTakerToMaker: 0, TrancheKey: trancheKeyB, Address: s.alice.String(), - SharesOwned: math.NewInt(10), + SharesOwned: math.NewInt(10_000_000), SharesWithdrawn: math.NewInt(0), SharesCancelled: math.NewInt(0), }, diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index cdfb199cf..0cfdad2b7 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -19,8 +19,8 @@ func (s *DexTestSuite) TestSwap0To1NoLiquidity() { tokenIn, tokenOut := s.swap("TokenA", "TokenB", 10) // THEN swap should do nothing - s.assertSwapOutput(tokenIn, 0, tokenOut, 0) - s.assertTickBalances(1010, 0) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(0o_000_000), tokenOut, sdkmath.NewInt(0o_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(1010_000_000), sdkmath.NewInt(0o_000_000)) s.assertCurr0To1(math.MaxInt64) } @@ -34,8 +34,8 @@ func (s *DexTestSuite) TestSwap1To0NoLiquidity() { tokenIn, tokenOut := s.swap("TokenB", "TokenA", 10) // THEN swap should do nothing - s.assertSwapOutput(tokenIn, 0, tokenOut, 0) - s.assertTickBalances(0, 1010) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(0o_000_000), tokenOut, sdkmath.NewInt(0o_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(0o_000_000), sdkmath.NewInt(1010_000_000)) s.assertCurr1To0(math.MinInt64) } @@ -49,11 +49,11 @@ func (s *DexTestSuite) TestSwap0To1PartialFillLP() { // WHEN swap 20 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 20) - // THEN swap should return 11 TokenA in and 10 TokenB out + // THEN swap should return ~10 BIGTokenA in and 10 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 11, tokenOut, 10) - s.assertTickBalances(11, 0) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(10_001_000), tokenOut, sdkmath.NewInt(10_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(10_001_000), sdkmath.ZeroInt()) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-1) @@ -66,11 +66,11 @@ func (s *DexTestSuite) TestSwap1To0PartialFillLP() { // WHEN swap 20 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 20) - // THEN swap should return 11 TokenB in and 10 TokenA out + // THEN swap should return ~10 BIGTokenB in and 10 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 11, tokenOut, 10) - s.assertTickBalances(0, 11) + s.assertSwapOutputInt(tokenIn, sdk.NewInt(10_001_000), tokenOut, sdk.NewInt(10_000_000)) + s.assertTickBalancesInt(sdk.ZeroInt(), sdk.NewInt(10001000)) s.assertCurr0To1(1) s.assertCurr1To0(math.MinInt64) @@ -83,11 +83,11 @@ func (s *DexTestSuite) TestSwap0To1FillLP() { // WHEN swap 100 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) - // THEN swap should return 100 TokenA in and 97 TokenB out + // THEN swap should return 100 BIGTokenA in and ~98 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 100, tokenOut, 97) - s.assertTickBalances(100, 3) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(100_000_000), tokenOut, sdkmath.NewInt(97_970_970)) + s.assertTickBalancesInt(sdkmath.NewInt(100_000_000), sdkmath.NewInt(20_29_030)) s.assertCurr0To1(205) s.assertCurr1To0(195) @@ -100,12 +100,12 @@ func (s *DexTestSuite) TestSwap1To0FillLP() { // WHEN swap 100 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) - // THEN swap should return 97 TokenB in and 13 TokenA out + // THEN swap should return ~99 BIGTokenB in and ~14 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) // NOTE: Given rounding for amountOut, amountIn does not use the full maxAmount - s.assertSwapOutput(tokenIn, 97, tokenOut, 13) - s.assertTickBalances(87, 97) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_998), tokenOut, sdkmath.NewInt(13_533_528)) + s.assertTickBalancesInt(sdkmath.NewInt(86_466_472), sdkmath.NewInt(99_999_998)) s.assertCurr0To1(-19_999) s.assertCurr1To0(-20_001) @@ -118,11 +118,11 @@ func (s *DexTestSuite) TestSwap0To1FillLPHighFee() { // WHEN swap 100 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) - // THEN swap should return 98 TokenA in and 12 TokenB out + // THEN swap should return ~99 BIGTokenA in and ~12 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 98, tokenOut, 12) - s.assertTickBalances(98, 88) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_996), tokenOut, sdkmath.NewInt(12_246_928)) + s.assertTickBalancesInt(sdkmath.NewInt(99_999_996), sdkmath.NewInt(87_753_072)) s.assertCurr0To1(21_000) s.assertCurr1To0(19_000) @@ -135,11 +135,11 @@ func (s *DexTestSuite) TestSwap1To0FillLPHighFee() { // WHEN swap 100 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) - // THEN swap should return 100 TokenB in and 668 TokenA out + // THEN swap should return 100 BIGTokenB in and ~668 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 100, tokenOut, 668) - s.assertTickBalances(332, 100) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(100_000_000), tokenOut, sdkmath.NewInt(668_525_935)) + s.assertTickBalancesInt(sdkmath.NewInt(331_474_065), sdkmath.NewInt(100_000_000)) s.assertCurr0To1(21_000) s.assertCurr1To0(19_000) @@ -156,11 +156,11 @@ func (s *DexTestSuite) TestSwap0To1PartialFillMultipleLP() { // WHEN swap 100 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) - // THEN swap should return 42 TokenA in and 300 TokenB out + // THEN swap should return ~40 BIGTokenA in and 300 TokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 42, tokenOut, 300) - s.assertTickBalances(42, 0) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(40_604_647), tokenOut, sdkmath.NewInt(300_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(40_604_647), sdkmath.ZeroInt()) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-20_001) @@ -177,11 +177,11 @@ func (s *DexTestSuite) TestSwap1To0PartialFillMultipleLP() { // WHEN swap 100 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) - // THEN swap should return 42 TokenB in and 300 TokenA out + // THEN swap should return ~41 BIGTokenB in and 300 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 42, tokenOut, 300) - s.assertTickBalances(0, 42) + s.assertSwapOutputInt(tokenIn, sdk.NewInt(40604647), tokenOut, sdk.NewInt(300000000)) + s.assertTickBalancesInt(sdk.ZeroInt(), sdk.NewInt(40604647)) s.assertCurr0To1(20_001) s.assertCurr1To0(math.MinInt64) @@ -199,11 +199,11 @@ func (s *DexTestSuite) TestSwap0To1FillMultipleLP() { // WHEN swap 100 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 400) - // THEN swap should return 400 TokenA in and 400 TokenB out + // THEN swap should return ~399 BIGTokenA in and 400 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 400, tokenOut, 400) - s.assertTickBalances(400, 0) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(399_180_884), tokenOut, sdkmath.NewInt(400_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(399_180_884), sdkmath.ZeroInt()) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-21) @@ -221,11 +221,11 @@ func (s *DexTestSuite) TestSwap1To0FillMultipleLP() { // WHEN swap 400 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 400) - // THEN swap should return 400 TokenB in and 400 TokenA out + // THEN swap should return 400 BIGTokenB in and ~400 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 400, tokenOut, 400) - s.assertTickBalances(0, 400) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(399_180_884), tokenOut, sdkmath.NewInt(400_000_000)) + s.assertTickBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(399_180_884)) s.assertCurr0To1(21) s.assertCurr1To0(math.MinInt64) @@ -238,9 +238,9 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsed() { // WHEN swap 50 TokenA with maxOut of 5 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 5) - // THEN swap should return 6 TokenA in and 5 TokenB out - s.assertSwapOutput(tokenIn, 6, tokenOut, 5) - s.assertTickBalances(6, 5) + // THEN swap should return ~5 BIGTokenA in and 5 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_500), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_500), sdkmath.NewInt(5_000_000)) } func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsed() { @@ -250,9 +250,9 @@ func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsed() { // WHEN swap 50 TokenB with maxOut of 5 tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 5) - // THEN swap should return 6 TokenB in and 5 TokenA out - s.assertSwapOutput(tokenIn, 6, tokenOut, 5) - s.assertTickBalances(5, 6) + // THEN swap should return ~5 BIGTokenB in and 5 BIGTokenA out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_500), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_000), sdkmath.NewInt(5_000_500)) } func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsed() { @@ -262,9 +262,9 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsed() { // WHEN swap 8 with maxOut of 15 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 8, 15) - // THEN swap should return 8 TokenA in and 7 TokenB out - s.assertSwapOutput(tokenIn, 8, tokenOut, 7) - s.assertTickBalances(8, 3) + // THEN swap should return 8 BIGTokenA in and ~8 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(7_999_200)) + s.assertTickBalancesInt(sdkmath.NewInt(8_000_000), sdkmath.NewInt(20_00_800)) } func (s *DexTestSuite) TestSwap1To0LPMaxAmountNotUsed() { @@ -274,9 +274,9 @@ func (s *DexTestSuite) TestSwap1To0LPMaxAmountNotUsed() { // WHEN swap 8 with maxOut of 15 tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 8, 15) - // THEN swap should return 8 TokenB in and 7 TokenA out - s.assertSwapOutput(tokenIn, 8, tokenOut, 7) - s.assertTickBalances(3, 8) + // THEN swap should return 8 BIGTokenB in and ~8 BIGTokenA out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(7_999_200)) + s.assertTickBalancesInt(sdkmath.NewInt(2000800), sdkmath.NewInt(8_000_000)) } func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { @@ -292,9 +292,9 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { // WHEN swap 50 TokenA with maxOut of 20 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 20) - // THEN swap should return 24 TokenA in and 20 TokenB out - s.assertSwapOutput(tokenIn, 24, tokenOut, 20) - s.assertTickBalances(24, 30) + // THEN swap should return ~20 BIGTokenA in and 20 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(20_005_003), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(20_005_003), sdkmath.NewInt(30_000_000)) } func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { @@ -310,9 +310,9 @@ func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { // WHEN swap 50 TokenB with maxOut of 20 tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 20) - // THEN swap should return 20 TokenB in and 20 TokenA out - s.assertSwapOutput(tokenIn, 20, tokenOut, 20) - s.assertTickBalances(30, 20) + // THEN swap should return ~ 20 BIGTokenB in and 20 BIGTokenA out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_994_002), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(30_000_000), sdkmath.NewInt(19_994_002)) } func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { @@ -328,9 +328,9 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { // WHEN swap 19 TokenA with maxOut of 20 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 19, 20) - // THEN swap should return 19 TokenA in and 15 TokenB out - s.assertSwapOutput(tokenIn, 18, tokenOut, 15) - s.assertTickBalances(18, 35) + // THEN swap should return 19 BIGTokenA in and 19 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_000_000), tokenOut, sdkmath.NewInt(18_995_399)) + s.assertTickBalancesInt(sdkmath.NewInt(19_000_000), sdkmath.NewInt(31_004_601)) } // swaps against LOs only ///////////////////////////////////////////////////// @@ -342,11 +342,11 @@ func (s *DexTestSuite) TestSwap0To1PartialFillLO() { // WHEN swap 20 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 20) - // THEN swap should return 12 TokenA in and 10 TokenB out + // THEN swap should return ~11 BIGTokenA in and 10 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 12, tokenOut, 10) - s.assertTickBalances(12, 0) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(11_051_654), tokenOut, sdkmath.NewInt(10_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(11_051_654), sdkmath.ZeroInt()) } func (s *DexTestSuite) TestSwap1To0PartialFillLO() { @@ -356,11 +356,11 @@ func (s *DexTestSuite) TestSwap1To0PartialFillLO() { // WHEN swap 20 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 20) - // THEN swap should return 12 TokenB in and 10 TokenA out + // THEN swap should return ~11 BIGTokenB in and 10 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 12, tokenOut, 10) - s.assertTickBalances(0, 12) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(11_051_654), tokenOut, sdkmath.NewInt(10_000_000)) + s.assertTickBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(11_051_654)) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(math.MinInt64) @@ -373,11 +373,11 @@ func (s *DexTestSuite) TestSwap0To1FillLO() { // WHEN swap 100 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) - // THEN swap should return 98 TokenA in and 36 TokenB out + // THEN swap should return ~99 BIGTokenA in and ~37 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 98, tokenOut, 36) - s.assertTickBalances(98, 64) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_999), tokenOut, sdkmath.NewInt(36_789_783)) + s.assertTickBalancesInt(sdkmath.NewInt(99_999_999), sdkmath.NewInt(63_210_217)) s.assertCurr0To1(10_000) s.assertCurr1To0(math.MinInt64) @@ -390,11 +390,11 @@ func (s *DexTestSuite) TestSwap1To0FillLO() { // WHEN swap 10 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 10) - // THEN swap should return 9 TokenB in and 3 TokenA out + // THEN swap should return 10 BIGTokenB in and ~4 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 9, tokenOut, 3) - s.assertTickBalances(97, 9) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(10_000_000), tokenOut, sdkmath.NewInt(3_678_978)) + s.assertTickBalancesInt(sdkmath.NewInt(96_321_022), sdkmath.NewInt(10_000_000)) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-10_000) @@ -409,11 +409,11 @@ func (s *DexTestSuite) TestSwap0To1FillMultipleLO() { // WHEN swap 300 of tokenA tokenIn, tokenOut := s.swap("TokenA", "TokenB", 300) - // THEN swap should return 300 TokenA in and 270 TokenB out + // THEN swap should return 300 BIGTokenA in and ~271 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 300, tokenOut, 270) - s.assertTickBalances(300, 30) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(300_000_000), tokenOut, sdkmath.NewInt(271_428_295)) + s.assertTickBalancesInt(sdkmath.NewInt(300_000_000), sdkmath.NewInt(28_571_705)) s.assertCurr0To1(1_002) s.assertCurr1To0(math.MinInt64) @@ -428,11 +428,11 @@ func (s *DexTestSuite) TestSwap1To0FillMultipleLO() { // WHEN swap 300 of tokenB tokenIn, tokenOut := s.swap("TokenB", "TokenA", 300) - // THEN swap should return 300 TokenB in and 270 TokenB out + // THEN swap should return 300 BIGTokenB in and ~271 BIGTokenB out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutput(tokenIn, 300, tokenOut, 270) - s.assertTickBalances(30, 300) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(300_000_000), tokenOut, sdkmath.NewInt(271_428_295)) + s.assertTickBalancesInt(sdkmath.NewInt(28_571_705), sdkmath.NewInt(300_000_000)) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-1_002) @@ -445,9 +445,9 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsed() { // WHEN swap 50 TokenA with maxOut of 5 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 5) - // THEN swap should return 6 TokenA in and 5 TokenB out - s.assertSwapOutput(tokenIn, 6, tokenOut, 5) - s.assertTickBalances(6, 5) + // THEN swap should return ~5 BIGTokenA in and 5 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_500), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_500), sdkmath.NewInt(5_000_000)) } func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsed() { @@ -458,8 +458,8 @@ func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 5) // THEN swap should return 5 TokenB in and 5 TokenA out - s.assertSwapOutput(tokenIn, 5, tokenOut, 5) - s.assertTickBalances(5, 5) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_000), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_000), sdkmath.NewInt(5_000_000)) } func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsed() { @@ -469,9 +469,9 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsed() { // WHEN swap 8 with maxOut of 15 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 8, 15) - // THEN swap should return 8 TokenA in and 7 TokenB out - s.assertSwapOutput(tokenIn, 8, tokenOut, 7) - s.assertTickBalances(8, 3) + // THEN swap should return 8 BIGTokenA in and ~8 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(7_999_200)) + s.assertTickBalancesInt(sdkmath.NewInt(8_000_000), sdkmath.NewInt(2_000_800)) } func (s *DexTestSuite) TestSwap1To0LOMaxAmountNotUsed() { @@ -481,9 +481,9 @@ func (s *DexTestSuite) TestSwap1To0LOMaxAmountNotUsed() { // WHEN swap 8 with maxOut of 15 tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 8, 15) - // THEN swap should return 8 TokenB in and 8 TokenA out - s.assertSwapOutput(tokenIn, 8, tokenOut, 8) - s.assertTickBalances(2, 8) + // THEN swap should return 8 BIGTokenB in and ~8 BIGTokenA out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(8_000_800)) + s.assertTickBalancesInt(sdkmath.NewInt(1_999_200), sdkmath.NewInt(8_000_000)) } func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { @@ -497,9 +497,9 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { // WHEN swap 50 TokenA with maxOut of 20 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 20) - // THEN swap should return 23 TokenA in and 20 TokenB out - s.assertSwapOutput(tokenIn, 23, tokenOut, 20) - s.assertTickBalances(23, 30) + // THEN swap should return ~20 BIGTokenA in and 20 TokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(20_003_002), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(20_003_002), sdkmath.NewInt(30_000_000)) } func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { @@ -513,9 +513,9 @@ func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { // WHEN swap 50 TokenB with maxOut of 20 tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 20) - // THEN swap should return 20 TokenB in and 20 TokenA out - s.assertSwapOutput(tokenIn, 20, tokenOut, 20) - s.assertTickBalances(30, 20) + // THEN swap should return ~20 BIGTokenB in and 20 BIGTokenA out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_992_002), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(30_000_000), sdkmath.NewInt(19_992_002)) } func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { @@ -529,9 +529,9 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { // WHEN swap 19 TokenA with maxOut of 20 tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 19, 20) - // THEN swap should return 19 TokenA in and 16 TokenB out - s.assertSwapOutput(tokenIn, 19, tokenOut, 16) - s.assertTickBalances(19, 34) + // THEN swap should return 19 BIGTokenA in and ~19 BIGTokenB out + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_000_000), tokenOut, sdkmath.NewInt(18_997_299)) + s.assertTickBalancesInt(sdkmath.NewInt(19_000_000), sdkmath.NewInt(31_002_701)) } // Swap LO and LP //////////////////////////////////////////////////////////// @@ -579,7 +579,7 @@ func (s *DexTestSuite) placeGTCLimitOrder( types.LimitOrderType_GOOD_TIL_CANCELLED, ) s.Assert().NoError(err) - tranche.PlaceMakerLimitOrder(sdkmath.NewInt(amountIn)) + tranche.PlaceMakerLimitOrder(sdkmath.NewInt(amountIn).Mul(denomMultiple)) s.App.DexKeeper.SaveTranche(s.Ctx, tranche) } @@ -593,7 +593,7 @@ func (s *DexTestSuite) swap( coinIn, coinOut, _, err = s.App.DexKeeper.Swap( s.Ctx, tradePairID, - sdkmath.NewInt(maxAmountIn), + sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), nil, nil, ) @@ -608,11 +608,11 @@ func (s *DexTestSuite) swapWithMaxOut( maxAmountOut int64, ) (coinIn, coinOut sdk.Coin) { tradePairID := types.MustNewTradePairID(tokenIn, tokenOut) - maxAmountOutInt := sdkmath.NewInt(maxAmountOut) + maxAmountOutInt := sdkmath.NewInt(maxAmountOut).Mul(denomMultiple) coinIn, coinOut, _, err := s.App.DexKeeper.Swap( s.Ctx, tradePairID, - sdkmath.NewInt(maxAmountIn), + sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), &maxAmountOutInt, nil, ) @@ -621,27 +621,36 @@ func (s *DexTestSuite) swapWithMaxOut( return coinIn, coinOut } -func (s *DexTestSuite) assertSwapOutput( +func (s *DexTestSuite) assertSwapOutputInt( actualIn sdk.Coin, - expectedIn int64, + expectedIn sdkmath.Int, actualOut sdk.Coin, - expectedOut int64, + expectedOut sdkmath.Int, ) { amtIn := actualIn.Amount amtOut := actualOut.Amount s.Assert(). - True(amtIn.Equal(sdkmath.NewInt(expectedIn)), "Expected amountIn %d != %s", expectedIn, amtIn) + True(amtIn.Equal(expectedIn), "Expected amountIn %s != %s", expectedIn, amtIn) s.Assert(). - True(amtOut.Equal(sdkmath.NewInt(expectedOut)), "Expected amountOut %d != %s", expectedOut, amtOut) + True(amtOut.Equal(expectedOut), "Expected amountOut %s != %s", expectedOut, amtOut) } -func (s *DexTestSuite) assertTickBalances(expectedABalance, expectedBBalance int64) { +func (s *DexTestSuite) assertSwapOutput( + actualIn sdk.Coin, + expectedIn int64, + actualOut sdk.Coin, + expectedOut int64, +) { + expectedInInt := sdkmath.NewInt(expectedIn).Mul(denomMultiple) + expectedOutInt := sdkmath.NewInt(expectedOut).Mul(denomMultiple) + s.assertSwapOutputInt(actualIn, expectedInInt, actualOut, expectedOutInt) +} + +func (s *DexTestSuite) assertTickBalancesInt(expectedABalance, expectedBBalance sdkmath.Int) { // NOTE: We can't just check the actual DEX bank balances since we are testing swap // before any transfers take place. Instead we have to sum up the total amount of coins // at each tick - expectedAInt := sdkmath.NewInt(expectedABalance) - expectedBInt := sdkmath.NewInt(expectedBBalance) allCoins := sdk.Coins{} ticks := s.App.DexKeeper.GetAllTickLiquidity(s.Ctx) inactiveLOs := s.App.DexKeeper.GetAllInactiveLimitOrderTranche(s.Ctx) @@ -674,7 +683,16 @@ func (s *DexTestSuite) assertTickBalances(expectedABalance, expectedBBalance int actualB := allCoins.AmountOf("TokenB") s.Assert(). - True(actualA.Equal(expectedAInt), "TokenA: expected %s != actual %s", expectedAInt, actualA) + True(actualA.Equal(expectedABalance), "TokenA: expected %s != actual %s", expectedABalance, actualA) s.Assert(). - True(actualB.Equal(expectedBInt), "TokenB: expected %s != actual %s", expectedBInt, actualB) + True(actualB.Equal(expectedBBalance), "TokenB: expected %s != actual %s", expectedBBalance, actualB) +} + +func (s *DexTestSuite) assertTickBalances(expectedABalance, expectedBBalance int64) { + // NOTE: We can't just check the actual DEX bank balances since we are testing swap + // before any transfers take place. Instead we have to sum up the total amount of coins + // at each tick + expectedAInt := sdkmath.NewInt(expectedABalance).Mul(denomMultiple) + expectedBInt := sdkmath.NewInt(expectedBBalance).Mul(denomMultiple) + s.assertTickBalancesInt(expectedAInt, expectedBInt) } diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index f6dd8b43c..387bf9b64 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -18,7 +18,7 @@ import ( "github.com/stretchr/testify/suite" ) -// / Test suite +// Test suite type DexTestSuite struct { apptesting.KeeperTestHelper msgServer types.MsgServer @@ -30,6 +30,8 @@ type DexTestSuite struct { var defaultPairID *types.PairID = &types.PairID{Token0: "TokenA", Token1: "TokenB"} +var denomMultiple = sdk.NewInt(1000000) + var defaultTradePairID0To1 *types.TradePairID = &types.TradePairID{ TakerDenom: "TokenA", MakerDenom: "TokenB", @@ -55,11 +57,22 @@ func (s *DexTestSuite) SetupTest() { s.msgServer = NewMsgServerImpl(s.App.DexKeeper) } -/// Fund accounts +// NOTE: In order to simulate more realistic trade volume and avoid inadvertent failures due to ErrInvalidPositionSpread +// all of the basic user operations (fundXXXBalance, assertXXXBalance, XXXLimitsSells, etc.) treat TokenA and TokenB +// as BIG tokens with an exponent of 6. Ie. fundAliceBalance(10, 10) funds alices account with 10,000,000 small TokenA and TokenB. +// For tests requiring more accuracy methods that take Ints (ie. assertXXXAccountBalancesInt, NewWithdrawlInt) are used +// and assume that amount are being provided in terms of small tokens. + +// Example: +// s.fundAliceBalances(10, 10) +// s.assertAliceBalances(10, 10) ==> True +// s.assertAliceBalancesInt(sdkmath.NewInt(10_000_000), sdkmath.NewInt(10_000_000)) ==> true + +// Fund accounts func (s *DexTestSuite) fundAccountBalances(account sdk.AccAddress, aBalance, bBalance int64) { - aBalanceInt := sdkmath.NewInt(aBalance) - bBalanceInt := sdkmath.NewInt(bBalance) + aBalanceInt := sdkmath.NewInt(aBalance).Mul(denomMultiple) + bBalanceInt := sdkmath.NewInt(bBalance).Mul(denomMultiple) balances := sdk.NewCoins(NewACoin(aBalanceInt), NewBCoin(bBalanceInt)) FundAccount(s.App.BankKeeper, s.Ctx, account, balances) @@ -70,13 +83,7 @@ func (s *DexTestSuite) fundAccountBalancesWithDenom( addr sdk.AccAddress, amounts sdk.Coins, ) { - if err := s.App.BankKeeper.MintCoins(s.Ctx, types.ModuleName, amounts); err != nil { - panic(err) - } - - if err := s.App.BankKeeper.SendCoinsFromModuleToAccount(s.Ctx, types.ModuleName, addr, amounts); err != nil { - panic(err) - } + FundAccount(s.App.BankKeeper, s.Ctx, addr, amounts) } func (s *DexTestSuite) fundAliceBalances(a, b int64) { @@ -114,18 +121,26 @@ func (s *DexTestSuite) assertAccountBalances( aBalance int64, bBalance int64, ) { - s.assertAccountBalancesInt(account, sdkmath.NewInt(aBalance), sdkmath.NewInt(bBalance)) + s.assertAccountBalancesInt(account, sdkmath.NewInt(aBalance).Mul(denomMultiple), sdkmath.NewInt(bBalance).Mul(denomMultiple)) } -func (s *DexTestSuite) assertAccountBalanceWithDenom( +func (s *DexTestSuite) assertAccountBalanceWithDenomInt( account sdk.AccAddress, denom string, - expBalance int64, + expBalance sdkmath.Int, ) { actualBalance := s.App.BankKeeper.GetBalance(s.Ctx, account, denom).Amount - expBalanceInt := sdkmath.NewInt(expBalance) s.Assert(). - True(expBalanceInt.Equal(actualBalance), "expected %s != actual %s", expBalance, actualBalance) + True(expBalance.Equal(actualBalance), "expected %s != actual %s", expBalance, actualBalance) +} + +func (s *DexTestSuite) assertAccountBalanceWithDenom( + account sdk.AccAddress, + denom string, + expBalance int64, +) { + expBalanceInt := sdkmath.NewInt(expBalance).Mul(denomMultiple) + s.assertAccountBalanceWithDenomInt(account, denom, expBalanceInt) } func (s *DexTestSuite) assertAliceBalances(a, b int64) { @@ -164,6 +179,10 @@ func (s *DexTestSuite) assertDexBalances(a, b int64) { s.assertAccountBalances(s.App.AccountKeeper.GetModuleAddress("dex"), a, b) } +func (s *DexTestSuite) assertDexBalancesInt(a, b sdkmath.Int) { + s.assertAccountBalancesInt(s.App.AccountKeeper.GetModuleAddress("dex"), a, b) +} + func (s *DexTestSuite) assertDexBalanceWithDenom(denom string, expectedAmount int64) { s.assertAccountBalanceWithDenom( s.App.AccountKeeper.GetModuleAddress("dex"), @@ -172,8 +191,12 @@ func (s *DexTestSuite) assertDexBalanceWithDenom(denom string, expectedAmount in ) } -func (s *DexTestSuite) assertDexBalancesInt(a, b sdkmath.Int) { - s.assertAccountBalancesInt(s.App.AccountKeeper.GetModuleAddress("dex"), a, b) +func (s *DexTestSuite) assertDexBalanceWithDenomInt(denom string, expectedAmount sdkmath.Int) { + s.assertAccountBalanceWithDenomInt( + s.App.AccountKeeper.GetModuleAddress("dex"), + denom, + expectedAmount, + ) } func (s *DexTestSuite) traceBalances() { @@ -353,7 +376,7 @@ func (s *DexTestSuite) limitSellsWithMaxOut( maxAmoutOut int, ) string { tokenIn, tokenOut := GetInOutTokens(tokenIn, "TokenA", "TokenB") - maxAmountOutInt := sdkmath.NewInt(int64(maxAmoutOut)) + maxAmountOutInt := sdkmath.NewInt(int64(maxAmoutOut)).Mul(denomMultiple) msg, err := s.msgServer.PlaceLimitOrder(s.GoCtx, &types.MsgPlaceLimitOrder{ Creator: account.String(), @@ -361,7 +384,7 @@ func (s *DexTestSuite) limitSellsWithMaxOut( TokenIn: tokenIn, TokenOut: tokenOut, TickIndexInToOut: int64(tick), - AmountIn: sdkmath.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), OrderType: types.LimitOrderType_FILL_OR_KILL, MaxAmountOut: &maxAmountOutInt, }) @@ -392,7 +415,7 @@ func (s *DexTestSuite) limitSells( TokenIn: tradePairID.TakerDenom, TokenOut: tradePairID.MakerDenom, TickIndexInToOut: tickIndexTakerToMaker, - AmountIn: sdkmath.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), OrderType: orderType, }) @@ -414,7 +437,7 @@ func (s *DexTestSuite) limitSellsGoodTil( TokenIn: tradePairID.TakerDenom, TokenOut: tradePairID.MakerDenom, TickIndexInToOut: tickIndexTakerToMaker, - AmountIn: sdkmath.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), OrderType: types.LimitOrderType_GOOD_TIL_TIME, ExpirationTime: &goodTil, }) @@ -446,8 +469,8 @@ type DepositWithOptions struct { func NewDeposit(amountA, amountB, tickIndex, fee int) *Deposit { return &Deposit{ - AmountA: sdkmath.NewInt(int64(amountA)), - AmountB: sdkmath.NewInt(int64(amountB)), + AmountA: sdkmath.NewInt(int64(amountA)).Mul(denomMultiple), + AmountB: sdkmath.NewInt(int64(amountB)).Mul(denomMultiple), TickIndex: int64(tickIndex), Fee: uint64(fee), } @@ -458,8 +481,8 @@ func NewDepositWithOptions( options DepositOptions, ) *DepositWithOptions { return &DepositWithOptions{ - AmountA: sdkmath.NewInt(int64(amountA)), - AmountB: sdkmath.NewInt(int64(amountB)), + AmountA: sdkmath.NewInt(int64(amountA)).Mul(denomMultiple), + AmountB: sdkmath.NewInt(int64(amountB)).Mul(denomMultiple), TickIndex: int64(tickIndex), Fee: uint64(fee), Options: options, @@ -677,8 +700,9 @@ func NewWithdrawalInt(shares sdkmath.Int, tick int64, fee uint64) *Withdrawal { } } +// Multiples amount of shares to represent BIGtoken with exponent 6 func NewWithdrawal(shares, tick int64, fee uint64) *Withdrawal { - return NewWithdrawalInt(sdkmath.NewInt(shares), tick, fee) + return NewWithdrawalInt(sdkmath.NewInt(shares).Mul(denomMultiple), tick, fee) } func (s *DexTestSuite) aliceWithdraws(withdrawals ...*Withdrawal) { @@ -865,7 +889,7 @@ func (s *DexTestSuite) multiHopSwaps( account.String(), account.String(), routes, - sdkmath.NewInt(int64(amountIn)), + sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), exitLimitPrice, pickBest, ) @@ -887,7 +911,7 @@ func (s *DexTestSuite) aliceEstimatesMultiHopSwap( Creator: s.alice.String(), Receiver: s.alice.String(), Routes: multiHopRoutes, - AmountIn: sdkmath.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } @@ -911,7 +935,7 @@ func (s *DexTestSuite) aliceEstimatesMultiHopSwapFails( Creator: s.alice.String(), Receiver: s.alice.String(), Routes: multiHopRoutes, - AmountIn: sdkmath.NewInt(int64(amountIn)), + AmountIn: sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), ExitLimitPrice: exitLimitPrice, PickBestRoute: pickBest, } @@ -971,7 +995,7 @@ func (s *DexTestSuite) multiHopSwapFails( account.String(), account.String(), routes, - sdkmath.NewInt(int64(amountIn)), + sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), exitLimitPrice, pickBest, ) @@ -1053,7 +1077,7 @@ func (s *DexTestSuite) assertPoolShares( fee uint64, sharesExpected uint64, ) { - sharesExpectedInt := sdkmath.NewIntFromUint64(sharesExpected) + sharesExpectedInt := sdkmath.NewIntFromUint64(sharesExpected).Mul(denomMultiple) sharesOwned := s.getPoolShares("TokenA", "TokenB", tick, fee) s.Assert().Equal(sharesExpectedInt, sharesOwned) } @@ -1074,16 +1098,25 @@ func (s *DexTestSuite) getAccountShares( return s.App.BankKeeper.GetBalance(s.Ctx, account, poolDenom).Amount } -func (s *DexTestSuite) assertAccountShares( +func (s *DexTestSuite) assertAccountSharesInt( account sdk.AccAddress, tick int64, fee uint64, - sharesExpected uint64, + sharesExpected sdkmath.Int, ) { - sharesExpectedInt := sdkmath.NewIntFromUint64(sharesExpected) sharesOwned := s.getAccountShares(account, "TokenA", "TokenB", tick, fee) s.Assert(). - Equal(sharesExpectedInt, sharesOwned, "expected %s != actual %s", sharesExpected, sharesOwned) + Equal(sharesExpected, sharesOwned, "expected %s != actual %s", sharesExpected, sharesOwned) +} + +func (s *DexTestSuite) assertAccountShares( + account sdk.AccAddress, + tick int64, + fee uint64, + sharesExpected uint64, +) { + sharesExpectedInt := sdkmath.NewIntFromUint64(sharesExpected).Mul(denomMultiple) + s.assertAccountSharesInt(account, tick, fee, sharesExpectedInt) } func (s *DexTestSuite) assertAliceShares(tick int64, fee, sharesExpected uint64) { @@ -1136,7 +1169,7 @@ func (s *DexTestSuite) assertCurr1To0(curr1To0Expected int64) { } // Pool liquidity (i.e. deposited rather than LO) -func (s *DexTestSuite) assertLiquidityAtTick( +func (s *DexTestSuite) assertLiquidityAtTickInt( amountA, amountB sdkmath.Int, tickIndex int64, fee uint64, @@ -1148,7 +1181,17 @@ func (s *DexTestSuite) assertLiquidityAtTick( True(amountB.Equal(liquidityB), "liquidity B: actual %s, expected %s", liquidityB, amountB) } -func (s *DexTestSuite) assertLiquidityAtTickWithDenom( +func (s *DexTestSuite) assertLiquidityAtTick( + amountA, amountB int64, + tickIndex int64, + fee uint64, +) { + amountAInt := sdkmath.NewInt(amountA).Mul(denomMultiple) + amountBInt := sdkmath.NewInt(amountB).Mul(denomMultiple) + s.assertLiquidityAtTickInt(amountAInt, amountBInt, tickIndex, fee) +} + +func (s *DexTestSuite) assertLiquidityAtTickWithDenomInt( pairID *types.PairID, expected0, expected1 sdkmath.Int, tickIndex int64, @@ -1161,16 +1204,28 @@ func (s *DexTestSuite) assertLiquidityAtTickWithDenom( True(expected1.Equal(liquidity1), "liquidity 1: actual %s, expected %s", liquidity1, expected1) } +func (s *DexTestSuite) assertLiquidityAtTickWithDenom( + pairID *types.PairID, + expected0, + expected1, + tickIndex int64, + fee uint64, +) { + expected0Int := sdkmath.NewInt(expected0).Mul(denomMultiple) + expected1Int := sdkmath.NewInt(expected1).Mul(denomMultiple) + s.assertLiquidityAtTickWithDenomInt(pairID, expected0Int, expected1Int, tickIndex, fee) +} + func (s *DexTestSuite) assertPoolLiquidity( - amountA, amountB int, + amountA, amountB int64, tickIndex int64, fee uint64, ) { - s.assertLiquidityAtTick(sdkmath.NewInt(int64(amountA)), sdkmath.NewInt(int64(amountB)), tickIndex, fee) + s.assertLiquidityAtTick(amountA, amountB, tickIndex, fee) } func (s *DexTestSuite) assertNoLiquidityAtTick(tickIndex int64, fee uint64) { - s.assertLiquidityAtTick(sdkmath.ZeroInt(), sdkmath.ZeroInt(), tickIndex, fee) + s.assertLiquidityAtTick(0, 0, tickIndex, fee) } // Filled limit liquidity @@ -1227,7 +1282,7 @@ func (s *DexTestSuite) assertLimitFilledAtTickAtIndex( ) userRatio := math_utils.NewPrecDecFromInt(userShares).QuoInt(totalShares) filled := s.getLimitFilledLiquidityAtTickAtIndex(selling, tickIndex, trancheKey) - amt := sdkmath.NewInt(int64(amount)) + amt := sdkmath.NewInt(int64(amount)).Mul(denomMultiple) userFilled := userRatio.MulInt(filled).RoundInt() s.Assert().True(amt.Equal(userFilled)) } @@ -1291,6 +1346,7 @@ func (s *DexTestSuite) assertLimitLiquidityAtTickInt( tickIndexNormalized int64, amount sdkmath.Int, ) { + amount = amount.Mul(denomMultiple) tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tickIndexTakerToMaker := tradePairID.TickIndexTakerToMaker(tickIndexNormalized) tranches := s.App.DexKeeper.GetAllLimitOrderTrancheAtIndex( @@ -1436,19 +1492,12 @@ func (s *DexTestSuite) calcAutoswapSharesMinted( fee uint64, residual0, residual1, balanced0, balanced1, totalShares, valuePool int64, ) sdkmath.Int { - residual0Int, residual1Int, balanced0Int, balanced1Int, totalSharesInt, valuePoolInt := sdkmath.NewInt( - residual0, - ), sdkmath.NewInt( - residual1, - ), sdkmath.NewInt( - balanced0, - ), sdkmath.NewInt( - balanced1, - ), sdkmath.NewInt( - totalShares, - ), sdkmath.NewInt( - valuePool, - ) + residual0Int, residual1Int, balanced0Int, balanced1Int, totalSharesInt, valuePoolInt := sdkmath.NewInt(residual0), + sdkmath.NewInt(residual1), + sdkmath.NewInt(balanced0), + sdkmath.NewInt(balanced1), + sdkmath.NewInt(totalShares), + sdkmath.NewInt(valuePool) // residualValue = 1.0001^-f * residualAmount0 + 1.0001^{i-f} * residualAmount1 // balancedValue = balancedAmount0 + 1.0001^{i} * balancedAmount1 diff --git a/x/dex/keeper/pool_test.go b/x/dex/keeper/pool_test.go index 14d0bb05e..527b53ea8 100644 --- a/x/dex/keeper/pool_test.go +++ b/x/dex/keeper/pool_test.go @@ -31,7 +31,7 @@ func TestPoolInit(t *testing.T) { pool, err := keeper.InitPool(ctx, defaultPairID, 0, 1) require.NoError(t, err) - pool.Deposit(math.NewInt(100), math.NewInt(100), math.NewInt(0), true) + pool.Deposit(math.NewInt(1000), math.NewInt(1000), math.NewInt(0), true) keeper.SetPool(ctx, pool) dbPool, found := keeper.GetPool(ctx, defaultPairID, 0, 1) diff --git a/x/incentives/keeper/distribute_test.go b/x/incentives/keeper/distribute_test.go index d97ab4342..656ed771d 100644 --- a/x/incentives/keeper/distribute_test.go +++ b/x/incentives/keeper/distribute_test.go @@ -39,8 +39,8 @@ func (suite *IncentivesTestSuite) TestValueForShares() { deposits: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -54,8 +54,8 @@ func (suite *IncentivesTestSuite) TestValueForShares() { deposits: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -69,15 +69,15 @@ func (suite *IncentivesTestSuite) TestValueForShares() { deposits: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 2, }, @@ -91,15 +91,15 @@ func (suite *IncentivesTestSuite) TestValueForShares() { deposits: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -142,8 +142,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -154,8 +154,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -166,8 +166,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -197,8 +197,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -209,8 +209,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -221,8 +221,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -233,8 +233,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -272,8 +272,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 1, }, @@ -284,8 +284,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 1, }, @@ -296,8 +296,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 50, }, @@ -308,8 +308,8 @@ func (suite *IncentivesTestSuite) TestDistribute() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 50, }, diff --git a/x/incentives/keeper/gauge_test.go b/x/incentives/keeper/gauge_test.go index 00b4970b1..ac8ae4396 100644 --- a/x/incentives/keeper/gauge_test.go +++ b/x/incentives/keeper/gauge_test.go @@ -23,8 +23,8 @@ func (suite *IncentivesTestSuite) TestGaugeLifecycle() { depositSpecs: []depositSpec{ { addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -121,8 +121,8 @@ func (suite *IncentivesTestSuite) TestGaugeLimit() { depositSpecs: []depositSpec{ { addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -187,8 +187,8 @@ func (suite *IncentivesTestSuite) TestGaugeCreateFails() { depositSpecs: []depositSpec{ { addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 1, }, @@ -199,8 +199,8 @@ func (suite *IncentivesTestSuite) TestGaugeCreateFails() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 1, }, @@ -211,8 +211,8 @@ func (suite *IncentivesTestSuite) TestGaugeCreateFails() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 50, }, @@ -223,8 +223,8 @@ func (suite *IncentivesTestSuite) TestGaugeCreateFails() { depositSpecs: []depositSpec{ { addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 999, fee: 50, }, diff --git a/x/incentives/keeper/query_server_test.go b/x/incentives/keeper/query_server_test.go index d1545f6a1..953c67876 100644 --- a/x/incentives/keeper/query_server_test.go +++ b/x/incentives/keeper/query_server_test.go @@ -16,8 +16,8 @@ func (suite *IncentivesTestSuite) TestGetFutureRewardEstimate() { depositSpecs: []depositSpec{ { addr: addr1, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -29,8 +29,8 @@ func (suite *IncentivesTestSuite) TestGetFutureRewardEstimate() { depositSpecs: []depositSpec{ { addr: addr2, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -73,8 +73,8 @@ func (suite *IncentivesTestSuite) TestGetGauges() { depositSpecs: []depositSpec{ { addr: addr1, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -86,8 +86,8 @@ func (suite *IncentivesTestSuite) TestGetGauges() { depositSpecs: []depositSpec{ { addr: addr2, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, diff --git a/x/incentives/keeper/stake_test.go b/x/incentives/keeper/stake_test.go index d5caf9e0b..d39cda26e 100644 --- a/x/incentives/keeper/stake_test.go +++ b/x/incentives/keeper/stake_test.go @@ -16,8 +16,8 @@ func (suite *IncentivesTestSuite) TestStakeLifecycle() { depositSpecs: []depositSpec{ { addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -33,7 +33,7 @@ func (suite *IncentivesTestSuite) TestStakeLifecycle() { _, err = suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) suite.Require().NoError(err) balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) - suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 20)), balances) + suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 2000)), balances) _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) // should be deleted suite.Require().Error(err) @@ -47,15 +47,15 @@ func (suite *IncentivesTestSuite) TestMultipleStakeLifecycle() { depositSpecs: []depositSpec{ { addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, { addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 1, fee: 1, }, @@ -73,8 +73,8 @@ func (suite *IncentivesTestSuite) TestMultipleStakeLifecycle() { balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) suite.Require().Equal( sdk.NewCoins( - sdk.NewInt64Coin(suite.LPDenom0, 20), - sdk.NewInt64Coin(suite.LPDenom1, 20), + sdk.NewInt64Coin(suite.LPDenom0, 2000), + sdk.NewInt64Coin(suite.LPDenom1, 2000), ), balances) _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) // should be deleted @@ -89,8 +89,8 @@ func (suite *IncentivesTestSuite) TestStakeUnstakePartial() { depositSpecs: []depositSpec{ { addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 10), - token1: sdk.NewInt64Coin("TokenB", 10), + token0: sdk.NewInt64Coin("TokenA", 1000), + token1: sdk.NewInt64Coin("TokenB", 1000), tick: 0, fee: 1, }, @@ -102,21 +102,21 @@ func (suite *IncentivesTestSuite) TestStakeUnstakePartial() { suite.Require().NoError(err) suite.Require().NotNil(retrievedStake) - // unstake the full amount + // unstake the partial amount _, err = suite.App.IncentivesKeeper.Unstake( suite.Ctx, stake, - sdk.Coins{sdk.NewInt64Coin(suite.LPDenom0, 9)}, + sdk.Coins{sdk.NewInt64Coin(suite.LPDenom0, 900)}, ) suite.Require().NoError(err) balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) - suite.Require().ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 9)), balances) + suite.Require().ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 900)), balances) // should still be accessible retrievedStake, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) suite.Require().NoError(err) suite.Require().NotNil(retrievedStake) suite.Require(). - ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 11)), retrievedStake.Coins) + ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 1100)), retrievedStake.Coins) // fin. } From 554fda3d938ffc25dbd61b7afec0fb3219320528 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 1 Nov 2023 15:10:54 -0400 Subject: [PATCH 195/307] small fixes per PR feedback -typos, -remove extra maccperms -remove unused expected keepers -incorrect module for burning coins for ibcswap -adding minting restriction for dex --- app/app.go | 15 ++++++--------- x/dex/client/cli/query.go | 7 +------ x/dex/types/expected_keepers.go | 1 - x/dex/types/pool_denom.go | 17 +++++++++++++++++ x/ibcswap/keeper/keeper.go | 4 ++-- x/ibcswap/types/expected_keepers.go | 2 -- 6 files changed, 26 insertions(+), 20 deletions(-) diff --git a/app/app.go b/app/app.go index 203e711e5..17933df3c 100644 --- a/app/app.go +++ b/app/app.go @@ -256,8 +256,9 @@ var ( ccvconsumertypes.ConsumerToSendToProviderName: nil, tokenfactorytypes.ModuleName: {authtypes.Minter, authtypes.Burner}, crontypes.ModuleName: nil, - dextypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking}, + dextypes.ModuleName: {authtypes.Minter, authtypes.Burner}, incentivestypes.ModuleName: nil, + ibcswaptypes.ModuleName: {authtypes.Burner}, } ) @@ -356,8 +357,8 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool blocksdk.Mempool - MEVLane auctionante.MEVLane + Mempool blocksdk.Mempool + MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -636,7 +637,7 @@ func New( appCodec, keys[dextypes.StoreKey], keys[dextypes.MemStoreKey], - app.BankKeeper, + app.BankKeeper.WithMintCoinsRestriction(dextypes.NewDexDenomMintCoinsRestriction()), authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) @@ -896,9 +897,9 @@ func New( crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, - dextypes.ModuleName, incentivestypes.ModuleName, epochstypes.ModuleName, + dextypes.ModuleName, ) app.mm.SetOrderEndBlockers( @@ -1078,7 +1079,6 @@ func New( mevLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( @@ -1355,9 +1355,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(tokenfactorytypes.StoreKey).WithKeyTable(tokenfactorytypes.ParamKeyTable()) paramsKeeper.Subspace(interchainqueriesmoduletypes.StoreKey).WithKeyTable(interchainqueriesmoduletypes.ParamKeyTable()) paramsKeeper.Subspace(interchaintxstypes.StoreKey).WithKeyTable(interchaintxstypes.ParamKeyTable()) - paramsKeeper.Subspace(dextypes.ModuleName) - paramsKeeper.Subspace(epochstypes.ModuleName) - paramsKeeper.Subspace(incentivestypes.ModuleName) return paramsKeeper } diff --git a/x/dex/client/cli/query.go b/x/dex/client/cli/query.go index 40609ab72..1d27bebbe 100644 --- a/x/dex/client/cli/query.go +++ b/x/dex/client/cli/query.go @@ -2,15 +2,10 @@ package cli import ( "fmt" - // "strings" - - "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" - // "github.com/cosmos/cosmos-sdk/client/flags" - // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/x/dex/types" + "github.com/spf13/cobra" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/dex/types/expected_keepers.go b/x/dex/types/expected_keepers.go index 22d02f63c..82de2fb25 100644 --- a/x/dex/types/expected_keepers.go +++ b/x/dex/types/expected_keepers.go @@ -12,6 +12,5 @@ type BankKeeper interface { MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error IterateAccountBalances(ctx sdk.Context, addr sdk.AccAddress, cb func(sdk.Coin) bool) - SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx sdk.Context, denom string) sdk.Coin } diff --git a/x/dex/types/pool_denom.go b/x/dex/types/pool_denom.go index eb3f87104..1d3ddbbfc 100644 --- a/x/dex/types/pool_denom.go +++ b/x/dex/types/pool_denom.go @@ -4,6 +4,9 @@ import ( "fmt" "regexp" "strconv" + + sdk "github.com/cosmos/cosmos-sdk/types" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" ) const ( @@ -39,3 +42,17 @@ func ParsePoolIDFromDenom(denom string) (uint64, error) { return idInt, nil } + +// NewDexMintCoinsRestriction creates and returns a BankMintingRestrictionFn that only allows minting of +// valid pool denoms +func NewDexDenomMintCoinsRestriction() bankkeeper.MintingRestrictionFn { + return func(_ sdk.Context, coinsToMint sdk.Coins) error { + for _, coin := range coinsToMint { + err := ValidatePoolDenom(coin.Denom) + if err != nil { + return fmt.Errorf("does not have permission to mint %s", coin.Denom) + } + } + return nil + } +} diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index 5ddfc1315..3902568b5 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -140,7 +140,7 @@ func (k Keeper) RefundPacketToken( err = k.bankKeeper.SendCoinsFromAccountToModule( ctx, receiver, - transfertypes.ModuleName, + types.ModuleName, sdk.NewCoins(token), ) if err != nil { @@ -148,7 +148,7 @@ func (k Keeper) RefundPacketToken( } // burn the coins - err = k.bankKeeper.BurnCoins(ctx, transfertypes.ModuleName, sdk.NewCoins(token)) + err = k.bankKeeper.BurnCoins(ctx, types.ModuleName, sdk.NewCoins(token)) if err != nil { return err } diff --git a/x/ibcswap/types/expected_keepers.go b/x/ibcswap/types/expected_keepers.go index 4380703bf..faad6b1fd 100644 --- a/x/ibcswap/types/expected_keepers.go +++ b/x/ibcswap/types/expected_keepers.go @@ -7,8 +7,6 @@ import ( // BankKeeper defines the expected interface that the swap middleware needs in order to facilitate refunds. type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error - MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error - SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error } From ee0ef2309be19c48446b75c20f95da069131e201 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 24 Oct 2023 16:48:44 -0400 Subject: [PATCH 196/307] Audit Fix: Don't use coin.Add in deposit every sdk.Coin.Add happening in DepositCore results in multiple traversals over all coins in sharesIssued , and also involves allocation of additional data structures, thus resulting in quadratic scaling of the DepositCore runtime (because it invokes sdk.Coins Add() for each issued share). --- utils/bank.go | 22 ++++++++++++++++++++++ x/dex/keeper/core.go | 10 +++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/utils/bank.go b/utils/bank.go index b89845735..e0be3d35a 100644 --- a/utils/bank.go +++ b/utils/bank.go @@ -2,6 +2,7 @@ package utils import ( "fmt" + "sort" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/neutron-org/neutron/x/dex/types" @@ -105,3 +106,24 @@ func FilteredPaginateAccountBalances( return res, nil } + +// SanitizeCoins takes an unsorted list of coins and sorts them, removes coins with amount zero and combines duplicate coins +func SanitizeCoins(coins []sdk.Coin) sdk.Coins { + sort.SliceStable(coins, func(i, j int) bool { + return coins[i].Denom < coins[j].Denom + }) + cleanCoins := sdk.Coins{} + lastDenom := "" + for _, coin := range coins { + if coin.IsZero() { + continue + } + if lastDenom != coin.Denom { + cleanCoins = append(cleanCoins, coin) + } else { + cleanCoins[len(cleanCoins)-1].Add(coin) + } + lastDenom = coin.Denom + } + return cleanCoins +} diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index ebe804de0..1506cf6b6 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -7,9 +7,10 @@ import ( sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/utils" math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/dex/utils" + dexutils "github.com/neutron-org/neutron/x/dex/utils" ) // NOTE: Currently we are using TruncateInt in multiple places for converting Decs back into math.Ints. @@ -79,7 +80,7 @@ func (k Keeper) DepositCore( if err := k.MintShares(ctx, receiverAddr, outShares); err != nil { return nil, nil, nil, err } - sharesIssued = sharesIssued.Add(outShares) + sharesIssued = append(sharesIssued, outShares) amounts0Deposited[i] = inAmount0 amounts1Deposited[i] = inAmount1 @@ -99,6 +100,9 @@ func (k Keeper) DepositCore( )) } + // At this point shares issued is not sorted and may have duplicates + // we must sanitize to convert it to a valid set of coins + sharesIssued = utils.SanitizeCoins(sharesIssued) if totalAmountReserve0.IsPositive() { coin0 := sdk.NewCoin(pairID.Token0, totalAmountReserve0) if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, callerAddr, types.ModuleName, sdk.Coins{coin0}); err != nil { @@ -257,7 +261,7 @@ func (k Keeper) MultiHopSwapCore( if len(routeErrors) == len(routes) { // All routes have failed - allErr := utils.JoinErrors(types.ErrAllMultiHopRoutesFailed, routeErrors...) + allErr := dexutils.JoinErrors(types.ErrAllMultiHopRoutesFailed, routeErrors...) return sdk.Coin{}, allErr } From ffc8bd2e2f9869bb7e2e4fcf4070e29c0bd39fe3 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 24 Oct 2023 17:58:04 -0400 Subject: [PATCH 197/307] Mint shares at the end depositCore; not inside the loop Much better gas efficiency since we don't need to perform duplicate lookups for each share issuance Also add additional check for duplicate deposits. This should exist regardless but also required for share math to work if we aren't issuing shares within the deposit loop --- x/dex/keeper/core.go | 8 +++++--- x/dex/keeper/core_helper.go | 3 +-- x/dex/keeper/core_helper_test.go | 2 +- x/dex/keeper/msg_server_test.go | 7 +++++-- x/dex/types/errors.go | 5 +++++ x/dex/types/message_deposit.go | 8 ++++++++ x/dex/types/message_deposit_test.go | 12 ++++++++++++ 7 files changed, 37 insertions(+), 8 deletions(-) diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index 1506cf6b6..e1aa53832 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -77,9 +77,6 @@ func (k Keeper) DepositCore( return nil, nil, nil, types.ErrDepositShareUnderflow } - if err := k.MintShares(ctx, receiverAddr, outShares); err != nil { - return nil, nil, nil, err - } sharesIssued = append(sharesIssued, outShares) amounts0Deposited[i] = inAmount0 @@ -103,6 +100,7 @@ func (k Keeper) DepositCore( // At this point shares issued is not sorted and may have duplicates // we must sanitize to convert it to a valid set of coins sharesIssued = utils.SanitizeCoins(sharesIssued) + if totalAmountReserve0.IsPositive() { coin0 := sdk.NewCoin(pairID.Token0, totalAmountReserve0) if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, callerAddr, types.ModuleName, sdk.Coins{coin0}); err != nil { @@ -117,6 +115,10 @@ func (k Keeper) DepositCore( } } + if err := k.MintShares(ctx, receiverAddr, sharesIssued); err != nil { + return nil, nil, nil, err + } + return amounts0Deposited, amounts1Deposited, sharesIssued, nil } diff --git a/x/dex/keeper/core_helper.go b/x/dex/keeper/core_helper.go index e22495807..637329300 100644 --- a/x/dex/keeper/core_helper.go +++ b/x/dex/keeper/core_helper.go @@ -77,9 +77,8 @@ func (k Keeper) ValidateFee(ctx sdk.Context, fee uint64) error { // TOKENIZER UTILS // /////////////////////////////////////////////////////////////////////////////// -func (k Keeper) MintShares(ctx sdk.Context, addr sdk.AccAddress, shareCoin sdk.Coin) error { +func (k Keeper) MintShares(ctx sdk.Context, addr sdk.AccAddress, sharesCoins sdk.Coins) error { // mint share tokens - sharesCoins := sdk.Coins{shareCoin} if err := k.bankKeeper.MintCoins(ctx, types.ModuleName, sharesCoins); err != nil { return err } diff --git a/x/dex/keeper/core_helper_test.go b/x/dex/keeper/core_helper_test.go index 1e864fbd9..681cc100e 100644 --- a/x/dex/keeper/core_helper_test.go +++ b/x/dex/keeper/core_helper_test.go @@ -62,7 +62,7 @@ func (s *CoreHelpersTestSuite) setLPAtFee1Pool(tickIndex int64, amountA, amountB totalShares := pool.CalcSharesMinted(amountAInt, amountBInt, existingShares) - err = s.app.DexKeeper.MintShares(s.ctx, s.alice, totalShares) + err = s.app.DexKeeper.MintShares(s.ctx, s.alice, sdk.NewCoins(totalShares)) s.Require().NoError(err) lowerTick.ReservesMakerDenom = amountAInt diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index 387bf9b64..999c4d817 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -543,7 +543,7 @@ func (s *DexTestSuite) deposits( s.Assert().Fail("Only 1 pairID can be provided") } - _, err := s.msgServer.Deposit(s.GoCtx, &types.MsgDeposit{ + msg := &types.MsgDeposit{ Creator: account.String(), Receiver: account.String(), TokenA: tokenA, @@ -553,7 +553,10 @@ func (s *DexTestSuite) deposits( TickIndexesAToB: tickIndexes, Fees: fees, Options: options, - }) + } + err := msg.ValidateBasic() + s.Assert().NoError(err) + _, err = s.msgServer.Deposit(s.GoCtx, msg) s.Assert().Nil(err) } diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index 7f4eaa964..024a67bbe 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -164,4 +164,9 @@ var ( 1149, "Invalid Address", ) + ErrDuplicatePoolDeposit = sdkerrors.Register( + ModuleName, + 1150, + "Can only provide a single deposit amount for each tick, fee pair", + ) ) diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go index 841b0328e..83d29eaab 100644 --- a/x/dex/types/message_deposit.go +++ b/x/dex/types/message_deposit.go @@ -1,6 +1,8 @@ package types import ( + "fmt" + sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" @@ -78,7 +80,13 @@ func (msg *MsgDeposit) ValidateBasic() error { return ErrZeroDeposit } + poolsDeposited := make(map[string]bool) for i := 0; i < numDeposits; i++ { + poolStr := fmt.Sprintf("%d-%d", msg.TickIndexesAToB[i], msg.Fees[i]) + if _, ok := poolsDeposited[poolStr]; ok { + return ErrDuplicatePoolDeposit + } + poolsDeposited[poolStr] = true if msg.AmountsA[i].LT(math.ZeroInt()) || msg.AmountsB[i].LT(math.ZeroInt()) { return ErrZeroDeposit } diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go index 33c8baf35..e06bd3e5d 100644 --- a/x/dex/types/message_deposit_test.go +++ b/x/dex/types/message_deposit_test.go @@ -99,6 +99,18 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { }, err: ErrZeroDeposit, }, + { + name: "invalid duplicate deposit", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{1, 2, 1}, + TickIndexesAToB: []int64{0, 0, 0}, + AmountsA: []math.Int{math.OneInt(), math.OneInt(), math.OneInt()}, + AmountsB: []math.Int{math.OneInt(), math.OneInt(), math.OneInt()}, + }, + err: ErrDuplicatePoolDeposit, + }, { name: "invalid no deposit", msg: MsgDeposit{ From e94daf13273fccc8adaf266b59db87061ee5f70d Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 24 Oct 2023 18:07:44 -0400 Subject: [PATCH 198/307] Audit Fix: check that deposit options array is correct length --- x/dex/types/message_deposit.go | 3 ++- x/dex/types/message_deposit_test.go | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go index 841b0328e..aa097c823 100644 --- a/x/dex/types/message_deposit.go +++ b/x/dex/types/message_deposit.go @@ -71,7 +71,8 @@ func (msg *MsgDeposit) ValidateBasic() error { numDeposits := len(msg.AmountsA) if numDeposits != len(msg.Fees) || numDeposits != len(msg.TickIndexesAToB) || - numDeposits != len(msg.AmountsB) { + numDeposits != len(msg.AmountsB) || + numDeposits != len(msg.Options) { return ErrUnbalancedTxArray } if numDeposits == 0 { diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go index 33c8baf35..179e30c8d 100644 --- a/x/dex/types/message_deposit_test.go +++ b/x/dex/types/message_deposit_test.go @@ -24,6 +24,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{false}}, }, err: ErrInvalidAddress, }, @@ -36,6 +37,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{false}}, }, err: ErrInvalidAddress, }, @@ -48,6 +50,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{}, AmountsA: []math.Int{}, AmountsB: []math.Int{}, + Options: []*DepositOptions{{false}}, }, err: ErrUnbalancedTxArray, }, @@ -99,6 +102,19 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { }, err: ErrZeroDeposit, }, + { + name: "invalid duplicate deposit", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{1, 2, 1}, + TickIndexesAToB: []int64{0, 0, 0}, + AmountsA: []math.Int{math.OneInt(), math.OneInt(), math.OneInt()}, + AmountsB: []math.Int{math.OneInt(), math.OneInt(), math.OneInt()}, + Options: []*DepositOptions{{false}, {false}, {false}}, + }, + err: ErrDuplicatePoolDeposit, + }, { name: "invalid no deposit", msg: MsgDeposit{ @@ -108,6 +124,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.ZeroInt()}, AmountsB: []math.Int{math.ZeroInt()}, + Options: []*DepositOptions{{false}}, }, err: ErrZeroDeposit, }, @@ -120,6 +137,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{false}}, }, }, } From c4329fc8b36676101b49a37efced7dd4791bdd0c Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 1 Nov 2023 17:16:59 -0400 Subject: [PATCH 199/307] remove outdated READMEs from code ported from osmosis --- x/epochs/README.md | 187 ------ x/incentives/README GAUGES.md | 651 -------------------- x/incentives/README LOCKUP.md | 1054 --------------------------------- 3 files changed, 1892 deletions(-) delete mode 100644 x/epochs/README.md delete mode 100644 x/incentives/README GAUGES.md delete mode 100644 x/incentives/README LOCKUP.md diff --git a/x/epochs/README.md b/x/epochs/README.md deleted file mode 100644 index 0b95457c9..000000000 --- a/x/epochs/README.md +++ /dev/null @@ -1,187 +0,0 @@ -# Epochs - -## Abstract - -Often in the SDK, we would like to run certain code every-so often. The -purpose of `epochs` module is to allow other modules to set that they -would like to be signaled once every period. So another module can -specify it wants to execute code once a week, starting at UTC-time = x. -`epochs` creates a generalized epoch interface to other modules so that -they can easily be signalled upon such events. - -## Contents - -1. **[Concept](#concepts)** -2. **[State](#state)** -3. **[Events](#events)** -4. **[Keeper](#keepers)** -5. **[Hooks](#hooks)** -6. **[Queries](#queries)** - -## Concepts - -The epochs module defines on-chain timers, that execute at fixed time intervals. -Other SDK modules can then register logic to be executed at the timer ticks. -We refer to the period in between two timer ticks as an "epoch". - -Every timer has a unique identifier. -Every epoch will have a start time, and an end time, where `end time = start time + timer interval`. -On Neutron mainnet, we only utilize one identifier, with a time interval of `one day`. - -The timer will tick at the first block whose blocktime is greater than the timer end time, -and set the start as the prior timer end time. (Notably, its not set to the block time!) -This means that if the chain has been down for awhile, you will get one timer tick per block, -until the timer has caught up. - -## State - -The Epochs module keeps a single [`EpochInfo`](https://github.com/osmosis-labs/osmosis/blob/b4befe4f3eb97ebb477323234b910c4afafab9b7/proto/osmosis/epochs/genesis.proto#L12) per identifier. -This contains the current state of the timer with the corresponding identifier. -Its fields are modified at every timer tick. -EpochInfos are initialized as part of genesis initialization or upgrade logic, -and are only modified on begin blockers. - -## Events - -The `epochs` module emits the following events: - -### BeginBlocker - -| Type | Attribute Key | Attribute Value | -| ----------- | ------------- | --------------- | -| epoch_start | epoch_number | {epoch_number} | -| epoch_start | start_time | {start_time} | - -### EndBlocker - -| Type | Attribute Key | Attribute Value | -| --------- | ------------- | --------------- | -| epoch_end | epoch_number | {epoch_number} | - -## Keepers - -### Keeper functions - -Epochs keeper module provides utility functions to manage epochs. - -```go -// Keeper is the interface for lockup module keeper -type Keeper interface { - // GetEpochInfo returns epoch info by identifier - GetEpochInfo(ctx sdk.Context, identifier string) types.EpochInfo - // SetEpochInfo set epoch info - SetEpochInfo(ctx sdk.Context, epoch types.EpochInfo) - // DeleteEpochInfo delete epoch info - DeleteEpochInfo(ctx sdk.Context, identifier string) - // IterateEpochInfo iterate through epochs - IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) - // Get all epoch infos - AllEpochInfos(ctx sdk.Context) []types.EpochInfo -} -``` - -## Hooks - -```go - // the first block whose timestamp is after the duration is counted as the end of the epoch - AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) - // new epoch is next block of epoch end block - BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) -``` - -### How modules receive hooks - -On hook receiver function of other modules, they need to filter -`epochIdentifier` and only do executions for only specific -epochIdentifier. Filtering epochIdentifier could be in `Params` of other -modules so that they can be modified by governance. - -This is the standard dev UX of this: - -```golang -func (k MyModuleKeeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) { - params := k.GetParams(ctx) - if epochIdentifier == params.DistrEpochIdentifier { - // my logic - } -} -``` - -### Panic isolation - -If a given epoch hook panics, its state update is reverted, but we keep -proceeding through the remaining hooks. This allows more advanced epoch -logic to be used, without concern over state machine halting, or halting -subsequent modules. - -This does mean that if there is behavior you expect from a prior epoch -hook, and that epoch hook reverted, your hook may also have an issue. So -do keep in mind "what if a prior hook didn't get executed" in the safety -checks you consider for a new epoch hook. - -## Queries - -Epochs module is providing below queries to check the module's state. - -```protobuf -service Query { - // EpochInfos provide running epochInfos - rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) {} - // CurrentEpoch provide current epoch of specified identifier - rpc CurrentEpoch(QueryCurrentEpochRequest) returns (QueryCurrentEpochResponse) {} -} -``` - -### Epoch Infos - -Query the currently running epochInfos - -```sh -neutrond query epochs epoch-infos -``` - -::: details Example - -An example output: - -```sh -epochs: -- current_epoch: "183" - current_epoch_start_height: "2438409" - current_epoch_start_time: "2021-12-18T17:16:09.898160996Z" - duration: 86400s - epoch_counting_started: true - identifier: day - start_time: "2021-06-18T17:00:00Z" -- current_epoch: "26" - current_epoch_start_height: "2424854" - current_epoch_start_time: "2021-12-17T17:02:07.229632445Z" - duration: 604800s - epoch_counting_started: true - identifier: week - start_time: "2021-06-18T17:00:00Z" -``` - -::: - -### Current Epoch - -Query the current epoch by the specified identifier - -```sh -neutrond query epochs current-epoch [identifier] -``` - -::: details Example - -Query the current `day` epoch: - -```sh -neutrond query epochs current-epoch day -``` - -Which in this example outputs: - -```sh -current_epoch: "183" -``` diff --git a/x/incentives/README GAUGES.md b/x/incentives/README GAUGES.md deleted file mode 100644 index c7bbd8f52..000000000 --- a/x/incentives/README GAUGES.md +++ /dev/null @@ -1,651 +0,0 @@ -# Incentives - -## Abstract - -Incentives module provides general interface to give yield to stakers. - -The yield to be given to stakers are stored in `gauge` and it is distributed on epoch basis to the stakers who meet specific conditions. - -Anyone can create gauge and add rewards to the gauge, there is no way to take it out other than distribution. - -There are two kinds of `gauges`, perpetual and non-perpetual ones. - -- Non perpetual ones get removed from active queue after the the distribution period finish but perpetual ones persist. -- For non perpetual ones, they distribute the tokens equally per epoch during the `gauge` is in the active period. -- For perpetual ones, it distribute all the tokens at a single time and somewhere else put the tokens regularly to distribute the tokens, it's mainly used to distribute minted OSMO tokens to LP token stakers. - -## Contents - -1. **[Concept](#concepts)** -2. **[State](#state)** -3. **[Messages](#messages)** -4. **[Events](#events)** -5. **[Hooks](#hooks)** -6. **[Params](#parameters)** -7. **[Transactions](#transactions)** -8. **[Queries](#queries)** - -## Concepts - -The purpose of `incentives` module is to provide incentives to the users -who stake specific token for specific period of time. - -Staked tokens can be of any denomination, including LP tokens (gamm/pool/x), IBC tokens (tokens sent through IBC such as ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2), and native tokens (such as ATOM or LUNA). - -The incentive amount is entered by the gauge creator. Rewards for a given pool of staked up tokens are pooled into a gauge until the disbursement time. At the disbursement time, they are distributed pro-rata (proportionally) to members of the pool. - -Anyone can create a gauge and add rewards to the gauge. There is no way to withdraw gauge rewards other than distribution. Governance proposals can be raised to match the external incentive tokens with equivalent Osmo incentives (see for example: [proposal 47](https://www.mintscan.io/osmosis/proposals/47)). - -There are two kinds of gauges: **`perpetual`** and **`non-perpetual`**: - -- **`Non-perpetual`** gauges distribute their tokens equally per epoch while the gauge is in the active period. These gauges get removed from the active queue after the distribution period finishes - -- **`Perpetual gauges`** distribute all their tokens at a single time and only distribute their tokens again once the gauge is refilled (this is mainly used to distribute minted OSMO tokens to LP token stakers). Perpetual gauges persist and will re-disburse tokens when refilled (there is no "active" period) - -## State - -### Incentives management - -All the incentives that are going to be provided are staked into -`IncentivePool` until released to the appropriate recipients after a -specific period of time. - -### Gauge - -Rewards to be distributed are organized by `Gauge`. The `Gauge` -describes how users can get reward, stores the amount of coins in the -gauge, the cadence at which rewards are to be distributed, and the -number of epochs to distribute the reward over. - -```protobuf -enum StakeQueryType { - option (gogoproto.goproto_enum_prefix) = false; - - ByDuration = 0; // stakes which has more than specific duration - ByTime = 1; // stakes which are started before specific time -} - -message QueryCondition { - StakeQueryType stake_query_type = 1; // type of stake, ByStakeDuration | ByStakeTime - string denom = 2; // stake denom - google.protobuf.Duration duration = 3; // condition for stake duration, only valid if positive - google.protobuf.Timestamp timestamp = 4; // condition for stake start time, not valid if unset value -} - -message Gauge { - uint64 id = 1; // unique ID of a Gauge - QueryCondition distribute_to = 2; // distribute condition of a stake which meet one of these conditions - repeated cosmos.base.v1beta1.Coin coins = 3; // can distribute multiple coins - google.protobuf.Timestamp start_time = 4; // condition for stake start time, not valid if unset value - uint64 num_epochs_paid_over = 5; // number of epochs distribution will be done -} -``` - -### Gauge queues - -#### Upcoming queue - -To start release `Gauges` at a specific time, we schedule distribution -start time with time key queue. - -#### Active queue - -Active queue has all the `Gauges` that are distributing and after -distribution period finish, it's removed from the queue. - -#### Active by Denom queue - -To speed up the distribution process, module introduces the active -`Gauges` by denom. - -#### Finished queue - -Finished queue saves the `Gauges` that has finished distribution to keep -in track. - -#### Module state - -The state of the module is expressed by `params`, `stakeable_durations` -and `gauges`. - -```protobuf -// GenesisState defines the incentives module's genesis state. -message GenesisState { - // params defines all the parameters of the module - Params params = 1 [ (gogoproto.nullable) = false ]; - repeated Gauge gauges = 2 [ (gogoproto.nullable) = false ]; - repeated google.protobuf.Duration stakeable_durations = 3 [ - (gogoproto.nullable) = false, - (gogoproto.stdduration) = true, - (gogoproto.moretags) = "yaml:\"stakeable_durations\"" - ]; -} -``` - -## Messages - -### Create Gauge - -`MsgCreateGauge` can be submitted by any account to create a `Gauge`. - -```go -type MsgCreateGauge struct { - Owner sdk.AccAddress - DistributeTo QueryCondition - Rewards sdk.Coins - StartTime time.Time // start time to start distribution - NumEpochsPaidOver uint64 // number of epochs distribution will be done -} -``` - -**State modifications:** - -- Validate `Owner` has enough tokens for rewards -- Generate new `Gauge` record -- Save the record inside the keeper's time basis unstake queue -- Transfer the tokens from the `Owner` to incentives `ModuleAccount`. - -### Adding balance to Gauge - -`MsgAddToGauge` can be submitted by any account to add more incentives -to a `Gauge`. - -```go -type MsgAddToGauge struct { - GaugeID uint64 - Rewards sdk.Coins -} -``` - -**State modifications:** - -- Validate `Owner` has enough tokens for rewards -- Check if `Gauge` with specified `msg.GaugeID` is available -- Modify the `Gauge` record by adding `msg.Rewards` -- Transfer the tokens from the `Owner` to incentives `ModuleAccount`. - -## Events - -The incentives module emits the following events: - -### Handlers - -#### MsgCreateGauge - -| Type | Attribute Key | Attribute Value | -| ------------ | -------------------- | ------------------- | -| create_gauge | gauge_id | {gaugeID} | -| create_gauge | distribute_to | {owner} | -| create_gauge | rewards | {rewards} | -| create_gauge | start_time | {startTime} | -| create_gauge | num_epochs_paid_over | {numEpochsPaidOver} | -| message | action | create_gauge | -| message | sender | {owner} | -| transfer | recipient | {moduleAccount} | -| transfer | sender | {owner} | -| transfer | amount | {amount} | - -#### MsgAddToGauge - -| Type | Attribute Key | Attribute Value | -| ------------ | ------------- | --------------- | -| add_to_gauge | gauge_id | {gaugeID} | -| create_gauge | rewards | {rewards} | -| message | action | create_gauge | -| message | sender | {owner} | -| transfer | recipient | {moduleAccount} | -| transfer | sender | {owner} | -| transfer | amount | {amount} | - -### EndBlockers - -#### Incentives distribution - -| Type | Attribute Key | Attribute Value | -| ------------ | ------------- | --------------- | -| transfer\[\] | recipient | {receiver} | -| transfer\[\] | sender | {moduleAccount} | -| transfer\[\] | amount | {distrAmount} | - -## Hooks - -In this section we describe the "hooks" that `incentives` module provide -for other modules. - -If there's no usecase for this, we could ignore this. - -```go - AfterCreateGauge(ctx sdk.Context, gaugeId uint64) - AfterAddToGauge(ctx sdk.Context, gaugeId uint64) - AfterStartDistribution(ctx sdk.Context, gaugeId uint64) - AfterFinishDistribution(ctx sdk.Context, gaugeId uint64) - AfterDistribute(ctx sdk.Context, gaugeId uint64) -``` - -## Parameters - -The incentives module contains the following parameters: - -| Key | Type | Example | -| -------------------- | ------ | -------- | -| DistrEpochIdentifier | string | "weekly" | - -Note: DistrEpochIdentifier is a epoch identifier, and module distribute -rewards at the end of epochs. As `epochs` module is handling multiple -epochs, the identifier is required to check if distribution should be -done at `AfterEpochEnd` hook - -
    -
    - -## Transactions - -### create-gauge - -Create a gauge to distribute rewards to users - -```sh -osmosisd tx incentives create-gauge [stake_denom] [reward] [flags] -``` - -::: details Example 1 - -I want to make incentives for LP tokens of pool 3, namely gamm/pool/3 that have been staked up for at least 1 day. -I want to reward 100 AKT to this pool over 2 days (2 epochs). (50 rewarded on each day) -I want the rewards to start dispersing on 21 December 2021 (1640081402 UNIX time) - -```bash -osmosisd tx incentives create-gauge gamm/pool/3 10000ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 \ ---duration 24h --start-time 1640081402 --epochs 2 --from WALLET_NAME --chain-id osmosis-1 -``` - -::: - -::: details Example 2 - -I want to make incentives for ATOM (ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2) that have been staked up for at least 1 week (164h). -I want to reward 1000 JUNO (ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED) to ATOM holders perpetually (perpetually meaning I must add more tokens to this gauge myself every epoch). I want the reward to start dispersing immediately. - -```bash -osmosisd tx incentives create-gauge ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 \ -1000000000ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED --perpetual --duration 168h \ ---from WALLET_NAME --chain-id osmosis-1 -``` - -::: - -### add-to-gauge - -Add coins to a gauge previously created to distribute more rewards to users - -```sh -osmosisd tx incentives add-to-gauge [gauge_id] [rewards] [flags] -``` - -::: details Example - -I want to refill the gauge with 500 JUNO to a previously created gauge (gauge ID 1914) after the distribution. - -```bash -osmosisd tx incentives add-to-gauge 1914 500000000ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED \ ---from WALLET_NAME --chain-id osmosis-1 -``` - -::: - -## Queries - -In this section we describe the queries required on grpc server. - -```protobuf -// Query defines the gRPC QueryServer service. -service Query { - // returns coins that is going to be distributed - rpc GetModuleCoinsToBeDistributed(GetModuleCoinsToBeDistributedRequest) returns (GetModuleCoinsToBeDistributedResponse) {} - // returns Gauge by id - rpc GetGaugeByID(GetGaugeByIDRequest) returns (GetGaugeByIDResponse) {} - // returns gauges both upcoming and active - rpc Gauges(GetGaugesActiveUpcomingRequest) returns (GetGaugesActiveUpcomingResponse) {} - // returns active gauges - rpc ActiveGauges(ActiveGetGaugesActiveUpcomingRequest) returns (ActiveGetGaugesActiveUpcomingResponse) {} - // returns scheduled gauges - rpc UpcomingGauges(UpcomingGetGaugesActiveUpcomingRequest) returns (UpcomingGetGaugesActiveUpcomingResponse) {} - // RewardsEst returns an estimate of the rewards at a future specific time. - // The QueryServer either provides an address or a set of stakes - // for which they want to find the associated rewards. - rpc RewardsEst(RewardsEstRequest) returns (RewardsEstResponse) {} - // returns stakeable durations that are valid to give incentives - rpc StakeableDurations(QueryStakeableDurationsRequest) returns (QueryStakeableDurationsResponse) {} -} -``` - -### active-gauges - -Query active gauges - -```sh -osmosisd query incentives active-gauges [flags] -``` - -::: details Example - -```bash -osmosisd query incentives active-gauges -``` - -An example output - -```sh -- coins: [] - distribute_to: - denom: gamm/pool/99 - duration: 604800s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "297" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-07-03T12:27:09.323840990Z" -- coins: [] - distribute_to: - denom: gamm/pool/99 - duration: 1209600s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "298" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-07-03T12:27:09.323840990Z" -pagination: - next_key: BwEAAAAAAAAAHTIwMjEtMDctMDNUMTI6Mjc6MDkuMzIzODQwOTkw - total: "0" -... -``` - -::: - -### active-gauges-per-denom - -Query active gauges per denom - -```sh -osmosisd query incentives active-gauges-per-denom [denom] [flags] -``` - -::: details Example - -Query all active gauges distributing incentives to holders of gamm/pool/341 - -```bash -osmosisd query incentives active-gauges-per-denom gamm/pool/341 -``` - -An example output: - -```sh -- coins: [] - distribute_to: - denom: gamm/pool/341 - duration: 604800s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "1033" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-09-06T22:42:52.139465318Z" -- coins: [] - distribute_to: - denom: gamm/pool/341 - duration: 1209600s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "1034" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-09-06T22:42:52.139465318Z" -pagination: - next_key: BwEAAAAAAAAAHTIwMjEtMDctMDNUMTI6Mjc6MDkuMzIzODQwOTkw - total: "0" -... -``` - -::: - -### distributed-coins - -Query coins distributed so far - -```sh -osmosisd query incentives distributed-coins [flags] -``` - -::: details Example - -```bash -osmosisd query incentives distributed-coins -``` - -An example output: - -```sh -coins: -- amount: "27632051924" - denom: ibc/0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A -- amount: "3975960654" - denom: ibc/0EF15DF2F02480ADE0BB6E85D9EBB5DAEA2836D3860E9F97F9AADE4F57A31AA0 -- amount: "125999980901" - denom: ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 -- amount: "434999992789" - denom: ibc/1DC495FCEFDA068A3820F903EDBD78B942FBD204D7E93D3BA2B432E9669D1A59 -- amount: "3001296" - denom: ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 -- amount: "1493887986685" - denom: ibc/3BCCC93AD5DF58D11A6F8A05FA8BC801CBA0BA61A981F57E91B8B598BF8061CB -- amount: "372218215714" - denom: ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED -- amount: "1049999973206" - denom: ibc/4E5444C35610CC76FC94E7F7886B93121175C28262DDFDDE6F84E82BF2425452 -- amount: "11666666665116" - denom: ibc/7A08C6F11EF0F59EB841B9F788A87EC9F2361C7D9703157EC13D940DC53031FA -- amount: "13199999715662" - denom: ibc/9712DBB13B9631EDFA9BF61B55F1B2D290B2ADB67E3A4EB3A875F3B6081B3B84 -- amount: "1177777428443" - denom: ibc/D805F1DA50D31B96E4282C1D4181EDDFB1A44A598BFF5666F4B43E4B8BEA95A5 -- amount: "466666567747" - denom: ibc/EA3E1640F9B1532AB129A571203A0B9F789A7F14BB66E350DCBFA18E1A1931F0 -- amount: "79999999178" - denom: ibc/F3FF7A84A73B62921538642F9797C423D2B4C4ACB3C7FCFFCE7F12AA69909C4B -- amount: "65873607694598" - denom: uosmo -``` - -::: - -### gauge-by-id - -Query gauge by id - -```sh -osmosisd query incentives gauge-by-id [id] [flags] -``` - -::: details Example - -Query the incentive distribution for gauge ID 1: - -```sh -osmosisd query incentives gauge-by-id 1 -``` - -```bash -gauge: - coins: - - amount: "16654747773959" - denom: uosmo - distribute_to: - denom: gamm/pool/1 - duration: 86400s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: - - amount: "16589795315655" - denom: uosmo - filled_epochs: "182" - id: "1" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-06-19T04:30:19.082462364Z" -``` - -::: - -### gauges - -Query available gauges - -```sh -osmosisd query incentives gauges [flags] -``` - -::: details Example - -Query ALL gauges (by default the limit is 100, so here I will define a much larger number to output all gauges) - -```bash -osmosisd query incentives gauges --limit 2000 -``` - -An example output: - -```sh -- coins: - - amount: "1924196414964" - denom: uosmo - distribute_to: - denom: gamm/pool/348 - duration: 604800s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "8" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-10-04T13:59:02.142175968Z" -- coins: - - amount: "641398804181" - denom: uosmo - distribute_to: - denom: gamm/pool/348 - duration: 1209600s - stake_query_type: ByDuration - timestamp: "0001-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "9" - is_perpetual: true - num_epochs_paid_over: "1" - start_time: "2021-10-04T13:59:02.142175968Z" -pagination: - next_key: null - total: "0" -... -``` - -::: - -### rewards-estimation - -Query rewards estimation - -// Error: strconv.ParseUint: parsing "": invalid syntax - -### to-distribute-coins - -Query coins that is going to be distributed - -```sh -osmosisd query incentives to-distribute-coins [flags] -``` - -::: details Example - -```bash -osmosisd query incentives to-distribute-coins -``` - -An example output: - -```sh -coins: -- amount: "20000000" - denom: gamm/pool/87 -- amount: "90791948076" - denom: ibc/0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A -- amount: "10000" - denom: ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 -- amount: "1000" - denom: ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 -- amount: "10728832013315" - denom: ibc/3BCCC93AD5DF58D11A6F8A05FA8BC801CBA0BA61A981F57E91B8B598BF8061CB -- amount: "627782783496" - denom: ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED -- amount: "450000026794" - denom: ibc/4E5444C35610CC76FC94E7F7886B93121175C28262DDFDDE6F84E82BF2425452 -- amount: "38333333334884" - denom: ibc/7A08C6F11EF0F59EB841B9F788A87EC9F2361C7D9703157EC13D940DC53031FA -- amount: "46800000284338" - denom: ibc/9712DBB13B9631EDFA9BF61B55F1B2D290B2ADB67E3A4EB3A875F3B6081B3B84 -- amount: "2822222571557" - denom: ibc/D805F1DA50D31B96E4282C1D4181EDDFB1A44A598BFF5666F4B43E4B8BEA95A5 -- amount: "2533333432253" - denom: ibc/EA3E1640F9B1532AB129A571203A0B9F789A7F14BB66E350DCBFA18E1A1931F0 -- amount: "366164843847" - denom: uosmo -``` - -::: - -### upcoming-gauges - -Query scheduled gauges (gauges whose `start_time` has not yet occurred) - -```sh -osmosisd query incentives upcoming-gauges [flags] -``` - -::: details Example - -```bash -osmosisd query incentives upcoming-gauges -``` - -Using this command, we will see the gauge we created earlier, among all other upcoming gauges: - -```sh -- coins: - - amount: "10000" - denom: ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4 - distribute_to: - denom: gamm/pool/3 - duration: 86400s - stake_query_type: ByDuration - timestamp: "1970-01-01T00:00:00Z" - distributed_coins: [] - filled_epochs: "0" - id: "1914" - is_perpetual: false - num_epochs_paid_over: "2" - start_time: "2021-12-21T10:10:02Z" -... -``` - -::: diff --git a/x/incentives/README LOCKUP.md b/x/incentives/README LOCKUP.md deleted file mode 100644 index 43cd1fb39..000000000 --- a/x/incentives/README LOCKUP.md +++ /dev/null @@ -1,1054 +0,0 @@ -# Stakeup - -## Abstract - -Stakeup module provides an interface for users to stake tokens (also known as bonding) into the module to get incentives. - -After tokens have been added to a specific pool and turned into LP shares through the GAMM module, users can then stake these LP shares with a specific duration in order to begin earing rewards. - -To unstake these LP shares, users must trigger the unstake timer and wait for the unstake period that was set initially to be completed. After the unstake period is over, users can turn LP shares back into their respective share of tokens. - -This module provides interfaces for other modules to iterate the stakes efficiently and grpc query to check the status of staked coins. - -## Contents - -1. **[Concept](#concepts)** -2. **[State](#state)** -3. **[Messages](#messages)** -4. **[Events](#events)** -5. **[Keeper](#keeper)** -6. **[Hooks](#hooks)** -7. **[Queries](#queries)** -8. **[Transactions](#transactions)** -9. **[Params](#params)** -10. **[Endbstakeer](#endbstakeer)** - -## Concepts - -The purpose of `stakeup` module is to provide the functionality to stake -tokens for specific period of time for LP token stakers to get -incentives. - -To unstake these LP shares, users must trigger the unstake timer and wait for the unstake period that was set initially to be completed. After the unstake period is over, users can turn LP shares back into their respective share of tokens. - -This module provides interfaces for other modules to iterate the stakes efficiently and grpc query to check the status of staked coins. - -There are currently three incentivize stakeup periods; `1 day` (24h), `1 week` (168h), and `2 weeks` (336h). When staking tokens in the 2 week period, the liquidity provider is effectively earning rewards for a combination of the 1 day, 1 week, and 2 week bonding periods. - -The 2 week period refers to how long it takes to unbond the LP shares. The liquidity provider can keep their LP shares bonded to the 2 week stakeup period indefinitely. Unbonding is only required when the liquidity provider desires access to the underlying assets. - -If the liquidity provider begins the unbonding process for their 2 week bonded LP shares, they will earn rewards for all three bonding periods during the first day of unbonding. - -After the first day passes, they will only receive rewards for the 1 day and 1 week stakeup periods. After seven days pass, they will only receive the 1 day rewards until the 2 weeks is complete and their LP shares are unstaked. The below chart is a visual example of what was just explained. - -
    -

    - -

    - -
    -
    - -## State - -### Staked coins management - -Staked coins are all stored in module account for `stakeup` module which -is called `StakePool`. When user stake coins within `stakeup` module, it's -moved from user account to `StakePool` and a record (`PeriodStake` struct) -is created. - -Once the period is over, user can withdraw it at anytime from -`StakePool`. User can withdraw by PeriodStake ID or withdraw all -`UnstakeableCoins` at a time. - -### Period Stake - -A `PeriodStake` is a single unit of stake by period. It's a record of -staked coin at a specific time. It stores owner, duration, unstake time -and the amount of coins staked. - -``` {.go} -type PeriodStake struct { - ID uint64 - Owner sdk.AccAddress - Duration time.Duration - UnstakeTime time.Time - Coins sdk.Coins -} -``` - -All stakes are stored on the KVStore as value at -`{KeyPrefixPeriodStake}{ID}` key. - -### Period stake reference queues - -To provide time efficient queries, several reference queues are managed -by denom, unstake time, and duration. There are two big queues to store -the stake references. (`a_prefix_key`) - -1. Stake references that hasn't started with unstaking yet has prefix of - `KeyPrefixNotUnstaking`. -2. Stake references that has started unstaking already has prefix of - `KeyPrefixUnstaking`. -3. Stake references that has withdrawn, it's removed from the store. - -Regardless the stake has started unstaking or not, it stores below -references. (`b_prefix_key`) - -1. `{KeyPrefixStakeDuration}{Duration}` -2. `{KeyPrefixAccountStakeDuration}{Owner}{Duration}` -3. `{KeyPrefixDenomStakeDuration}{Denom}{Duration}` -4. `{KeyPrefixAccountDenomStakeDuration}{Owner}{Denom}{Duration}` - -If the stake is unstaking, it also stores the below references. - -1. `{KeyPrefixStakeTimestamp}{StakeEndTime}` -2. `{KeyPrefixAccountStakeTimestamp}{Owner}{StakeEndTime}` -3. `{KeyPrefixDenomStakeTimestamp}{Denom}{StakeEndTime}` -4. `{KeyPrefixAccountDenomStakeTimestamp}{Owner}{Denom}{StakeEndTime}` - -For end time keys, they are converted to sortable string by using -`sdk.FormatTimeBytes` function. - -**Note:** Additionally, for stakes that hasn't started unstaking yet, it -stores accumulation store for efficient rewards distribution mechanism. - -For reference management, `addStakeRefByKey` function is used a lot. Here -key is the prefix key to be used for iteration. It is combination of two -prefix keys.(`{a_prefix_key}{b_prefix_key}`) - -``` {.go} -// addStakeRefByKey make a stakeID iterable with the prefix `key` -func (k Keeper) addStakeRefByKey(ctx sdk.Context, key []byte, stakeID uint64) error { - store := ctx.KVStore(k.storeKey) - stakeIDBz := sdk.Uint64ToBigEndian(stakeID) - endKey := combineKeys(key, stakeIDBz) - if store.Has(endKey) { - return fmt.Errorf("stake with same ID exist: %d", stakeID) - } - store.Set(endKey, stakeIDBz) - return nil -} -``` - -## Messages - -### Stake Tokens - -`MsgStake` can be submitted by any token holder via a -`MsgStake` transaction. - -``` {.go} -type MsgStake struct { - Owner sdk.AccAddress - Duration time.Duration - Coins sdk.Coins -} -``` - -**State modifications:** - -- Validate `Owner` has enough tokens -- Generate new `PeriodStake` record -- Save the record inside the keeper's time basis unstake queue -- Transfer the tokens from the `Owner` to stakeup `ModuleAccount`. - -### Begin Unstake of all stakes - -Once time is over, users can withdraw unstaked coins from stakeup -`ModuleAccount`. - -``` {.go} -type MsgBeginUnstakingAll struct { - Owner string -} -``` - -**State modifications:** - -- Fetch all unstakeable `PeriodStake`s that has not started unstaking - yet -- Set `PeriodStake`'s unstake time -- Remove stake references from `NotUnstaking` queue -- Add stake references to `Unstaking` queue - -### Begin unstake for a stake - -Once time is over, users can withdraw unstaked coins from stakeup -`ModuleAccount`. - -``` {.go} -type MsgUnstake struct { - Owner string - ID uint64 -} -``` - -**State modifications:** - -- Check `PeriodStake` with `ID` specified by `MsgUnstake` is not - started unstaking yet -- Set `PeriodStake`'s unstake time -- Remove stake references from `NotUnstaking` queue -- Add stake references to `Unstaking` queue - -Note: If another module needs past `PeriodStake` item, it can log the -details themselves using the hooks. - -## Events - -The stakeup module emits the following events: - -### Handlers - -#### MsgStake - -| Type | Attribute Key | Attribute Value | -| --------------| ------------------| -----------------| -| stake\_tokens | period\_stake\_id | {periodStakeID} | -| stake\_tokens | owner | {owner} | -| stake\_tokens | amount | {amount} | -| stake\_tokens | duration | {duration} | -| stake\_tokens | unstake\_time | {unstakeTime} | -| message | action | stake\_tokens | -| message | sender | {owner} | -| transfer | recipient | {moduleAccount} | -| transfer | sender | {owner} | -| transfer | amount | {amount} | - -#### MsgUnstake - -| Type | Attribute Key | Attribute Value | -| ---------------| ------------------| ------------------| -| begin\_unstake | period\_stake\_id | {periodStakeID} | -| begin\_unstake | owner | {owner} | -| begin\_unstake | amount | {amount} | -| begin\_unstake | duration | {duration} | -| begin\_unstake | unstake\_time | {unstakeTime} | -| message | action | begin\_unstaking | -| message | sender | {owner} | - -#### MsgBeginUnstakingAll - -| Type | Attribute Key | Attribute Value | -| --------------------| ------------------| -----------------------| -| begin\_unstake\_all | owner | {owner} | -| begin\_unstake\_all | unstaked\_coins | {unstakedCoins} | -| begin\_unstake | period\_stake\_id | {periodStakeID} | -| begin\_unstake | owner | {owner} | -| begin\_unstake | amount | {amount} | -| begin\_unstake | duration | {duration} | -| begin\_unstake | unstake\_time | {unstakeTime} | -| message | action | begin\_unstaking\_all | -| message | sender | {owner} | - -### Endbstakeer - -#### Automatic withdraw when unstake time mature - -| Type | Attribute Key | Attribute Value | -| ----------------| ------------------| -----------------| -| message | action | unstake\_tokens | -| message | sender | {owner} | -| transfer\[\] | recipient | {owner} | -| transfer\[\] | sender | {moduleAccount} | -| transfer\[\] | amount | {unstakeAmount} | -| unstake\[\] | period\_stake\_id | {owner} | -| unstake\[\] | owner | {stakeID} | -| unstake\[\] | duration | {stakeDuration} | -| unstake\[\] | unstake\_time | {unstakeTime} | -| unstake\_tokens | owner | {owner} | -| unstake\_tokens | unstaked\_coins | {totalAmount} | - -## Keepers - -### Stakeup Keeper - -Stakeup keeper provides utility functions to store stake queues and query -stakes. - -```go -// Keeper is the interface for stakeup module keeper -type Keeper interface { - // GetModuleBalance Returns full balance of the module - GetModuleBalance(sdk.Context) sdk.Coins - // GetModuleStakedCoins Returns staked balance of the module - GetModuleStakedCoins(sdk.Context) sdk.Coins - // GetAccountUnstakeableCoins Returns whole unstakeable coins which are not withdrawn yet - GetAccountUnstakeableCoins(sdk.Context, addr sdk.AccAddress) sdk.Coins - // GetAccountUnstakingCoins Returns whole unstaking coins - GetAccountUnstakingCoins(sdk.Context, addr sdk.AccAddress) sdk.Coins - // GetAccountStakedCoins Returns a staked coins that can't be withdrawn - GetAccountStakedCoins(sdk.Context, addr sdk.AccAddress) sdk.Coins - // GetAccountStakedPastTime Returns the total stakes of an account whose unstake time is beyond timestamp - GetAccountStakedPastTime(sdk.Context, addr sdk.AccAddress, timestamp time.Time) []types.PeriodStake - // GetAccountUnstakedBeforeTime Returns the total unstakes of an account whose unstake time is before timestamp - GetAccountUnstakedBeforeTime(sdk.Context, addr sdk.AccAddress, timestamp time.Time) []types.PeriodStake - // GetAccountStakedPastTimeDenom is equal to GetAccountStakedPastTime but denom specific - GetAccountStakedPastTimeDenom(ctx sdk.Context, addr sdk.AccAddress, denom string, timestamp time.Time) []types.PeriodStake - - // GetAccountStakedLongerDuration Returns account staked with duration longer than specified - GetAccountStakedLongerDuration(sdk.Context, addr sdk.AccAddress, duration time.Duration) []types.PeriodStake - // GetAccountStakedLongerDurationDenom Returns account staked with duration longer than specified with specific denom - GetAccountStakedLongerDurationDenom(sdk.Context, addr sdk.AccAddress, denom string, duration time.Duration) []types.PeriodStake - // GetStakesPastTimeDenom Returns the stakes whose unstake time is beyond timestamp - GetStakesPastTimeDenom(ctx sdk.Context, addr sdk.AccAddress, denom string, timestamp time.Time) []types.PeriodStake - // GetStakesLongerThanDurationDenom Returns the stakes whose unstake duration is longer than duration - GetStakesLongerThanDurationDenom(ctx sdk.Context, addr sdk.AccAddress, denom string, duration time.Duration) []types.PeriodStake - // GetStakeByID Returns stake from stakeID - GetStakeByID(sdk.Context, stakeID uint64) (*types.PeriodStake, error) - // GetPeriodStakes Returns the period stakes on pool - GetPeriodStakes(sdk.Context) ([]types.PeriodStake, error) - // UnstakeAllUnstakeableCoins Unstake all unstakeable coins - UnstakeAllUnstakeableCoins(sdk.Context, account sdk.AccAddress) (sdk.Coins, error) - // StakeTokens stake tokens from an account for specified duration - StakeTokens(sdk.Context, owner sdk.AccAddress, coins sdk.Coins, duration time.Duration) (types.PeriodStake, error) - // AddTokensToStake stakes more tokens into a stakeup - AddTokensToStake(ctx sdk.Context, owner sdk.AccAddress, stakeID uint64, coins sdk.Coins) (*types.PeriodStake, error) - // Stake is a utility to stake coins into module account - Stake(sdk.Context, stake types.PeriodStake) error - // Unstake is a utility to unstake coins from module account - Unstake(sdk.Context, stake types.PeriodStake) error -``` - -## Hooks - -In this section we describe the "hooks" that `stakeup` module provide for -other modules. - -### Tokens Staked - -On stake/unstake events, stakeup module execute hooks for other modules to -make following actions. - -``` go - OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, stakeDuration time.Duration, unstakeTime time.Time) - OnTokenUnstaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, stakeDuration time.Duration, unstakeTime time.Time) -``` - -## Parameters - -The stakeup module contains the following parameters: - -| Key | Type | Example | -| ---------------------- | --------------- | ------- | - -Note: Currently no parameters are set for `stakeup` module, we will need -to move stakeable durations from incentives module to stakeup module. - -## Endbstakeer - -### Withdraw tokens after unstake time mature - -Once time is over, endbstakeer withdraw coins from matured stakes and -coins are sent from stakeup `ModuleAccount`. - -**State modifications:** - -- Fetch all unstakeable `PeriodStake`s that `Owner` has not withdrawn - yet -- Remove `PeriodStake` records from the state -- Transfer the tokens from stakeup `ModuleAccount` to the - `MsgUnstakeTokens.Owner`. - -### Remove synthetic stakes after removal time mature - -For synthetic stakes, no coin movement is made, but stakeup record and -reference queues are removed. - - -## Transactions - -### stake-tokens - -Bond tokens in a LP for a set duration - -```sh -neutrond tx stakeup stake-tokens [tokens] --duration --from --chain-id -``` - -::: details Example - -To stakeup `15.527546134174465309gamm/pool/3` tokens for a `one day` bonding period from `WALLET_NAME` on the osmosis mainnet: - -```bash -neutrond tx stakeup stake-tokens 15527546134174465309gamm/pool/3 --duration="24h" --from WALLET_NAME --chain-id osmosis-1 -``` - -To stakeup `25.527546134174465309gamm/pool/13` tokens for a `one week` bonding period from `WALLET_NAME` on the osmosis testnet: - -```bash -neutrond tx stakeup stake-tokens 25527546134174465309gamm/pool/13 --duration="168h" --from WALLET_NAME --chain-id osmo-test-4 -``` - -To stakeup `35.527546134174465309 gamm/pool/197` tokens for a `two week` bonding period from `WALLET_NAME` on the osmosis mainnet: - -```bash -neutrond tx stakeup stake-tokens 35527546134174465309gamm/pool/197 --duration="336h" --from WALLET_NAME --chain-id osmosis-1 -``` -::: - - -### begin-unstake-by-id - -Begin the unbonding process for tokens given their unique stake ID - -```sh -neutrond tx stakeup begin-unstake-by-id [id] --from --chain-id -``` - -::: details Example - -To begin the unbonding time for all bonded tokens under id `75` from `WALLET_NAME` on the osmosis mainnet: - -```bash -neutrond tx stakeup begin-unstake-by-id 75 --from WALLET_NAME --chain-id osmosis-1 -``` -::: -::: warning Note -The ID corresponds to the unique ID given to your stakeup transaction (explained more in stake-by-id section) -::: - -### begin-unstake-tokens - -Begin unbonding process for all bonded tokens in a wallet - -```sh -neutrond tx stakeup begin-unstake-tokens --from --chain-id -``` - -::: details Example - -To begin unbonding time for ALL pools and ALL bonded tokens in `WALLET_NAME` on the osmosis mainnet: - - -```bash -neutrond tx stakeup begin-unstake-tokens --from=WALLET_NAME --chain-id=osmosis-1 --yes -``` -::: - -## Queries - -In this section we describe the queries required on grpc server. - -``` protobuf -// Query defines the gRPC QueryServer service. -service Query { - // Return full balance of the module - rpc ModuleBalance(ModuleBalanceRequest) returns (ModuleBalanceResponse); - // Return staked balance of the module - rpc ModuleStakedAmount(ModuleStakedAmountRequest) returns (ModuleStakedAmountResponse); - - // Returns unstakeable coins which are not withdrawn yet - rpc AccountUnstakeableCoins(AccountUnstakeableCoinsRequest) returns (AccountUnstakeableCoinsResponse); - // Returns unstaking coins - rpc AccountUnstakingCoins(AccountUnstakingCoinsRequest) returns (AccountUnstakingCoinsResponse) {} - // Return a staked coins that can't be withdrawn - rpc AccountStakedCoins(AccountStakedCoinsRequest) returns (AccountStakedCoinsResponse); - - // Returns staked records of an account with unstake time beyond timestamp - rpc AccountStakedPastTime(AccountStakedPastTimeRequest) returns (AccountStakedPastTimeResponse); - // Returns staked records of an account with unstake time beyond timestamp excluding tokens started unstaking - rpc AccountStakedPastTimeNotUnstakingOnly(AccountStakedPastTimeNotUnstakingOnlyRequest) returns (AccountStakedPastTimeNotUnstakingOnlyResponse) {} - // Returns unstaked records with unstake time before timestamp - rpc AccountUnstakedBeforeTime(AccountUnstakedBeforeTimeRequest) returns (AccountUnstakedBeforeTimeResponse); - - // Returns stake records by address, timestamp, denom - rpc AccountStakedPastTimeDenom(AccountStakedPastTimeDenomRequest) returns (AccountStakedPastTimeDenomResponse); - // Returns stake record by id - rpc StakedByID(StakedRequest) returns (StakedResponse); - - // Returns account staked records with longer duration - rpc AccountStakedLongerDuration(AccountStakedLongerDurationRequest) returns (AccountStakedLongerDurationResponse); - // Returns account staked records with longer duration excluding tokens started unstaking - rpc AccountStakedLongerDurationNotUnstakingOnly(AccountStakedLongerDurationNotUnstakingOnlyRequest) returns (AccountStakedLongerDurationNotUnstakingOnlyResponse) {} - // Returns account's staked records for a denom with longer duration - rpc AccountStakedLongerDurationDenom(AccountStakedLongerDurationDenomRequest) returns (AccountStakedLongerDurationDenomResponse); - - // Returns account staked records with a specific duration - rpc AccountStakedDuration(AccountStakedDurationRequest) returns (AccountStakedDurationResponse); -} -``` - -### account-staked-beforetime - -Query an account's unstaked records after a specified time (UNIX) has passed - -In other words, if an account unstaked all their bonded tokens the moment the query was executed, only the stakes that would have completed their bond time requirement by the time the `TIMESTAMP` is reached will be returned. - -::: details Example - -In this example, the current UNIX time is `1639776682`, 2 days from now is approx `1639971082`, and 15 days from now is approx `1641094282`. - -An account's `ADDRESS` is staked in both the `1 day` and `1 week` gamm/pool/3. To query the `ADDRESS` with a timestamp 2 days from now `1639971082`: - -```bash -neutrond query stakeup account-staked-beforetime ADDRESS 1639971082 -``` - -In this example will output the `1 day` stake but not the `1 week` stake: - -```bash -stakes: -- ID: "571839" - coins: - - amount: "15527546134174465309" - denom: gamm/pool/3 - duration: 24h - end_time: "2021-12-18T23:32:58.900715388Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -If querying the same `ADDRESS` with a timestamp 15 days from now `1641094282`: - -```bash -neutrond query stakeup account-staked-beforetime ADDRESS 1641094282 -``` - -In this example will output both the `1 day` and `1 week` stake: - -```bash -stakes: -- ID: "572027" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -- ID: "571839" - coins: - - amount: "15527546134174465309" - denom: gamm/pool/3 - duration: 24h - end_time: "2021-12-18T23:32:58.900715388Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` -::: - - -### account-staked-coins - -Query an account's staked (bonded) LP tokens - -```sh -neutrond query stakeup account-staked-coins [address] -``` - -:::: details Example - -```bash -neutrond query stakeup account-staked-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -An example output: - -```bash -coins: -- amount: "413553955105681228583" - denom: gamm/pool/1 -- amount: "32155370994266157441309" - denom: gamm/pool/10 -- amount: "220957857520769912023" - denom: gamm/pool/3 -- amount: "31648237936933949577" - denom: gamm/pool/42 -- amount: "14162624050980051053569" - denom: gamm/pool/5 -- amount: "1023186951315714985896914" - denom: gamm/pool/9 -``` -::: warning Note -All GAMM amounts listed are 10^18. Move the decimal place to the left 18 places to get the GAMM amount listed in the GUI. - -You may also specify a --height flag to see bonded LP tokens at a specified height (note: if running a pruned node, this may result in an error) -::: -:::: - -### account-staked-longer-duration - -Query an account's staked records that are greater than or equal to a specified stake duration - -```sh -neutrond query stakeup account-staked-longer-duration [address] [duration] -``` - -::: details Example - -Here is an example of querying an `ADDRESS` for all `1 day` or greater bonding periods: - -```bash -neutrond query stakeup account-staked-longer-duration osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h -``` - -An example output: - -```bash -stakes: -- ID: "572027" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -- ID: "571839" - coins: - - amount: "15527546134174465309" - denom: gamm/pool/3 - duration: 24h - end_time: "2021-12-18T23:32:58.900715388Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` -::: - - -### account-staked-longer-duration-denom - -Query an account's staked records for a denom that is staked equal to or greater than the specified duration AND match a specified denom - -```sh -neutrond query stakeup account-staked-longer-duration-denom [address] [duration] [denom] -``` - -::: details Example - -Here is an example of an `ADDRESS` that is staked in both the `1 day` and `1 week` for both the gamm/pool/3 and gamm/pool/1, then queries the `ADDRESS` for all bonding periods equal to or greater than `1 day` for just the gamm/pool/3: - -```bash -neutrond query stakeup account-staked-longer-duration-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h gamm/pool/3 -``` - -An example output: - -```bash -stakes: -- ID: "571839" - coins: - - amount: "15527546134174465309" - denom: gamm/pool/3 - duration: 24h - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -- ID: "572027" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -As shown, the gamm/pool/3 is returned but not the gamm/pool/1 due to the denom filter. -::: - - -### account-staked-longer-duration-not-unstaking - -Query an account's staked records for a denom that is staked equal to or greater than the specified duration AND is not in the process of being unstaked - -```sh -neutrond query stakeup account-staked-longer-duration-not-unstaking [address] [duration] -``` - -::: details Example - -Here is an example of an `ADDRESS` that is staked in both the `1 day` and `1 week` gamm/pool/3, begins unstaking process for the `1 day` bond, and queries the `ADDRESS` for all bonding periods equal to or greater than `1 day` that are not unbonding: - -```bash -neutrond query stakeup account-staked-longer-duration-not-unstaking osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 24h -``` - -An example output: - -```bash -stakes: -- ID: "571839" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -The `1 day` bond does not show since it is in the process of unbonding. -::: - - -### account-staked-pasttime - -Query the staked records of an account with the unstake time beyond timestamp (UNIX) - -```bash -neutrond query stakeup account-staked-pasttime [address] [timestamp] -``` - -::: details Example - -Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) - -```bash -neutrond query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 -``` - -The example output: - -```bash -stakes: -- ID: "572027" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -Note that the `1 day` stake ID did not display because, if the unbonding time began counting down from the time the command was executed, the bonding period would be complete before the two day window given by the UNIX timestamp input. -::: - - -### account-staked-pasttime-denom - -Query the staked records of an account with the unstake time beyond timestamp (unix) and filter by a specific denom - -```bash -neutrond query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 [timestamp] [denom] -``` - -::: details Example - -Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3 and `1 day` and `1 week` gamm/pool/1. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) and filters for gamm/pool/3 - -```bash -neutrond query stakeup account-staked-pasttime-denom osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 gamm/pool/3 -``` - -The example output: - -```bash -stakes: -- ID: "572027" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -Note that the `1 day` stake ID did not display because, if the unbonding time began counting down from the time the command was executed, the bonding period would be complete before the two day window given by the UNIX timestamp input. Additionally, neither of the `1 day` or `1 week` stake IDs for gamm/pool/1 showed due to the denom filter. -::: - - -### account-staked-pasttime-not-unstaking - -Query the staked records of an account with the unstake time beyond timestamp (unix) AND is not in the process of unstaking - -```sh -neutrond query stakeup account-staked-pasttime [address] [timestamp] -``` - -::: details Example - -Here is an example of an account that is staked in both the `1 day` and `1 week` gamm/pool/3. In this example, the UNIX time is currently `1639776682` and queries an `ADDRESS` for UNIX time two days later from the current time (which in this example would be `1639971082`) AND is not unstaking: - -```bash -neutrond query stakeup account-staked-pasttime osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 1639971082 -``` - -The example output: - -```bash -stakes: -- ID: "572027" - coins: - - amount: "16120691802759484268" - denom: gamm/pool/3 - duration: 604800.000006193s - end_time: "0001-01-01T00:00:00Z" - owner: osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -Note that the `1 day` stake ID did not display because, if the unbonding time began counting down from the time the command was executed, the bonding period would be complete before the two day window given by the UNIX timestamp input. Additionally, if ID 572027 were to begin the unstaking process, the query would have returned blank. -::: - - -### account-unstakeable-coins - -Query an address's LP shares that have completed the unstaking period and are ready to be withdrawn - -```bash -neutrond query stakeup account-unstakeable-coins ADDRESS -``` - - - -### account-unstaking-coins - -Query an address's LP shares that are currently unstaking - -```sh -neutrond query stakeup account-unstaking-coins [address] -``` - -::: details Example - -```bash -neutrond query stakeup account-unstaking-coins osmo1xqhlshlhs5g0acqgrkafdemvf5kz4pp4c2x259 -``` - -Example output: - -```bash -coins: -- amount: "15527546134174465309" - denom: gamm/pool/3 -``` -::: - - -### stake-by-id - -Query a stake record by its ID - -```sh -neutrond query stakeup stake-by-id [id] -``` - -::: details Example - -Every time a user bonds tokens to an LP, a unique stake ID is created for that transaction. - -Here is an example viewing the stake record for ID 9: - -```bash -neutrond query stakeup stake-by-id 9 -``` - -And its output: - -```bash -stake: - ID: "9" - coins: - - amount: "2449472670508255020346507" - denom: gamm/pool/2 - duration: 336h - end_time: "0001-01-01T00:00:00Z" - owner: osmo16r39ghhwqjcwxa8q3yswlz8jhzldygy66vlm82 -``` - -In summary, this shows wallet `osmo16r39ghhwqjcwxa8q3yswlz8jhzldygy66vlm82` bonded `2449472.670 gamm/pool/2` LP shares for a `2 week` staking period. -::: - - -### module-balance - -Query the balance of all LP shares (bonded and unbonded) - -```sh -neutrond query stakeup module-balance -``` - -::: details Example - -```bash -neutrond query stakeup module-balance -``` - -An example output: - -```bash -coins: -- amount: "118851922644152734549498647" - denom: gamm/pool/1 -- amount: "2165392672114512349039263626" - denom: gamm/pool/10 -- amount: "9346769826591025900804" - denom: gamm/pool/13 -- amount: "229347389639275840044722315" - denom: gamm/pool/15 -- amount: "81217698776012800247869" - denom: gamm/pool/183 -- amount: "284253336860259874753775" - denom: gamm/pool/197 -- amount: "664300804648059580124426710" - denom: gamm/pool/2 -- amount: "5087102794776326441530430" - denom: gamm/pool/22 -- amount: "178900843925960029029567880" - denom: gamm/pool/3 -- amount: "64845148811263846652326124" - denom: gamm/pool/4 -- amount: "177831279847453210600513" - denom: gamm/pool/42 -- amount: "18685913727862493301261661338" - denom: gamm/pool/5 -- amount: "23579028640963777558149250419" - denom: gamm/pool/6 -- amount: "1273329284855460149381904976" - denom: gamm/pool/7 -- amount: "625252103927082207683116933" - denom: gamm/pool/8 -- amount: "1148475247281090606949382402" - denom: gamm/pool/9 -``` -::: - - -### module-staked-amount - -Query the balance of all bonded LP shares - -```sh -neutrond query stakeup module-staked-amount -``` - -::: details Example - -```bash -neutrond query stakeup module-staked-amount -``` - -An example output: - -```bash - - "coins": - { - "denom": "gamm/pool/1", - "amount": "247321084020868094262821308" - }, - { - "denom": "gamm/pool/10", - "amount": "2866946821820635047398966697" - }, - { - "denom": "gamm/pool/13", - "amount": "9366580741745176812984" - }, - { - "denom": "gamm/pool/15", - "amount": "193294911294343602187680438" - }, - { - "denom": "gamm/pool/183", - "amount": "196722012808526595790871" - }, - { - "denom": "gamm/pool/197", - "amount": "1157025085661167198918241" - }, - { - "denom": "gamm/pool/2", - "amount": "633051132033131378888258047" - }, - { - "denom": "gamm/pool/22", - "amount": "3622601406125950733194696" - }, -... - -``` - -NOTE: This command seems to only work on gRPC and on CLI returns an EOF error. -::: - - - -### output-all-stakes - -Output all stakes into a json file - -```sh -neutrond query stakeup output-all-stakes [max stake ID] -``` - -:::: details Example - -This example command outputs stakes 1-1000 and saves to a json file: - -```bash -neutrond query stakeup output-all-stakes 1000 -``` -::: warning Note -If a stakeup has been completed, the stakeup status will show as "0" (or successful) and no further information will be available. To get further information on a completed stake, run the stake-by-id query. -::: -:::: - - -### total-staked-of-denom - -Query staked amount for a specific denom in the duration provided - -```sh -neutrond query stakeup total-staked-of-denom [denom] --min-duration -``` - -:::: details Example - -This example command outputs the amount of `gamm/pool/2` LP shares that staked in the `2 week` bonding period: - -```bash -neutrond query stakeup total-staked-of-denom gamm/pool/2 --min-duration "336h" -``` - -Which, at the time of this writing outputs `14106985399822075248947045` which is equivalent to `14106985.3998 gamm/pool/2` - -NOTE: As of this writing, there is a bug that defaults the min duration to days instead of seconds. Ensure you specify the time in seconds to get the correct response. -::: - -## Commands - -```sh -# 1 day 100stake stake-tokens command -neutrond tx stakeup stake-tokens 200stake --duration="86400s" --from=validator --chain-id=testing --keyring-backend=test --yes - -# 5s 100stake stake-tokens command -neutrond tx stakeup stake-tokens 100stake --duration="5s" --from=validator --chain-id=testing --keyring-backend=test --yes - -# begin unstake tokens, NOTE: add more gas when unstaking more than two stakes in a same command -neutrond tx stakeup begin-unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes - -# unstake tokens, NOTE: add more gas when unstaking more than two stakes in a same command -neutrond tx stakeup unstake-tokens --from=validator --gas=500000 --chain-id=testing --keyring-backend=test --yes - -# unstake specific period stake -neutrond tx stakeup unstake-by-id 1 --from=validator --chain-id=testing --keyring-backend=test --yes - -# account balance -neutrond query bank balances $(neutrond keys show -a validator --keyring-backend=test) - -# query module balance -neutrond query stakeup module-balance - -# query staked amount -neutrond query stakeup module-staked-amount - -# query stake by id -neutrond query stakeup stake-by-id 1 - -# query account unstakeable coins -neutrond query stakeup account-unstakeable-coins $(neutrond keys show -a validator --keyring-backend=test) - -# query account stakes by denom past time -neutrond query stakeup account-staked-pasttime-denom $(neutrond keys show -a validator --keyring-backend=test) 1611879610 stake - -# query account stakes past time -neutrond query stakeup account-staked-pasttime $(neutrond keys show -a validator --keyring-backend=test) 1611879610 - -# query account stakes by denom with longer duration -neutrond query stakeup account-staked-longer-duration-denom $(neutrond keys show -a validator --keyring-backend=test) 5.1s stake - -# query account stakes with longer duration -neutrond query stakeup account-staked-longer-duration $(neutrond keys show -a validator --keyring-backend=test) 5.1s - -# query account staked coins -neutrond query stakeup account-staked-coins $(neutrond keys show -a validator --keyring-backend=test) - -# query account stakes before time -neutrond query stakeup account-staked-beforetime $(neutrond keys show -a validator --keyring-backend=test) 1611879610 -``` From e071617be687bbf53033dd80e3448f4ca0a74ec2 Mon Sep 17 00:00:00 2001 From: Lockwarr Date: Thu, 2 Nov 2023 09:00:36 +0200 Subject: [PATCH 200/307] fix: typo --- x/interchaintxs/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index ac0cc37ce..be503d56f 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -79,7 +79,7 @@ func (k Keeper) ChargeFee(ctx sdk.Context, payer sdk.AccAddress, fee sdk.Coins) feeCollector := k.getFeeCollectorAddr(ctx) feeCollectorAddress, err := sdk.AccAddressFromBech32(feeCollector) if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert fee collecor, bech32 to AccAddress: %s: %s", feeCollector, err.Error()) + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to convert fee collector, bech32 to AccAddress: %s: %s", feeCollector, err.Error()) } err = k.bankKeeper.SendCoins(ctx, payer, feeCollectorAddress, fee) From 2c92d0b73cda4baad2fa1f57ef87133b24522c79 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 2 Nov 2023 11:19:48 +0400 Subject: [PATCH 201/307] rename method and prefix, add comment --- app/upgrades/nextupgrade/upgrades.go | 2 +- app/upgrades/nextupgrade/upgrades_test.go | 2 +- x/interchaintxs/keeper/keeper.go | 6 +++--- x/interchaintxs/keeper/msg_server.go | 2 +- x/interchaintxs/types/keys.go | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 34f26a21d..58e73253d 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -246,7 +246,7 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, if bzWasm == nil { return fmt.Errorf("last code ID not found during the upgrade") } - store.Set(interchaintxstypes.FeeRegisterICACodeID, bzWasm) + store.Set(interchaintxstypes.ICARegistrationFeeFirstCodeID, bzWasm) return nil } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 80aaf32b3..999ecf24a 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -184,7 +184,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { } app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) - lastCodeID := app.InterchainTxsKeeper.GetFeeRegisterICACodeID(ctx) + lastCodeID := app.InterchainTxsKeeper.GetICARegistrationFeeFirstCodeID(ctx) // ensure that wasm module stores next code id suite.Require().Equal(lastCodeID, codeIDBefore+1) diff --git a/x/interchaintxs/keeper/keeper.go b/x/interchaintxs/keeper/keeper.go index 74fd546ea..2899cb968 100644 --- a/x/interchaintxs/keeper/keeper.go +++ b/x/interchaintxs/keeper/keeper.go @@ -93,10 +93,10 @@ func (k Keeper) GetAuthority() string { return k.authority } -func (k Keeper) GetFeeRegisterICACodeID(ctx sdk.Context) (codeID uint64) { +// GetICARegistrationFeeFirstCodeID returns code id, starting from which we charge fee for ICA registration +func (k Keeper) GetICARegistrationFeeFirstCodeID(ctx sdk.Context) (codeID uint64) { store := ctx.KVStore(k.storeKey) - bytes := store.Get(types.FeeRegisterICACodeID) - + bytes := store.Get(types.ICARegistrationFeeFirstCodeID) if bytes == nil { k.Logger(ctx).Debug("Fee register ICA code id key don't exists, GetLastCodeID returns 0") return 0 diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index 07baf510c..ace0f34f5 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -48,7 +48,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. } // if contract is stored after [last] upgrade, we're not going charge fees for register ICA - if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetFeeRegisterICACodeID(ctx) { + if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetICARegistrationFeeFirstCodeID(ctx) { if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) } diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index 8b4d7a499..7fd3d09c1 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -21,8 +21,8 @@ const ( // parameters key prefixParamsKey = iota + 1 // prefix of code id, starting from which we charge fee for ICA registration - prefixFeeRegisterICACodeID = iota + 2 + prefixICARegistrationFeeFirstCodeID = iota + 2 ) var ParamsKey = []byte{prefixParamsKey} -var FeeRegisterICACodeID = []byte{prefixFeeRegisterICACodeID} +var ICARegistrationFeeFirstCodeID = []byte{prefixICARegistrationFeeFirstCodeID} From 6c78b6ee058324aab3e28e190e09d1d05adaf672 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 2 Nov 2023 12:07:46 +0400 Subject: [PATCH 202/307] audit report fixes --- app/upgrades/nextupgrade/constants.go | 4 +- app/upgrades/nextupgrade/upgrades.go | 8 +- go.mod | 2 +- go.sum | 4 +- wasmbinding/message_plugin.go | 115 +++++++++++++------------ x/contractmanager/module.go | 2 +- x/contractmanager/types/constants.go | 3 + x/cron/module.go | 2 +- x/cron/types/constants.go | 3 + x/feeburner/module.go | 2 +- x/feeburner/types/constants.go | 3 + x/feerefunder/module.go | 2 +- x/feerefunder/types/constants.go | 3 + x/interchainqueries/module.go | 2 +- x/interchainqueries/types/constants.go | 3 + x/interchaintxs/module.go | 2 +- x/interchaintxs/types/constants.go | 3 + x/tokenfactory/module.go | 2 +- x/tokenfactory/types/constants.go | 2 + x/transfer/ibc_handlers.go | 2 +- x/transfer/keeper/keeper.go | 1 - 21 files changed, 99 insertions(+), 71 deletions(-) create mode 100644 x/contractmanager/types/constants.go create mode 100644 x/cron/types/constants.go create mode 100644 x/feeburner/types/constants.go create mode 100644 x/feerefunder/types/constants.go create mode 100644 x/interchainqueries/types/constants.go create mode 100644 x/interchaintxs/types/constants.go diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index e082115a3..c6e0a35c9 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -10,7 +10,9 @@ import ( const ( // UpgradeName defines the on-chain upgrade name. - UpgradeName = "Next-Upgrade" + UpgradeName = "Next-Upgrade" + AtomDenom = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" + AxelarUsdcDenom = "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349" ) var Upgrade = upgrades.Upgrade{ diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 92a94d7d6..e013d261b 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,9 +2,11 @@ package nextupgrade import ( "fmt" + "github.com/cosmos/cosmos-sdk/baseapp" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/neutron-org/neutron/app/params" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" @@ -248,9 +250,9 @@ func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error // As of June 22nd, 2023 this is // 0.9untrn,0.026ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,0.25ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349 requiredGlobalFees := sdk.DecCoins{ - sdk.NewDecCoinFromDec("untrn", sdk.MustNewDecFromStr("0.9")), - sdk.NewDecCoinFromDec("ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", sdk.MustNewDecFromStr("0.026")), - sdk.NewDecCoinFromDec("ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", sdk.MustNewDecFromStr("0.25")), + sdk.NewDecCoinFromDec(params.DefaultDenom, sdk.MustNewDecFromStr("0.9")), + sdk.NewDecCoinFromDec(AtomDenom, sdk.MustNewDecFromStr("0.026")), + sdk.NewDecCoinFromDec(AxelarUsdcDenom, sdk.MustNewDecFromStr("0.25")), } requiredGlobalFees = requiredGlobalFees.Sort() diff --git a/go.mod b/go.mod index a0f9c16f7..8cee0a7a4 100644 --- a/go.mod +++ b/go.mod @@ -191,7 +191,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20231102080303-b3efc44ef5d9 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index 1d2952b0f..6c148f995 100644 --- a/go.sum +++ b/go.sum @@ -934,8 +934,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLWoN4nCIcFdxrz51Xu2Y8aqpcScy3eva3S5hM60= -github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= +github.com/neutron-org/admin-module v0.0.0-20231102080303-b3efc44ef5d9 h1:46M72zk3g8Uff2i3Fl0Nl/vE/QVL2Fv+jfwqCYI2Ki0= +github.com/neutron-org/admin-module v0.0.0-20231102080303-b3efc44ef5d9/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5 h1:BUBqUPI5I8rF9ql3RfSCo9XkpZBJPhTZSIWexyxutA4= github.com/neutron-org/cosmos-sdk v0.47.5/go.mod h1:3uZbdGpMOT5usEich5wHANLxz0VbKE9lL1PUq+rzkS4= github.com/neutron-org/wasmd v0.40.0-rc.0.0.20230808084410-6083b888424e h1:uVJCBWf1vcCYY0pzOA2SCPIZT8WsR8fsOxs57mnJbM4= diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index a130dae31..a5ebcc27f 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -83,64 +83,69 @@ type CustomMessenger struct { var _ wasmkeeper.Messenger = (*CustomMessenger)(nil) func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmvmtypes.CosmosMsg) ([]sdk.Event, [][]byte, error) { - if msg.Custom != nil { - var contractMsg bindings.NeutronMsg - if err := json.Unmarshal(msg.Custom, &contractMsg); err != nil { - ctx.Logger().Debug("json.Unmarshal: failed to decode incoming custom cosmos message", - "from_address", contractAddr.String(), - "message", string(msg.Custom), - "error", err, - ) - return nil, nil, errors.Wrap(err, "failed to decode incoming custom cosmos message") - } + // Return early if msg.Custom is nil + if msg.Custom == nil { + return m.Wrapped.DispatchMsg(ctx, contractAddr, contractIBCPortID, msg) + } - if contractMsg.SubmitTx != nil { - return m.submitTx(ctx, contractAddr, contractMsg.SubmitTx) - } - if contractMsg.RegisterInterchainAccount != nil { - return m.registerInterchainAccount(ctx, contractAddr, contractMsg.RegisterInterchainAccount) - } - if contractMsg.RegisterInterchainQuery != nil { - return m.registerInterchainQuery(ctx, contractAddr, contractMsg.RegisterInterchainQuery) - } - if contractMsg.UpdateInterchainQuery != nil { - return m.updateInterchainQuery(ctx, contractAddr, contractMsg.UpdateInterchainQuery) - } - if contractMsg.RemoveInterchainQuery != nil { - return m.removeInterchainQuery(ctx, contractAddr, contractMsg.RemoveInterchainQuery) - } - if contractMsg.IBCTransfer != nil { - return m.ibcTransfer(ctx, contractAddr, *contractMsg.IBCTransfer) - } - if contractMsg.SubmitAdminProposal != nil { - return m.submitAdminProposal(ctx, contractAddr, &contractMsg.SubmitAdminProposal.AdminProposal) - } - if contractMsg.CreateDenom != nil { - return m.createDenom(ctx, contractAddr, contractMsg.CreateDenom) - } - if contractMsg.MintTokens != nil { - return m.mintTokens(ctx, contractAddr, contractMsg.MintTokens) - } - if contractMsg.SetBeforeSendHook != nil { - return m.setBeforeSendHook(ctx, contractAddr, contractMsg.SetBeforeSendHook) - } - if contractMsg.ChangeAdmin != nil { - return m.changeAdmin(ctx, contractAddr, contractMsg.ChangeAdmin) - } - if contractMsg.BurnTokens != nil { - return m.burnTokens(ctx, contractAddr, contractMsg.BurnTokens) - } - if contractMsg.AddSchedule != nil { - return m.addSchedule(ctx, contractAddr, contractMsg.AddSchedule) - } - if contractMsg.RemoveSchedule != nil { - return m.removeSchedule(ctx, contractAddr, contractMsg.RemoveSchedule) - } - if contractMsg.ResubmitFailure != nil { - return m.resubmitFailure(ctx, contractAddr, contractMsg.ResubmitFailure) - } + var contractMsg bindings.NeutronMsg + if err := json.Unmarshal(msg.Custom, &contractMsg); err != nil { + ctx.Logger().Debug("json.Unmarshal: failed to decode incoming custom cosmos message", + "from_address", contractAddr.String(), + "message", string(msg.Custom), + "error", err, + ) + return nil, nil, errors.Wrap(err, "failed to decode incoming custom cosmos message") + } + + // Dispatch the message based on its type by checking each possible field + if contractMsg.SubmitTx != nil { + return m.submitTx(ctx, contractAddr, contractMsg.SubmitTx) + } + if contractMsg.RegisterInterchainAccount != nil { + return m.registerInterchainAccount(ctx, contractAddr, contractMsg.RegisterInterchainAccount) + } + if contractMsg.RegisterInterchainQuery != nil { + return m.registerInterchainQuery(ctx, contractAddr, contractMsg.RegisterInterchainQuery) + } + if contractMsg.UpdateInterchainQuery != nil { + return m.updateInterchainQuery(ctx, contractAddr, contractMsg.UpdateInterchainQuery) + } + if contractMsg.RemoveInterchainQuery != nil { + return m.removeInterchainQuery(ctx, contractAddr, contractMsg.RemoveInterchainQuery) + } + if contractMsg.IBCTransfer != nil { + return m.ibcTransfer(ctx, contractAddr, *contractMsg.IBCTransfer) + } + if contractMsg.SubmitAdminProposal != nil { + return m.submitAdminProposal(ctx, contractAddr, &contractMsg.SubmitAdminProposal.AdminProposal) + } + if contractMsg.CreateDenom != nil { + return m.createDenom(ctx, contractAddr, contractMsg.CreateDenom) + } + if contractMsg.MintTokens != nil { + return m.mintTokens(ctx, contractAddr, contractMsg.MintTokens) + } + if contractMsg.SetBeforeSendHook != nil { + return m.setBeforeSendHook(ctx, contractAddr, contractMsg.SetBeforeSendHook) + } + if contractMsg.ChangeAdmin != nil { + return m.changeAdmin(ctx, contractAddr, contractMsg.ChangeAdmin) + } + if contractMsg.BurnTokens != nil { + return m.burnTokens(ctx, contractAddr, contractMsg.BurnTokens) + } + if contractMsg.AddSchedule != nil { + return m.addSchedule(ctx, contractAddr, contractMsg.AddSchedule) + } + if contractMsg.RemoveSchedule != nil { + return m.removeSchedule(ctx, contractAddr, contractMsg.RemoveSchedule) + } + if contractMsg.ResubmitFailure != nil { + return m.resubmitFailure(ctx, contractAddr, contractMsg.ResubmitFailure) } + // If none of the conditions are met, forward the message to the wrapped handler return m.Wrapped.DispatchMsg(ctx, contractAddr, contractIBCPortID, msg) } diff --git a/x/contractmanager/module.go b/x/contractmanager/module.go index e12420b7b..a5c4f75fa 100644 --- a/x/contractmanager/module.go +++ b/x/contractmanager/module.go @@ -157,7 +157,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 2 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/contractmanager/types/constants.go b/x/contractmanager/types/constants.go new file mode 100644 index 000000000..4c93fbeff --- /dev/null +++ b/x/contractmanager/types/constants.go @@ -0,0 +1,3 @@ +package types + +const ConsensusVersion = 2 diff --git a/x/cron/module.go b/x/cron/module.go index a2ba784fd..3aa173d56 100644 --- a/x/cron/module.go +++ b/x/cron/module.go @@ -153,7 +153,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/cron/types/constants.go b/x/cron/types/constants.go new file mode 100644 index 000000000..6bad94d03 --- /dev/null +++ b/x/cron/types/constants.go @@ -0,0 +1,3 @@ +package types + +const ConsensusVersion = 1 diff --git a/x/feeburner/module.go b/x/feeburner/module.go index 4926f74ca..19b98ab10 100644 --- a/x/feeburner/module.go +++ b/x/feeburner/module.go @@ -150,7 +150,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/feeburner/types/constants.go b/x/feeburner/types/constants.go new file mode 100644 index 000000000..6bad94d03 --- /dev/null +++ b/x/feeburner/types/constants.go @@ -0,0 +1,3 @@ +package types + +const ConsensusVersion = 1 diff --git a/x/feerefunder/module.go b/x/feerefunder/module.go index ca33f35b6..7f7d22730 100644 --- a/x/feerefunder/module.go +++ b/x/feerefunder/module.go @@ -158,7 +158,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/feerefunder/types/constants.go b/x/feerefunder/types/constants.go new file mode 100644 index 000000000..6bad94d03 --- /dev/null +++ b/x/feerefunder/types/constants.go @@ -0,0 +1,3 @@ +package types + +const ConsensusVersion = 1 diff --git a/x/interchainqueries/module.go b/x/interchainqueries/module.go index 1a1dc65eb..a32d3be52 100644 --- a/x/interchainqueries/module.go +++ b/x/interchainqueries/module.go @@ -167,7 +167,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion implements ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 2 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock executes all ABCI BeginBlock logic respective to the capability module. func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/interchainqueries/types/constants.go b/x/interchainqueries/types/constants.go new file mode 100644 index 000000000..4c93fbeff --- /dev/null +++ b/x/interchainqueries/types/constants.go @@ -0,0 +1,3 @@ +package types + +const ConsensusVersion = 2 diff --git a/x/interchaintxs/module.go b/x/interchaintxs/module.go index cbbc934ad..e29946741 100644 --- a/x/interchaintxs/module.go +++ b/x/interchaintxs/module.go @@ -167,7 +167,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion implements ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 2 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock executes all ABCI BeginBlock logic respective to the capability module. func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/interchaintxs/types/constants.go b/x/interchaintxs/types/constants.go new file mode 100644 index 000000000..4c93fbeff --- /dev/null +++ b/x/interchaintxs/types/constants.go @@ -0,0 +1,3 @@ +package types + +const ConsensusVersion = 2 diff --git a/x/tokenfactory/module.go b/x/tokenfactory/module.go index 71f61e563..eda08a60a 100644 --- a/x/tokenfactory/module.go +++ b/x/tokenfactory/module.go @@ -158,7 +158,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion implements ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return types.ConsensusVersion } // BeginBlock executes all ABCI BeginBlock logic respective to the tokenfactory module. func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} diff --git a/x/tokenfactory/types/constants.go b/x/tokenfactory/types/constants.go index ba0108ee2..b68bbb99a 100644 --- a/x/tokenfactory/types/constants.go +++ b/x/tokenfactory/types/constants.go @@ -1,3 +1,5 @@ package types +const ConsensusVersion = 1 + var TrackBeforeSendGasLimit = uint64(100_000) diff --git a/x/transfer/ibc_handlers.go b/x/transfer/ibc_handlers.go index 30ad94af3..813ef54d1 100644 --- a/x/transfer/ibc_handlers.go +++ b/x/transfer/ibc_handlers.go @@ -71,7 +71,7 @@ func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, r _, err = im.sudoKeeper.Sudo(ctx, senderAddress, msg) if err != nil { - im.keeper.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet acknowledgement", "error", err) + im.keeper.Logger(ctx).Debug("HandleAcknowledgement: failed to Sudo contract on packet timeout", "error", err) } return nil diff --git a/x/transfer/keeper/keeper.go b/x/transfer/keeper/keeper.go index 50729540a..fdae1dcba 100644 --- a/x/transfer/keeper/keeper.go +++ b/x/transfer/keeper/keeper.go @@ -53,7 +53,6 @@ func (k KeeperTransferWrapper) Transfer(goCtx context.Context, msg *wrappedtypes } transferMsg := types.NewMsgTransfer(msg.SourcePort, msg.SourceChannel, msg.Token, msg.Sender, msg.Receiver, msg.TimeoutHeight, msg.TimeoutTimestamp, msg.Memo) - transferMsg.Memo = msg.Memo if _, err := k.Keeper.Transfer(goCtx, transferMsg); err != nil { return nil, err } From b3ddcb547f12f7517ec36ec04cd9be7887e5ca73 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 2 Nov 2023 11:30:44 +0200 Subject: [PATCH 203/307] remove burn permissions for wasmd --- app/app.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 798cc7f48..bed82c5a8 100644 --- a/app/app.go +++ b/app/app.go @@ -226,7 +226,7 @@ var ( auctiontypes.ModuleName: nil, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, icatypes.ModuleName: nil, - wasmtypes.ModuleName: {authtypes.Burner}, + wasmtypes.ModuleName: {}, interchainqueriesmoduletypes.ModuleName: nil, feetypes.ModuleName: nil, feeburnertypes.ModuleName: nil, @@ -328,8 +328,8 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool blocksdk.Mempool - MEVLane auctionante.MEVLane + Mempool blocksdk.Mempool + MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -977,7 +977,6 @@ func New( mevLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( From 8fa3c19d1b188efc646273ca7ea67c442a5e3690 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 2 Nov 2023 11:53:15 -0400 Subject: [PATCH 204/307] typo: fix inconsistent dex/tx.proto naming --- proto/neutron/dex/tx.proto | 4 +- x/dex/types/tx.pb.go | 185 ++++++++++++++++++------------------- 2 files changed, 94 insertions(+), 95 deletions(-) diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index b2bacb988..37fcd83ec 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -37,13 +37,13 @@ message MsgDeposit { (gogoproto.moretags) = "yaml:\"amountsA\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "amountA" + (gogoproto.jsontag) = "amountsA" ]; repeated string amountsB = 6 [ (gogoproto.moretags) = "yaml:\"amountsB\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "amountB" + (gogoproto.jsontag) = "amountsB" ]; repeated int64 tickIndexesAToB = 7; repeated uint64 fees = 8; diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index a90fadfc9..488966197 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -121,8 +121,8 @@ type MsgDeposit struct { Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` - AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountA" yaml:"amountsA"` - AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountB" yaml:"amountsB"` + AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsA" yaml:"amountsA"` + AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsB" yaml:"amountsB"` TickIndexesAToB []int64 `protobuf:"varint,7,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` Fees []uint64 `protobuf:"varint,8,rep,packed,name=fees,proto3" json:"fees,omitempty"` Options []*DepositOptions `protobuf:"bytes,9,rep,name=Options,proto3" json:"Options,omitempty"` @@ -960,97 +960,96 @@ func init() { func init() { proto.RegisterFile("neutron/dex/tx.proto", fileDescriptor_a489f6e187d5e074) } var fileDescriptor_a489f6e187d5e074 = []byte{ - // 1425 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x8f, 0xd3, 0xc6, - 0x17, 0x5f, 0x27, 0x21, 0xd9, 0xcc, 0xfe, 0xca, 0xce, 0x02, 0x6b, 0xc2, 0xf7, 0x9b, 0x44, 0x86, - 0x2f, 0xe4, 0xbb, 0x12, 0x09, 0xd9, 0xaa, 0x48, 0xa5, 0xa7, 0x78, 0x77, 0x69, 0x0d, 0x09, 0x59, - 0x99, 0x50, 0xd4, 0x56, 0x6a, 0xe4, 0x75, 0x86, 0xc4, 0xda, 0xd8, 0x63, 0x79, 0x26, 0x4b, 0xf6, - 0xd0, 0x43, 0x7b, 0x44, 0xad, 0xc4, 0xa5, 0x27, 0xfe, 0x81, 0xf6, 0xc6, 0x01, 0xa9, 0x87, 0xfe, - 0x03, 0x1c, 0x51, 0x7b, 0xa9, 0x7a, 0x48, 0x2b, 0x38, 0x20, 0x71, 0x5c, 0xa9, 0xf7, 0xca, 0xe3, - 0xb1, 0x63, 0x3b, 0x2c, 0xcb, 0x42, 0xdb, 0x4b, 0x32, 0xf3, 0xde, 0x67, 0x3e, 0xef, 0xcd, 0x9b, - 0x37, 0xef, 0x8d, 0xc1, 0x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c, 0x30, 0xf3, 0xd9, 0xda, 0x11, 0x35, 0x6f, 0xe4, 0x7d, 0xff, 0xbb, 0x75, 0x61, 0x27, 0xcd, - 0x5e, 0x4f, 0xef, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xba, 0xdd, 0x59, 0x72, 0x1b, 0x10, 0x00, - 0x00, + // 1420 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x6f, 0x13, 0xc7, + 0x17, 0xcf, 0xda, 0xc6, 0x8e, 0x27, 0xbf, 0x9c, 0x09, 0x90, 0xc5, 0x7c, 0xbf, 0xb6, 0xb5, 0xf0, + 0x05, 0x7f, 0x23, 0x61, 0xe3, 0x54, 0x45, 0x2a, 0x3d, 0x79, 0x93, 0xd0, 0x2e, 0xd8, 0x38, 0x5a, + 0x4c, 0x51, 0x5b, 0xa9, 0xd6, 0x66, 0x3d, 0xd8, 0xab, 0x78, 0x77, 0x56, 0x3b, 0xe3, 0xe0, 0x1c, + 0x7a, 0x68, 0x8f, 0xa8, 0x95, 0xb8, 0xf4, 0xc4, 0x3f, 0xd0, 0xde, 0x38, 0x20, 0xf5, 0xd4, 0x3b, + 0x47, 0xd4, 0x5e, 0xaa, 0x1e, 0xdc, 0x0a, 0x0e, 0x48, 0x1c, 0x23, 0xf5, 0x5e, 0xed, 0xec, 0xec, + 0x7a, 0x77, 0x4d, 0x08, 0x81, 0xb6, 0x17, 0xb2, 0xf3, 0xde, 0x67, 0xde, 0x7b, 0xf3, 0x99, 0xf7, + 0x63, 0x0c, 0x38, 0x69, 0xa1, 0x21, 0x75, 0xb0, 0x55, 0xed, 0xa2, 0x51, 0x95, 0x8e, 0x2a, 0xb6, + 0x83, 0x29, 0x86, 0x73, 0x5c, 0x5a, 0xe9, 0xa2, 0x51, 0xfe, 0x64, 0x0f, 0xf7, 0x30, 0x93, 0x57, + 0xdd, 0x2f, 0x0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78, 0xa2, 0x94, 0x2c, 0x67, 0xe5, 0xe6, + 0x93, 0x71, 0x71, 0xe6, 0xb7, 0x71, 0xf1, 0x42, 0xcf, 0xa0, 0xfd, 0xe1, 0x4e, 0x45, 0xc7, 0x26, + 0x3f, 0x24, 0xff, 0x73, 0x89, 0x74, 0x77, 0xab, 0x74, 0xdf, 0x46, 0xa4, 0xa2, 0x58, 0xf4, 0xe5, + 0xb8, 0x18, 0x58, 0x38, 0x18, 0x17, 0x97, 0xf6, 0x35, 0x73, 0x70, 0x55, 0xf2, 0x25, 0x92, 0x1a, + 0x28, 0x43, 0xae, 0x64, 0x31, 0xfd, 0x8e, 0xae, 0xe4, 0x29, 0x57, 0xf2, 0xc4, 0x95, 0x0c, 0xcb, + 0x60, 0x89, 0x1a, 0xfa, 0xae, 0x62, 0x75, 0xd1, 0x08, 0x91, 0x7a, 0x1b, 0xcb, 0x62, 0xa6, 0x94, + 0x2c, 0x27, 0xd5, 0xb8, 0x18, 0x42, 0x90, 0xba, 0x8b, 0x10, 0x11, 0x67, 0x4b, 0xc9, 0x72, 0x4a, + 0x65, 0xdf, 0xf0, 0x7d, 0x90, 0xe1, 0xd7, 0x27, 0x66, 0x4b, 0xc9, 0xf2, 0xdc, 0xfa, 0xd9, 0x4a, + 0x28, 0x39, 0x2b, 0xd1, 0x1b, 0x56, 0x7d, 0xac, 0xf4, 0x38, 0x01, 0xe0, 0xe4, 0xfe, 0x54, 0x44, + 0x6c, 0x6c, 0x11, 0x04, 0xbf, 0x15, 0xc0, 0xb2, 0x8a, 0x08, 0x72, 0xf6, 0xd0, 0x65, 0xae, 0x43, + 0x5d, 0x51, 0x60, 0x04, 0x74, 0x8e, 0x4d, 0xc0, 0xb2, 0x13, 0x37, 0x75, 0x30, 0x2e, 0x8a, 0x1e, + 0x13, 0x53, 0x2a, 0x49, 0x9d, 0xf6, 0x1c, 0x8e, 0xa7, 0x36, 0x89, 0x27, 0xf1, 0x8e, 0xf1, 0xd4, + 0x0e, 0x8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 0x10, 0x18, 0x65, 0xa2, 0xd4, 0xfa, + 0x9f, 0x29, 0x90, 0x6c, 0x92, 0x1e, 0xdc, 0x00, 0x19, 0xff, 0x27, 0xc4, 0x6a, 0xb4, 0x48, 0x82, + 0xb7, 0x69, 0xbe, 0x78, 0x88, 0x22, 0xb8, 0xfe, 0x06, 0x00, 0xa1, 0x07, 0x59, 0x3e, 0x0e, 0x9f, + 0xe8, 0xf2, 0xd2, 0xe1, 0xba, 0xc0, 0xda, 0xe7, 0x60, 0x29, 0xfe, 0x16, 0x99, 0x8a, 0x20, 0x06, + 0xc8, 0x5f, 0x3c, 0x02, 0x10, 0x18, 0xdf, 0x03, 0xe2, 0xa1, 0x5d, 0xb7, 0x7c, 0x58, 0x70, 0x71, + 0x64, 0xfe, 0xf2, 0x9b, 0x22, 0x03, 0xbf, 0x5f, 0x80, 0xdc, 0x54, 0xb7, 0x2d, 0xc5, 0xad, 0xc4, + 0x11, 0xf9, 0xf2, 0x51, 0x88, 0xc0, 0xbe, 0x0a, 0xe6, 0x23, 0x7d, 0xf3, 0x3f, 0xf1, 0x9d, 0x61, + 0x6d, 0xfe, 0xfc, 0xeb, 0xb4, 0x61, 0x9b, 0x91, 0x02, 0x9b, 0xb2, 0x19, 0xd6, 0x4e, 0xdb, 0x7c, + 0x55, 0xc6, 0xcb, 0x9b, 0x4f, 0x9e, 0x15, 0x84, 0xa7, 0xcf, 0x0a, 0xc2, 0x1f, 0xcf, 0x0a, 0xc2, + 0x83, 0xe7, 0x85, 0x99, 0xa7, 0xcf, 0x0b, 0x33, 0xbf, 0x3e, 0x2f, 0xcc, 0x7c, 0xb6, 0x76, 0x44, + 0xcf, 0x1b, 0x79, 0xff, 0x03, 0xe0, 0xf6, 0x85, 0x9d, 0x34, 0x7b, 0x3d, 0xbd, 0xf7, 0x57, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa9, 0x01, 0xb0, 0x91, 0x1d, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From cda97ece89f1d44fa4357c02fb970c2e02a7790b Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 2 Nov 2023 13:33:45 -0400 Subject: [PATCH 205/307] Remove incentives and epochs module. The rationale is as follows: 1. No direct need to incentivize the base pools right away. Most of that is done on astroport and integrations 2. The modules were modified from Osmo incentives and the degree of certainty we have here (even after 2 audits) is not the same as the core Dex module. 3. Upside of incentives is low compared to risk of pushing sub-optimal code Given that I think we should hold off on the deployment of the incentives, keep it back here for a while longer for further testing etc and decide if we really want it in the future. --- app/app.go | 55 +- app/proposals_allowlisting.go | 2 - app/upgrades/nextupgrade/constants.go | 6 +- proto/neutron/epochs/genesis.proto | 72 - proto/neutron/epochs/query.proto | 30 - .../neutron/incentives/account_history.proto | 19 - proto/neutron/incentives/gauge.proto | 115 - proto/neutron/incentives/genesis.proto | 26 - proto/neutron/incentives/params.proto | 17 - proto/neutron/incentives/query.proto | 161 - proto/neutron/incentives/stake.proto | 41 - proto/neutron/incentives/tx.proto | 119 - testutil/apptesting/test_suite.go | 15 - wasmbinding/stargate_allowlist.go | 16 - x/epochs/client/cli/cli_test.go | 33 - x/epochs/client/cli/query.go | 36 - x/epochs/keeper/abci.go | 81 - x/epochs/keeper/abci_test.go | 302 -- x/epochs/keeper/epoch.go | 114 - x/epochs/keeper/epoch_test.go | 99 - x/epochs/keeper/genesis.go | 24 - x/epochs/keeper/genesis_test.go | 96 - x/epochs/keeper/grpc_query.go | 60 - x/epochs/keeper/grpc_query_test.go | 30 - x/epochs/keeper/hooks.go | 22 - x/epochs/keeper/keeper.go | 41 - x/epochs/keeper/keeper_test.go | 24 - x/epochs/module.go | 169 - x/epochs/types/doc.go | 4 - x/epochs/types/events.go | 9 - x/epochs/types/genesis.go | 68 - x/epochs/types/genesis.pb.go | 820 ---- x/epochs/types/hooks.go | 64 - x/epochs/types/hooks_test.go | 163 - x/epochs/types/identifier.go | 23 - x/epochs/types/keys.go | 18 - x/epochs/types/query.pb.go | 911 ----- x/epochs/types/query.pb.gw.go | 236 -- x/incentives/client/cli/cli_test.go | 340 -- x/incentives/client/cli/flags.go | 22 - x/incentives/client/cli/query.go | 114 - x/incentives/client/cli/query_test.go | 55 - x/incentives/client/cli/tx.go | 173 - x/incentives/keeper/account_history.go | 83 - x/incentives/keeper/distribute.go | 186 - x/incentives/keeper/distribute_test.go | 363 -- x/incentives/keeper/distributor.go | 92 - x/incentives/keeper/distributor_test.go | 144 - x/incentives/keeper/export_test.go | 44 - x/incentives/keeper/gas_test.go | 77 - x/incentives/keeper/gauge.go | 309 -- x/incentives/keeper/gauge_test.go | 285 -- x/incentives/keeper/genesis.go | 80 - x/incentives/keeper/genesis_test.go | 57 - x/incentives/keeper/hooks.go | 60 - x/incentives/keeper/iterator.go | 58 - x/incentives/keeper/keeper.go | 77 - x/incentives/keeper/keeper_test.go | 52 - x/incentives/keeper/msg_server.go | 199 - x/incentives/keeper/params.go | 34 - x/incentives/keeper/query_server.go | 267 -- x/incentives/keeper/query_server_test.go | 126 - x/incentives/keeper/stake.go | 249 -- x/incentives/keeper/stake_refs.go | 72 - x/incentives/keeper/stake_test.go | 122 - x/incentives/keeper/store_test.go | 54 - x/incentives/keeper/suite_test.go | 124 - x/incentives/keeper/utils.go | 78 - x/incentives/keeper/utils_test.go | 129 - x/incentives/module.go | 180 - x/incentives/module_simulation.go | 33 - x/incentives/types/account_history.pb.go | 391 -- x/incentives/types/codec.go | 35 - x/incentives/types/distribution_spec.go | 25 - x/incentives/types/distribution_spec_test.go | 44 - x/incentives/types/errors.go | 53 - x/incentives/types/events.go | 21 - x/incentives/types/expected_keepers.go | 33 - x/incentives/types/gauge.go | 83 - x/incentives/types/gauge.pb.go | 1021 ----- x/incentives/types/gauge_test.go | 66 - x/incentives/types/gauges.go | 24 - x/incentives/types/genesis.go | 23 - x/incentives/types/genesis.pb.go | 590 --- x/incentives/types/hooks.go | 82 - x/incentives/types/keys.go | 176 - x/incentives/types/keys_test.go | 18 - x/incentives/types/msgs.go | 259 -- x/incentives/types/msgs_test.go | 324 -- x/incentives/types/params.go | 47 - x/incentives/types/params.pb.go | 359 -- x/incentives/types/query.pb.go | 3584 ----------------- x/incentives/types/query.pb.gw.go | 842 ---- x/incentives/types/query_condition.go | 18 - x/incentives/types/query_condition_test.go | 62 - x/incentives/types/stake.go | 53 - x/incentives/types/stake.pb.go | 531 --- x/incentives/types/stakes.go | 16 - x/incentives/types/tx.pb.go | 2713 ------------- 99 files changed, 2 insertions(+), 19970 deletions(-) delete mode 100644 proto/neutron/epochs/genesis.proto delete mode 100644 proto/neutron/epochs/query.proto delete mode 100644 proto/neutron/incentives/account_history.proto delete mode 100644 proto/neutron/incentives/gauge.proto delete mode 100644 proto/neutron/incentives/genesis.proto delete mode 100644 proto/neutron/incentives/params.proto delete mode 100644 proto/neutron/incentives/query.proto delete mode 100644 proto/neutron/incentives/stake.proto delete mode 100644 proto/neutron/incentives/tx.proto delete mode 100644 x/epochs/client/cli/cli_test.go delete mode 100644 x/epochs/client/cli/query.go delete mode 100644 x/epochs/keeper/abci.go delete mode 100644 x/epochs/keeper/abci_test.go delete mode 100644 x/epochs/keeper/epoch.go delete mode 100644 x/epochs/keeper/epoch_test.go delete mode 100644 x/epochs/keeper/genesis.go delete mode 100644 x/epochs/keeper/genesis_test.go delete mode 100644 x/epochs/keeper/grpc_query.go delete mode 100644 x/epochs/keeper/grpc_query_test.go delete mode 100644 x/epochs/keeper/hooks.go delete mode 100644 x/epochs/keeper/keeper.go delete mode 100644 x/epochs/keeper/keeper_test.go delete mode 100644 x/epochs/module.go delete mode 100644 x/epochs/types/doc.go delete mode 100644 x/epochs/types/events.go delete mode 100644 x/epochs/types/genesis.go delete mode 100644 x/epochs/types/genesis.pb.go delete mode 100644 x/epochs/types/hooks.go delete mode 100644 x/epochs/types/hooks_test.go delete mode 100644 x/epochs/types/identifier.go delete mode 100644 x/epochs/types/keys.go delete mode 100644 x/epochs/types/query.pb.go delete mode 100644 x/epochs/types/query.pb.gw.go delete mode 100644 x/incentives/client/cli/cli_test.go delete mode 100644 x/incentives/client/cli/flags.go delete mode 100644 x/incentives/client/cli/query.go delete mode 100644 x/incentives/client/cli/query_test.go delete mode 100644 x/incentives/client/cli/tx.go delete mode 100644 x/incentives/keeper/account_history.go delete mode 100644 x/incentives/keeper/distribute.go delete mode 100644 x/incentives/keeper/distribute_test.go delete mode 100644 x/incentives/keeper/distributor.go delete mode 100644 x/incentives/keeper/distributor_test.go delete mode 100644 x/incentives/keeper/export_test.go delete mode 100644 x/incentives/keeper/gas_test.go delete mode 100644 x/incentives/keeper/gauge.go delete mode 100644 x/incentives/keeper/gauge_test.go delete mode 100644 x/incentives/keeper/genesis.go delete mode 100644 x/incentives/keeper/genesis_test.go delete mode 100644 x/incentives/keeper/hooks.go delete mode 100644 x/incentives/keeper/iterator.go delete mode 100644 x/incentives/keeper/keeper.go delete mode 100644 x/incentives/keeper/keeper_test.go delete mode 100644 x/incentives/keeper/msg_server.go delete mode 100644 x/incentives/keeper/params.go delete mode 100644 x/incentives/keeper/query_server.go delete mode 100644 x/incentives/keeper/query_server_test.go delete mode 100644 x/incentives/keeper/stake.go delete mode 100644 x/incentives/keeper/stake_refs.go delete mode 100644 x/incentives/keeper/stake_test.go delete mode 100644 x/incentives/keeper/store_test.go delete mode 100644 x/incentives/keeper/suite_test.go delete mode 100644 x/incentives/keeper/utils.go delete mode 100644 x/incentives/keeper/utils_test.go delete mode 100644 x/incentives/module.go delete mode 100644 x/incentives/module_simulation.go delete mode 100644 x/incentives/types/account_history.pb.go delete mode 100644 x/incentives/types/codec.go delete mode 100644 x/incentives/types/distribution_spec.go delete mode 100644 x/incentives/types/distribution_spec_test.go delete mode 100644 x/incentives/types/errors.go delete mode 100644 x/incentives/types/events.go delete mode 100644 x/incentives/types/expected_keepers.go delete mode 100644 x/incentives/types/gauge.go delete mode 100644 x/incentives/types/gauge.pb.go delete mode 100644 x/incentives/types/gauge_test.go delete mode 100644 x/incentives/types/gauges.go delete mode 100644 x/incentives/types/genesis.go delete mode 100644 x/incentives/types/genesis.pb.go delete mode 100644 x/incentives/types/hooks.go delete mode 100644 x/incentives/types/keys.go delete mode 100644 x/incentives/types/keys_test.go delete mode 100644 x/incentives/types/msgs.go delete mode 100644 x/incentives/types/msgs_test.go delete mode 100644 x/incentives/types/params.go delete mode 100644 x/incentives/types/params.pb.go delete mode 100644 x/incentives/types/query.pb.go delete mode 100644 x/incentives/types/query.pb.gw.go delete mode 100644 x/incentives/types/query_condition.go delete mode 100644 x/incentives/types/query_condition_test.go delete mode 100644 x/incentives/types/stake.go delete mode 100644 x/incentives/types/stake.pb.go delete mode 100644 x/incentives/types/stakes.go delete mode 100644 x/incentives/types/tx.pb.go diff --git a/app/app.go b/app/app.go index 17933df3c..ad59ec3ca 100644 --- a/app/app.go +++ b/app/app.go @@ -154,14 +154,6 @@ import ( dexkeeper "github.com/neutron-org/neutron/x/dex/keeper" dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives" - incentiveskeeper "github.com/neutron-org/neutron/x/incentives/keeper" - incentivestypes "github.com/neutron-org/neutron/x/incentives/types" - - "github.com/neutron-org/neutron/x/epochs" - epochskeeper "github.com/neutron-org/neutron/x/epochs/keeper" - epochstypes "github.com/neutron-org/neutron/x/epochs/types" - "github.com/neutron-org/neutron/x/ibcswap" ibcswapkeeper "github.com/neutron-org/neutron/x/ibcswap/keeper" ibcswaptypes "github.com/neutron-org/neutron/x/ibcswap/types" @@ -238,8 +230,6 @@ var ( globalfee.AppModule{}, dex.AppModuleBasic{}, ibcswap.AppModuleBasic{}, - epochs.AppModuleBasic{}, - incentives.AppModuleBasic{}, ) // module account permissions @@ -257,7 +247,6 @@ var ( tokenfactorytypes.ModuleName: {authtypes.Minter, authtypes.Burner}, crontypes.ModuleName: nil, dextypes.ModuleName: {authtypes.Minter, authtypes.Burner}, - incentivestypes.ModuleName: nil, ibcswaptypes.ModuleName: {authtypes.Burner}, } ) @@ -324,8 +313,6 @@ type App struct { RouterKeeper *routerkeeper.Keeper DexKeeper dexkeeper.Keeper SwapKeeper ibcswapkeeper.Keeper - IncentivesKeeper *incentiveskeeper.Keeper - EpochsKeeper *epochskeeper.Keeper RouterModule router.AppModule @@ -410,7 +397,7 @@ func New( icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, - crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, dextypes.StoreKey, incentivestypes.StoreKey, epochstypes.StoreKey, + crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, dextypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, feetypes.MemStoreKey) @@ -652,38 +639,6 @@ func New( swapModule := ibcswap.NewAppModule(app.SwapKeeper) - app.EpochsKeeper = epochskeeper.NewKeeper(keys[epochstypes.StoreKey]) - - app.IncentivesKeeper = incentiveskeeper.NewKeeper( - keys[incentivestypes.StoreKey], - app.AccountKeeper, - app.BankKeeper, - app.EpochsKeeper, - app.DexKeeper, - authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), - ) - - app.IncentivesKeeper.SetHooks( - incentivestypes.NewMultiIncentiveHooks( - // insert Incentives hooks receivers here - ), - ) - - incentivesModule := incentives.NewAppModule( - app.IncentivesKeeper, - app.AccountKeeper, - app.BankKeeper, - app.EpochsKeeper, - ) - - app.EpochsKeeper.SetHooks(epochstypes.NewMultiEpochHooks( - app.IncentivesKeeper.Hooks(), - )) - - // NB: This must be initialized AFTER app.EpochsKeeper.SetHooks() because otherwise - // we dereference an out-of-date EpochsKeeper. - epochsModule := epochs.NewAppModule(*app.EpochsKeeper) - wasmDir := filepath.Join(homePath, "wasm") wasmConfig, err := wasm.ReadWasmConfig(appOpts) if err != nil { @@ -858,8 +813,6 @@ func New( auction.NewAppModule(appCodec, app.AuctionKeeper), swapModule, dexModule, - incentivesModule, - epochsModule, crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them ) @@ -897,8 +850,6 @@ func New( crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, - incentivestypes.ModuleName, - epochstypes.ModuleName, dextypes.ModuleName, ) @@ -932,8 +883,6 @@ func New( crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, - incentivestypes.ModuleName, - epochstypes.ModuleName, // NOTE: Because of the gas sensitivity of PurgeExpiredLimit order operations // dexmodule must be the last endBlock module to run dextypes.ModuleName, @@ -975,8 +924,6 @@ func New( globalfee.ModuleName, ibcswaptypes.ModuleName, dextypes.ModuleName, - incentivestypes.ModuleName, - epochstypes.ModuleName, ) app.mm.RegisterInvariants(&app.CrisisKeeper) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 624c7e577..da85afeee 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -16,7 +16,6 @@ import ( dextypes "github.com/neutron-org/neutron/x/dex/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" - incentivestypes "github.com/neutron-org/neutron/x/incentives/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -63,7 +62,6 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *feerefundertypes.MsgUpdateParams, *crontypes.MsgUpdateParams, *contractmanagertypes.MsgUpdateParams, - *incentivestypes.MsgUpdateParams, *dextypes.MsgUpdateParams: return true } diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/nextupgrade/constants.go index 142f65a92..cda89f115 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/nextupgrade/constants.go @@ -5,10 +5,8 @@ import ( consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" "github.com/neutron-org/neutron/app/upgrades" - auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" dextypes "github.com/neutron-org/neutron/x/dex/types" - epochstypes "github.com/neutron-org/neutron/x/epochs/types" - incentivestypes "github.com/neutron-org/neutron/x/incentives/types" + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" ) const ( @@ -25,8 +23,6 @@ var Upgrade = upgrades.Upgrade{ crisistypes.ModuleName, auctiontypes.ModuleName, dextypes.ModuleName, - incentivestypes.ModuleName, - epochstypes.ModuleName, }, }, } diff --git a/proto/neutron/epochs/genesis.proto b/proto/neutron/epochs/genesis.proto deleted file mode 100644 index 4a5c1ca4e..000000000 --- a/proto/neutron/epochs/genesis.proto +++ /dev/null @@ -1,72 +0,0 @@ -syntax = "proto3"; -package neutron.epochs; - -import "gogoproto/gogo.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "github.com/neutron-org/neutron/x/epochs/types"; - -// EpochInfo is a struct that describes the data going into -// a timer defined by the x/epochs module. -message EpochInfo { - // identifier is a unique reference to this particular timer. - string identifier = 1; - // start_time is the time at which the timer first ever ticks. - // If start_time is in the future, the epoch will not begin until the start - // time. - google.protobuf.Timestamp start_time = 2 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"start_time\"" - ]; - // duration is the time in between epoch ticks. - // In order for intended behavior to be met, duration should - // be greater than the chains expected block time. - // Duration must be non-zero. - google.protobuf.Duration duration = 3 [ - (gogoproto.nullable) = false, - (gogoproto.stdduration) = true, - (gogoproto.jsontag) = "duration,omitempty", - (gogoproto.moretags) = "yaml:\"duration\"" - ]; - // current_epoch is the current epoch number, or in other words, - // how many times has the timer 'ticked'. - // The first tick (current_epoch=1) is defined as - // the first block whose blocktime is greater than the EpochInfo start_time. - int64 current_epoch = 4; - // current_epoch_start_time describes the start time of the current timer - // interval. The interval is (current_epoch_start_time, - // current_epoch_start_time + duration] When the timer ticks, this is set to - // current_epoch_start_time = last_epoch_start_time + duration only one timer - // tick for a given identifier can occur per block. - // - // NOTE! The current_epoch_start_time may diverge significantly from the - // wall-clock time the epoch began at. Wall-clock time of epoch start may be - // >> current_epoch_start_time. Suppose current_epoch_start_time = 10, - // duration = 5. Suppose the chain goes offline at t=14, and comes back online - // at t=30, and produces blocks at every successive time. (t=31, 32, etc.) - // * The t=30 block will start the epoch for (10, 15] - // * The t=31 block will start the epoch for (15, 20] - // * The t=32 block will start the epoch for (20, 25] - // * The t=33 block will start the epoch for (25, 30] - // * The t=34 block will start the epoch for (30, 35] - // * The **t=36** block will start the epoch for (35, 40] - google.protobuf.Timestamp current_epoch_start_time = 5 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"current_epoch_start_time\"" - ]; - // epoch_counting_started is a boolean, that indicates whether this - // epoch timer has began yet. - bool epoch_counting_started = 6; - reserved 7; - // current_epoch_start_height is the block height at which the current epoch - // started. (The block height at which the timer last ticked) - int64 current_epoch_start_height = 8; -} - -// GenesisState defines the epochs module's genesis state. -message GenesisState { - repeated EpochInfo epochs = 1 [ (gogoproto.nullable) = false ]; -} diff --git a/proto/neutron/epochs/query.proto b/proto/neutron/epochs/query.proto deleted file mode 100644 index b615eff97..000000000 --- a/proto/neutron/epochs/query.proto +++ /dev/null @@ -1,30 +0,0 @@ -syntax = "proto3"; -package neutron.epochs; - -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "neutron/epochs/genesis.proto"; - -option go_package = "github.com/neutron-org/neutron/x/epochs/types"; - -// Query defines the gRPC querier service. -service Query { - // EpochInfos provide running epochInfos - rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { - option (google.api.http).get = "/neutron/epochs/epochs"; - } - // CurrentEpoch provide current epoch of specified identifier - rpc CurrentEpoch(QueryCurrentEpochRequest) - returns (QueryCurrentEpochResponse) { - option (google.api.http).get = "/neutron/epochs/current_epoch"; - } -} - -message QueryEpochsInfoRequest {} -message QueryEpochsInfoResponse { - repeated EpochInfo epochs = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryCurrentEpochRequest { string identifier = 1; } -message QueryCurrentEpochResponse { int64 current_epoch = 1; } \ No newline at end of file diff --git a/proto/neutron/incentives/account_history.proto b/proto/neutron/incentives/account_history.proto deleted file mode 100644 index 22188f152..000000000 --- a/proto/neutron/incentives/account_history.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -// Describes the total distributions to an account over time -message AccountHistory { - // the address of this account - string account = 1; - - // coins describes the total amount of coins that have been distributed to this user over time - repeated cosmos.base.v1beta1.Coin coins = 2 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} diff --git a/proto/neutron/incentives/gauge.proto b/proto/neutron/incentives/gauge.proto deleted file mode 100644 index 5399bc761..000000000 --- a/proto/neutron/incentives/gauge.proto +++ /dev/null @@ -1,115 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "cosmos/base/v1beta1/coin.proto"; -import "neutron/dex/pair_id.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -// Gauge is an object that describes an LP incentivization plan and its state. -message Gauge { - // id is the unique ID of a Gauge - uint64 id = 1; - - // There are two kinds of gauges: perpetual and non-perpetual. Perpetual - // gauges describe an incentivization program for which the token rewards - // distributed on any given day must be added to the gauge prior to that day's - // distribution using an AddToGauge message. When distribute is called on a - // perpetual gauge, all of the remaining rewards in the gauge are distributed. - // Because of this, all perpetual gauges must have `num_epochs_paid_over` set - // to 1. A non-perpetual gauge by contrast distributes its rewards over a - // schedule as determined by `num_epochs_paid_over`. If a non-perpetual gauge - // is created with coins=[100atom] and num_epochs_paid_over=10, this means - // that for 10 days (10 epochs) the gauge will distribute 10atom each day to - // the staked LP positions qualifying for the gauge. - bool is_perpetual = 2; - - // distribute_to describes a set of staked LP positions that should be - // distributed to from this gauge. - QueryCondition distribute_to = 3 - [ (gogoproto.nullable) = false ]; - - // coins describes the total amount of coins that have been added to this - // gauge for distribution. - repeated cosmos.base.v1beta1.Coin coins = 4 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - - // start_time describes when this gauge should begin distributing rewards. - // This allows gauge creators to schedule gauges into the future, in the event - // that an earlier gauge is expected to expire. - google.protobuf.Timestamp start_time = 5 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"start_time\"" - ]; - - // num_epochs_paid_over is the number of total epochs (days) the rewards in - // this gauge will be distributed over. - uint64 num_epochs_paid_over = 6; - - // filled_epochs describes the number of epochs distribution have been completed - // already - uint64 filled_epochs = 7; - - // distributed_coins describes coins that have been distributed already from - // this gauge. - repeated cosmos.base.v1beta1.Coin distributed_coins = 8 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - - // pricing_tick is necessary for fairly distributing rewards over a range of - // ticks. Without pricing_tick, we might naively distribute rewards in - // proportion to the number of deposit shares staked within the gauge's - // qualifying tick range. - // - // For example, a gauge with a distribute_to tick range of [-10, 10] would - // distribute to staked LP tokens where both tick-fee and tick+fee are within - // [-10, 10]. Let's say for pair "tokenA<>tokenB", the current trading tick is - // 0. If Alice were to LP (10tokenA, 0tokenB) @ tick -8, fee 2, this would - // mean Alice would be issued 10 shares (10 + 0 * 1.0001^-8), since shares are - // in terms of token0. Let's further assume Bob LPs (0tokenA, 10tokenB) @ tick - // 8, fee 2, such that Bob is issued 10.008 shares (0 + 10 * 1.0001^8). Under - // this naive approach, if Alice and Bob were to stake their shares, Bob would - // receive more in rewards, purely on the basis of the relative locations of - // their liquidity. - // - // This disparity originates in the fact that LP deposit denominations are not - // fungible across ticks. To avoid this, we can use a single price throughout - // the gauge's tick range for relating the relative value of token0 and - // token1, as specified by pricing_tick. - // - // Let's run through the earier example using the more sophisticated approach, - // where the gauge has pricing_tick set to 0. For the purpose of calculating - // reward distribution weight, Alice's shares are worth 10 + 0 * 1.0001^0 = 10 - // and Bob's shares are worth 0 + 10 * 1.0001^0 = 10. With the distribution - // weight of both shares set according to a gauge-specific tick, we do not - // distribute more or less rewards according to the relative location of - // liquidity within the gauge's tick range, freeing users to place liquidity - // whereever they deem most profitable in the gauge's range and still equally - // qualify for rewards. - int64 pricing_tick = 9; -} - -// QueryCondition describes a set of staked LP positions that a gauge is -// configured to distribute to. LP tokens qualifying for a given QueryCondition -// must have both tick-fee and tick+fee fall within the range [startTick, endTick], -// such that all of the tradable liquidity for the pool is within that range. -message QueryCondition { - - // pairID is the token pair which should be distributed to. - neutron.dex.PairID pairID = 1; - - // start_tick is the inclusive lower bound on the location of LP tokens that - // qualify for a gauge's distribution. - int64 startTick = 2; - - // end_tick is the inclusive upper bound on the location of LP tokens that - // qualify for a gauge's distribution. - int64 endTick = 3; -} \ No newline at end of file diff --git a/proto/neutron/incentives/genesis.proto b/proto/neutron/incentives/genesis.proto deleted file mode 100644 index 739095ca6..000000000 --- a/proto/neutron/incentives/genesis.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; -import "neutron/incentives/params.proto"; -import "neutron/incentives/gauge.proto"; -import "neutron/incentives/stake.proto"; -import "neutron/incentives/account_history.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -// GenesisState defines the incentives module's various parameters when first -// initialized -message GenesisState { - // params are all the parameters of the module - Params params = 1 [ (gogoproto.nullable) = false ]; - // gauges are all gauges that should exist at genesis - repeated Gauge gauges = 2; - // last_gauge_id is what the gauge number will increment from when creating - // the next gauge after genesis - uint64 last_gauge_id = 3; - - uint64 last_stake_id = 4; - repeated Stake stakes = 5; - repeated AccountHistory accountHistories = 6; -} diff --git a/proto/neutron/incentives/params.proto b/proto/neutron/incentives/params.proto deleted file mode 100644 index 99a7693da..000000000 --- a/proto/neutron/incentives/params.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -// Params holds parameters for the incentives module -message Params { - // distr_epoch_identifier is what epoch type distribution will be triggered by - // (day, week, etc.) - string distr_epoch_identifier = 1 - [ (gogoproto.moretags) = "yaml:\"distr_epoch_identifier\"" ]; - - uint64 max_gauges = 2 - [ (gogoproto.moretags) = "yaml:\"max_gauges\"" ]; -} diff --git a/proto/neutron/incentives/query.proto b/proto/neutron/incentives/query.proto deleted file mode 100644 index 0ea1c02ee..000000000 --- a/proto/neutron/incentives/query.proto +++ /dev/null @@ -1,161 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "cosmos/base/v1beta1/coin.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "neutron/incentives/gauge.proto"; -import "neutron/incentives/stake.proto"; -import "neutron/incentives/params.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -// Query defines the gRPC querier service -service Query { - // GetModuleStatus returns a rundown of coins in the module and their status - rpc GetModuleStatus(GetModuleStatusRequest) - returns (GetModuleStatusResponse) { - option (google.api.http).get = - "/neutron/incentives/v1beta1/module_status"; - } - - // GetGaugeByID returns a gauge by its ID - rpc GetGaugeByID(GetGaugeByIDRequest) returns (GetGaugeByIDResponse) { - option (google.api.http).get = - "/neutron/incentives/v1beta1/gauges/{id}"; - } - - // GetGauges returns gauges according to the filter provided - rpc GetGauges(GetGaugesRequest) returns (GetGaugesResponse) { - option (google.api.http).get = "/neutron/incentives/v1beta1/gauges"; - } - - // GetStakeByID returns a stake by its ID - rpc GetStakeByID(GetStakeByIDRequest) returns (GetStakeByIDResponse) { - option (google.api.http).get = - "/neutron/incentives/stakes/{stake_id}"; - } - - // GetStakes returns stakes by the filter provided. At least one filter must be provided. - rpc GetStakes(GetStakesRequest) returns (GetStakesResponse) { - option (google.api.http).get = - "/neutron/incentives/stakes"; - } - - // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified - // time in the future. The requestor either provides an address or a set of locks - // for which they want to find the associated rewards. - rpc GetFutureRewardEstimate(GetFutureRewardEstimateRequest) returns (GetFutureRewardEstimateResponse) { - option (google.api.http).get = - "/neutron/incentives/v1beta1/future_rewards_estimate/{owner}"; - } - - // GetAccountHistory returns the total accumulated rewards per denom for a given user. - rpc GetAccountHistory(GetAccountHistoryRequest) returns (GetAccountHistoryResponse) { - option (google.api.http).get = - "/neutron/incentives/v1beta1/account_history/{account}"; - } - - // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating - // the prospective future rewards of staking. - rpc GetGaugeQualifyingValue(GetGaugeQualifyingValueRequest) returns (GetGaugeQualifyingValueResponse) { - option (google.api.http).get = - "/neutron/incentives/v1beta1/get_gauge_qualifying_value/{id}"; - } -} - -message GetModuleStatusRequest {} -message GetModuleStatusResponse { - // Coins that have yet to be distributed - repeated cosmos.base.v1beta1.Coin reward_coins = 1 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - repeated cosmos.base.v1beta1.Coin staked_coins = 2 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - Params params = 3 [ (gogoproto.nullable) = false ]; -} - -message GetGaugeByIDRequest { - // Gague ID being queried - uint64 id = 1; -} -message GetGaugeByIDResponse { - // Gauge that corresponds to provided gague ID - Gauge gauge = 1; -} - -message GetGaugeQualifyingValueRequest { - // Gague ID being queried - uint64 id = 1; -} -message GetGaugeQualifyingValueResponse { - // The amount of value at the gauge's pricing tick currently qualifying for the gauge. - uint64 qualifying_value = 1; -} - -enum GaugeStatus { - ACTIVE_UPCOMING = 0; - ACTIVE = 1; - UPCOMING = 2; - FINISHED = 3; -} - -message GetGaugesRequest { - // Pagination defines pagination for the request - - GaugeStatus status = 1; - string denom = 2; -} -message GetGaugesResponse { - // Upcoming and active gauges - repeated Gauge gauges = 1; -} - -message GetStakeByIDRequest { - uint64 stake_id = 1; -}; -message GetStakeByIDResponse { - Stake stake = 1; -}; - -message GetStakesRequest { - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; -}; - -message GetStakesResponse { - repeated Stake stakes = 1; -}; - -message GetFutureRewardEstimateRequest { - // Address that is being queried for future estimated rewards - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - // Stake IDs included in future reward estimation - repeated uint64 stake_ids = 2; - // Determines upper time limit of reward estimation - // reward estimation goes up to current_epoch + num_epochs - int64 num_epochs = 3; -} -message GetFutureRewardEstimateResponse { - // Estimated coin rewards that will be recieved at provided address - // from specified locks between current time and end epoch - repeated cosmos.base.v1beta1.Coin coins = 1 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} - -message GetAccountHistoryRequest { - // Address that is being queried for account history - string account = 1 [ (gogoproto.moretags) = "yaml:\"account\"" ]; -} -message GetAccountHistoryResponse { - // Gauge rewards that have been distributed to this address to date - repeated cosmos.base.v1beta1.Coin coins = 1 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} diff --git a/proto/neutron/incentives/stake.proto b/proto/neutron/incentives/stake.proto deleted file mode 100644 index 690c4e9fa..000000000 --- a/proto/neutron/incentives/stake.proto +++ /dev/null @@ -1,41 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; -import "google/protobuf/timestamp.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -// Stake records what coins are staked when by who for the purpose of -// calculating gauge reward distributions. -message Stake { - - // ID is the "autoincrementing" id of the stake, assigned at creation. - uint64 ID = 1; - - // owner is the account originating the stake. Only the owner can withdraw - // coins from the stake. - string owner = 2 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - - // start_time is the time at which the coins in the lock were staked. - google.protobuf.Timestamp start_time = 3 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false, - (gogoproto.jsontag) = "start_time,omitempty", - (gogoproto.moretags) = "yaml:\"start_time\"" - ]; - - // coins are the tokens staked, and managed by the module account. - repeated cosmos.base.v1beta1.Coin coins = 4 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - - // start_dist_epoch is the dist epoch (defaulting to the day) at which the - // coins in the lock were staked. This is used by distribution logic to filter - // on stakes that have existed for longer than the distribution period (you - // can only qualify for today's rewards if you staked your LP tokens - // yesterday). We use int64 instead of uint64 to make testing easier. - int64 start_dist_epoch = 5; -} \ No newline at end of file diff --git a/proto/neutron/incentives/tx.proto b/proto/neutron/incentives/tx.proto deleted file mode 100644 index cb6487234..000000000 --- a/proto/neutron/incentives/tx.proto +++ /dev/null @@ -1,119 +0,0 @@ -syntax = "proto3"; -package neutron.incentives; - -import "gogoproto/gogo.proto"; -import "google/protobuf/timestamp.proto"; -import "cosmos/base/v1beta1/coin.proto"; -import "neutron/incentives/gauge.proto"; -import "neutron/incentives/stake.proto"; -import "google/protobuf/duration.proto"; -import "amino/amino.proto"; -import "neutron/incentives/params.proto"; -import "cosmos/msg/v1/msg.proto"; -import "cosmos_proto/cosmos.proto"; - -option go_package = "github.com/neutron-org/neutron/x/incentives/types"; - -service Msg { - // Create an incentive program - rpc CreateGauge(MsgCreateGauge) returns (MsgCreateGaugeResponse); - // Add rewards to an existing incentives program - rpc AddToGauge(MsgAddToGauge) returns (MsgAddToGaugeResponse); - // Deposit LP tokens to the module, qualifying for rewards from gauges - rpc Stake(MsgStake) returns (MsgStakeResponse); - // Withdraw LP tokens from the module, forfeiting future rewards from gauges - rpc Unstake(MsgUnstake) returns (MsgUnstakeResponse); - // Update incentives params - rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); -} - -// MsgCreateGauge creates a gague to distribute rewards to users -message MsgCreateGauge { - // is_perpetual shows if it's a perpetual or non-perpetual gauge - // Non-perpetual gauges distribute their tokens equally per epoch while the - // gauge is in the active period. Perpetual gauges distribute all their tokens - // at a single time and only distribute their tokens again once the gauge is - // refilled - bool is_perpetual = 1; - - // owner is the address of gauge creator, should be the module authority - string owner = 2 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - - // distribute_to show which lock the gauge should distribute to by time - // duration or by timestamp - QueryCondition distribute_to = 3 - [ (gogoproto.nullable) = false ]; - // coins are coin(s) to be distributed by the gauge - repeated cosmos.base.v1beta1.Coin coins = 4 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - // start_time is the distribution start time - google.protobuf.Timestamp start_time = 5 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"timestamp\"" - ]; - // num_epochs_paid_over is the number of epochs distribution will be completed - // over - uint64 num_epochs_paid_over = 6; - - // pricing_tick is the price that liquidity within the gauge range will be priced at - int64 pricing_tick = 7; -} -message MsgCreateGaugeResponse {} - -// MsgAddToGauge adds coins to a previously created gauge -message MsgAddToGauge { - // owner is the gauge owner's address - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - // gauge_id is the ID of gauge that rewards are getting added to - uint64 gauge_id = 2; - // rewards are the coin(s) to add to gauge - repeated cosmos.base.v1beta1.Coin rewards = 3 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} -message MsgAddToGaugeResponse {} - -message MsgStake { - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - repeated cosmos.base.v1beta1.Coin coins = 2 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; -} -message MsgStakeResponse { uint64 ID = 1; } - -message MsgUnstake { - message UnstakeDescriptor { - uint64 ID = 1; - repeated cosmos.base.v1beta1.Coin coins = 2 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" - ]; - } - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - - // If unstake is left empty, this is interpreted as "unstake all" - repeated UnstakeDescriptor unstakes = 2; -} -message MsgUnstakeResponse {} - -message MsgUpdateParams { - option (amino.name) = "dex/MsgUpdateParams"; - option (cosmos.msg.v1.signer) = "authority"; - - // Authority is the address of the governance account. - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - // 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: 0.47 -message MsgUpdateParamsResponse {} diff --git a/testutil/apptesting/test_suite.go b/testutil/apptesting/test_suite.go index 4f885b495..6a6bf9b46 100644 --- a/testutil/apptesting/test_suite.go +++ b/testutil/apptesting/test_suite.go @@ -46,21 +46,6 @@ func (s *KeeperTestHelper) Setup() { GRPCQueryRouter: s.App.GRPCQueryRouter(), Ctx: s.Ctx, } - - s.SetEpochStartTime() -} - -func (s *KeeperTestHelper) SetEpochStartTime() { - epochsKeeper := s.App.EpochsKeeper - - for _, epoch := range epochsKeeper.AllEpochInfos(s.Ctx) { - epoch.StartTime = s.Ctx.BlockTime() - epochsKeeper.DeleteEpochInfo(s.Ctx, epoch.Identifier) - err := epochsKeeper.AddEpochInfo(s.Ctx, epoch) - if err != nil { - panic(err) - } - } } // setupAddr takes a balance, prefix, and address number. Then returns the respective account address byte array. diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index ac0a41597..30f0843b2 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -9,9 +9,7 @@ import ( ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" dextypes "github.com/neutron-org/neutron/x/dex/types" - epochstypes "github.com/neutron-org/neutron/x/epochs/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" - incentivestypes "github.com/neutron-org/neutron/x/incentives/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types" tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types" @@ -65,19 +63,5 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/neutron.dex.Query/PoolReserves": &dextypes.QueryGetPoolReservesResponse{}, "/neutron.dex.Query/EstimateMultiHopSwap": &dextypes.QueryEstimateMultiHopSwapResponse{}, "/neutron.dex.Query/EstimatePlaceLimitOrder": &dextypes.QueryEstimatePlaceLimitOrderResponse{}, - - // incentives - "/neutron.incentives.Query/GetModuleStatus": &incentivestypes.GetModuleStatusResponse{}, - "/neutron.incentives.Query/GetGaugeByID": &incentivestypes.GetGaugeByIDResponse{}, - "/neutron.incentives.Query/GetGauges": &incentivestypes.GetGaugesResponse{}, - "/neutron.incentives.Query/GetStakeByID": &incentivestypes.GetStakeByIDResponse{}, - "/neutron.incentives.Query/GetStakes": &incentivestypes.GetStakesResponse{}, - "/neutron.incentives.Query/GetFutureRewardEstimate": &incentivestypes.GetFutureRewardEstimateResponse{}, - "/neutron.incentives.Query/GetAccountHistory": &incentivestypes.GetAccountHistoryResponse{}, - "/neutron.incentives.Query/GetGaugeQualifyingValue": &incentivestypes.GetGaugeQualifyingValueResponse{}, - - // epochs - "/neutron.epochs.Query/EpochInfos": &epochstypes.QueryEpochsInfoResponse{}, - "/neutron.epochs.Query/CurrentEpoch": &epochstypes.QueryCurrentEpochResponse{}, } } diff --git a/x/epochs/client/cli/cli_test.go b/x/epochs/client/cli/cli_test.go deleted file mode 100644 index b8406fa5d..000000000 --- a/x/epochs/client/cli/cli_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package cli_test - -import ( - "testing" - - "github.com/neutron-org/neutron/utils/dcli" - "github.com/neutron-org/neutron/x/epochs/client/cli" - "github.com/neutron-org/neutron/x/epochs/types" -) - -func TestGetCmdCurrentEpoch(t *testing.T) { - desc, _ := cli.GetCmdCurrentEpoch() - tcs := map[string]dcli.QueryCliTestCase[*types.QueryCurrentEpochRequest]{ - "basic test": { - Cmd: "day", - ExpectedQuery: &types.QueryCurrentEpochRequest{ - Identifier: "day", - }, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetCmdEpochsInfo(t *testing.T) { - desc, _ := cli.GetCmdEpochInfos() - tcs := map[string]dcli.QueryCliTestCase[*types.QueryEpochsInfoRequest]{ - "basic test": { - Cmd: "", - ExpectedQuery: &types.QueryEpochsInfoRequest{}, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} diff --git a/x/epochs/client/cli/query.go b/x/epochs/client/cli/query.go deleted file mode 100644 index e9bcf2238..000000000 --- a/x/epochs/client/cli/query.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - - "github.com/neutron-org/neutron/utils/dcli" - "github.com/neutron-org/neutron/x/epochs/types" -) - -// GetQueryCmd returns the cli query commands for this module. -func GetQueryCmd() *cobra.Command { - cmd := dcli.QueryIndexCmd(types.ModuleName) - dcli.AddQueryCmd(cmd, types.NewQueryClient, GetCmdEpochInfos) - dcli.AddQueryCmd(cmd, types.NewQueryClient, GetCmdCurrentEpoch) - - return cmd -} - -func GetCmdEpochInfos() (*dcli.QueryDescriptor, *types.QueryEpochsInfoRequest) { - return &dcli.QueryDescriptor{ - Use: "epoch-infos", - Short: "Query running epoch infos.", - Long: `{{.Short}}{{.ExampleHeader}} -{{.CommandPrefix}}`, - QueryFnName: "EpochInfos", - }, &types.QueryEpochsInfoRequest{} -} - -func GetCmdCurrentEpoch() (*dcli.QueryDescriptor, *types.QueryCurrentEpochRequest) { - return &dcli.QueryDescriptor{ - Use: "current-epoch", - Short: "Query current epoch by specified identifier.", - Long: `{{.Short}}{{.ExampleHeader}} -{{.CommandPrefix}} day`, - }, &types.QueryCurrentEpochRequest{} -} diff --git a/x/epochs/keeper/abci.go b/x/epochs/keeper/abci.go deleted file mode 100644 index ccf3fcf87..000000000 --- a/x/epochs/keeper/abci.go +++ /dev/null @@ -1,81 +0,0 @@ -package keeper - -import ( - "fmt" - "time" - - "github.com/neutron-org/neutron/x/epochs/types" - - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// BeginBlocker of epochs module. -func (k Keeper) BeginBlocker(ctx sdk.Context) { - defer telemetry.ModuleMeasureSince( - types.ModuleName, - time.Now(), - telemetry.MetricKeyBeginBlocker, - ) - k.IterateEpochInfo(ctx, func(index int64, epochInfo types.EpochInfo) (stop bool) { - logger := k.Logger(ctx) - - // If blocktime < initial epoch start time, return - if ctx.BlockTime().Before(epochInfo.StartTime) { - return - } - // if epoch counting hasn't started, signal we need to start. - shouldInitialEpochStart := !epochInfo.EpochCountingStarted - - epochEndTime := epochInfo.CurrentEpochStartTime.Add(epochInfo.Duration) - shouldEpochStart := (ctx.BlockTime().After(epochEndTime)) || shouldInitialEpochStart - - if !shouldEpochStart { - return false - } - epochInfo.CurrentEpochStartHeight = ctx.BlockHeight() - - if shouldInitialEpochStart { - epochInfo.EpochCountingStarted = true - epochInfo.CurrentEpoch = 1 - epochInfo.CurrentEpochStartTime = epochInfo.StartTime - logger.Info( - "Starting epoch", - "Identifier", - epochInfo.Identifier, - "CurEpoch", - epochInfo.CurrentEpoch, - ) - } else { - ctx.EventManager().EmitEvent( - sdk.NewEvent( - types.EventTypeEpochEnd, - sdk.NewAttribute(types.AttributeEpochNumber, fmt.Sprintf("%d", epochInfo.CurrentEpoch)), - ), - ) - k.AfterEpochEnd(ctx, epochInfo.Identifier) - epochInfo.CurrentEpoch++ - epochInfo.CurrentEpochStartTime = epochInfo.CurrentEpochStartTime.Add(epochInfo.Duration) - logger.Info("Starting epoch", "Identifier", epochInfo.Identifier, "CurEpoch", epochInfo.CurrentEpoch) - } - - // emit new epoch start event, set epoch info, and run BeforeEpochStart hook - ctx.EventManager().EmitEvent( - sdk.NewEvent( - types.EventTypeEpochStart, - sdk.NewAttribute( - types.AttributeEpochNumber, - fmt.Sprintf("%d", epochInfo.CurrentEpoch), - ), - sdk.NewAttribute( - types.AttributeEpochStartTime, - fmt.Sprintf("%d", epochInfo.CurrentEpochStartTime.Unix()), - ), - ), - ) - k.setEpochInfo(ctx, epochInfo) - k.BeforeEpochStart(ctx, epochInfo.Identifier) - - return false - }) -} diff --git a/x/epochs/keeper/abci_test.go b/x/epochs/keeper/abci_test.go deleted file mode 100644 index 223827ac6..000000000 --- a/x/epochs/keeper/abci_test.go +++ /dev/null @@ -1,302 +0,0 @@ -package keeper_test - -import ( - "testing" - "time" - - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/testutil" - "github.com/neutron-org/neutron/x/epochs/types" - - "golang.org/x/exp/maps" - - "github.com/neutron-org/neutron/utils" -) - -// This test is responsible for testing how epochs increment based off -// of their initial conditions, and subsequent block height / times. - -func (suite *EpochsTestSuite) TestEpochInfoBeginBlockChanges() { - block1Time := time.Unix(1656907200, 0).UTC() - const defaultIdentifier = "hourly" - const defaultDuration = time.Hour - // eps is short for epsilon - in this case a negligible amount of time. - const eps = time.Nanosecond - - tests := map[string]struct { - // if identifier, duration is not set, we make it defaultIdentifier and defaultDuration. - // EpochCountingStarted, if unspecified, is inferred by CurrentEpoch == 0 - // StartTime is inferred to be block1Time if left blank. - initialEpochInfo types.EpochInfo - blockHeightTimePairs map[int]time.Time - expEpochInfo types.EpochInfo - }{ - "First block running at exactly start time sets epoch tick": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 1, - CurrentEpochStartTime: block1Time, - CurrentEpochStartHeight: 1, - }, - }, - "First block run sets start time, subsequent blocks within timer interval do not cause timer tick": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - blockHeightTimePairs: map[int]time.Time{ - 2: block1Time.Add(time.Second), - 3: block1Time.Add(time.Minute), - 4: block1Time.Add(30 * time.Minute), - }, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 1, - CurrentEpochStartTime: block1Time, - CurrentEpochStartHeight: 1, - }, - }, - "Second block at exactly timer interval later does not tick": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - blockHeightTimePairs: map[int]time.Time{2: block1Time.Add(defaultDuration)}, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 1, - CurrentEpochStartTime: block1Time, - CurrentEpochStartHeight: 1, - }, - }, - "Second block at timer interval + epsilon later does tick": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - blockHeightTimePairs: map[int]time.Time{2: block1Time.Add(defaultDuration).Add(eps)}, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 2, - CurrentEpochStartTime: block1Time.Add(time.Hour), - CurrentEpochStartHeight: 2, - }, - }, - "Downtime recovery (many intervals), first block causes 1 tick and sets current start time 1 interval ahead": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - blockHeightTimePairs: map[int]time.Time{2: block1Time.Add(24 * time.Hour)}, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 2, - CurrentEpochStartTime: block1Time.Add(time.Hour), - CurrentEpochStartHeight: 2, - }, - }, - "Downtime recovery (many intervals), second block is at tick 2, w/ start time 2 intervals ahead": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - blockHeightTimePairs: map[int]time.Time{ - 2: block1Time.Add(24 * time.Hour), - 3: block1Time.Add(24 * time.Hour).Add(eps), - }, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 3, - CurrentEpochStartTime: block1Time.Add(2 * time.Hour), - CurrentEpochStartHeight: 3, - }, - }, - "Many blocks between first and second tick": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 1, - CurrentEpochStartTime: block1Time, - }, - blockHeightTimePairs: map[int]time.Time{ - 2: block1Time.Add(time.Second), - 3: block1Time.Add(2 * time.Second), - 4: block1Time.Add(time.Hour).Add(eps), - }, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time, - CurrentEpoch: 2, - CurrentEpochStartTime: block1Time.Add(time.Hour), - CurrentEpochStartHeight: 4, - }, - }, - "Distinct identifier and duration still works": { - initialEpochInfo: types.EpochInfo{ - Identifier: "hello", - Duration: time.Minute, - StartTime: block1Time, - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - blockHeightTimePairs: map[int]time.Time{ - 2: block1Time.Add(time.Second), - 3: block1Time.Add(time.Minute).Add(eps), - }, - expEpochInfo: types.EpochInfo{ - Identifier: "hello", - Duration: time.Minute, - StartTime: block1Time, - CurrentEpoch: 2, - CurrentEpochStartTime: block1Time.Add(time.Minute), - CurrentEpochStartHeight: 3, - }, - }, - "StartTime in future won't get ticked on first block": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time.Add(time.Second), - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - // currentEpochStartHeight is 1 because thats when the timer was created on-chain - expEpochInfo: types.EpochInfo{ - StartTime: block1Time.Add(time.Second), - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - CurrentEpochStartHeight: 1, - }, - }, - "StartTime in past will get ticked on first block": { - initialEpochInfo: types.EpochInfo{ - StartTime: block1Time.Add(-time.Second), - CurrentEpoch: 0, - CurrentEpochStartTime: time.Time{}, - }, - expEpochInfo: types.EpochInfo{ - StartTime: block1Time.Add(-time.Second), - CurrentEpoch: 1, - CurrentEpochStartTime: block1Time.Add(-time.Second), - CurrentEpochStartHeight: 1, - }, - }, - } - for name, test := range tests { - suite.Run(name, func() { - suite.SetupTest() - suite.Ctx = suite.Ctx.WithBlockHeight(1).WithBlockTime(block1Time) - initialEpoch := initializeBlankEpochInfoFields( - test.initialEpochInfo, - defaultIdentifier, - defaultDuration, - ) - err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, initialEpoch) - suite.Require().NoError(err) - suite.App.EpochsKeeper.BeginBlocker(suite.Ctx) - - // get sorted heights - heights := maps.Keys(test.blockHeightTimePairs) - utils.SortSlice(heights) - for _, h := range heights { - // for each height in order, run begin block - suite.Ctx = suite.Ctx.WithBlockHeight(int64(h)). - WithBlockTime(test.blockHeightTimePairs[h]) - suite.App.EpochsKeeper.BeginBlocker(suite.Ctx) - } - expEpoch := initializeBlankEpochInfoFields( - test.expEpochInfo, - initialEpoch.Identifier, - initialEpoch.Duration, - ) - actEpoch := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, initialEpoch.Identifier) - suite.Require().Equal(expEpoch, actEpoch) - }) - } -} - -// initializeBlankEpochInfoFields set identifier, duration and epochCountingStarted if blank in epoch -func initializeBlankEpochInfoFields( - epoch types.EpochInfo, - identifier string, - duration time.Duration, -) types.EpochInfo { - if epoch.Identifier == "" { - epoch.Identifier = identifier - } - if epoch.Duration == time.Duration(0) { - epoch.Duration = duration - } - epoch.EpochCountingStarted = (epoch.CurrentEpoch != 0) - - return epoch -} - -func TestEpochStartingOneMonthAfterInitGenesis(t *testing.T) { - app := testutil.Setup(t) - ctx := app.BaseApp.NewContext(false, tmproto.Header{}) - - // On init genesis, default epochs information is set - // To check init genesis again, should make it fresh status - epochInfos := app.EpochsKeeper.AllEpochInfos(ctx) - for _, epochInfo := range epochInfos { - app.EpochsKeeper.DeleteEpochInfo(ctx, epochInfo.Identifier) - } - - now := time.Now() - week := time.Hour * 24 * 7 - month := time.Hour * 24 * 30 - initialBlockHeight := int64(1) - ctx = ctx.WithBlockHeight(initialBlockHeight).WithBlockTime(now) - - app.EpochsKeeper.InitGenesis(ctx, types.GenesisState{ - Epochs: []types.EpochInfo{ - { - Identifier: "monthly", - StartTime: now.Add(month), - Duration: time.Hour * 24 * 30, - CurrentEpoch: 0, - CurrentEpochStartHeight: ctx.BlockHeight(), - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: false, - }, - }, - }) - - // epoch not started yet - epochInfo := app.EpochsKeeper.GetEpochInfo(ctx, "monthly") - require.Equal(t, epochInfo.CurrentEpoch, int64(0)) - require.Equal(t, epochInfo.CurrentEpochStartHeight, initialBlockHeight) - require.Equal(t, epochInfo.CurrentEpochStartTime, time.Time{}) - require.Equal(t, epochInfo.EpochCountingStarted, false) - - // after 1 week - ctx = ctx.WithBlockHeight(2).WithBlockTime(now.Add(week)) - app.EpochsKeeper.BeginBlocker(ctx) - - // epoch not started yet - epochInfo = app.EpochsKeeper.GetEpochInfo(ctx, "monthly") - require.Equal(t, epochInfo.CurrentEpoch, int64(0)) - require.Equal(t, epochInfo.CurrentEpochStartHeight, initialBlockHeight) - require.Equal(t, epochInfo.CurrentEpochStartTime, time.Time{}) - require.Equal(t, epochInfo.EpochCountingStarted, false) - - // after 1 month - ctx = ctx.WithBlockHeight(3).WithBlockTime(now.Add(month)) - app.EpochsKeeper.BeginBlocker(ctx) - - // epoch started - epochInfo = app.EpochsKeeper.GetEpochInfo(ctx, "monthly") - require.Equal(t, epochInfo.CurrentEpoch, int64(1)) - require.Equal(t, epochInfo.CurrentEpochStartHeight, ctx.BlockHeight()) - require.Equal(t, epochInfo.CurrentEpochStartTime.UTC().String(), now.Add(month).UTC().String()) - require.Equal(t, epochInfo.EpochCountingStarted, true) -} diff --git a/x/epochs/keeper/epoch.go b/x/epochs/keeper/epoch.go deleted file mode 100644 index 6bd2a3f43..000000000 --- a/x/epochs/keeper/epoch.go +++ /dev/null @@ -1,114 +0,0 @@ -package keeper - -import ( - "fmt" - "time" - - "github.com/cosmos/gogoproto/proto" - - "github.com/neutron-org/neutron/x/epochs/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// GetEpochInfo returns epoch info by identifier. -func (k Keeper) GetEpochInfo(ctx sdk.Context, identifier string) types.EpochInfo { - epoch := types.EpochInfo{} - store := ctx.KVStore(k.storeKey) - b := store.Get(append(types.KeyPrefixEpoch, []byte(identifier)...)) - if b == nil { - return epoch - } - err := proto.Unmarshal(b, &epoch) - if err != nil { - panic(err) - } - - return epoch -} - -// AddEpochInfo adds a new epoch info. Will return an error if the epoch fails validation, -// or re-uses an existing identifier. -// This method also sets the start time if left unset, and sets the epoch start height. -func (k Keeper) AddEpochInfo(ctx sdk.Context, epoch types.EpochInfo) error { - if err := epoch.Validate(); err != nil { - return err - } - // Check if identifier already exists - if (k.GetEpochInfo(ctx, epoch.Identifier) != types.EpochInfo{}) { - return fmt.Errorf("epoch with identifier %s already exists", epoch.Identifier) - } - - // Initialize empty and default epoch values - if epoch.StartTime.Equal(time.Time{}) { - epoch.StartTime = ctx.BlockTime() - } - epoch.CurrentEpochStartHeight = ctx.BlockHeight() - k.setEpochInfo(ctx, epoch) - - return nil -} - -// setEpochInfo set epoch info. -func (k Keeper) setEpochInfo(ctx sdk.Context, epoch types.EpochInfo) { - store := ctx.KVStore(k.storeKey) - value, err := proto.Marshal(&epoch) - if err != nil { - panic(err) - } - store.Set(append(types.KeyPrefixEpoch, []byte(epoch.Identifier)...), value) -} - -// DeleteEpochInfo delete epoch info. -func (k Keeper) DeleteEpochInfo(ctx sdk.Context, identifier string) { - store := ctx.KVStore(k.storeKey) - store.Delete(append(types.KeyPrefixEpoch, []byte(identifier)...)) -} - -// IterateEpochInfo iterate through epochs. -func (k Keeper) IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) { - store := ctx.KVStore(k.storeKey) - - iterator := sdk.KVStorePrefixIterator(store, types.KeyPrefixEpoch) - defer iterator.Close() - - i := int64(0) - - for ; iterator.Valid(); iterator.Next() { - epoch := types.EpochInfo{} - err := proto.Unmarshal(iterator.Value(), &epoch) - if err != nil { - panic(err) - } - stop := fn(i, epoch) - - if stop { - break - } - i++ - } -} - -// AllEpochInfos iterate through epochs to return all epochs info. -func (k Keeper) AllEpochInfos(ctx sdk.Context) []types.EpochInfo { - epochs := []types.EpochInfo{} - k.IterateEpochInfo(ctx, func(index int64, epochInfo types.EpochInfo) (stop bool) { - epochs = append(epochs, epochInfo) - return false - }) - - return epochs -} - -// NumBlocksSinceEpochStart returns the number of blocks since the epoch started. -// if the epoch started on block N, then calling this during block N (after BeforeEpochStart) -// would return 0. -// Calling it any point in block N+1 (assuming the epoch doesn't increment) would return 1. -func (k Keeper) NumBlocksSinceEpochStart(ctx sdk.Context, identifier string) (int64, error) { - epoch := k.GetEpochInfo(ctx, identifier) - if (epoch == types.EpochInfo{}) { - return 0, fmt.Errorf("epoch with identifier %s not found", identifier) - } - - return ctx.BlockHeight() - epoch.CurrentEpochStartHeight, nil -} diff --git a/x/epochs/keeper/epoch_test.go b/x/epochs/keeper/epoch_test.go deleted file mode 100644 index 94ab6c0d3..000000000 --- a/x/epochs/keeper/epoch_test.go +++ /dev/null @@ -1,99 +0,0 @@ -package keeper_test - -import ( - "time" - - "github.com/neutron-org/neutron/x/epochs/types" -) - -func (suite *EpochsTestSuite) TestAddEpochInfo() { - defaultIdentifier := "default_add_epoch_info_id" - defaultDuration := time.Hour - startBlockHeight := int64(100) - startBlockTime := time.Unix(1656907200, 0).UTC() - tests := map[string]struct { - addedEpochInfo types.EpochInfo - expErr bool - expEpochInfo types.EpochInfo - }{ - "simple_add": { - addedEpochInfo: types.EpochInfo{ - Identifier: defaultIdentifier, - StartTime: time.Time{}, - Duration: defaultDuration, - CurrentEpoch: 0, - CurrentEpochStartHeight: 0, - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: false, - }, - expErr: false, - expEpochInfo: types.EpochInfo{ - Identifier: defaultIdentifier, - StartTime: startBlockTime, - Duration: defaultDuration, - CurrentEpoch: 0, - CurrentEpochStartHeight: startBlockHeight, - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: false, - }, - }, - "zero_duration": { - addedEpochInfo: types.EpochInfo{ - Identifier: defaultIdentifier, - StartTime: time.Time{}, - Duration: time.Duration(0), - CurrentEpoch: 0, - CurrentEpochStartHeight: 0, - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: false, - }, - expErr: true, - }, - } - for name, test := range tests { - suite.Run(name, func() { - suite.SetupTest() - suite.Ctx = suite.Ctx.WithBlockHeight(startBlockHeight).WithBlockTime(startBlockTime) - err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, test.addedEpochInfo) - if !test.expErr { - suite.Require().NoError(err) - actualEpochInfo := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, test.addedEpochInfo.Identifier) - suite.Require().Equal(test.expEpochInfo, actualEpochInfo) - } else { - suite.Require().Error(err) - } - }) - } -} - -func (suite *EpochsTestSuite) TestDuplicateAddEpochInfo() { - identifier := "duplicate_add_epoch_info" - epochInfo := types.NewGenesisEpochInfo(identifier, time.Hour*24*30) - err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) - suite.Require().NoError(err) - err = suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) - suite.Require().Error(err) -} - -func (suite *EpochsTestSuite) TestEpochLifeCycle() { - suite.SetupTest() - - epochInfo := types.NewGenesisEpochInfo("monthly", time.Hour*24*30) - err := suite.App.EpochsKeeper.AddEpochInfo(suite.Ctx, epochInfo) - suite.Require().NoError(err) - - epochInfoSaved := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, "monthly") - - // setup expected epoch info - expectedEpochInfo := epochInfo - expectedEpochInfo.StartTime = suite.Ctx.BlockTime() - expectedEpochInfo.CurrentEpochStartHeight = suite.Ctx.BlockHeight() - suite.Require().Equal(expectedEpochInfo, epochInfoSaved) - - allEpochs := suite.App.EpochsKeeper.AllEpochInfos(suite.Ctx) - suite.Require().Len(allEpochs, 4) - suite.Require().Equal(allEpochs[0].Identifier, "day") // alphabetical order - suite.Require().Equal(allEpochs[1].Identifier, "hour") - suite.Require().Equal(allEpochs[2].Identifier, "monthly") - suite.Require().Equal(allEpochs[3].Identifier, "week") -} diff --git a/x/epochs/keeper/genesis.go b/x/epochs/keeper/genesis.go deleted file mode 100644 index 00fd79188..000000000 --- a/x/epochs/keeper/genesis.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/neutron-org/neutron/x/epochs/types" -) - -// InitGenesis sets epoch info from genesis -func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { - for _, epoch := range genState.Epochs { - err := k.AddEpochInfo(ctx, epoch) - if err != nil { - panic(err) - } - } -} - -// ExportGenesis returns the capability module's exported genesis. -func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { - genesis := types.DefaultGenesis() - genesis.Epochs = k.AllEpochInfos(ctx) - return genesis -} diff --git a/x/epochs/keeper/genesis_test.go b/x/epochs/keeper/genesis_test.go deleted file mode 100644 index 2d685b0fd..000000000 --- a/x/epochs/keeper/genesis_test.go +++ /dev/null @@ -1,96 +0,0 @@ -package keeper_test - -import ( - "testing" - "time" - - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/testutil" - "github.com/neutron-org/neutron/x/epochs/types" -) - -func TestEpochsExportGenesis(t *testing.T) { - app := testutil.Setup(t) - ctx := app.BaseApp.NewContext(false, tmproto.Header{}) - - chainStartTime := ctx.BlockTime() - - genesis := app.EpochsKeeper.ExportGenesis(ctx) - require.Len(t, genesis.Epochs, 3) - - expectedEpochs := types.DefaultGenesis().Epochs - for i := 0; i < len(expectedEpochs); i++ { - expectedEpochs[i].CurrentEpochStartHeight = 2 - expectedEpochs[i].CurrentEpochStartTime = chainStartTime - expectedEpochs[i].EpochCountingStarted = true - expectedEpochs[i].CurrentEpoch = 1 - } - require.Equal(t, expectedEpochs, genesis.Epochs) -} - -func TestEpochsInitGenesis(t *testing.T) { - app := testutil.Setup(t) - ctx := app.BaseApp.NewContext(false, tmproto.Header{}) - - // On init genesis, default epochs information is set - // To check init genesis again, should make it fresh status - epochInfos := app.EpochsKeeper.AllEpochInfos(ctx) - for _, epochInfo := range epochInfos { - app.EpochsKeeper.DeleteEpochInfo(ctx, epochInfo.Identifier) - } - - now := time.Now() - ctx = ctx.WithBlockHeight(1) - ctx = ctx.WithBlockTime(now) - - // test genesisState validation - genesisState := types.GenesisState{ - Epochs: []types.EpochInfo{ - { - Identifier: "monthly", - StartTime: time.Time{}, - Duration: time.Hour * 24, - CurrentEpoch: 0, - CurrentEpochStartHeight: ctx.BlockHeight(), - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: true, - }, - { - Identifier: "monthly", - StartTime: time.Time{}, - Duration: time.Hour * 24, - CurrentEpoch: 0, - CurrentEpochStartHeight: ctx.BlockHeight(), - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: true, - }, - }, - } - require.EqualError(t, genesisState.Validate(), "epoch identifier should be unique") - - genesisState = types.GenesisState{ - Epochs: []types.EpochInfo{ - { - Identifier: "monthly", - StartTime: time.Time{}, - Duration: time.Hour * 24, - CurrentEpoch: 0, - CurrentEpochStartHeight: ctx.BlockHeight(), - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: true, - }, - }, - } - - app.EpochsKeeper.InitGenesis(ctx, genesisState) - epochInfo := app.EpochsKeeper.GetEpochInfo(ctx, "monthly") - require.Equal(t, epochInfo.Identifier, "monthly") - require.Equal(t, epochInfo.StartTime.UTC().String(), now.UTC().String()) - require.Equal(t, epochInfo.Duration, time.Hour*24) - require.Equal(t, epochInfo.CurrentEpoch, int64(0)) - require.Equal(t, epochInfo.CurrentEpochStartHeight, ctx.BlockHeight()) - require.Equal(t, epochInfo.CurrentEpochStartTime.UTC().String(), time.Time{}.String()) - require.Equal(t, epochInfo.EpochCountingStarted, true) -} diff --git a/x/epochs/keeper/grpc_query.go b/x/epochs/keeper/grpc_query.go deleted file mode 100644 index 283bf32ae..000000000 --- a/x/epochs/keeper/grpc_query.go +++ /dev/null @@ -1,60 +0,0 @@ -package keeper - -import ( - "context" - "errors" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/neutron-org/neutron/x/epochs/types" -) - -var _ types.QueryServer = Querier{} - -// Querier defines a wrapper around the x/epochs keeper providing gRPC method -// handlers. -type Querier struct { - Keeper -} - -// NewQuerier initializes new querier. -func NewQuerier(k Keeper) Querier { - return Querier{Keeper: k} -} - -// EpochInfos provide running epochInfos. -func (q Querier) EpochInfos( - c context.Context, - _ *types.QueryEpochsInfoRequest, -) (*types.QueryEpochsInfoResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - - return &types.QueryEpochsInfoResponse{ - Epochs: q.Keeper.AllEpochInfos(ctx), - }, nil -} - -// CurrentEpoch provides current epoch of specified identifier. -func (q Querier) CurrentEpoch(c context.Context, - req *types.QueryCurrentEpochRequest, -) (*types.QueryCurrentEpochResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - if req.Identifier == "" { - return nil, status.Error(codes.InvalidArgument, "identifier is empty") - } - - ctx := sdk.UnwrapSDKContext(c) - - info := q.Keeper.GetEpochInfo(ctx, req.Identifier) - if info.Identifier != req.Identifier { - return nil, errors.New("not available identifier") - } - - return &types.QueryCurrentEpochResponse{ - CurrentEpoch: info.CurrentEpoch, - }, nil -} diff --git a/x/epochs/keeper/grpc_query_test.go b/x/epochs/keeper/grpc_query_test.go deleted file mode 100644 index a2b5c8c95..000000000 --- a/x/epochs/keeper/grpc_query_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package keeper_test - -import ( - gocontext "context" - - "github.com/neutron-org/neutron/x/epochs/types" -) - -func (suite *EpochsTestSuite) TestQueryEpochInfos() { - suite.SetupTest() - queryClient := suite.queryClient - - // Check that querying epoch infos on default genesis returns the default genesis epoch infos - epochInfosResponse, err := queryClient.EpochInfos( - gocontext.Background(), - &types.QueryEpochsInfoRequest{}, - ) - suite.Require().NoError(err) - suite.Require().Len(epochInfosResponse.Epochs, 3) - - expectedEpochs := types.DefaultGenesis().Epochs - for id := range expectedEpochs { - expectedEpochs[id].StartTime = suite.Ctx.BlockTime() - expectedEpochs[id].CurrentEpochStartHeight = suite.Ctx.BlockHeight() - expectedEpochs[id].CurrentEpoch = 1 - expectedEpochs[id].EpochCountingStarted = true - } - - suite.Require().Equal(expectedEpochs, epochInfosResponse.Epochs) -} diff --git a/x/epochs/keeper/hooks.go b/x/epochs/keeper/hooks.go deleted file mode 100644 index 5828d2ef6..000000000 --- a/x/epochs/keeper/hooks.go +++ /dev/null @@ -1,22 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// AfterEpochEnd gets called at the end of the epoch, -// end of epoch is the timestamp of first block produced after epoch duration. -func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string) { - // Error is not handled as AfterEpochEnd Hooks use utils.ApplyFuncIfNoError() - if k.hooks != nil { - _ = k.hooks.AfterEpochEnd(ctx, identifier) - } -} - -// BeforeEpochStart new epoch is next block of epoch end block -func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string) { - // Error is not handled as BeforeEpochStart Hooks use utils.ApplyFuncIfNoError() - if k.hooks != nil { - _ = k.hooks.BeforeEpochStart(ctx, identifier) - } -} diff --git a/x/epochs/keeper/keeper.go b/x/epochs/keeper/keeper.go deleted file mode 100644 index 583d4f598..000000000 --- a/x/epochs/keeper/keeper.go +++ /dev/null @@ -1,41 +0,0 @@ -package keeper - -import ( - "fmt" - - "github.com/cometbft/cometbft/libs/log" - - "github.com/neutron-org/neutron/x/epochs/types" - - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type ( - Keeper struct { - storeKey storetypes.StoreKey - hooks types.EpochHooks - } -) - -// NewKeeper returns a new keeper by codec and storeKey inputs. -func NewKeeper(storeKey storetypes.StoreKey) *Keeper { - return &Keeper{ - storeKey: storeKey, - } -} - -// Set the gamm hooks. -func (k *Keeper) SetHooks(eh types.EpochHooks) *Keeper { - if k.hooks != nil { - panic("cannot set epochs hooks twice") - } - - k.hooks = eh - - return k -} - -func (k Keeper) Logger(ctx sdk.Context) log.Logger { - return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} diff --git a/x/epochs/keeper/keeper_test.go b/x/epochs/keeper/keeper_test.go deleted file mode 100644 index 4871e2de1..000000000 --- a/x/epochs/keeper/keeper_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/suite" - - "github.com/neutron-org/neutron/testutil/apptesting" - "github.com/neutron-org/neutron/x/epochs/types" -) - -type EpochsTestSuite struct { - apptesting.KeeperTestHelper - queryClient types.QueryClient -} - -func (suite *EpochsTestSuite) SetupTest() { - suite.Setup() - suite.queryClient = types.NewQueryClient(suite.QueryHelper) -} - -func TestEpochsTestSuite(t *testing.T) { - suite.Run(t, new(EpochsTestSuite)) -} diff --git a/x/epochs/module.go b/x/epochs/module.go deleted file mode 100644 index 9bf259b38..000000000 --- a/x/epochs/module.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Often in the SDK, we would like to run certain code every-so often. The -purpose of `epochs` module is to allow other modules to set that they -would like to be signaled once every period. So another module can -specify it wants to execute code once a week, starting at UTC-time = x. -`epochs` creates a generalized epoch interface to other modules so that -they can easily be signalled upon such events. - - Contains functionality for querying epoch. - - Events for BeginBlock and EndBlock. - - Initialization for epoch-related infos. -*/ - -package epochs - -import ( - "context" - "encoding/json" - "fmt" - - abci "github.com/cometbft/cometbft/abci/types" - "github.com/gorilla/mux" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - "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/neutron-org/neutron/x/epochs/client/cli" - "github.com/neutron-org/neutron/x/epochs/keeper" - "github.com/neutron-org/neutron/x/epochs/types" -) - -var ( - _ module.AppModule = AppModule{} - _ module.AppModuleBasic = AppModuleBasic{} -) - -// ---------------------------------------------------------------------------- -// AppModuleBasic -// ---------------------------------------------------------------------------- - -// AppModuleBasic implements the AppModuleBasic interface for the capability module. -type AppModuleBasic struct{} - -func NewAppModuleBasic() AppModuleBasic { - return AppModuleBasic{} -} - -// Name returns the capability module's name. -func (AppModuleBasic) Name() string { - return types.ModuleName -} - -// RegisterLegacyAminoCodec registers the module's Amino codec that properly handles protobuf types with Any's. -func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} - -// RegisterInterfaces registers the module's interface types. -func (a AppModuleBasic) RegisterInterfaces(_ cdctypes.InterfaceRegistry) {} - -// DefaultGenesis returns the capability module's default genesis state. -func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { - return cdc.MustMarshalJSON(types.DefaultGenesis()) -} - -// ValidateGenesis performs genesis state validation for the capability module. -func (AppModuleBasic) ValidateGenesis( - cdc codec.JSONCodec, - _ client.TxEncodingConfig, - bz json.RawMessage, -) error { - var genState types.GenesisState - if err := cdc.UnmarshalJSON(bz, &genState); err != nil { - return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) - } - - return genState.Validate() -} - -// RegisterRESTRoutes registers the capability module's REST service handlers. -func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) {} - -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) //nolint:errcheck -} - -// GetTxCmd returns the capability module's root tx command. -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return nil -} - -// GetQueryCmd returns the capability module's root query command. -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd() -} - -// ---------------------------------------------------------------------------- -// AppModule -// ---------------------------------------------------------------------------- - -// AppModule implements the AppModule interface for the capability module. -type AppModule struct { - AppModuleBasic - - keeper keeper.Keeper -} - -func NewAppModule(keeper keeper.Keeper) AppModule { - return AppModule{ - AppModuleBasic: NewAppModuleBasic(), - keeper: keeper, - } -} - -// Name returns the capability module's name. -func (am AppModule) Name() string { - return am.AppModuleBasic.Name() -} - -// QuerierRoute returns the capability module's query routing key. -func (AppModule) QuerierRoute() string { return types.QuerierRoute } - -// 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(), keeper.NewQuerier(am.keeper)) -} - -// RegisterInvariants registers the capability module's invariants. -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} - -// InitGenesis performs the capability module's genesis initialization It returns -// no validator updates. -func (am AppModule) InitGenesis( - ctx sdk.Context, - cdc codec.JSONCodec, - gs json.RawMessage, -) []abci.ValidatorUpdate { - var genState types.GenesisState - // Initialize global index to index in genesis state - cdc.MustUnmarshalJSON(gs, &genState) - - am.keeper.InitGenesis(ctx, genState) - - return []abci.ValidatorUpdate{} -} - -// ExportGenesis returns the capability module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := am.keeper.ExportGenesis(ctx) - return cdc.MustMarshalJSON(genState) -} - -// BeginBlock executes all ABCI BeginBlock logic respective to the capability module. -func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { - am.keeper.BeginBlocker(ctx) -} - -// EndBlock executes all ABCI EndBlock logic respective to the capability module. It -// returns no validator updates. -func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { - return []abci.ValidatorUpdate{} -} - -// ConsensusVersion implements AppModule/ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 1 } diff --git a/x/epochs/types/doc.go b/x/epochs/types/doc.go deleted file mode 100644 index c1b138dfb..000000000 --- a/x/epochs/types/doc.go +++ /dev/null @@ -1,4 +0,0 @@ -/* -Package types translates gRPC into RESTful JSON APIs. -*/ -package types diff --git a/x/epochs/types/events.go b/x/epochs/types/events.go deleted file mode 100644 index da0ac836e..000000000 --- a/x/epochs/types/events.go +++ /dev/null @@ -1,9 +0,0 @@ -package types - -const ( - EventTypeEpochEnd = "epoch_end" - EventTypeEpochStart = "epoch_start" - - AttributeEpochNumber = "epoch_number" - AttributeEpochStartTime = "start_time" -) diff --git a/x/epochs/types/genesis.go b/x/epochs/types/genesis.go deleted file mode 100644 index 3aadcce3b..000000000 --- a/x/epochs/types/genesis.go +++ /dev/null @@ -1,68 +0,0 @@ -package types - -import ( - "errors" - "time" -) - -func NewGenesisState(epochs []EpochInfo) *GenesisState { - return &GenesisState{Epochs: epochs} -} - -// DefaultGenesis returns the default Capability genesis state. -func DefaultGenesis() *GenesisState { - epochs := []EpochInfo{ - NewGenesisEpochInfo("day", time.Hour*24), // alphabetical order - NewGenesisEpochInfo("hour", time.Hour), - NewGenesisEpochInfo("week", time.Hour*24*7), - } - - return NewGenesisState(epochs) -} - -// Validate performs basic genesis state validation returning an error upon any -// failure. -func (gs GenesisState) Validate() error { - epochIdentifiers := map[string]bool{} - for _, epoch := range gs.Epochs { - if err := epoch.Validate(); err != nil { - return err - } - if epochIdentifiers[epoch.Identifier] { - return errors.New("epoch identifier should be unique") - } - epochIdentifiers[epoch.Identifier] = true - } - - return nil -} - -// Validate also validates epoch info. -func (epoch EpochInfo) Validate() error { - if epoch.Identifier == "" { - return errors.New("epoch identifier should NOT be empty") - } - if epoch.Duration == 0 { - return errors.New("epoch duration should NOT be 0") - } - if epoch.CurrentEpoch < 0 { - return errors.New("epoch CurrentEpoch must be non-negative") - } - if epoch.CurrentEpochStartHeight < 0 { - return errors.New("epoch CurrentEpoch must be non-negative") - } - - return nil -} - -func NewGenesisEpochInfo(identifier string, duration time.Duration) EpochInfo { - return EpochInfo{ - Identifier: identifier, - StartTime: time.Time{}, - Duration: duration, - CurrentEpoch: 0, - CurrentEpochStartHeight: 0, - CurrentEpochStartTime: time.Time{}, - EpochCountingStarted: false, - } -} diff --git a/x/epochs/types/genesis.pb.go b/x/epochs/types/genesis.pb.go deleted file mode 100644 index d89510958..000000000 --- a/x/epochs/types/genesis.pb.go +++ /dev/null @@ -1,820 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/epochs/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - _ "google.golang.org/protobuf/types/known/durationpb" - _ "google.golang.org/protobuf/types/known/timestamppb" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// EpochInfo is a struct that describes the data going into -// a timer defined by the x/epochs module. -type EpochInfo struct { - // identifier is a unique reference to this particular timer. - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - // start_time is the time at which the timer first ever ticks. - // If start_time is in the future, the epoch will not begin until the start - // time. - StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` - // duration is the time in between epoch ticks. - // In order for intended behavior to be met, duration should - // be greater than the chains expected block time. - // Duration must be non-zero. - Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"` - // current_epoch is the current epoch number, or in other words, - // how many times has the timer 'ticked'. - // The first tick (current_epoch=1) is defined as - // the first block whose blocktime is greater than the EpochInfo start_time. - CurrentEpoch int64 `protobuf:"varint,4,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` - // current_epoch_start_time describes the start time of the current timer - // interval. The interval is (current_epoch_start_time, - // current_epoch_start_time + duration] When the timer ticks, this is set to - // current_epoch_start_time = last_epoch_start_time + duration only one timer - // tick for a given identifier can occur per block. - // - // NOTE! The current_epoch_start_time may diverge significantly from the - // wall-clock time the epoch began at. Wall-clock time of epoch start may be - // >> current_epoch_start_time. Suppose current_epoch_start_time = 10, - // duration = 5. Suppose the chain goes offline at t=14, and comes back online - // at t=30, and produces blocks at every successive time. (t=31, 32, etc.) - // * The t=30 block will start the epoch for (10, 15] - // * The t=31 block will start the epoch for (15, 20] - // * The t=32 block will start the epoch for (20, 25] - // * The t=33 block will start the epoch for (25, 30] - // * The t=34 block will start the epoch for (30, 35] - // * The **t=36** block will start the epoch for (35, 40] - CurrentEpochStartTime time.Time `protobuf:"bytes,5,opt,name=current_epoch_start_time,json=currentEpochStartTime,proto3,stdtime" json:"current_epoch_start_time" yaml:"current_epoch_start_time"` - // epoch_counting_started is a boolean, that indicates whether this - // epoch timer has began yet. - EpochCountingStarted bool `protobuf:"varint,6,opt,name=epoch_counting_started,json=epochCountingStarted,proto3" json:"epoch_counting_started,omitempty"` - // current_epoch_start_height is the block height at which the current epoch - // started. (The block height at which the timer last ticked) - CurrentEpochStartHeight int64 `protobuf:"varint,8,opt,name=current_epoch_start_height,json=currentEpochStartHeight,proto3" json:"current_epoch_start_height,omitempty"` -} - -func (m *EpochInfo) Reset() { *m = EpochInfo{} } -func (m *EpochInfo) String() string { return proto.CompactTextString(m) } -func (*EpochInfo) ProtoMessage() {} -func (*EpochInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_924a4bf36f8131d7, []int{0} -} -func (m *EpochInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochInfo.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 *EpochInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochInfo.Merge(m, src) -} -func (m *EpochInfo) XXX_Size() int { - return m.Size() -} -func (m *EpochInfo) XXX_DiscardUnknown() { - xxx_messageInfo_EpochInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochInfo proto.InternalMessageInfo - -func (m *EpochInfo) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -func (m *EpochInfo) GetStartTime() time.Time { - if m != nil { - return m.StartTime - } - return time.Time{} -} - -func (m *EpochInfo) GetDuration() time.Duration { - if m != nil { - return m.Duration - } - return 0 -} - -func (m *EpochInfo) GetCurrentEpoch() int64 { - if m != nil { - return m.CurrentEpoch - } - return 0 -} - -func (m *EpochInfo) GetCurrentEpochStartTime() time.Time { - if m != nil { - return m.CurrentEpochStartTime - } - return time.Time{} -} - -func (m *EpochInfo) GetEpochCountingStarted() bool { - if m != nil { - return m.EpochCountingStarted - } - return false -} - -func (m *EpochInfo) GetCurrentEpochStartHeight() int64 { - if m != nil { - return m.CurrentEpochStartHeight - } - return 0 -} - -// GenesisState defines the epochs module's genesis state. -type GenesisState struct { - Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` -} - -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_924a4bf36f8131d7, []int{1} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetEpochs() []EpochInfo { - if m != nil { - return m.Epochs - } - return nil -} - -func init() { - proto.RegisterType((*EpochInfo)(nil), "neutron.epochs.EpochInfo") - proto.RegisterType((*GenesisState)(nil), "neutron.epochs.GenesisState") -} - -func init() { proto.RegisterFile("neutron/epochs/genesis.proto", fileDescriptor_924a4bf36f8131d7) } - -var fileDescriptor_924a4bf36f8131d7 = []byte{ - // 463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4d, 0x8f, 0xd3, 0x30, - 0x10, 0xad, 0x69, 0x29, 0xa9, 0x59, 0xbe, 0xac, 0x05, 0x42, 0x05, 0x49, 0x14, 0x2e, 0x95, 0x60, - 0x13, 0xf1, 0x21, 0x21, 0xc1, 0xad, 0x80, 0x0a, 0x1c, 0x53, 0x0e, 0x88, 0x4b, 0x95, 0xb6, 0xae, - 0x63, 0x69, 0x63, 0x47, 0xc9, 0x44, 0xa2, 0x37, 0x7e, 0x42, 0x8f, 0xfc, 0xa4, 0x3d, 0xee, 0x91, - 0x53, 0x40, 0xed, 0x8d, 0xe3, 0xfe, 0x02, 0x14, 0xdb, 0x29, 0x5d, 0x0a, 0xda, 0x9b, 0x33, 0xef, - 0xcd, 0x7b, 0x9e, 0x97, 0x31, 0xbe, 0x2f, 0x68, 0x09, 0xb9, 0x14, 0x21, 0xcd, 0xe4, 0x2c, 0x29, - 0x42, 0x46, 0x05, 0x2d, 0x78, 0x11, 0x64, 0xb9, 0x04, 0x49, 0xae, 0x1b, 0x34, 0xd0, 0x68, 0xff, - 0x90, 0x49, 0x26, 0x15, 0x14, 0xd6, 0x27, 0xcd, 0xea, 0x3b, 0x4c, 0x4a, 0x76, 0x4c, 0x43, 0xf5, - 0x35, 0x2d, 0x17, 0xe1, 0xbc, 0xcc, 0x63, 0xe0, 0x52, 0x18, 0xdc, 0xfd, 0x1b, 0x07, 0x9e, 0xd2, - 0x02, 0xe2, 0x34, 0xd3, 0x04, 0x7f, 0xd5, 0xc1, 0xbd, 0xb7, 0xb5, 0xc3, 0x7b, 0xb1, 0x90, 0xc4, - 0xc1, 0x98, 0xcf, 0xa9, 0x00, 0xbe, 0xe0, 0x34, 0xb7, 0x91, 0x87, 0x06, 0xbd, 0x68, 0xa7, 0x42, - 0x3e, 0x61, 0x5c, 0x40, 0x9c, 0xc3, 0xa4, 0x96,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xa6, 0xe5, 0x8f, - 0xf0, 0xc1, 0x48, 0xaf, 0xe2, 0x18, 0x62, 0xa0, 0xe4, 0x05, 0xee, 0xea, 0x1d, 0xb4, 0x91, 0xd7, - 0x56, 0x3f, 0xe6, 0xfc, 0x6a, 0x06, 0xdb, 0xfd, 0x19, 0x76, 0xea, 0xb9, 0x23, 0x43, 0x1f, 0x8e, - 0x4e, 0xd6, 0x0e, 0x3a, 0x5d, 0x3b, 0xe8, 0xe7, 0xda, 0x41, 0xab, 0x8d, 0xd3, 0x3a, 0xdd, 0x38, - 0xad, 0xef, 0x1b, 0xa7, 0xf5, 0xf9, 0x88, 0x71, 0x48, 0xca, 0x69, 0x30, 0x93, 0x69, 0x68, 0xc4, - 0x8e, 0x64, 0xce, 0x9a, 0x73, 0xf8, 0xa5, 0x79, 0x13, 0xb0, 0xcc, 0x68, 0x31, 0xed, 0xaa, 0x88, - 0x9f, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x27, 0xb8, 0xfb, 0x5b, 0x32, 0x03, 0x00, 0x00, -} - -func (m *EpochInfo) 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 *EpochInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentEpochStartHeight != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpochStartHeight)) - i-- - dAtA[i] = 0x40 - } - if m.EpochCountingStarted { - i-- - if m.EpochCountingStarted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CurrentEpochStartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CurrentEpochStartTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintGenesis(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x2a - if m.CurrentEpoch != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpoch)) - i-- - dAtA[i] = 0x20 - } - n2, err2 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.Duration):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintGenesis(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x1a - n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintGenesis(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x12 - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Epochs) > 0 { - for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EpochInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) - n += 1 + l + sovGenesis(uint64(l)) - l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.Duration) - n += 1 + l + sovGenesis(uint64(l)) - if m.CurrentEpoch != 0 { - n += 1 + sovGenesis(uint64(m.CurrentEpoch)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CurrentEpochStartTime) - n += 1 + l + sovGenesis(uint64(l)) - if m.EpochCountingStarted { - n += 2 - } - if m.CurrentEpochStartHeight != 0 { - n += 1 + sovGenesis(uint64(m.CurrentEpochStartHeight)) - } - return n -} - -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Epochs) > 0 { - for _, e := range m.Epochs { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *EpochInfo) 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 ErrIntOverflowGenesis - } - 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: EpochInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) - } - m.CurrentEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CurrentEpochStartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochCountingStarted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochCountingStarted = bool(v != 0) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartHeight", wireType) - } - m.CurrentEpochStartHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentEpochStartHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Epochs = append(m.Epochs, EpochInfo{}) - if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/epochs/types/hooks.go b/x/epochs/types/hooks.go deleted file mode 100644 index d3cab5e61..000000000 --- a/x/epochs/types/hooks.go +++ /dev/null @@ -1,64 +0,0 @@ -package types - -import ( - fmt "fmt" - - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/neutron-org/neutron/utils" -) - -type EpochHooks interface { - // the first block whose timestamp is after the duration is counted as the end of the epoch - AfterEpochEnd(ctx sdk.Context, epochIdentifier string) error - // new epoch is next block of epoch end block - BeforeEpochStart(ctx sdk.Context, epochIdentifier string) error -} - -var _ EpochHooks = MultiEpochHooks{} - -// combine multiple gamm hooks, all hook functions are run in array sequence. -type MultiEpochHooks []EpochHooks - -func NewMultiEpochHooks(hooks ...EpochHooks) MultiEpochHooks { - return hooks -} - -// AfterEpochEnd is called when epoch is going to be ended, epochNumber is the number of epoch that is ending. -func (h MultiEpochHooks) AfterEpochEnd( - ctx sdk.Context, - epochIdentifier string, -) error { - for i := range h { - panicCatchingEpochHook(ctx, h[i].AfterEpochEnd, epochIdentifier) - } - - return nil -} - -// BeforeEpochStart is called when epoch is going to be started, epochNumber is the number of epoch that is starting. -func (h MultiEpochHooks) BeforeEpochStart( - ctx sdk.Context, - epochIdentifier string, -) error { - for i := range h { - panicCatchingEpochHook(ctx, h[i].BeforeEpochStart, epochIdentifier) - } - - return nil -} - -func panicCatchingEpochHook( - ctx sdk.Context, - hookFn func(ctx sdk.Context, epochIdentifier string) error, - epochIdentifier string, -) { - wrappedHookFn := func(ctx sdk.Context) error { - return hookFn(ctx, epochIdentifier) - } - // TODO: Thread info for which hook this is, may be dependent on larger hook system refactoring - err := utils.ApplyFuncIfNoError(ctx, wrappedHookFn) - if err != nil { - ctx.Logger().Error(fmt.Sprintf("error in epoch hook %v", err)) - } -} diff --git a/x/epochs/types/hooks_test.go b/x/epochs/types/hooks_test.go deleted file mode 100644 index 84475d652..000000000 --- a/x/epochs/types/hooks_test.go +++ /dev/null @@ -1,163 +0,0 @@ -package types_test - -import ( - "testing" - - "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/suite" - - "github.com/neutron-org/neutron/x/epochs/types" -) - -type KeeperTestSuite struct { - suite.Suite - Ctx sdk.Context -} - -func TestKeeperTestSuite(t *testing.T) { - suite.Run(t, new(KeeperTestSuite)) -} - -func (s *KeeperTestSuite) SetupTest() { - s.Ctx = testutil.DefaultContext( - sdk.NewKVStoreKey(types.StoreKey), - sdk.NewTransientStoreKey("transient_test"), - ) -} - -func dummyAfterEpochEndEvent(epochIdentifier string) sdk.Event { - return sdk.NewEvent( - "afterEpochEnd", - sdk.NewAttribute("epochIdentifier", epochIdentifier), - ) -} - -func dummyBeforeEpochStartEvent(epochIdentifier string) sdk.Event { - return sdk.NewEvent( - "beforeEpochStart", - sdk.NewAttribute("epochIdentifier", epochIdentifier), - ) -} - -var errDummy = errors.New("9", 9, "dummyError") - -// dummyEpochHook is a struct satisfying the epoch hook interface, -// that maintains a counter for how many times its been successfully called, -// and a boolean for whether it should panic during its execution. -type dummyEpochHook struct { - successCounter int - shouldPanic bool - shouldError bool -} - -func (hook *dummyEpochHook) AfterEpochEnd( - ctx sdk.Context, - epochIdentifier string, -) error { - if hook.shouldPanic { - panic("dummyEpochHook is panicking") - } - if hook.shouldError { - return errDummy - } - hook.successCounter++ - ctx.EventManager().EmitEvent(dummyAfterEpochEndEvent(epochIdentifier)) - - return nil -} - -func (hook *dummyEpochHook) BeforeEpochStart( - ctx sdk.Context, - epochIdentifier string, -) error { - if hook.shouldPanic { - panic("dummyEpochHook is panicking") - } - if hook.shouldError { - return errDummy - } - hook.successCounter++ - ctx.EventManager().EmitEvent(dummyBeforeEpochStartEvent(epochIdentifier)) - - return nil -} - -func (hook *dummyEpochHook) Clone() *dummyEpochHook { - newHook := dummyEpochHook{ - shouldPanic: hook.shouldPanic, - successCounter: hook.successCounter, - shouldError: hook.shouldError, - } - return &newHook -} - -var _ types.EpochHooks = &dummyEpochHook{} - -func (s *KeeperTestSuite) TestHooksPanicRecovery() { - // panicHook := dummyEpochHook{shouldPanic: true} - noPanicHook := dummyEpochHook{shouldPanic: false} - // errorHook := dummyEpochHook{shouldError: true} - // noErrorHook := dummyEpochHook{shouldError: false} // same as nopanic - // simpleHooks := []dummyEpochHook{panicHook, noPanicHook, errorHook, noErrorHook} - - tests := []struct { - hooks []dummyEpochHook - expectedCounterValues []int - lenEvents int - }{ - {[]dummyEpochHook{noPanicHook}, []int{1}, 1}, - // {[]dummyEpochHook{panicHook}, []int{0}, 0}, - // {[]dummyEpochHook{errorHook}, []int{0}, 0}, - // {simpleHooks, []int{0, 1, 0, 1}, 2}, - } - - for tcIndex, tc := range tests { - for epochActionSelector := 0; epochActionSelector < 2; epochActionSelector++ { - s.SetupTest() - hookRefs := []types.EpochHooks{} - - for _, hook := range tc.hooks { - hookRefs = append(hookRefs, hook.Clone()) - } - - hooks := types.NewMultiEpochHooks(hookRefs...) - - events := func(epochID string, dummyEvent func(id string) sdk.Event) sdk.Events { - evts := make(sdk.Events, tc.lenEvents) - for i := 0; i < tc.lenEvents; i++ { - evts[i] = dummyEvent(epochID) - } - - return evts - } - - s.NotPanics(func() { - if epochActionSelector == 0 { - err := hooks.BeforeEpochStart(s.Ctx, "id") - s.Require().NoError(err) - s.Require().Equal( - events( - "id", - dummyBeforeEpochStartEvent, - ), - s.Ctx.EventManager().Events(), - "test case index %d, before epoch event check", tcIndex, - ) - } else if epochActionSelector == 1 { - err := hooks.AfterEpochEnd(s.Ctx, "id") - s.Require().NoError(err) - s.Require().Equal(events("id", dummyAfterEpochEndEvent), s.Ctx.EventManager().Events(), - "test case index %d, after epoch event check", tcIndex) - } - }) - - for i := 0; i < len(hooks); i++ { - epochHook := hookRefs[i].(*dummyEpochHook) - s.Require(). - Equal(tc.expectedCounterValues[i], epochHook.successCounter, "test case index %d", tcIndex) - } - } - } -} diff --git a/x/epochs/types/identifier.go b/x/epochs/types/identifier.go deleted file mode 100644 index 1cd154fa0..000000000 --- a/x/epochs/types/identifier.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -import ( - "fmt" -) - -func ValidateEpochIdentifierInterface(i interface{}) error { - v, ok := i.(string) - if !ok { - return fmt.Errorf("invalid parameter type: %T", i) - } - err := ValidateEpochIdentifierString(v) - - return err -} - -func ValidateEpochIdentifierString(s string) error { - if s == "" { - return fmt.Errorf("empty distribution epoch identifier: %+v", s) - } - - return nil -} diff --git a/x/epochs/types/keys.go b/x/epochs/types/keys.go deleted file mode 100644 index 4c6186fe5..000000000 --- a/x/epochs/types/keys.go +++ /dev/null @@ -1,18 +0,0 @@ -package types - -const ( - // ModuleName defines the module name. - ModuleName = "epochs" - - // StoreKey defines the primary module store key. - StoreKey = ModuleName - - // RouterKey is the message route for slashing. - RouterKey = ModuleName - - // QuerierRoute defines the module's query routing key. - QuerierRoute = ModuleName -) - -// KeyPrefixEpoch defines prefix key for storing epochs. -var KeyPrefixEpoch = []byte{0x01} diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go deleted file mode 100644 index 26f6b8c3c..000000000 --- a/x/epochs/types/query.pb.go +++ /dev/null @@ -1,911 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/epochs/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - 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" - 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 -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type QueryEpochsInfoRequest struct { -} - -func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} } -func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryEpochsInfoRequest) ProtoMessage() {} -func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11ec49a7f39aeaae, []int{0} -} -func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochsInfoRequest.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 *QueryEpochsInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochsInfoRequest.Merge(m, src) -} -func (m *QueryEpochsInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochsInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochsInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochsInfoRequest proto.InternalMessageInfo - -type QueryEpochsInfoResponse struct { - Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` -} - -func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse{} } -func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryEpochsInfoResponse) ProtoMessage() {} -func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11ec49a7f39aeaae, []int{1} -} -func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochsInfoResponse.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 *QueryEpochsInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochsInfoResponse.Merge(m, src) -} -func (m *QueryEpochsInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochsInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochsInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochsInfoResponse proto.InternalMessageInfo - -func (m *QueryEpochsInfoResponse) GetEpochs() []EpochInfo { - if m != nil { - return m.Epochs - } - return nil -} - -type QueryCurrentEpochRequest struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` -} - -func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochRequest{} } -func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } -func (*QueryCurrentEpochRequest) ProtoMessage() {} -func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11ec49a7f39aeaae, []int{2} -} -func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCurrentEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCurrentEpochRequest.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 *QueryCurrentEpochRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCurrentEpochRequest.Merge(m, src) -} -func (m *QueryCurrentEpochRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryCurrentEpochRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCurrentEpochRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCurrentEpochRequest proto.InternalMessageInfo - -func (m *QueryCurrentEpochRequest) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -type QueryCurrentEpochResponse struct { - CurrentEpoch int64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` -} - -func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResponse{} } -func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } -func (*QueryCurrentEpochResponse) ProtoMessage() {} -func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11ec49a7f39aeaae, []int{3} -} -func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCurrentEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCurrentEpochResponse.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 *QueryCurrentEpochResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCurrentEpochResponse.Merge(m, src) -} -func (m *QueryCurrentEpochResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryCurrentEpochResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCurrentEpochResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCurrentEpochResponse proto.InternalMessageInfo - -func (m *QueryCurrentEpochResponse) GetCurrentEpoch() int64 { - if m != nil { - return m.CurrentEpoch - } - return 0 -} - -func init() { - proto.RegisterType((*QueryEpochsInfoRequest)(nil), "neutron.epochs.QueryEpochsInfoRequest") - proto.RegisterType((*QueryEpochsInfoResponse)(nil), "neutron.epochs.QueryEpochsInfoResponse") - proto.RegisterType((*QueryCurrentEpochRequest)(nil), "neutron.epochs.QueryCurrentEpochRequest") - proto.RegisterType((*QueryCurrentEpochResponse)(nil), "neutron.epochs.QueryCurrentEpochResponse") -} - -func init() { proto.RegisterFile("neutron/epochs/query.proto", fileDescriptor_11ec49a7f39aeaae) } - -var fileDescriptor_11ec49a7f39aeaae = []byte{ - // 400 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8b, 0xd3, 0x40, - 0x18, 0xc5, 0x93, 0x56, 0x0b, 0x8e, 0xd5, 0xc3, 0x20, 0x35, 0x0d, 0x3a, 0x2d, 0x11, 0xb5, 0x0a, - 0xcd, 0xd0, 0x7a, 0x10, 0x3c, 0x49, 0x45, 0xc4, 0xa3, 0x39, 0x7a, 0x91, 0x24, 0x4e, 0xa7, 0x03, - 0x76, 0xbe, 0x34, 0x33, 0x11, 0x7b, 0xf0, 0xb2, 0xc7, 0x3d, 0x2d, 0xf4, 0x9f, 0xea, 0xb1, 0xb0, - 0x97, 0x3d, 0x2d, 0x4b, 0xbb, 0x7f, 0xc8, 0xd2, 0x49, 0x5a, 0xda, 0x6c, 0x60, 0xf7, 0x94, 0x30, - 0xef, 0xbd, 0xdf, 0xbc, 0xef, 0x63, 0x90, 0x2b, 0x59, 0xa6, 0x53, 0x90, 0x94, 0x25, 0x10, 0x4f, - 0x14, 0x9d, 0x65, 0x2c, 0x9d, 0xfb, 0x49, 0x0a, 0x1a, 0xf0, 0xd3, 0x42, 0xf3, 0x73, 0xcd, 0x7d, - 0xc6, 0x81, 0x83, 0x91, 0xe8, 0xf6, 0x2f, 0x77, 0xb9, 0x2f, 0x38, 0x00, 0xff, 0xc3, 0x68, 0x98, - 0x08, 0x1a, 0x4a, 0x09, 0x3a, 0xd4, 0x02, 0xa4, 0x2a, 0xd4, 0xf7, 0x31, 0xa8, 0x29, 0x28, 0x1a, - 0x85, 0x8a, 0xe5, 0x70, 0xfa, 0x77, 0x10, 0x31, 0x1d, 0x0e, 0x68, 0x12, 0x72, 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 0xa3, 0x6f, 0xcb, 0x35, 0xb1, 0x57, 0x6b, 0x62, 0x5f, 0xad, 0x89, 0x7d, 0xb6, 0x21, - 0xd6, 0x6a, 0x43, 0xac, 0x8b, 0x0d, 0xb1, 0x7e, 0xf6, 0xb9, 0xd0, 0x93, 0x2c, 0xf2, 0x63, 0x98, - 0xee, 0x10, 0x7d, 0x48, 0xf9, 0x1e, 0xf7, 0x6f, 0x07, 0xd4, 0xf3, 0x84, 0xa9, 0xa8, 0x61, 0x5e, - 0xd4, 0x87, 0x9b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xda, 0x17, 0x4e, 0xb5, 0xfd, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -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. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // EpochInfos provide running epochInfos - EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) - // CurrentEpoch provide current epoch of specified identifier - CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { - out := new(QueryEpochsInfoResponse) - err := c.cc.Invoke(ctx, "/neutron.epochs.Query/EpochInfos", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { - out := new(QueryCurrentEpochResponse) - err := c.cc.Invoke(ctx, "/neutron.epochs.Query/CurrentEpoch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // EpochInfos provide running epochInfos - EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) - // CurrentEpoch provide current epoch of specified identifier - CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) EpochInfos(ctx context.Context, req *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") -} -func (*UnimplementedQueryServer) CurrentEpoch(ctx context.Context, req *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEpochsInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochInfos(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.epochs.Query/EpochInfos", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCurrentEpochRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CurrentEpoch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.epochs.Query/CurrentEpoch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.epochs.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "EpochInfos", - Handler: _Query_EpochInfos_Handler, - }, - { - MethodName: "CurrentEpoch", - Handler: _Query_CurrentEpoch_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "neutron/epochs/query.proto", -} - -func (m *QueryEpochsInfoRequest) 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 *QueryEpochsInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryEpochsInfoResponse) 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 *QueryEpochsInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Epochs) > 0 { - for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryCurrentEpochRequest) 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 *QueryCurrentEpochRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCurrentEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryCurrentEpochResponse) 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 *QueryCurrentEpochResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCurrentEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentEpoch != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.CurrentEpoch)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryEpochsInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryEpochsInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Epochs) > 0 { - for _, e := range m.Epochs { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryCurrentEpochRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryCurrentEpochResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CurrentEpoch != 0 { - n += 1 + sovQuery(uint64(m.CurrentEpoch)) - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryEpochsInfoRequest) 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 ErrIntOverflowQuery - } - 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: QueryEpochsInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEpochsInfoResponse) 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 ErrIntOverflowQuery - } - 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: QueryEpochsInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochsInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Epochs = append(m.Epochs, EpochInfo{}) - if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCurrentEpochRequest) 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 ErrIntOverflowQuery - } - 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: QueryCurrentEpochRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCurrentEpochResponse) 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 ErrIntOverflowQuery - } - 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: QueryCurrentEpochResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) - } - m.CurrentEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/epochs/types/query.pb.gw.go b/x/epochs/types/query.pb.gw.go deleted file mode 100644 index 3b0d42301..000000000 --- a/x/epochs/types/query.pb.gw.go +++ /dev/null @@ -1,236 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: neutron/epochs/query.proto - -/* -Package types is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package types - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Query_EpochInfos_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryEpochsInfoRequest - var metadata runtime.ServerMetadata - - msg, err := client.EpochInfos(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_EpochInfos_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryEpochsInfoRequest - var metadata runtime.ServerMetadata - - msg, err := server.EpochInfos(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_CurrentEpoch_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_CurrentEpoch_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCurrentEpochRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CurrentEpoch_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CurrentEpoch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_CurrentEpoch_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCurrentEpochRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CurrentEpoch_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CurrentEpoch(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". -// UnaryRPC :call QueryServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. -func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - - mux.Handle("GET", pattern_Query_EpochInfos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_EpochInfos_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_EpochInfos_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_CurrentEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_CurrentEpoch_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_CurrentEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterQueryHandler(ctx, mux, conn) -} - -// RegisterQueryHandler registers the http handlers for service Query to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) -} - -// RegisterQueryHandlerClient registers the http handlers for service Query -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "QueryClient" to call the correct interceptors. -func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - - mux.Handle("GET", pattern_Query_EpochInfos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_EpochInfos_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_EpochInfos_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_CurrentEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_CurrentEpoch_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_CurrentEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Query_EpochInfos_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1}, []string{"neutron", "epochs"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "epochs", "current_epoch"}, "", runtime.AssumeColonVerbOpt(false))) -) - -var ( - forward_Query_EpochInfos_0 = runtime.ForwardResponseMessage - - forward_Query_CurrentEpoch_0 = runtime.ForwardResponseMessage -) diff --git a/x/incentives/client/cli/cli_test.go b/x/incentives/client/cli/cli_test.go deleted file mode 100644 index 526dcda41..000000000 --- a/x/incentives/client/cli/cli_test.go +++ /dev/null @@ -1,340 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - "time" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/utils" - "github.com/neutron-org/neutron/utils/dcli" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/client/cli" - "github.com/neutron-org/neutron/x/incentives/types" -) - -var testAddresses = utils.CreateRandomAccounts(3) - -// Queries //////////////////////////////////////////////////////////////////// - -func TestGetCmdGetModuleStatus(t *testing.T) { - desc, _ := cli.GetCmdGetModuleStatus() - tcs := map[string]dcli.QueryCliTestCase[*types.GetModuleStatusRequest]{ - "basic test": { - ExpectedQuery: &types.GetModuleStatusRequest{}, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetCmdGetGaugeByID(t *testing.T) { - desc, _ := cli.GetCmdGetGaugeByID() - tcs := map[string]dcli.QueryCliTestCase[*types.GetGaugeByIDRequest]{ - "basic test": { - Cmd: "1", ExpectedQuery: &types.GetGaugeByIDRequest{Id: 1}, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetCmdGauges(t *testing.T) { - desc, _ := cli.GetCmdGauges() - tcs := map[string]dcli.QueryCliTestCase[*types.GetGaugesRequest]{ - "test ACTIVE_UPCOMING": { - Cmd: "ACTIVE_UPCOMING TokenA", - ExpectedQuery: &types.GetGaugesRequest{ - Status: types.GaugeStatus_ACTIVE_UPCOMING, - Denom: "TokenA", - }, - }, - "test UPCOMING": { - Cmd: "UPCOMING TokenA", - ExpectedQuery: &types.GetGaugesRequest{ - Status: types.GaugeStatus_UPCOMING, - Denom: "TokenA", - }, - }, - "test FINISHED": { - Cmd: "FINISHED TokenA", - ExpectedQuery: &types.GetGaugesRequest{ - Status: types.GaugeStatus_FINISHED, - Denom: "TokenA", - }, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetCmdGetStakeByID(t *testing.T) { - desc, _ := cli.GetCmdGetStakeByID() - tcs := map[string]dcli.QueryCliTestCase[*types.GetStakeByIDRequest]{ - "basic test": { - Cmd: "1", ExpectedQuery: &types.GetStakeByIDRequest{StakeId: 1}, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetCmdStakes(t *testing.T) { - desc, _ := cli.GetCmdStakes() - tcs := map[string]dcli.QueryCliTestCase[*types.GetStakesRequest]{ - "basic test": { - Cmd: fmt.Sprintf("%s", testAddresses[0]), - ExpectedQuery: &types.GetStakesRequest{ - Owner: testAddresses[0].String(), - }, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetCmdFutureRewardEstimate(t *testing.T) { - desc, _ := cli.GetCmdGetFutureRewardEstimate() - tcs := map[string]dcli.QueryCliTestCase[*types.GetFutureRewardEstimateRequest]{ - "basic test": { - Cmd: fmt.Sprintf("%s [1,2,3] 1000", testAddresses[0]), - ExpectedQuery: &types.GetFutureRewardEstimateRequest{ - Owner: testAddresses[0].String(), - StakeIds: []uint64{1, 2, 3}, - NumEpochs: 1000, - }, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetAccountHistory(t *testing.T) { - desc, _ := cli.GetCmdGetAccountHistory() - tcs := map[string]dcli.QueryCliTestCase[*types.GetAccountHistoryRequest]{ - "basic test": { - Cmd: fmt.Sprintf("%s", testAddresses[0]), - ExpectedQuery: &types.GetAccountHistoryRequest{ - Account: testAddresses[0].String(), - }, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -func TestGetGaugeQualifyingValue(t *testing.T) { - desc, _ := cli.GetCmdGaugeQualifyingValue() - tcs := map[string]dcli.QueryCliTestCase[*types.GetGaugeQualifyingValueRequest]{ - "basic test": { - Cmd: "1", - ExpectedQuery: &types.GetGaugeQualifyingValueRequest{ - Id: 1, - }, - }, - } - dcli.RunQueryTestCases(t, desc, tcs) -} - -// TXS //////////////////////////////////////////////////////////////////////// - -func TestNewCreateGaugeCmd(t *testing.T) { - testTime := time.Unix(1681505514, 0).UTC() - desc, _ := cli.NewCreateGaugeCmd() - tcs := map[string]dcli.TxCliTestCase[*types.MsgCreateGauge]{ - "basic test": { - Cmd: fmt.Sprintf( - "TokenA TokenB 0 100 100TokenA,100TokenB 50 0 --from %s", - testAddresses[0], - ), - ExpectedMsg: &types.MsgCreateGauge{ - IsPerpetual: false, - Owner: testAddresses[0].String(), - DistributeTo: types.QueryCondition{ - PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, - StartTick: 0, - EndTick: 100, - }, - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(100)), - sdk.NewCoin("TokenB", math.NewInt(100)), - ), - StartTime: time.Unix(0, 0).UTC(), - NumEpochsPaidOver: 50, - PricingTick: 0, - }, - }, - "tests with time (RFC3339)": { - Cmd: fmt.Sprintf( - "TokenA TokenB [-20] 20 100TokenA,100TokenB 50 0 --start-time %s --from %s", - testTime.Format(time.RFC3339), - testAddresses[0], - ), - ExpectedMsg: &types.MsgCreateGauge{ - IsPerpetual: false, - Owner: testAddresses[0].String(), - DistributeTo: types.QueryCondition{ - PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, - StartTick: -20, - EndTick: 20, - }, - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(100)), - sdk.NewCoin("TokenB", math.NewInt(100)), - ), - StartTime: testTime, - NumEpochsPaidOver: 50, - PricingTick: 0, - }, - }, - "tests with time (unix int)": { - Cmd: fmt.Sprintf( - "TokenA TokenB [-20] 20 100TokenA,100TokenB 50 0 --start-time %d --from %s", - testTime.Unix(), - testAddresses[0], - ), - ExpectedMsg: &types.MsgCreateGauge{ - IsPerpetual: false, - Owner: testAddresses[0].String(), - DistributeTo: types.QueryCondition{ - PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, - StartTick: -20, - EndTick: 20, - }, - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(100)), - sdk.NewCoin("TokenB", math.NewInt(100)), - ), - StartTime: testTime, - NumEpochsPaidOver: 50, - PricingTick: 0, - }, - }, - "tests with perpetual": { - Cmd: fmt.Sprintf( - "TokenA TokenB [-20] 20 100TokenA,100TokenB 50 0 --perpetual --from %s", - testAddresses[0], - ), - ExpectedMsg: &types.MsgCreateGauge{ - IsPerpetual: true, - Owner: testAddresses[0].String(), - DistributeTo: types.QueryCondition{ - PairID: &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, - StartTick: -20, - EndTick: 20, - }, - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(100)), - sdk.NewCoin("TokenB", math.NewInt(100)), - ), - StartTime: time.Unix(0, 0).UTC(), - NumEpochsPaidOver: 1, - PricingTick: 0, - }, - }, - } - dcli.RunTxTestCases(t, desc, tcs) -} - -func TestNewAddToGaugeCmd(t *testing.T) { - desc, _ := cli.NewAddToGaugeCmd() - tcs := map[string]dcli.TxCliTestCase[*types.MsgAddToGauge]{ - "basic test": { - Cmd: fmt.Sprintf("1 1000TokenA --from %s", testAddresses[0]), - ExpectedMsg: &types.MsgAddToGauge{ - Owner: testAddresses[0].String(), - GaugeId: 1, - Rewards: sdk.NewCoins(sdk.NewCoin("TokenA", math.NewInt(1000))), - }, - }, - "multiple tokens": { - Cmd: fmt.Sprintf("1 1000TokenA,1TokenZ --from %s", testAddresses[0]), - ExpectedMsg: &types.MsgAddToGauge{ - Owner: testAddresses[0].String(), - GaugeId: 1, - Rewards: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(1000)), - sdk.NewCoin("TokenZ", math.NewInt(1)), - ), - }, - }, - } - dcli.RunTxTestCases(t, desc, tcs) -} - -func TestNewStakeCmd(t *testing.T) { - desc, _ := cli.NewStakeCmd() - tcs := map[string]dcli.TxCliTestCase[*types.MsgStake]{ - "basic test": { - Cmd: fmt.Sprintf("1000TokenA --from %s", testAddresses[0]), - ExpectedMsg: &types.MsgStake{ - Owner: testAddresses[0].String(), - Coins: sdk.NewCoins(sdk.NewCoin("TokenA", math.NewInt(1000))), - }, - }, - "multiple tokens": { - Cmd: fmt.Sprintf("1000TokenA,1TokenZ --from %s", testAddresses[0]), - ExpectedMsg: &types.MsgStake{ - Owner: testAddresses[0].String(), - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(1000)), - sdk.NewCoin("TokenZ", math.NewInt(1)), - ), - }, - }, - "tokenized share test": { - Cmd: fmt.Sprintf( - "1000neutron/pool/1 --from %s", - testAddresses[0], - ), - ExpectedMsg: &types.MsgStake{ - Owner: testAddresses[0].String(), - Coins: sdk.NewCoins( - sdk.NewCoin("neutron/pool/1", math.NewInt(1000)), - ), - }, - }, - "multiple tokenized shares": { - Cmd: fmt.Sprintf( - "1000neutron/pool/1,1neutron/pool/2 --from %s", - testAddresses[0], - ), - ExpectedMsg: &types.MsgStake{ - Owner: testAddresses[0].String(), - Coins: sdk.NewCoins( - sdk.NewCoin("neutron/pool/1", math.NewInt(1000)), - sdk.NewCoin("neutron/pool/2", math.NewInt(1)), - ), - }, - }, - } - dcli.RunTxTestCases(t, desc, tcs) -} - -func TestNewUnstakeCmd(t *testing.T) { - desc, _ := cli.NewUnstakeCmd() - tcs := map[string]dcli.TxCliTestCase[*types.MsgUnstake]{ - "basic test": { - Cmd: fmt.Sprintf("--from %s", testAddresses[0]), - ExpectedMsg: &types.MsgUnstake{ - Owner: testAddresses[0].String(), - Unstakes: []*types.MsgUnstake_UnstakeDescriptor{}, - }, - }, - "with coins": { - Cmd: fmt.Sprintf("1:10TokenA 10:10TokenA,10TokenC --from %s", testAddresses[0]), - ExpectedMsg: &types.MsgUnstake{ - Owner: testAddresses[0].String(), - Unstakes: []*types.MsgUnstake_UnstakeDescriptor{ - { - ID: 1, - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(10)), - ), - }, { - ID: 10, - Coins: sdk.NewCoins( - sdk.NewCoin("TokenA", math.NewInt(10)), - sdk.NewCoin("TokenC", math.NewInt(10)), - ), - }, - }, - }, - }, - } - dcli.RunTxTestCases(t, desc, tcs) -} diff --git a/x/incentives/client/cli/flags.go b/x/incentives/client/cli/flags.go deleted file mode 100644 index fa3467e0f..000000000 --- a/x/incentives/client/cli/flags.go +++ /dev/null @@ -1,22 +0,0 @@ -package cli - -import ( - flag "github.com/spf13/pflag" -) - -// Flags for incentives module tx commands. -const ( - FlagStartTime = "start-time" - FlagPerpetual = "perpetual" - FlagAmount = "amount" -) - -// FlagSetCreateGauge returns flags for creating gauges. -func FlagSetCreateGauge() *flag.FlagSet { - fs := flag.NewFlagSet("", flag.ContinueOnError) - - fs.String(FlagStartTime, "", "Timestamp to begin distribution") - fs.Bool(FlagPerpetual, false, "Perpetual distribution") - - return fs -} diff --git a/x/incentives/client/cli/query.go b/x/incentives/client/cli/query.go deleted file mode 100644 index 13fa2f876..000000000 --- a/x/incentives/client/cli/query.go +++ /dev/null @@ -1,114 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - "github.com/spf13/pflag" - - "github.com/neutron-org/neutron/utils/dcli" - "github.com/neutron-org/neutron/x/incentives/types" -) - -// GetQueryCmd returns the query commands for this module. -func GetQueryCmd() *cobra.Command { - // group incentives queries under a subcommand - cmd := dcli.QueryIndexCmd(types.ModuleName) - qcGetter := types.NewQueryClient - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetModuleStatus) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetGaugeByID) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGauges) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetStakeByID) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdStakes) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetFutureRewardEstimate) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGetAccountHistory) - dcli.AddQueryCmd(cmd, qcGetter, GetCmdGaugeQualifyingValue) - - return cmd -} - -// GetCmdGetModuleStatus returns status of incentive module. -func GetCmdGetModuleStatus() (*dcli.QueryDescriptor, *types.GetModuleStatusRequest) { - return &dcli.QueryDescriptor{ - Use: "module-status", - Short: "Query module status.", - Long: `{{.Short}}`, - }, &types.GetModuleStatusRequest{} -} - -// GetCmdGetGaugeByID returns a gauge by ID. -func GetCmdGetGaugeByID() (*dcli.QueryDescriptor, *types.GetGaugeByIDRequest) { - return &dcli.QueryDescriptor{ - Use: "gauge-by-id [id]", - Short: "Query gauge by id.", - Long: `{{.Short}}{{.ExampleHeader}} gauge-by-id 1`, - }, &types.GetGaugeByIDRequest{} -} - -//nolint:unparam // we can't change return values since we need to match interface -func parseGaugeStatus(arg string, _ *pflag.FlagSet) (any, dcli.FieldReadLocation, error) { - gaugeStatusInt, ok := types.GaugeStatus_value[arg] - if !ok { - return 0, dcli.UsedArg, types.ErrInvalidGaugeStatus - } - gaugeStatus := types.GaugeStatus(gaugeStatusInt) - - return gaugeStatus, dcli.UsedArg, nil -} - -// GetCmdGauges returns all gauges for a given status and denom. -func GetCmdGauges() (*dcli.QueryDescriptor, *types.GetGaugesRequest) { - return &dcli.QueryDescriptor{ - Use: "list-gauges [status] [denom]", - Short: "Query gauges", - Long: `{{.Short}}{{.ExampleHeader}} list-gauges UPCOMING neutron/pool/1`, - CustomFieldParsers: map[string]dcli.CustomFieldParserFn{ - "Status": parseGaugeStatus, - }, - }, &types.GetGaugesRequest{} -} - -// GetCmdGetStakeByID returns a lock by ID. -func GetCmdGetStakeByID() (*dcli.QueryDescriptor, *types.GetStakeByIDRequest) { - return &dcli.QueryDescriptor{ - Use: "stake-by-id [stakeID]", - Short: "Query stake by id.", - Long: `{{.Short}}{{.ExampleHeader}} Stake-by-id 1`, - }, &types.GetStakeByIDRequest{} -} - -// GetCmdStakes returns all gauges for a given status and owner. -func GetCmdStakes() (*dcli.QueryDescriptor, *types.GetStakesRequest) { - return &dcli.QueryDescriptor{ - Use: "list-stakes [owner]", - Short: "Query stakes", - Long: `{{.Short}}{{.ExampleHeader}} list-stakes cosmos1chl62vc593p99z2tfh2pp8tl4anm0w4l8h8svx`, - }, &types.GetStakesRequest{} -} - -// GetCmdGetFutureRewardsEstimate returns a rewards estimate for a given set of stakes. -func GetCmdGetFutureRewardEstimate() (*dcli.QueryDescriptor, *types.GetFutureRewardEstimateRequest) { - return &dcli.QueryDescriptor{ - Use: "reward-estimate [owner] [stakeIDs] [numEpochs]", - Short: "Get rewards estimate for set of stakes", - Long: `{{.Short}}{{.ExampleHeader}} reward-estimate cosmos1chl62vc593p99z2tfh2pp8tl4anm0w4l8h8svx [1,2,3] 365`, - CustomFieldParsers: map[string]dcli.CustomFieldParserFn{ - "StakeIDs": dcli.ParseUintArray, - }, - }, &types.GetFutureRewardEstimateRequest{} -} - -// GetCmdGetFutureRewardsEstimate returns a rewards estimate for a given set of stakes. -func GetCmdGetAccountHistory() (*dcli.QueryDescriptor, *types.GetAccountHistoryRequest) { - return &dcli.QueryDescriptor{ - Use: "account-history [account]", - Short: "Get rewards distribution history for an address", - Long: `{{.Short}}{{.ExampleHeader}} account-history cosmos1chl62vc593p99z2tfh2pp8tl4anm0w4l8h8svx`, - }, &types.GetAccountHistoryRequest{} -} - -func GetCmdGaugeQualifyingValue() (*dcli.QueryDescriptor, *types.GetGaugeQualifyingValueRequest) { - return &dcli.QueryDescriptor{ - Use: "gauge-qualifying-value [gaugeID]", - Short: "Query the qualifying value of a gauge by gauge id.", - Long: `{{.Short}}{{.ExampleHeader}} gauge-qualifying-value 1`, - }, &types.GetGaugeQualifyingValueRequest{} -} diff --git a/x/incentives/client/cli/query_test.go b/x/incentives/client/cli/query_test.go deleted file mode 100644 index 2a60451d3..000000000 --- a/x/incentives/client/cli/query_test.go +++ /dev/null @@ -1,55 +0,0 @@ -package cli_test - -import ( - "testing" - - "cosmossdk.io/math" - "github.com/stretchr/testify/suite" - - "github.com/neutron-org/neutron/testutil/apptesting" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/keeper" - "github.com/neutron-org/neutron/x/incentives/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type QueryTestSuite struct { - apptesting.KeeperTestHelper - queryClient types.QueryClient -} - -// StakeTokens funds an account, stakes tokens and returns a stakeID. -func (s *QueryTestSuite) SetupStake( - addr sdk.AccAddress, - coins sdk.Coins, -) (stakeID uint64) { - msgServer := keeper.NewMsgServerImpl(s.App.IncentivesKeeper) - s.FundAcc(addr, coins) - - msgResponse, err := msgServer.Stake( - sdk.WrapSDKContext(s.Ctx), - types.NewMsgSetupStake(addr, coins), - ) - s.Require().NoError(err) - - return msgResponse.ID -} - -func (s *QueryTestSuite) SetupSuite() { - s.Setup() - s.queryClient = types.NewQueryClient(s.QueryHelper) - - pool, _ := s.App.DexKeeper.InitPool(s.Ctx, dextypes.MustNewPairID("tokenA", "tokenB"), 0, 1) - denom := pool.GetPoolDenom() - - // set up stake with id = 1 - addr := apptesting.SetupAddr(0) - s.SetupStake(addr, sdk.Coins{sdk.NewCoin(denom, math.NewInt(1000000))}) - - s.Commit() -} - -func TestQueryTestSuite(t *testing.T) { - suite.Run(t, new(QueryTestSuite)) -} diff --git a/x/incentives/client/cli/tx.go b/x/incentives/client/cli/tx.go deleted file mode 100644 index 0c9517923..000000000 --- a/x/incentives/client/cli/tx.go +++ /dev/null @@ -1,173 +0,0 @@ -package cli - -import ( - "errors" - "fmt" - "strconv" - "strings" - "time" - - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/spf13/cobra" - "github.com/spf13/pflag" - - "github.com/neutron-org/neutron/utils/dcli" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" -) - -// GetTxCmd returns the transaction commands for this module. -func GetTxCmd() *cobra.Command { - cmd := dcli.TxIndexCmd(types.ModuleName) - - dcli.AddTxCmd(cmd, NewCreateGaugeCmd) - dcli.AddTxCmd(cmd, NewAddToGaugeCmd) - dcli.AddTxCmd(cmd, NewStakeCmd) - dcli.AddTxCmd(cmd, NewUnstakeCmd) - - return cmd -} - -func CreateGaugeCmdBuilder( - clientCtx client.Context, - args []string, - flags *pflag.FlagSet, -) (sdk.Msg, error) { - // "create-gauge [pairTokenA] [pairTokenB] [startTick] [endTick] [coins] [numEpochs] [pricingTick]" - pairID, err := dextypes.NewPairIDFromUnsorted(args[0], args[1]) - if err != nil { - return &types.MsgCreateGauge{}, err - } - - startTick, err := dcli.ParseIntMaybeNegative(args[2], "startTick") - if err != nil { - return &types.MsgCreateGauge{}, err - } - - endTick, err := dcli.ParseIntMaybeNegative(args[3], "endTick") - if err != nil { - return &types.MsgCreateGauge{}, err - } - - coins, err := sdk.ParseCoinsNormalized(args[4]) - if err != nil { - return &types.MsgCreateGauge{}, err - } - - var startTime time.Time - timeStr, err := flags.GetString(FlagStartTime) - if err != nil { - return &types.MsgCreateGauge{}, err - } - if timeStr == "" { // empty start time - startTime = time.Unix(0, 0).UTC() - } else if timeUnix, err := strconv.ParseInt(timeStr, 10, 64); err == nil { // unix time - startTime = time.Unix(timeUnix, 0).UTC() - } else if timeRFC, err := time.Parse(time.RFC3339, timeStr); err == nil { // RFC time - startTime = timeRFC - } else { // invalid input - return &types.MsgCreateGauge{}, errors.New("invalid start time format") - } - - epochs, err := dcli.ParseUint(args[5], "numEpochs") - if err != nil { - return &types.MsgCreateGauge{}, err - } - - perpetual, err := flags.GetBool(FlagPerpetual) - if err != nil { - return &types.MsgCreateGauge{}, err - } - - if perpetual { - epochs = 1 - } - - pricingTick, err := dcli.ParseIntMaybeNegative(args[6], "pricingTick") - if err != nil { - return &types.MsgCreateGauge{}, err - } - - distributeTo := types.QueryCondition{ - PairID: pairID, - StartTick: startTick, - EndTick: endTick, - } - - msg := types.NewMsgCreateGauge( - epochs == 1, - clientCtx.GetFromAddress(), - distributeTo, - coins, - startTime, - epochs, - pricingTick, - ) - - return msg, nil -} - -func NewCreateGaugeCmd() (*dcli.TxCliDesc, *types.MsgCreateGauge) { - return &dcli.TxCliDesc{ - ParseAndBuildMsg: CreateGaugeCmdBuilder, - Use: "create-gauge [pairTokenA] [pairTokenB] [startTick] [endTick] [coins] [numEpochs] [pricingTick]", - Short: "create a gauge to distribute rewards to users", - Long: `{{.Short}}{{.ExampleHeader}} create-gauge TokenA TokenB [-10] 200 100TokenA,200TokenB 6 0 --start-time 2006-01-02T15:04:05Z07:00 --perpetual true`, - Flags: dcli.FlagDesc{OptionalFlags: []*pflag.FlagSet{FlagSetCreateGauge()}}, - NumArgs: 7, - }, &types.MsgCreateGauge{} -} - -func NewAddToGaugeCmd() (*dcli.TxCliDesc, *types.MsgAddToGauge) { - return &dcli.TxCliDesc{ - Use: "add-to-gauge [gauge_id] [coins]", - Short: "add coins to gauge to distribute more rewards to users", - Long: `{{.Short}}{{.ExampleHeader}} add-to-gauge 1 TokenA,TokenB`, - }, &types.MsgAddToGauge{} -} - -func NewStakeCmd() (*dcli.TxCliDesc, *types.MsgStake) { - return &dcli.TxCliDesc{ - Use: "stake-tokens [coins]", - Short: "stake tokens into stake pool from user account", - }, &types.MsgStake{} -} - -func UnstakeCmdBuilder(clientCtx client.Context, args []string, _ *pflag.FlagSet) (sdk.Msg, error) { - // "unstake-tokens [poolID]:[coins] [poolID]:[coins] ..." - unstakes := make([]*types.MsgUnstake_UnstakeDescriptor, 0, len(args)) - for i, unstake := range args { - if strings.HasPrefix(unstake, "-") { - // no more unstakes left, only flags - break - } - - parts := strings.Split(unstake, ":") - if len(parts) != 2 { - return &types.MsgUnstake{}, errors.New("invalid syntax for unstake tokens") - } - poolID, err := dcli.ParseUint(parts[0], fmt.Sprintf("poolID[%d]", i)) - if err != nil { - return &types.MsgUnstake{}, err - } - - coins, err := dcli.ParseCoins(parts[1], fmt.Sprintf("coins[%d]", i)) - if err != nil { - return &types.MsgUnstake{}, err - } - - unstakes = append(unstakes, types.NewMsgUnstakeDescriptor(poolID, coins)) - } - - return types.NewMsgUnstake(clientCtx.GetFromAddress(), unstakes), nil -} - -func NewUnstakeCmd() (*dcli.TxCliDesc, *types.MsgUnstake) { - return &dcli.TxCliDesc{ - Use: "unstake-tokens [poolID]:[coins] [poolID]:[coins] ...", - Short: "Unstake tokens", - ParseAndBuildMsg: UnstakeCmdBuilder, - Long: `{{.Short}}{{.ExampleHeader}} unstake-tokens 1:100TokenA 2:10TokenZ,20TokenB`, - }, &types.MsgUnstake{} -} diff --git a/x/incentives/keeper/account_history.go b/x/incentives/keeper/account_history.go deleted file mode 100644 index 27d787b2b..000000000 --- a/x/incentives/keeper/account_history.go +++ /dev/null @@ -1,83 +0,0 @@ -package keeper - -import ( - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/gogoproto/proto" - "github.com/neutron-org/neutron/x/incentives/types" -) - -func NewAccountHistory(account string, coins sdk.Coins) *types.AccountHistory { - return &types.AccountHistory{ - Account: account, - Coins: coins, - } -} - -// SetAccountHistory set a specific goodTilRecord in the store from its index -func (k Keeper) SetAccountHistory( - ctx sdk.Context, - accountHistory *types.AccountHistory, -) error { - store := ctx.KVStore(k.storeKey) - b, err := proto.Marshal(accountHistory) - if err != nil { - return err - } - store.Set(types.GetKeyAccountHistory( - accountHistory.Account, - ), b) - return nil -} - -// GetAccountHistory returns a goodTilRecord from its index -func (k Keeper) GetAccountHistory( - ctx sdk.Context, - account string, -) (val *types.AccountHistory, found bool) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.GetKeyAccountHistory(account)) - if b == nil { - return val, false - } - - val = &types.AccountHistory{} - err := proto.Unmarshal(b, val) - if err != nil { - panic(err) - } - - return val, true -} - -// RemoveAccountHistory removes a goodTilRecord from the store -func (k Keeper) RemoveAccountHistory( - ctx sdk.Context, - account string, -) { - store := ctx.KVStore(k.storeKey) - store.Delete(types.GetKeyAccountHistory(account)) -} - -// GetAllAccountHistory returns all goodTilRecord -func (k Keeper) GetAllAccountHistory(ctx sdk.Context) (list []*types.AccountHistory) { - store := prefix.NewStore( - ctx.KVStore(k.storeKey), - types.KeyPrefixAccountHistory, - ) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - val := &types.AccountHistory{} - err := proto.Unmarshal(iterator.Value(), val) - if err != nil { - panic(err) - } - list = append(list, val) - } - - return -} diff --git a/x/incentives/keeper/distribute.go b/x/incentives/keeper/distribute.go deleted file mode 100644 index 9ea79d702..000000000 --- a/x/incentives/keeper/distribute.go +++ /dev/null @@ -1,186 +0,0 @@ -package keeper - -import ( - "fmt" - "time" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - math_utils "github.com/neutron-org/neutron/utils/math" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" -) - -var _ DistributorKeeper = Keeper{} - -func (k Keeper) ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (math.Int, error) { - totalShares := k.bk.GetSupply(ctx, coin.Denom).Amount - poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, coin.Denom) - if err != nil { - return math.ZeroInt(), err - } - - pool, err := k.dk.GetOrInitPool( - ctx, - poolMetadata.PairID, - poolMetadata.Tick, - poolMetadata.Fee, - ) - if err != nil { - return math.ZeroInt(), err - } - amount0, amount1 := pool.RedeemValue(coin.Amount, totalShares) - price1To0Center, err := dextypes.CalcPrice(-1 * tick) - if err != nil { - return math.ZeroInt(), err - } - return math_utils.NewPrecDecFromInt(amount0).Add(price1To0Center.MulInt(amount1)).TruncateInt(), nil -} - -// Distribute distributes coins from an array of gauges to all eligible stakes. -func (k Keeper) Distribute(ctx sdk.Context, gauges types.Gauges) (types.DistributionSpec, error) { - distSpec := types.DistributionSpec{} - for _, gauge := range gauges { - gaugeDistSpec, err := k.distributor.Distribute(ctx, gauge, nil) - if err != nil { - return nil, err - } - distSpec = distSpec.Add(gaugeDistSpec) - - err = k.setGauge(ctx, gauge) - if err != nil { - return nil, err - } - if gauge.IsFinishedGauge(ctx.BlockTime()) { - if err := k.moveActiveGaugeToFinishedGauge(ctx, gauge); err != nil { - return nil, err - } - } - } - - ctx.Logger().Debug(fmt.Sprintf("Beginning distribution to %d users", len(distSpec))) - for addr, rewards := range distSpec { - decodedAddr, err := sdk.AccAddressFromBech32(addr) - if err != nil { - return nil, err - } - err = k.bk.SendCoinsFromModuleToAccount( - ctx, - types.ModuleName, - decodedAddr, - rewards) - if err != nil { - return nil, err - } - - // Accumulate to account history - accHistory, found := k.GetAccountHistory(ctx, addr) - if found { - accHistory.Coins = accHistory.Coins.Add(rewards...) - } else { - accHistory = NewAccountHistory(addr, rewards) - } - if err := k.SetAccountHistory(ctx, accHistory); err != nil { - return nil, err - } - - // Emit events - ctx.EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - types.TypeEvtDistribution, - sdk.NewAttribute(types.AttributeReceiver, addr), - sdk.NewAttribute(types.AttributeAmount, rewards.String()), - ), - }) - } - ctx.Logger().Debug(fmt.Sprintf("Finished Distributing to %d users", len(distSpec))) - k.hooks.AfterEpochDistribution(ctx) - return distSpec, nil -} - -// GetModuleCoinsToBeDistributed returns sum of coins yet to be distributed for all of the module. -func (k Keeper) GetModuleCoinsToBeDistributed(ctx sdk.Context) sdk.Coins { - activeGaugesDistr := k.GetActiveGauges(ctx).GetCoinsRemaining() - upcomingGaugesDistr := k.GetUpcomingGauges(ctx).GetCoinsRemaining() - return activeGaugesDistr.Add(upcomingGaugesDistr...) -} - -// GetModuleDistributedCoins returns sum of coins that have been distributed so far for all of the module. -func (k Keeper) GetModuleDistributedCoins(ctx sdk.Context) sdk.Coins { - activeGaugesDistr := k.GetActiveGauges(ctx).GetCoinsDistributed() - finishedGaugesDistr := k.GetFinishedGauges(ctx).GetCoinsDistributed() - return activeGaugesDistr.Add(finishedGaugesDistr...) -} - -// GetRewardsEstimate returns rewards estimation at a future specific time (by epoch) -// If stakes are nil, it returns the rewards between now and the end epoch associated with address. -// If stakes are not nil, it returns all the rewards for the given stakes between now and end epoch. -func (k Keeper) GetRewardsEstimate( - ctx sdk.Context, - addr sdk.AccAddress, - filterStakes types.Stakes, - numEpochs int64, -) (sdk.Coins, error) { - // if stakes are nil, populate with all stakes associated with the address - if len(filterStakes) == 0 { - filterStakes = k.GetStakesByAccount(ctx, addr) - } - - // for each specified stake get associated pairs - pairSet := map[dextypes.PairID]bool{} - for _, l := range filterStakes { - for _, c := range l.Coins { - poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, c.Denom) - if err != nil { - panic("all stakes should be valid deposit denoms") - } - pairSet[*poolMetadata.PairID] = true - } - } - - // for each pair get associated gauges - gauges := types.Gauges{} - for s := range pairSet { - gauges = append(gauges, k.GetGaugesByPair(ctx, &s)...) - } - - // estimate rewards - estimatedRewards := sdk.Coins{} - epochInfo := k.GetEpochInfo(ctx) - - // ensure we don't change storage while doing estimation - cacheCtx, _ := ctx.CacheContext() - for _, gauge := range gauges { - distrBeginEpoch := epochInfo.CurrentEpoch - endEpoch := epochInfo.CurrentEpoch + numEpochs - bstakeTime := ctx.BlockTime() - if gauge.StartTime.After(bstakeTime) { - distrBeginEpoch = epochInfo.CurrentEpoch + 1 + int64( - gauge.StartTime.Sub(bstakeTime)/epochInfo.Duration, - ) - } - - // TODO: Make more efficient by making it possible to call distribute with this - // gaugeStakes := k.GetStakesByQueryCondition(cacheCtx, &gauge.DistributeTo) - gaugeRewards := sdk.Coins{} - for epoch := distrBeginEpoch; epoch <= endEpoch; epoch++ { - epochTime := epochInfo.StartTime.Add( - time.Duration(epoch-epochInfo.CurrentEpoch) * epochInfo.Duration, - ) - if !gauge.IsActiveGauge(epochTime) { - break - } - - futureCtx := cacheCtx.WithBlockTime(epochTime) - distSpec, err := k.distributor.Distribute(futureCtx, gauge, filterStakes) - if err != nil { - return nil, err - } - - gaugeRewards = gaugeRewards.Add(distSpec.GetTotal()...) - } - estimatedRewards = estimatedRewards.Add(gaugeRewards...) - } - - return estimatedRewards, nil -} diff --git a/x/incentives/keeper/distribute_test.go b/x/incentives/keeper/distribute_test.go deleted file mode 100644 index 656ed771d..000000000 --- a/x/incentives/keeper/distribute_test.go +++ /dev/null @@ -1,363 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "github.com/stretchr/testify/suite" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/testutil/apptesting" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" -) - -var _ = suite.TestingSuite(nil) - -type balanceAssertion struct { - addr sdk.AccAddress - balances sdk.Coins -} - -func (suite *IncentivesTestSuite) TestValueForShares() { - addrs := apptesting.SetupAddrs(3) - - tests := []struct { - name string - deposits []depositSpec - coin sdk.Coin - tick int64 - expectation math.Int - err error - }{ - // gauge 1 gives 3k coins. three stakes, all eligible. 1k coins per stake. - // 1k should go to oneStakeUser and 2k to twoStakeUser. - { - name: "one deposit", - deposits: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), - tick: 1000, - expectation: math.NewInt(21), - }, - { - name: "one deposit: no adjustment", - deposits: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), - tick: 0, - expectation: math.NewInt(20), - }, - { - name: "two deposits: one extraneous", - deposits: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 2, - }, - }, - coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), - tick: 1000, - expectation: math.NewInt(21), - }, - { - name: "two deposits: both relevant", - deposits: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - coin: sdk.NewInt64Coin(dextypes.NewPoolDenom(0), 20), - tick: 1000, - expectation: math.NewInt(21), - }, - } - for _, tc := range tests { - suite.T().Run(tc.name, func(t *testing.T) { - suite.SetupTest() - _ = suite.SetupDeposit(tc.deposits) - value, err := suite.App.IncentivesKeeper.ValueForShares(suite.Ctx, tc.coin, tc.tick) - if tc.err == nil { - require.NoError(t, err) - require.Equal(t, tc.expectation, value) - } else { - require.Error(t, err) - } - }) - } -} - -// TestDistribute tests that when the distribute command is executed on a provided gauge -// that the correct amount of rewards is sent to the correct stake owners. -func (suite *IncentivesTestSuite) TestDistribute() { - addrs := apptesting.SetupAddrs(3) - tests := []struct { - name string - addrs []sdk.AccAddress - depositStakeSpecs []depositStakeSpec - gaugeSpecs []gaugeSpec - assertions []balanceAssertion - }{ - { - name: "one gauge", - depositStakeSpecs: []depositStakeSpec{ - { - depositSpecs: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - }, - gaugeSpecs: []gaugeSpec{ - { - isPerpetual: false, - rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, - startTick: -10, - endTick: 10, - paidOver: 1, - pricingTick: 0, - }, - }, - assertions: []balanceAssertion{ - {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1000)}}, - {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 2000)}}, - }, - }, - { - name: "two gauges", - depositStakeSpecs: []depositStakeSpec{ - { - depositSpecs: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -1, - }, - }, - gaugeSpecs: []gaugeSpec{ - { - isPerpetual: false, - rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, - startTick: -10, - endTick: 10, - paidOver: 1, - pricingTick: 0, - }, - { - isPerpetual: false, - rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, - startTick: -10, - endTick: 10, - paidOver: 2, - pricingTick: 0, - }, - }, - assertions: []balanceAssertion{ - {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, - {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}}, - }, - }, - { - name: "one stake with adjustment", - depositStakeSpecs: []depositStakeSpec{ - { - depositSpecs: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 50, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 50, - }, - }, - stakeDistEpochOffset: -1, - }, - }, - gaugeSpecs: []gaugeSpec{ - { - isPerpetual: false, - rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, - startTick: -1000, - endTick: 1000, - paidOver: 1, - pricingTick: 0, - }, - }, - assertions: []balanceAssertion{ - {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, - {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, - }, - }, - } - for _, tc := range tests { - suite.T().Run(tc.name, func(t *testing.T) { - suite.SetupTest() - for _, depositSpec := range tc.depositStakeSpecs { - suite.SetupDepositAndStake(depositSpec) - } - gauges := make(types.Gauges, len(tc.gaugeSpecs)) - for i, gaugeSpec := range tc.gaugeSpecs { - gauge := suite.SetupGauge(gaugeSpec) - gauges[i] = gauge - } - _, err := suite.App.IncentivesKeeper.Distribute(suite.Ctx, gauges) - require.NoError(t, err) - // check expected rewards against actual rewards received - for i, assertion := range tc.assertions { - bal := suite.App.BankKeeper.GetAllBalances(suite.Ctx, assertion.addr) - assert.Equal( - t, - assertion.balances.String(), - bal.String(), - "test %v, person %d", - tc.name, - i, - ) - } - }) - } -} diff --git a/x/incentives/keeper/distributor.go b/x/incentives/keeper/distributor.go deleted file mode 100644 index 46197d28d..000000000 --- a/x/incentives/keeper/distributor.go +++ /dev/null @@ -1,92 +0,0 @@ -package keeper - -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/x/incentives/types" -) - -type DistributorKeeper interface { - ValueForShares(ctx sdk.Context, coin sdk.Coin, tick int64) (math.Int, error) - GetStakesByQueryCondition(ctx sdk.Context, distrTo *types.QueryCondition) types.Stakes - StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *types.Stake, distrTo types.QueryCondition) sdk.Coins -} - -type Distributor struct { - keeper DistributorKeeper -} - -func NewDistributor(keeper DistributorKeeper) Distributor { - return Distributor{ - keeper: keeper, - } -} - -func (d Distributor) Distribute( - ctx sdk.Context, - gauge *types.Gauge, - filterStakes types.Stakes, -) (types.DistributionSpec, error) { - if !gauge.IsActiveGauge(ctx.BlockTime()) { - return nil, types.ErrGaugeNotActive - } - - distSpec := types.DistributionSpec{} - - rewardsNextEpoch := gauge.RewardsNextEpoch() - - adjustedGaugeTotal := math.ZeroInt() - - gaugeStakes := d.keeper.GetStakesByQueryCondition(ctx, &gauge.DistributeTo) - if filterStakes == nil { - filterStakes = gaugeStakes - } - - stakeSumCache := make(map[uint64]math.Int, len(gaugeStakes)) - for _, stake := range gaugeStakes { - stakeCoins := d.keeper.StakeCoinsPassingQueryCondition(ctx, stake, gauge.DistributeTo) - stakeTotal := math.ZeroInt() - for _, stakeCoin := range stakeCoins { - adjustedPositionValue, err := d.keeper.ValueForShares(ctx, stakeCoin, gauge.PricingTick) - if err != nil { - return nil, err - } - stakeTotal = stakeTotal.Add(adjustedPositionValue) - } - adjustedGaugeTotal = adjustedGaugeTotal.Add(stakeTotal) - stakeSumCache[stake.ID] = stakeTotal - } - - if adjustedGaugeTotal.IsZero() { - return distSpec, nil - } - - for _, stake := range filterStakes { - stakeAmt := stakeSumCache[stake.ID] - distCoins := sdk.Coins{} - for _, epochRewards := range rewardsNextEpoch { - // distribution amount = gauge_size * denom_stake_amount / (total_denom_stake_amount * remain_epochs) - amount := sdk.NewDecFromInt(epochRewards.Amount). - Mul(sdk.NewDecFromInt(stakeAmt)). - Quo(sdk.NewDecFromInt(adjustedGaugeTotal)). - TruncateInt() - reward := sdk.Coin{Denom: epochRewards.Denom, Amount: amount} - distCoins = distCoins.Add(reward) - } - - // update the amount for that address - if distCoins.Empty() { - continue - } - - if spec, ok := distSpec[stake.Owner]; ok { - distSpec[stake.Owner] = spec.Add(distCoins...) - } else { - distSpec[stake.Owner] = distCoins - } - } - - gauge.DistributedCoins = gauge.DistributedCoins.Add(rewardsNextEpoch...) - gauge.FilledEpochs++ - return distSpec, nil -} diff --git a/x/incentives/keeper/distributor_test.go b/x/incentives/keeper/distributor_test.go deleted file mode 100644 index a9989c065..000000000 --- a/x/incentives/keeper/distributor_test.go +++ /dev/null @@ -1,144 +0,0 @@ -package keeper_test - -import ( - "testing" - time "time" - - "cosmossdk.io/math" - tmtypes "github.com/cometbft/cometbft/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/testutil" - dextypes "github.com/neutron-org/neutron/x/dex/types" - . "github.com/neutron-org/neutron/x/incentives/keeper" - "github.com/neutron-org/neutron/x/incentives/types" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -var _ DistributorKeeper = MockKeeper{} - -type MockKeeper struct { - stakes types.Stakes - keeper DistributorKeeper -} - -func NewMockKeeper(keeper DistributorKeeper, stakes types.Stakes) MockKeeper { - return MockKeeper{ - stakes: stakes, - keeper: keeper, - } -} - -func (k MockKeeper) ValueForShares(_ sdk.Context, coin sdk.Coin, _ int64) (math.Int, error) { - return coin.Amount.Mul(math.NewInt(2)), nil -} - -func (k MockKeeper) GetStakesByQueryCondition( - _ sdk.Context, - _ *types.QueryCondition, -) types.Stakes { - return k.stakes -} - -func (k MockKeeper) StakeCoinsPassingQueryCondition(ctx sdk.Context, stake *types.Stake, distrTo types.QueryCondition) sdk.Coins { - return k.keeper.StakeCoinsPassingQueryCondition(ctx, stake, distrTo) -} - -func TestDistributor(t *testing.T) { - app := testutil.Setup(t) - ctx := app.BaseApp.NewContext( - false, - tmtypes.Header{Height: 1, ChainID: "neutron-1", Time: time.Now().UTC()}, - ) - - gauge := types.NewGauge( - 1, - false, - types.QueryCondition{ - PairID: &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - StartTick: -10, - EndTick: 10, - }, - sdk.Coins{sdk.NewCoin("coin1", math.NewInt(100))}, - ctx.BlockTime(), - 10, - 0, - sdk.Coins{}, - 0, - ) - rewardPool, _ := app.DexKeeper.GetOrInitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 5, 1) - rewardedDenom := rewardPool.GetPoolDenom() - nonRewardPool, _ := app.DexKeeper.GetOrInitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 12, 1) - nonRewardedDenom := nonRewardPool.GetPoolDenom() - addr1 := sdk.AccAddress("addr1") - addr2 := sdk.AccAddress("addr2") - addr3 := sdk.AccAddress("addr3") - allStakes := types.Stakes{ - types.NewStake(1, addr1, sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(50))}, ctx.BlockTime(), 0), - types.NewStake(2, addr2, sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, ctx.BlockTime(), 0), - types.NewStake(3, addr2, sdk.Coins{sdk.NewCoin(rewardedDenom, math.NewInt(25))}, ctx.BlockTime(), 0), - types.NewStake(4, addr3, sdk.Coins{sdk.NewCoin(nonRewardedDenom, math.NewInt(50))}, ctx.BlockTime(), 0), - } - - distributor := NewDistributor(NewMockKeeper(app.IncentivesKeeper, allStakes)) - - testCases := []struct { - name string - timeOffset time.Duration - filterStakes types.Stakes - expected types.DistributionSpec - expectedErr error - }{ - { - name: "Error case: gauge not active", - timeOffset: -1 * time.Minute, - filterStakes: allStakes, - expected: nil, - expectedErr: types.ErrGaugeNotActive, - }, - { - name: "Successful case: distribute to all stakes", - timeOffset: 0, - filterStakes: allStakes, - expected: types.DistributionSpec{ - addr1.String(): sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, - addr2.String(): sdk.Coins{sdk.NewCoin("coin1", math.NewInt(4))}, - }, - expectedErr: nil, - }, - { - name: "Successful case: distribute to one stake", - timeOffset: 0, - filterStakes: types.Stakes{allStakes[0]}, - expected: types.DistributionSpec{ - addr1.String(): sdk.Coins{sdk.NewCoin("coin1", math.NewInt(5))}, - }, - expectedErr: nil, - }, - { - name: "No distribution: empty filterStakes", - filterStakes: types.Stakes{}, - expected: types.DistributionSpec{}, - expectedErr: nil, - }, - } - - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - distSpec, err := distributor.Distribute( - ctx.WithBlockTime(ctx.BlockTime().Add(tc.timeOffset)), - &gauge, - tc.filterStakes, - ) - if tc.expectedErr != nil { - assert.Equal(t, tc.expectedErr, err) - } else { - require.NoError(t, err) - } - assert.Equal(t, tc.expected, distSpec) - }) - } -} diff --git a/x/incentives/keeper/export_test.go b/x/incentives/keeper/export_test.go deleted file mode 100644 index 71baec5fe..000000000 --- a/x/incentives/keeper/export_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/neutron-org/neutron/x/incentives/types" -) - -// AddGaugeRefByKey appends the provided gauge ID into an array associated with the provided key. -func (k Keeper) AddRefByKey(ctx sdk.Context, key []byte, gaugeID uint64) error { - return k.addRefByKey(ctx, key, gaugeID) -} - -// DeleteGaugeRefByKey removes the provided gauge ID from an array associated with the provided key. -func (k Keeper) DeleteRefByKey(ctx sdk.Context, key []byte, guageID uint64) error { - return k.deleteRefByKey(ctx, key, guageID) -} - -// GetGaugeRefs returns the gauge IDs specified by the provided key. -func (k Keeper) GetRefs(ctx sdk.Context, key []byte) []uint64 { - return k.getRefs(ctx, key) -} - -// MoveUpcomingGaugeToActiveGauge moves a gauge that has reached it's start time from an upcoming to an active status. -func (k Keeper) MoveUpcomingGaugeToActiveGauge(ctx sdk.Context, gauge *types.Gauge) error { - return k.moveUpcomingGaugeToActiveGauge(ctx, gauge) -} - -// MoveActiveGaugeToFinishedGauge moves a gauge that has completed its distribution from an active to a finished status. -func (k Keeper) MoveActiveGaugeToFinishedGauge(ctx sdk.Context, gauge *types.Gauge) error { - return k.moveActiveGaugeToFinishedGauge(ctx, gauge) -} - -func (k Keeper) GetStakeRefKeys(ctx sdk.Context, stake *types.Stake) ([][]byte, error) { - return k.getStakeRefKeys(ctx, stake) -} - -func RemoveValue(ids []uint64, id uint64) ([]uint64, int) { - return removeValue(ids, id) -} - -func FindIndex(ids []uint64, id uint64) int { - return findIndex(ids, id) -} diff --git a/x/incentives/keeper/gas_test.go b/x/incentives/keeper/gas_test.go deleted file mode 100644 index c52c2abcf..000000000 --- a/x/incentives/keeper/gas_test.go +++ /dev/null @@ -1,77 +0,0 @@ -package keeper_test - -// import ( -// sdk "github.com/cosmos/cosmos-sdk/types" -// ) - -// var ( -// defaultAddr sdk.AccAddress = sdk.AccAddress([]byte("addr1---------------")) -// defaultCoins sdk.Coins = sdk.Coins{sdk.NewInt64Coin("stake", 10)} -// ) - -// func (suite *KeeperTestSuite) measureStakeGas(addr sdk.AccAddress, coins sdk.Coins, dur time.Duration) uint64 { -// // fundAccount outside of gas measurement -// suite.FundAcc(addr, coins) -// // start measuring gas -// alreadySpent := suite.Ctx.GasMeter().GasConsumed() -// _, err := suite.App.IncentivesKeeper.CreateStake(suite.Ctx, addr, coins, dur) -// suite.Require().NoError(err) -// newSpent := suite.Ctx.GasMeter().GasConsumed() -// spentNow := newSpent - alreadySpent -// return spentNow -// } - -// func (suite *KeeperTestSuite) measureAvgAndMaxStakeGas( -// numIterations int, -// addr sdk.AccAddress, -// coinsFn func(int) sdk.Coins, -// durFn func(int) time.Duration, -// ) (avg uint64, maxGas uint64) { -// runningTotal := uint64(0) -// maxGas = uint64(0) -// for i := 1; i <= numIterations; i++ { -// stakeGas := suite.measureStakeGas(addr, coinsFn(i), durFn(i)) -// runningTotal += stakeGas -// if stakeGas > maxGas { -// maxGas = stakeGas -// // fmt.Println(suite.Ctx.GasMeter().String()) -// } -// } -// avg = runningTotal / uint64(numIterations) -// return avg, maxGas -// } - -// // This maintains hard coded gas test vector changes, -// // so we can easily track changes -// func (suite *KeeperTestSuite) TestRepeatedStakeTokensGas() { -// suite.SetupTest() - -// coinsFn := func(int) sdk.Coins { return defaultCoins } -// durFn := func(int) time.Duration { return time.Second } -// startAveragingAt := 1000 -// totalNumStakes := 10000 - -// firstStakeGasAmount := suite.measureStakeGas(defaultAddr, defaultCoins, time.Second) -// suite.Assert().LessOrEqual(int(firstStakeGasAmount), 100000) - -// for i := 1; i < startAveragingAt; i++ { -// suite.SetupStake(defaultAddr, defaultCoins) -// } -// avgGas, maxGas := suite.measureAvgAndMaxStakeGas(totalNumStakes-startAveragingAt, defaultAddr, coinsFn, durFn) -// fmt.Printf("test deets: total stakes created %d, begin average at %d\n", totalNumStakes, startAveragingAt) -// suite.Assert().LessOrEqual(int(avgGas), 100000, "average gas / stake") -// suite.Assert().LessOrEqual(int(maxGas), 100000, "max gas / stake") -// } - -// func (suite *KeeperTestSuite) TestRepeatedStakeTokensDistinctDurationGas() { -// suite.SetupTest() - -// coinsFn := func(int) sdk.Coins { return defaultCoins } -// durFn := func(i int) time.Duration { return time.Duration(i+1) * time.Second } -// totalNumStakes := 10000 - -// avgGas, maxGas := suite.measureAvgAndMaxStakeGas(totalNumStakes, defaultAddr, coinsFn, durFn) -// fmt.Printf("test deets: total stakes created %d\n", totalNumStakes) -// suite.Assert().LessOrEqual(int(avgGas), 150000, "average gas / stake") -// suite.Assert().LessOrEqual(int(maxGas), 300000, "max gas / stake") -// } diff --git a/x/incentives/keeper/gauge.go b/x/incentives/keeper/gauge.go deleted file mode 100644 index 180b3d101..000000000 --- a/x/incentives/keeper/gauge.go +++ /dev/null @@ -1,309 +0,0 @@ -package keeper - -import ( - "encoding/json" - "errors" - "fmt" - "time" - - db "github.com/cometbft/cometbft-db" - "github.com/cosmos/gogoproto/proto" - - dextypes "github.com/neutron-org/neutron/x/dex/types" - epochtypes "github.com/neutron-org/neutron/x/epochs/types" - "github.com/neutron-org/neutron/x/incentives/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// GetLastGaugeID returns the last used gauge ID. -func (k Keeper) GetLastGaugeID(ctx sdk.Context) uint64 { - store := ctx.KVStore(k.storeKey) - - bz := store.Get(types.KeyLastGaugeID) - if bz == nil { - return 0 - } - - return sdk.BigEndianToUint64(bz) -} - -// SetLastGaugeID sets the last used gauge ID to the provided ID. -func (k Keeper) SetLastGaugeID(ctx sdk.Context, id uint64) { - store := ctx.KVStore(k.storeKey) - store.Set(types.KeyLastGaugeID, sdk.Uint64ToBigEndian(id)) -} - -// getGaugesFromIterator iterates over everything in a gauge's iterator, until it reaches the end. Return all gauges iterated over. -func (k Keeper) getGaugesFromIterator(ctx sdk.Context, iterator db.Iterator) types.Gauges { - gauges := []*types.Gauge{} - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - gaugeIDs := []uint64{} - err := json.Unmarshal(iterator.Value(), &gaugeIDs) - if err != nil { - panic(err) - } - for _, gaugeID := range gaugeIDs { - gauge, err := k.GetGaugeByID(ctx, gaugeID) - if err != nil { - panic(err) - } - gauges = append(gauges, gauge) - } - } - return gauges -} - -func (k Keeper) setGaugeRefs(ctx sdk.Context, gauge *types.Gauge) error { - switch { - case gauge.IsUpcomingGauge(ctx.BlockTime()): - if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexUpcoming, types.GetTimeKey(gauge.StartTime)), gauge.Id); err != nil { - return err - } - err := k.addRefByKey( - ctx, - types.GetKeyGaugeIndexByPair(gauge.DistributeTo.PairID.CanonicalString()), - gauge.Id, - ) - if err != nil { - return err - } - case gauge.IsActiveGauge(ctx.BlockTime()): - err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, types.GetTimeKey(gauge.StartTime)), gauge.Id) - if err != nil { - return err - } - err = k.addRefByKey(ctx, types.GetKeyGaugeIndexByPair(gauge.DistributeTo.PairID.CanonicalString()), gauge.Id) - if err != nil { - return err - } - default: // finished gauge - err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexFinished, types.GetTimeKey(gauge.StartTime)), gauge.Id) - if err != nil { - return err - } - } - return nil -} - -// setGauge set the gauge inside store. -func (k Keeper) setGauge(ctx sdk.Context, gauge *types.Gauge) error { - store := ctx.KVStore(k.storeKey) - bz, err := proto.Marshal(gauge) - if err != nil { - return err - } - store.Set(types.GetKeyGaugeStore(gauge.Id), bz) - return nil -} - -// CreateGauge creates a gauge and sends coins to the gauge. -func (k Keeper) CreateGauge( - ctx sdk.Context, - isPerpetual bool, - owner sdk.AccAddress, - coins sdk.Coins, - distrTo types.QueryCondition, - startTime time.Time, - numEpochsPaidOver uint64, - pricingTick int64, -) (*types.Gauge, error) { - numGauges := k.GetLastGaugeID(ctx) - params := k.GetParams(ctx) - if params.MaxGauges < numGauges+1 { - return nil, types.ErrMaxGaugesReached - } - - // Perhaps overly defensive checks, these validations are also being performed - // in the ValidateBasic() for CreateGaugeMsg. - if dextypes.IsTickOutOfRange(pricingTick) { - return nil, types.ErrGaugePricingTickOutOfRange - } - - if dextypes.IsTickOutOfRange(distrTo.StartTick) { - return nil, types.ErrGaugeDistrToTickOutOfRange - } - - if dextypes.IsTickOutOfRange(distrTo.EndTick) { - return nil, types.ErrGaugeDistrToTickOutOfRange - } - - gauge := &types.Gauge{ - Id: numGauges + 1, - IsPerpetual: isPerpetual, - DistributeTo: distrTo, - Coins: coins, - StartTime: startTime, - NumEpochsPaidOver: numEpochsPaidOver, - // If this is outside the tick range then the distribution step will fail - PricingTick: pricingTick, - } - - if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, gauge.Coins); err != nil { - return nil, err - } - - err := k.setGauge(ctx, gauge) - if err != nil { - return nil, err - } - - k.SetLastGaugeID(ctx, gauge.Id) - - err = k.setGaugeRefs(ctx, gauge) - if err != nil { - return nil, err - } - - k.hooks.AfterCreateGauge(ctx, gauge.Id) - return gauge, nil -} - -// AddToGaugeRewards adds coins to gauge. -func (k Keeper) AddToGaugeRewards( - ctx sdk.Context, - owner sdk.AccAddress, - coins sdk.Coins, - gaugeID uint64, -) error { - gauge, err := k.GetGaugeByID(ctx, gaugeID) - if err != nil { - return err - } - if gauge.IsFinishedGauge(ctx.BlockTime()) { - return errors.New("gauge is already completed") - } - if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, coins); err != nil { - return err - } - - gauge.Coins = gauge.Coins.Add(coins...) - err = k.setGauge(ctx, gauge) - if err != nil { - return err - } - k.hooks.AfterAddToGauge(ctx, gauge.Id) - return nil -} - -// GetGaugeByID returns gauge from gauge ID. -func (k Keeper) GetGaugeByID(ctx sdk.Context, gaugeID uint64) (*types.Gauge, error) { - gauge := types.Gauge{} - store := ctx.KVStore(k.storeKey) - gaugeKey := types.GetKeyGaugeStore(gaugeID) - if !store.Has(gaugeKey) { - return nil, fmt.Errorf("gauge with ID %d does not exist", gaugeID) - } - bz := store.Get(gaugeKey) - if err := proto.Unmarshal(bz, &gauge); err != nil { - return nil, err - } - return &gauge, nil -} - -// GetGaugeQualifyingValue returns gauge qualifying value from gauge ID. -func (k Keeper) GetGaugeQualifyingValue(ctx sdk.Context, gaugeID uint64) (uint64, error) { - gauge := types.Gauge{} - store := ctx.KVStore(k.storeKey) - gaugeKey := types.GetKeyGaugeStore(gaugeID) - if !store.Has(gaugeKey) { - return 0, fmt.Errorf("gauge with ID %d does not exist", gaugeID) - } - bz := store.Get(gaugeKey) - if err := proto.Unmarshal(bz, &gauge); err != nil { - return 0, err - } - var value uint64 - stakes := k.GetStakesByQueryCondition(ctx, &gauge.DistributeTo) - for _, stake := range stakes { - stakeCoins := k.StakeCoinsPassingQueryCondition(ctx, stake, gauge.DistributeTo) - for _, stakeCoin := range stakeCoins { - adjustedPositionValue, err := k.ValueForShares(ctx, stakeCoin, gauge.PricingTick) - if err != nil { - return 0, err - } - value += value + adjustedPositionValue.Uint64() - } - } - return value, nil -} - -// GetGauges returns upcoming, active, and finished gauges. -func (k Keeper) GetGauges(ctx sdk.Context) types.Gauges { - return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndex)) -} - -// GetNotFinishedGauges returns both upcoming and active gauges. -func (k Keeper) GetNotFinishedGauges(ctx sdk.Context) types.Gauges { - return append(k.GetActiveGauges(ctx), k.GetUpcomingGauges(ctx)...) -} - -// GetEpochInfo returns EpochInfo struct given context. -func (k Keeper) GetEpochInfo(ctx sdk.Context) epochtypes.EpochInfo { - params := k.GetParams(ctx) - return k.ek.GetEpochInfo(ctx, params.DistrEpochIdentifier) -} - -// moveUpcomingGaugeToActiveGauge moves a gauge that has reached it's start time from an upcoming to an active status. -func (k Keeper) moveUpcomingGaugeToActiveGauge(ctx sdk.Context, gauge *types.Gauge) error { - // validation for current time and distribution start time - if ctx.BlockTime().Before(gauge.StartTime) { - return fmt.Errorf( - "gauge is not able to start distribution yet: %s >= %s", - ctx.BlockTime().String(), - gauge.StartTime.String(), - ) - } - - timeKey := types.GetTimeKey(gauge.StartTime) - if err := k.deleteRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexUpcoming, timeKey), gauge.Id); err != nil { - return err - } - - err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, timeKey), gauge.Id) - return err -} - -// moveActiveGaugeToFinishedGauge moves a gauge that has completed its distribution from an active to a finished status. -func (k Keeper) moveActiveGaugeToFinishedGauge(ctx sdk.Context, gauge *types.Gauge) error { - timeKey := types.GetTimeKey(gauge.StartTime) - if err := k.deleteRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexActive, timeKey), gauge.Id); err != nil { - return err - } - if err := k.addRefByKey(ctx, types.CombineKeys(types.KeyPrefixGaugeIndexFinished, timeKey), gauge.Id); err != nil { - return err - } - err := k.deleteRefByKey( - ctx, - types.GetKeyGaugeIndexByPair(gauge.DistributeTo.PairID.CanonicalString()), - gauge.Id, - ) - if err != nil { - return err - } - k.hooks.AfterFinishDistribution(ctx, gauge.Id) - return nil -} - -// GetActiveGauges returns active gauges. -func (k Keeper) GetActiveGauges(ctx sdk.Context) types.Gauges { - return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndexActive)) -} - -// GetUpcomingGauges returns upcoming gauges. -func (k Keeper) GetUpcomingGauges(ctx sdk.Context) types.Gauges { - return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndexUpcoming)) -} - -// GetFinishedGauges returns finished gauges. -func (k Keeper) GetFinishedGauges(ctx sdk.Context) types.Gauges { - return k.getGaugesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixGaugeIndexFinished)) -} - -func (k Keeper) GetGaugesByPair(ctx sdk.Context, pair *dextypes.PairID) []*types.Gauge { - return k.getGaugesFromIterator( - ctx, - k.iterator(ctx, types.GetKeyGaugeIndexByPair(pair.CanonicalString())), - ) -} diff --git a/x/incentives/keeper/gauge_test.go b/x/incentives/keeper/gauge_test.go deleted file mode 100644 index ac8ae4396..000000000 --- a/x/incentives/keeper/gauge_test.go +++ /dev/null @@ -1,285 +0,0 @@ -package keeper_test - -import ( - "testing" - "time" - - "github.com/neutron-org/neutron/testutil/apptesting" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" - "github.com/stretchr/testify/require" - "github.com/stretchr/testify/suite" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ = suite.TestingSuite(nil) - -func (suite *IncentivesTestSuite) TestGaugeLifecycle() { - addr0 := suite.SetupAddr(0) - - // setup dex deposit and stake of those shares - suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - - // setup gauge starting 24 hours in the future - suite.SetupGauge(gaugeSpec{ - startTime: suite.Ctx.BlockTime().Add(24 * time.Hour), - isPerpetual: false, - rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10)), - paidOver: 2, - startTick: -10, - endTick: 10, - pricingTick: 0, - }) - - // assert that the gauge is not in effect yet by triggering an epoch end before gauge start - err := suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") - require.NoError(suite.T(), err) - // no distribution yet - require.Equal( - suite.T(), - "0foocoin", - suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), - ) - // assert that gauge state is well-managed - require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 1) - require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 0) - require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 0) - - // advance time to epoch at or after the gauge starts, triggering distribution - suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) - err = suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") - require.NoError(suite.T(), err) - - // assert that the gauge distributed - require.Equal( - suite.T(), - "5foocoin", - suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), - ) - // assert that gauge state is well-managed - require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 0) - require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 1) - require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 0) - - // advance to next epoch - suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) - err = suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") - require.NoError(suite.T(), err) - - // assert new distribution - require.Equal( - suite.T(), - "10foocoin", - suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), - ) - // assert that gauge state is well-managed - require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 0) - require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 0) - require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 1) - - // repeat advancing to next epoch until gauge should be finished - suite.Ctx = suite.Ctx.WithBlockTime(suite.Ctx.BlockTime().Add(24 * time.Hour)) - err = suite.App.IncentivesKeeper.AfterEpochEnd(suite.Ctx, "day") - require.NoError(suite.T(), err) - - // assert no additional distribution from finished gauge - require.Equal( - suite.T(), - "10foocoin", - suite.App.BankKeeper.GetBalance(suite.Ctx, addr0, "foocoin").String(), - ) - // assert that gauge state is well-managed - require.Equal(suite.T(), len(suite.QueryServer.GetUpcomingGauges(suite.Ctx)), 0) - require.Equal(suite.T(), len(suite.QueryServer.GetActiveGauges(suite.Ctx)), 0) - require.Equal(suite.T(), len(suite.QueryServer.GetFinishedGauges(suite.Ctx)), 1) - // fin. -} - -func (suite *IncentivesTestSuite) TestGaugeLimit() { - // We set the gauge limit to 20. On the 21st gauge, we should encounter an error. - params := suite.App.IncentivesKeeper.GetParams(suite.Ctx) - params.MaxGauges = 20 - err := suite.App.IncentivesKeeper.SetParams(suite.Ctx, params) - suite.Require().NoError(err) - - addr0 := suite.SetupAddr(0) - - // setup dex deposit and stake of those shares - suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - - for i := 0; i < 20; i++ { - // setup gauge starting 24 hours in the future - suite.SetupGauge(gaugeSpec{ - startTime: suite.Ctx.BlockTime().Add(24 * time.Hour), - isPerpetual: false, - rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10)), - paidOver: 2, - startTick: -10, - endTick: 10, - pricingTick: 0, - }) - } - - addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) - - // fund reward tokens - suite.FundAcc(addr, sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10))) - - // create gauge - _, err = suite.App.IncentivesKeeper.CreateGauge( - suite.Ctx, - false, - addr, - sdk.NewCoins(sdk.NewInt64Coin("foocoin", 10)), - types.QueryCondition{ - PairID: &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - StartTick: -10, - EndTick: 10, - }, - suite.Ctx.BlockTime().Add(24*time.Hour), - 2, - 0, - ) - suite.Require().Error(err) -} - -// TestGaugeCreateFails tests that when the distribute command is executed on a provided bad gauge -// that the step fails gracefully. -func (suite *IncentivesTestSuite) TestGaugeCreateFails() { - addrs := apptesting.SetupAddrs(3) - tests := []struct { - name string - addrs []sdk.AccAddress - depositStakeSpecs []depositStakeSpec - gaugeSpecs []gaugeSpec - assertions []balanceAssertion - }{ - { - name: "one stake with bad gauge", - depositStakeSpecs: []depositStakeSpec{ - { - depositSpecs: []depositSpec{ - { - addr: addrs[0], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 50, - }, - }, - stakeDistEpochOffset: -2, - }, - { - depositSpecs: []depositSpec{ - { - addr: addrs[1], - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 999, - fee: 50, - }, - }, - stakeDistEpochOffset: -1, - }, - }, - gaugeSpecs: []gaugeSpec{ - { - isPerpetual: false, - rewards: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, - startTick: -1000, - endTick: 1000, - paidOver: 1, - pricingTick: 9999999, - }, - }, - assertions: []balanceAssertion{ - {addr: addrs[0], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, - {addr: addrs[1], balances: sdk.Coins{sdk.NewInt64Coin("reward", 1500)}}, - }, - }, - } - for _, tc := range tests { - suite.T().Run(tc.name, func(t *testing.T) { - suite.SetupTest() - for _, depositSpec := range tc.depositStakeSpecs { - suite.SetupDepositAndStake(depositSpec) - } - for _, s := range tc.gaugeSpecs { - addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) - - // fund reward tokens - suite.FundAcc(addr, s.rewards) - - // create gauge - _, err := suite.App.IncentivesKeeper.CreateGauge( - suite.Ctx, - s.isPerpetual, - addr, - s.rewards, - types.QueryCondition{ - PairID: &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - StartTick: s.startTick, - EndTick: s.endTick, - }, - s.startTime, - s.paidOver, - s.pricingTick, - ) - require.Error(t, err) - } - }) - } -} diff --git a/x/incentives/keeper/genesis.go b/x/incentives/keeper/genesis.go deleted file mode 100644 index 710671120..000000000 --- a/x/incentives/keeper/genesis.go +++ /dev/null @@ -1,80 +0,0 @@ -package keeper - -import ( - "fmt" - - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/neutron-org/neutron/x/incentives/types" -) - -// InitGenesis initializes the incentives module's state from a provided genesis state. -func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { - if err := k.SetParams(ctx, genState.Params); err != nil { - panic(err) - } - if err := k.InitializeAllStakes(ctx, genState.Stakes); err != nil { - panic(err) - } - if err := k.InitializeAllGauges(ctx, genState.Gauges); err != nil { - panic(err) - } - k.SetLastStakeID(ctx, genState.LastStakeId) - k.SetLastGaugeID(ctx, genState.LastGaugeId) - for _, accountHistory := range genState.AccountHistories { - err := k.SetAccountHistory(ctx, accountHistory) - if err != nil { - panic(err) - } - } -} - -// ExportGenesis returns the x/incentives module's exported genesis. -func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { - return &types.GenesisState{ - Params: k.GetParams(ctx), - Gauges: k.GetNotFinishedGauges(ctx), - LastGaugeId: k.GetLastGaugeID(ctx), - LastStakeId: k.GetLastStakeID(ctx), - Stakes: k.GetStakes(ctx), - AccountHistories: k.GetAllAccountHistory(ctx), - } -} - -// InitializeAllStakes takes a set of stakes, and initializes state to be storing -// them all correctly. -func (k Keeper) InitializeAllStakes(ctx sdk.Context, stakes types.Stakes) error { - for i, stake := range stakes { - if i%25000 == 0 { - msg := fmt.Sprintf("Reset %d stake refs, cur stake ID %d", i, stake.ID) - ctx.Logger().Info(msg) - } - err := k.setStake(ctx, stake) - if err != nil { - return err - } - - err = k.addStakeRefs(ctx, stake) - if err != nil { - return err - } - } - - return nil -} - -// InitializeAllGauges takes a set of gauges, and initializes state to be storing -// them all correctly. -func (k Keeper) InitializeAllGauges(ctx sdk.Context, gauges types.Gauges) error { - for _, gauge := range gauges { - err := k.setGauge(ctx, gauge) - if err != nil { - return err - } - err = k.setGaugeRefs(ctx, gauge) - if err != nil { - return err - } - } - return nil -} diff --git a/x/incentives/keeper/genesis_test.go b/x/incentives/keeper/genesis_test.go deleted file mode 100644 index d1747b173..000000000 --- a/x/incentives/keeper/genesis_test.go +++ /dev/null @@ -1,57 +0,0 @@ -package keeper_test - -import ( - "time" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/testutil/apptesting" - "github.com/neutron-org/neutron/testutil/dex/nullify" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" - "github.com/stretchr/testify/require" -) - -// TestIncentivesExportGenesis tests export genesis command for the incentives module. -func (suite *IncentivesTestSuite) TestGenesis() { - validAddr, _ := apptesting.GenerateTestAddrs() - genesisState := types.GenesisState{ - Params: types.DefaultParams(), - LastStakeId: 10, - Stakes: []*types.Stake{ - { - ID: 0, - Owner: validAddr, - StartTime: time.Time{}, - Coins: sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 10)), - }, - }, - LastGaugeId: 10, - Gauges: []*types.Gauge{ - { - IsPerpetual: false, - Coins: sdk.Coins{sdk.NewInt64Coin("reward", 3000)}, - DistributeTo: types.QueryCondition{ - StartTick: -10, - EndTick: 10, - PairID: &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - }, - NumEpochsPaidOver: 1, - PricingTick: 0, - }, - }, - } - suite.App.IncentivesKeeper.InitGenesis(suite.Ctx, genesisState) - got := suite.App.IncentivesKeeper.ExportGenesis(suite.Ctx) - require.NotNil(suite.T(), got) - - nullify.Fill(&genesisState) - nullify.Fill(got) - - require.ElementsMatch(suite.T(), genesisState.Gauges, got.Gauges) - require.ElementsMatch(suite.T(), genesisState.Stakes, got.Stakes) - require.Equal(suite.T(), genesisState.LastStakeId, got.LastStakeId) - require.Equal(suite.T(), genesisState.LastGaugeId, got.LastGaugeId) -} diff --git a/x/incentives/keeper/hooks.go b/x/incentives/keeper/hooks.go deleted file mode 100644 index 6d8fb1911..000000000 --- a/x/incentives/keeper/hooks.go +++ /dev/null @@ -1,60 +0,0 @@ -package keeper - -import ( - epochstypes "github.com/neutron-org/neutron/x/epochs/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// BeforeEpochStart is the epoch start hook. -func (k Keeper) BeforeEpochStart(_ sdk.Context, _ string) error { - return nil -} - -// AfterEpochEnd is the epoch end hook. -func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string) error { - params := k.GetParams(ctx) - if epochIdentifier == params.DistrEpochIdentifier { - // begin distribution if it's start time - gauges := k.GetUpcomingGauges(ctx) - for _, gauge := range gauges { - if gauge.IsActiveGauge(ctx.BlockTime()) { - if err := k.moveUpcomingGaugeToActiveGauge(ctx, gauge); err != nil { - return err - } - } - } - - // distribute due to epoch event - gauges = k.GetActiveGauges(ctx) - _, err := k.Distribute(ctx, gauges) - if err != nil { - return err - } - } - return nil -} - -// ___________________________________________________________________________________________________ - -// Hooks is the wrapper struct for the incentives keeper. -type Hooks struct { - k Keeper -} - -var _ epochstypes.EpochHooks = Hooks{} - -// Hooks returns the hook wrapper struct. -func (k Keeper) Hooks() Hooks { - return Hooks{k} -} - -// BeforeEpochStart is the epoch start hook. -func (h Hooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string) error { - return h.k.BeforeEpochStart(ctx, epochIdentifier) -} - -// AfterEpochEnd is the epoch end hook. -func (h Hooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string) error { - return h.k.AfterEpochEnd(ctx, epochIdentifier) -} diff --git a/x/incentives/keeper/iterator.go b/x/incentives/keeper/iterator.go deleted file mode 100644 index 4fdaa3cc6..000000000 --- a/x/incentives/keeper/iterator.go +++ /dev/null @@ -1,58 +0,0 @@ -package keeper - -import ( - "encoding/json" - - db "github.com/cometbft/cometbft-db" - "github.com/neutron-org/neutron/x/incentives/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// iterator returns an iterator over all gauges in the {prefix} space of state. -func (k Keeper) iterator(ctx sdk.Context, prefix []byte) sdk.Iterator { - store := ctx.KVStore(k.storeKey) - return sdk.KVStorePrefixIterator(store, prefix) -} - -// iterator returns an iterator over all gauges in the {prefix} space of state. -func (k Keeper) iteratorStartEnd(ctx sdk.Context, start, end []byte) sdk.Iterator { - store := ctx.KVStore(k.storeKey) - return store.Iterator(start, end) -} - -func UnmarshalRefArray(bz []byte) []uint64 { - ids := []uint64{} - err := json.Unmarshal(bz, &ids) - if err != nil { - panic(err) - } - return ids -} - -// getStakesFromIterator returns an array of single stake units by period defined by the x/stake module. -func (k Keeper) getStakesFromIterator(ctx sdk.Context, iterator db.Iterator) types.Stakes { - stakes := types.Stakes{} - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - stakeIDs := UnmarshalRefArray(iterator.Value()) - for _, stakeID := range stakeIDs { - stake, err := k.GetStakeByID(ctx, stakeID) - if err != nil { - panic(err) - } - stakes = append(stakes, stake) - } - } - return stakes -} - -func (k Keeper) getIDsFromIterator(iterator db.Iterator) []uint64 { - allIds := []uint64{} - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - ids := UnmarshalRefArray(iterator.Value()) - allIds = append(allIds, ids...) - } - return allIds -} diff --git a/x/incentives/keeper/keeper.go b/x/incentives/keeper/keeper.go deleted file mode 100644 index f9fcfe12a..000000000 --- a/x/incentives/keeper/keeper.go +++ /dev/null @@ -1,77 +0,0 @@ -package keeper - -import ( - "fmt" - - "github.com/cometbft/cometbft/libs/log" - - "github.com/neutron-org/neutron/x/incentives/types" - - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// Keeper provides a way to manage incentives module storage. -type Keeper struct { - storeKey storetypes.StoreKey - hooks types.IncentiveHooks - ak types.AccountKeeper - bk types.BankKeeper - ek types.EpochKeeper - dk types.DexKeeper - distributor Distributor - authority string -} - -// NewKeeper returns a new instance of the incentive module keeper struct. -func NewKeeper( - storeKey storetypes.StoreKey, - ak types.AccountKeeper, - bk types.BankKeeper, - ek types.EpochKeeper, - dk types.DexKeeper, - authority string, -) *Keeper { - keeper := &Keeper{ - storeKey: storeKey, - ak: ak, - bk: bk, - ek: ek, - dk: dk, - authority: authority, - } - keeper.distributor = NewDistributor(keeper) - return keeper -} - -// SetHooks sets the incentives hooks. -func (k *Keeper) SetHooks(ih types.IncentiveHooks) *Keeper { - if k.hooks != nil { - panic("cannot set incentive hooks twice") - } - - k.hooks = ih - - return k -} - -// Logger returns a logger instance for the incentives module. -func (k Keeper) Logger(ctx sdk.Context) log.Logger { - return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} - -// GetModuleBalance returns full balance of the module. -func (k Keeper) GetModuleBalance(ctx sdk.Context) sdk.Coins { - acc := k.ak.GetModuleAccount(ctx, types.ModuleName) - return k.bk.GetAllBalances(ctx, acc.GetAddress()) -} - -// GetModuleStakedCoins Returns staked balance of the module. -func (k Keeper) GetModuleStakedCoins(ctx sdk.Context) sdk.Coins { - // all not unstaking + not finished unstaking - return k.GetStakes(ctx).GetCoins() -} - -func (k Keeper) GetAuthority() string { - return k.authority -} diff --git a/x/incentives/keeper/keeper_test.go b/x/incentives/keeper/keeper_test.go deleted file mode 100644 index 6268a0516..000000000 --- a/x/incentives/keeper/keeper_test.go +++ /dev/null @@ -1,52 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/suite" - - "github.com/neutron-org/neutron/testutil/apptesting" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/keeper" - "github.com/neutron-org/neutron/x/incentives/types" -) - -type IncentivesTestSuite struct { - apptesting.KeeperTestHelper - - QueryServer keeper.QueryServer - MsgServer types.MsgServer - LPDenom0 string - LPDenom1 string -} - -// SetupTest sets incentives parameters from the suite's context -func (suite *IncentivesTestSuite) SetupTest() { - suite.Setup() - suite.QueryServer = keeper.NewQueryServer(suite.App.IncentivesKeeper) - suite.MsgServer = keeper.NewMsgServerImpl(suite.App.IncentivesKeeper) - pool0, _ := suite.App.DexKeeper.GetOrInitPool(suite.Ctx, - &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - 0, - 1, - ) - suite.LPDenom0 = pool0.GetPoolDenom() - pool1, _ := suite.App.DexKeeper.GetOrInitPool(suite.Ctx, - &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - 1, - 1, - ) - suite.LPDenom1 = pool1.GetPoolDenom() - - suite.SetEpochStartTime() -} - -func TestIncentivesTestSuite(t *testing.T) { - suite.Run(t, new(IncentivesTestSuite)) -} diff --git a/x/incentives/keeper/msg_server.go b/x/incentives/keeper/msg_server.go deleted file mode 100644 index c0feb7306..000000000 --- a/x/incentives/keeper/msg_server.go +++ /dev/null @@ -1,199 +0,0 @@ -package keeper - -import ( - "context" - "fmt" - "strconv" - - "github.com/neutron-org/neutron/x/incentives/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ types.MsgServer = msgServer{} - -// msgServer provides a way to reference keeper pointer in the message server interface. -type msgServer struct { - keeper *Keeper -} - -// NewMsgServerImpl returns an instance of MsgServer for the provided keeper. -func NewMsgServerImpl(keeper *Keeper) types.MsgServer { - return &msgServer{ - keeper: keeper, - } -} - -// CreateGauge creates a gauge and sends coins to the gauge. -// Emits create gauge event and returns the create gauge response. -func (server msgServer) CreateGauge( - goCtx context.Context, - msg *types.MsgCreateGauge, -) (*types.MsgCreateGaugeResponse, error) { - if server.keeper.authority != msg.Owner { - return nil, sdkerrors.Wrapf( - types.ErrInvalidSigner, - "invalid authority; expected %s, got %s", - server.keeper.authority, - msg.Owner, - ) - } - - ctx := sdk.UnwrapSDKContext(goCtx) - owner, err := sdk.AccAddressFromBech32(msg.Owner) - if err != nil { - return nil, err - } - - gauge, err := server.keeper.CreateGauge( - ctx, - msg.IsPerpetual, - owner, - msg.Coins, - msg.DistributeTo, - msg.StartTime, - msg.NumEpochsPaidOver, - msg.PricingTick, - ) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - ctx.EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - types.TypeEvtCreateGauge, - sdk.NewAttribute(types.AttributeGaugeID, strconv.FormatUint(gauge.Id, 10)), - ), - }) - - return &types.MsgCreateGaugeResponse{}, nil -} - -// AddToGauge adds coins to gauge. -// Emits add to gauge event and returns the add to gauge response. -func (server msgServer) AddToGauge( - goCtx context.Context, - msg *types.MsgAddToGauge, -) (*types.MsgAddToGaugeResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - owner, err := sdk.AccAddressFromBech32(msg.Owner) - if err != nil { - return nil, err - } - - err = server.keeper.AddToGaugeRewards(ctx, owner, msg.Rewards, msg.GaugeId) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - ctx.EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - types.TypeEvtAddToGauge, - sdk.NewAttribute(types.AttributeGaugeID, strconv.FormatUint(msg.GaugeId, 10)), - ), - }) - - return &types.MsgAddToGaugeResponse{}, nil -} - -// StakeTokens stakes tokens in either two ways. -// 1. Add to an existing stake if a stake with the same owner and same duration exists. -// 2. Create a new stake if not. -// A sanity check to ensure given tokens is a single token is done in ValidateBaic. -// That is, a stake with multiple tokens cannot be created. -func (server msgServer) Stake( - goCtx context.Context, - msg *types.MsgStake, -) (*types.MsgStakeResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - owner, err := sdk.AccAddressFromBech32(msg.Owner) - if err != nil { - return nil, err - } - - params := server.keeper.GetParams(ctx) - startDistEpoch := server.keeper.ek.GetEpochInfo(ctx, params.DistrEpochIdentifier).CurrentEpoch - - // if the owner + duration combination is new, create a new stake. - stake, err := server.keeper.CreateStake(ctx, owner, msg.Coins, ctx.BlockTime(), startDistEpoch) - if err != nil { - return nil, err - } - - ctx.EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - types.TypeEvtStake, - sdk.NewAttribute(types.AttributeStakeID, strconv.FormatUint(stake.ID, 10)), - sdk.NewAttribute(types.AttributeStakeOwner, stake.Owner), - sdk.NewAttribute(types.AttributeStakeAmount, stake.Coins.String()), - ), - }) - - return &types.MsgStakeResponse{ID: stake.ID}, nil -} - -// BeginUnstaking begins unstaking of the specified stake. -// The stake would enter the unstaking queue, with the endtime of the stake set as block time + duration. -func (server msgServer) Unstake( - goCtx context.Context, - msg *types.MsgUnstake, -) (*types.MsgUnstakeResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - unstakes := msg.Unstakes - if len(msg.Unstakes) == 0 { - stakes := server.keeper.GetStakesByAccount(ctx, sdk.AccAddress(msg.Owner)) - unstakes = make([]*types.MsgUnstake_UnstakeDescriptor, len(stakes)) - for i, stake := range stakes { - unstakes[i] = &types.MsgUnstake_UnstakeDescriptor{ - ID: stake.ID, - Coins: sdk.NewCoins(), - } - } - } - - for _, unstake := range unstakes { - stake, err := server.keeper.GetStakeByID(ctx, unstake.ID) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - if msg.Owner != stake.Owner { - return nil, sdkerrors.Wrap( - types.ErrNotStakeOwner, - fmt.Sprintf( - "msg sender (%s) and stake owner (%s) does not match", - msg.Owner, - stake.Owner, - ), - ) - } - - _, err = server.keeper.Unstake(ctx, stake, unstake.Coins) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - } - - // N.B. begin unstake event is emitted downstream in the keeper method. - return &types.MsgUnstakeResponse{}, nil -} - -func (server msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - if err := req.ValidateBasic(); err != nil { - return nil, err - } - authority := server.keeper.GetAuthority() - if authority != req.Authority { - return nil, sdkerrors.Wrapf(types.ErrInvalidRequest, "invalid authority; expected %s, got %s", authority, req.Authority) - } - - ctx := sdk.UnwrapSDKContext(goCtx) - if err := server.keeper.SetParams(ctx, req.Params); err != nil { - return nil, err - } - - return &types.MsgUpdateParamsResponse{}, nil -} diff --git a/x/incentives/keeper/params.go b/x/incentives/keeper/params.go deleted file mode 100644 index 9a684f11c..000000000 --- a/x/incentives/keeper/params.go +++ /dev/null @@ -1,34 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/gogoproto/proto" - "github.com/neutron-org/neutron/x/incentives/types" -) - -// GetParams returns all of the parameters in the incentive module. -func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - store := ctx.KVStore(k.storeKey) - bz := store.Get(types.KeyParams) - if bz == nil { - return params - } - - if err := proto.Unmarshal(bz, ¶ms); err != nil { - panic(err) - } - - return params -} - -// SetParams sets all of the parameters in the incentive module. -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { - store := ctx.KVStore(k.storeKey) - bz, err := proto.Marshal(¶ms) - if err != nil { - return err - } - - store.Set(types.KeyParams, bz) - return nil -} diff --git a/x/incentives/keeper/query_server.go b/x/incentives/keeper/query_server.go deleted file mode 100644 index 4d2426ca8..000000000 --- a/x/incentives/keeper/query_server.go +++ /dev/null @@ -1,267 +0,0 @@ -package keeper - -import ( - "context" - "encoding/json" - - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" -) - -var _ types.QueryServer = QueryServer{} - -// QueryServer defines a wrapper around the incentives module keeper providing gRPC method handlers. -type QueryServer struct { - *Keeper -} - -// NewQueryServer creates a new QueryServer struct. -func NewQueryServer(k *Keeper) QueryServer { - return QueryServer{Keeper: k} -} - -func (q QueryServer) GetModuleStatus( - goCtx context.Context, - _ *types.GetModuleStatusRequest, -) (*types.GetModuleStatusResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - return &types.GetModuleStatusResponse{ - RewardCoins: q.Keeper.GetModuleCoinsToBeDistributed(ctx), - StakedCoins: q.Keeper.GetModuleStakedCoins(ctx), - Params: q.Keeper.GetParams(ctx), - }, nil -} - -func (q QueryServer) GetGaugeByID( - goCtx context.Context, - req *types.GetGaugeByIDRequest, -) (*types.GetGaugeByIDResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - gauge, err := q.Keeper.GetGaugeByID(ctx, req.Id) - if err != nil { - return nil, err - } - return &types.GetGaugeByIDResponse{Gauge: gauge}, nil -} - -func (q QueryServer) GetGaugeQualifyingValue( - goCtx context.Context, - req *types.GetGaugeQualifyingValueRequest, -) (*types.GetGaugeQualifyingValueResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - value, err := q.Keeper.GetGaugeQualifyingValue(ctx, req.Id) - if err != nil { - return nil, err - } - return &types.GetGaugeQualifyingValueResponse{QualifyingValue: value}, nil -} - -func (q QueryServer) GetGauges( - goCtx context.Context, - req *types.GetGaugesRequest, -) (*types.GetGaugesResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - - var prefix []byte - switch req.Status { - case types.GaugeStatus_ACTIVE_UPCOMING: - prefix = types.KeyPrefixGaugeIndex - case types.GaugeStatus_ACTIVE: - prefix = types.KeyPrefixGaugeIndexActive - case types.GaugeStatus_UPCOMING: - prefix = types.KeyPrefixGaugeIndexUpcoming - case types.GaugeStatus_FINISHED: - prefix = types.KeyPrefixGaugeIndexFinished - default: - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, "invalid status filter value") - } - - var lowerTick, upperTick int64 - var poolMetadata *dextypes.PoolMetadata - if req.Denom != "" { - poolMetadata, err := q.dk.GetPoolMetadataByDenom(ctx, req.Denom) - if err != nil { - return nil, err - } - lowerTick = poolMetadata.Tick - int64(poolMetadata.Fee) - upperTick = poolMetadata.Tick + int64(poolMetadata.Fee) - } - - gauges := types.Gauges{} - store := ctx.KVStore(q.Keeper.storeKey) - iterator := sdk.KVStorePrefixIterator(store, prefix) - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - // this may return multiple gauges at once if two gauges start at the same time. - // for now this is treated as an edge case that is not of importance - newGauges, err := q.getGaugeFromIDJsonBytes(ctx, iterator.Value()) - if err != nil { - return nil, err - } - if req.Denom != "" { - for _, gauge := range newGauges { - if *gauge.DistributeTo.PairID != *poolMetadata.PairID { - continue - } - lowerTickInRange := gauge.DistributeTo.StartTick <= lowerTick && - lowerTick <= gauge.DistributeTo.EndTick - upperTickInRange := gauge.DistributeTo.StartTick <= upperTick && - upperTick <= gauge.DistributeTo.EndTick - if !lowerTickInRange || !upperTickInRange { - continue - } - gauges = append(gauges, gauge) - } - } else { - gauges = append(gauges, newGauges...) - } - } - - return &types.GetGaugesResponse{ - Gauges: gauges, - }, nil -} - -func (q QueryServer) GetStakeByID( - goCtx context.Context, - req *types.GetStakeByIDRequest, -) (*types.GetStakeByIDResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - stake, err := q.Keeper.GetStakeByID(ctx, req.StakeId) - if err != nil { - return nil, status.Error(codes.Internal, err.Error()) - } - return &types.GetStakeByIDResponse{Stake: stake}, nil -} - -func (q QueryServer) GetStakes( - goCtx context.Context, - req *types.GetStakesRequest, -) (*types.GetStakesResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - hasOwner := len(req.Owner) > 0 - if !hasOwner { - // TODO: Verify this protection is necessary - return nil, status.Error( - codes.InvalidArgument, - "for performance reasons will not return all stakes", - ) - } - - owner, err := sdk.AccAddressFromBech32(req.Owner) - if err != nil { - return nil, err - } - - stakes := q.Keeper.getStakesByAccount(ctx, owner) - return &types.GetStakesResponse{ - Stakes: stakes, - }, nil -} - -func (q QueryServer) GetFutureRewardEstimate( - goCtx context.Context, - req *types.GetFutureRewardEstimateRequest, -) (*types.GetFutureRewardEstimateResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - if len(req.Owner) == 0 && len(req.StakeIds) == 0 { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, "empty owner") - } - - if req.NumEpochs > 365 { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, "end epoch out of ranges") - } - - var ownerAddress sdk.AccAddress - if len(req.Owner) != 0 { - owner, err := sdk.AccAddressFromBech32(req.Owner) - if err != nil { - return nil, err - } - ownerAddress = owner - } - - stakes := make(types.Stakes, 0, len(req.StakeIds)) - for _, stakeID := range req.StakeIds { - stake, err := q.Keeper.GetStakeByID(ctx, stakeID) - if err != nil { - return nil, err - } - stakes = append(stakes, stake) - } - - rewards, err := q.Keeper.GetRewardsEstimate(ctx, ownerAddress, stakes, req.NumEpochs) - if err != nil { - return nil, err - } - return &types.GetFutureRewardEstimateResponse{Coins: rewards}, nil -} - -func (q QueryServer) GetAccountHistory( - goCtx context.Context, - req *types.GetAccountHistoryRequest, -) (*types.GetAccountHistoryResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - accountHistory, found := q.Keeper.GetAccountHistory(ctx, req.Account) - if !found { - return nil, status.Error( - codes.NotFound, - "Could not locate an account history with that address", - ) - } - return &types.GetAccountHistoryResponse{Coins: accountHistory.Coins}, nil -} - -// getGaugeFromIDJsonBytes returns gauges from the json bytes of gaugeIDs. -func (q QueryServer) getGaugeFromIDJsonBytes( - ctx sdk.Context, - refValue []byte, -) (types.Gauges, error) { - gauges := types.Gauges{} - gaugeIDs := []uint64{} - - err := json.Unmarshal(refValue, &gaugeIDs) - if err != nil { - return gauges, err - } - - for _, gaugeID := range gaugeIDs { - gauge, err := q.Keeper.GetGaugeByID(ctx, gaugeID) - if err != nil { - return types.Gauges{}, err - } - - gauges = append(gauges, gauge) - } - - return gauges, nil -} diff --git a/x/incentives/keeper/query_server_test.go b/x/incentives/keeper/query_server_test.go deleted file mode 100644 index 953c67876..000000000 --- a/x/incentives/keeper/query_server_test.go +++ /dev/null @@ -1,126 +0,0 @@ -package keeper_test - -import ( - "time" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/x/incentives/types" - "github.com/stretchr/testify/suite" -) - -var _ = suite.TestingSuite(nil) - -func (suite *IncentivesTestSuite) TestGetFutureRewardEstimate() { - addr1 := suite.SetupAddr(0) - suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr1, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - addr2 := suite.SetupAddr(1) - suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr2, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - suite.SetupGauge(gaugeSpec{ - isPerpetual: false, - rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), - paidOver: 100, - startTick: -10, - endTick: 10, - pricingTick: 0, - startTime: suite.Ctx.BlockTime(), - }) - suite.SetupGauge(gaugeSpec{ - isPerpetual: false, - rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), - paidOver: 100, - startTick: -10, - endTick: 10, - pricingTick: 0, - startTime: suite.Ctx.BlockTime().Add(315 * 24 * time.Hour), - }) - estimate, err := suite.QueryServer.GetFutureRewardEstimate( - suite.GoCtx, - &types.GetFutureRewardEstimateRequest{ - Owner: addr1.String(), - StakeIds: nil, - NumEpochs: 365, - }, - ) - suite.Require().NoError(err) - suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin("foocoin", 750)), estimate.Coins) -} - -func (suite *IncentivesTestSuite) TestGetGauges() { - addr1 := suite.SetupAddr(0) - suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr1, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - addr2 := suite.SetupAddr(1) - suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr2, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - gauge1 := suite.SetupGauge(gaugeSpec{ - isPerpetual: false, - rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), - paidOver: 100, - startTick: -10, - endTick: 10, - pricingTick: 0, - startTime: suite.Ctx.BlockTime(), - }) - gauge2 := suite.SetupGauge(gaugeSpec{ - isPerpetual: false, - rewards: sdk.NewCoins(sdk.NewInt64Coin("foocoin", 1000)), - paidOver: 100, - startTick: -10, - endTick: 10, - pricingTick: 0, - startTime: suite.Ctx.BlockTime().Add(315 * 24 * time.Hour), - }) - - response, err := suite.QueryServer.GetGauges(suite.GoCtx, &types.GetGaugesRequest{ - Status: types.GaugeStatus_ACTIVE_UPCOMING, - Denom: "", - }) - - suite.Require().NoError(err) - suite.Require().Equal([]*types.Gauge{ - gauge2, - gauge1, - }, response.Gauges) -} diff --git a/x/incentives/keeper/stake.go b/x/incentives/keeper/stake.go deleted file mode 100644 index 90ef98fb4..000000000 --- a/x/incentives/keeper/stake.go +++ /dev/null @@ -1,249 +0,0 @@ -package keeper - -import ( - "fmt" - "strconv" - "time" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/gogoproto/proto" - - "github.com/neutron-org/neutron/x/incentives/types" -) - -// GetLastStakeID returns ID used last time. -func (k Keeper) GetLastStakeID(ctx sdk.Context) uint64 { - store := ctx.KVStore(k.storeKey) - - bz := store.Get(types.KeyLastStakeID) - if bz == nil { - return 0 - } - - return sdk.BigEndianToUint64(bz) -} - -// SetLastStakeID save ID used by last stake. -func (k Keeper) SetLastStakeID(ctx sdk.Context, id uint64) { - store := ctx.KVStore(k.storeKey) - store.Set(types.KeyLastStakeID, sdk.Uint64ToBigEndian(id)) -} - -func (k Keeper) Unstake(ctx sdk.Context, stake *types.Stake, coins sdk.Coins) (uint64, error) { - if coins.Empty() { - coins = stake.Coins - } - - if !coins.IsAllLTE(stake.Coins) { - return 0, fmt.Errorf("requested amount to unstake exceeds locked tokens") - } - - // remove existing stake refs from not unlocking queue - err := k.deleteStakeRefs(ctx, stake) - if err != nil { - return 0, err - } - - if len(coins) != 0 && !coins.IsEqual(stake.Coins) { - stake.Coins = stake.Coins.Sub(coins...) - err := k.setStake(ctx, stake) - if err != nil { - return 0, err - } - - // re-add remaining stake refs - err = k.addStakeRefs(ctx, stake) - if err != nil { - return 0, err - } - } else { - k.deleteStake(ctx, stake.ID) - } - - err = k.bk.SendCoinsFromModuleToAccount(ctx, types.ModuleName, stake.OwnerAddress(), coins) - if err != nil { - return 0, err - } - - if k.hooks != nil { - k.hooks.OnTokenUnstaked(ctx, stake.OwnerAddress(), stake.ID, stake.Coins, ctx.BlockTime()) - } - - ctx.EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - types.TypeEvtUnstake, - sdk.NewAttribute(types.AttributeStakeID, strconv.FormatUint(stake.ID, 10)), - sdk.NewAttribute(types.AttributeStakeOwner, stake.Owner), - sdk.NewAttribute(types.AttributeStakeStakeTime, stake.StartTime.String()), - sdk.NewAttribute(types.AttributeUnstakedCoins, coins.String()), - ), - }) - - return stake.ID, err -} - -// setStake is a utility to store stake object into the store. -func (k Keeper) setStake(ctx sdk.Context, stake *types.Stake) error { - store := ctx.KVStore(k.storeKey) - bz, err := proto.Marshal(stake) - if err != nil { - return err - } - store.Set(types.GetStakeStoreKey(stake.ID), bz) - return nil -} - -// deleteStake removes the stake object from the state. -func (k Keeper) deleteStake(ctx sdk.Context, id uint64) { - store := ctx.KVStore(k.storeKey) - store.Delete(types.GetStakeStoreKey(id)) -} - -// GetStakeByID Returns stake from stakeID. -func (k Keeper) GetStakeByID(ctx sdk.Context, stakeID uint64) (*types.Stake, error) { - stake := types.Stake{} - store := ctx.KVStore(k.storeKey) - lockKey := types.GetStakeStoreKey(stakeID) - if !store.Has(lockKey) { - return nil, sdkerrors.Wrap( - types.ErrStakeNotFound, - fmt.Sprintf("stake with ID %d does not exist", stakeID), - ) - } - bz := store.Get(lockKey) - err := proto.Unmarshal(bz, &stake) - return &stake, err -} - -// GetAccountStakes Returns the period locks associated to an account. -func (k Keeper) GetStakesByQueryCondition( - ctx sdk.Context, - distrTo *types.QueryCondition, -) types.Stakes { - pairIDString := distrTo.PairID.CanonicalString() - tickStakeIds := k.getIDsFromIterator( - k.iteratorStartEnd( - ctx, - types.GetKeyStakeIndexByPairTick(pairIDString, distrTo.StartTick), - types.GetKeyStakeIndexByPairTick(pairIDString, distrTo.EndTick+1), - ), - ) - - idMemo := make(map[uint64]bool) - for _, id := range tickStakeIds { - idMemo[id] = true - } - - params := k.GetParams(ctx) - curEpoch := k.ek.GetEpochInfo(ctx, params.GetDistrEpochIdentifier()) - timeStakeIds := k.getIDsFromIterator( - k.iteratorStartEnd( - ctx, - types.CombineKeys( - types.KeyPrefixStakeIndexPairDistEpoch, - []byte(pairIDString), - ), - sdk.PrefixEndBytes(types.GetKeyStakeIndexByDistEpoch( - pairIDString, - curEpoch.CurrentEpoch-2, - )), - ), - ) - - resultIds := []uint64{} - for _, id := range timeStakeIds { - if _, ok := idMemo[id]; ok { - resultIds = append(resultIds, id) - } - } - - results := make([]*types.Stake, len(resultIds)) - for i, stakeID := range resultIds { - stake, err := k.GetStakeByID(ctx, stakeID) - if err != nil { - // This represents a db inconsistency - panic(err) - } - results[i] = stake - } - return results -} - -func (k Keeper) GetStakes(ctx sdk.Context) types.Stakes { - return k.getStakesFromIterator(ctx, k.iterator(ctx, types.KeyPrefixStakeIndex)) -} - -func (k Keeper) getStakesByAccount(ctx sdk.Context, acct sdk.AccAddress) types.Stakes { - return k.getStakesFromIterator(ctx, k.iterator(ctx, types.GetKeyStakeIndexByAccount(acct))) -} - -// GetAccountStakes Returns the period locks associated to an account. -func (k Keeper) GetStakesByAccount(ctx sdk.Context, addr sdk.AccAddress) types.Stakes { - return k.getStakesFromIterator(ctx, k.iterator(ctx, types.GetKeyStakeIndexByAccount(addr))) -} - -func (k Keeper) CreateStake( - ctx sdk.Context, - owner sdk.AccAddress, - coins sdk.Coins, - startTime time.Time, - startDistEpoch int64, -) (*types.Stake, error) { - ID := k.GetLastStakeID(ctx) + 1 - - // unlock time is initially set without a value, gets set as unlock start time + duration - // when unlocking starts. - stake := types.NewStake(ID, owner, coins, startTime, startDistEpoch) - - owner, err := sdk.AccAddressFromBech32(stake.Owner) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - err = stake.ValidateBasic() - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - if err := k.bk.SendCoinsFromAccountToModule(ctx, owner, types.ModuleName, stake.Coins); err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - // store stake object into the store - err = k.setStake(ctx, stake) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - k.hooks.OnTokenStaked(ctx, owner, stake.ID, stake.Coins, ctx.BlockTime()) - k.SetLastStakeID(ctx, stake.ID) - - // add stake refs into not unlocking queue - err = k.addStakeRefs(ctx, stake) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidRequest, err.Error()) - } - - return stake, nil -} - -func (k Keeper) StakeCoinsPassingQueryCondition( - ctx sdk.Context, - stake *types.Stake, - distrTo types.QueryCondition, -) sdk.Coins { - coins := stake.Coins - result := sdk.NewCoins() - for _, c := range coins { - poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, c.Denom) - if err != nil { - continue - } - - if distrTo.Test(poolMetadata) { - result = result.Add(c) - } - } - return result -} diff --git a/x/incentives/keeper/stake_refs.go b/x/incentives/keeper/stake_refs.go deleted file mode 100644 index 93d9c66d5..000000000 --- a/x/incentives/keeper/stake_refs.go +++ /dev/null @@ -1,72 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" -) - -// addStakeRefs adds appropriate reference keys preceded by a prefix. -// A prefix indicates whether the stake is unstaking or not. -func (k Keeper) addStakeRefs(ctx sdk.Context, stake *types.Stake) error { - refKeys, err := k.getStakeRefKeys(ctx, stake) - if err != nil { - return err - } - for _, refKey := range refKeys { - if err := k.addRefByKey(ctx, refKey, stake.ID); err != nil { - return err - } - } - return nil -} - -// deleteStakeRefs deletes all the stake references of the stake with the given stake prefix. -func (k Keeper) deleteStakeRefs(ctx sdk.Context, stake *types.Stake) error { - refKeys, err := k.getStakeRefKeys(ctx, stake) - if err != nil { - return err - } - for _, refKey := range refKeys { - err = k.deleteRefByKey(ctx, refKey, stake.ID) - if err != nil { - return err - } - } - return nil -} - -func (k Keeper) getStakeRefKeys(ctx sdk.Context, stake *types.Stake) ([][]byte, error) { - owner, err := sdk.AccAddressFromBech32(stake.Owner) - if err != nil { - return nil, err - } - - refKeys := make(map[string]bool) - refKeys[string(types.KeyPrefixStakeIndex)] = true - refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexAccount, owner))] = true - - for _, coin := range stake.Coins { - poolMetadata, err := k.dk.GetPoolMetadataByDenom(ctx, coin.Denom) - if err != nil { - panic("Only valid LP tokens should be staked") - } - denomBz := []byte(coin.Denom) - pairIDBz := []byte(poolMetadata.PairID.CanonicalString()) - tickBz := dextypes.TickIndexToBytes(poolMetadata.Tick) - refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexDenom, denomBz))] = true - refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexPairTick, pairIDBz, tickBz))] = true - refKeys[string(types.CombineKeys(types.KeyPrefixStakeIndexAccountDenom, owner, denomBz))] = true - refKeys[string(types.CombineKeys( - types.KeyPrefixStakeIndexPairDistEpoch, - pairIDBz, - types.GetKeyInt64(stake.StartDistEpoch), - ))] = true - } - - refKeyBytes := make([][]byte, 0, len(refKeys)) - for k := range refKeys { - refKeyBytes = append(refKeyBytes, []byte(k)) - } - return refKeyBytes, nil -} diff --git a/x/incentives/keeper/stake_test.go b/x/incentives/keeper/stake_test.go deleted file mode 100644 index d39cda26e..000000000 --- a/x/incentives/keeper/stake_test.go +++ /dev/null @@ -1,122 +0,0 @@ -package keeper_test - -import ( - "github.com/stretchr/testify/suite" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ = suite.TestingSuite(nil) - -func (suite *IncentivesTestSuite) TestStakeLifecycle() { - addr0 := suite.SetupAddr(0) - - // setup dex deposit and stake of those shares - stake := suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - - retrievedStake, err := suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) - suite.Require().NoError(err) - suite.Require().NotNil(retrievedStake) - - // unstake the full amount - _, err = suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) - suite.Require().NoError(err) - balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) - suite.Require().Equal(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 2000)), balances) - _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) - // should be deleted - suite.Require().Error(err) -} - -func (suite *IncentivesTestSuite) TestMultipleStakeLifecycle() { - addr0 := suite.SetupAddr(0) - - // setup dex deposit and stake of those shares - stake := suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - { - addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 1, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - - retrievedStake, err := suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) - suite.Require().NoError(err) - suite.Require().NotNil(retrievedStake) - - // unstake the full amount - _, err = suite.App.IncentivesKeeper.Unstake(suite.Ctx, stake, sdk.Coins{}) - suite.Require().NoError(err) - balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) - suite.Require().Equal( - sdk.NewCoins( - sdk.NewInt64Coin(suite.LPDenom0, 2000), - sdk.NewInt64Coin(suite.LPDenom1, 2000), - ), balances) - _, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) - // should be deleted - suite.Require().Error(err) -} - -func (suite *IncentivesTestSuite) TestStakeUnstakePartial() { - addr0 := suite.SetupAddr(0) - - // setup dex deposit and stake of those shares - stake := suite.SetupDepositAndStake(depositStakeSpec{ - depositSpecs: []depositSpec{ - { - addr: addr0, - token0: sdk.NewInt64Coin("TokenA", 1000), - token1: sdk.NewInt64Coin("TokenB", 1000), - tick: 0, - fee: 1, - }, - }, - stakeDistEpochOffset: -2, - }) - - retrievedStake, err := suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) - suite.Require().NoError(err) - suite.Require().NotNil(retrievedStake) - - // unstake the partial amount - _, err = suite.App.IncentivesKeeper.Unstake( - suite.Ctx, - stake, - sdk.Coins{sdk.NewInt64Coin(suite.LPDenom0, 900)}, - ) - suite.Require().NoError(err) - balances := suite.App.BankKeeper.GetAllBalances(suite.Ctx, addr0) - suite.Require().ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 900)), balances) - // should still be accessible - retrievedStake, err = suite.App.IncentivesKeeper.GetStakeByID(suite.Ctx, stake.ID) - suite.Require().NoError(err) - suite.Require().NotNil(retrievedStake) - suite.Require(). - ElementsMatch(sdk.NewCoins(sdk.NewInt64Coin(suite.LPDenom0, 1100)), retrievedStake.Coins) - - // fin. -} diff --git a/x/incentives/keeper/store_test.go b/x/incentives/keeper/store_test.go deleted file mode 100644 index 0391f90ad..000000000 --- a/x/incentives/keeper/store_test.go +++ /dev/null @@ -1,54 +0,0 @@ -package keeper_test - -// func (suite *KeeperTestSuite) TestGaugeReferencesManagement() { -// key1 := []byte{0x11} -// key2 := []byte{0x12} - -// suite.SetupTest() - -// // set two gauge references to key 1 and three gauge references to key 2 -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 1) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 1) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 2) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 2) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 3) - -// // ensure key1 only has 2 entires -// gaugeRefs1 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key1) -// suite.Require().Equal(len(gaugeRefs1), 2) - -// // ensure key2 only has 3 entries -// gaugeRefs2 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) -// suite.Require().Equal(len(gaugeRefs2), 3) - -// // remove gauge 1 from key2, resulting in a reduction from 3 to 2 entries -// err := suite.App.IncentivesKeeper.deleteRefByKey(suite.Ctx, key2, 1) -// suite.Require().NoError(err) - -// // ensure key2 now only has 2 entires -// gaugeRefs3 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) -// suite.Require().Equal(len(gaugeRefs3), 2) -// } - -// var _ = suite.TestingSuite(nil) - -// func (suite *KeeperTestSuite) TestStakeReferencesManagement() { -// key1 := []byte{0x11} -// key2 := []byte{0x12} - -// suite.SetupTest() -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 1) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 1) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key1, 2) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 2) -// _ = suite.App.IncentivesKeeper.addRefByKey(suite.Ctx, key2, 3) - -// stakeIDs1 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key1) -// suite.Require().Equal(len(stakeIDs1), 2) -// stakeIDs2 := suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) -// suite.Require().Equal(len(stakeIDs2), 3) - -// suite.App.IncentivesKeeper.deleteRefByKey(suite.Ctx, key2, 1) -// stakeIDs2 = suite.App.IncentivesKeeper.getRefs(suite.Ctx, key2) -// suite.Require().Equal(len(stakeIDs2), 2) -// } diff --git a/x/incentives/keeper/suite_test.go b/x/incentives/keeper/suite_test.go deleted file mode 100644 index 7668ea9b1..000000000 --- a/x/incentives/keeper/suite_test.go +++ /dev/null @@ -1,124 +0,0 @@ -package keeper_test - -import ( - "time" - - "cosmossdk.io/math" - dextypes "github.com/neutron-org/neutron/x/dex/types" - "github.com/neutron-org/neutron/x/incentives/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type depositStakeSpec struct { - depositSpecs []depositSpec - stakeDistEpochOffset int // used for simulating the time of staking -} - -type depositSpec struct { - addr sdk.AccAddress - token0 sdk.Coin - token1 sdk.Coin - tick int64 - fee uint64 -} - -type gaugeSpec struct { - isPerpetual bool - rewards sdk.Coins - paidOver uint64 - startTick int64 - endTick int64 - pricingTick int64 - startTime time.Time -} - -// AddToGauge adds coins to the specified gauge. -func (suite *IncentivesTestSuite) AddToGauge(coins sdk.Coins, gaugeID uint64) uint64 { - addr := sdk.AccAddress([]byte("addrx---------------")) - suite.FundAcc(addr, coins) - err := suite.App.IncentivesKeeper.AddToGaugeRewards(suite.Ctx, addr, coins, gaugeID) - suite.Require().NoError(err) - return gaugeID -} - -func (suite *IncentivesTestSuite) SetupDeposit(ss []depositSpec) sdk.Coins { - shares := sdk.NewCoins() - for _, s := range ss { - suite.FundAcc(s.addr, sdk.Coins{s.token0, s.token1}) - _, _, indivShares, err := suite.App.DexKeeper.DepositCore( - sdk.WrapSDKContext(suite.Ctx), - dextypes.MustNewPairID(s.token0.Denom, s.token1.Denom), - s.addr, - s.addr, - []math.Int{s.token0.Amount}, - []math.Int{s.token1.Amount}, - []int64{s.tick}, - []uint64{s.fee}, - []*dextypes.DepositOptions{{}}, - ) - suite.Require().NoError(err) - suite.Require().NotEmpty(indivShares) - shares = shares.Add(indivShares...) - } - return shares -} - -func (suite *IncentivesTestSuite) SetupDepositAndStake(s depositStakeSpec) *types.Stake { - shares := suite.SetupDeposit(s.depositSpecs) - return suite.SetupStake(s.depositSpecs[0].addr, shares, s.stakeDistEpochOffset) -} - -// StakeTokens stakes tokens for the specified duration -func (suite *IncentivesTestSuite) SetupStake( - addr sdk.AccAddress, - shares sdk.Coins, - distEpochOffset int, -) *types.Stake { - params := suite.App.IncentivesKeeper.GetParams(suite.Ctx) - epoch := suite.App.EpochsKeeper.GetEpochInfo(suite.Ctx, params.GetDistrEpochIdentifier()) - stake, err := suite.App.IncentivesKeeper.CreateStake( - suite.Ctx, - addr, - shares, - suite.Ctx.BlockTime(), // irrelevant now - epoch.CurrentEpoch+int64(distEpochOffset), - ) - suite.Require().NoError(err) - return stake -} - -// setupNewGauge creates a gauge with the specified duration. -func (suite *IncentivesTestSuite) SetupGauge(s gaugeSpec) *types.Gauge { - addr := sdk.AccAddress([]byte("Gauge_Creation_Addr_")) - - // fund reward tokens - suite.FundAcc(addr, s.rewards) - - // create gauge - gauge, err := suite.App.IncentivesKeeper.CreateGauge( - suite.Ctx, - s.isPerpetual, - addr, - s.rewards, - types.QueryCondition{ - PairID: &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - StartTick: s.startTick, - EndTick: s.endTick, - }, - s.startTime, - s.paidOver, - s.pricingTick, - ) - suite.Require().NoError(err) - return gauge -} - -func (suite *IncentivesTestSuite) SetupGauges(specs []gaugeSpec) { - for _, s := range specs { - suite.SetupGauge(s) - } -} diff --git a/x/incentives/keeper/utils.go b/x/incentives/keeper/utils.go deleted file mode 100644 index 9a75f8eb2..000000000 --- a/x/incentives/keeper/utils.go +++ /dev/null @@ -1,78 +0,0 @@ -package keeper - -import ( - "encoding/json" - "fmt" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// findIndex takes an array of IDs. Then return the index of a specific ID. -func findIndex(ids []uint64, id uint64) int { - for index, inspectID := range ids { - if inspectID == id { - return index - } - } - return -1 -} - -// removeValue takes an array of IDs. Then finds the index of the IDs and remove those IDs from the array. -func removeValue(ids []uint64, id uint64) ([]uint64, int) { - index := findIndex(ids, id) - if index < 0 { - return ids, index - } - ids[index] = ids[len(ids)-1] // set last element to index - return ids[:len(ids)-1], index -} - -// getRefs returns the IDs specified by the provided key. -func (k Keeper) getRefs(ctx sdk.Context, key []byte) []uint64 { - store := ctx.KVStore(k.storeKey) - ids := []uint64{} - if store.Has(key) { - bz := store.Get(key) - err := json.Unmarshal(bz, &ids) - if err != nil { - panic(err) - } - } - return ids -} - -// addRefByKey appends the provided object ID into an array associated with the provided key. -func (k Keeper) addRefByKey(ctx sdk.Context, key []byte, id uint64) error { - store := ctx.KVStore(k.storeKey) - ids := k.getRefs(ctx, key) - if findIndex(ids, id) > -1 { - return fmt.Errorf("object with same ID exists: %d", id) - } - ids = append(ids, id) - bz, err := json.Marshal(ids) - if err != nil { - return err - } - store.Set(key, bz) - return nil -} - -// deleteRefByKey removes the provided object ID from an array associated with the provided key. -func (k Keeper) deleteRefByKey(ctx sdk.Context, key []byte, id uint64) error { - store := ctx.KVStore(k.storeKey) - ids := k.getRefs(ctx, key) - ids, index := removeValue(ids, id) - if index < 0 { - return fmt.Errorf("specific object with ID %d not found by reference %s", id, key) - } - if len(ids) == 0 { - store.Delete(key) - } else { - bz, err := json.Marshal(ids) - if err != nil { - return err - } - store.Set(key, bz) - } - return nil -} diff --git a/x/incentives/keeper/utils_test.go b/x/incentives/keeper/utils_test.go deleted file mode 100644 index 6a63d401e..000000000 --- a/x/incentives/keeper/utils_test.go +++ /dev/null @@ -1,129 +0,0 @@ -package keeper_test - -import ( - "testing" - "time" - - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - "github.com/neutron-org/neutron/testutil" - dextypes "github.com/neutron-org/neutron/x/dex/types" - . "github.com/neutron-org/neutron/x/incentives/keeper" - "github.com/neutron-org/neutron/x/incentives/types" -) - -func TestCombineKeys(t *testing.T) { - // create three keys, each different byte arrays - key1 := []byte{0x11} - key2 := []byte{0x12} - key3 := []byte{0x13} - - // combine the three keys into a single key - key := types.CombineKeys(key1, key2, key3) - - // three keys plus two separators is equal to a length of 5 - require.Len(t, key, 3+2) - - // ensure the newly created key is made up of the three previous keys (and the two key index separators) - require.Equal(t, key[0], key1[0]) - require.Equal(t, key[1], types.KeyIndexSeparator[0]) - require.Equal(t, key[2], key2[0]) - require.Equal(t, key[3], types.KeyIndexSeparator[0]) - require.Equal(t, key[4], key3[0]) -} - -func TestFindIndex(t *testing.T) { - // create an array of 5 IDs - IDs := []uint64{1, 2, 3, 4, 5} - - // use the FindIndex function to find the index of the respective IDs - // if it doesn't exist, return -1 - require.Equal(t, FindIndex(IDs, 1), 0) - require.Equal(t, FindIndex(IDs, 3), 2) - require.Equal(t, FindIndex(IDs, 5), 4) - require.Equal(t, FindIndex(IDs, 6), -1) -} - -func TestRemoveValue(t *testing.T) { - // create an array of 5 IDs - IDs := []uint64{1, 2, 3, 4, 5} - - // remove an ID - // ensure if ID exists, the length is reduced by one and the index of the removed ID is returned - IDs, index1 := RemoveValue(IDs, 5) - require.Len(t, IDs, 4) - require.Equal(t, index1, 4) - IDs, index2 := RemoveValue(IDs, 3) - require.Len(t, IDs, 3) - require.Equal(t, index2, 2) - IDs, index3 := RemoveValue(IDs, 1) - require.Len(t, IDs, 2) - require.Equal(t, index3, 0) - IDs, index4 := RemoveValue(IDs, 6) - require.Len(t, IDs, 2) - require.Equal(t, index4, -1) -} - -func TestStakeRefKeys(t *testing.T) { - addr1 := sdk.AccAddress([]byte("addr1---------------")) - app := testutil.Setup(t) - ctx := app.BaseApp.NewContext(false, tmproto.Header{}) - - pool1, err := app.DexKeeper.InitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenB"}, 0, 1) - require.NoError(t, err) - - denom1 := pool1.GetPoolDenom() - - pool2, err := app.DexKeeper.InitPool(ctx, &dextypes.PairID{Token0: "TokenA", Token1: "TokenC"}, 0, 1) - require.NoError(t, err) - - denom2 := pool2.GetPoolDenom() - - // empty address and 1 coin - stake1 := types.NewStake( - 1, - sdk.AccAddress{}, - sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, - time.Now(), - 10, - ) - _, err = app.IncentivesKeeper.GetStakeRefKeys(ctx, stake1) - require.Error(t, err) - - // empty address and 2 coins - stake2 := types.NewStake( - 1, - sdk.AccAddress{}, - sdk.Coins{sdk.NewInt64Coin(denom1, 10), sdk.NewInt64Coin(denom2, 1)}, - time.Now(), - 10, - ) - _, err = app.IncentivesKeeper.GetStakeRefKeys(ctx, stake2) - require.Error(t, err) - - // not empty address and 1 coin - stake3 := types.NewStake(1, addr1, sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, time.Now(), 10) - keys3, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake3) - require.NoError(t, err) - require.Len(t, keys3, 6) - - // not empty address and empty coin - stake4 := types.NewStake(1, addr1, sdk.Coins{sdk.NewInt64Coin(denom1, 10)}, time.Now(), 10) - keys4, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake4) - require.NoError(t, err) - require.Len(t, keys4, 6) - - // not empty address and 2 coins - stake5 := types.NewStake( - 1, - addr1, - sdk.Coins{sdk.NewInt64Coin(denom1, 10), sdk.NewInt64Coin(denom2, 1)}, - time.Now(), - 10, - ) - keys5, err := app.IncentivesKeeper.GetStakeRefKeys(ctx, stake5) - require.NoError(t, err) - require.Len(t, keys5, 10) -} diff --git a/x/incentives/module.go b/x/incentives/module.go deleted file mode 100644 index 9fdfc6439..000000000 --- a/x/incentives/module.go +++ /dev/null @@ -1,180 +0,0 @@ -/* -Incentives module provides general interface to give yield to stakers. The yield to be given -to stakers are stored in gauges and is distributed on epoch basis -to the stakers who meet specific conditions. - - Gauge queries, gauge creation and add tokens to gauge - - Upcoming-gauges related queries - - Gauge infos and gauge queues -*/package incentives - -import ( - "context" - "encoding/json" - "fmt" - - abci "github.com/cometbft/cometbft/abci/types" - "github.com/gorilla/mux" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - "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" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - - "github.com/neutron-org/neutron/x/incentives/client/cli" - "github.com/neutron-org/neutron/x/incentives/keeper" - "github.com/neutron-org/neutron/x/incentives/types" -) - -var ( - _ module.AppModule = AppModule{} - _ module.AppModuleBasic = AppModuleBasic{} -) - -// ---------------------------------------------------------------------------- -// AppModuleBasic -// ---------------------------------------------------------------------------- - -// Implements the AppModuleBasic interface for the module. -type AppModuleBasic struct{} - -// NewAppModuleBasic creates a new AppModuleBasic struct. -func NewAppModuleBasic() AppModuleBasic { - return AppModuleBasic{} -} - -// Name returns the module's name. -func (AppModuleBasic) Name() string { - return types.ModuleName -} - -// RegisterLegacyAminoCodec registers the module's types on the LegacyAmino codec. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - types.RegisterCodec(cdc) -} - -// RegisterInterfaces registers the module's interface types. -func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { - types.RegisterInterfaces(reg) -} - -// DefaultGenesis returns the module's default genesis state. -func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { - return cdc.MustMarshalJSON(types.DefaultGenesis()) -} - -// ValidateGenesis performs genesis state validation for the module. -func (AppModuleBasic) ValidateGenesis( - cdc codec.JSONCodec, - _ client.TxEncodingConfig, - bz json.RawMessage, -) error { - var genState types.GenesisState - if err := cdc.UnmarshalJSON(bz, &genState); err != nil { - return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) - } - return genState.Validate() -} - -// RegisterRESTRoutes registers the module's REST service handlers. -func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) { -} - -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { - return - } -} - -// GetTxCmd returns the module's root tx command. -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} - -// GetQueryCmd returns the module's root query command. -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd() -} - -// ---------------------------------------------------------------------------- -// AppModule -// ---------------------------------------------------------------------------- - -// AppModule implements the AppModule interface for the module. -type AppModule struct { - AppModuleBasic - - keeper *keeper.Keeper - - accountKeeper stakingtypes.AccountKeeper - bankKeeper stakingtypes.BankKeeper - epochKeeper types.EpochKeeper -} - -// NewAppModule creates a new AppModule struct. -func NewAppModule(keeper *keeper.Keeper, - accountKeeper stakingtypes.AccountKeeper, bankKeeper stakingtypes.BankKeeper, - epochKeeper types.EpochKeeper, -) AppModule { - return AppModule{ - AppModuleBasic: NewAppModuleBasic(), - keeper: keeper, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - epochKeeper: epochKeeper, - } -} - -// Name returns the module's name. -func (am AppModule) Name() string { - return am.AppModuleBasic.Name() -} - -// QuerierRoute returns the module's query routing key. -func (AppModule) QuerierRoute() string { return types.QuerierRoute } - -// RegisterServices registers the module's services. -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) -} - -// RegisterInvariants registers the module's invariants. -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} - -// InitGenesis performs the module's genesis initialization. -// Returns an empty ValidatorUpdate array. -func (am AppModule) InitGenesis( - ctx sdk.Context, - cdc codec.JSONCodec, - gs json.RawMessage, -) []abci.ValidatorUpdate { - var genState types.GenesisState - // initialize global index to index in genesis state. - cdc.MustUnmarshalJSON(gs, &genState) - - am.keeper.InitGenesis(ctx, genState) - - return []abci.ValidatorUpdate{} -} - -// ExportGenesis returns the module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - return cdc.MustMarshalJSON(am.keeper.ExportGenesis(ctx)) -} - -// BeginBlock executes all ABCI BeginBlock logic respective to the module. -func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} - -// EndBlock executes all ABCI EndBlock logic respective to the module. -// Returns a nil validatorUpdate struct array. -func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { - return []abci.ValidatorUpdate{} -} - -// ConsensusVersion implements AppModule/ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 1 } diff --git a/x/incentives/module_simulation.go b/x/incentives/module_simulation.go deleted file mode 100644 index c79664124..000000000 --- a/x/incentives/module_simulation.go +++ /dev/null @@ -1,33 +0,0 @@ -package incentives - -import ( - "github.com/CosmWasm/wasmd/x/wasm/simulation" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -// AppModuleSimulation functions - -// GenerateGenesisState creates a randomized GenState of the incentives module. -func (AppModule) GenerateGenesisState(simState *module.SimulationState) { - simulation.RandomizedGenState(simState) -} - -// ProposalContents returns nil for governance proposals contents. -// Should eventually be deleted in a future update. -func (AppModule) ProposalContents( - _ module.SimulationState, -) []simtypes.WeightedProposalMsg { - return nil -} - -// RegisterStoreDecoder has an unknown purpose. Should eventually be deleted in a future update. -func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) { -} - -// WeightedOperations returns the all the module's operations with their respective weights. -func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { - operations := make([]simtypes.WeightedOperation, 0) - return operations -} diff --git a/x/incentives/types/account_history.pb.go b/x/incentives/types/account_history.pb.go deleted file mode 100644 index de7676f41..000000000 --- a/x/incentives/types/account_history.pb.go +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/account_history.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Describes the total distributions to an account over time -type AccountHistory struct { - // the address of this account - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - // coins describes the total amount of coins that have been distributed to this user over time - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` -} - -func (m *AccountHistory) Reset() { *m = AccountHistory{} } -func (m *AccountHistory) String() string { return proto.CompactTextString(m) } -func (*AccountHistory) ProtoMessage() {} -func (*AccountHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_6b167edf56b0451f, []int{0} -} -func (m *AccountHistory) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountHistory.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 *AccountHistory) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountHistory.Merge(m, src) -} -func (m *AccountHistory) XXX_Size() int { - return m.Size() -} -func (m *AccountHistory) XXX_DiscardUnknown() { - xxx_messageInfo_AccountHistory.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountHistory proto.InternalMessageInfo - -func (m *AccountHistory) GetAccount() string { - if m != nil { - return m.Account - } - return "" -} - -func (m *AccountHistory) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -func init() { - proto.RegisterType((*AccountHistory)(nil), "neutron.incentives.AccountHistory") -} - -func init() { - proto.RegisterFile("neutron/incentives/account_history.proto", fileDescriptor_6b167edf56b0451f) -} - -var fileDescriptor_6b167edf56b0451f = []byte{ - // 262 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x4b, 0x2d, 0x2d, - 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x4f, - 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x89, 0xcf, 0xc8, 0x2c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xaa, 0xd4, 0x43, 0xa8, 0x94, 0x12, 0x49, 0xcf, 0x4f, - 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x52, 0x72, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, - 0xfa, 0x49, 0x89, 0xc5, 0xa9, 0xfa, 0x65, 0x86, 0x49, 0xa9, 0x25, 0x89, 0x86, 0xfa, 0xc9, 0xf9, - 0x99, 0x79, 0x10, 0x79, 0xa5, 0x5e, 0x46, 0x2e, 0x3e, 0x47, 0x88, 0x1d, 0x1e, 0x10, 0x2b, 0x84, - 0x24, 0xb8, 0xd8, 0xa1, 0xb6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x42, 0x89, - 0x5c, 0xac, 0x20, 0xad, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x92, 0x7a, 0x10, 0xc3, - 0xf5, 0x40, 0x86, 0xeb, 0x41, 0x0d, 0xd7, 0x73, 0xce, 0xcf, 0xcc, 0x73, 0x32, 0x38, 0x71, 0x4f, - 0x9e, 0x61, 0xd5, 0x7d, 0x79, 0x8d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, - 0x7d, 0xa8, 0x4b, 0x20, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x49, 0x65, 0x41, 0x6a, 0x31, 0x58, - 0x43, 0x71, 0x10, 0xc4, 0x64, 0x27, 0xef, 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, 0x32, 0x44, 0x32, 0x0a, 0xea, 0x7d, 0xdd, 0xfc, 0xa2, 0x74, 0x18, 0x5b, 0xbf, 0x02, 0x39, - 0xd8, 0xc0, 0x26, 0x27, 0xb1, 0x81, 0xfd, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x43, 0xc5, - 0xdc, 0x5f, 0x59, 0x01, 0x00, 0x00, -} - -func (m *AccountHistory) 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 *AccountHistory) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccountHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Account) > 0 { - i -= len(m.Account) - copy(dAtA[i:], m.Account) - i = encodeVarintAccountHistory(dAtA, i, uint64(len(m.Account))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintAccountHistory(dAtA []byte, offset int, v uint64) int { - offset -= sovAccountHistory(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AccountHistory) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Account) - if l > 0 { - n += 1 + l + sovAccountHistory(uint64(l)) - } - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovAccountHistory(uint64(l)) - } - } - return n -} - -func sovAccountHistory(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozAccountHistory(x uint64) (n int) { - return sovAccountHistory(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *AccountHistory) 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 ErrIntOverflowAccountHistory - } - 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: AccountHistory: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountHistory: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccountHistory - } - 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 ErrInvalidLengthAccountHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccountHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Account = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccountHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccountHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccountHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccountHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAccountHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipAccountHistory(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, ErrIntOverflowAccountHistory - } - 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, ErrIntOverflowAccountHistory - } - 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, ErrIntOverflowAccountHistory - } - 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, ErrInvalidLengthAccountHistory - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAccountHistory - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthAccountHistory - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthAccountHistory = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAccountHistory = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAccountHistory = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/incentives/types/codec.go b/x/incentives/types/codec.go deleted file mode 100644 index d58ef0655..000000000 --- a/x/incentives/types/codec.go +++ /dev/null @@ -1,35 +0,0 @@ -package types - -import ( - "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/msgservice" -) - -var ( - amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewAminoCodec(amino) -) - -// RegisterCodec registers the necessary x/incentives interfaces and concrete types on the provided -// LegacyAmino codec. These types are used for Amino JSON serialization. -func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgCreateGauge{}, "neutron/incentives/create-gauge", nil) - cdc.RegisterConcrete(&MsgAddToGauge{}, "neutron/incentives/add-to-gauge", nil) - cdc.RegisterConcrete(&MsgStake{}, "neutron/stake/stake-tokens", nil) - cdc.RegisterConcrete(&MsgUnstake{}, "neutron/stake/begin-unstake-period-stake", nil) -} - -// RegisterInterfaces registers interfaces and implementations of the incentives module. -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations( - (*sdk.Msg)(nil), - &MsgCreateGauge{}, - &MsgAddToGauge{}, - &MsgStake{}, - &MsgUnstake{}, - ) - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) -} diff --git a/x/incentives/types/distribution_spec.go b/x/incentives/types/distribution_spec.go deleted file mode 100644 index ecb89dac7..000000000 --- a/x/incentives/types/distribution_spec.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import sdk "github.com/cosmos/cosmos-sdk/types" - -type DistributionSpec map[string]sdk.Coins - -func (spec *DistributionSpec) Add(other DistributionSpec) DistributionSpec { - result := *spec - for k, v := range other { - if vv, ok := result[k]; ok { - result[k] = vv.Add(v...) - } else { - result[k] = v - } - } - return result -} - -func (spec DistributionSpec) GetTotal() sdk.Coins { - coins := sdk.Coins{} - for _, v := range spec { - coins = coins.Add(v...) - } - return coins -} diff --git a/x/incentives/types/distribution_spec_test.go b/x/incentives/types/distribution_spec_test.go deleted file mode 100644 index 942173480..000000000 --- a/x/incentives/types/distribution_spec_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package types_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/assert" - - "github.com/neutron-org/neutron/x/incentives/types" -) - -func TestDistributionSpec_Add(t *testing.T) { - spec1 := types.DistributionSpec{ - "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 100), sdk.NewInt64Coin("coin2", 200)}, - "bob": sdk.Coins{sdk.NewInt64Coin("coin1", 300), sdk.NewInt64Coin("coin2", 400)}, - } - - spec2 := types.DistributionSpec{ - "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 100), sdk.NewInt64Coin("coin2", 200)}, - "carol": sdk.Coins{sdk.NewInt64Coin("coin1", 500), sdk.NewInt64Coin("coin2", 600)}, - } - - expected := types.DistributionSpec{ - "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 200), sdk.NewInt64Coin("coin2", 400)}, - "bob": sdk.Coins{sdk.NewInt64Coin("coin1", 300), sdk.NewInt64Coin("coin2", 400)}, - "carol": sdk.Coins{sdk.NewInt64Coin("coin1", 500), sdk.NewInt64Coin("coin2", 600)}, - } - - result := spec1.Add(spec2) - assert.Equal(t, expected, result) -} - -func TestDistributionSpec_GetTotal(t *testing.T) { - spec := types.DistributionSpec{ - "alice": sdk.Coins{sdk.NewInt64Coin("coin1", 100), sdk.NewInt64Coin("coin2", 200)}, - "bob": sdk.Coins{sdk.NewInt64Coin("coin1", 300), sdk.NewInt64Coin("coin2", 400)}, - "carol": sdk.Coins{sdk.NewInt64Coin("coin1", 500), sdk.NewInt64Coin("coin2", 600)}, - } - - expected := sdk.Coins{sdk.NewInt64Coin("coin1", 900), sdk.NewInt64Coin("coin2", 1200)} - - total := spec.GetTotal() - assert.Equal(t, expected, total) -} diff --git a/x/incentives/types/errors.go b/x/incentives/types/errors.go deleted file mode 100644 index f54f5c663..000000000 --- a/x/incentives/types/errors.go +++ /dev/null @@ -1,53 +0,0 @@ -package types - -// DONTCOVER - -import ( - sdkerrors "cosmossdk.io/errors" -) - -// x/incentives module sentinel errors. -var ( - ErrNotStakeOwner = sdkerrors.Register( - ModuleName, - 1, - "msg sender is not the owner of specified stake", - ) - ErrStakeNotFound = sdkerrors.Register(ModuleName, 2, "stake not found") - ErrGaugeNotActive = sdkerrors.Register( - ModuleName, - 3, - "cannot distribute from gauges when it is not active", - ) - ErrInvalidGaugeStatus = sdkerrors.Register( - ModuleName, - 4, - "Gauge status filter must be one of: ACTIVE_UPCOMING, ACTIVE, UPCOMING, FINISHED", - ) - ErrMaxGaugesReached = sdkerrors.Register( - ModuleName, - 5, - "Gauge limit has been reached; additional gauges may be created once the gauge limit has been raised via governance proposal", - ) - ErrGaugePricingTickOutOfRange = sdkerrors.Register( - ModuleName, - 6, - "cannot use an invalid price tick", - ) - ErrGaugeDistrToTickOutOfRange = sdkerrors.Register(ModuleName, 7, "cannot use an distrTo tick") - ErrInvalidSigner = sdkerrors.Register( - ModuleName, - 8, - "owner must be module authority", - ) - ErrInvalidRequest = sdkerrors.Register( - ModuleName, - 9, - "invalid request", - ) - ErrInvalidAddress = sdkerrors.Register( - ModuleName, - 10, - "Invalid Address", - ) -) diff --git a/x/incentives/types/events.go b/x/incentives/types/events.go deleted file mode 100644 index c03383fed..000000000 --- a/x/incentives/types/events.go +++ /dev/null @@ -1,21 +0,0 @@ -package types - -// Incentive module event types. -const ( - TypeEvtCreateGauge = "create_gauge" - TypeEvtAddToGauge = "add_to_gauge" - TypeEvtDistribution = "distribution" - - AttributeGaugeID = "gauge_id" - AttributeReceiver = "receiver" - AttributeAmount = "amount" - - TypeEvtStake = "stake" - TypeEvtUnstake = "unstake" - - AttributeStakeID = "stake_id" - AttributeStakeOwner = "owner" - AttributeStakeAmount = "amount" - AttributeStakeStakeTime = "stake_time" - AttributeUnstakedCoins = "unstaked_coins" -) diff --git a/x/incentives/types/expected_keepers.go b/x/incentives/types/expected_keepers.go deleted file mode 100644 index 4e11a97ff..000000000 --- a/x/incentives/types/expected_keepers.go +++ /dev/null @@ -1,33 +0,0 @@ -package types - -import ( - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - dextypes "github.com/neutron-org/neutron/x/dex/types" - epochstypes "github.com/neutron-org/neutron/x/epochs/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// BankKeeper defines the expected interface needed to retrieve account balances. -type BankKeeper interface { - GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins - GetSupply(ctx sdk.Context, denom string) sdk.Coin - - SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error - SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error -} - -// EpochKeeper defines the expected interface needed to retrieve epoch info. -type EpochKeeper interface { - GetEpochInfo(ctx sdk.Context, identifier string) epochstypes.EpochInfo -} - -type AccountKeeper interface { - GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI - GetModuleAddress(moduleName string) sdk.AccAddress -} - -type DexKeeper interface { - GetOrInitPool(ctx sdk.Context, pairID *dextypes.PairID, centerTickIndex int64, fee uint64) (*dextypes.Pool, error) - GetPoolMetadataByDenom(ctx sdk.Context, id string) (dextypes.PoolMetadata, error) -} diff --git a/x/incentives/types/gauge.go b/x/incentives/types/gauge.go deleted file mode 100644 index 94a43dc16..000000000 --- a/x/incentives/types/gauge.go +++ /dev/null @@ -1,83 +0,0 @@ -package types - -import ( - time "time" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// NewGauge creates a new gauge struct given the required gauge parameters. -func NewGauge( - id uint64, - isPerpetual bool, - distrTo QueryCondition, - coins sdk.Coins, - startTime time.Time, - numEpochsPaidOver uint64, - filledEpochs uint64, - distCoins sdk.Coins, - pricingTick int64, -) Gauge { - return Gauge{ - Id: id, - IsPerpetual: isPerpetual, - DistributeTo: distrTo, - Coins: coins, - StartTime: startTime, - NumEpochsPaidOver: numEpochsPaidOver, - FilledEpochs: filledEpochs, - DistributedCoins: distCoins, - PricingTick: pricingTick, - } -} - -func (gauge Gauge) hasEpochsRemaining() bool { - return gauge.IsPerpetual || gauge.FilledEpochs < gauge.NumEpochsPaidOver -} - -func (gauge Gauge) hasStarted(now time.Time) bool { - return !now.Before(gauge.StartTime) -} - -// IsUpcomingGauge returns true if the gauge's distribution start time is after the provided time. -func (gauge Gauge) IsUpcomingGauge(now time.Time) bool { - return !gauge.hasStarted(now) && gauge.hasEpochsRemaining() -} - -// IsActiveGauge returns true if the gauge is in an active state during the provided time. -func (gauge Gauge) IsActiveGauge(now time.Time) bool { - return gauge.hasStarted(now) && gauge.hasEpochsRemaining() -} - -// IsFinishedGauge returns true if the gauge is in a finished state during the provided time. -func (gauge Gauge) IsFinishedGauge(now time.Time) bool { - return gauge.hasStarted(now) && !gauge.hasEpochsRemaining() -} - -func (gauge Gauge) RewardsNextEpoch() sdk.Coins { - result := sdk.Coins{} - epochsRemaining := gauge.EpochsRemaining() - if epochsRemaining == 0 { - return result - } - - for _, rewardRemainingCoin := range gauge.CoinsRemaining() { - amount := rewardRemainingCoin.Amount.Quo(math.NewInt(int64(epochsRemaining))) - result = result.Add(sdk.Coin{Denom: rewardRemainingCoin.Denom, Amount: amount}) - } - - return result -} - -func (gauge Gauge) EpochsRemaining() uint64 { - if !gauge.IsPerpetual { - return gauge.NumEpochsPaidOver - gauge.FilledEpochs - } - - return 1 -} - -func (gauge Gauge) CoinsRemaining() sdk.Coins { - return gauge.Coins.Sub(gauge.DistributedCoins...) -} diff --git a/x/incentives/types/gauge.pb.go b/x/incentives/types/gauge.pb.go deleted file mode 100644 index 5265a1dc6..000000000 --- a/x/incentives/types/gauge.pb.go +++ /dev/null @@ -1,1021 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/gauge.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - types1 "github.com/neutron-org/neutron/x/dex/types" - _ "google.golang.org/protobuf/types/known/durationpb" - _ "google.golang.org/protobuf/types/known/timestamppb" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Gauge is an object that describes an LP incentivization plan and its state. -type Gauge struct { - // id is the unique ID of a Gauge - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // There are two kinds of gauges: perpetual and non-perpetual. Perpetual - // gauges describe an incentivization program for which the token rewards - // distributed on any given day must be added to the gauge prior to that day's - // distribution using an AddToGauge message. When distribute is called on a - // perpetual gauge, all of the remaining rewards in the gauge are distributed. - // Because of this, all perpetual gauges must have `num_epochs_paid_over` set - // to 1. A non-perpetual gauge by contrast distributes its rewards over a - // schedule as determined by `num_epochs_paid_over`. If a non-perpetual gauge - // is created with coins=[100atom] and num_epochs_paid_over=10, this means - // that for 10 days (10 epochs) the gauge will distribute 10atom each day to - // the staked LP positions qualifying for the gauge. - IsPerpetual bool `protobuf:"varint,2,opt,name=is_perpetual,json=isPerpetual,proto3" json:"is_perpetual,omitempty"` - // distribute_to describes a set of staked LP positions that should be - // distributed to from this gauge. - DistributeTo QueryCondition `protobuf:"bytes,3,opt,name=distribute_to,json=distributeTo,proto3" json:"distribute_to"` - // coins describes the total amount of coins that have been added to this - // gauge for distribution. - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` - // start_time describes when this gauge should begin distributing rewards. - // This allows gauge creators to schedule gauges into the future, in the event - // that an earlier gauge is expected to expire. - StartTime time.Time `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` - // num_epochs_paid_over is the number of total epochs (days) the rewards in - // this gauge will be distributed over. - NumEpochsPaidOver uint64 `protobuf:"varint,6,opt,name=num_epochs_paid_over,json=numEpochsPaidOver,proto3" json:"num_epochs_paid_over,omitempty"` - // filled_epochs describes the number of epochs distribution have been completed - // already - FilledEpochs uint64 `protobuf:"varint,7,opt,name=filled_epochs,json=filledEpochs,proto3" json:"filled_epochs,omitempty"` - // distributed_coins describes coins that have been distributed already from - // this gauge. - DistributedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=distributed_coins,json=distributedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"distributed_coins"` - // pricing_tick is necessary for fairly distributing rewards over a range of - // ticks. Without pricing_tick, we might naively distribute rewards in - // proportion to the number of deposit shares staked within the gauge's - // qualifying tick range. - // - // For example, a gauge with a distribute_to tick range of [-10, 10] would - // distribute to staked LP tokens where both tick-fee and tick+fee are within - // [-10, 10]. Let's say for pair "tokenA<>tokenB", the current trading tick is - // 0. If Alice were to LP (10tokenA, 0tokenB) @ tick -8, fee 2, this would - // mean Alice would be issued 10 shares (10 + 0 * 1.0001^-8), since shares are - // in terms of token0. Let's further assume Bob LPs (0tokenA, 10tokenB) @ tick - // 8, fee 2, such that Bob is issued 10.008 shares (0 + 10 * 1.0001^8). Under - // this naive approach, if Alice and Bob were to stake their shares, Bob would - // receive more in rewards, purely on the basis of the relative locations of - // their liquidity. - // - // This disparity originates in the fact that LP deposit denominations are not - // fungible across ticks. To avoid this, we can use a single price throughout - // the gauge's tick range for relating the relative value of token0 and - // token1, as specified by pricing_tick. - // - // Let's run through the earier example using the more sophisticated approach, - // where the gauge has pricing_tick set to 0. For the purpose of calculating - // reward distribution weight, Alice's shares are worth 10 + 0 * 1.0001^0 = 10 - // and Bob's shares are worth 0 + 10 * 1.0001^0 = 10. With the distribution - // weight of both shares set according to a gauge-specific tick, we do not - // distribute more or less rewards according to the relative location of - // liquidity within the gauge's tick range, freeing users to place liquidity - // whereever they deem most profitable in the gauge's range and still equally - // qualify for rewards. - PricingTick int64 `protobuf:"varint,9,opt,name=pricing_tick,json=pricingTick,proto3" json:"pricing_tick,omitempty"` -} - -func (m *Gauge) Reset() { *m = Gauge{} } -func (m *Gauge) String() string { return proto.CompactTextString(m) } -func (*Gauge) ProtoMessage() {} -func (*Gauge) Descriptor() ([]byte, []int) { - return fileDescriptor_2467fab98b594cb6, []int{0} -} -func (m *Gauge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Gauge.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 *Gauge) XXX_Merge(src proto.Message) { - xxx_messageInfo_Gauge.Merge(m, src) -} -func (m *Gauge) XXX_Size() int { - return m.Size() -} -func (m *Gauge) XXX_DiscardUnknown() { - xxx_messageInfo_Gauge.DiscardUnknown(m) -} - -var xxx_messageInfo_Gauge proto.InternalMessageInfo - -func (m *Gauge) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *Gauge) GetIsPerpetual() bool { - if m != nil { - return m.IsPerpetual - } - return false -} - -func (m *Gauge) GetDistributeTo() QueryCondition { - if m != nil { - return m.DistributeTo - } - return QueryCondition{} -} - -func (m *Gauge) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -func (m *Gauge) GetStartTime() time.Time { - if m != nil { - return m.StartTime - } - return time.Time{} -} - -func (m *Gauge) GetNumEpochsPaidOver() uint64 { - if m != nil { - return m.NumEpochsPaidOver - } - return 0 -} - -func (m *Gauge) GetFilledEpochs() uint64 { - if m != nil { - return m.FilledEpochs - } - return 0 -} - -func (m *Gauge) GetDistributedCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.DistributedCoins - } - return nil -} - -func (m *Gauge) GetPricingTick() int64 { - if m != nil { - return m.PricingTick - } - return 0 -} - -// QueryCondition describes a set of staked LP positions that a gauge is -// configured to distribute to. LP tokens qualifying for a given QueryCondition -// must have both tick-fee and tick+fee fall within the range [startTick, endTick], -// such that all of the tradable liquidity for the pool is within that range. -type QueryCondition struct { - // pairID is the token pair which should be distributed to. - PairID *types1.PairID `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - // start_tick is the inclusive lower bound on the location of LP tokens that - // qualify for a gauge's distribution. - StartTick int64 `protobuf:"varint,2,opt,name=startTick,proto3" json:"startTick,omitempty"` - // end_tick is the inclusive upper bound on the location of LP tokens that - // qualify for a gauge's distribution. - EndTick int64 `protobuf:"varint,3,opt,name=endTick,proto3" json:"endTick,omitempty"` -} - -func (m *QueryCondition) Reset() { *m = QueryCondition{} } -func (m *QueryCondition) String() string { return proto.CompactTextString(m) } -func (*QueryCondition) ProtoMessage() {} -func (*QueryCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_2467fab98b594cb6, []int{1} -} -func (m *QueryCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCondition.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 *QueryCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCondition.Merge(m, src) -} -func (m *QueryCondition) XXX_Size() int { - return m.Size() -} -func (m *QueryCondition) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCondition proto.InternalMessageInfo - -func (m *QueryCondition) GetPairID() *types1.PairID { - if m != nil { - return m.PairID - } - return nil -} - -func (m *QueryCondition) GetStartTick() int64 { - if m != nil { - return m.StartTick - } - return 0 -} - -func (m *QueryCondition) GetEndTick() int64 { - if m != nil { - return m.EndTick - } - return 0 -} - -func init() { - proto.RegisterType((*Gauge)(nil), "neutron.incentives.Gauge") - proto.RegisterType((*QueryCondition)(nil), "neutron.incentives.QueryCondition") -} - -func init() { proto.RegisterFile("neutron/incentives/gauge.proto", fileDescriptor_2467fab98b594cb6) } - -var fileDescriptor_2467fab98b594cb6 = []byte{ - // 566 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0x8d, 0x9b, 0x9f, 0xb6, 0x93, 0xb4, 0xfa, 0x32, 0x5f, 0x17, 0x6e, 0x04, 0x4e, 0x08, 0x1b, - 0x4b, 0xa8, 0x33, 0x24, 0xec, 0x58, 0xa6, 0x20, 0x84, 0x10, 0x22, 0x58, 0x59, 0x20, 0x36, 0xd6, - 0xd8, 0x33, 0x75, 0x47, 0x89, 0x3d, 0xd6, 0xcc, 0x38, 0x4a, 0xde, 0xa2, 0xcf, 0xc1, 0x1b, 0xf0, - 0x06, 0x5d, 0x76, 0xc9, 0xaa, 0x45, 0xc9, 0x1b, 0xf0, 0x04, 0xc8, 0x63, 0x9b, 0x04, 0xd8, 0xb2, - 0xf2, 0xcc, 0x39, 0xf7, 0xce, 0xbd, 0xe7, 0xdc, 0x6b, 0xe0, 0x24, 0x2c, 0xd3, 0x52, 0x24, 0x98, - 0x27, 0x21, 0x4b, 0x34, 0x5f, 0x32, 0x85, 0x23, 0x92, 0x45, 0x0c, 0xa5, 0x52, 0x68, 0x01, 0x61, - 0xc9, 0xa3, 0x1d, 0xdf, 0x3b, 0x8b, 0x44, 0x24, 0x0c, 0x8d, 0xf3, 0x53, 0x11, 0xd9, 0x73, 0x22, - 0x21, 0xa2, 0x05, 0xc3, 0xe6, 0x16, 0x64, 0x57, 0x98, 0x66, 0x92, 0x68, 0x2e, 0x92, 0x92, 0xef, - 0xff, 0xc9, 0x6b, 0x1e, 0x33, 0xa5, 0x49, 0x9c, 0x56, 0x0f, 0x84, 0x42, 0xc5, 0x42, 0xe1, 0x80, - 0x28, 0x86, 0x97, 0xa3, 0x80, 0x69, 0x32, 0xc2, 0xa1, 0xe0, 0xd5, 0x03, 0xe7, 0x55, 0xab, 0x94, - 0xad, 0x70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x55, 0x67, 0xbc, 0xda, 0xff, - 0x57, 0x8d, 0xfc, 0xa0, 0x65, 0x86, 0xfe, 0xe2, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xde, - 0x74, 0xfa, 0xce, 0x03, 0x00, 0x00, -} - -func (m *Gauge) 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 *Gauge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Gauge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PricingTick != 0 { - i = encodeVarintGauge(dAtA, i, uint64(m.PricingTick)) - i-- - dAtA[i] = 0x48 - } - if len(m.DistributedCoins) > 0 { - for iNdEx := len(m.DistributedCoins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DistributedCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGauge(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - if m.FilledEpochs != 0 { - i = encodeVarintGauge(dAtA, i, uint64(m.FilledEpochs)) - i-- - dAtA[i] = 0x38 - } - if m.NumEpochsPaidOver != 0 { - i = encodeVarintGauge(dAtA, i, uint64(m.NumEpochsPaidOver)) - i-- - dAtA[i] = 0x30 - } - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintGauge(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x2a - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGauge(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size, err := m.DistributeTo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGauge(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.IsPerpetual { - i-- - if m.IsPerpetual { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Id != 0 { - i = encodeVarintGauge(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryCondition) 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 *QueryCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EndTick != 0 { - i = encodeVarintGauge(dAtA, i, uint64(m.EndTick)) - i-- - dAtA[i] = 0x18 - } - if m.StartTick != 0 { - i = encodeVarintGauge(dAtA, i, uint64(m.StartTick)) - i-- - dAtA[i] = 0x10 - } - if m.PairID != nil { - { - size, err := m.PairID.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGauge(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGauge(dAtA []byte, offset int, v uint64) int { - offset -= sovGauge(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Gauge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovGauge(uint64(m.Id)) - } - if m.IsPerpetual { - n += 2 - } - l = m.DistributeTo.Size() - n += 1 + l + sovGauge(uint64(l)) - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovGauge(uint64(l)) - } - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) - n += 1 + l + sovGauge(uint64(l)) - if m.NumEpochsPaidOver != 0 { - n += 1 + sovGauge(uint64(m.NumEpochsPaidOver)) - } - if m.FilledEpochs != 0 { - n += 1 + sovGauge(uint64(m.FilledEpochs)) - } - if len(m.DistributedCoins) > 0 { - for _, e := range m.DistributedCoins { - l = e.Size() - n += 1 + l + sovGauge(uint64(l)) - } - } - if m.PricingTick != 0 { - n += 1 + sovGauge(uint64(m.PricingTick)) - } - return n -} - -func (m *QueryCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PairID != nil { - l = m.PairID.Size() - n += 1 + l + sovGauge(uint64(l)) - } - if m.StartTick != 0 { - n += 1 + sovGauge(uint64(m.StartTick)) - } - if m.EndTick != 0 { - n += 1 + sovGauge(uint64(m.EndTick)) - } - return n -} - -func sovGauge(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGauge(x uint64) (n int) { - return sovGauge(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Gauge) 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 ErrIntOverflowGauge - } - 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: Gauge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Gauge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPerpetual", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsPerpetual = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributeTo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGauge - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGauge - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DistributeTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGauge - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGauge - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGauge - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGauge - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumEpochsPaidOver", wireType) - } - m.NumEpochsPaidOver = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumEpochsPaidOver |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FilledEpochs", wireType) - } - m.FilledEpochs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FilledEpochs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributedCoins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGauge - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGauge - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DistributedCoins = append(m.DistributedCoins, types.Coin{}) - if err := m.DistributedCoins[len(m.DistributedCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PricingTick", wireType) - } - m.PricingTick = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PricingTick |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGauge(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGauge - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCondition) 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 ErrIntOverflowGauge - } - 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: QueryCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGauge - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGauge - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PairID == nil { - m.PairID = &types1.PairID{} - } - if err := m.PairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTick", wireType) - } - m.StartTick = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTick |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndTick", wireType) - } - m.EndTick = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGauge - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndTick |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGauge(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGauge - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGauge(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, ErrIntOverflowGauge - } - 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, ErrIntOverflowGauge - } - 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, ErrIntOverflowGauge - } - 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, ErrInvalidLengthGauge - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGauge - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGauge - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGauge = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGauge = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGauge = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/incentives/types/gauge_test.go b/x/incentives/types/gauge_test.go deleted file mode 100644 index 431aeb815..000000000 --- a/x/incentives/types/gauge_test.go +++ /dev/null @@ -1,66 +0,0 @@ -package types_test - -import ( - "testing" - "time" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - . "github.com/neutron-org/neutron/x/incentives/types" - "github.com/stretchr/testify/assert" -) - -func TestGaugeIsUpcomingGauge(t *testing.T) { - now := time.Now() - gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(time.Minute), 10, 0, sdk.Coins{}, 0) - - assert.True(t, gauge.IsUpcomingGauge(now)) - assert.False(t, gauge.IsUpcomingGauge(now.Add(time.Minute))) -} - -func TestGaugeIsActiveGauge(t *testing.T) { - now := time.Now() - gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(time.Minute), 10, 0, sdk.Coins{}, 0) - - assert.False(t, gauge.IsActiveGauge(now)) - assert.True(t, gauge.IsActiveGauge(now.Add(11*time.Minute))) - - gauge.IsPerpetual = true - assert.False(t, gauge.IsActiveGauge(now)) - assert.True(t, gauge.IsActiveGauge(now.Add(11*time.Minute))) -} - -func TestGaugeIsFinishedGauge(t *testing.T) { - now := time.Now() - gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(-time.Minute), 10, 10, sdk.Coins{}, 0) - assert.True(t, gauge.IsFinishedGauge(now)) - - gauge = NewGauge(1, false, QueryCondition{}, sdk.Coins{}, now.Add(-time.Minute), 10, 8, sdk.Coins{}, 0) - assert.False(t, gauge.IsFinishedGauge(now)) -} - -func TestGaugeEpochsRemaining(t *testing.T) { - gauge := NewGauge(1, false, QueryCondition{}, sdk.Coins{}, time.Time{}, 10, 5, sdk.Coins{}, 0) - - assert.Equal(t, uint64(5), gauge.EpochsRemaining()) - - gauge.IsPerpetual = true - assert.Equal(t, uint64(1), gauge.EpochsRemaining()) -} - -func TestGaugeCoinsRemaining(t *testing.T) { - coins := sdk.Coins{sdk.NewCoin("coin1", math.NewInt(100))} - distCoins := sdk.Coins{sdk.NewCoin("coin1", math.NewInt(50))} - gauge := NewGauge(1, false, QueryCondition{}, coins, time.Time{}, 10, 5, distCoins, 0) - assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", math.NewInt(50))}, gauge.CoinsRemaining()) -} - -func TestGaugeGetTotal(t *testing.T) { - distSpec := DistributionSpec{ - "addr1": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(10))}, - "addr2": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(20))}, - "addr3": sdk.Coins{sdk.NewCoin("coin1", math.NewInt(30))}, - } - - assert.Equal(t, sdk.Coins{sdk.NewCoin("coin1", math.NewInt(60))}, distSpec.GetTotal()) -} diff --git a/x/incentives/types/gauges.go b/x/incentives/types/gauges.go deleted file mode 100644 index 32dbb878f..000000000 --- a/x/incentives/types/gauges.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import sdk "github.com/cosmos/cosmos-sdk/types" - -type Gauges []*Gauge - -func (g Gauges) GetCoinsDistributed() sdk.Coins { - result := sdk.Coins{} - for _, gauge := range g { - result = result.Add(gauge.DistributedCoins...) - } - - return result -} - -// getToDistributeCoinsFromGauges returns coins that have not been distributed yet from the provided gauges -func (g Gauges) GetCoinsRemaining() sdk.Coins { - result := sdk.Coins{} - - for _, gauge := range g { - result = result.Add(gauge.CoinsRemaining()...) - } - return result -} diff --git a/x/incentives/types/genesis.go b/x/incentives/types/genesis.go deleted file mode 100644 index e4d616d9a..000000000 --- a/x/incentives/types/genesis.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -import ( - "errors" -) - -// DefaultIndex is the default incentive module's global index. -const DefaultIndex uint64 = 1 - -// DefaultGenesis returns the incentive module's default genesis state. -func DefaultGenesis() *GenesisState { - return &GenesisState{ - Params: DefaultParams(), - } -} - -// Validate performs basic genesis state validation, returning an error upon any failure. -func (gs GenesisState) Validate() error { - if gs.Params.DistrEpochIdentifier == "" { - return errors.New("epoch identifier should NOT be empty") - } - return nil -} diff --git a/x/incentives/types/genesis.pb.go b/x/incentives/types/genesis.pb.go deleted file mode 100644 index 5455123db..000000000 --- a/x/incentives/types/genesis.pb.go +++ /dev/null @@ -1,590 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the incentives module's various parameters when first -// initialized -type GenesisState struct { - // params are all the parameters of the module - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - // gauges are all gauges that should exist at genesis - Gauges []*Gauge `protobuf:"bytes,2,rep,name=gauges,proto3" json:"gauges,omitempty"` - // last_gauge_id is what the gauge number will increment from when creating - // the next gauge after genesis - LastGaugeId uint64 `protobuf:"varint,3,opt,name=last_gauge_id,json=lastGaugeId,proto3" json:"last_gauge_id,omitempty"` - LastStakeId uint64 `protobuf:"varint,4,opt,name=last_stake_id,json=lastStakeId,proto3" json:"last_stake_id,omitempty"` - Stakes []*Stake `protobuf:"bytes,5,rep,name=stakes,proto3" json:"stakes,omitempty"` - AccountHistories []*AccountHistory `protobuf:"bytes,6,rep,name=accountHistories,proto3" json:"accountHistories,omitempty"` -} - -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_98ecc78531d9ace2, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetGauges() []*Gauge { - if m != nil { - return m.Gauges - } - return nil -} - -func (m *GenesisState) GetLastGaugeId() uint64 { - if m != nil { - return m.LastGaugeId - } - return 0 -} - -func (m *GenesisState) GetLastStakeId() uint64 { - if m != nil { - return m.LastStakeId - } - return 0 -} - -func (m *GenesisState) GetStakes() []*Stake { - if m != nil { - return m.Stakes - } - return nil -} - -func (m *GenesisState) GetAccountHistories() []*AccountHistory { - if m != nil { - return m.AccountHistories - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "neutron.incentives.GenesisState") -} - -func init() { proto.RegisterFile("neutron/incentives/genesis.proto", fileDescriptor_98ecc78531d9ace2) } - -var fileDescriptor_98ecc78531d9ace2 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x4f, 0xc2, 0x30, - 0x18, 0xc6, 0x37, 0xc0, 0x1d, 0x8a, 0x26, 0xa6, 0xf1, 0x30, 0x77, 0x28, 0x0b, 0xa7, 0x5d, 0xdc, - 0x02, 0x5e, 0xbc, 0xca, 0x05, 0x89, 0x89, 0x31, 0xe3, 0xe6, 0x85, 0x94, 0xd1, 0x94, 0x46, 0x69, - 0xc9, 0xda, 0x19, 0xf9, 0x16, 0x7e, 0x2a, 0xc3, 0x91, 0xa3, 0x27, 0x63, 0xd8, 0x17, 0x31, 0xed, - 0x8a, 0x90, 0x30, 0xbd, 0xb5, 0xef, 0xf3, 0x7b, 0xde, 0xbf, 0x20, 0xe4, 0xa4, 0x50, 0xb9, 0xe0, - 0x09, 0xe3, 0x19, 0xe1, 0x8a, 0xbd, 0x12, 0x99, 0x50, 0xc2, 0x89, 0x64, 0x32, 0x5e, 0xe6, 0x42, - 0x09, 0x08, 0x2d, 0x11, 0xef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89, 0x9c, 0x4d, 0x89, 0x9c, 0xcf, 0x12, - 0x39, 0x4f, 0x3d, 0xca, 0xd4, 0xbc, 0x98, 0xc6, 0x99, 0x58, 0x24, 0x36, 0xf3, 0x95, 0xc8, 0xe9, - 0xee, 0x9d, 0xbc, 0x1d, 0x5e, 0x49, 0xad, 0x96, 0x44, 0x4e, 0x3d, 0x73, 0x9c, 0xeb, 0x9f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x78, 0xe5, 0x26, 0xb9, 0x75, 0x02, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AccountHistories) > 0 { - for iNdEx := len(m.AccountHistories) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AccountHistories[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Stakes) > 0 { - for iNdEx := len(m.Stakes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Stakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.LastStakeId != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.LastStakeId)) - i-- - dAtA[i] = 0x20 - } - if m.LastGaugeId != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.LastGaugeId)) - i-- - dAtA[i] = 0x18 - } - if len(m.Gauges) > 0 { - for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Gauges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.Gauges) > 0 { - for _, e := range m.Gauges { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.LastGaugeId != 0 { - n += 1 + sovGenesis(uint64(m.LastGaugeId)) - } - if m.LastStakeId != 0 { - n += 1 + sovGenesis(uint64(m.LastStakeId)) - } - if len(m.Stakes) > 0 { - for _, e := range m.Stakes { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.AccountHistories) > 0 { - for _, e := range m.AccountHistories { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Gauges = append(m.Gauges, &Gauge{}) - if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastGaugeId", wireType) - } - m.LastGaugeId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastGaugeId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastStakeId", wireType) - } - m.LastStakeId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastStakeId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stakes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stakes = append(m.Stakes, &Stake{}) - if err := m.Stakes[len(m.Stakes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountHistories", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccountHistories = append(m.AccountHistories, &AccountHistory{}) - if err := m.AccountHistories[len(m.AccountHistories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/incentives/types/hooks.go b/x/incentives/types/hooks.go deleted file mode 100644 index bcb37bbc7..000000000 --- a/x/incentives/types/hooks.go +++ /dev/null @@ -1,82 +0,0 @@ -package types - -import ( - time "time" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type IncentiveHooks interface { - AfterCreateGauge(ctx sdk.Context, gaugeID uint64) - AfterAddToGauge(ctx sdk.Context, gaugeID uint64) - AfterStartDistribution(ctx sdk.Context, gaugeID uint64) - AfterFinishDistribution(ctx sdk.Context, gaugeID uint64) - AfterEpochDistribution(ctx sdk.Context) - AfterAddTokensToStake(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins) - OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) - OnTokenUnstaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) -} - -var _ IncentiveHooks = MultiIncentiveHooks{} - -// MultiIncentiveHooks combines multiple incentive hooks. All hook functions are run in array sequence. -type MultiIncentiveHooks []IncentiveHooks - -// NewMultiIncentiveHooks combines multiple incentive hooks into a single IncentiveHooks array. -func NewMultiIncentiveHooks(hooks ...IncentiveHooks) MultiIncentiveHooks { - return hooks -} - -func (h MultiIncentiveHooks) AfterCreateGauge(ctx sdk.Context, gaugeID uint64) { - for i := range h { - h[i].AfterCreateGauge(ctx, gaugeID) - } -} - -func (h MultiIncentiveHooks) AfterAddToGauge(ctx sdk.Context, gaugeID uint64) { - for i := range h { - h[i].AfterAddToGauge(ctx, gaugeID) - } -} - -func (h MultiIncentiveHooks) AfterStartDistribution(ctx sdk.Context, gaugeID uint64) { - for i := range h { - h[i].AfterStartDistribution(ctx, gaugeID) - } -} - -func (h MultiIncentiveHooks) AfterFinishDistribution(ctx sdk.Context, gaugeID uint64) { - for i := range h { - h[i].AfterFinishDistribution(ctx, gaugeID) - } -} - -func (h MultiIncentiveHooks) AfterEpochDistribution(ctx sdk.Context) { - for i := range h { - h[i].AfterEpochDistribution(ctx) - } -} - -func (h MultiIncentiveHooks) AfterAddTokensToStake(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins) { - for i := range h { - h[i].AfterAddTokensToStake(ctx, address, stakeID, amount) - } -} - -func (h MultiIncentiveHooks) OnTokenStaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) { - for i := range h { - h[i].OnTokenStaked(ctx, address, stakeID, amount, unstakeTime) - } -} - -func (h MultiIncentiveHooks) OnTokenUnstaked(ctx sdk.Context, address sdk.AccAddress, stakeID uint64, amount sdk.Coins, unstakeTime time.Time) { - for i := range h { - h[i].OnTokenUnstaked(ctx, address, stakeID, amount, unstakeTime) - } -} - -// func (h MultiIncentiveHooks) OnStakeExtend(ctx sdk.Context, stakeID uint64, prevDuration, newDuration time.Duration) { -// for i := range h { -// h[i].OnStakeExtend(ctx, stakeID, prevDuration, newDuration) -// } -// } diff --git a/x/incentives/types/keys.go b/x/incentives/types/keys.go deleted file mode 100644 index 7afce2652..000000000 --- a/x/incentives/types/keys.go +++ /dev/null @@ -1,176 +0,0 @@ -package types - -import ( - "bytes" - time "time" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var ( - // ModuleName defines the module name. - ModuleName = "incentives" - - // StoreKey defines the primary module store key. - StoreKey = ModuleName - - // RouterKey is the message route for slashing. - RouterKey = ModuleName - - // QuerierRoute defines the module's query routing key. - QuerierRoute = ModuleName - - // MemStoreKey defines the in-memory store key. - MemStoreKey = "mem_capability" - - // KeyPrefixTimestamp defines prefix key for timestamp iterator key. - KeyPrefixTimestamp = []byte{0x01} - - // KeyLastGaugeID defines key for setting last gauge ID. - KeyLastGaugeID = []byte{0x02} - - // KeyPrefixGauge defines prefix key for storing gauges. - KeyPrefixGauge = []byte{0x03} - - // KeyPrefixGaugeIndex defines prefix key for storing reference key for all gauges. - KeyPrefixGaugeIndex = []byte{0x04} - - // KeyPrefixGaugeIndexUpcoming defines prefix key for storing reference key for upcoming gauges. - KeyPrefixGaugeIndexUpcoming = []byte{0x04, 0x00} - - // KeyPrefixGaugeIndexActive defines prefix key for storing reference key for active gauges. - KeyPrefixGaugeIndexActive = []byte{0x04, 0x01} - - // KeyPrefixGaugeIndexFinished defines prefix key for storing reference key for finished gauges. - KeyPrefixGaugeIndexFinished = []byte{0x04, 0x02} - - // KeyPrefixGaugeIndexByPair defines prefix key for storing indexes of gauge IDs by denomination. - KeyPrefixGaugeIndexByPair = []byte{0x05} - - // KeyLastStakeID defines key to store stake ID used by last. - KeyLastStakeID = []byte{0x06} - - // KeyPrefixStake defines prefix to store period stake by ID. - KeyPrefixStake = []byte{0x07} - - // KeyPrefixStakeIndexAccount defines prefix for the iteration of stake IDs by account. - KeyPrefixStakeIndex = []byte{0x08} - - // KeyPrefixStakeIndexAccount defines prefix for the iteration of stake IDs by account. - KeyPrefixStakeIndexAccount = []byte{0x09} - - // KeyPrefixStakeIndexDenom defines prefix for the iteration of stake IDs by denom. - KeyPrefixStakeIndexDenom = []byte{0x0c} - - // KeyPrefixStakeIndexPairTick defines prefix for the iteration of stake IDs by pairId and tick index. - KeyPrefixStakeIndexPairTick = []byte{0x0d} - - // KeyPrefixStakeIndexAccountDenom defines prefix for the iteration of stake IDs by account, denomination. - KeyPrefixStakeIndexAccountDenom = []byte{0x0e} - - // KeyPrefixStakeIndexTimestamp defines prefix for the iteration of stake IDs by day epoch integer. - KeyPrefixStakeIndexPairDistEpoch = []byte{0x0f} - - // KeyPrefixAccountHistory defines the prefix for storing account histories. - KeyPrefixAccountHistory = []byte{0x10} - - KeyParams = []byte{0x11} - // KeyndexSeparator defines separator between keys when combine, it should be one that is not used in denom expression. - KeyIndexSeparator = []byte{0xFF} -) - -// stakeStoreKey returns action store key from ID. -func GetStakeStoreKey(id uint64) []byte { - return CombineKeys(KeyPrefixStake, sdk.Uint64ToBigEndian(id)) -} - -// combineKeys combine bytes array into a single bytes. -func CombineKeys(keys ...[]byte) []byte { - return bytes.Join(keys, KeyIndexSeparator) -} - -// getTimeKey returns the key used for getting a set of period stakes -// where unstakeTime is after a specific time. -func GetTimeKey(timestamp time.Time) []byte { - timeBz := sdk.FormatTimeBytes(timestamp) - timeBzL := len(timeBz) - prefixL := len(KeyPrefixTimestamp) - - bz := make([]byte, prefixL+8+timeBzL) - - // copy the prefix - copy(bz[:prefixL], KeyPrefixTimestamp) - - // copy the encoded time bytes length - copy(bz[prefixL:prefixL+8], sdk.Uint64ToBigEndian(uint64(timeBzL))) - - // copy the encoded time bytes - copy(bz[prefixL+8:prefixL+8+timeBzL], timeBz) - return bz -} - -// gaugeStoreKey returns the combined byte array (store key) of the provided gauge ID's key prefix and the ID itself. -func GetKeyGaugeStore(id uint64) []byte { - return CombineKeys(KeyPrefixGauge, sdk.Uint64ToBigEndian(id)) -} - -// gaugePairStoreKey returns the combined byte array (store key) of the provided gauge denom key prefix and the denom itself. -func GetKeyGaugeIndexByPair(pairID string) []byte { - return CombineKeys(KeyPrefixGaugeIndexByPair, []byte(pairID)) -} - -func GetKeyStakeIndexByAccount(account sdk.AccAddress) []byte { - return CombineKeys( - KeyPrefixStakeIndexAccount, - account, - ) -} - -func GetKeyStakeIndexByDenom(denom string) []byte { - return CombineKeys( - KeyPrefixStakeIndexDenom, - []byte(denom), - ) -} - -func GetKeyStakeIndexByAccountDenom(account sdk.AccAddress, denom string) []byte { - return CombineKeys( - KeyPrefixStakeIndexAccountDenom, - account, - []byte(denom), - ) -} - -func GetKeyStakeIndexByDistEpoch(pairID string, distEpoch int64) []byte { - return CombineKeys( - KeyPrefixStakeIndexPairDistEpoch, - []byte(pairID), - GetKeyInt64(distEpoch), - ) -} - -func GetKeyStakeIndexByPairTick(pairID string, tickIndex int64) []byte { - return CombineKeys( - KeyPrefixStakeIndexPairTick, - []byte(pairID), - GetKeyInt64(tickIndex), - ) -} - -func GetKeyAccountHistory(address string) []byte { - return CombineKeys( - KeyPrefixStakeIndexPairTick, - []byte(address), - ) -} - -func GetKeyInt64(a int64) []byte { - key := make([]byte, 9) - if a < 0 { - copy(key[1:], sdk.Uint64ToBigEndian(uint64(a))) - } else { - copy(key[:1], []byte{0x01}) - copy(key[1:], sdk.Uint64ToBigEndian(uint64(a))) - } - return key -} diff --git a/x/incentives/types/keys_test.go b/x/incentives/types/keys_test.go deleted file mode 100644 index 8ea98bdda..000000000 --- a/x/incentives/types/keys_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package types_test - -import ( - "bytes" - "testing" - time "time" - - sdk "github.com/cosmos/cosmos-sdk/types" - . "github.com/neutron-org/neutron/x/incentives/types" - "github.com/stretchr/testify/require" -) - -func TestGetTimeKey(t *testing.T) { - now := time.Now() - timeKey := GetTimeKey(now) - require.True(t, bytes.HasPrefix(timeKey, KeyPrefixTimestamp)) - require.True(t, bytes.HasSuffix(timeKey, sdk.FormatTimeBytes(now))) -} diff --git a/x/incentives/types/msgs.go b/x/incentives/types/msgs.go deleted file mode 100644 index 92e5e49fa..000000000 --- a/x/incentives/types/msgs.go +++ /dev/null @@ -1,259 +0,0 @@ -package types - -import ( - "fmt" - "time" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - dextypes "github.com/neutron-org/neutron/x/dex/types" -) - -const ( - TypeMsgCreateGauge = "create_gauge" - TypeMsgAddToGauge = "add_to_gauge" - TypeMsgStakeTokens = "stake_tokens" - TypeMsgBeginUnstaking = "begin_unstaking" - TypeMsgUpdateParams = "update-params" -) - -var _ sdk.Msg = &MsgCreateGauge{} - -// NewMsgCreateGauge creates a message to create a gauge with the provided parameters. -func NewMsgCreateGauge( - isPerpetual bool, - owner sdk.AccAddress, - distributeTo QueryCondition, - coins sdk.Coins, - startTime time.Time, - numEpochsPaidOver uint64, - pricingTick int64, -) *MsgCreateGauge { - return &MsgCreateGauge{ - IsPerpetual: isPerpetual, - Owner: owner.String(), - DistributeTo: distributeTo, - Coins: coins, - StartTime: startTime, - NumEpochsPaidOver: numEpochsPaidOver, - PricingTick: pricingTick, - } -} - -// Route takes a create gauge message, then returns the RouterKey used for slashing. -func (m MsgCreateGauge) Route() string { return RouterKey } - -// Type takes a create gauge message, then returns a create gauge message type. -func (m MsgCreateGauge) Type() string { return TypeMsgCreateGauge } - -// ValidateBasic checks that the create gauge message is valid. -func (m MsgCreateGauge) ValidateBasic() error { - if m.Owner == "" { - return sdkerrors.Wrapf(ErrInvalidRequest, "owner should be set") - } - // TODO: If this is not set, infer start time as "now" - if m.StartTime.Equal(time.Time{}) { - return sdkerrors.Wrapf(ErrInvalidRequest, "distribution start time should be set") - } - if m.NumEpochsPaidOver == 0 { - return sdkerrors.Wrapf( - ErrInvalidRequest, - "distribution period should be at least 1 epoch", - ) - } - if m.IsPerpetual && m.NumEpochsPaidOver != 1 { - return sdkerrors.Wrapf( - ErrInvalidRequest, - "distribution period should be 1 epoch for perpetual gauge", - ) - } - if dextypes.IsTickOutOfRange(m.PricingTick) { - return sdkerrors.Wrapf( - ErrInvalidRequest, - "pricing tick is out of range, must be between %d and %d", - int64(dextypes.MaxTickExp)*-1, - dextypes.MaxTickExp, - ) - } - if dextypes.IsTickOutOfRange(m.DistributeTo.StartTick) { - return sdkerrors.Wrapf( - ErrInvalidRequest, - "start tick is out of range, must be between %d and %d", - int64(dextypes.MaxTickExp)*-1, - dextypes.MaxTickExp, - ) - } - if dextypes.IsTickOutOfRange(m.DistributeTo.EndTick) { - return sdkerrors.Wrapf( - ErrInvalidRequest, - "start tick is out of range, must be between %d and %d", - int64(dextypes.MaxTickExp)*-1, - dextypes.MaxTickExp, - ) - } - - return nil -} - -// GetSignBytes takes a create gauge message and turns it into a byte array. -func (m MsgCreateGauge) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -// GetSigners takes a create gauge message and returns the owner in a byte array. -func (m MsgCreateGauge) GetSigners() []sdk.AccAddress { - owner, _ := sdk.AccAddressFromBech32(m.Owner) - return []sdk.AccAddress{owner} -} - -var _ sdk.Msg = &MsgAddToGauge{} - -// NewMsgAddToGauge creates a message to add rewards to a specific gauge. -func NewMsgAddToGauge(owner sdk.AccAddress, gaugeID uint64, rewards sdk.Coins) *MsgAddToGauge { - return &MsgAddToGauge{ - Owner: owner.String(), - GaugeId: gaugeID, - Rewards: rewards, - } -} - -// Route takes an add to gauge message, then returns the RouterKey used for slashing. -func (m MsgAddToGauge) Route() string { return RouterKey } - -// Type takes an add to gauge message, then returns an add to gauge message type. -func (m MsgAddToGauge) Type() string { return TypeMsgAddToGauge } - -// ValidateBasic checks that the add to gauge message is valid. -func (m MsgAddToGauge) ValidateBasic() error { - if m.Owner == "" { - return sdkerrors.Wrapf(ErrInvalidRequest, "owner should be set") - } - if m.Rewards.Empty() { - return sdkerrors.Wrapf( - ErrInvalidRequest, - "additional rewards should not be empty", - ) - } - - return nil -} - -// GetSignBytes takes an add to gauge message and turns it into a byte array. -func (m MsgAddToGauge) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -// GetSigners takes an add to gauge message and returns the owner in a byte array. -func (m MsgAddToGauge) GetSigners() []sdk.AccAddress { - owner, _ := sdk.AccAddressFromBech32(m.Owner) - return []sdk.AccAddress{owner} -} - -var _ sdk.Msg = &MsgStake{} - -// NewMsgStakeTokens creates a message to stake tokens. -func NewMsgSetupStake(owner sdk.AccAddress, coins sdk.Coins) *MsgStake { - return &MsgStake{ - Owner: owner.String(), - Coins: coins, - } -} - -func (m MsgStake) Route() string { return RouterKey } -func (m MsgStake) Type() string { return TypeMsgStakeTokens } -func (m MsgStake) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(m.Owner) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "Invalid owner address (%s)", err) - } - - if !m.Coins.IsAllPositive() { - return fmt.Errorf("cannot stake up a zero or negative amount") - } - - return nil -} - -func (m MsgStake) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -func (m MsgStake) GetSigners() []sdk.AccAddress { - owner, _ := sdk.AccAddressFromBech32(m.Owner) - return []sdk.AccAddress{owner} -} - -var _ sdk.Msg = &MsgUnstake{} - -func NewMsgUnstakeDescriptor(id uint64, coins sdk.Coins) *MsgUnstake_UnstakeDescriptor { - return &MsgUnstake_UnstakeDescriptor{ - ID: id, - Coins: coins, - } -} - -// NewMsgUnstake creates a message to unstake the tokens of a set of stake records. -func NewMsgUnstake(owner sdk.AccAddress, unstakes []*MsgUnstake_UnstakeDescriptor) *MsgUnstake { - return &MsgUnstake{ - Owner: owner.String(), - Unstakes: unstakes, - } -} - -func (m MsgUnstake) Route() string { return RouterKey } -func (m MsgUnstake) Type() string { return TypeMsgBeginUnstaking } -func (m MsgUnstake) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(m.Owner) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "Invalid owner address (%s)", err) - } - - for _, unstake := range m.Unstakes { - if unstake.ID == 0 { - return fmt.Errorf("invalid stake ID, got %v", unstake.ID) - } - - if !unstake.Coins.Empty() && !unstake.Coins.IsAllPositive() { - return fmt.Errorf("cannot unstake a zero or negative amount") - } - } - - return nil -} - -func (m MsgUnstake) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -func (m MsgUnstake) GetSigners() []sdk.AccAddress { - owner, _ := sdk.AccAddressFromBech32(m.Owner) - return []sdk.AccAddress{owner} -} - -var _ sdk.Msg = &MsgUpdateParams{} - -func (msg *MsgUpdateParams) Route() string { return RouterKey } - -func (msg *MsgUpdateParams) Type() string { return TypeMsgUpdateParams } - -func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { - authority, err := sdk.AccAddressFromBech32(msg.Authority) - if err != nil { // should never happen as valid basic rejects invalid addresses - panic(err.Error()) - } - return []sdk.AccAddress{authority} -} - -func (msg *MsgUpdateParams) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateParams) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { - return sdkerrors.Wrap(err, "authority is invalid") - } - - err := msg.Params.Validate() - return err -} diff --git a/x/incentives/types/msgs_test.go b/x/incentives/types/msgs_test.go deleted file mode 100644 index 4ebdde3ea..000000000 --- a/x/incentives/types/msgs_test.go +++ /dev/null @@ -1,324 +0,0 @@ -package types_test - -import ( - "testing" - time "time" - - "github.com/cometbft/cometbft/crypto/ed25519" - "github.com/stretchr/testify/require" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/neutron-org/neutron/testutil/apptesting" - dextypes "github.com/neutron-org/neutron/x/dex/types" - . "github.com/neutron-org/neutron/x/incentives/types" -) - -// TestMsgCreatePool tests if valid/invalid create pool messages are properly validated/invalidated -func TestMsgCreatePool(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - - // make a proper createPool message - createMsg := func(after func(msg MsgCreateGauge) MsgCreateGauge) MsgCreateGauge { - distributeTo := QueryCondition{ - PairID: &dextypes.PairID{ - Token0: "TokenA", - Token1: "TokenB", - }, - StartTick: -10, - EndTick: 10, - } - - properMsg := *NewMsgCreateGauge( - false, - addr1, - distributeTo, - sdk.Coins{}, - time.Now(), - 2, - 0, - ) - - return after(properMsg) - } - - // validate createPool message was created as intended - msg := createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - return msg - }) - require.Equal(t, msg.Route(), RouterKey) - require.Equal(t, msg.Type(), "create_gauge") - signers := msg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg MsgCreateGauge - expectPass bool - }{ - { - name: "proper msg", - msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - return msg - }), - expectPass: true, - }, - { - name: "empty owner", - msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - msg.Owner = "" - return msg - }), - expectPass: false, - }, - { - name: "invalid distribution start time", - msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - msg.StartTime = time.Time{} - return msg - }), - expectPass: false, - }, - { - name: "invalid num epochs paid over", - msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - msg.NumEpochsPaidOver = 0 - return msg - }), - expectPass: false, - }, - { - name: "invalid num epochs paid over for perpetual gauge", - msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - msg.NumEpochsPaidOver = 2 - msg.IsPerpetual = true - return msg - }), - expectPass: false, - }, - { - name: "valid num epochs paid over for perpetual gauge", - msg: createMsg(func(msg MsgCreateGauge) MsgCreateGauge { - msg.NumEpochsPaidOver = 1 - msg.IsPerpetual = true - return msg - }), - expectPass: true, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) - } - } -} - -// TestMsgAddToGauge tests if valid/invalid add to gauge messages are properly validated/invalidated -func TestMsgAddToGauge(t *testing.T) { - // generate a private/public key pair and get the respective address - pk1 := ed25519.GenPrivKey().PubKey() - addr1 := sdk.AccAddress(pk1.Address()) - - // make a proper addToGauge message - createMsg := func(after func(msg MsgAddToGauge) MsgAddToGauge) MsgAddToGauge { - properMsg := *NewMsgAddToGauge( - addr1, - 1, - sdk.Coins{sdk.NewInt64Coin("stake", 10)}, - ) - - return after(properMsg) - } - - // validate addToGauge message was created as intended - msg := createMsg(func(msg MsgAddToGauge) MsgAddToGauge { - return msg - }) - require.Equal(t, msg.Route(), RouterKey) - require.Equal(t, msg.Type(), "add_to_gauge") - signers := msg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1.String()) - - tests := []struct { - name string - msg MsgAddToGauge - expectPass bool - }{ - { - name: "proper msg", - msg: createMsg(func(msg MsgAddToGauge) MsgAddToGauge { - return msg - }), - expectPass: true, - }, - { - name: "empty owner", - msg: createMsg(func(msg MsgAddToGauge) MsgAddToGauge { - msg.Owner = "" - return msg - }), - expectPass: false, - }, - { - name: "empty rewards", - msg: createMsg(func(msg MsgAddToGauge) MsgAddToGauge { - msg.Rewards = sdk.Coins{} - return msg - }), - expectPass: false, - }, - } - - for _, test := range tests { - if test.expectPass { - require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) - } else { - require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) - } - } -} - -func TestMsgSetupStake(t *testing.T) { - addr1, invalidAddr := apptesting.GenerateTestAddrs() - - tests := []struct { - name string - msg MsgStake - expectPass bool - }{ - { - name: "proper msg", - msg: MsgStake{ - Owner: addr1, - Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), - }, - expectPass: true, - }, - { - name: "invalid owner", - msg: MsgStake{ - Owner: invalidAddr, - Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), - }, - }, - { - name: "zero token amount", - msg: MsgStake{ - Owner: addr1, - Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(0))), - }, - }, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - if test.expectPass { - require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) - require.Equal(t, test.msg.Route(), RouterKey) - require.Equal(t, test.msg.Type(), "stake_tokens") - signers := test.msg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1) - } else { - require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) - } - }) - } -} - -func TestMsgUnstake(t *testing.T) { - addr1, invalidAddr := apptesting.GenerateTestAddrs() - - tests := []struct { - name string - msg MsgUnstake - expectPass bool - }{ - { - name: "proper msg", - msg: MsgUnstake{ - Owner: addr1, - Unstakes: []*MsgUnstake_UnstakeDescriptor{ - { - ID: 1, - Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), - }, - }, - }, - expectPass: true, - }, - { - name: "invalid owner", - msg: MsgUnstake{ - Owner: invalidAddr, - Unstakes: []*MsgUnstake_UnstakeDescriptor{ - { - ID: 1, - Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), - }, - }, - }, - }, - { - name: "invalid stake ID", - msg: MsgUnstake{ - Owner: addr1, - Unstakes: []*MsgUnstake_UnstakeDescriptor{ - { - ID: 0, - Coins: sdk.NewCoins(sdk.NewCoin("test", math.NewInt(100))), - }, - }, - }, - }, - { - name: "zero coins (same as nil)", - msg: MsgUnstake{ - Owner: addr1, - Unstakes: []*MsgUnstake_UnstakeDescriptor{ - { - ID: 1, - Coins: sdk.NewCoins(sdk.NewCoin("test1", math.NewInt(0))), - }, - }, - }, - expectPass: true, - }, - { - name: "nil coins (unstake by ID)", - msg: MsgUnstake{ - Owner: addr1, - Unstakes: []*MsgUnstake_UnstakeDescriptor{ - { - ID: 1, - Coins: sdk.NewCoins(), - }, - }, - }, - expectPass: true, - }, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - if test.expectPass { - require.NoError(t, test.msg.ValidateBasic(), "test: %v", test.name) - require.Equal(t, test.msg.Route(), RouterKey) - require.Equal(t, test.msg.Type(), "begin_unstaking") - signers := test.msg.GetSigners() - require.Equal(t, len(signers), 1) - require.Equal(t, signers[0].String(), addr1) - } else { - require.Error(t, test.msg.ValidateBasic(), "test: %v", test.name) - } - }) - } -} diff --git a/x/incentives/types/params.go b/x/incentives/types/params.go deleted file mode 100644 index 51747339d..000000000 --- a/x/incentives/types/params.go +++ /dev/null @@ -1,47 +0,0 @@ -package types - -import ( - epochtypes "github.com/neutron-org/neutron/x/epochs/types" - - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" -) - -// Incentives parameters key store. -var ( - KeyDistrEpochIdentifier = []byte("DistrEpochIdentifier") - KeyMaxGauges = []byte("MaxGauges") -) - -// ParamKeyTable returns the key table for the incentive module's parameters. -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) -} - -// NewParams takes an epoch distribution identifier, then returns an incentives Params struct. -func NewParams(distrEpochIdentifier string, maxGauges uint64) Params { - return Params{ - DistrEpochIdentifier: distrEpochIdentifier, - MaxGauges: maxGauges, - } -} - -// DefaultParams returns the default incentives module parameters. -func DefaultParams() Params { - return Params{ - DistrEpochIdentifier: "day", - MaxGauges: 20, - } -} - -// Validate checks that the incentives module parameters are valid. -func (p Params) Validate() error { - return epochtypes.ValidateEpochIdentifierInterface(p.DistrEpochIdentifier) -} - -// ParamSetPairs takes the parameter struct and associates the paramsubspace key and field of the parameters as a KVStore. -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{ - paramtypes.NewParamSetPair(KeyDistrEpochIdentifier, &p.DistrEpochIdentifier, epochtypes.ValidateEpochIdentifierInterface), - paramtypes.NewParamSetPair(KeyMaxGauges, &p.MaxGauges, func(interface{}) error { return nil }), - } -} diff --git a/x/incentives/types/params.pb.go b/x/incentives/types/params.pb.go deleted file mode 100644 index 43335aa08..000000000 --- a/x/incentives/types/params.pb.go +++ /dev/null @@ -1,359 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Params holds parameters for the incentives module -type Params struct { - // distr_epoch_identifier is what epoch type distribution will be triggered by - // (day, week, etc.) - DistrEpochIdentifier string `protobuf:"bytes,1,opt,name=distr_epoch_identifier,json=distrEpochIdentifier,proto3" json:"distr_epoch_identifier,omitempty" yaml:"distr_epoch_identifier"` - MaxGauges uint64 `protobuf:"varint,2,opt,name=max_gauges,json=maxGauges,proto3" json:"max_gauges,omitempty" yaml:"max_gauges"` -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_26b1e31ea29bccbb, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetDistrEpochIdentifier() string { - if m != nil { - return m.DistrEpochIdentifier - } - return "" -} - -func (m *Params) GetMaxGauges() uint64 { - if m != nil { - return m.MaxGauges - } - return 0 -} - -func init() { - proto.RegisterType((*Params)(nil), "neutron.incentives.Params") -} - -func init() { proto.RegisterFile("neutron/incentives/params.proto", fileDescriptor_26b1e31ea29bccbb) } - -var fileDescriptor_26b1e31ea29bccbb = []byte{ - // 242 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2d, 0x2d, - 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x4b, 0x4e, 0xcd, 0x2b, 0xc9, 0x2c, 0x4b, 0x2d, 0xd6, 0x2f, - 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0x2a, 0xd0, - 0x43, 0x28, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x4b, 0xeb, 0x83, 0x58, 0x10, 0x95, 0x4a, - 0xd3, 0x19, 0xb9, 0xd8, 0x02, 0xc0, 0x5a, 0x85, 0xc2, 0xb9, 0xc4, 0x52, 0x32, 0x8b, 0x4b, 0x8a, - 0xe2, 0x53, 0x0b, 0xf2, 0x93, 0x33, 0xe2, 0x33, 0x53, 0x40, 0x3a, 0xd3, 0x32, 0x53, 0x8b, 0x24, - 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x14, 0x3f, 0xdd, 0x93, 0x97, 0xad, 0x4c, 0xcc, 0xcd, 0xb1, - 0x52, 0xc2, 0xae, 0x4e, 0x29, 0x48, 0x04, 0x2c, 0xe1, 0x0a, 0x12, 0xf7, 0x84, 0x0b, 0x0b, 0x99, - 0x70, 0x71, 0xe5, 0x26, 0x56, 0xc4, 0xa7, 0x27, 0x96, 0xa6, 0xa7, 0x16, 0x4b, 0x30, 0x29, 0x30, - 0x6a, 0xb0, 0x38, 0x89, 0x7e, 0xba, 0x27, 0x2f, 0x08, 0x31, 0x0c, 0x21, 0xa7, 0x14, 0xc4, 0x99, - 0x9b, 0x58, 0xe1, 0x0e, 0x66, 0x3b, 0x79, 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, 0x61, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0xa3, - 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0x72, 0xb8, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x27, - 0xb1, 0x81, 0x7d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x9e, 0xe5, 0x1b, 0x3a, 0x01, - 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxGauges != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MaxGauges)) - i-- - dAtA[i] = 0x10 - } - if len(m.DistrEpochIdentifier) > 0 { - i -= len(m.DistrEpochIdentifier) - copy(dAtA[i:], m.DistrEpochIdentifier) - i = encodeVarintParams(dAtA, i, uint64(len(m.DistrEpochIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DistrEpochIdentifier) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - if m.MaxGauges != 0 { - n += 1 + sovParams(uint64(m.MaxGauges)) - } - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistrEpochIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DistrEpochIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxGauges", wireType) - } - m.MaxGauges = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxGauges |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/incentives/types/query.pb.go b/x/incentives/types/query.pb.go deleted file mode 100644 index 633166dcd..000000000 --- a/x/incentives/types/query.pb.go +++ /dev/null @@ -1,3584 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/query.proto - -package types - -import ( - context "context" - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - 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" - 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 -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. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type GaugeStatus int32 - -const ( - GaugeStatus_ACTIVE_UPCOMING GaugeStatus = 0 - GaugeStatus_ACTIVE GaugeStatus = 1 - GaugeStatus_UPCOMING GaugeStatus = 2 - GaugeStatus_FINISHED GaugeStatus = 3 -) - -var GaugeStatus_name = map[int32]string{ - 0: "ACTIVE_UPCOMING", - 1: "ACTIVE", - 2: "UPCOMING", - 3: "FINISHED", -} - -var GaugeStatus_value = map[string]int32{ - "ACTIVE_UPCOMING": 0, - "ACTIVE": 1, - "UPCOMING": 2, - "FINISHED": 3, -} - -func (x GaugeStatus) String() string { - return proto.EnumName(GaugeStatus_name, int32(x)) -} - -func (GaugeStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{0} -} - -type GetModuleStatusRequest struct { -} - -func (m *GetModuleStatusRequest) Reset() { *m = GetModuleStatusRequest{} } -func (m *GetModuleStatusRequest) String() string { return proto.CompactTextString(m) } -func (*GetModuleStatusRequest) ProtoMessage() {} -func (*GetModuleStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{0} -} -func (m *GetModuleStatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetModuleStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetModuleStatusRequest.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 *GetModuleStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetModuleStatusRequest.Merge(m, src) -} -func (m *GetModuleStatusRequest) XXX_Size() int { - return m.Size() -} -func (m *GetModuleStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetModuleStatusRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetModuleStatusRequest proto.InternalMessageInfo - -type GetModuleStatusResponse struct { - // Coins that have yet to be distributed - RewardCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=reward_coins,json=rewardCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward_coins"` - StakedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=staked_coins,json=stakedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"staked_coins"` - Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` -} - -func (m *GetModuleStatusResponse) Reset() { *m = GetModuleStatusResponse{} } -func (m *GetModuleStatusResponse) String() string { return proto.CompactTextString(m) } -func (*GetModuleStatusResponse) ProtoMessage() {} -func (*GetModuleStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{1} -} -func (m *GetModuleStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetModuleStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetModuleStatusResponse.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 *GetModuleStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetModuleStatusResponse.Merge(m, src) -} -func (m *GetModuleStatusResponse) XXX_Size() int { - return m.Size() -} -func (m *GetModuleStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetModuleStatusResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetModuleStatusResponse proto.InternalMessageInfo - -func (m *GetModuleStatusResponse) GetRewardCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.RewardCoins - } - return nil -} - -func (m *GetModuleStatusResponse) GetStakedCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.StakedCoins - } - return nil -} - -func (m *GetModuleStatusResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type GetGaugeByIDRequest struct { - // Gague ID being queried - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *GetGaugeByIDRequest) Reset() { *m = GetGaugeByIDRequest{} } -func (m *GetGaugeByIDRequest) String() string { return proto.CompactTextString(m) } -func (*GetGaugeByIDRequest) ProtoMessage() {} -func (*GetGaugeByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{2} -} -func (m *GetGaugeByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGaugeByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGaugeByIDRequest.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 *GetGaugeByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGaugeByIDRequest.Merge(m, src) -} -func (m *GetGaugeByIDRequest) XXX_Size() int { - return m.Size() -} -func (m *GetGaugeByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetGaugeByIDRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetGaugeByIDRequest proto.InternalMessageInfo - -func (m *GetGaugeByIDRequest) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -type GetGaugeByIDResponse struct { - // Gauge that corresponds to provided gague ID - Gauge *Gauge `protobuf:"bytes,1,opt,name=gauge,proto3" json:"gauge,omitempty"` -} - -func (m *GetGaugeByIDResponse) Reset() { *m = GetGaugeByIDResponse{} } -func (m *GetGaugeByIDResponse) String() string { return proto.CompactTextString(m) } -func (*GetGaugeByIDResponse) ProtoMessage() {} -func (*GetGaugeByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{3} -} -func (m *GetGaugeByIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGaugeByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGaugeByIDResponse.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 *GetGaugeByIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGaugeByIDResponse.Merge(m, src) -} -func (m *GetGaugeByIDResponse) XXX_Size() int { - return m.Size() -} -func (m *GetGaugeByIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetGaugeByIDResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetGaugeByIDResponse proto.InternalMessageInfo - -func (m *GetGaugeByIDResponse) GetGauge() *Gauge { - if m != nil { - return m.Gauge - } - return nil -} - -type GetGaugeQualifyingValueRequest struct { - // Gague ID being queried - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *GetGaugeQualifyingValueRequest) Reset() { *m = GetGaugeQualifyingValueRequest{} } -func (m *GetGaugeQualifyingValueRequest) String() string { return proto.CompactTextString(m) } -func (*GetGaugeQualifyingValueRequest) ProtoMessage() {} -func (*GetGaugeQualifyingValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{4} -} -func (m *GetGaugeQualifyingValueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGaugeQualifyingValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGaugeQualifyingValueRequest.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 *GetGaugeQualifyingValueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGaugeQualifyingValueRequest.Merge(m, src) -} -func (m *GetGaugeQualifyingValueRequest) XXX_Size() int { - return m.Size() -} -func (m *GetGaugeQualifyingValueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetGaugeQualifyingValueRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetGaugeQualifyingValueRequest proto.InternalMessageInfo - -func (m *GetGaugeQualifyingValueRequest) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -type GetGaugeQualifyingValueResponse struct { - // The amount of value at the gauge's pricing tick currently qualifying for the gauge. - QualifyingValue uint64 `protobuf:"varint,1,opt,name=qualifying_value,json=qualifyingValue,proto3" json:"qualifying_value,omitempty"` -} - -func (m *GetGaugeQualifyingValueResponse) Reset() { *m = GetGaugeQualifyingValueResponse{} } -func (m *GetGaugeQualifyingValueResponse) String() string { return proto.CompactTextString(m) } -func (*GetGaugeQualifyingValueResponse) ProtoMessage() {} -func (*GetGaugeQualifyingValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{5} -} -func (m *GetGaugeQualifyingValueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGaugeQualifyingValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGaugeQualifyingValueResponse.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 *GetGaugeQualifyingValueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGaugeQualifyingValueResponse.Merge(m, src) -} -func (m *GetGaugeQualifyingValueResponse) XXX_Size() int { - return m.Size() -} -func (m *GetGaugeQualifyingValueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetGaugeQualifyingValueResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetGaugeQualifyingValueResponse proto.InternalMessageInfo - -func (m *GetGaugeQualifyingValueResponse) GetQualifyingValue() uint64 { - if m != nil { - return m.QualifyingValue - } - return 0 -} - -type GetGaugesRequest struct { - Status GaugeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=neutron.incentives.GaugeStatus" json:"status,omitempty"` - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` -} - -func (m *GetGaugesRequest) Reset() { *m = GetGaugesRequest{} } -func (m *GetGaugesRequest) String() string { return proto.CompactTextString(m) } -func (*GetGaugesRequest) ProtoMessage() {} -func (*GetGaugesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{6} -} -func (m *GetGaugesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGaugesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGaugesRequest.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 *GetGaugesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGaugesRequest.Merge(m, src) -} -func (m *GetGaugesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetGaugesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetGaugesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetGaugesRequest proto.InternalMessageInfo - -func (m *GetGaugesRequest) GetStatus() GaugeStatus { - if m != nil { - return m.Status - } - return GaugeStatus_ACTIVE_UPCOMING -} - -func (m *GetGaugesRequest) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -type GetGaugesResponse struct { - // Upcoming and active gauges - Gauges []*Gauge `protobuf:"bytes,1,rep,name=gauges,proto3" json:"gauges,omitempty"` -} - -func (m *GetGaugesResponse) Reset() { *m = GetGaugesResponse{} } -func (m *GetGaugesResponse) String() string { return proto.CompactTextString(m) } -func (*GetGaugesResponse) ProtoMessage() {} -func (*GetGaugesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{7} -} -func (m *GetGaugesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGaugesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGaugesResponse.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 *GetGaugesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGaugesResponse.Merge(m, src) -} -func (m *GetGaugesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetGaugesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetGaugesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetGaugesResponse proto.InternalMessageInfo - -func (m *GetGaugesResponse) GetGauges() []*Gauge { - if m != nil { - return m.Gauges - } - return nil -} - -type GetStakeByIDRequest struct { - StakeId uint64 `protobuf:"varint,1,opt,name=stake_id,json=stakeId,proto3" json:"stake_id,omitempty"` -} - -func (m *GetStakeByIDRequest) Reset() { *m = GetStakeByIDRequest{} } -func (m *GetStakeByIDRequest) String() string { return proto.CompactTextString(m) } -func (*GetStakeByIDRequest) ProtoMessage() {} -func (*GetStakeByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{8} -} -func (m *GetStakeByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStakeByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStakeByIDRequest.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 *GetStakeByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStakeByIDRequest.Merge(m, src) -} -func (m *GetStakeByIDRequest) XXX_Size() int { - return m.Size() -} -func (m *GetStakeByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetStakeByIDRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStakeByIDRequest proto.InternalMessageInfo - -func (m *GetStakeByIDRequest) GetStakeId() uint64 { - if m != nil { - return m.StakeId - } - return 0 -} - -type GetStakeByIDResponse struct { - Stake *Stake `protobuf:"bytes,1,opt,name=stake,proto3" json:"stake,omitempty"` -} - -func (m *GetStakeByIDResponse) Reset() { *m = GetStakeByIDResponse{} } -func (m *GetStakeByIDResponse) String() string { return proto.CompactTextString(m) } -func (*GetStakeByIDResponse) ProtoMessage() {} -func (*GetStakeByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{9} -} -func (m *GetStakeByIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStakeByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStakeByIDResponse.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 *GetStakeByIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStakeByIDResponse.Merge(m, src) -} -func (m *GetStakeByIDResponse) XXX_Size() int { - return m.Size() -} -func (m *GetStakeByIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetStakeByIDResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStakeByIDResponse proto.InternalMessageInfo - -func (m *GetStakeByIDResponse) GetStake() *Stake { - if m != nil { - return m.Stake - } - return nil -} - -type GetStakesRequest struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` -} - -func (m *GetStakesRequest) Reset() { *m = GetStakesRequest{} } -func (m *GetStakesRequest) String() string { return proto.CompactTextString(m) } -func (*GetStakesRequest) ProtoMessage() {} -func (*GetStakesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{10} -} -func (m *GetStakesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStakesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStakesRequest.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 *GetStakesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStakesRequest.Merge(m, src) -} -func (m *GetStakesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetStakesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetStakesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStakesRequest proto.InternalMessageInfo - -func (m *GetStakesRequest) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -type GetStakesResponse struct { - Stakes []*Stake `protobuf:"bytes,1,rep,name=stakes,proto3" json:"stakes,omitempty"` -} - -func (m *GetStakesResponse) Reset() { *m = GetStakesResponse{} } -func (m *GetStakesResponse) String() string { return proto.CompactTextString(m) } -func (*GetStakesResponse) ProtoMessage() {} -func (*GetStakesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{11} -} -func (m *GetStakesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStakesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStakesResponse.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 *GetStakesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStakesResponse.Merge(m, src) -} -func (m *GetStakesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetStakesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetStakesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStakesResponse proto.InternalMessageInfo - -func (m *GetStakesResponse) GetStakes() []*Stake { - if m != nil { - return m.Stakes - } - return nil -} - -type GetFutureRewardEstimateRequest struct { - // Address that is being queried for future estimated rewards - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - // Stake IDs included in future reward estimation - StakeIds []uint64 `protobuf:"varint,2,rep,packed,name=stake_ids,json=stakeIds,proto3" json:"stake_ids,omitempty"` - // Determines upper time limit of reward estimation - // reward estimation goes up to current_epoch + num_epochs - NumEpochs int64 `protobuf:"varint,3,opt,name=num_epochs,json=numEpochs,proto3" json:"num_epochs,omitempty"` -} - -func (m *GetFutureRewardEstimateRequest) Reset() { *m = GetFutureRewardEstimateRequest{} } -func (m *GetFutureRewardEstimateRequest) String() string { return proto.CompactTextString(m) } -func (*GetFutureRewardEstimateRequest) ProtoMessage() {} -func (*GetFutureRewardEstimateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{12} -} -func (m *GetFutureRewardEstimateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetFutureRewardEstimateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetFutureRewardEstimateRequest.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 *GetFutureRewardEstimateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetFutureRewardEstimateRequest.Merge(m, src) -} -func (m *GetFutureRewardEstimateRequest) XXX_Size() int { - return m.Size() -} -func (m *GetFutureRewardEstimateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetFutureRewardEstimateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetFutureRewardEstimateRequest proto.InternalMessageInfo - -func (m *GetFutureRewardEstimateRequest) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *GetFutureRewardEstimateRequest) GetStakeIds() []uint64 { - if m != nil { - return m.StakeIds - } - return nil -} - -func (m *GetFutureRewardEstimateRequest) GetNumEpochs() int64 { - if m != nil { - return m.NumEpochs - } - return 0 -} - -type GetFutureRewardEstimateResponse struct { - // Estimated coin rewards that will be recieved at provided address - // from specified locks between current time and end epoch - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` -} - -func (m *GetFutureRewardEstimateResponse) Reset() { *m = GetFutureRewardEstimateResponse{} } -func (m *GetFutureRewardEstimateResponse) String() string { return proto.CompactTextString(m) } -func (*GetFutureRewardEstimateResponse) ProtoMessage() {} -func (*GetFutureRewardEstimateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{13} -} -func (m *GetFutureRewardEstimateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetFutureRewardEstimateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetFutureRewardEstimateResponse.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 *GetFutureRewardEstimateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetFutureRewardEstimateResponse.Merge(m, src) -} -func (m *GetFutureRewardEstimateResponse) XXX_Size() int { - return m.Size() -} -func (m *GetFutureRewardEstimateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetFutureRewardEstimateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetFutureRewardEstimateResponse proto.InternalMessageInfo - -func (m *GetFutureRewardEstimateResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -type GetAccountHistoryRequest struct { - // Address that is being queried for account history - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty" yaml:"account"` -} - -func (m *GetAccountHistoryRequest) Reset() { *m = GetAccountHistoryRequest{} } -func (m *GetAccountHistoryRequest) String() string { return proto.CompactTextString(m) } -func (*GetAccountHistoryRequest) ProtoMessage() {} -func (*GetAccountHistoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{14} -} -func (m *GetAccountHistoryRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAccountHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAccountHistoryRequest.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 *GetAccountHistoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAccountHistoryRequest.Merge(m, src) -} -func (m *GetAccountHistoryRequest) XXX_Size() int { - return m.Size() -} -func (m *GetAccountHistoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAccountHistoryRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAccountHistoryRequest proto.InternalMessageInfo - -func (m *GetAccountHistoryRequest) GetAccount() string { - if m != nil { - return m.Account - } - return "" -} - -type GetAccountHistoryResponse struct { - // Gauge rewards that have been distributed to this address to date - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` -} - -func (m *GetAccountHistoryResponse) Reset() { *m = GetAccountHistoryResponse{} } -func (m *GetAccountHistoryResponse) String() string { return proto.CompactTextString(m) } -func (*GetAccountHistoryResponse) ProtoMessage() {} -func (*GetAccountHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_04f05289607f461a, []int{15} -} -func (m *GetAccountHistoryResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAccountHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAccountHistoryResponse.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 *GetAccountHistoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAccountHistoryResponse.Merge(m, src) -} -func (m *GetAccountHistoryResponse) XXX_Size() int { - return m.Size() -} -func (m *GetAccountHistoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAccountHistoryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAccountHistoryResponse proto.InternalMessageInfo - -func (m *GetAccountHistoryResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -func init() { - proto.RegisterEnum("neutron.incentives.GaugeStatus", GaugeStatus_name, GaugeStatus_value) - proto.RegisterType((*GetModuleStatusRequest)(nil), "neutron.incentives.GetModuleStatusRequest") - proto.RegisterType((*GetModuleStatusResponse)(nil), "neutron.incentives.GetModuleStatusResponse") - proto.RegisterType((*GetGaugeByIDRequest)(nil), "neutron.incentives.GetGaugeByIDRequest") - proto.RegisterType((*GetGaugeByIDResponse)(nil), "neutron.incentives.GetGaugeByIDResponse") - proto.RegisterType((*GetGaugeQualifyingValueRequest)(nil), "neutron.incentives.GetGaugeQualifyingValueRequest") - proto.RegisterType((*GetGaugeQualifyingValueResponse)(nil), "neutron.incentives.GetGaugeQualifyingValueResponse") - proto.RegisterType((*GetGaugesRequest)(nil), "neutron.incentives.GetGaugesRequest") - proto.RegisterType((*GetGaugesResponse)(nil), "neutron.incentives.GetGaugesResponse") - proto.RegisterType((*GetStakeByIDRequest)(nil), "neutron.incentives.GetStakeByIDRequest") - proto.RegisterType((*GetStakeByIDResponse)(nil), "neutron.incentives.GetStakeByIDResponse") - proto.RegisterType((*GetStakesRequest)(nil), "neutron.incentives.GetStakesRequest") - proto.RegisterType((*GetStakesResponse)(nil), "neutron.incentives.GetStakesResponse") - proto.RegisterType((*GetFutureRewardEstimateRequest)(nil), "neutron.incentives.GetFutureRewardEstimateRequest") - proto.RegisterType((*GetFutureRewardEstimateResponse)(nil), "neutron.incentives.GetFutureRewardEstimateResponse") - proto.RegisterType((*GetAccountHistoryRequest)(nil), "neutron.incentives.GetAccountHistoryRequest") - proto.RegisterType((*GetAccountHistoryResponse)(nil), "neutron.incentives.GetAccountHistoryResponse") -} - -func init() { proto.RegisterFile("neutron/incentives/query.proto", fileDescriptor_04f05289607f461a) } - -var fileDescriptor_04f05289607f461a = []byte{ - // 1075 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x4f, 0x1b, 0xc7, - 0x1b, 0x66, 0x0d, 0x76, 0xf0, 0x80, 0xc0, 0xbf, 0x09, 0xfa, 0xd5, 0xb8, 0xa9, 0x8d, 0x46, 0xa1, - 0x18, 0x12, 0xbc, 0xd8, 0x51, 0x95, 0x2a, 0x55, 0x0e, 0x31, 0x01, 0xe3, 0xb6, 0x49, 0x93, 0xa5, - 0xcd, 0xa1, 0x97, 0xd5, 0x62, 0x4f, 0x96, 0x55, 0xec, 0x1d, 0xb3, 0x33, 0x4b, 0x6a, 0x51, 0x7a, - 0xa8, 0xf2, 0x01, 0xa2, 0xf6, 0x56, 0xa9, 0x5f, 0xa0, 0x97, 0x1e, 0xfa, 0x21, 0x9a, 0x63, 0xa4,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 0xdd, 0x1b, 0x0d, 0x21, - 0x16, 0xca, 0x85, 0xd9, 0xc2, 0x9d, 0x83, 0x6f, 0xa3, 0x0c, 0x87, 0xfd, 0x02, 0x41, 0x33, 0xb5, - 0x52, 0x6c, 0x17, 0x6a, 0x5b, 0x29, 0x77, 0x3c, 0x87, 0xd2, 0x6d, 0xea, 0xb2, 0x6e, 0x3e, 0xb5, - 0xa0, 0x95, 0xb3, 0x86, 0xfc, 0x20, 0x9b, 0xe8, 0x7f, 0x43, 0x25, 0x14, 0xc4, 0x2a, 0xca, 0x00, - 0x01, 0xa7, 0x7b, 0x2f, 0x96, 0x29, 0xe5, 0x48, 0xd6, 0x60, 0x34, 0xdb, 0xc1, 0x98, 0x87, 0x47, - 0x33, 0x8f, 0x26, 0x61, 0xf4, 0xe6, 0x80, 0xa5, 0x2b, 0xf0, 0xdd, 0x0c, 0xa7, 0x34, 0x14, 0x71, - 0x3a, 0x25, 0x70, 0x49, 0x9a, 0x12, 0x44, 0x19, 0xd2, 0x8f, 0xdc, 0x01, 0x96, 0x60, 0x69, 0xc0, - 0xd2, 0x87, 0x28, 0xcd, 0x9e, 0xbb, 0xd4, 0x83, 0x24, 0xd9, 0x7a, 0xee, 0xcd, 0x51, 0x69, 0xba, - 0x6f, 0x75, 0x3b, 0x77, 0x08, 0x2c, 0x13, 0x43, 0x9a, 0x55, 0xfb, 0x61, 0xec, 0x69, 0xfb, 0x90, - 0x39, 0xb1, 0x7d, 0x09, 0x41, 0x39, 0x92, 0x17, 0x1a, 0x6c, 0x95, 0x4d, 0x5f, 0xf8, 0x1e, 0x35, - 0xe0, 0x70, 0x6d, 0x70, 0xe1, 0x74, 0x2d, 0x41, 0xdf, 0x12, 0x12, 0x7e, 0x1f, 0x65, 0x43, 0xca, - 0xe4, 0x59, 0x9c, 0x30, 0x26, 0x15, 0x67, 0x1c, 0x7f, 0x80, 0x90, 0xeb, 0x77, 0x4d, 0xda, 0x63, - 0xad, 0x5d, 0x79, 0x7e, 0xc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9e, 0x33, 0xb1, 0xdc, 0x27, 0x3d, 0x68, 0x2e, 0xc7, 0xbd, 0x4d, 0x85, 0x09, 0x27, 0xc8, - 0x3c, 0xfb, 0xf8, 0x81, 0xd3, 0x5d, 0xff, 0xec, 0xd5, 0x71, 0x51, 0x7b, 0x7d, 0x5c, 0xd4, 0xfe, - 0x3e, 0x2e, 0x6a, 0x2f, 0x4f, 0x8a, 0x63, 0xaf, 0x4f, 0x8a, 0x63, 0x7f, 0x9e, 0x14, 0xc7, 0xbe, - 0xae, 0x0e, 0x69, 0xb6, 0x2a, 0xb0, 0xca, 0x3c, 0x7b, 0x50, 0xec, 0x9b, 0xe1, 0x72, 0x20, 0xe1, - 0x3b, 0x19, 0x78, 0x7e, 0xdf, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0xc4, 0xcb, 0x7d, 0x4c, 0x95, - 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -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. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // GetModuleStatus returns a rundown of coins in the module and their status - GetModuleStatus(ctx context.Context, in *GetModuleStatusRequest, opts ...grpc.CallOption) (*GetModuleStatusResponse, error) - // GetGaugeByID returns a gauge by its ID - GetGaugeByID(ctx context.Context, in *GetGaugeByIDRequest, opts ...grpc.CallOption) (*GetGaugeByIDResponse, error) - // GetGauges returns gauges according to the filter provided - GetGauges(ctx context.Context, in *GetGaugesRequest, opts ...grpc.CallOption) (*GetGaugesResponse, error) - // GetStakeByID returns a stake by its ID - GetStakeByID(ctx context.Context, in *GetStakeByIDRequest, opts ...grpc.CallOption) (*GetStakeByIDResponse, error) - // GetStakes returns stakes by the filter provided. At least one filter must be provided. - GetStakes(ctx context.Context, in *GetStakesRequest, opts ...grpc.CallOption) (*GetStakesResponse, error) - // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified - // time in the future. The requestor either provides an address or a set of locks - // for which they want to find the associated rewards. - GetFutureRewardEstimate(ctx context.Context, in *GetFutureRewardEstimateRequest, opts ...grpc.CallOption) (*GetFutureRewardEstimateResponse, error) - // GetAccountHistory returns the total accumulated rewards per denom for a given user. - GetAccountHistory(ctx context.Context, in *GetAccountHistoryRequest, opts ...grpc.CallOption) (*GetAccountHistoryResponse, error) - // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating - // the prospective future rewards of staking. - GetGaugeQualifyingValue(ctx context.Context, in *GetGaugeQualifyingValueRequest, opts ...grpc.CallOption) (*GetGaugeQualifyingValueResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) GetModuleStatus(ctx context.Context, in *GetModuleStatusRequest, opts ...grpc.CallOption) (*GetModuleStatusResponse, error) { - out := new(GetModuleStatusResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetModuleStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetGaugeByID(ctx context.Context, in *GetGaugeByIDRequest, opts ...grpc.CallOption) (*GetGaugeByIDResponse, error) { - out := new(GetGaugeByIDResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetGaugeByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetGauges(ctx context.Context, in *GetGaugesRequest, opts ...grpc.CallOption) (*GetGaugesResponse, error) { - out := new(GetGaugesResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetGauges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetStakeByID(ctx context.Context, in *GetStakeByIDRequest, opts ...grpc.CallOption) (*GetStakeByIDResponse, error) { - out := new(GetStakeByIDResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetStakeByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetStakes(ctx context.Context, in *GetStakesRequest, opts ...grpc.CallOption) (*GetStakesResponse, error) { - out := new(GetStakesResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetStakes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetFutureRewardEstimate(ctx context.Context, in *GetFutureRewardEstimateRequest, opts ...grpc.CallOption) (*GetFutureRewardEstimateResponse, error) { - out := new(GetFutureRewardEstimateResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetFutureRewardEstimate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetAccountHistory(ctx context.Context, in *GetAccountHistoryRequest, opts ...grpc.CallOption) (*GetAccountHistoryResponse, error) { - out := new(GetAccountHistoryResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetAccountHistory", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetGaugeQualifyingValue(ctx context.Context, in *GetGaugeQualifyingValueRequest, opts ...grpc.CallOption) (*GetGaugeQualifyingValueResponse, error) { - out := new(GetGaugeQualifyingValueResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Query/GetGaugeQualifyingValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // GetModuleStatus returns a rundown of coins in the module and their status - GetModuleStatus(context.Context, *GetModuleStatusRequest) (*GetModuleStatusResponse, error) - // GetGaugeByID returns a gauge by its ID - GetGaugeByID(context.Context, *GetGaugeByIDRequest) (*GetGaugeByIDResponse, error) - // GetGauges returns gauges according to the filter provided - GetGauges(context.Context, *GetGaugesRequest) (*GetGaugesResponse, error) - // GetStakeByID returns a stake by its ID - GetStakeByID(context.Context, *GetStakeByIDRequest) (*GetStakeByIDResponse, error) - // GetStakes returns stakes by the filter provided. At least one filter must be provided. - GetStakes(context.Context, *GetStakesRequest) (*GetStakesResponse, error) - // GetFutureRewardsEstimate returns an estimate of the rewards from now until a specified - // time in the future. The requestor either provides an address or a set of locks - // for which they want to find the associated rewards. - GetFutureRewardEstimate(context.Context, *GetFutureRewardEstimateRequest) (*GetFutureRewardEstimateResponse, error) - // GetAccountHistory returns the total accumulated rewards per denom for a given user. - GetAccountHistory(context.Context, *GetAccountHistoryRequest) (*GetAccountHistoryResponse, error) - // Returns the total amount of value currently qualifying for the gauge. This is useful for calculating - // the prospective future rewards of staking. - GetGaugeQualifyingValue(context.Context, *GetGaugeQualifyingValueRequest) (*GetGaugeQualifyingValueResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) GetModuleStatus(ctx context.Context, req *GetModuleStatusRequest) (*GetModuleStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetModuleStatus not implemented") -} -func (*UnimplementedQueryServer) GetGaugeByID(ctx context.Context, req *GetGaugeByIDRequest) (*GetGaugeByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGaugeByID not implemented") -} -func (*UnimplementedQueryServer) GetGauges(ctx context.Context, req *GetGaugesRequest) (*GetGaugesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGauges not implemented") -} -func (*UnimplementedQueryServer) GetStakeByID(ctx context.Context, req *GetStakeByIDRequest) (*GetStakeByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStakeByID not implemented") -} -func (*UnimplementedQueryServer) GetStakes(ctx context.Context, req *GetStakesRequest) (*GetStakesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStakes not implemented") -} -func (*UnimplementedQueryServer) GetFutureRewardEstimate(ctx context.Context, req *GetFutureRewardEstimateRequest) (*GetFutureRewardEstimateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFutureRewardEstimate not implemented") -} -func (*UnimplementedQueryServer) GetAccountHistory(ctx context.Context, req *GetAccountHistoryRequest) (*GetAccountHistoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAccountHistory not implemented") -} -func (*UnimplementedQueryServer) GetGaugeQualifyingValue(ctx context.Context, req *GetGaugeQualifyingValueRequest) (*GetGaugeQualifyingValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGaugeQualifyingValue not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_GetModuleStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetModuleStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetModuleStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetModuleStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetModuleStatus(ctx, req.(*GetModuleStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetGaugeByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGaugeByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetGaugeByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetGaugeByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetGaugeByID(ctx, req.(*GetGaugeByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetGauges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGaugesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetGauges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetGauges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetGauges(ctx, req.(*GetGaugesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetStakeByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetStakeByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetStakeByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetStakeByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetStakeByID(ctx, req.(*GetStakeByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetStakes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetStakesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetStakes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetStakes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetStakes(ctx, req.(*GetStakesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetFutureRewardEstimate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetFutureRewardEstimateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetFutureRewardEstimate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetFutureRewardEstimate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetFutureRewardEstimate(ctx, req.(*GetFutureRewardEstimateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetAccountHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAccountHistoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetAccountHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetAccountHistory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetAccountHistory(ctx, req.(*GetAccountHistoryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetGaugeQualifyingValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGaugeQualifyingValueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetGaugeQualifyingValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Query/GetGaugeQualifyingValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetGaugeQualifyingValue(ctx, req.(*GetGaugeQualifyingValueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.incentives.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetModuleStatus", - Handler: _Query_GetModuleStatus_Handler, - }, - { - MethodName: "GetGaugeByID", - Handler: _Query_GetGaugeByID_Handler, - }, - { - MethodName: "GetGauges", - Handler: _Query_GetGauges_Handler, - }, - { - MethodName: "GetStakeByID", - Handler: _Query_GetStakeByID_Handler, - }, - { - MethodName: "GetStakes", - Handler: _Query_GetStakes_Handler, - }, - { - MethodName: "GetFutureRewardEstimate", - Handler: _Query_GetFutureRewardEstimate_Handler, - }, - { - MethodName: "GetAccountHistory", - Handler: _Query_GetAccountHistory_Handler, - }, - { - MethodName: "GetGaugeQualifyingValue", - Handler: _Query_GetGaugeQualifyingValue_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "neutron/incentives/query.proto", -} - -func (m *GetModuleStatusRequest) 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 *GetModuleStatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetModuleStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *GetModuleStatusResponse) 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 *GetModuleStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetModuleStatusResponse) 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 = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.StakedCoins) > 0 { - for iNdEx := len(m.StakedCoins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.StakedCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.RewardCoins) > 0 { - for iNdEx := len(m.RewardCoins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewardCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetGaugeByIDRequest) 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 *GetGaugeByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGaugeByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Id != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetGaugeByIDResponse) 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 *GetGaugeByIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGaugeByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Gauge != nil { - { - size, err := m.Gauge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetGaugeQualifyingValueRequest) 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 *GetGaugeQualifyingValueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGaugeQualifyingValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Id != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetGaugeQualifyingValueResponse) 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 *GetGaugeQualifyingValueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGaugeQualifyingValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.QualifyingValue != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.QualifyingValue)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetGaugesRequest) 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 *GetGaugesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGaugesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x12 - } - if m.Status != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetGaugesResponse) 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 *GetGaugesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGaugesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Gauges) > 0 { - for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Gauges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetStakeByIDRequest) 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 *GetStakeByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStakeByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StakeId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.StakeId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetStakeByIDResponse) 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 *GetStakeByIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStakeByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Stake != nil { - { - size, err := m.Stake.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetStakesRequest) 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 *GetStakesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStakesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetStakesResponse) 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 *GetStakesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStakesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Stakes) > 0 { - for iNdEx := len(m.Stakes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Stakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetFutureRewardEstimateRequest) 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 *GetFutureRewardEstimateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetFutureRewardEstimateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NumEpochs != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.NumEpochs)) - i-- - dAtA[i] = 0x18 - } - if len(m.StakeIds) > 0 { - dAtA5 := make([]byte, len(m.StakeIds)*10) - var j4 int - for _, num := range m.StakeIds { - for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j4++ - } - dAtA5[j4] = uint8(num) - j4++ - } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintQuery(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0x12 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetFutureRewardEstimateResponse) 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 *GetFutureRewardEstimateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetFutureRewardEstimateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetAccountHistoryRequest) 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 *GetAccountHistoryRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAccountHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Account) > 0 { - i -= len(m.Account) - copy(dAtA[i:], m.Account) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetAccountHistoryResponse) 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 *GetAccountHistoryResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAccountHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GetModuleStatusRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *GetModuleStatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RewardCoins) > 0 { - for _, e := range m.RewardCoins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if len(m.StakedCoins) > 0 { - for _, e := range m.StakedCoins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *GetGaugeByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) - } - return n -} - -func (m *GetGaugeByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Gauge != nil { - l = m.Gauge.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *GetGaugeQualifyingValueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) - } - return n -} - -func (m *GetGaugeQualifyingValueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.QualifyingValue != 0 { - n += 1 + sovQuery(uint64(m.QualifyingValue)) - } - return n -} - -func (m *GetGaugesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovQuery(uint64(m.Status)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *GetGaugesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Gauges) > 0 { - for _, e := range m.Gauges { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *GetStakeByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StakeId != 0 { - n += 1 + sovQuery(uint64(m.StakeId)) - } - return n -} - -func (m *GetStakeByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Stake != nil { - l = m.Stake.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *GetStakesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *GetStakesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Stakes) > 0 { - for _, e := range m.Stakes { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *GetFutureRewardEstimateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if len(m.StakeIds) > 0 { - l = 0 - for _, e := range m.StakeIds { - l += sovQuery(uint64(e)) - } - n += 1 + sovQuery(uint64(l)) + l - } - if m.NumEpochs != 0 { - n += 1 + sovQuery(uint64(m.NumEpochs)) - } - return n -} - -func (m *GetFutureRewardEstimateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *GetAccountHistoryRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Account) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *GetAccountHistoryResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GetModuleStatusRequest) 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 ErrIntOverflowQuery - } - 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: GetModuleStatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetModuleStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetModuleStatusResponse) 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 ErrIntOverflowQuery - } - 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: GetModuleStatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetModuleStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardCoins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RewardCoins = append(m.RewardCoins, types.Coin{}) - if err := m.RewardCoins[len(m.RewardCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakedCoins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StakedCoins = append(m.StakedCoins, types.Coin{}) - if err := m.StakedCoins[len(m.StakedCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - 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 ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - 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 := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGaugeByIDRequest) 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 ErrIntOverflowQuery - } - 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: GetGaugeByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGaugeByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGaugeByIDResponse) 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 ErrIntOverflowQuery - } - 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: GetGaugeByIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGaugeByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gauge", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Gauge == nil { - m.Gauge = &Gauge{} - } - if err := m.Gauge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGaugeQualifyingValueRequest) 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 ErrIntOverflowQuery - } - 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: GetGaugeQualifyingValueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGaugeQualifyingValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGaugeQualifyingValueResponse) 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 ErrIntOverflowQuery - } - 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: GetGaugeQualifyingValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGaugeQualifyingValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QualifyingValue", wireType) - } - m.QualifyingValue = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QualifyingValue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGaugesRequest) 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 ErrIntOverflowQuery - } - 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: GetGaugesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGaugesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= GaugeStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGaugesResponse) 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 ErrIntOverflowQuery - } - 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: GetGaugesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGaugesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Gauges = append(m.Gauges, &Gauge{}) - if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetStakeByIDRequest) 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 ErrIntOverflowQuery - } - 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: GetStakeByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetStakeByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StakeId", wireType) - } - m.StakeId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StakeId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetStakeByIDResponse) 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 ErrIntOverflowQuery - } - 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: GetStakeByIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetStakeByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stake", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Stake == nil { - m.Stake = &Stake{} - } - if err := m.Stake.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetStakesRequest) 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 ErrIntOverflowQuery - } - 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: GetStakesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetStakesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetStakesResponse) 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 ErrIntOverflowQuery - } - 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: GetStakesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetStakesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stakes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stakes = append(m.Stakes, &Stake{}) - if err := m.Stakes[len(m.Stakes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetFutureRewardEstimateRequest) 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 ErrIntOverflowQuery - } - 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: GetFutureRewardEstimateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetFutureRewardEstimateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StakeIds = append(m.StakeIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.StakeIds) == 0 { - m.StakeIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StakeIds = append(m.StakeIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field StakeIds", wireType) - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumEpochs", wireType) - } - m.NumEpochs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumEpochs |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetFutureRewardEstimateResponse) 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 ErrIntOverflowQuery - } - 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: GetFutureRewardEstimateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetFutureRewardEstimateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetAccountHistoryRequest) 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 ErrIntOverflowQuery - } - 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: GetAccountHistoryRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAccountHistoryRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Account = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetAccountHistoryResponse) 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 ErrIntOverflowQuery - } - 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: GetAccountHistoryResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAccountHistoryResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/incentives/types/query.pb.gw.go b/x/incentives/types/query.pb.gw.go deleted file mode 100644 index 7d95daa11..000000000 --- a/x/incentives/types/query.pb.gw.go +++ /dev/null @@ -1,842 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: neutron/incentives/query.proto - -/* -Package types is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package types - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Query_GetModuleStatus_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetModuleStatusRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetModuleStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetModuleStatus_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetModuleStatusRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetModuleStatus(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_GetGaugeByID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetGaugeByIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetGaugeByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetGaugeByID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetGaugeByIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetGaugeByID(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_GetGauges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_GetGauges_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetGaugesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetGauges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetGauges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetGauges_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetGaugesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetGauges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetGauges(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_GetStakeByID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetStakeByIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["stake_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "stake_id") - } - - protoReq.StakeId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "stake_id", err) - } - - msg, err := client.GetStakeByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetStakeByID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetStakeByIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["stake_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "stake_id") - } - - protoReq.StakeId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "stake_id", err) - } - - msg, err := server.GetStakeByID(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_GetStakes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_GetStakes_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetStakesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetStakes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetStakes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetStakes_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetStakesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetStakes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetStakes(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_GetFutureRewardEstimate_0 = &utilities.DoubleArray{Encoding: map[string]int{"owner": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_Query_GetFutureRewardEstimate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetFutureRewardEstimateRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["owner"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") - } - - protoReq.Owner, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetFutureRewardEstimate_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetFutureRewardEstimate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetFutureRewardEstimate_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetFutureRewardEstimateRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["owner"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") - } - - protoReq.Owner, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetFutureRewardEstimate_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetFutureRewardEstimate(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_GetAccountHistory_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAccountHistoryRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["account"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") - } - - protoReq.Account, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) - } - - msg, err := client.GetAccountHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetAccountHistory_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAccountHistoryRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["account"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") - } - - protoReq.Account, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) - } - - msg, err := server.GetAccountHistory(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_GetGaugeQualifyingValue_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetGaugeQualifyingValueRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetGaugeQualifyingValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetGaugeQualifyingValue_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetGaugeQualifyingValueRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetGaugeQualifyingValue(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". -// UnaryRPC :call QueryServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. -func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - - mux.Handle("GET", pattern_Query_GetModuleStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetModuleStatus_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetModuleStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetGaugeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetGaugeByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetGaugeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetGauges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetGauges_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetStakeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetStakeByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetStakeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetStakes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetStakes_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetStakes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetFutureRewardEstimate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetFutureRewardEstimate_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetFutureRewardEstimate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetAccountHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetAccountHistory_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetAccountHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetGaugeQualifyingValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetGaugeQualifyingValue_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetGaugeQualifyingValue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterQueryHandler(ctx, mux, conn) -} - -// RegisterQueryHandler registers the http handlers for service Query to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) -} - -// RegisterQueryHandlerClient registers the http handlers for service Query -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "QueryClient" to call the correct interceptors. -func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - - mux.Handle("GET", pattern_Query_GetModuleStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetModuleStatus_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetModuleStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetGaugeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetGaugeByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetGaugeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetGauges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetGauges_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetStakeByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetStakeByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetStakeByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetStakes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetStakes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetStakes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetFutureRewardEstimate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetFutureRewardEstimate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetFutureRewardEstimate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetAccountHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetAccountHistory_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetAccountHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetGaugeQualifyingValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetGaugeQualifyingValue_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetGaugeQualifyingValue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Query_GetModuleStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron", "incentives", "v1beta1", "module_status"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetGaugeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "gauges", "id"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetGauges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"neutron", "incentives", "v1beta1", "gauges"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetStakeByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "incentives", "stakes", "stake_id"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetStakes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "incentives", "stakes"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetFutureRewardEstimate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "future_rewards_estimate", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetAccountHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "account_history", "account"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetGaugeQualifyingValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "incentives", "v1beta1", "get_gauge_qualifying_value", "id"}, "", runtime.AssumeColonVerbOpt(false))) -) - -var ( - forward_Query_GetModuleStatus_0 = runtime.ForwardResponseMessage - - forward_Query_GetGaugeByID_0 = runtime.ForwardResponseMessage - - forward_Query_GetGauges_0 = runtime.ForwardResponseMessage - - forward_Query_GetStakeByID_0 = runtime.ForwardResponseMessage - - forward_Query_GetStakes_0 = runtime.ForwardResponseMessage - - forward_Query_GetFutureRewardEstimate_0 = runtime.ForwardResponseMessage - - forward_Query_GetAccountHistory_0 = runtime.ForwardResponseMessage - - forward_Query_GetGaugeQualifyingValue_0 = runtime.ForwardResponseMessage -) diff --git a/x/incentives/types/query_condition.go b/x/incentives/types/query_condition.go deleted file mode 100644 index 0a9d45d26..000000000 --- a/x/incentives/types/query_condition.go +++ /dev/null @@ -1,18 +0,0 @@ -package types - -import ( - dextypes "github.com/neutron-org/neutron/x/dex/types" -) - -func (qc QueryCondition) Test(poolMetadata dextypes.PoolMetadata) bool { - if !poolMetadata.PairID.Equal(qc.PairID) { - return false - } - - lowerTick := poolMetadata.Tick - int64(poolMetadata.Fee) - upperTick := poolMetadata.Tick + int64(poolMetadata.Fee) - lowerTickQualifies := qc.StartTick <= lowerTick && lowerTick <= qc.EndTick - upperTickQualifies := qc.StartTick <= upperTick && upperTick <= qc.EndTick - - return lowerTickQualifies && upperTickQualifies -} diff --git a/x/incentives/types/query_condition_test.go b/x/incentives/types/query_condition_test.go deleted file mode 100644 index 13a0fe619..000000000 --- a/x/incentives/types/query_condition_test.go +++ /dev/null @@ -1,62 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/stretchr/testify/assert" - - dextypes "github.com/neutron-org/neutron/x/dex/types" - . "github.com/neutron-org/neutron/x/incentives/types" -) - -func TestQueryCondition(t *testing.T) { - pairID := &dextypes.PairID{ - Token0: "coin1", - Token1: "coin2", - } - - tests := []struct { - name string - queryCond QueryCondition - poolMetadata dextypes.PoolMetadata - testResult bool - }{ - { - name: "Matching denom and tick range", - queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, - poolMetadata: dextypes.NewPoolMetadata(pairID, 15, 5, 0), - testResult: true, - }, - { - name: "Non-matching denom", - queryCond: QueryCondition{PairID: pairID, StartTick: 10, EndTick: 20}, - poolMetadata: dextypes.NewPoolMetadata(&dextypes.PairID{Token0: "coin1", Token1: "coin3"}, 15, 5, 0), - testResult: false, - }, - { - name: "Non-matching tick range", - queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, - poolMetadata: dextypes.NewPoolMetadata(pairID, 15, 6, 0), - testResult: false, - }, - { - name: "Non-matching tick fee range lower", - queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, - poolMetadata: dextypes.NewPoolMetadata(pairID, 10, 5, 0), - testResult: false, - }, - { - name: "Non-matching tick fee range upper", - queryCond: QueryCondition{PairID: pairID, StartTick: 30, EndTick: 40}, - poolMetadata: dextypes.NewPoolMetadata(pairID, 20, 5, 0), - testResult: false, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - result := tt.queryCond.Test(tt.poolMetadata) - assert.Equal(t, tt.testResult, result) - }) - } -} diff --git a/x/incentives/types/stake.go b/x/incentives/types/stake.go deleted file mode 100644 index 7d2507cbb..000000000 --- a/x/incentives/types/stake.go +++ /dev/null @@ -1,53 +0,0 @@ -package types - -import ( - "fmt" - "time" - - sdk "github.com/cosmos/cosmos-sdk/types" - dextypes "github.com/neutron-org/neutron/x/dex/types" -) - -// NewStake returns a new instance of period stake. -func NewStake( - id uint64, - owner sdk.AccAddress, - coins sdk.Coins, - startTime time.Time, - startDistEpoch int64, -) *Stake { - coins = coins.Sort() - return &Stake{ - ID: id, - Owner: owner.String(), - Coins: coins, - StartTime: startTime, - StartDistEpoch: startDistEpoch, - } -} - -// OwnerAddress returns stakes owner address. -func (p Stake) OwnerAddress() sdk.AccAddress { - addr, err := sdk.AccAddressFromBech32(p.Owner) - if err != nil { - panic(err) - } - return addr -} - -func (p Stake) SingleCoin() (sdk.Coin, error) { - if len(p.Coins) != 1 { - return sdk.Coin{}, fmt.Errorf("Stake %d has no single coin: %s", p.ID, p.Coins) - } - return p.Coins[0], nil -} - -func (p Stake) ValidateBasic() error { - for _, coin := range p.Coins { - err := dextypes.ValidatePoolDenom(coin.Denom) - if err != nil { - return err - } - } - return nil -} diff --git a/x/incentives/types/stake.pb.go b/x/incentives/types/stake.pb.go deleted file mode 100644 index fd18e7e04..000000000 --- a/x/incentives/types/stake.pb.go +++ /dev/null @@ -1,531 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/stake.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - _ "google.golang.org/protobuf/types/known/timestamppb" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Stake records what coins are staked when by who for the purpose of -// calculating gauge reward distributions. -type Stake struct { - // ID is the "autoincrementing" id of the stake, assigned at creation. - ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` - // owner is the account originating the stake. Only the owner can withdraw - // coins from the stake. - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - // start_time is the time at which the coins in the lock were staked. - StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time,omitempty" yaml:"start_time"` - // coins are the tokens staked, and managed by the module account. - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` - // start_dist_epoch is the dist epoch (defaulting to the day) at which the - // coins in the lock were staked. This is used by distribution logic to filter - // on stakes that have existed for longer than the distribution period (you - // can only qualify for today's rewards if you staked your LP tokens - // yesterday). We use int64 instead of uint64 to make testing easier. - StartDistEpoch int64 `protobuf:"varint,5,opt,name=start_dist_epoch,json=startDistEpoch,proto3" json:"start_dist_epoch,omitempty"` -} - -func (m *Stake) Reset() { *m = Stake{} } -func (m *Stake) String() string { return proto.CompactTextString(m) } -func (*Stake) ProtoMessage() {} -func (*Stake) Descriptor() ([]byte, []int) { - return fileDescriptor_6900551d6712f42b, []int{0} -} -func (m *Stake) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Stake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Stake.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 *Stake) XXX_Merge(src proto.Message) { - xxx_messageInfo_Stake.Merge(m, src) -} -func (m *Stake) XXX_Size() int { - return m.Size() -} -func (m *Stake) XXX_DiscardUnknown() { - xxx_messageInfo_Stake.DiscardUnknown(m) -} - -var xxx_messageInfo_Stake proto.InternalMessageInfo - -func (m *Stake) GetID() uint64 { - if m != nil { - return m.ID - } - return 0 -} - -func (m *Stake) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *Stake) GetStartTime() time.Time { - if m != nil { - return m.StartTime - } - return time.Time{} -} - -func (m *Stake) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -func (m *Stake) GetStartDistEpoch() int64 { - if m != nil { - return m.StartDistEpoch - } - return 0 -} - -func init() { - proto.RegisterType((*Stake)(nil), "neutron.incentives.Stake") -} - -func init() { proto.RegisterFile("neutron/incentives/stake.proto", fileDescriptor_6900551d6712f42b) } - -var fileDescriptor_6900551d6712f42b = []byte{ - // 396 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xb1, 0x6e, 0xdb, 0x30, - 0x10, 0x15, 0xe5, 0xa8, 0x40, 0x98, 0x22, 0x48, 0x85, 0x0c, 0xaa, 0x07, 0x4a, 0xd0, 0x50, 0x68, - 0x68, 0xc8, 0x3a, 0x45, 0x97, 0x8e, 0xaa, 0x3b, 0x04, 0xdd, 0xd4, 0x4e, 0x5d, 0x02, 0x49, 0x61, - 0x15, 0x22, 0x91, 0x4e, 0x10, 0xe9, 0xb4, 0xfe, 0x0b, 0x7f, 0x47, 0x3f, 0xa2, 0xb3, 0x47, 0x8f, - 0x9d, 0xe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e4, 0xc0, 0xc6, 0x8b, 0x75, 0x88, 0xb2, - 0x53, 0x03, 0xe8, 0x31, 0x7e, 0x8e, 0x3d, 0x9d, 0x40, 0x06, 0x27, 0xd1, 0x28, 0x39, 0xbb, 0x7e, - 0x4d, 0x6d, 0x46, 0xaa, 0x33, 0xd2, 0x21, 0x23, 0xfd, 0x04, 0xa2, 0x49, 0xdf, 0x69, 0xad, 0xdf, - 0xeb, 0x30, 0xa9, 0x84, 0xba, 0x9f, 0x15, 0xb4, 0x84, 0x9a, 0x0d, 0x0b, 0xb1, 0x9f, 0x2b, 0x79, - 0xf7, 0xc0, 0xd4, 0xbc, 0xe5, 0xd2, 0x34, 0xc8, 0xcc, 0x4e, 0xf6, 0x13, 0x7c, 0x61, 0x0d, 0xdc, - 0x09, 0xa9, 0x6e, 0x79, 0x0b, 0xe5, 0x7d, 0xe0, 0x45, 0x28, 0x19, 0x65, 0xe7, 0x06, 0x9f, 0x0a, - 0xa9, 0x3e, 0x6b, 0x34, 0xfd, 0xb2, 0xdc, 0x10, 0xb4, 0xda, 0x10, 0xf4, 0x6f, 0x43, 0xd0, 0x62, - 0x4b, 0x9c, 0xd5, 0x96, 0x38, 0x7f, 0xb7, 0xc4, 0xf9, 0x3e, 0x39, 0x12, 0x1d, 0x0e, 0x7a, 0x05, - 0x5d, 0xb5, 0x7f, 0xb3, 0x5f, 0xc7, 0xe7, 0x37, 0x1e, 0x8a, 0x17, 0x66, 0x5f, 0xef, 0x9f, 0x03, - 0x00, 0x00, 0xff, 0xff, 0xad, 0x4f, 0xba, 0xca, 0x21, 0x02, 0x00, 0x00, -} - -func (m *Stake) 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 *Stake) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Stake) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartDistEpoch != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.StartDistEpoch)) - i-- - dAtA[i] = 0x28 - } - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStake(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintStake(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x1a - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintStake(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x12 - } - if m.ID != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintStake(dAtA []byte, offset int, v uint64) int { - offset -= sovStake(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Stake) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovStake(uint64(m.ID)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovStake(uint64(l)) - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) - n += 1 + l + sovStake(uint64(l)) - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovStake(uint64(l)) - } - } - if m.StartDistEpoch != 0 { - n += 1 + sovStake(uint64(m.StartDistEpoch)) - } - return n -} - -func sovStake(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozStake(x uint64) (n int) { - return sovStake(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Stake) 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 ErrIntOverflowStake - } - 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: Stake: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Stake: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - 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 ErrInvalidLengthStake - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStake - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStake - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartDistEpoch", wireType) - } - m.StartDistEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartDistEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipStake(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStake - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipStake(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, ErrIntOverflowStake - } - 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, ErrIntOverflowStake - } - 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, ErrIntOverflowStake - } - 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, ErrInvalidLengthStake - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupStake - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthStake - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthStake = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowStake = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupStake = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/incentives/types/stakes.go b/x/incentives/types/stakes.go deleted file mode 100644 index e2b0240b7..000000000 --- a/x/incentives/types/stakes.go +++ /dev/null @@ -1,16 +0,0 @@ -package types - -import sdk "github.com/cosmos/cosmos-sdk/types" - -type Stakes []*Stake - -func (stakes Stakes) GetCoins() sdk.Coins { - coins := sdk.Coins{} - for _, stake := range stakes { - coinsToAdd := stake.GetCoins() - if !coinsToAdd.Empty() { - coins = coins.Add(coinsToAdd...) - } - } - return coins -} diff --git a/x/incentives/types/tx.pb.go b/x/incentives/types/tx.pb.go deleted file mode 100644 index aa9553cc0..000000000 --- a/x/incentives/types/tx.pb.go +++ /dev/null @@ -1,2713 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/incentives/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "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" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - _ "google.golang.org/protobuf/types/known/durationpb" - _ "google.golang.org/protobuf/types/known/timestamppb" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// MsgCreateGauge creates a gague to distribute rewards to users -type MsgCreateGauge struct { - // is_perpetual shows if it's a perpetual or non-perpetual gauge - // Non-perpetual gauges distribute their tokens equally per epoch while the - // gauge is in the active period. Perpetual gauges distribute all their tokens - // at a single time and only distribute their tokens again once the gauge is - // refilled - IsPerpetual bool `protobuf:"varint,1,opt,name=is_perpetual,json=isPerpetual,proto3" json:"is_perpetual,omitempty"` - // owner is the address of gauge creator, should be the module authority - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - // distribute_to show which lock the gauge should distribute to by time - // duration or by timestamp - DistributeTo QueryCondition `protobuf:"bytes,3,opt,name=distribute_to,json=distributeTo,proto3" json:"distribute_to"` - // coins are coin(s) to be distributed by the gauge - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` - // start_time is the distribution start time - StartTime time.Time `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"timestamp"` - // num_epochs_paid_over is the number of epochs distribution will be completed - // over - NumEpochsPaidOver uint64 `protobuf:"varint,6,opt,name=num_epochs_paid_over,json=numEpochsPaidOver,proto3" json:"num_epochs_paid_over,omitempty"` - // pricing_tick is the price that liquidity within the gauge range will be priced at - PricingTick int64 `protobuf:"varint,7,opt,name=pricing_tick,json=pricingTick,proto3" json:"pricing_tick,omitempty"` -} - -func (m *MsgCreateGauge) Reset() { *m = MsgCreateGauge{} } -func (m *MsgCreateGauge) String() string { return proto.CompactTextString(m) } -func (*MsgCreateGauge) ProtoMessage() {} -func (*MsgCreateGauge) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{0} -} -func (m *MsgCreateGauge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateGauge.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 *MsgCreateGauge) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateGauge.Merge(m, src) -} -func (m *MsgCreateGauge) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateGauge) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateGauge.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateGauge proto.InternalMessageInfo - -func (m *MsgCreateGauge) GetIsPerpetual() bool { - if m != nil { - return m.IsPerpetual - } - return false -} - -func (m *MsgCreateGauge) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *MsgCreateGauge) GetDistributeTo() QueryCondition { - if m != nil { - return m.DistributeTo - } - return QueryCondition{} -} - -func (m *MsgCreateGauge) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -func (m *MsgCreateGauge) GetStartTime() time.Time { - if m != nil { - return m.StartTime - } - return time.Time{} -} - -func (m *MsgCreateGauge) GetNumEpochsPaidOver() uint64 { - if m != nil { - return m.NumEpochsPaidOver - } - return 0 -} - -func (m *MsgCreateGauge) GetPricingTick() int64 { - if m != nil { - return m.PricingTick - } - return 0 -} - -type MsgCreateGaugeResponse struct { -} - -func (m *MsgCreateGaugeResponse) Reset() { *m = MsgCreateGaugeResponse{} } -func (m *MsgCreateGaugeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateGaugeResponse) ProtoMessage() {} -func (*MsgCreateGaugeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{1} -} -func (m *MsgCreateGaugeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateGaugeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateGaugeResponse.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 *MsgCreateGaugeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateGaugeResponse.Merge(m, src) -} -func (m *MsgCreateGaugeResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateGaugeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateGaugeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateGaugeResponse proto.InternalMessageInfo - -// MsgAddToGauge adds coins to a previously created gauge -type MsgAddToGauge struct { - // owner is the gauge owner's address - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - // gauge_id is the ID of gauge that rewards are getting added to - GaugeId uint64 `protobuf:"varint,2,opt,name=gauge_id,json=gaugeId,proto3" json:"gauge_id,omitempty"` - // rewards are the coin(s) to add to gauge - Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"` -} - -func (m *MsgAddToGauge) Reset() { *m = MsgAddToGauge{} } -func (m *MsgAddToGauge) String() string { return proto.CompactTextString(m) } -func (*MsgAddToGauge) ProtoMessage() {} -func (*MsgAddToGauge) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{2} -} -func (m *MsgAddToGauge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAddToGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAddToGauge.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 *MsgAddToGauge) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddToGauge.Merge(m, src) -} -func (m *MsgAddToGauge) XXX_Size() int { - return m.Size() -} -func (m *MsgAddToGauge) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddToGauge.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAddToGauge proto.InternalMessageInfo - -func (m *MsgAddToGauge) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *MsgAddToGauge) GetGaugeId() uint64 { - if m != nil { - return m.GaugeId - } - return 0 -} - -func (m *MsgAddToGauge) GetRewards() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Rewards - } - return nil -} - -type MsgAddToGaugeResponse struct { -} - -func (m *MsgAddToGaugeResponse) Reset() { *m = MsgAddToGaugeResponse{} } -func (m *MsgAddToGaugeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAddToGaugeResponse) ProtoMessage() {} -func (*MsgAddToGaugeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{3} -} -func (m *MsgAddToGaugeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAddToGaugeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAddToGaugeResponse.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 *MsgAddToGaugeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddToGaugeResponse.Merge(m, src) -} -func (m *MsgAddToGaugeResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgAddToGaugeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddToGaugeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAddToGaugeResponse proto.InternalMessageInfo - -type MsgStake struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` -} - -func (m *MsgStake) Reset() { *m = MsgStake{} } -func (m *MsgStake) String() string { return proto.CompactTextString(m) } -func (*MsgStake) ProtoMessage() {} -func (*MsgStake) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{4} -} -func (m *MsgStake) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgStake.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 *MsgStake) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgStake.Merge(m, src) -} -func (m *MsgStake) XXX_Size() int { - return m.Size() -} -func (m *MsgStake) XXX_DiscardUnknown() { - xxx_messageInfo_MsgStake.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgStake proto.InternalMessageInfo - -func (m *MsgStake) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *MsgStake) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -type MsgStakeResponse struct { - ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` -} - -func (m *MsgStakeResponse) Reset() { *m = MsgStakeResponse{} } -func (m *MsgStakeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgStakeResponse) ProtoMessage() {} -func (*MsgStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{5} -} -func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgStakeResponse.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 *MsgStakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgStakeResponse.Merge(m, src) -} -func (m *MsgStakeResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgStakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgStakeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgStakeResponse proto.InternalMessageInfo - -func (m *MsgStakeResponse) GetID() uint64 { - if m != nil { - return m.ID - } - return 0 -} - -type MsgUnstake struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - // If unstake is left empty, this is interpreted as "unstake all" - Unstakes []*MsgUnstake_UnstakeDescriptor `protobuf:"bytes,2,rep,name=unstakes,proto3" json:"unstakes,omitempty"` -} - -func (m *MsgUnstake) Reset() { *m = MsgUnstake{} } -func (m *MsgUnstake) String() string { return proto.CompactTextString(m) } -func (*MsgUnstake) ProtoMessage() {} -func (*MsgUnstake) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{6} -} -func (m *MsgUnstake) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnstake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnstake.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 *MsgUnstake) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnstake.Merge(m, src) -} -func (m *MsgUnstake) XXX_Size() int { - return m.Size() -} -func (m *MsgUnstake) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnstake.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnstake proto.InternalMessageInfo - -func (m *MsgUnstake) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *MsgUnstake) GetUnstakes() []*MsgUnstake_UnstakeDescriptor { - if m != nil { - return m.Unstakes - } - return nil -} - -type MsgUnstake_UnstakeDescriptor struct { - ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` -} - -func (m *MsgUnstake_UnstakeDescriptor) Reset() { *m = MsgUnstake_UnstakeDescriptor{} } -func (m *MsgUnstake_UnstakeDescriptor) String() string { return proto.CompactTextString(m) } -func (*MsgUnstake_UnstakeDescriptor) ProtoMessage() {} -func (*MsgUnstake_UnstakeDescriptor) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{6, 0} -} -func (m *MsgUnstake_UnstakeDescriptor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnstake_UnstakeDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnstake_UnstakeDescriptor.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 *MsgUnstake_UnstakeDescriptor) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnstake_UnstakeDescriptor.Merge(m, src) -} -func (m *MsgUnstake_UnstakeDescriptor) XXX_Size() int { - return m.Size() -} -func (m *MsgUnstake_UnstakeDescriptor) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnstake_UnstakeDescriptor.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnstake_UnstakeDescriptor proto.InternalMessageInfo - -func (m *MsgUnstake_UnstakeDescriptor) GetID() uint64 { - if m != nil { - return m.ID - } - return 0 -} - -func (m *MsgUnstake_UnstakeDescriptor) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -type MsgUnstakeResponse struct { -} - -func (m *MsgUnstakeResponse) Reset() { *m = MsgUnstakeResponse{} } -func (m *MsgUnstakeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUnstakeResponse) ProtoMessage() {} -func (*MsgUnstakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5fe3d35711153e8d, []int{7} -} -func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnstakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnstakeResponse.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 *MsgUnstakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnstakeResponse.Merge(m, src) -} -func (m *MsgUnstakeResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUnstakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnstakeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnstakeResponse proto.InternalMessageInfo - -type MsgUpdateParams struct { - // Authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // 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_5fe3d35711153e8d, []int{8} -} -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: 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_5fe3d35711153e8d, []int{9} -} -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 - -func init() { - proto.RegisterType((*MsgCreateGauge)(nil), "neutron.incentives.MsgCreateGauge") - proto.RegisterType((*MsgCreateGaugeResponse)(nil), "neutron.incentives.MsgCreateGaugeResponse") - proto.RegisterType((*MsgAddToGauge)(nil), "neutron.incentives.MsgAddToGauge") - proto.RegisterType((*MsgAddToGaugeResponse)(nil), "neutron.incentives.MsgAddToGaugeResponse") - proto.RegisterType((*MsgStake)(nil), "neutron.incentives.MsgStake") - proto.RegisterType((*MsgStakeResponse)(nil), "neutron.incentives.MsgStakeResponse") - proto.RegisterType((*MsgUnstake)(nil), "neutron.incentives.MsgUnstake") - proto.RegisterType((*MsgUnstake_UnstakeDescriptor)(nil), "neutron.incentives.MsgUnstake.UnstakeDescriptor") - proto.RegisterType((*MsgUnstakeResponse)(nil), "neutron.incentives.MsgUnstakeResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "neutron.incentives.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.incentives.MsgUpdateParamsResponse") -} - -func init() { proto.RegisterFile("neutron/incentives/tx.proto", fileDescriptor_5fe3d35711153e8d) } - -var fileDescriptor_5fe3d35711153e8d = []byte{ - // 907 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6f, 0xdc, 0x44, - 0x18, 0x8d, 0x77, 0x37, 0xbf, 0xbe, 0x4d, 0x4b, 0x62, 0x02, 0x71, 0x4c, 0xe5, 0xdd, 0x1a, 0x14, - 0x2d, 0x41, 0xb1, 0x9b, 0x20, 0x71, 0xa8, 0xc4, 0xa1, 0x9b, 0x20, 0x14, 0x95, 0x15, 0xa9, 0x1b, - 0x84, 0x54, 0x09, 0x99, 0x59, 0x7b, 0x70, 0x46, 0x89, 0x3d, 0xd6, 0xcc, 0x78, 0x9b, 0x5c, 0x39, - 0x70, 0x80, 0x4b, 0x2f, 0xfc, 0x0f, 0x88, 0x53, 0x0e, 0x5c, 0xe0, 0xc8, 0xa9, 0xc7, 0x8a, 0x13, - 0xa7, 0x14, 0x25, 0x87, 0xdc, 0xfb, 0x17, 0xa0, 0x19, 0xff, 0xd8, 0x4d, 0x9a, 0x6c, 0x8b, 0x04, - 0x5c, 0x62, 0x7b, 0xde, 0xf7, 0x3d, 0xbf, 0x6f, 0xde, 0x1b, 0x67, 0xe1, 0x9d, 0x04, 0x67, 0x82, - 0xd1, 0xc4, 0x25, 0x49, 0x80, 0x13, 0x41, 0x06, 0x98, 0xbb, 0xe2, 0xd0, 0x49, 0x19, 0x15, 0x54, - 0xd7, 0x0b, 0xd0, 0x19, 0x82, 0xe6, 0x62, 0x44, 0x23, 0xaa, 0x60, 0x57, 0xde, 0xe5, 0x95, 0x66, - 0x2b, 0xa2, 0x34, 0x3a, 0xc0, 0xae, 0x7a, 0xea, 0x67, 0xdf, 0xb8, 0x82, 0xc4, 0x98, 0x0b, 0x14, - 0xa7, 0x45, 0x81, 0x15, 0x50, 0x1e, 0x53, 0xee, 0xf6, 0x11, 0xc7, 0xee, 0x60, 0xbd, 0x8f, 0x05, - 0x5a, 0x77, 0x03, 0x4a, 0x92, 0x12, 0xbf, 0x42, 0x47, 0x84, 0xb2, 0x08, 0x8f, 0xc1, 0xb9, 0x40, - 0xfb, 0x15, 0x7e, 0x59, 0x40, 0x98, 0x31, 0x24, 0x08, 0x2d, 0xf9, 0x17, 0x50, 0x4c, 0x12, 0xea, - 0xaa, 0xbf, 0xa5, 0xe6, 0x2b, 0x28, 0x53, 0xc4, 0x50, 0xcc, 0x8b, 0x82, 0xa5, 0x42, 0x73, 0xcc, - 0x23, 0x77, 0xb0, 0x2e, 0x2f, 0x05, 0xb0, 0x9c, 0x03, 0x7e, 0xbe, 0x0d, 0xf9, 0x43, 0x0e, 0xd9, - 0xbf, 0xd5, 0xe1, 0x66, 0x8f, 0x47, 0x9b, 0x0c, 0x23, 0x81, 0x3f, 0x95, 0x03, 0xe8, 0xb7, 0x61, - 0x8e, 0x70, 0x3f, 0xc5, 0x2c, 0xc5, 0x22, 0x43, 0x07, 0x86, 0xd6, 0xd6, 0x3a, 0x33, 0x5e, 0x93, - 0xf0, 0x9d, 0x72, 0x49, 0x5f, 0x81, 0x49, 0xfa, 0x38, 0xc1, 0xcc, 0xa8, 0xb5, 0xb5, 0xce, 0x6c, - 0x77, 0xfe, 0xc5, 0x49, 0x6b, 0xee, 0x08, 0xc5, 0x07, 0x77, 0x6d, 0xb5, 0x6c,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fd, 0xa7, 0xa7, - 0x96, 0xf6, 0xec, 0xd4, 0xd2, 0xfe, 0x3a, 0xb5, 0xb4, 0x27, 0x67, 0xd6, 0xc4, 0xb3, 0x33, 0x6b, - 0xe2, 0xcf, 0x33, 0x6b, 0xe2, 0xd1, 0xfa, 0x48, 0xe6, 0x0b, 0xc2, 0x35, 0xca, 0xa2, 0xf2, 0xde, - 0x3d, 0xbc, 0xf0, 0x0b, 0x45, 0x1e, 0x81, 0xfe, 0x94, 0xfa, 0xff, 0xf1, 0xe1, 0xdf, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x55, 0x20, 0x0f, 0x95, 0xc4, 0x08, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -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. -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 { - // Create an incentive program - CreateGauge(ctx context.Context, in *MsgCreateGauge, opts ...grpc.CallOption) (*MsgCreateGaugeResponse, error) - // Add rewards to an existing incentives program - AddToGauge(ctx context.Context, in *MsgAddToGauge, opts ...grpc.CallOption) (*MsgAddToGaugeResponse, error) - // Deposit LP tokens to the module, qualifying for rewards from gauges - Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) - // Withdraw LP tokens from the module, forfeiting future rewards from gauges - Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) - // Update incentives params - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) CreateGauge(ctx context.Context, in *MsgCreateGauge, opts ...grpc.CallOption) (*MsgCreateGaugeResponse, error) { - out := new(MsgCreateGaugeResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/CreateGauge", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) AddToGauge(ctx context.Context, in *MsgAddToGauge, opts ...grpc.CallOption) (*MsgAddToGaugeResponse, error) { - out := new(MsgAddToGaugeResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/AddToGauge", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) { - out := new(MsgStakeResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/Stake", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) { - out := new(MsgUnstakeResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.Msg/Unstake", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.incentives.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 { - // Create an incentive program - CreateGauge(context.Context, *MsgCreateGauge) (*MsgCreateGaugeResponse, error) - // Add rewards to an existing incentives program - AddToGauge(context.Context, *MsgAddToGauge) (*MsgAddToGaugeResponse, error) - // Deposit LP tokens to the module, qualifying for rewards from gauges - Stake(context.Context, *MsgStake) (*MsgStakeResponse, error) - // Withdraw LP tokens from the module, forfeiting future rewards from gauges - Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error) - // Update incentives params - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) CreateGauge(ctx context.Context, req *MsgCreateGauge) (*MsgCreateGaugeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGauge not implemented") -} -func (*UnimplementedMsgServer) AddToGauge(ctx context.Context, req *MsgAddToGauge) (*MsgAddToGaugeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddToGauge not implemented") -} -func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgStakeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stake not implemented") -} -func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Unstake not implemented") -} -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_CreateGauge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateGauge) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateGauge(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Msg/CreateGauge", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateGauge(ctx, req.(*MsgCreateGauge)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_AddToGauge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddToGauge) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AddToGauge(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Msg/AddToGauge", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddToGauge(ctx, req.(*MsgAddToGauge)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Stake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgStake) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Stake(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Msg/Stake", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Stake(ctx, req.(*MsgStake)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Unstake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUnstake) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Unstake(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/neutron.incentives.Msg/Unstake", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Unstake(ctx, req.(*MsgUnstake)) - } - return interceptor(ctx, in, info, handler) -} - -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: "/neutron.incentives.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: "neutron.incentives.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateGauge", - Handler: _Msg_CreateGauge_Handler, - }, - { - MethodName: "AddToGauge", - Handler: _Msg_AddToGauge_Handler, - }, - { - MethodName: "Stake", - Handler: _Msg_Stake_Handler, - }, - { - MethodName: "Unstake", - Handler: _Msg_Unstake_Handler, - }, - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "neutron/incentives/tx.proto", -} - -func (m *MsgCreateGauge) 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 *MsgCreateGauge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateGauge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PricingTick != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.PricingTick)) - i-- - dAtA[i] = 0x38 - } - if m.NumEpochsPaidOver != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.NumEpochsPaidOver)) - i-- - dAtA[i] = 0x30 - } - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintTx(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x2a - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size, err := m.DistributeTo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x12 - } - if m.IsPerpetual { - i-- - if m.IsPerpetual { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateGaugeResponse) 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 *MsgCreateGaugeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateGaugeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgAddToGauge) 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 *MsgAddToGauge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddToGauge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rewards) > 0 { - for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rewards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.GaugeId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.GaugeId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgAddToGaugeResponse) 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 *MsgAddToGaugeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddToGaugeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgStake) 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 *MsgStake) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgStakeResponse) 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 *MsgStakeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ID != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MsgUnstake) 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 *MsgUnstake) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnstake) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Unstakes) > 0 { - for iNdEx := len(m.Unstakes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Unstakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUnstake_UnstakeDescriptor) 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 *MsgUnstake_UnstakeDescriptor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnstake_UnstakeDescriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.ID != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.ID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MsgUnstakeResponse) 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 *MsgUnstakeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnstakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -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 *MsgCreateGauge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.IsPerpetual { - n += 2 - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.DistributeTo.Size() - n += 1 + l + sovTx(uint64(l)) - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartTime) - n += 1 + l + sovTx(uint64(l)) - if m.NumEpochsPaidOver != 0 { - n += 1 + sovTx(uint64(m.NumEpochsPaidOver)) - } - if m.PricingTick != 0 { - n += 1 + sovTx(uint64(m.PricingTick)) - } - return n -} - -func (m *MsgCreateGaugeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgAddToGauge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.GaugeId != 0 { - n += 1 + sovTx(uint64(m.GaugeId)) - } - if len(m.Rewards) > 0 { - for _, e := range m.Rewards { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgAddToGaugeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgStake) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgStakeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovTx(uint64(m.ID)) - } - return n -} - -func (m *MsgUnstake) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Unstakes) > 0 { - for _, e := range m.Unstakes { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgUnstake_UnstakeDescriptor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ID != 0 { - n += 1 + sovTx(uint64(m.ID)) - } - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgUnstakeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -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 *MsgCreateGauge) 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: MsgCreateGauge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateGauge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPerpetual", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsPerpetual = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributeTo", 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.DistributeTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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 - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumEpochsPaidOver", wireType) - } - m.NumEpochsPaidOver = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumEpochsPaidOver |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PricingTick", wireType) - } - m.PricingTick = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PricingTick |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 *MsgCreateGaugeResponse) 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: MsgCreateGaugeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateGaugeResponse: 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 (m *MsgAddToGauge) 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: MsgAddToGauge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddToGauge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GaugeId", wireType) - } - m.GaugeId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GaugeId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rewards", 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 - } - m.Rewards = append(m.Rewards, types.Coin{}) - if err := m.Rewards[len(m.Rewards)-1].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 *MsgAddToGaugeResponse) 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: MsgAddToGaugeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddToGaugeResponse: 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 (m *MsgStake) 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: MsgStake: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgStake: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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 - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].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 *MsgStakeResponse) 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: MsgStakeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 *MsgUnstake) 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: MsgUnstake: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUnstake: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Unstakes", 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 - } - m.Unstakes = append(m.Unstakes, &MsgUnstake_UnstakeDescriptor{}) - if err := m.Unstakes[len(m.Unstakes)-1].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 *MsgUnstake_UnstakeDescriptor) 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: UnstakeDescriptor: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UnstakeDescriptor: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - m.ID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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 - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].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 *MsgUnstakeResponse) 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: MsgUnstakeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUnstakeResponse: 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 (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") -) From b0edc3518268252a6b2fe81ae90a7fb5ac321ea2 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 2 Nov 2023 21:43:06 +0200 Subject: [PATCH 206/307] bump pfm to 7.0.1 and ibc-go to 7.3.1 --- app/app.go | 19 +++++++++---------- app/proposals_allowlisting.go | 3 ++- go.mod | 4 ++-- go.sum | 9 +++++---- x/interchainqueries/keeper/msg_server.go | 3 +-- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/app.go b/app/app.go index 798cc7f48..aabec59c3 100644 --- a/app/app.go +++ b/app/app.go @@ -9,6 +9,7 @@ import ( "path/filepath" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" "github.com/cosmos/interchain-security/v3/testutil/integration" @@ -146,9 +147,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router" - routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" - routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" + routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" // Block-sdk imports blocksdkabci "github.com/skip-mev/block-sdk/abci" @@ -215,7 +215,7 @@ var ( ), ), ibchooks.AppModuleBasic{}, - router.AppModuleBasic{}, + packetforward.AppModuleBasic{}, auction.AppModuleBasic{}, globalfee.AppModule{}, ) @@ -298,7 +298,7 @@ type App struct { CronKeeper cronkeeper.Keeper RouterKeeper *routerkeeper.Keeper - RouterModule router.AppModule + RouterModule packetforward.AppModule HooksTransferIBCModule *ibchooks.IBCMiddleware HooksICS4Wrapper ibchooks.ICS4Middleware @@ -328,8 +328,8 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool blocksdk.Mempool - MEVLane auctionante.MEVLane + Mempool blocksdk.Mempool + MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -716,9 +716,9 @@ func New( contractManagerModule := contractmanager.NewAppModule(appCodec, app.ContractManagerKeeper) ibcHooksModule := ibchooks.NewAppModule(app.AccountKeeper) - app.RouterModule = router.NewAppModule(app.RouterKeeper) + app.RouterModule = packetforward.NewAppModule(app.RouterKeeper) - ibcStack := router.NewIBCMiddleware( + ibcStack := packetforward.NewIBCMiddleware( app.HooksTransferIBCModule, app.RouterKeeper, 0, @@ -977,7 +977,6 @@ func New( mevLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index a5853cf30..064d3d3d3 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -7,10 +7,11 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" diff --git a/go.mod b/go.mod index a0f9c16f7..8b4329718 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,8 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 - github.com/cosmos/ibc-go/v7 v7.2.0 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 + github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 github.com/gogo/protobuf v1.3.3 diff --git a/go.sum b/go.sum index 1d2952b0f..4b0941ac6 100644 --- a/go.sum +++ b/go.sum @@ -399,10 +399,10 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 h1:n+PjYB3JnbKN+sGmX6khST4xMP+D0UdrMNj7O91fuOg= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= -github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= -github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 h1:8mK4Ha/56P6jkRcLhIYhg/ipWhEuXBtj5O4I6fAi6vg= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1/go.mod h1:GGUJN4LnB3J1Luu4kxTklQLbW69So3QXUndSalB003s= +github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= +github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= 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/interchain-security/v3 v3.1.0 h1:EKDJCIKIDLG45tvKwfoANrRPgqvqfUt/f1TNKx3b7Uo= @@ -1203,6 +1203,7 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= diff --git a/x/interchainqueries/keeper/msg_server.go b/x/interchainqueries/keeper/msg_server.go index 219c07e21..ca9c9ce13 100644 --- a/x/interchainqueries/keeper/msg_server.go +++ b/x/interchainqueries/keeper/msg_server.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "fmt" - "net/url" "strconv" "time" @@ -230,7 +229,7 @@ func (m msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit return nil, errors.Wrapf(types.ErrInvalidSubmittedResult, "KV path from result is not equal to registered query storage prefix: %v != %v", result.StoragePrefix, query.Keys[index].Path) } - path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, url.PathEscape(string(result.Key))) + path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, string(result.Key)) // identify what kind proofs (non-existence proof always has *ics23.CommitmentProof_Nonexist as the first item) we got // and call corresponding method to verify it switch proof.GetProofs()[0].GetProof().(type) { From 06c12a21598da2ffcca1273e72f43e7fd11b0eb3 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 3 Nov 2023 11:25:28 +0200 Subject: [PATCH 207/307] import renamings --- app/app.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/app.go b/app/app.go index aabec59c3..dfdec5c26 100644 --- a/app/app.go +++ b/app/app.go @@ -147,8 +147,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" - routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + pfmkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" // Block-sdk imports blocksdkabci "github.com/skip-mev/block-sdk/abci" @@ -296,7 +296,7 @@ type App struct { ConsumerKeeper ccvconsumerkeeper.Keeper TokenFactoryKeeper *tokenfactorykeeper.Keeper CronKeeper cronkeeper.Keeper - RouterKeeper *routerkeeper.Keeper + RouterKeeper *pfmkeeper.Keeper RouterModule packetforward.AppModule @@ -380,7 +380,7 @@ func New( evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, - feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, + feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, pfmtypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -516,10 +516,10 @@ func New( feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) // RouterKeeper must be created before TransferKeeper - app.RouterKeeper = routerkeeper.NewKeeper( + app.RouterKeeper = pfmkeeper.NewKeeper( appCodec, - app.keys[routertypes.StoreKey], - app.GetSubspace(routertypes.ModuleName), + app.keys[pfmtypes.StoreKey], + app.GetSubspace(pfmtypes.ModuleName), app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, @@ -722,8 +722,8 @@ func New( app.HooksTransferIBCModule, app.RouterKeeper, 0, - routerkeeper.DefaultForwardTransferPacketTimeoutTimestamp, - routerkeeper.DefaultRefundTransferPacketTimeoutTimestamp, + pfmkeeper.DefaultForwardTransferPacketTimeoutTimestamp, + pfmkeeper.DefaultRefundTransferPacketTimeoutTimestamp, ) ibcRouter.AddRoute(icacontrollertypes.SubModuleName, icaControllerStack). @@ -806,7 +806,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ) @@ -837,7 +837,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ) @@ -873,7 +873,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, // after auth keeper - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ) @@ -1229,7 +1229,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) - paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) + paramsKeeper.Subspace(pfmtypes.ModuleName).WithKeyTable(pfmtypes.ParamKeyTable()) paramsKeeper.Subspace(globalfee.ModuleName).WithKeyTable(globalfeetypes.ParamKeyTable()) From 8a160ba2ba040914d54e4cdf6b05e4135dee1521 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 3 Nov 2023 14:55:53 +0300 Subject: [PATCH 208/307] enabled cosmwasm_1_3,cosmwasm_1_4 features --- app/app.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 798cc7f48..46f87b98f 100644 --- a/app/app.go +++ b/app/app.go @@ -328,8 +328,8 @@ type App struct { checkTxHandler mev_lane.CheckTx // Lanes - Mempool blocksdk.Mempool - MEVLane auctionante.MEVLane + Mempool blocksdk.Mempool + MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -615,7 +615,7 @@ func New( // NOTE: we need staking feature here even if there is no staking module anymore because cosmwasm-std in the CosmWasm SDK requires this feature // NOTE: cosmwasm_1_2 feature enables GovMsg::VoteWeighted, which doesn't work with Neutron, because it uses its own custom governance, // however, cosmwasm_1_2 also enables WasmMsg::Instantiate2, which works as one could expect - supportedFeatures := "iterator,stargate,staking,neutron,cosmwasm_1_1,cosmwasm_1_2" + supportedFeatures := "iterator,stargate,staking,neutron,cosmwasm_1_1,cosmwasm_1_2,cosmwasm_1_3,cosmwasm_1_4" // register the proposal types adminRouterLegacy := govv1beta1.NewRouter() @@ -977,7 +977,6 @@ func New( mevLane.SetAnteHandler(anteHandler) baseLane.SetAnteHandler(anteHandler) - app.SetEndBlocker(app.EndBlocker) handler := blocksdkabci.NewProposalHandler( From 0065999d091e42efc712306b21112aeae7e377a1 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 3 Nov 2023 14:38:23 +0200 Subject: [PATCH 209/307] wasmd release --- go.mod | 4 +--- go.sum | 18 ++---------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index 8e0d1a680..6c2ef31d2 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,6 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.30.0 @@ -90,7 +89,6 @@ require ( github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/getsentry/sentry-go v0.23.0 // indirect - github.com/ghodss/yaml v1.0.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.6.0 // indirect @@ -192,7 +190,7 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d - github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.41.1-0.20231024125505-4e32ed6dc344 + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.0 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 diff --git a/go.sum b/go.sum index 18187390a..aefde6738 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,6 @@ 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.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= @@ -506,7 +504,6 @@ github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW 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/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -565,8 +562,6 @@ github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzw 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.1 h1:jxpi2eWoU84wbX9iIEyAeeoac3FLuifZpY9tcNUD9kw= -github.com/golang/glog v1.1.1/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= 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= @@ -666,7 +661,6 @@ github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ 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= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -710,8 +704,6 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf 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= @@ -946,8 +938,8 @@ github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5 h1:96ZjLW github.com/neutron-org/admin-module v0.0.0-20230906150724-9ccb75c61fc5/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5 h1:BUBqUPI5I8rF9ql3RfSCo9XkpZBJPhTZSIWexyxutA4= github.com/neutron-org/cosmos-sdk v0.47.5/go.mod h1:3uZbdGpMOT5usEich5wHANLxz0VbKE9lL1PUq+rzkS4= -github.com/neutron-org/wasmd v0.41.1-0.20231024125505-4e32ed6dc344 h1:5Nl05LZIk13ek1i3fuZlj4rDu47VQrx3DWN1Cn1hIk0= -github.com/neutron-org/wasmd v0.41.1-0.20231024125505-4e32ed6dc344/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= +github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbBUJc= +github.com/neutron-org/wasmd v0.43.0/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -1088,8 +1080,6 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/skip-mev/block-sdk v1.0.0 h1:unp9laTgcePHPRm5TCr0xHmytDmTnqAwlivsn/LqTWI= -github.com/skip-mev/block-sdk v1.0.0/go.mod h1:+yIvnG/K0o/fnWkX4Iw/Wt7m1ofUO67uz0rsbULuSAY= github.com/skip-mev/block-sdk v1.1.0 h1:cYEO/ASxhtasdRStMXhw1cWOjCJ78Z3J+K01n++OHkU= github.com/skip-mev/block-sdk v1.1.0/go.mod h1:G/ryMdo70R1xOJehV1RqDyTH0x7gffwB1wU9MLMzIHE= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= @@ -1788,8 +1778,6 @@ 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 v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY= google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= @@ -1837,8 +1825,6 @@ 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.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= -google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= From a3c1b1e0085940a5d55218c23cccd6138b1daf4c Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 3 Nov 2023 15:04:29 +0200 Subject: [PATCH 210/307] linter --- app/ante_handler.go | 2 +- app/app.go | 10 +++++----- app/upgrades/nextupgrade/upgrades.go | 5 +++-- app/upgrades/nextupgrade/upgrades_test.go | 2 +- x/transfer/module.go | 3 ++- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index 7d67d7d9e..d7821cf1a 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -15,9 +15,9 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" + blocksdk "github.com/skip-mev/block-sdk/block" auctionante "github.com/skip-mev/block-sdk/x/auction/ante" auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" - blocksdk "github.com/skip-mev/block-sdk/block" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC diff --git a/app/app.go b/app/app.go index dc56fda8f..66cc0c850 100644 --- a/app/app.go +++ b/app/app.go @@ -1220,10 +1220,10 @@ func (app *App) RegisterTendermintService(clientCtx client.Context) { func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper { paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) - paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable()) - paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) - paramsKeeper.Subspace(slashingtypes.ModuleName).WithKeyTable(slashingtypes.ParamKeyTable()) - paramsKeeper.Subspace(crisistypes.ModuleName).WithKeyTable(crisistypes.ParamKeyTable()) + paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable()) //nolint:staticcheck + paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) //nolint:staticcheck + paramsKeeper.Subspace(slashingtypes.ModuleName).WithKeyTable(slashingtypes.ParamKeyTable()) //nolint:staticcheck + paramsKeeper.Subspace(crisistypes.ModuleName).WithKeyTable(crisistypes.ParamKeyTable()) //nolint:staticcheck paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable()) paramsKeeper.Subspace(ibchost.ModuleName) paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) @@ -1236,7 +1236,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(ccvconsumertypes.ModuleName).WithKeyTable(ccvconsumertypes.ParamKeyTable()) // MOTE: legacy subspaces for migration sdk47 only - paramsKeeper.Subspace(wasmtypes.ModuleName).WithKeyTable(wasmtypes.ParamKeyTable()) + paramsKeeper.Subspace(wasmtypes.ModuleName).WithKeyTable(wasmtypes.ParamKeyTable()) //nolint:staticcheck paramsKeeper.Subspace(crontypes.StoreKey).WithKeyTable(crontypes.ParamKeyTable()) paramsKeeper.Subspace(feeburnertypes.StoreKey).WithKeyTable(feeburnertypes.ParamKeyTable()) paramsKeeper.Subspace(feetypes.StoreKey).WithKeyTable(feetypes.ParamKeyTable()) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index 92a94d7d6..3ac120b4c 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -2,6 +2,7 @@ package nextupgrade import ( "fmt" + "github.com/cosmos/cosmos-sdk/baseapp" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" @@ -241,7 +242,7 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, return nil } -func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { +func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { //nolint:unparam ctx.Logger().Info("Implementing GlobalFee Params...") // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin @@ -290,7 +291,7 @@ func migrateRewardDenoms(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) erro return nil } -func migrateAdminModule(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { +func migrateAdminModule(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { //nolint:unparam ctx.Logger().Info("Migrating admin module...") keepers.AdminModule.SetProposalID(ctx, 1) diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index 453aae2e1..ebba89756 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -141,7 +141,7 @@ func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { ctx = suite.ChainA.GetContext() ) - //emulate lack of ProposalIDKey like on a real mainnet + // emulate lack of ProposalIDKey like on a real mainnet store := ctx.KVStore(app.GetKey(adminmoduletypes.StoreKey)) store.Delete(adminmoduletypes.ProposalIDKey) diff --git a/x/transfer/module.go b/x/transfer/module.go index 10da394eb..a642920f9 100644 --- a/x/transfer/module.go +++ b/x/transfer/module.go @@ -1,9 +1,10 @@ package transfer import ( + "fmt" + "cosmossdk.io/core/appmodule" "cosmossdk.io/errors" - "fmt" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" From 11166c6268a29ae10808b51a3c62fb8aced89987 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 3 Nov 2023 20:00:26 +0400 Subject: [PATCH 211/307] update wasm key due wasm module update --- app/upgrades/nextupgrade/upgrades.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index a2114cf6f..dec75c001 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -242,9 +242,9 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, store.Set(interchaintxstypes.ParamsKey, bz) wasmStore := ctx.KVStore(wasmStoreKey) - bzWasm := wasmStore.Get(wasmtypes.KeyLastCodeID) + bzWasm := wasmStore.Get(wasmtypes.KeySequenceCodeID) if bzWasm == nil { - return fmt.Errorf("last code ID not found during the upgrade") + return fmt.Errorf("KeySequenceCodeID not found during the upgrade") } store.Set(interchaintxstypes.ICARegistrationFeeFirstCodeID, bzWasm) return nil From ad0c8af7d30977da7a3506f38953784d45d292e9 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 3 Nov 2023 21:59:37 +0200 Subject: [PATCH 212/307] linter --- app/upgrades/nextupgrade/upgrades.go | 2 +- testutil/mocks/contractmanager/types/expected_keepers.go | 2 +- x/interchaintxs/types/keys.go | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/nextupgrade/upgrades.go index dec75c001..9388e549f 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/nextupgrade/upgrades.go @@ -227,7 +227,7 @@ func migrateInterchainQueriesParams(ctx sdk.Context, paramsKeepers paramskeeper. return nil } -func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey storetypes.StoreKey, wasmStoreKey storetypes.StoreKey, codec codec.Codec) error { +func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, storeKey, wasmStoreKey storetypes.StoreKey, codec codec.Codec) error { store := ctx.KVStore(storeKey) var currParams interchaintxstypes.Params subspace, _ := paramsKeepers.GetSubspace(interchaintxstypes.StoreKey) diff --git a/testutil/mocks/contractmanager/types/expected_keepers.go b/testutil/mocks/contractmanager/types/expected_keepers.go index c69dcf649..eb767f134 100644 --- a/testutil/mocks/contractmanager/types/expected_keepers.go +++ b/testutil/mocks/contractmanager/types/expected_keepers.go @@ -20,7 +20,7 @@ type MockWasmKeeper struct { } func (m *MockWasmKeeper) GetContractInfo(ctx types.Context, contractAddress types.AccAddress) *wasmtypes.ContractInfo { - //TODO implement me + // TODO implement me panic("implement me") } diff --git a/x/interchaintxs/types/keys.go b/x/interchaintxs/types/keys.go index 7fd3d09c1..ba4019d86 100644 --- a/x/interchaintxs/types/keys.go +++ b/x/interchaintxs/types/keys.go @@ -24,5 +24,7 @@ const ( prefixICARegistrationFeeFirstCodeID = iota + 2 ) -var ParamsKey = []byte{prefixParamsKey} -var ICARegistrationFeeFirstCodeID = []byte{prefixICARegistrationFeeFirstCodeID} +var ( + ParamsKey = []byte{prefixParamsKey} + ICARegistrationFeeFirstCodeID = []byte{prefixICARegistrationFeeFirstCodeID} +) From c6df465e5f83a811fd1cc98b6ebbf677a55ea21c Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 7 Nov 2023 13:01:56 +0400 Subject: [PATCH 213/307] fix typo in comment --- x/interchaintxs/keeper/msg_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/interchaintxs/keeper/msg_server.go b/x/interchaintxs/keeper/msg_server.go index ace0f34f5..5cde87c49 100644 --- a/x/interchaintxs/keeper/msg_server.go +++ b/x/interchaintxs/keeper/msg_server.go @@ -47,7 +47,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes. return nil, errors.Wrapf(ictxtypes.ErrNotContract, "%s is not a contract address", msg.FromAddress) } - // if contract is stored after [last] upgrade, we're not going charge fees for register ICA + // if contract is stored before [last] upgrade, we're not going charge fees for register ICA if k.sudoKeeper.GetContractInfo(ctx, senderAddr).CodeID >= k.GetICARegistrationFeeFirstCodeID(ctx) { if err := k.ChargeFee(ctx, senderAddr, msg.RegisterFee); err != nil { return nil, errors.Wrapf(err, "failed to charge fees to pay for RegisterInterchainAccount msg: %s", msg) From 7acfccd16a4521112630ca1326e913f22e02f305 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Tue, 7 Nov 2023 15:00:17 +0300 Subject: [PATCH 214/307] add error to Failure proto (no rebuild) --- proto/neutron/contractmanager/failure.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proto/neutron/contractmanager/failure.proto b/proto/neutron/contractmanager/failure.proto index d18386884..d09c7b055 100644 --- a/proto/neutron/contractmanager/failure.proto +++ b/proto/neutron/contractmanager/failure.proto @@ -15,4 +15,6 @@ message Failure { uint64 id = 2; // Serialized MessageSudoCallback with Packet and Ack(if exists) bytes sudo_payload = 3; + // Redacted error response of the sudo call. Full error is emitted as an event + string error = 4; } From 3f84ba0c75fee35087fbfd14ed7e1d0267500100 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 7 Nov 2023 16:08:46 +0400 Subject: [PATCH 215/307] regen-proto --- x/contractmanager/types/failure.pb.go | 69 +++++++++++++++++++++++---- 1 file changed, 61 insertions(+), 8 deletions(-) diff --git a/x/contractmanager/types/failure.pb.go b/x/contractmanager/types/failure.pb.go index 063afa74f..c06816160 100644 --- a/x/contractmanager/types/failure.pb.go +++ b/x/contractmanager/types/failure.pb.go @@ -33,6 +33,8 @@ type Failure struct { Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Serialized MessageSudoCallback with Packet and Ack(if exists) SudoPayload []byte `protobuf:"bytes,3,opt,name=sudo_payload,json=sudoPayload,proto3" json:"sudo_payload,omitempty"` + // Redacted error response of the sudo call. Full error is emitted as an event + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` } func (m *Failure) Reset() { *m = Failure{} } @@ -89,6 +91,13 @@ func (m *Failure) GetSudoPayload() []byte { return nil } +func (m *Failure) GetError() string { + if m != nil { + return m.Error + } + return "" +} + func init() { proto.RegisterType((*Failure)(nil), "neutron.contractmanager.Failure") } @@ -98,22 +107,23 @@ func init() { } var fileDescriptor_fba0c26e85dad46e = []byte{ - // 230 bytes of a gzipped FileDescriptorProto + // 245 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xc9, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0x2d, 0xd2, 0x4f, 0x4b, 0xcc, 0xcc, 0x29, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0x2a, 0xd3, 0x43, 0x53, 0x26, 0xa5, 0x98, 0x99, 0x94, 0xac, 0x9f, 0x9c, 0x5f, 0x94, 0xaa, 0x9f, 0x9c, 0x91, 0x98, 0x97, 0x97, 0x9a, 0xa3, 0x5f, 0x66, 0x08, 0x63, 0x42, - 0xf4, 0x2a, 0x85, 0x71, 0xb1, 0xbb, 0x41, 0x0c, 0x13, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, + 0xf4, 0x2a, 0xe5, 0x70, 0xb1, 0xbb, 0x41, 0x0c, 0x13, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x85, 0xf8, 0xb8, 0x98, 0x32, 0x53, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x82, 0x98, 0x32, 0x53, 0x84, 0x14, 0xb9, 0x78, 0x8a, 0x4b, 0x53, 0xf2, 0xe3, 0x0b, 0x12, 0x2b, 0x73, 0xf2, 0x13, 0x53, 0x24, 0x98, 0x15, 0x18, - 0x35, 0x78, 0x82, 0xb8, 0x41, 0x62, 0x01, 0x10, 0x21, 0xa7, 0x80, 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, 0x32, 0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, - 0xd5, 0x87, 0x3a, 0x5c, 0x37, 0xbf, 0x28, 0x1d, 0xc6, 0xd6, 0xaf, 0xc0, 0xf0, 0x6d, 0x49, 0x65, - 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xc1, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xf7, - 0xe5, 0xa7, 0x15, 0x01, 0x00, 0x00, + 0x35, 0x78, 0x82, 0xb8, 0x41, 0x62, 0x01, 0x10, 0x21, 0x21, 0x11, 0x2e, 0xd6, 0xd4, 0xa2, 0xa2, + 0xfc, 0x22, 0x09, 0x16, 0xb0, 0x51, 0x10, 0x8e, 0x53, 0xc0, 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, 0x99, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, + 0x43, 0xbd, 0xa3, 0x9b, 0x5f, 0x94, 0x0e, 0x63, 0xeb, 0x57, 0x60, 0x84, 0x41, 0x49, 0x65, 0x41, + 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x1b, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x20, 0x77, + 0x4c, 0x2b, 0x01, 0x00, 0x00, } func (m *Failure) Marshal() (dAtA []byte, err error) { @@ -136,6 +146,13 @@ func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintFailure(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x22 + } if len(m.SudoPayload) > 0 { i -= len(m.SudoPayload) copy(dAtA[i:], m.SudoPayload) @@ -186,6 +203,10 @@ func (m *Failure) Size() (n int) { if l > 0 { n += 1 + l + sovFailure(uint64(l)) } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovFailure(uint64(l)) + } return n } @@ -309,6 +330,38 @@ func (m *Failure) Unmarshal(dAtA []byte) error { m.SudoPayload = []byte{} } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFailure + } + 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 ErrInvalidLengthFailure + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFailure + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipFailure(dAtA[iNdEx:]) From ac9156a595076e50208c0cfd6c663d591e8c7506 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 7 Nov 2023 19:25:14 +0200 Subject: [PATCH 216/307] small improvements --- x/dex/keeper/liquidity.go | 11 ++++++----- x/dex/keeper/liquidity_test.go | 7 +++---- x/dex/keeper/multihop_swap.go | 6 ++---- x/gmp/types.go | 2 -- x/incentives/types/stake.go | 9 +-------- 5 files changed, 12 insertions(+), 23 deletions(-) diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index a24ec9bfb..6bae05491 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -3,6 +3,7 @@ package keeper import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -13,7 +14,7 @@ func (k Keeper) Swap( maxAmountTakerDenom math.Int, maxAmountMakerDenom *math.Int, limitPrice *math_utils.PrecDec, -) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool, err error) { +) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool) { useMaxOut := maxAmountMakerDenom != nil var remainingMakerDenom *math.Int if useMaxOut { @@ -72,7 +73,7 @@ func (k Keeper) Swap( ), sdk.NewCoin( tradePairID.MakerDenom, totalMakerDenom, - ), orderFilled, nil + ), orderFilled } func (k Keeper) SwapWithCache( @@ -81,9 +82,9 @@ func (k Keeper) SwapWithCache( maxAmountIn math.Int, maxAmountOut *math.Int, limitPrice *math_utils.PrecDec, -) (totalIn, totalOut sdk.Coin, orderFilled bool, err error) { +) (totalIn, totalOut sdk.Coin, orderFilled bool) { cacheCtx, writeCache := ctx.CacheContext() - totalIn, totalOut, orderFilled, err = k.Swap( + totalIn, totalOut, orderFilled = k.Swap( cacheCtx, tradePairID, maxAmountIn, @@ -93,7 +94,7 @@ func (k Keeper) SwapWithCache( writeCache() - return totalIn, totalOut, orderFilled, err + return totalIn, totalOut, orderFilled } func (k Keeper) SaveLiquidity(sdkCtx sdk.Context, liquidityI types.Liquidity) { diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 0cfdad2b7..1896dc28d 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -5,6 +5,7 @@ import ( sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" ) @@ -590,14 +591,13 @@ func (s *DexTestSuite) swap( ) (coinIn, coinOut sdk.Coin) { tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) s.Assert().NoError(err) - coinIn, coinOut, _, err = s.App.DexKeeper.Swap( + coinIn, coinOut, _ = s.App.DexKeeper.Swap( s.Ctx, tradePairID, sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), nil, nil, ) - s.Assert().NoError(err) return coinIn, coinOut } @@ -609,14 +609,13 @@ func (s *DexTestSuite) swapWithMaxOut( ) (coinIn, coinOut sdk.Coin) { tradePairID := types.MustNewTradePairID(tokenIn, tokenOut) maxAmountOutInt := sdkmath.NewInt(maxAmountOut).Mul(denomMultiple) - coinIn, coinOut, _, err := s.App.DexKeeper.Swap( + coinIn, coinOut, _ = s.App.DexKeeper.Swap( s.Ctx, tradePairID, sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), &maxAmountOutInt, nil, ) - s.Assert().NoError(err) return coinIn, coinOut } diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index 656a76732..0704e83b5 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -4,6 +4,7 @@ import ( sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" ) @@ -143,16 +144,13 @@ func (k Keeper) SwapExactAmountIn(ctx sdk.Context, tradePairID *types.TradePairID, amountIn math.Int, ) (totalOut sdk.Coin, err error) { - _, swapAmountMakerDenom, orderFilled, err := k.Swap( + _, swapAmountMakerDenom, orderFilled := k.Swap( ctx, tradePairID, amountIn, nil, nil, ) - if err != nil { - return sdk.Coin{}, err - } if !orderFilled { return sdk.Coin{}, types.ErrInsufficientLiquidity } diff --git a/x/gmp/types.go b/x/gmp/types.go index ed497174e..63c371ff6 100644 --- a/x/gmp/types.go +++ b/x/gmp/types.go @@ -1,7 +1,5 @@ package gmp -const AxelarGMPAcc = "axelar1dv4u5k73pzqrxlzujxg3qp8kvc3pje7jtdvu72npnt5zhq05ejcsn5qme5" - // Message is attached in ICS20 packet memo field type Message struct { SourceChain string `json:"source_chain"` diff --git a/x/incentives/types/stake.go b/x/incentives/types/stake.go index 7d2507cbb..a830e885c 100644 --- a/x/incentives/types/stake.go +++ b/x/incentives/types/stake.go @@ -1,10 +1,10 @@ package types import ( - "fmt" "time" sdk "github.com/cosmos/cosmos-sdk/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" ) @@ -35,13 +35,6 @@ func (p Stake) OwnerAddress() sdk.AccAddress { return addr } -func (p Stake) SingleCoin() (sdk.Coin, error) { - if len(p.Coins) != 1 { - return sdk.Coin{}, fmt.Errorf("Stake %d has no single coin: %s", p.ID, p.Coins) - } - return p.Coins[0], nil -} - func (p Stake) ValidateBasic() error { for _, coin := range p.Coins { err := dextypes.ValidatePoolDenom(coin.Denom) From c6469edc863dcb4c3f1fcbc947c97c3563426526 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 7 Nov 2023 19:38:36 +0200 Subject: [PATCH 217/307] fix core.go --- x/dex/keeper/core.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index ebe804de0..cab8d8e05 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -7,6 +7,7 @@ import ( sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" @@ -330,16 +331,13 @@ func (k Keeper) PlaceLimitOrderCore( } var orderFilled bool - swapInCoin, swapOutCoin, orderFilled, err = k.SwapWithCache( + swapInCoin, swapOutCoin, orderFilled = k.SwapWithCache( ctx, takerTradePairID, amountIn, maxAmountOut, &limitPrice, ) - if err != nil { - return - } if orderType.IsFoK() && !orderFilled { err = types.ErrFoKLimitOrderNotFilled From 7867e066508272de12e3ca7ed064ff2a6285a438 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 7 Nov 2023 19:57:20 +0200 Subject: [PATCH 218/307] pool validation --- x/dex/types/pool_denom.go | 5 ++--- x/dex/types/pool_denom_test.go | 13 +++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/x/dex/types/pool_denom.go b/x/dex/types/pool_denom.go index 1d3ddbbfc..8ec7547cb 100644 --- a/x/dex/types/pool_denom.go +++ b/x/dex/types/pool_denom.go @@ -21,10 +21,9 @@ func NewPoolDenom(poolID uint64) string { } func ValidatePoolDenom(denom string) error { - if !PoolDenomRegexp.MatchString(denom) { - return ErrInvalidPoolDenom + if _, err := ParsePoolIDFromDenom(denom); err != nil { + return err } - return nil } diff --git a/x/dex/types/pool_denom_test.go b/x/dex/types/pool_denom_test.go index 0d46a66f8..57683a701 100644 --- a/x/dex/types/pool_denom_test.go +++ b/x/dex/types/pool_denom_test.go @@ -3,11 +3,12 @@ package types_test import ( "testing" - . "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" + + . "github.com/neutron-org/neutron/x/dex/types" ) -func TestParsePoolIDFromDenom(t *testing.T) { +func TestValidatePoolDenom(t *testing.T) { for _, tc := range []struct { desc string denom string @@ -26,6 +27,11 @@ func TestParsePoolIDFromDenom(t *testing.T) { expected: 999999999, valid: true, }, + { + desc: "invalid denom long", + denom: "neutron/pool/99999999999999999999", + valid: false, + }, { desc: "invalid format 1", denom: "/neutron/pool/0", @@ -43,12 +49,15 @@ func TestParsePoolIDFromDenom(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { + validateError := ValidatePoolDenom(tc.denom) id, err := ParsePoolIDFromDenom(tc.denom) if tc.valid { require.NoError(t, err) + require.NoError(t, validateError) require.Equal(t, tc.expected, id) } else { require.Error(t, err) + require.Equal(t, err, validateError) } }) } From 4ee803ff75bb8fdddee1ed62fbf8b771d8006347 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Wed, 8 Nov 2023 14:02:24 +0300 Subject: [PATCH 219/307] add events emission and redacted err saving on sudo err --- proto/neutron/contractmanager/query.proto | 17 +- x/contractmanager/client/cli/query.go | 1 + x/contractmanager/client/cli/query_failure.go | 72 +++++++- x/contractmanager/genesis.go | 2 +- x/contractmanager/ibc_middleware.go | 39 ++++- x/contractmanager/keeper/failure.go | 12 +- .../keeper/grpc_query_failure.go | 21 ++- x/contractmanager/types/events.go | 10 ++ x/contractmanager/types/expected_keepers.go | 2 +- x/contractmanager/types/query.pb.go | 156 +++++++++++++----- x/contractmanager/types/query.pb.gw.go | 141 ++++++++++++++++ 11 files changed, 412 insertions(+), 61 deletions(-) create mode 100644 x/contractmanager/types/events.go diff --git a/proto/neutron/contractmanager/query.proto b/proto/neutron/contractmanager/query.proto index 8ce870c3e..973cd15ef 100644 --- a/proto/neutron/contractmanager/query.proto +++ b/proto/neutron/contractmanager/query.proto @@ -16,13 +16,19 @@ service Query { rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/neutron/contractmanager/params"; } - // Queries a Failure by address. + + // Queries a Failure by contract address and failure ID. + rpc AddressFailure(QueryFailuresRequest) returns (QueryFailuresResponse) { + option (google.api.http).get = "/neutron/contractmanager/failures/{address}/{failure_id}"; + } + + // Queries Failures by contract address. rpc AddressFailures(QueryFailuresRequest) returns (QueryFailuresResponse) { option (google.api.http).get = "/neutron/contractmanager/failures/{address}"; } - // Queries a list of Failure items. + // Queries a list of Failures occurred on the network. rpc Failures(QueryFailuresRequest) returns (QueryFailuresResponse) { option (google.api.http).get = "/neutron/contractmanager/failures"; } @@ -39,11 +45,16 @@ message QueryParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; } +// QueryFailuresRequest is request type for the Query/Failures RPC method. message QueryFailuresRequest { + // address of the contract which Sudo call failed. string address = 1; - cosmos.base.query.v1beta1.PageRequest pagination = 2; + // ID of the failure for the given contract. + uint64 failure_id = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 3; } +// QueryFailuresResponse is response type for the Query/Failures RPC method. message QueryFailuresResponse { repeated Failure failures = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; diff --git a/x/contractmanager/client/cli/query.go b/x/contractmanager/client/cli/query.go index a60ce28a2..9562d9550 100644 --- a/x/contractmanager/client/cli/query.go +++ b/x/contractmanager/client/cli/query.go @@ -24,6 +24,7 @@ func GetQueryCmd(_ string) *cobra.Command { cmd.AddCommand(CmdQueryParams()) cmd.AddCommand(CmdFailures()) + cmd.AddCommand(CmdFailureDetails()) // this line is used by starport scaffolding # 1 return cmd diff --git a/x/contractmanager/client/cli/query_failure.go b/x/contractmanager/client/cli/query_failure.go index 0a819dc79..9544e3ebc 100644 --- a/x/contractmanager/client/cli/query_failure.go +++ b/x/contractmanager/client/cli/query_failure.go @@ -1,13 +1,16 @@ package cli import ( - "context" + "fmt" + "strconv" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/version" + "github.com/cosmos/cosmos-sdk/x/auth/tx" + contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" "github.com/spf13/cobra" - - "github.com/neutron-org/neutron/x/contractmanager/types" ) func CmdFailures() *cobra.Command { @@ -23,19 +26,19 @@ func CmdFailures() *cobra.Command { return err } - queryClient := types.NewQueryClient(clientCtx) + queryClient := contractmanagertypes.NewQueryClient(clientCtx) address := "" if len(args) > 0 { address = args[0] } - params := &types.QueryFailuresRequest{ + params := &contractmanagertypes.QueryFailuresRequest{ Address: address, Pagination: pageReq, } - res, err := queryClient.Failures(context.Background(), params) + res, err := queryClient.Failures(cmd.Context(), params) if err != nil { return err } @@ -49,3 +52,60 @@ func CmdFailures() *cobra.Command { return cmd } + +// CmdFailureDetails returns the command handler for the failure's detailed error querying. +func CmdFailureDetails() *cobra.Command { + cmd := &cobra.Command{ + Use: "failure-details [address] [failure-id]", + Short: "Query the detailed error related to a contract's sudo call failure", + Long: "Query the detailed error related to a contract's sudo call failure based on contract's address and failure ID", + Args: cobra.ExactArgs(2), + Example: fmt.Sprintf("%s query failure-details neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0 0", version.AppName), + RunE: func(cmd *cobra.Command, args []string) error { + address := args[0] + failureID, err := strconv.ParseUint(args[1], 10, 64) + if err != nil { + return fmt.Errorf("invalid failure ID %s: expected a uint64: %v", args[1], err) + } + + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := contractmanagertypes.NewQueryClient(clientCtx) + if _, err = queryClient.AddressFailure( + cmd.Context(), + &contractmanagertypes.QueryFailuresRequest{Address: address, FailureId: failureID}, + ); err != nil { + return err + } + + searchEvents := []string{ + fmt.Sprintf("%s.%s='%s'", wasmtypes.EventTypeSudo, wasmtypes.AttributeKeyContractAddr, address), + fmt.Sprintf("%s.%s='%d'", wasmtypes.EventTypeSudo, contractmanagertypes.AttributeKeySudoFailureID, failureID), + } + result, err := tx.QueryTxsByEvents(clientCtx, searchEvents, 1, 1, "") // only a single tx for a pair address+failure_id is expected + if err != nil { + return err + } + + for _, tx := range result.Txs { + for _, event := range tx.Events { + if event.Type == wasmtypes.EventTypeSudo { + for _, attr := range event.Attributes { + if attr.Key == contractmanagertypes.AttributeKeySudoError { + return clientCtx.PrintString(attr.Value) + } + } + } + } + } + return fmt.Errorf("detailed failure error message not found in node events") + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/contractmanager/genesis.go b/x/contractmanager/genesis.go index fd5751c6b..785cadda6 100644 --- a/x/contractmanager/genesis.go +++ b/x/contractmanager/genesis.go @@ -11,7 +11,7 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // Set all the failure for _, elem := range genState.FailuresList { - k.AddContractFailure(ctx, elem.Address, elem.SudoPayload) + k.AddContractFailure(ctx, elem.Address, elem.SudoPayload, elem.Error) } // this line is used by starport scaffolding # genesis/module/init err := k.SetParams(ctx, genState.Params) diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go index 1b3370f86..5ea900776 100644 --- a/x/contractmanager/ibc_middleware.go +++ b/x/contractmanager/ibc_middleware.go @@ -3,8 +3,10 @@ package contractmanager import ( "fmt" - "cosmossdk.io/errors" + errorsmod "cosmossdk.io/errors" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/cometbft/cometbft/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" @@ -34,9 +36,16 @@ func (k SudoLimitWrapper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, // maybe later we'll retrieve actual errors from events resp, err = k.WasmKeeper.Sudo(cacheCtx, contractAddress, msg) }() - if err != nil { - // the contract either returned an error or panicked with `out of gas` - k.contractManager.AddContractFailure(ctx, contractAddress.String(), msg) + if err != nil { // the contract either returned an error or panicked with `out of gas` + failure := k.contractManager.AddContractFailure(ctx, contractAddress.String(), msg, redactError(err).Error()) + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + wasmtypes.EventTypeSudo, + sdk.NewAttribute(wasmtypes.AttributeKeyContractAddr, contractAddress.String()), + sdk.NewAttribute(contractmanagertypes.AttributeKeySudoFailureID, fmt.Sprintf("%d", failure.Id)), + sdk.NewAttribute(contractmanagertypes.AttributeKeySudoError, err.Error()), + ), + }) } else { writeFn() } @@ -60,7 +69,7 @@ func outOfGasRecovery( if !ok || !gasMeter.IsOutOfGas() { panic(r) } - *err = errors.Wrapf(errors.ErrPanic, "%v", r) + *err = errorsmod.Wrapf(errorsmod.ErrPanic, "%v", r) } } @@ -71,3 +80,23 @@ func createCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func()) cacheCtx = cacheCtx.WithGasMeter(gasMeter) return cacheCtx, writeFn } + +// redactError removes non-determenistic details from the error returning just codespace and core +// of the error. Returns full error for system errors. +// +// Copy+paste from https://github.com/neutron-org/wasmd/blob/5b59886e41ed55a7a4a9ae196e34b0852285503d/x/wasm/keeper/msg_dispatcher.go#L175-L190 +func redactError(err error) error { + // Do not redact system errors + // SystemErrors must be created in x/wasm and we can ensure determinism + if wasmvmtypes.ToSystemError(err) != nil { + return err + } + + // FIXME: do we want to hardcode some constant string mappings here as well? + // Or better document them? (SDK error string may change on a patch release to fix wording) + // sdk/11 is out of gas + // sdk/5 is insufficient funds (on bank send) + // (we can theoretically redact less in the future, but this is a first step to safety) + codespace, code, _ := errorsmod.ABCIInfo(err, false) + return fmt.Errorf("codespace: %s, code: %d", codespace, code) +} diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 02e653655..6adc60fd5 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -1,7 +1,7 @@ package keeper import ( - "cosmossdk.io/errors" + errorsmod "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -9,10 +9,11 @@ import ( ) // AddContractFailure adds a specific failure to the store using address as the key -func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte) { +func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte, errMsg string) types.Failure { failure := types.Failure{ Address: address, SudoPayload: sudoPayload, + Error: errMsg, } nextFailureID := k.GetNextFailureIDKey(ctx, failure.GetAddress()) failure.Id = nextFailureID @@ -20,6 +21,7 @@ func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload store := ctx.KVStore(k.storeKey) bz := k.cdc.MustMarshal(&failure) store.Set(types.GetFailureKey(failure.GetAddress(), nextFailureID), bz) + return failure } func (k Keeper) GetNextFailureIDKey(ctx sdk.Context, address string) uint64 { @@ -58,7 +60,7 @@ func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id uint bz := store.Get(key) if bz == nil { - return nil, errors.Wrapf(sdkerrors.ErrKeyNotFound, "no failure found for contractAddress = %s and failureId = %d", contractAddr.String(), id) + return nil, errorsmod.Wrapf(sdkerrors.ErrKeyNotFound, "no failure found for contractAddress = %s and failureId = %d", contractAddr.String(), id) } var res types.Failure k.cdc.MustUnmarshal(bz, &res) @@ -69,11 +71,11 @@ func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id uint // ResubmitFailure tries to call sudo handler for contract with same parameters as initially. func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failure *types.Failure) error { if failure.SudoPayload == nil { - return errors.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without sudo payload; failureId = %d", failure.Id) + return errorsmod.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without sudo payload; failureId = %d", failure.Id) } if _, err := k.wasmKeeper.Sudo(ctx, contractAddr, failure.SudoPayload); err != nil { - return errors.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure; failureId = %d; err = %s", failure.Id, err) + return errorsmod.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure; failureId = %d; err = %s", failure.Id, err) } // Cleanup failure since we resubmitted it successfully diff --git a/x/contractmanager/keeper/grpc_query_failure.go b/x/contractmanager/keeper/grpc_query_failure.go index 87df124fb..188829a71 100644 --- a/x/contractmanager/keeper/grpc_query_failure.go +++ b/x/contractmanager/keeper/grpc_query_failure.go @@ -6,10 +6,9 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" + "github.com/neutron-org/neutron/x/contractmanager/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - - "github.com/neutron-org/neutron/x/contractmanager/types" ) const FailuresQueryMaxLimit uint64 = query.DefaultLimit @@ -58,3 +57,21 @@ func (k Keeper) AddressFailures(c context.Context, req *types.QueryFailuresReque return &types.QueryFailuresResponse{Failures: failures, Pagination: pageRes}, nil } + +func (k Keeper) AddressFailure(c context.Context, req *types.QueryFailuresRequest) (*types.QueryFailuresResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "request field must not be empty") + } + + addr, err := sdk.AccAddressFromBech32(req.Address) + if err != nil { + return nil, status.Errorf(codes.InvalidArgument, "invalid address: %v", err) + } + + resp, err := k.GetFailure(sdk.UnwrapSDKContext(c), addr, req.GetFailureId()) + if err != nil { + return nil, status.Error(codes.InvalidArgument, err.Error()) + } + + return &types.QueryFailuresResponse{Failures: []types.Failure{*resp}}, nil +} diff --git a/x/contractmanager/types/events.go b/x/contractmanager/types/events.go new file mode 100644 index 000000000..36ccef858 --- /dev/null +++ b/x/contractmanager/types/events.go @@ -0,0 +1,10 @@ +package types + +// Contractmanager events +const ( + // AttributeKeySudoError indicates an attribute containing detailed Sudo call error. + AttributeKeySudoError = "error" + // AttributeKeySudoFailureID indicates attribute containing ID of the failure related to an + // error Sudo call. + AttributeKeySudoFailureID = "failure_id" +) diff --git a/x/contractmanager/types/expected_keepers.go b/x/contractmanager/types/expected_keepers.go index f30e346b8..34931862c 100644 --- a/x/contractmanager/types/expected_keepers.go +++ b/x/contractmanager/types/expected_keepers.go @@ -13,6 +13,6 @@ type WasmKeeper interface { } type ContractManagerKeeper interface { - AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte) + AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte, errMsg string) Failure GetParams(ctx sdk.Context) (params Params) } diff --git a/x/contractmanager/types/query.pb.go b/x/contractmanager/types/query.pb.go index a4eea203d..b4d8f4adc 100644 --- a/x/contractmanager/types/query.pb.go +++ b/x/contractmanager/types/query.pb.go @@ -113,9 +113,13 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryFailuresRequest is request type for the Query/Failures RPC method. type QueryFailuresRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + // address of the contract which Sudo call failed. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // ID of the failure for the given contract. + FailureId uint64 `protobuf:"varint,2,opt,name=failure_id,json=failureId,proto3" json:"failure_id,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryFailuresRequest) Reset() { *m = QueryFailuresRequest{} } @@ -158,6 +162,13 @@ func (m *QueryFailuresRequest) GetAddress() string { return "" } +func (m *QueryFailuresRequest) GetFailureId() uint64 { + if m != nil { + return m.FailureId + } + return 0 +} + func (m *QueryFailuresRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination @@ -165,6 +176,7 @@ func (m *QueryFailuresRequest) GetPagination() *query.PageRequest { return nil } +// QueryFailuresResponse is response type for the Query/Failures RPC method. type QueryFailuresResponse struct { Failures []Failure `protobuf:"bytes,1,rep,name=failures,proto3" json:"failures"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -229,37 +241,40 @@ func init() { } var fileDescriptor_f9524a427f219917 = []byte{ - // 475 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x31, 0x6f, 0xd4, 0x30, - 0x1c, 0xc5, 0xe3, 0x16, 0x8e, 0xe2, 0x0e, 0x48, 0xe6, 0x10, 0xa7, 0x08, 0xe5, 0xda, 0x14, 0x68, - 0xa1, 0x9c, 0xad, 0x5e, 0x25, 0x36, 0x06, 0x6e, 0x28, 0xeb, 0x11, 0x31, 0xb1, 0x39, 0xa9, 0x31, - 0x91, 0x1a, 0x3b, 0xb5, 0x1d, 0xd4, 0x0a, 0xb1, 0x30, 0x33, 0x20, 0xc1, 0x47, 0x80, 0xef, 0xd2, - 0xb1, 0x12, 0x42, 0x62, 0x42, 0xe8, 0x8e, 0x0f, 0x82, 0x62, 0x3b, 0xa5, 0x5c, 0x49, 0xaf, 0x53, - 0xb7, 0xbb, 0xe4, 0xfd, 0xdf, 0xfb, 0xf9, 0xfd, 0x1d, 0xb8, 0x26, 0x58, 0x65, 0x94, 0x14, 0x24, - 0x93, 0xc2, 0x28, 0x9a, 0x99, 0x82, 0x0a, 0xca, 0x99, 0x22, 0xfb, 0x15, 0x53, 0x87, 0xb8, 0x54, - 0xd2, 0x48, 0x74, 0xdb, 0x8b, 0xf0, 0x8c, 0x28, 0xec, 0x72, 0xc9, 0xa5, 0xd5, 0x90, 0xfa, 0x97, - 0x93, 0x87, 0x77, 0xb8, 0x94, 0x7c, 0x8f, 0x11, 0x5a, 0xe6, 0x84, 0x0a, 0x21, 0x0d, 0x35, 0xb9, - 0x14, 0xda, 0xbf, 0x7d, 0x98, 0x49, 0x5d, 0x48, 0x4d, 0x52, 0xaa, 0x99, 0x4b, 0x21, 0x6f, 0xb6, - 0x52, 0x66, 0xe8, 0x16, 0x29, 0x29, 0xcf, 0x85, 0x15, 0x7b, 0xed, 0xdd, 0x36, 0xba, 0x92, 0x2a, - 0x5a, 0x34, 0x8e, 0xf7, 0xda, 0x54, 0xaf, 0x68, 0xbe, 0x57, 0x29, 0x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0xdb, 0x49, 0xd3, 0x20, 0x1a, 0x9c, 0x1f, 0x35, 0xb3, 0xe4, 0x10, 0x5f, 0x54, 0xee, 0xd9, 0xb6, - 0x2d, 0xdb, 0x00, 0x6d, 0x92, 0x39, 0x17, 0x59, 0x93, 0xb7, 0xfe, 0xba, 0xbc, 0x43, 0x9f, 0x01, - 0x5c, 0xba, 0x2c, 0xc0, 0x07, 0x16, 0x70, 0x0d, 0xad, 0xce, 0x05, 0x1c, 0x8d, 0x8f, 0x26, 0x11, - 0x38, 0x9e, 0x44, 0xe0, 0xd7, 0x24, 0x02, 0x1f, 0xa7, 0x51, 0x70, 0x3c, 0x8d, 0x82, 0x1f, 0xd3, - 0x28, 0x78, 0xf9, 0x98, 0xe7, 0xe6, 0x75, 0x95, 0xe2, 0x4c, 0x16, 0x8d, 0xcd, 0x40, 0x2a, 0x7e, - 0x62, 0x79, 0x70, 0xc6, 0xd4, 0x1c, 0x96, 0x4c, 0xa7, 0x1d, 0xfb, 0xf5, 0x6e, 0xff, 0x09, 0x00, - 0x00, 0xff, 0xff, 0x05, 0x7b, 0x9c, 0xb2, 0xaa, 0x04, 0x00, 0x00, + // 527 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xc1, 0x6a, 0x13, 0x41, + 0x18, 0xc7, 0x33, 0x69, 0x1b, 0xdb, 0x29, 0x28, 0x8c, 0x11, 0x43, 0xd0, 0x4d, 0xba, 0x55, 0x1b, + 0xad, 0x99, 0xa1, 0x29, 0x88, 0x08, 0x82, 0xe6, 0x50, 0xf1, 0x16, 0x17, 0x4f, 0x5e, 0x64, 0x92, + 0x8c, 0xe3, 0x42, 0x33, 0xb3, 0x9d, 0x99, 0x15, 0x4b, 0xe9, 0xc5, 0x9b, 0xe0, 0x41, 0x50, 0xf0, + 0x05, 0xf4, 0x01, 0x7c, 0x8b, 0x1e, 0x0b, 0x5e, 0x3c, 0x89, 0x24, 0x3e, 0x88, 0x64, 0x66, 0xd2, + 0x36, 0x29, 0xdb, 0xc4, 0x83, 0xbd, 0xed, 0xce, 0xfe, 0xbf, 0xef, 0xff, 0x9b, 0xff, 0xf7, 0xb1, + 0x70, 0x55, 0xb0, 0xd4, 0x28, 0x29, 0x48, 0x47, 0x0a, 0xa3, 0x68, 0xc7, 0xf4, 0xa8, 0xa0, 0x9c, + 0x29, 0xb2, 0x93, 0x32, 0xb5, 0x8b, 0x13, 0x25, 0x8d, 0x44, 0x57, 0xbd, 0x08, 0x4f, 0x88, 0xca, + 0x45, 0x2e, 0xb9, 0xb4, 0x1a, 0x32, 0x7c, 0x72, 0xf2, 0xf2, 0x35, 0x2e, 0x25, 0xdf, 0x66, 0x84, + 0x26, 0x31, 0xa1, 0x42, 0x48, 0x43, 0x4d, 0x2c, 0x85, 0xf6, 0x5f, 0xef, 0x74, 0xa4, 0xee, 0x49, + 0x4d, 0xda, 0x54, 0x33, 0xe7, 0x42, 0xde, 0x6c, 0xb4, 0x99, 0xa1, 0x1b, 0x24, 0xa1, 0x3c, 0x16, + 0x56, 0xec, 0xb5, 0x37, 0xb2, 0xe8, 0x12, 0xaa, 0x68, 0x6f, 0xd4, 0xf1, 0x66, 0x96, 0xea, 0x15, + 0x8d, 0xb7, 0x53, 0xc5, 0x9c, 0x2c, 0x2c, 0x42, 0xf4, 0x6c, 0x68, 0xd7, 0xb2, 0xb5, 0x11, 0xdb, + 0x49, 0x99, 0x36, 0xe1, 0x73, 0x78, 0x79, 0xec, 0x54, 0x27, 0x52, 0x68, 0x86, 0x1e, 0xc2, 0x82, + 0xf3, 0x28, 0x81, 0x2a, 0xa8, 0x2d, 0x37, 0x2a, 0x38, 0x23, 0x03, 0xec, 0x0a, 0x9b, 0xf3, 0x07, + 0xbf, 0x2a, 0xb9, 0xc8, 0x17, 0x85, 0x5f, 0x00, 0x2c, 0xda, 0xb6, 0x5b, 0x0e, 0x61, 0x64, 0x87, + 0x4a, 0xf0,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, 0x0b, 0x5d, 0x47, 0xeb, 0xff, 0x00, 0x8d, + 0x3e, 0x03, 0xb8, 0x78, 0x5e, 0x80, 0xb7, 0x2d, 0xe0, 0x2a, 0x5a, 0x99, 0x0a, 0xd8, 0x6c, 0x1d, + 0xf4, 0x03, 0x70, 0xd8, 0x0f, 0xc0, 0xef, 0x7e, 0x00, 0x3e, 0x0e, 0x82, 0xdc, 0xe1, 0x20, 0xc8, + 0xfd, 0x1c, 0x04, 0xb9, 0x17, 0xf7, 0x78, 0x6c, 0x5e, 0xa7, 0x6d, 0xdc, 0x91, 0xbd, 0x51, 0x9b, + 0xba, 0x54, 0xfc, 0xa8, 0xe5, 0xdb, 0x53, 0x4d, 0xcd, 0x6e, 0xc2, 0x74, 0xbb, 0x60, 0xff, 0x48, + 0x9b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xb5, 0xbb, 0x34, 0x7e, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -276,9 +291,11 @@ const _ = grpc.SupportPackageIsVersion4 type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a Failure by address. + // Queries a Failure by contract address and failure ID. + AddressFailure(ctx context.Context, in *QueryFailuresRequest, opts ...grpc.CallOption) (*QueryFailuresResponse, error) + // Queries Failures by contract address. AddressFailures(ctx context.Context, in *QueryFailuresRequest, opts ...grpc.CallOption) (*QueryFailuresResponse, error) - // Queries a list of Failure items. + // Queries a list of Failures occurred on the network. Failures(ctx context.Context, in *QueryFailuresRequest, opts ...grpc.CallOption) (*QueryFailuresResponse, error) } @@ -299,6 +316,15 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } +func (c *queryClient) AddressFailure(ctx context.Context, in *QueryFailuresRequest, opts ...grpc.CallOption) (*QueryFailuresResponse, error) { + out := new(QueryFailuresResponse) + err := c.cc.Invoke(ctx, "/neutron.contractmanager.Query/AddressFailure", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) AddressFailures(ctx context.Context, in *QueryFailuresRequest, opts ...grpc.CallOption) (*QueryFailuresResponse, error) { out := new(QueryFailuresResponse) err := c.cc.Invoke(ctx, "/neutron.contractmanager.Query/AddressFailures", in, out, opts...) @@ -321,9 +347,11 @@ func (c *queryClient) Failures(ctx context.Context, in *QueryFailuresRequest, op type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a Failure by address. + // Queries a Failure by contract address and failure ID. + AddressFailure(context.Context, *QueryFailuresRequest) (*QueryFailuresResponse, error) + // Queries Failures by contract address. AddressFailures(context.Context, *QueryFailuresRequest) (*QueryFailuresResponse, error) - // Queries a list of Failure items. + // Queries a list of Failures occurred on the network. Failures(context.Context, *QueryFailuresRequest) (*QueryFailuresResponse, error) } @@ -334,6 +362,9 @@ type UnimplementedQueryServer struct { func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } +func (*UnimplementedQueryServer) AddressFailure(ctx context.Context, req *QueryFailuresRequest) (*QueryFailuresResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddressFailure not implemented") +} func (*UnimplementedQueryServer) AddressFailures(ctx context.Context, req *QueryFailuresRequest) (*QueryFailuresResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddressFailures not implemented") } @@ -363,6 +394,24 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +func _Query_AddressFailure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryFailuresRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AddressFailure(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/neutron.contractmanager.Query/AddressFailure", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AddressFailure(ctx, req.(*QueryFailuresRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_AddressFailures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryFailuresRequest) if err := dec(in); err != nil { @@ -407,6 +456,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Params", Handler: _Query_Params_Handler, }, + { + MethodName: "AddressFailure", + Handler: _Query_AddressFailure_Handler, + }, { MethodName: "AddressFailures", Handler: _Query_AddressFailures_Handler, @@ -506,7 +559,12 @@ func (m *QueryFailuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a + } + if m.FailureId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.FailureId)) + i-- + dAtA[i] = 0x10 } if len(m.Address) > 0 { i -= len(m.Address) @@ -608,6 +666,9 @@ func (m *QueryFailuresRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.FailureId != 0 { + n += 1 + sovQuery(uint64(m.FailureId)) + } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) @@ -835,6 +896,25 @@ func (m *QueryFailuresRequest) Unmarshal(dAtA []byte) error { m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailureId", wireType) + } + m.FailureId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FailureId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } diff --git a/x/contractmanager/types/query.pb.gw.go b/x/contractmanager/types/query.pb.gw.go index 53090c4e2..2c201192b 100644 --- a/x/contractmanager/types/query.pb.gw.go +++ b/x/contractmanager/types/query.pb.gw.go @@ -51,6 +51,100 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } +var ( + filter_Query_AddressFailure_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0, "failure_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_Query_AddressFailure_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFailuresRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["failure_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "failure_id") + } + + protoReq.FailureId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "failure_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AddressFailure_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AddressFailure(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AddressFailure_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryFailuresRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["failure_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "failure_id") + } + + protoReq.FailureId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "failure_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AddressFailure_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AddressFailure(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_AddressFailures_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -188,6 +282,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_AddressFailure_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AddressFailure_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AddressFailure_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_AddressFailures_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -295,6 +412,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_AddressFailure_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AddressFailure_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AddressFailure_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_AddressFailures_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -341,6 +478,8 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "contractmanager", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AddressFailure_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "contractmanager", "failures", "address", "failure_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AddressFailures_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "contractmanager", "failures", "address"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Failures_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "contractmanager", "failures"}, "", runtime.AssumeColonVerbOpt(false))) @@ -349,6 +488,8 @@ var ( var ( forward_Query_Params_0 = runtime.ForwardResponseMessage + forward_Query_AddressFailure_0 = runtime.ForwardResponseMessage + forward_Query_AddressFailures_0 = runtime.ForwardResponseMessage forward_Query_Failures_0 = runtime.ForwardResponseMessage From 7f957b0fbc0622b2aa5a88c2c27cbdb8365e009e Mon Sep 17 00:00:00 2001 From: nhpd Date: Wed, 8 Nov 2023 16:02:40 +0400 Subject: [PATCH 220/307] fix: add more multihop validation --- proto/neutron/dex/query.proto | 2 +- proto/neutron/dex/tx.proto | 2 +- x/dex/types/errors.go | 15 +++++ x/dex/types/message_multi_hop_swap.go | 22 ++++++- x/dex/types/message_multi_hop_swap_test.go | 68 +++++++++++++++++++--- 5 files changed, 96 insertions(+), 13 deletions(-) diff --git a/proto/neutron/dex/query.proto b/proto/neutron/dex/query.proto index 9e29261b2..5e1532e2c 100644 --- a/proto/neutron/dex/query.proto +++ b/proto/neutron/dex/query.proto @@ -254,7 +254,7 @@ message QueryEstimateMultiHopSwapRequest { string exitLimitPrice = 5 [(gogoproto.moretags) = "yaml:\"exitLimitPrice\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "exitLimitPrice"]; // If pickBestRoute == true then all routes are run and the route with the best price is chosen - // otherwise, the first succesful route is used. + // otherwise, the first successful route is used. bool pickBestRoute = 6; } diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index 37fcd83ec..e2aa38103 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -176,7 +176,7 @@ message MsgMultiHopSwap { (gogoproto.jsontag) = "exitLimitPrice" ]; // If pickBestRoute == true then all routes are run and the route with the best price is chosen - // otherwise, the first succesful route is used. + // otherwise, the first successful route is used. bool pickBestRoute = 6; } diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index 7f4eaa964..c301f2aea 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -164,4 +164,19 @@ var ( 1149, "Invalid Address", ) + ErrRouteWithoutExitToken = sdkerrors.Register( + ModuleName, + 1150, + "Each route should specify at least two hops - input and output tokens", + ) + ErrCycleInHops = sdkerrors.Register( + ModuleName, + 1151, + "Hops cannot have cycles", + ) + ErrZeroExitPrice = sdkerrors.Register( + ModuleName, + 1152, + "Cannot have negative or zero exit price", + ) ) diff --git a/x/dex/types/message_multi_hop_swap.go b/x/dex/types/message_multi_hop_swap.go index 57375f20f..baf3d92c2 100644 --- a/x/dex/types/message_multi_hop_swap.go +++ b/x/dex/types/message_multi_hop_swap.go @@ -13,7 +13,7 @@ var _ sdk.Msg = &MsgMultiHopSwap{} func NewMsgMultiHopSwap( creator string, - receiever string, + receiver string, routesArr [][]string, amountIn math.Int, exitLimitPrice math_utils.PrecDec, @@ -26,7 +26,7 @@ func NewMsgMultiHopSwap( return &MsgMultiHopSwap{ Creator: creator, - Receiver: receiever, + Receiver: receiver, Routes: routes, AmountIn: amountIn, ExitLimitPrice: exitLimitPrice, @@ -70,6 +70,20 @@ func (msg *MsgMultiHopSwap) ValidateBasic() error { return ErrMissingMultihopRoute } + for _, route := range msg.Routes { + if len(route.Hops) < 2 { + return ErrRouteWithoutExitToken + } + + existingHops := make(map[string]bool, len(route.Hops)) + for _, hop := range route.Hops { + if _, ok := existingHops[hop]; ok { + return ErrCycleInHops + } + existingHops[hop] = true + } + } + expectedExitToken := msg.Routes[0].Hops[len(msg.Routes[0].Hops)-1] for _, route := range msg.Routes[1:] { hops := route.Hops @@ -82,5 +96,9 @@ func (msg *MsgMultiHopSwap) ValidateBasic() error { return ErrZeroSwap } + if !msg.ExitLimitPrice.IsPositive() { + return ErrZeroExitPrice + } + return nil } diff --git a/x/dex/types/message_multi_hop_swap_test.go b/x/dex/types/message_multi_hop_swap_test.go index 87ee40107..3a37389b8 100644 --- a/x/dex/types/message_multi_hop_swap_test.go +++ b/x/dex/types/message_multi_hop_swap_test.go @@ -1,6 +1,7 @@ package types_test import ( + math_utils "github.com/neutron-org/neutron/utils/math" "testing" "cosmossdk.io/math" @@ -20,6 +21,10 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { msg: MsgMultiHopSwap{ Creator: "invalid_address", Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{ + {Hops: []string{"A", "B", "C"}}, + }, + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), }, err: ErrInvalidAddress, }, @@ -28,14 +33,20 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { msg: MsgMultiHopSwap{ Creator: sample.AccAddress(), Receiver: "invalid_address", + Routes: []*MultiHopRoute{ + {Hops: []string{"A", "B", "C"}}, + }, + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), }, err: ErrInvalidAddress, }, { name: "missing route", msg: MsgMultiHopSwap{ - Creator: sample.AccAddress(), - Receiver: sample.AccAddress(), + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{}, + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), }, err: ErrMissingMultihopRoute, }, @@ -48,26 +59,65 @@ func TestMsgMultiHopSwap_ValidateBasic(t *testing.T) { {Hops: []string{"A", "B", "C"}}, {Hops: []string{"A", "B", "Z"}}, }, + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), }, err: ErrMultihopExitTokensMismatch, }, { name: "invalid amountIn", msg: MsgMultiHopSwap{ - Creator: sample.AccAddress(), - Receiver: sample.AccAddress(), - Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, - AmountIn: math.NewInt(-1), + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, + AmountIn: math.NewInt(-1), + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), }, err: ErrZeroSwap, }, { - name: "valid", + name: "cycles in hops", msg: MsgMultiHopSwap{ - Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, Creator: sample.AccAddress(), Receiver: sample.AccAddress(), - AmountIn: math.OneInt(), + Routes: []*MultiHopRoute{ + {Hops: []string{"A", "B", "C"}}, // normal + {Hops: []string{"A", "B", "D", "E", "B", "C"}}, // has cycle + }, + AmountIn: math.OneInt(), + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), + }, + err: ErrCycleInHops, + }, + { + name: "zero exit limit price", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, + AmountIn: math.OneInt(), + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0"), + }, + err: ErrZeroExitPrice, + }, + { + name: "negative exit limit price", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, + AmountIn: math.OneInt(), + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("-0.5"), + }, + err: ErrZeroExitPrice, + }, + { + name: "valid", + msg: MsgMultiHopSwap{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Routes: []*MultiHopRoute{{Hops: []string{"A", "B", "C"}}}, + AmountIn: math.OneInt(), + ExitLimitPrice: math_utils.MustNewPrecDecFromStr("0.9"), }, }, } From bab75054c2f6ee49a9245e0ac62db99fc585219d Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 8 Nov 2023 15:03:27 +0200 Subject: [PATCH 221/307] camelCase -> snake_case --- proto/neutron/dex/deposit_record.proto | 10 +- proto/neutron/dex/genesis.proto | 10 +- .../neutron/dex/limit_order_expiration.proto | 4 +- proto/neutron/dex/limit_order_tranche.proto | 18 +- .../dex/limit_order_tranche_user.proto | 14 +- proto/neutron/dex/pool.proto | 2 +- proto/neutron/dex/pool_metadata.proto | 4 +- proto/neutron/dex/pool_reserves.proto | 12 +- proto/neutron/dex/query.proto | 114 ++-- proto/neutron/dex/tick_liquidity.proto | 4 +- proto/neutron/dex/trade_pair_id.proto | 4 +- proto/neutron/dex/tx.proto | 54 +- .../cli/query_inactive_limit_order_tranche.go | 5 +- x/dex/client/cli/query_limit_order_tranche.go | 7 +- x/dex/client/cli/query_pool.go | 7 +- x/dex/client/cli/query_pool_reserves.go | 7 +- x/dex/client/cli/query_tick_liquidity.go | 5 +- x/dex/genesis_test.go | 15 +- x/dex/keeper/core.go | 9 +- x/dex/keeper/deposit_record.go | 3 +- x/dex/keeper/deposit_record_test.go | 5 +- ...grpc_query_inactive_limit_order_tranche.go | 7 +- ...query_inactive_limit_order_tranche_test.go | 10 +- .../keeper/grpc_query_limit_order_tranche.go | 9 +- .../grpc_query_limit_order_tranche_test.go | 8 +- x/dex/keeper/grpc_query_pool.go | 7 +- x/dex/keeper/grpc_query_pool_metadata_test.go | 4 +- x/dex/keeper/grpc_query_pool_reserves.go | 9 +- x/dex/keeper/grpc_query_pool_reserves_test.go | 8 +- x/dex/keeper/grpc_query_pool_test.go | 12 +- x/dex/keeper/grpc_query_tick_liquidity.go | 5 +- .../keeper/grpc_query_tick_liquidity_test.go | 2 +- x/dex/keeper/grpc_query_user_deposits.go | 7 +- x/dex/keeper/grpc_query_user_deposits_test.go | 19 +- .../integration_placelimitorder_test.go | 3 +- x/dex/keeper/limit_order_expiration_test.go | 3 +- x/dex/keeper/limit_order_tranche.go | 7 +- x/dex/keeper/limit_order_tranche_user.go | 3 +- x/dex/keeper/limit_order_tranche_user_test.go | 11 +- x/dex/keeper/liquidity_test.go | 9 +- x/dex/keeper/msg_server_test.go | 7 +- x/dex/keeper/pool.go | 11 +- x/dex/keeper/pool_metadata.go | 3 +- x/dex/keeper/pool_metadata_test.go | 11 +- x/dex/keeper/pool_test.go | 17 +- x/dex/types/deposit_record.pb.go | 77 +-- x/dex/types/events.go | 4 +- x/dex/types/genesis.go | 6 +- x/dex/types/genesis.pb.go | 63 +-- x/dex/types/genesis_test.go | 37 +- x/dex/types/limit_order_expiration.pb.go | 27 +- x/dex/types/limit_order_tranche.go | 3 +- x/dex/types/limit_order_tranche.pb.go | 112 ++-- x/dex/types/limit_order_tranche_key.go | 4 +- x/dex/types/limit_order_tranche_user.pb.go | 92 ++-- x/dex/types/pool.go | 7 +- x/dex/types/pool.pb.go | 24 +- x/dex/types/pool_metadata.go | 2 +- x/dex/types/pool_metadata.pb.go | 63 +-- x/dex/types/pool_reserves.pb.go | 92 ++-- x/dex/types/pool_reserves_key.go | 7 +- x/dex/types/query.pb.go | 511 +++++++++--------- x/dex/types/query.pb.gw.go | 308 +++++------ x/dex/types/tick_liquidity.pb.go | 28 +- x/dex/types/trade_pair_id.pb.go | 23 +- x/dex/types/tx.pb.go | 239 ++++---- 66 files changed, 1143 insertions(+), 1091 deletions(-) diff --git a/proto/neutron/dex/deposit_record.proto b/proto/neutron/dex/deposit_record.proto index 8504aa8b1..c76a32853 100644 --- a/proto/neutron/dex/deposit_record.proto +++ b/proto/neutron/dex/deposit_record.proto @@ -6,15 +6,15 @@ import "gogoproto/gogo.proto"; import "neutron/dex/pair_id.proto"; message DepositRecord { - PairID pairID = 1; - string sharesOwned = 2 [ + PairID pair_id = 1; + string shares_owned = 2 [ (gogoproto.moretags) = "yaml:\"totalShares\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "totalShares" ]; - int64 centerTickIndex = 3; - int64 lowerTickIndex = 4; - int64 upperTickIndex = 5; + int64 center_tick_index = 3; + int64 lower_tick_index = 4; + int64 upper_tick_index = 5; uint64 fee = 6; } diff --git a/proto/neutron/dex/genesis.proto b/proto/neutron/dex/genesis.proto index 596dc1c4a..ae4e590c2 100644 --- a/proto/neutron/dex/genesis.proto +++ b/proto/neutron/dex/genesis.proto @@ -16,11 +16,11 @@ option go_package = "github.com/neutron-org/neutron/x/dex/types"; // GenesisState defines the dex module's genesis state. message GenesisState { Params params = 1 [(gogoproto.nullable) = false]; - repeated TickLiquidity tickLiquidityList = 2 [(gogoproto.nullable) = true ]; - repeated LimitOrderTranche inactiveLimitOrderTrancheList = 3 [(gogoproto.nullable) = true ]; - repeated LimitOrderTrancheUser limitOrderTrancheUserList = 4 [(gogoproto.nullable) = true ]; - repeated PoolMetadata poolMetadataList = 5 [(gogoproto.nullable) = false]; - uint64 poolCount = 6; + repeated TickLiquidity tick_liquidity_list = 2 [(gogoproto.nullable) = true ]; + repeated LimitOrderTranche inactive_limit_order_tranche_list = 3 [(gogoproto.nullable) = true ]; + repeated LimitOrderTrancheUser limit_order_tranche_user_list = 4 [(gogoproto.nullable) = true ]; + repeated PoolMetadata pool_metadata_list = 5 [(gogoproto.nullable) = false]; + uint64 pool_count = 6; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/neutron/dex/limit_order_expiration.proto b/proto/neutron/dex/limit_order_expiration.proto index 030965cfb..0057de0d8 100644 --- a/proto/neutron/dex/limit_order_expiration.proto +++ b/proto/neutron/dex/limit_order_expiration.proto @@ -8,11 +8,11 @@ import "gogoproto/gogo.proto"; message LimitOrderExpiration { // see limitOrderTranche.proto for details on goodTilDate - google.protobuf.Timestamp expirationTime = 1 [ + google.protobuf.Timestamp expiration_time = 1 [ (gogoproto.stdtime) = true, (gogoproto.nullable) = false ]; - bytes trancheRef = 2; + bytes tranche_ref = 2; } diff --git a/proto/neutron/dex/limit_order_tranche.proto b/proto/neutron/dex/limit_order_tranche.proto index 0f0efc644..df97c11a2 100644 --- a/proto/neutron/dex/limit_order_tranche.proto +++ b/proto/neutron/dex/limit_order_tranche.proto @@ -9,32 +9,32 @@ import "gogoproto/gogo.proto"; import "neutron/dex/pair_id.proto"; message LimitOrderTrancheKey { - TradePairID tradePairID = 1; - int64 tickIndexTakerToMaker = 2; - string trancheKey = 3; + TradePairID trade_pair_id = 1; + int64 tick_index_taker_to_maker = 2; + string tranche_key = 3; } message LimitOrderTranche { LimitOrderTrancheKey key = 1; - string reservesMakerDenom = 2 [ + string reserves_maker_denom = 2 [ (gogoproto.moretags) = "yaml:\"reservesMakerDenom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "reservesMakerDenom" ]; - string reservesTakerDenom = 3 [ + string reserves_taker_denom = 3 [ (gogoproto.moretags) = "yaml:\"reservesTakerDenom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "reservesTakerDenom" ]; - string totalMakerDenom = 4 [ + string total_maker_denom = 4 [ (gogoproto.moretags) = "yaml:\"totalMakerDenom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "totalTokenIn" ]; - string totalTakerDenom = 5 [ + string total_taker_denom = 5 [ (gogoproto.moretags) = "yaml:\"totalTakerDenom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, @@ -46,11 +46,11 @@ message LimitOrderTranche { // JIT orders also use goodTilDate to handle deletion but represent a special case // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live // Order deletion still functions the same and the orders will be deleted at the end of the block - google.protobuf.Timestamp expirationTime = 6 [ + google.protobuf.Timestamp expiration_time = 6 [ (gogoproto.stdtime) = true, (gogoproto.nullable) = true ]; - string priceTakerToMaker = 7 [ + string price_taker_to_maker = 7 [ (gogoproto.moretags) = "yaml:\"priceTakerToMaker\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, diff --git a/proto/neutron/dex/limit_order_tranche_user.proto b/proto/neutron/dex/limit_order_tranche_user.proto index 56b1514d4..8159d48d5 100644 --- a/proto/neutron/dex/limit_order_tranche_user.proto +++ b/proto/neutron/dex/limit_order_tranche_user.proto @@ -7,28 +7,28 @@ import "neutron/dex/trade_pair_id.proto"; import "neutron/dex/tx.proto"; message LimitOrderTrancheUser { - TradePairID tradePairID = 1; - int64 tickIndexTakerToMaker = 2; - string trancheKey = 3; + TradePairID trade_pair_id = 1; + int64 tick_index_taker_to_maker = 2; + string tranche_key = 3; string address = 4; - string sharesOwned = 5 [ + string shares_owned = 5 [ (gogoproto.moretags) = "yaml:\"sharesOwned\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "sharesOwned" ]; - string sharesWithdrawn = 6 [ + string shares_withdrawn = 6 [ (gogoproto.moretags) = "yaml:\"sharesWithdrawn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "sharesWithdrawn" ]; - string sharesCancelled = 7 [ + string shares_cancelled = 7 [ (gogoproto.moretags) = "yaml:\"sharesCancelled\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "sharesCancelled" ]; - LimitOrderType orderType = 8; + LimitOrderType order_type = 8; } diff --git a/proto/neutron/dex/pool.proto b/proto/neutron/dex/pool.proto index 42bf9fac1..5dd76a801 100644 --- a/proto/neutron/dex/pool.proto +++ b/proto/neutron/dex/pool.proto @@ -8,7 +8,7 @@ import "neutron/dex/pool_reserves.proto"; // NOTE: This struct is never actually stored in the KV store. It is merely a convenience wrapper for holding both sides of a pool. message Pool { - uint64 ID = 1; + uint64 id = 1; PoolReserves lower_tick0 = 2; PoolReserves upper_tick1 = 3; } diff --git a/proto/neutron/dex/pool_metadata.proto b/proto/neutron/dex/pool_metadata.proto index 5d8d8c9f3..3e30323ca 100644 --- a/proto/neutron/dex/pool_metadata.proto +++ b/proto/neutron/dex/pool_metadata.proto @@ -6,8 +6,8 @@ option go_package = "github.com/neutron-org/neutron/x/dex/types"; import "neutron/dex/pair_id.proto"; message PoolMetadata { - uint64 ID = 1; + uint64 id = 1; int64 tick = 2; uint64 fee = 3; - PairID pairID = 4; + PairID pair_id = 4; } diff --git a/proto/neutron/dex/pool_reserves.proto b/proto/neutron/dex/pool_reserves.proto index 1b75c64cf..fedb3ba78 100644 --- a/proto/neutron/dex/pool_reserves.proto +++ b/proto/neutron/dex/pool_reserves.proto @@ -6,26 +6,26 @@ import "gogoproto/gogo.proto"; import "neutron/dex/trade_pair_id.proto"; message PoolReservesKey { - TradePairID tradePairID = 1; - int64 TickIndexTakerToMaker = 2; - uint64 Fee = 3; + TradePairID trade_pair_id = 1; + int64 tick_index_taker_to_maker = 2; + uint64 fee = 3; } message PoolReserves { PoolReservesKey key = 1; - string reservesMakerDenom = 2 [ + string reserves_maker_denom = 2 [ (gogoproto.moretags) = "yaml:\"reservesMakerDenom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.jsontag) = "reservesMakerDenom", (gogoproto.nullable) = false ]; - string priceTakerToMaker = 3 [ + string price_taker_to_maker = 3 [ (gogoproto.moretags) = "yaml:\"priceTakerToMaker\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "priceTakerToMaker" ]; - string priceOppositeTakerToMaker = 4 [ + string price_opposite_taker_to_maker = 4 [ (gogoproto.moretags) = "yaml:\"priceOppositeTakerToMaker\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, diff --git a/proto/neutron/dex/query.proto b/proto/neutron/dex/query.proto index 9e29261b2..f168933a0 100644 --- a/proto/neutron/dex/query.proto +++ b/proto/neutron/dex/query.proto @@ -31,7 +31,7 @@ service Query { // Queries a LimitOrderTrancheUser by index. rpc LimitOrderTrancheUser (QueryGetLimitOrderTrancheUserRequest) returns (QueryGetLimitOrderTrancheUserResponse) { - option (google.api.http).get = "/neutron/dex/limit_order_tranche_user/{address}/{trancheKey}"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche_user/{address}/{tranche_key}"; } @@ -48,12 +48,12 @@ service Query { // Queries a LimitOrderTranche by index. rpc LimitOrderTranche (QueryGetLimitOrderTrancheRequest) returns (QueryGetLimitOrderTrancheResponse) { - option (google.api.http).get = "/neutron/dex/limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}"; } // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. rpc LimitOrderTrancheAll (QueryAllLimitOrderTrancheRequest) returns (QueryAllLimitOrderTrancheResponse) { - option (google.api.http).get = "/neutron/dex/limit_order_tranche/{pairID}/{tokenIn}"; + option (google.api.http).get = "/neutron/dex/limit_order_tranche/{pair_id}/{token_in}"; } // Queries a list of UserDeposits items. @@ -63,12 +63,12 @@ service Query { // Queries a list of TickLiquidity items. rpc TickLiquidityAll (QueryAllTickLiquidityRequest) returns (QueryAllTickLiquidityResponse) { - option (google.api.http).get = "/neutron/dex/tick_liquidity/{pairID}/{tokenIn}"; + option (google.api.http).get = "/neutron/dex/tick_liquidity/{pair_id}/{token_in}"; } // Queries a InactiveLimitOrderTranche by index. rpc InactiveLimitOrderTranche (QueryGetInactiveLimitOrderTrancheRequest) returns (QueryGetInactiveLimitOrderTrancheResponse) { - option (google.api.http).get = "/neutron/dex/filled_limit_order_tranche/{pairID}/{tokenIn}/{tickIndex}/{trancheKey}"; + option (google.api.http).get = "/neutron/dex/filled_limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}"; } // Queries a list of InactiveLimitOrderTranche items. @@ -78,12 +78,12 @@ service Query { // Queries a list of PoolReserves items. rpc PoolReservesAll (QueryAllPoolReservesRequest) returns (QueryAllPoolReservesResponse) { - option (google.api.http).get = "/neutron/dex/pool_reserves/{pairID}/{tokenIn}"; + option (google.api.http).get = "/neutron/dex/pool_reserves/{pair_id}/{token_in}"; } // Queries a PoolReserve by index rpc PoolReserves (QueryGetPoolReservesRequest) returns (QueryGetPoolReservesResponse) { - option (google.api.http).get = "/neutron/dex/pool_reserves/{pairID}/{tokenIn}/{tickIndex}/{fee}"; + option (google.api.http).get = "/neutron/dex/pool_reserves/{pair_id}/{token_in}/{tick_index}/{fee}"; } // Queries the simulated result of a multihop swap @@ -98,13 +98,13 @@ service Query { // Queries a pool by pair, tick and fee rpc Pool (QueryPoolRequest) returns (QueryPoolResponse) { - option (google.api.http).get = "/neutron/dex/pool/{pairID}/{tickIndex}/{fee}"; + option (google.api.http).get = "/neutron/dex/pool/{pair_id}/{tick_index}/{fee}"; } // Queries a pool by ID rpc PoolByID (QueryPoolByIDRequest) returns (QueryPoolResponse) { - option (google.api.http).get = "/neutron/dex/pool/{poolID}"; + option (google.api.http).get = "/neutron/dex/pool/{pool_id}"; } @@ -135,11 +135,11 @@ message QueryParamsResponse { message QueryGetLimitOrderTrancheUserRequest { string address = 1; - string trancheKey = 2; + string tranche_key = 2; } message QueryGetLimitOrderTrancheUserResponse { - LimitOrderTrancheUser LimitOrderTrancheUser = 1 [(gogoproto.nullable) = true]; + LimitOrderTrancheUser limit_order_tranche_user = 1 [(gogoproto.nullable) = true]; } message QueryAllLimitOrderTrancheUserRequest { @@ -147,29 +147,29 @@ message QueryAllLimitOrderTrancheUserRequest { } message QueryAllLimitOrderTrancheUserResponse { - repeated LimitOrderTrancheUser LimitOrderTrancheUser = 1 [(gogoproto.nullable) = true]; + repeated LimitOrderTrancheUser limit_order_tranche_user = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetLimitOrderTrancheRequest { - string pairID = 1; - int64 tickIndex = 2; - string tokenIn = 3; - string trancheKey = 4; + string pair_id = 1; + int64 tick_index = 2; + string token_in = 3; + string tranche_key = 4; } message QueryGetLimitOrderTrancheResponse { - LimitOrderTranche LimitOrderTranche = 1 [(gogoproto.nullable) = true]; + LimitOrderTranche limit_order_tranche = 1 [(gogoproto.nullable) = true]; } message QueryAllLimitOrderTrancheRequest { - string pairID = 1; - string tokenIn = 2; + string pair_id = 1; + string token_in = 2; cosmos.base.query.v1beta1.PageRequest pagination = 3; } message QueryAllLimitOrderTrancheResponse { - repeated LimitOrderTranche LimitOrderTranche = 1 [(gogoproto.nullable) = true]; + repeated LimitOrderTranche limit_order_tranche = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -179,7 +179,7 @@ message QueryAllUserDepositsRequest { } message QueryAllUserDepositsResponse { - repeated DepositRecord Deposits = 1 [(gogoproto.nullable) = true]; + repeated DepositRecord deposits = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -189,30 +189,30 @@ message QueryAllUserLimitOrdersRequest { } message QueryAllUserLimitOrdersResponse { - repeated LimitOrderTrancheUser limitOrders = 1 [(gogoproto.nullable) = true]; + repeated LimitOrderTrancheUser limit_orders = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryAllTickLiquidityRequest { - string pairID = 1; - string tokenIn = 2; + string pair_id = 1; + string token_in = 2; cosmos.base.query.v1beta1.PageRequest pagination = 3; } message QueryAllTickLiquidityResponse { - repeated TickLiquidity tickLiquidity = 1 [(gogoproto.nullable) = true]; + repeated TickLiquidity tick_liquidity = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetInactiveLimitOrderTrancheRequest { - string pairID = 1; - string tokenIn = 2; - int64 tickIndex = 3; - string trancheKey = 4; + string pair_id = 1; + string token_in = 2; + int64 tick_index = 3; + string tranche_key = 4; } message QueryGetInactiveLimitOrderTrancheResponse { - LimitOrderTranche inactiveLimitOrderTranche = 1 [(gogoproto.nullable) = true]; + LimitOrderTranche inactive_limit_order_tranche = 1 [(gogoproto.nullable) = true]; } message QueryAllInactiveLimitOrderTrancheRequest { @@ -220,85 +220,85 @@ message QueryAllInactiveLimitOrderTrancheRequest { } message QueryAllInactiveLimitOrderTrancheResponse { - repeated LimitOrderTranche inactiveLimitOrderTranche = 1 [(gogoproto.nullable) = true]; + repeated LimitOrderTranche inactive_limit_order_tranche = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryAllPoolReservesRequest { - string pairID = 1; - string tokenIn = 2; + string pair_id = 1; + string token_in = 2; cosmos.base.query.v1beta1.PageRequest pagination = 3; } message QueryAllPoolReservesResponse { - repeated PoolReserves poolReserves = 1 [(gogoproto.nullable) = true]; + repeated PoolReserves pool_reserves = 1 [(gogoproto.nullable) = true]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetPoolReservesRequest { - string pairID = 1; - string tokenIn = 2; - int64 tickIndex = 3; + string pair_id = 1; + string token_in = 2; + int64 tick_index = 3; uint64 fee = 4; } message QueryGetPoolReservesResponse { - PoolReserves poolReserves = 1 [(gogoproto.nullable) = true]; + PoolReserves pool_reserves = 1 [(gogoproto.nullable) = true]; } message QueryEstimateMultiHopSwapRequest { string creator = 1; string receiver = 2; repeated MultiHopRoute routes = 3; - string amountIn = 4 [(gogoproto.moretags) = "yaml:\"amountIn\"" , (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn" ]; - string exitLimitPrice = 5 [(gogoproto.moretags) = "yaml:\"exitLimitPrice\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "exitLimitPrice"]; + string amount_in = 4 [(gogoproto.moretags) = "yaml:\"amountIn\"" , (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn" ]; + string exit_limit_price = 5 [(gogoproto.moretags) = "yaml:\"exitLimitPrice\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "exitLimitPrice"]; // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. - bool pickBestRoute = 6; + bool pick_best_route = 6; } message QueryEstimateMultiHopSwapResponse { - cosmos.base.v1beta1.Coin coinOut = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "coinOut"]; + cosmos.base.v1beta1.Coin coin_out = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "coinOut"]; } message QueryEstimatePlaceLimitOrderRequest { string creator = 1; string receiver = 2; - string tokenIn = 3; - string tokenOut = 4; - int64 tickIndexInToOut = 5; - string amountIn = 6 [(gogoproto.moretags) = "yaml:\"amountIn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn"]; - LimitOrderType orderType = 7; + string token_in = 3; + string token_out = 4; + int64 tick_index_in_to_out = 5; + string amount_in = 6 [(gogoproto.moretags) = "yaml:\"amountIn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn"]; + LimitOrderType order_type = 7; // expirationTime is only valid iff orderType == GOOD_TIL_TIME. - google.protobuf.Timestamp expirationTime = 8 [(gogoproto.stdtime) = true , (gogoproto.nullable) = true ] ; - string maxAmountOut = 9 [(gogoproto.moretags) = "yaml:\"maxAmountOut\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, (gogoproto.jsontag) = "maxAmountOut"]; + google.protobuf.Timestamp expiration_time = 8 [(gogoproto.stdtime) = true , (gogoproto.nullable) = true ] ; + string maxAmount_out = 9 [(gogoproto.moretags) = "yaml:\"maxAmountOut\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, (gogoproto.jsontag) = "maxAmountOut"]; } message QueryEstimatePlaceLimitOrderResponse { // Total amount of coin used for the limit order // You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin - cosmos.base.v1beta1.Coin totalInCoin = 1 [(gogoproto.moretags) = "yaml:\"totalInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "totalInCoin"]; + cosmos.base.v1beta1.Coin total_in_coin = 1 [(gogoproto.moretags) = "yaml:\"totalInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "totalInCoin"]; // Total amount of the token in that was immediately swapped for swapOutCoin - cosmos.base.v1beta1.Coin swapInCoin = 2 [(gogoproto.moretags) = "yaml:\"swapInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapInCoin"]; + cosmos.base.v1beta1.Coin swap_in_coin = 2 [(gogoproto.moretags) = "yaml:\"swapInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapInCoin"]; // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - cosmos.base.v1beta1.Coin swapOutCoin = 3 [(gogoproto.moretags) = "yaml:\"swapOutCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapOutCoin"]; + cosmos.base.v1beta1.Coin swap_out_coin = 3 [(gogoproto.moretags) = "yaml:\"swapOutCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapOutCoin"]; } message QueryPoolRequest { - string pairID = 1; - int64 tickIndex = 2; + string pair_id = 1; + int64 tick_index = 2; uint64 fee = 3; } message QueryPoolByIDRequest { - uint64 poolID = 1; + uint64 pool_id = 1; } message QueryPoolResponse { @@ -311,7 +311,7 @@ message QueryGetPoolMetadataRequest { } message QueryGetPoolMetadataResponse { - PoolMetadata PoolMetadata = 1 [(gogoproto.nullable) = false]; + PoolMetadata Pool_metadata = 1 [(gogoproto.nullable) = false]; } message QueryAllPoolMetadataRequest { @@ -319,7 +319,7 @@ message QueryAllPoolMetadataRequest { } message QueryAllPoolMetadataResponse { - repeated PoolMetadata PoolMetadata = 1 [(gogoproto.nullable) = false]; + repeated PoolMetadata pool_metadata = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/neutron/dex/tick_liquidity.proto b/proto/neutron/dex/tick_liquidity.proto index c98840832..0671e8cfe 100644 --- a/proto/neutron/dex/tick_liquidity.proto +++ b/proto/neutron/dex/tick_liquidity.proto @@ -9,8 +9,8 @@ import "neutron/dex/pool_reserves.proto"; message TickLiquidity { oneof liquidity { - PoolReserves poolReserves = 1; - LimitOrderTranche limitOrderTranche = 2; + PoolReserves pool_reserves = 1; + LimitOrderTranche limit_order_tranche = 2; } } diff --git a/proto/neutron/dex/trade_pair_id.proto b/proto/neutron/dex/trade_pair_id.proto index cb74f94a3..c2f21e8de 100644 --- a/proto/neutron/dex/trade_pair_id.proto +++ b/proto/neutron/dex/trade_pair_id.proto @@ -4,6 +4,6 @@ package neutron.dex; option go_package = "github.com/neutron-org/neutron/x/dex/types"; message TradePairID { - string makerDenom = 2; - string takerDenom = 3; + string maker_denom = 2; + string taker_denom = 3; } diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index 37fcd83ec..7ea19633e 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -31,33 +31,33 @@ message DepositOptions { message MsgDeposit { string creator = 1; string receiver = 2; - string tokenA = 3; - string tokenB = 4; - repeated string amountsA = 5 [ + string token_a = 3; + string token_b = 4; + repeated string amounts_a = 5 [ (gogoproto.moretags) = "yaml:\"amountsA\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountsA" ]; - repeated string amountsB = 6 [ + repeated string amounts_b = 6 [ (gogoproto.moretags) = "yaml:\"amountsB\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountsB" ]; - repeated int64 tickIndexesAToB = 7; + repeated int64 tick_indexes_a_to_b = 7; repeated uint64 fees = 8; - repeated DepositOptions Options = 9; + repeated DepositOptions options = 9; } message MsgDepositResponse { - repeated string Reserve0Deposited = 1 [ + repeated string reserve0_deposited = 1 [ (gogoproto.moretags) = "yaml:\"reserve0Deposited\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "reserve0Deposited" ]; - repeated string Reserve1Deposited = 2[ + repeated string reserve1_deposited = 2[ (gogoproto.moretags) = "yaml:\"reserve1Deposited\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, @@ -68,15 +68,15 @@ message MsgDepositResponse { message MsgWithdrawal { string creator = 1; string receiver = 2; - string tokenA = 3; - string tokenB = 4; - repeated string sharesToRemove = 5 [ + string token_a = 3; + string token_b = 4; + repeated string shares_to_remove = 5 [ (gogoproto.moretags) = "yaml:\"sharesToRemove\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "sharesToRemove" ]; - repeated int64 tickIndexesAToB = 6; + repeated int64 tick_indexes_a_to_b = 6; repeated uint64 fees = 7; } @@ -95,22 +95,22 @@ enum LimitOrderType{ message MsgPlaceLimitOrder { string creator = 1; string receiver = 2; - string tokenIn = 3; - string tokenOut = 4; - int64 tickIndexInToOut = 5; - string amountIn = 7 [ + string token_in = 3; + string token_out = 4; + int64 tick_index_in_to_out = 5; + string amount_in = 7 [ (gogoproto.moretags) = "yaml:\"amountIn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn" ]; - LimitOrderType orderType = 8; + LimitOrderType order_type = 8; // expirationTime is only valid iff orderType == GOOD_TIL_TIME. - google.protobuf.Timestamp expirationTime = 9 [ + google.protobuf.Timestamp expiration_time = 9 [ (gogoproto.stdtime) = true, (gogoproto.nullable) = true ]; - string maxAmountOut = 10 [ + string max_amount_out = 10 [ (gogoproto.moretags) = "yaml:\"maxAmountOut\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, @@ -121,7 +121,7 @@ message MsgPlaceLimitOrder { message MsgPlaceLimitOrderResponse { string trancheKey = 1; // Total amount of coin used for the limit order - cosmos.base.v1beta1.Coin coinIn = 2 [ + cosmos.base.v1beta1.Coin coin_in = 2 [ (gogoproto.moretags) = "yaml:\"coinIn\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", @@ -130,7 +130,7 @@ message MsgPlaceLimitOrderResponse { // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - cosmos.base.v1beta1.Coin takerCoinOut = 3 [ + cosmos.base.v1beta1.Coin taker_coin_out = 3 [ (gogoproto.moretags) = "yaml:\"takerCoinOut\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", @@ -141,7 +141,7 @@ message MsgPlaceLimitOrderResponse { message MsgWithdrawFilledLimitOrder { string creator = 1; - string trancheKey = 2; + string tranche_key = 2; } message MsgWithdrawFilledLimitOrderResponse { @@ -149,7 +149,7 @@ message MsgWithdrawFilledLimitOrderResponse { message MsgCancelLimitOrder { string creator = 1; - string trancheKey = 2; + string tranche_key = 2; } message MsgCancelLimitOrderResponse { @@ -163,13 +163,13 @@ message MsgMultiHopSwap { string creator = 1; string receiver = 2; repeated MultiHopRoute routes = 3; - string amountIn = 4 [ + string amount_in = 4 [ (gogoproto.moretags) = "yaml:\"amountIn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn" ]; - string exitLimitPrice = 5 [ + string exit_limit_price = 5 [ (gogoproto.moretags) = "yaml:\"exitLimitPrice\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, @@ -177,11 +177,11 @@ message MsgMultiHopSwap { ]; // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. - bool pickBestRoute = 6; + bool pick_best_route = 6; } message MsgMultiHopSwapResponse { - cosmos.base.v1beta1.Coin coinOut = 1 [ + cosmos.base.v1beta1.Coin coin_out = 1 [ (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "coinOut" diff --git a/x/dex/client/cli/query_inactive_limit_order_tranche.go b/x/dex/client/cli/query_inactive_limit_order_tranche.go index f3a29df7e..930d75d49 100644 --- a/x/dex/client/cli/query_inactive_limit_order_tranche.go +++ b/x/dex/client/cli/query_inactive_limit_order_tranche.go @@ -6,9 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cast" "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/x/dex/types" ) func CmdListInactiveLimitOrderTranche() *cobra.Command { @@ -69,7 +70,7 @@ func CmdShowInactiveLimitOrderTranche() *cobra.Command { } params := &types.QueryGetInactiveLimitOrderTrancheRequest{ - PairID: argPairID, + PairId: argPairID, TokenIn: argTokenIn, TickIndex: argTickIndex, TrancheKey: argTrancheKey, diff --git a/x/dex/client/cli/query_limit_order_tranche.go b/x/dex/client/cli/query_limit_order_tranche.go index 8185f0b23..175ac442a 100644 --- a/x/dex/client/cli/query_limit_order_tranche.go +++ b/x/dex/client/cli/query_limit_order_tranche.go @@ -7,8 +7,9 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/x/dex/types" ) func CmdListLimitOrderTranche() *cobra.Command { @@ -32,7 +33,7 @@ func CmdListLimitOrderTranche() *cobra.Command { params := &types.QueryAllLimitOrderTrancheRequest{ Pagination: pageReq, - PairID: argPairID, + PairId: argPairID, TokenIn: argTokenIn, } @@ -77,7 +78,7 @@ func CmdShowLimitOrderTranche() *cobra.Command { } params := &types.QueryGetLimitOrderTrancheRequest{ - PairID: argPairID, + PairId: argPairID, TickIndex: argTickIndexInt, TokenIn: argTokenIn, TrancheKey: argTrancheKey, diff --git a/x/dex/client/cli/query_pool.go b/x/dex/client/cli/query_pool.go index 44c4914fd..861a9021d 100644 --- a/x/dex/client/cli/query_pool.go +++ b/x/dex/client/cli/query_pool.go @@ -7,8 +7,9 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/x/dex/types" ) func CmdShowPool() *cobra.Command { @@ -41,7 +42,7 @@ func CmdShowPool() *cobra.Command { } params := &types.QueryPoolRequest{ - PairID: argPairID, + PairId: argPairID, TickIndex: argTickIndexInt, Fee: argFeeInt, } @@ -77,7 +78,7 @@ func CmdShowPoolByID() *cobra.Command { } params := &types.QueryPoolByIDRequest{ - PoolID: argPoolID, + PoolId: argPoolID, } res, err := queryClient.PoolByID(context.Background(), params) diff --git a/x/dex/client/cli/query_pool_reserves.go b/x/dex/client/cli/query_pool_reserves.go index ce36eb937..7ffcbb471 100644 --- a/x/dex/client/cli/query_pool_reserves.go +++ b/x/dex/client/cli/query_pool_reserves.go @@ -7,8 +7,9 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/x/dex/types" ) func CmdListPoolReserves() *cobra.Command { @@ -29,7 +30,7 @@ func CmdListPoolReserves() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) params := &types.QueryAllPoolReservesRequest{ - PairID: reqPairID, + PairId: reqPairID, TokenIn: reqTokenIn, } @@ -84,7 +85,7 @@ func CmdShowPoolReserves() *cobra.Command { } params := &types.QueryGetPoolReservesRequest{ - PairID: argPairID, + PairId: argPairID, TickIndex: argTickIndexInt, TokenIn: argTokenIn, Fee: argTrancheKeyInt, diff --git a/x/dex/client/cli/query_tick_liquidity.go b/x/dex/client/cli/query_tick_liquidity.go index 2076f5d34..4d86f0483 100644 --- a/x/dex/client/cli/query_tick_liquidity.go +++ b/x/dex/client/cli/query_tick_liquidity.go @@ -5,8 +5,9 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/neutron-org/neutron/x/dex/types" "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/x/dex/types" ) func CmdListTickLiquidity() *cobra.Command { @@ -29,7 +30,7 @@ func CmdListTickLiquidity() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) params := &types.QueryAllTickLiquidityRequest{ - PairID: argPairID, + PairId: argPairID, TokenIn: argTokenIn, Pagination: pageReq, } diff --git a/x/dex/genesis_test.go b/x/dex/genesis_test.go index d315eb455..04d22b246 100644 --- a/x/dex/genesis_test.go +++ b/x/dex/genesis_test.go @@ -4,11 +4,12 @@ import ( "testing" "cosmossdk.io/math" + "github.com/stretchr/testify/require" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/testutil/dex/nullify" "github.com/neutron-org/neutron/x/dex" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/require" ) func TestGenesis(t *testing.T) { @@ -16,7 +17,7 @@ func TestGenesis(t *testing.T) { Params: types.DefaultParams(), LimitOrderTrancheUserList: []*types.LimitOrderTrancheUser{ { - TradePairID: &types.TradePairID{ + TradePairId: &types.TradePairID{ TakerDenom: "TokenA", MakerDenom: "TokenB", }, @@ -28,7 +29,7 @@ func TestGenesis(t *testing.T) { SharesCancelled: math.NewInt(0), }, { - TradePairID: &types.TradePairID{ + TradePairId: &types.TradePairID{ TakerDenom: "TokenB", MakerDenom: "TokenA", }, @@ -73,7 +74,7 @@ func TestGenesis(t *testing.T) { InactiveLimitOrderTrancheList: []*types.LimitOrderTranche{ { Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{ + TradePairId: &types.TradePairID{ TakerDenom: "TokenA", MakerDenom: "TokenB", }, @@ -83,7 +84,7 @@ func TestGenesis(t *testing.T) { }, { Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{ + TradePairId: &types.TradePairID{ TakerDenom: "TokenA", MakerDenom: "TokenB", }, @@ -94,10 +95,10 @@ func TestGenesis(t *testing.T) { }, PoolMetadataList: []types.PoolMetadata{ { - ID: 0, + Id: 0, }, { - ID: 1, + Id: 1, }, }, PoolCount: 2, diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index ebe804de0..bf1e20796 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -7,6 +7,7 @@ import ( sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" @@ -453,11 +454,11 @@ func (k Keeper) CancelLimitOrderCore( return types.ErrActiveLimitOrderNotFound } - tradePairID, tickIndex := trancheUser.TradePairID, trancheUser.TickIndexTakerToMaker + tradePairID, tickIndex := trancheUser.TradePairId, trancheUser.TickIndexTakerToMaker tranche := k.GetLimitOrderTranche( ctx, &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndex, TrancheKey: trancheKey, }, @@ -524,13 +525,13 @@ func (k Keeper) WithdrawFilledLimitOrderCore( return sdkerrors.Wrapf(types.ErrValidLimitOrderTrancheNotFound, "%s", trancheKey) } - tradePairID, tickIndex := trancheUser.TradePairID, trancheUser.TickIndexTakerToMaker + tradePairID, tickIndex := trancheUser.TradePairId, trancheUser.TickIndexTakerToMaker pairID := tradePairID.MustPairID() tranche, wasFilled, found := k.FindLimitOrderTranche( ctx, &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndex, TrancheKey: trancheKey, }, diff --git a/x/dex/keeper/deposit_record.go b/x/dex/keeper/deposit_record.go index 5b2673368..df8e51d47 100644 --- a/x/dex/keeper/deposit_record.go +++ b/x/dex/keeper/deposit_record.go @@ -2,6 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" ) @@ -21,7 +22,7 @@ func (k Keeper) GetAllDepositsForAddress(ctx sdk.Context, addr sdk.AccAddress) [ } fee := utils.MustSafeUint64ToInt64(poolMetadata.Fee) depositRecord := &types.DepositRecord{ - PairID: poolMetadata.PairID, + PairId: poolMetadata.PairId, SharesOwned: sharesMaybe.Amount, CenterTickIndex: poolMetadata.Tick, LowerTickIndex: poolMetadata.Tick - fee, diff --git a/x/dex/keeper/deposit_record_test.go b/x/dex/keeper/deposit_record_test.go index 4bb305d86..77aaa9848 100644 --- a/x/dex/keeper/deposit_record_test.go +++ b/x/dex/keeper/deposit_record_test.go @@ -2,6 +2,7 @@ package keeper_test import ( "cosmossdk.io/math" + "github.com/neutron-org/neutron/x/dex/types" ) @@ -19,7 +20,7 @@ func (s *DexTestSuite) TestGetAllDeposits() { depositList := s.App.DexKeeper.GetAllDepositsForAddress(s.Ctx, s.alice) s.Assert().Equal(2, len(depositList)) s.Assert().Equal(&types.DepositRecord{ - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10_000_000), CenterTickIndex: 0, LowerTickIndex: -1, @@ -29,7 +30,7 @@ func (s *DexTestSuite) TestGetAllDeposits() { depositList[0], ) s.Assert().Equal(&types.DepositRecord{ - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10_002_000), CenterTickIndex: 2, LowerTickIndex: 1, diff --git a/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go b/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go index d33740e2b..b082d76d7 100644 --- a/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go +++ b/x/dex/keeper/grpc_query_inactive_limit_order_tranche.go @@ -6,9 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/neutron-org/neutron/x/dex/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/x/dex/types" ) func (k Keeper) InactiveLimitOrderTrancheAll( @@ -53,7 +54,7 @@ func (k Keeper) InactiveLimitOrderTranche( return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(c) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } @@ -61,7 +62,7 @@ func (k Keeper) InactiveLimitOrderTranche( val, found := k.GetInactiveLimitOrderTranche( ctx, &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: req.TickIndex, TrancheKey: req.TrancheKey, }, diff --git a/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go b/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go index 66a694709..e0f9f68d8 100644 --- a/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go +++ b/x/dex/keeper/grpc_query_inactive_limit_order_tranche_test.go @@ -31,8 +31,8 @@ func TestInactiveLimitOrderTrancheQuerySingle(t *testing.T) { { desc: "First", request: &types.QueryGetInactiveLimitOrderTrancheRequest{ - PairID: msgs[0].Key.TradePairID.MustPairID().CanonicalString(), - TokenIn: msgs[0].Key.TradePairID.MakerDenom, + PairId: msgs[0].Key.TradePairId.MustPairID().CanonicalString(), + TokenIn: msgs[0].Key.TradePairId.MakerDenom, TickIndex: msgs[0].Key.TickIndexTakerToMaker, TrancheKey: msgs[0].Key.TrancheKey, }, @@ -41,8 +41,8 @@ func TestInactiveLimitOrderTrancheQuerySingle(t *testing.T) { { desc: "Second", request: &types.QueryGetInactiveLimitOrderTrancheRequest{ - PairID: msgs[1].Key.TradePairID.MustPairID().CanonicalString(), - TokenIn: msgs[1].Key.TradePairID.MakerDenom, + PairId: msgs[1].Key.TradePairId.MustPairID().CanonicalString(), + TokenIn: msgs[1].Key.TradePairId.MakerDenom, TickIndex: msgs[1].Key.TickIndexTakerToMaker, TrancheKey: msgs[1].Key.TrancheKey, }, @@ -51,7 +51,7 @@ func TestInactiveLimitOrderTrancheQuerySingle(t *testing.T) { { desc: "KeyNotFound", request: &types.QueryGetInactiveLimitOrderTrancheRequest{ - PairID: "TokenZ<>TokenQ", + PairId: "TokenZ<>TokenQ", TokenIn: strconv.Itoa(100000), TickIndex: 100000, TrancheKey: "100000", diff --git a/x/dex/keeper/grpc_query_limit_order_tranche.go b/x/dex/keeper/grpc_query_limit_order_tranche.go index 0665dd481..0a1070814 100644 --- a/x/dex/keeper/grpc_query_limit_order_tranche.go +++ b/x/dex/keeper/grpc_query_limit_order_tranche.go @@ -6,9 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/neutron-org/neutron/x/dex/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/x/dex/types" ) // Returns all ACTIVE limit order tranches for a given pairID/tokenIn combination @@ -24,7 +25,7 @@ func (k Keeper) LimitOrderTrancheAll( var limitOrderTranches []*types.LimitOrderTranche ctx := sdk.UnwrapSDKContext(c) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } @@ -69,7 +70,7 @@ func (k Keeper) LimitOrderTranche( return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(c) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } @@ -77,7 +78,7 @@ func (k Keeper) LimitOrderTranche( val, _, found := k.FindLimitOrderTranche( ctx, &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: req.TickIndex, TrancheKey: req.TrancheKey, }, diff --git a/x/dex/keeper/grpc_query_limit_order_tranche_test.go b/x/dex/keeper/grpc_query_limit_order_tranche_test.go index 448777e57..00e0be2e2 100644 --- a/x/dex/keeper/grpc_query_limit_order_tranche_test.go +++ b/x/dex/keeper/grpc_query_limit_order_tranche_test.go @@ -27,7 +27,7 @@ func TestLimitOrderTrancheQuerySingle(t *testing.T) { { desc: "First", request: &types.QueryGetLimitOrderTrancheRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: msgs[0].Key.TickIndexTakerToMaker, TokenIn: "TokenA", TrancheKey: msgs[0].Key.TrancheKey, @@ -37,7 +37,7 @@ func TestLimitOrderTrancheQuerySingle(t *testing.T) { { desc: "Second", request: &types.QueryGetLimitOrderTrancheRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: msgs[1].Key.TickIndexTakerToMaker, TokenIn: "TokenA", TrancheKey: msgs[1].Key.TrancheKey, @@ -47,7 +47,7 @@ func TestLimitOrderTrancheQuerySingle(t *testing.T) { { desc: "KeyNotFound", request: &types.QueryGetLimitOrderTrancheRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: 0, TokenIn: "TokenA", TrancheKey: "100000", @@ -83,7 +83,7 @@ func TestLimitOrderTrancheQueryPaginated(t *testing.T) { request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllLimitOrderTrancheRequest { return &types.QueryAllLimitOrderTrancheRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TokenIn: "TokenA", Pagination: &query.PageRequest{ Key: next, diff --git a/x/dex/keeper/grpc_query_pool.go b/x/dex/keeper/grpc_query_pool.go index 6783dac68..e831e94fe 100644 --- a/x/dex/keeper/grpc_query_pool.go +++ b/x/dex/keeper/grpc_query_pool.go @@ -4,9 +4,10 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/neutron-org/neutron/x/dex/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/x/dex/types" ) func (k Keeper) Pool( @@ -19,7 +20,7 @@ func (k Keeper) Pool( ctx := sdk.UnwrapSDKContext(goCtx) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } @@ -42,7 +43,7 @@ func (k Keeper) PoolByID( ctx := sdk.UnwrapSDKContext(goCtx) - pool, found := k.GetPoolByID(ctx, req.PoolID) + pool, found := k.GetPoolByID(ctx, req.PoolId) if !found { return nil, status.Error(codes.NotFound, "not found") } diff --git a/x/dex/keeper/grpc_query_pool_metadata_test.go b/x/dex/keeper/grpc_query_pool_metadata_test.go index 88f61d2da..f46241d0b 100644 --- a/x/dex/keeper/grpc_query_pool_metadata_test.go +++ b/x/dex/keeper/grpc_query_pool_metadata_test.go @@ -26,12 +26,12 @@ func TestPoolMetadataQuerySingle(t *testing.T) { }{ { desc: "First", - request: &types.QueryGetPoolMetadataRequest{Id: msgs[0].ID}, + request: &types.QueryGetPoolMetadataRequest{Id: msgs[0].Id}, response: &types.QueryGetPoolMetadataResponse{PoolMetadata: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetPoolMetadataRequest{Id: msgs[1].ID}, + request: &types.QueryGetPoolMetadataRequest{Id: msgs[1].Id}, response: &types.QueryGetPoolMetadataResponse{PoolMetadata: msgs[1]}, }, { diff --git a/x/dex/keeper/grpc_query_pool_reserves.go b/x/dex/keeper/grpc_query_pool_reserves.go index 927018c01..057c62801 100644 --- a/x/dex/keeper/grpc_query_pool_reserves.go +++ b/x/dex/keeper/grpc_query_pool_reserves.go @@ -6,9 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/neutron-org/neutron/x/dex/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/x/dex/types" ) func (k Keeper) PoolReservesAll( @@ -21,7 +22,7 @@ func (k Keeper) PoolReservesAll( ctx := sdk.UnwrapSDKContext(goCtx) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } @@ -67,14 +68,14 @@ func (k Keeper) PoolReserves( return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(goCtx) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } tradePairID := types.NewTradePairIDFromMaker(pairID, req.TokenIn) poolReservesID := &types.PoolReservesKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: req.TickIndex, Fee: req.Fee, } diff --git a/x/dex/keeper/grpc_query_pool_reserves_test.go b/x/dex/keeper/grpc_query_pool_reserves_test.go index 60d197dd4..8bda9f699 100644 --- a/x/dex/keeper/grpc_query_pool_reserves_test.go +++ b/x/dex/keeper/grpc_query_pool_reserves_test.go @@ -27,7 +27,7 @@ func TestPoolReservesQuerySingle(t *testing.T) { { desc: "First", request: &types.QueryGetPoolReservesRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: msgs[0].Key.TickIndexTakerToMaker, TokenIn: "TokenA", Fee: msgs[0].Key.Fee, @@ -37,7 +37,7 @@ func TestPoolReservesQuerySingle(t *testing.T) { { desc: "Second", request: &types.QueryGetPoolReservesRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: msgs[1].Key.TickIndexTakerToMaker, TokenIn: "TokenA", Fee: msgs[1].Key.Fee, @@ -47,7 +47,7 @@ func TestPoolReservesQuerySingle(t *testing.T) { { desc: "KeyNotFound", request: &types.QueryGetPoolReservesRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: 0, TokenIn: "TokenA", Fee: 100000, @@ -83,7 +83,7 @@ func TestPoolReservesQueryPaginated(t *testing.T) { request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllPoolReservesRequest { return &types.QueryAllPoolReservesRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TokenIn: "TokenA", Pagination: &query.PageRequest{ Key: next, diff --git a/x/dex/keeper/grpc_query_pool_test.go b/x/dex/keeper/grpc_query_pool_test.go index 634df80dd..909bcf700 100644 --- a/x/dex/keeper/grpc_query_pool_test.go +++ b/x/dex/keeper/grpc_query_pool_test.go @@ -26,7 +26,7 @@ func TestPoolQuerySingle(t *testing.T) { { desc: "First", request: &types.QueryPoolRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: msgs[0].CenterTickIndex(), Fee: msgs[0].Fee(), }, @@ -35,7 +35,7 @@ func TestPoolQuerySingle(t *testing.T) { { desc: "Second", request: &types.QueryPoolRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: msgs[1].CenterTickIndex(), Fee: msgs[1].Fee(), }, @@ -44,7 +44,7 @@ func TestPoolQuerySingle(t *testing.T) { { desc: "KeyNotFound", request: &types.QueryPoolRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TickIndex: 0, Fee: 100000, }, @@ -83,21 +83,21 @@ func TestPoolQueryByID(t *testing.T) { { desc: "First", request: &types.QueryPoolByIDRequest{ - PoolID: 0, + PoolId: 0, }, response: &types.QueryPoolResponse{Pool: msgs[0]}, }, { desc: "Second", request: &types.QueryPoolByIDRequest{ - PoolID: 1, + PoolId: 1, }, response: &types.QueryPoolResponse{Pool: msgs[1]}, }, { desc: "KeyNotFound", request: &types.QueryPoolByIDRequest{ - PoolID: 100, + PoolId: 100, }, err: status.Error(codes.NotFound, "not found"), }, diff --git a/x/dex/keeper/grpc_query_tick_liquidity.go b/x/dex/keeper/grpc_query_tick_liquidity.go index 6da6a9640..4c89b8c5d 100644 --- a/x/dex/keeper/grpc_query_tick_liquidity.go +++ b/x/dex/keeper/grpc_query_tick_liquidity.go @@ -6,9 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/neutron-org/neutron/x/dex/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + + "github.com/neutron-org/neutron/x/dex/types" ) // NOTE: For single queries of tick liquidity use explicty typed queries @@ -25,7 +26,7 @@ func (k Keeper) TickLiquidityAll( var tickLiquidities []*types.TickLiquidity ctx := sdk.UnwrapSDKContext(c) - pairID, err := types.NewPairIDFromCanonicalString(req.PairID) + pairID, err := types.NewPairIDFromCanonicalString(req.PairId) if err != nil { return nil, err } diff --git a/x/dex/keeper/grpc_query_tick_liquidity_test.go b/x/dex/keeper/grpc_query_tick_liquidity_test.go index 0de6968b1..eedeaa47e 100644 --- a/x/dex/keeper/grpc_query_tick_liquidity_test.go +++ b/x/dex/keeper/grpc_query_tick_liquidity_test.go @@ -20,7 +20,7 @@ func TestTickLiquidityQueryPaginated(t *testing.T) { request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllTickLiquidityRequest { return &types.QueryAllTickLiquidityRequest{ - PairID: "TokenA<>TokenB", + PairId: "TokenA<>TokenB", TokenIn: "TokenA", Pagination: &query.PageRequest{ Key: next, diff --git a/x/dex/keeper/grpc_query_user_deposits.go b/x/dex/keeper/grpc_query_user_deposits.go index a94fe3ff1..81a6b1cc1 100644 --- a/x/dex/keeper/grpc_query_user_deposits.go +++ b/x/dex/keeper/grpc_query_user_deposits.go @@ -4,11 +4,12 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "github.com/neutron-org/neutron/utils" "github.com/neutron-org/neutron/x/dex/types" dexutils "github.com/neutron-org/neutron/x/dex/utils" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" ) func (k Keeper) UserDepositsAll( @@ -47,7 +48,7 @@ func (k Keeper) UserDepositsAll( if accumulate { depositRecord := &types.DepositRecord{ - PairID: poolMetadata.PairID, + PairId: poolMetadata.PairId, SharesOwned: poolCoinMaybe.Amount, CenterTickIndex: poolMetadata.Tick, LowerTickIndex: poolMetadata.Tick - fee, diff --git a/x/dex/keeper/grpc_query_user_deposits_test.go b/x/dex/keeper/grpc_query_user_deposits_test.go index 871a6dcf0..1db6fdda0 100644 --- a/x/dex/keeper/grpc_query_user_deposits_test.go +++ b/x/dex/keeper/grpc_query_user_deposits_test.go @@ -7,19 +7,20 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" + "github.com/stretchr/testify/require" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + neutronapp "github.com/neutron-org/neutron/app" "github.com/neutron-org/neutron/testutil" keepertest "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" ) func simulateDeposit(ctx sdk.Context, app *neutronapp.App, addr sdk.AccAddress, deposit *types.DepositRecord) { // NOTE: For simplicyt sake, we are not actually doing a deposit, we are just initializing // the pool and adding the poolDenom to the users account - pool, err := app.DexKeeper.InitPool(ctx, deposit.PairID, deposit.CenterTickIndex, deposit.Fee) + pool, err := app.DexKeeper.InitPool(ctx, deposit.PairId, deposit.CenterTickIndex, deposit.Fee) if err != nil { panic("Cannot init pool") } @@ -35,7 +36,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { addr := sdk.AccAddress([]byte("test_addr")) msgs := []*types.DepositRecord{ { - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10), CenterTickIndex: 2, LowerTickIndex: 1, @@ -43,7 +44,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { Fee: 1, }, { - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10), CenterTickIndex: 3, LowerTickIndex: 2, @@ -51,7 +52,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { Fee: 1, }, { - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10), CenterTickIndex: 4, LowerTickIndex: 3, @@ -59,7 +60,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { Fee: 1, }, { - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10), CenterTickIndex: 5, LowerTickIndex: 4, @@ -67,7 +68,7 @@ func TestUserDepositsAllQueryPaginated(t *testing.T) { Fee: 1, }, { - PairID: defaultPairID, + PairId: defaultPairID, SharesOwned: math.NewInt(10), CenterTickIndex: 6, LowerTickIndex: 5, diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 0fc08221f..f8d63713f 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -7,6 +7,7 @@ import ( sdkmath "cosmossdk.io/math" abci "github.com/cometbft/cometbft/abci/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/neutron-org/neutron/x/dex/types" ) @@ -631,7 +632,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderGoodTilHandlesTimezoneCorrectly() { timeInPST, _ := time.Parse(time.RFC3339, "2050-01-02T15:04:05-08:00") trancheKey := s.aliceLimitSellsGoodTil("TokenA", 0, 10, timeInPST) tranche := s.App.DexKeeper.GetLimitOrderTranche(s.Ctx, &types.LimitOrderTrancheKey{ - TradePairID: defaultTradePairID1To0, + TradePairId: defaultTradePairID1To0, TickIndexTakerToMaker: 0, TrancheKey: trancheKey, }) diff --git a/x/dex/keeper/limit_order_expiration_test.go b/x/dex/keeper/limit_order_expiration_test.go index 212fc60e0..4e802b5a8 100644 --- a/x/dex/keeper/limit_order_expiration_test.go +++ b/x/dex/keeper/limit_order_expiration_test.go @@ -6,6 +6,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" ) @@ -35,7 +36,7 @@ func createLimitOrderExpirationAndTranches( for i := range items { tranche := &types.LimitOrderTranche{ Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{ + TradePairId: &types.TradePairID{ MakerDenom: "TokenA", TakerDenom: "TokenB", }, diff --git a/x/dex/keeper/limit_order_tranche.go b/x/dex/keeper/limit_order_tranche.go index 791629989..d39a65b71 100644 --- a/x/dex/keeper/limit_order_tranche.go +++ b/x/dex/keeper/limit_order_tranche.go @@ -7,6 +7,7 @@ import ( "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" ) @@ -208,14 +209,14 @@ func (k Keeper) GetOrInitPlaceTranche(ctx sdk.Context, switch orderType { case types.LimitOrderType_JUST_IN_TIME: limitOrderTrancheKey := &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndexTakerToMaker, TrancheKey: NewTrancheKey(ctx), } placeTranche, err = NewLimitOrderTranche(limitOrderTrancheKey, &JITGoodTilTime) case types.LimitOrderType_GOOD_TIL_TIME: limitOrderTrancheKey := &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndexTakerToMaker, TrancheKey: NewTrancheKey(ctx), } @@ -224,7 +225,7 @@ func (k Keeper) GetOrInitPlaceTranche(ctx sdk.Context, placeTranche = k.GetPlaceTranche(ctx, tradePairID, tickIndexTakerToMaker) if placeTranche == nil { limitOrderTrancheKey := &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndexTakerToMaker, TrancheKey: NewTrancheKey(ctx), } diff --git a/x/dex/keeper/limit_order_tranche_user.go b/x/dex/keeper/limit_order_tranche_user.go index b075fff67..e25ee4d39 100644 --- a/x/dex/keeper/limit_order_tranche_user.go +++ b/x/dex/keeper/limit_order_tranche_user.go @@ -4,6 +4,7 @@ import ( "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" ) @@ -25,7 +26,7 @@ func (k Keeper) GetOrInitLimitOrderTrancheUser( SharesWithdrawn: math.ZeroInt(), SharesCancelled: math.ZeroInt(), TickIndexTakerToMaker: tickIndex, - TradePairID: tradePairID, + TradePairId: tradePairID, OrderType: orderType, } } diff --git a/x/dex/keeper/limit_order_tranche_user_test.go b/x/dex/keeper/limit_order_tranche_user_test.go index c3eef976b..d9cf8de78 100644 --- a/x/dex/keeper/limit_order_tranche_user_test.go +++ b/x/dex/keeper/limit_order_tranche_user_test.go @@ -6,11 +6,12 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/testutil/dex/nullify" "github.com/neutron-org/neutron/x/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/require" ) func createNLimitOrderTrancheUser(keeper *keeper.Keeper, ctx sdk.Context, n int) []*types.LimitOrderTrancheUser { @@ -19,7 +20,7 @@ func createNLimitOrderTrancheUser(keeper *keeper.Keeper, ctx sdk.Context, n int) val := &types.LimitOrderTrancheUser{ TrancheKey: strconv.Itoa(i), Address: strconv.Itoa(i), - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, SharesOwned: math.ZeroInt(), SharesWithdrawn: math.ZeroInt(), @@ -38,7 +39,7 @@ func createNLimitOrderTrancheUserWithAddress(keeper *keeper.Keeper, ctx sdk.Cont val := &types.LimitOrderTrancheUser{ TrancheKey: strconv.Itoa(i), Address: address, - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, SharesOwned: math.ZeroInt(), SharesWithdrawn: math.ZeroInt(), @@ -86,7 +87,7 @@ func (s *DexTestSuite) TestGetAllLimitOrders() { LOList := s.App.DexKeeper.GetAllLimitOrderTrancheUserForAddress(s.Ctx, s.alice) s.Assert().Equal(2, len(LOList)) s.Assert().Equal(&types.LimitOrderTrancheUser{ - TradePairID: defaultTradePairID1To0, + TradePairId: defaultTradePairID1To0, TickIndexTakerToMaker: 1, TrancheKey: trancheKeyA, Address: s.alice.String(), @@ -97,7 +98,7 @@ func (s *DexTestSuite) TestGetAllLimitOrders() { LOList[0], ) s.Assert().Equal(&types.LimitOrderTrancheUser{ - TradePairID: defaultTradePairID0To1, + TradePairId: defaultTradePairID0To1, TickIndexTakerToMaker: 0, TrancheKey: trancheKeyB, Address: s.alice.String(), diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 0cfdad2b7..4f9381930 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -5,6 +5,7 @@ import ( sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" ) @@ -658,23 +659,23 @@ func (s *DexTestSuite) assertTickBalancesInt(expectedABalance, expectedBBalance for _, tick := range ticks { switch liquidity := tick.Liquidity.(type) { case *types.TickLiquidity_LimitOrderTranche: - tokenIn := liquidity.LimitOrderTranche.Key.TradePairID.MakerDenom + tokenIn := liquidity.LimitOrderTranche.Key.TradePairId.MakerDenom amountIn := liquidity.LimitOrderTranche.ReservesMakerDenom allCoins = allCoins.Add(sdk.NewCoin(tokenIn, amountIn)) - tokenOut := liquidity.LimitOrderTranche.Key.TradePairID.TakerDenom + tokenOut := liquidity.LimitOrderTranche.Key.TradePairId.TakerDenom amountOut := liquidity.LimitOrderTranche.ReservesTakerDenom allCoins = allCoins.Add(sdk.NewCoin(tokenOut, amountOut)) case *types.TickLiquidity_PoolReserves: - tokenIn := liquidity.PoolReserves.Key.TradePairID.MakerDenom + tokenIn := liquidity.PoolReserves.Key.TradePairId.MakerDenom reserves := liquidity.PoolReserves.ReservesMakerDenom allCoins = allCoins.Add(sdk.NewCoin(tokenIn, reserves)) } } for _, lo := range inactiveLOs { - tokenOut := lo.Key.TradePairID.TakerDenom + tokenOut := lo.Key.TradePairId.TakerDenom amountOut := lo.ReservesTakerDenom allCoins = allCoins.Add(sdk.NewCoin(tokenOut, amountOut)) } diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index 387bf9b64..dc4819545 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -10,12 +10,13 @@ import ( abci "github.com/cometbft/cometbft/abci/types" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/suite" + "github.com/neutron-org/neutron/testutil/apptesting" math_utils "github.com/neutron-org/neutron/utils/math" . "github.com/neutron-org/neutron/x/dex/keeper" . "github.com/neutron-org/neutron/x/dex/keeper/internal/testutils" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/suite" ) // Test suite @@ -1456,7 +1457,7 @@ func (s *DexTestSuite) getLimitFilledLiquidityAtTickAtIndex( // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tranche, _, found := s.App.DexKeeper.FindLimitOrderTranche(s.Ctx, &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndex, TrancheKey: trancheKey, }) @@ -1473,7 +1474,7 @@ func (s *DexTestSuite) getLimitReservesAtTickAtKey( // grab fill tranche reserves and shares tradePairID := defaultPairID.MustTradePairIDFromMaker(selling) tranche, _, found := s.App.DexKeeper.FindLimitOrderTranche(s.Ctx, &types.LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TickIndexTakerToMaker: tickIndex, TrancheKey: trancheKey, }) diff --git a/x/dex/keeper/pool.go b/x/dex/keeper/pool.go index b0172824a..d388eca73 100644 --- a/x/dex/keeper/pool.go +++ b/x/dex/keeper/pool.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/dex/utils" ) @@ -29,11 +30,11 @@ func (k Keeper) InitPool( centerTickIndexNormalized int64, fee uint64, ) (pool *types.Pool, err error) { - poolMetadata := types.PoolMetadata{PairID: pairID, Tick: centerTickIndexNormalized, Fee: fee} + poolMetadata := types.PoolMetadata{PairId: pairID, Tick: centerTickIndexNormalized, Fee: fee} // Get current poolID poolID := k.GetPoolCount(ctx) - poolMetadata.ID = poolID + poolMetadata.Id = poolID // Store poolMetadata k.SetPoolMetadata(ctx, poolMetadata) @@ -65,7 +66,7 @@ func (k Keeper) GetPool( feeInt64 := utils.MustSafeUint64ToInt64(fee) id0To1 := &types.PoolReservesKey{ - TradePairID: types.NewTradePairIDFromMaker(pairID, pairID.Token1), + TradePairId: types.NewTradePairIDFromMaker(pairID, pairID.Token1), TickIndexTakerToMaker: centerTickIndexNormalized + feeInt64, Fee: fee, } @@ -89,7 +90,7 @@ func (k Keeper) GetPool( } return &types.Pool{ - ID: poolID, + Id: poolID, LowerTick0: lowerTick, UpperTick1: upperTick, }, true @@ -101,7 +102,7 @@ func (k Keeper) GetPoolByID(ctx sdk.Context, poolID uint64) (pool *types.Pool, f return pool, false } - return k.GetPool(ctx, poolMetadata.PairID, poolMetadata.Tick, poolMetadata.Fee) + return k.GetPool(ctx, poolMetadata.PairId, poolMetadata.Tick, poolMetadata.Fee) } func (k Keeper) GetPoolIDByParams( diff --git a/x/dex/keeper/pool_metadata.go b/x/dex/keeper/pool_metadata.go index 2d3c0f141..9ffacb40f 100644 --- a/x/dex/keeper/pool_metadata.go +++ b/x/dex/keeper/pool_metadata.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/neutron-org/neutron/x/dex/types" ) @@ -12,7 +13,7 @@ import ( func (k Keeper) SetPoolMetadata(ctx sdk.Context, poolMetadata types.PoolMetadata) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PoolMetadataKeyPrefix)) b := k.cdc.MustMarshal(&poolMetadata) - store.Set(GetPoolMetadataIDBytes(poolMetadata.ID), b) + store.Set(GetPoolMetadataIDBytes(poolMetadata.Id), b) } // GetPoolMetadata returns a poolMetadata from its id diff --git a/x/dex/keeper/pool_metadata_test.go b/x/dex/keeper/pool_metadata_test.go index 7bb9088e9..6eb70ef1c 100644 --- a/x/dex/keeper/pool_metadata_test.go +++ b/x/dex/keeper/pool_metadata_test.go @@ -4,17 +4,18 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/testutil/dex/nullify" "github.com/neutron-org/neutron/x/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/require" ) func createNPoolMetadata(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.PoolMetadata { items := make([]types.PoolMetadata, n) for i := range items { - items[i].ID = uint64(i) + items[i].Id = uint64(i) keeper.SetPoolMetadata(ctx, items[i]) } @@ -25,7 +26,7 @@ func TestPoolMetadataGet(t *testing.T) { keeper, ctx := keepertest.DexKeeper(t) items := createNPoolMetadata(keeper, ctx, 10) for _, item := range items { - got, found := keeper.GetPoolMetadata(ctx, item.ID) + got, found := keeper.GetPoolMetadata(ctx, item.Id) require.True(t, found) require.Equal(t, nullify.Fill(item), @@ -38,8 +39,8 @@ func TestPoolMetadataRemove(t *testing.T) { keeper, ctx := keepertest.DexKeeper(t) items := createNPoolMetadata(keeper, ctx, 10) for _, item := range items { - keeper.RemovePoolMetadata(ctx, item.ID) - _, found := keeper.GetPoolMetadata(ctx, item.ID) + keeper.RemovePoolMetadata(ctx, item.Id) + _, found := keeper.GetPoolMetadata(ctx, item.Id) require.False(t, found) } } diff --git a/x/dex/keeper/pool_test.go b/x/dex/keeper/pool_test.go index 527b53ea8..fe4224de3 100644 --- a/x/dex/keeper/pool_test.go +++ b/x/dex/keeper/pool_test.go @@ -5,10 +5,11 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + keepertest "github.com/neutron-org/neutron/testutil/dex/keeper" "github.com/neutron-org/neutron/x/dex/keeper" "github.com/neutron-org/neutron/x/dex/types" - "github.com/stretchr/testify/require" ) func createNPools(k *keeper.Keeper, ctx sdk.Context, n int) []*types.Pool { @@ -38,7 +39,7 @@ func TestPoolInit(t *testing.T) { require.True(t, found) - require.Equal(t, pool.ID, dbPool.ID) + require.Equal(t, pool.Id, dbPool.Id) require.Equal(t, pool.LowerTick0, dbPool.LowerTick0) require.Equal(t, pool.UpperTick1, dbPool.UpperTick1) } @@ -54,11 +55,11 @@ func TestGetPoolByID(t *testing.T) { keeper, ctx := keepertest.DexKeeper(t) items := createNPools(keeper, ctx, 2) - pool0, found := keeper.GetPoolByID(ctx, items[0].ID) + pool0, found := keeper.GetPoolByID(ctx, items[0].Id) require.True(t, found) require.Equal(t, items[0], pool0) - pool1, found := keeper.GetPoolByID(ctx, items[1].ID) + pool1, found := keeper.GetPoolByID(ctx, items[1].Id) require.True(t, found) require.Equal(t, items[1], pool1) @@ -72,21 +73,21 @@ func TestGetPoolIDByParams(t *testing.T) { id0, found := keeper.GetPoolIDByParams( ctx, - items[0].LowerTick0.Key.TradePairID.MustPairID(), + items[0].LowerTick0.Key.TradePairId.MustPairID(), items[0].CenterTickIndex(), items[0].Fee(), ) require.True(t, found) - require.Equal(t, items[0].ID, id0) + require.Equal(t, items[0].Id, id0) id1, found := keeper.GetPoolIDByParams( ctx, - items[1].LowerTick0.Key.TradePairID.MustPairID(), + items[1].LowerTick0.Key.TradePairId.MustPairID(), items[1].CenterTickIndex(), items[1].Fee(), ) require.True(t, found) - require.Equal(t, items[1].ID, id1) + require.Equal(t, items[1].Id, id1) _, found = keeper.GetPoolIDByParams(ctx, defaultPairID, 99, 2) require.False(t, found) diff --git a/x/dex/types/deposit_record.pb.go b/x/dex/types/deposit_record.pb.go index d3d3e54c7..270160cb5 100644 --- a/x/dex/types/deposit_record.pb.go +++ b/x/dex/types/deposit_record.pb.go @@ -25,11 +25,11 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type DepositRecord struct { - PairID *PairID `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalShares" yaml:"totalShares"` - CenterTickIndex int64 `protobuf:"varint,3,opt,name=centerTickIndex,proto3" json:"centerTickIndex,omitempty"` - LowerTickIndex int64 `protobuf:"varint,4,opt,name=lowerTickIndex,proto3" json:"lowerTickIndex,omitempty"` - UpperTickIndex int64 `protobuf:"varint,5,opt,name=upperTickIndex,proto3" json:"upperTickIndex,omitempty"` + PairId *PairID `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalShares" yaml:"totalShares"` + CenterTickIndex int64 `protobuf:"varint,3,opt,name=center_tick_index,json=centerTickIndex,proto3" json:"center_tick_index,omitempty"` + LowerTickIndex int64 `protobuf:"varint,4,opt,name=lower_tick_index,json=lowerTickIndex,proto3" json:"lower_tick_index,omitempty"` + UpperTickIndex int64 `protobuf:"varint,5,opt,name=upper_tick_index,json=upperTickIndex,proto3" json:"upper_tick_index,omitempty"` Fee uint64 `protobuf:"varint,6,opt,name=fee,proto3" json:"fee,omitempty"` } @@ -66,9 +66,9 @@ func (m *DepositRecord) XXX_DiscardUnknown() { var xxx_messageInfo_DepositRecord proto.InternalMessageInfo -func (m *DepositRecord) GetPairID() *PairID { +func (m *DepositRecord) GetPairId() *PairID { if m != nil { - return m.PairID + return m.PairId } return nil } @@ -108,29 +108,30 @@ func init() { func init() { proto.RegisterFile("neutron/dex/deposit_record.proto", fileDescriptor_250413eadaebbf28) } var fileDescriptor_250413eadaebbf28 = []byte{ - // 339 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00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 0xa7, 0x5e, 0x04, 0x4b, 0x3f, 0x02, - 0xbe, 0x04, 0x5e, 0x1f, 0x7d, 0x4e, 0xe6, 0xbe, 0x58, 0x67, 0x94, 0x7b, 0xa3, 0x54, 0x7c, 0x95, - 0xb6, 0x21, 0x40, 0x84, 0x8b, 0xb1, 0x4c, 0xfa, 0x2e, 0x6d, 0xbc, 0x0e, 0x97, 0x8b, 0xfb, 0xae, - 0x02, 0xbb, 0x81, 0xda, 0x07, 0xbb, 0xfa, 0x59, 0x44, 0x53, 0x41, 0xd9, 0x53, 0x12, 0xcd, 0x47, - 0x29, 0xa1, 0x85, 0xd9, 0x74, 0x90, 0xdb, 0x0c, 0x8e, 0x31, 0xee, 0xe9, 0xa7, 0x0b, 0x58, 0xa9, - 0x62, 0x4b, 0x8a, 0x47, 0xb4, 0xf2, 0xf2, 0x2c, 0x53, 0xbd, 0x7f, 0x07, 0xef, 0x2f, 0xc5, 0xe7, - 0x7a, 0xf3, 0x85, 0x52, 0xb3, 0xed, 0x20, 0xb7, 0x15, 0x54, 0xe5, 0x60, 0xb8, 0xd9, 0x59, 0x68, - 0xbb, 0xb3, 0xd0, 0xe7, 0xce, 0x42, 0xaf, 0x7b, 0x4b, 0xdb, 0xee, 0x2d, 0xed, 0x7d, 0x6f, 0x69, - 0xcf, 0xd7, 0xca, 0xff, 0xeb, 0x19, 0xf6, 0x81, 0xc5, 0xbf, 0xb5, 0x5f, 0xc8, 0x7d, 0xc8, 0x39, - 0x4c, 0xdb, 0x72, 0x1d, 0x77, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa4, 0xd7, 0xff, 0x85, 0xf0, - 0x01, 0x00, 0x00, + // 354 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0x31, 0x4f, 0xab, 0x50, + 0x1c, 0xc5, 0xb9, 0x6d, 0x5f, 0x5f, 0x1e, 0x3c, 0xb5, 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xf3, 0xcf, 0xdc, 0x50, 0x38, 0xf0, 0x60, 0x3e, 0x16, 0x51, 0x5f, 0xb9, 0xa1, 0xae, 0x83, 0xc5, + 0xfc, 0xb6, 0x57, 0x33, 0x7b, 0x9e, 0x52, 0x16, 0xdd, 0x15, 0x3d, 0x6a, 0x5f, 0x3e, 0x0d, 0x49, + 0xcc, 0x09, 0xf3, 0x39, 0x0d, 0x67, 0x3e, 0x8d, 0x31, 0xc9, 0xb4, 0xa6, 0x89, 0xac, 0xa6, 0x77, + 0x52, 0xfe, 0x78, 0xa0, 0xe1, 0xcc, 0x2d, 0x6c, 0xd5, 0x92, 0x3b, 0x73, 0x58, 0x1d, 0xa2, 0x2d, + 0x81, 0x1e, 0x0b, 0xff, 0x80, 0x5c, 0x26, 0xc9, 0x21, 0xf9, 0xa7, 0x24, 0x85, 0xff, 0x4b, 0x76, + 0xe4, 0xe6, 0x13, 0x21, 0x5a, 0xdb, 0x44, 0x56, 0xcb, 0x2b, 0xe4, 0x70, 0xb4, 0xd9, 0xe9, 0x68, + 0xbb, 0xd3, 0xd1, 0xc7, 0x4e, 0x47, 0x2f, 0x7b, 0x5d, 0xda, 0xee, 0x75, 0xe9, 0x6d, 0xaf, 0x4b, + 0x8f, 0xfd, 0xda, 0x0a, 0xd5, 0x94, 0x03, 0x60, 0xd1, 0x8f, 0x76, 0x32, 0x71, 0x17, 0xb1, 0xc6, + 0xa4, 0x2d, 0xce, 0x72, 0xf3, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x42, 0xc1, 0x96, 0x79, 0xf8, 0x01, + 0x00, 0x00, } func (m *DepositRecord) Marshal() (dAtA []byte, err error) { @@ -183,9 +184,9 @@ func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x12 - if m.PairID != nil { + if m.PairId != nil { { - size, err := m.PairID.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PairId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -215,8 +216,8 @@ func (m *DepositRecord) Size() (n int) { } var l int _ = l - if m.PairID != nil { - l = m.PairID.Size() + if m.PairId != nil { + l = m.PairId.Size() n += 1 + l + sovDepositRecord(uint64(l)) } l = m.SharesOwned.Size() @@ -273,7 +274,7 @@ func (m *DepositRecord) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -300,10 +301,10 @@ func (m *DepositRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PairID == nil { - m.PairID = &PairID{} + if m.PairId == nil { + m.PairId = &PairID{} } - if err := m.PairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PairId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/dex/types/events.go b/x/dex/types/events.go index cfc0b6bf6..87f7ff571 100644 --- a/x/dex/types/events.go +++ b/x/dex/types/events.go @@ -192,7 +192,7 @@ func TickUpdateEvent( } func CreateTickUpdatePoolReserves(tick PoolReserves) sdk.Event { - tradePairID := tick.Key.TradePairID + tradePairID := tick.Key.TradePairId pairID := tradePairID.MustPairID() return TickUpdateEvent( pairID.Token0, @@ -205,7 +205,7 @@ func CreateTickUpdatePoolReserves(tick PoolReserves) sdk.Event { } func CreateTickUpdateLimitOrderTranche(tranche *LimitOrderTranche) sdk.Event { - tradePairID := tranche.Key.TradePairID + tradePairID := tranche.Key.TradePairId pairID := tradePairID.MustPairID() return TickUpdateEvent( pairID.Token0, diff --git a/x/dex/types/genesis.go b/x/dex/types/genesis.go index 645614e97..5a4fe9b10 100644 --- a/x/dex/types/genesis.go +++ b/x/dex/types/genesis.go @@ -60,13 +60,13 @@ func (gs GenesisState) Validate() error { poolMetadataIDMap := make(map[uint64]bool) poolMetadataCount := gs.GetPoolCount() for _, elem := range gs.PoolMetadataList { - if _, ok := poolMetadataIDMap[elem.ID]; ok { + if _, ok := poolMetadataIDMap[elem.Id]; ok { return fmt.Errorf("duplicated id for poolMetadata") } - if elem.ID >= poolMetadataCount { + if elem.Id >= poolMetadataCount { return fmt.Errorf("poolMetadata id should be lower or equal than the last id") } - poolMetadataIDMap[elem.ID] = true + poolMetadataIDMap[elem.Id] = true } // this line is used by starport scaffolding # genesis/types/validate diff --git a/x/dex/types/genesis.pb.go b/x/dex/types/genesis.pb.go index 49dff3899..60e2fe03d 100644 --- a/x/dex/types/genesis.pb.go +++ b/x/dex/types/genesis.pb.go @@ -26,11 +26,11 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the dex module's genesis state. type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - TickLiquidityList []*TickLiquidity `protobuf:"bytes,2,rep,name=tickLiquidityList,proto3" json:"tickLiquidityList,omitempty"` - InactiveLimitOrderTrancheList []*LimitOrderTranche `protobuf:"bytes,3,rep,name=inactiveLimitOrderTrancheList,proto3" json:"inactiveLimitOrderTrancheList,omitempty"` - LimitOrderTrancheUserList []*LimitOrderTrancheUser `protobuf:"bytes,4,rep,name=limitOrderTrancheUserList,proto3" json:"limitOrderTrancheUserList,omitempty"` - PoolMetadataList []PoolMetadata `protobuf:"bytes,5,rep,name=poolMetadataList,proto3" json:"poolMetadataList"` - PoolCount uint64 `protobuf:"varint,6,opt,name=poolCount,proto3" json:"poolCount,omitempty"` + TickLiquidityList []*TickLiquidity `protobuf:"bytes,2,rep,name=tick_liquidity_list,json=tickLiquidityList,proto3" json:"tick_liquidity_list,omitempty"` + InactiveLimitOrderTrancheList []*LimitOrderTranche `protobuf:"bytes,3,rep,name=inactive_limit_order_tranche_list,json=inactiveLimitOrderTrancheList,proto3" json:"inactive_limit_order_tranche_list,omitempty"` + LimitOrderTrancheUserList []*LimitOrderTrancheUser `protobuf:"bytes,4,rep,name=limit_order_tranche_user_list,json=limitOrderTrancheUserList,proto3" json:"limit_order_tranche_user_list,omitempty"` + PoolMetadataList []PoolMetadata `protobuf:"bytes,5,rep,name=pool_metadata_list,json=poolMetadataList,proto3" json:"pool_metadata_list"` + PoolCount uint64 `protobuf:"varint,6,opt,name=pool_count,json=poolCount,proto3" json:"pool_count,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -115,32 +115,33 @@ func init() { func init() { proto.RegisterFile("neutron/dex/genesis.proto", fileDescriptor_0c051a8a0d58cd8b) } var fileDescriptor_0c051a8a0d58cd8b = []byte{ - // 391 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x4e, 0xea, 0x40, - 0x18, 0xc5, 0xdb, 0x0b, 0x97, 0xe4, 0x0e, 0x77, 0x71, 0x6f, 0x75, 0x51, 0x1a, 0x2d, 0x0d, 0x89, - 0x09, 0x21, 0xb1, 0x8d, 0xf8, 0x06, 0x68, 0xe2, 0x42, 0xfc, 0x13, 0xc4, 0x8d, 0x9b, 0x66, 0x68, - 0xc7, 0x32, 0xda, 0x76, 0x70, 0xfa, 0xd5, 0xc0, 0x5b, 0xf8, 0x58, 0x2c, 0x59, 0xba, 0x32, 0x06, - 0x5e, 0xc4, 0x74, 0x3a, 0xc4, 0x56, 0x22, 0xee, 0x26, 0xf3, 0xfd, 0xce, 0x39, 0x73, 0xbe, 0x0c, - 0x6a, 0xc4, 0x24, 0x05, 0xce, 0x62, 0xc7, 0x27, 0x53, 0x27, 0x20, 0x31, 0x49, 0x68, 0x62, 0x4f, - 0x38, 0x03, 0xa6, 0xd5, 0xe5, 0xc8, 0xf6, 0xc9, 0xd4, 0xd8, 0x0d, 0x58, 0xc0, 0xc4, 0xbd, 0x93, - 0x9d, 0x72, 0xc4, 0xd0, 0x8b, 0xea, 0x09, 0xe6, 0x38, 0x92, 0x62, 0xa3, 0x53, 0x9c, 0x84, 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f, 0x08, 0xb5, 0x3d, 0xf4, 0x27, 0xbb, 0x3b, 0x61, 0x69, 0x0c, 0x7a, - 0xcd, 0x52, 0xdb, 0xd5, 0xc1, 0xe7, 0x45, 0xef, 0x74, 0xbe, 0x34, 0xd5, 0xc5, 0xd2, 0x54, 0xdf, - 0x97, 0xa6, 0xfa, 0xb2, 0x32, 0x95, 0xc5, 0xca, 0x54, 0x5e, 0x57, 0xa6, 0x72, 0xd7, 0x09, 0x28, - 0x8c, 0xd3, 0x91, 0xed, 0xb1, 0xc8, 0x91, 0xa1, 0x87, 0x8c, 0x07, 0xeb, 0xb3, 0x33, 0xcd, 0x3f, - 0xd2, 0x6c, 0x42, 0x92, 0x51, 0x4d, 0xfc, 0x8f, 0xe3, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, - 0x44, 0x46, 0xac, 0x0f, 0x03, 0x00, 0x00, + // 405 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x6e, 0xda, 0x30, + 0x18, 0xc7, 0x93, 0xc1, 0x90, 0x66, 0x76, 0xd8, 0xc2, 0x0e, 0x21, 0x12, 0x21, 0x43, 0x9a, 0x84, + 0x90, 0x96, 0x68, 0xec, 0x0d, 0xd8, 0xa4, 0x5d, 0x40, 0x43, 0x8c, 0x5d, 0x76, 0x89, 0x4c, 0x62, + 0x05, 0x8f, 0x24, 0x4e, 0x9d, 0x2f, 0x15, 0xbc, 0x45, 0x1f, 0x8b, 0x23, 0xc7, 0x5e, 0x5a, 0x55, + 0xf0, 0x22, 0x55, 0x6c, 0x23, 0x25, 0x2a, 0x6d, 0x6f, 0xd6, 0xf7, 0xfd, 0xfc, 0xff, 0xd9, 0x9f, + 0x8d, 0xba, 0x29, 0x29, 0x80, 0xb3, 0xd4, 0x0b, 0xc9, 0xd6, 0x8b, 0x48, 0x4a, 0x72, 0x9a, 0xbb, + 0x19, 0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5, 0x9e, 0x7b, 0x11, 0xe9, 0x6a, 0x0a, 0xd7, 0xe0, + 0x65, 0xd7, 0xdf, 0x9c, 0x70, 0xe5, 0xeb, 0xc6, 0x97, 0x9a, 0xc2, 0x35, 0x43, 0x46, 0xed, 0x21, + 0xa4, 0xe0, 0xad, 0x10, 0x74, 0xeb, 0xc3, 0x66, 0x2c, 0x9e, 0x29, 0x4a, 0x8d, 0xfc, 0x43, 0x56, + 0xa9, 0x89, 0xb8, 0x1e, 0x42, 0x22, 0x2e, 0x60, 0x45, 0x0a, 0x66, 0xcb, 0xd1, 0x87, 0xcd, 0xc5, + 0xbb, 0xb2, 0xf2, 0xa3, 0x2c, 0x4c, 0x7e, 0xee, 0x8f, 0xb6, 0x7e, 0x38, 0xda, 0xfa, 0xc3, 0xd1, + 0xd6, 0x6f, 0x4e, 0xb6, 0x76, 0x38, 0xd9, 0xda, 0xed, 0xc9, 0xd6, 0xfe, 0x8d, 0x22, 0x0a, 0xeb, + 0x62, 0xe5, 0x06, 0x2c, 0xf1, 0x94, 0xf5, 0x2b, 0xe3, 0xd1, 0x79, 0xed, 0x6d, 0xe5, 0xaf, 0xda, + 0x65, 0x24, 0x5f, 0xb5, 0xc4, 0x67, 0xf9, 0xfe, 0x18, 0x00, 0x00, 0xff, 0xff, 0x62, 0xa7, 0x84, + 0x86, 0x1c, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/genesis_test.go b/x/dex/types/genesis_test.go index 4a86c25d8..0aad879b8 100644 --- a/x/dex/types/genesis_test.go +++ b/x/dex/types/genesis_test.go @@ -3,8 +3,9 @@ package types_test import ( "testing" - "github.com/neutron-org/neutron/x/dex/types" "github.com/stretchr/testify/require" + + "github.com/neutron-org/neutron/x/dex/types" ) func TestGenesisState_Validate(t *testing.T) { @@ -25,12 +26,12 @@ func TestGenesisState_Validate(t *testing.T) { { TrancheKey: "0", Address: "0", - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, }, { TrancheKey: "1", Address: "1", - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, }, }, TickLiquidityList: []*types.TickLiquidity{ @@ -38,7 +39,7 @@ func TestGenesisState_Validate(t *testing.T) { Liquidity: &types.TickLiquidity_LimitOrderTranche{ LimitOrderTranche: &types.LimitOrderTranche{ Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, TrancheKey: "0", }, @@ -49,7 +50,7 @@ func TestGenesisState_Validate(t *testing.T) { Liquidity: &types.TickLiquidity_PoolReserves{ PoolReserves: &types.PoolReserves{ Key: &types.PoolReservesKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, Fee: 0, }, @@ -60,14 +61,14 @@ func TestGenesisState_Validate(t *testing.T) { InactiveLimitOrderTrancheList: []*types.LimitOrderTranche{ { Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, TrancheKey: "0", }, }, { Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{TakerDenom: "TokenA", MakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{TakerDenom: "TokenA", MakerDenom: "TokenB"}, TickIndexTakerToMaker: 1, TrancheKey: "1", }, @@ -75,10 +76,10 @@ func TestGenesisState_Validate(t *testing.T) { }, PoolMetadataList: []types.PoolMetadata{ { - ID: 0, + Id: 0, }, { - ID: 1, + Id: 1, }, }, PoolCount: 2, @@ -93,12 +94,12 @@ func TestGenesisState_Validate(t *testing.T) { { TrancheKey: "0", Address: "0", - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, }, { TrancheKey: "0", Address: "0", - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, }, }, }, @@ -112,7 +113,7 @@ func TestGenesisState_Validate(t *testing.T) { Liquidity: &types.TickLiquidity_LimitOrderTranche{ LimitOrderTranche: &types.LimitOrderTranche{ Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, TrancheKey: "0", }, @@ -123,7 +124,7 @@ func TestGenesisState_Validate(t *testing.T) { Liquidity: &types.TickLiquidity_LimitOrderTranche{ LimitOrderTranche: &types.LimitOrderTranche{ Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, TrancheKey: "0", }, @@ -140,14 +141,14 @@ func TestGenesisState_Validate(t *testing.T) { InactiveLimitOrderTrancheList: []*types.LimitOrderTranche{ { Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, TrancheKey: "0", }, }, { Key: &types.LimitOrderTrancheKey{ - TradePairID: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, + TradePairId: &types.TradePairID{MakerDenom: "TokenA", TakerDenom: "TokenB"}, TickIndexTakerToMaker: 0, TrancheKey: "0", }, @@ -161,10 +162,10 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ PoolMetadataList: []types.PoolMetadata{ { - ID: 0, + Id: 0, }, { - ID: 0, + Id: 0, }, }, }, @@ -175,7 +176,7 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ PoolMetadataList: []types.PoolMetadata{ { - ID: 1, + Id: 1, }, }, PoolCount: 0, diff --git a/x/dex/types/limit_order_expiration.pb.go b/x/dex/types/limit_order_expiration.pb.go index 0e9664f02..1de9e33a6 100644 --- a/x/dex/types/limit_order_expiration.pb.go +++ b/x/dex/types/limit_order_expiration.pb.go @@ -29,8 +29,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type LimitOrderExpiration struct { // see limitOrderTranche.proto for details on goodTilDate - ExpirationTime time.Time `protobuf:"bytes,1,opt,name=expirationTime,proto3,stdtime" json:"expirationTime"` - TrancheRef []byte `protobuf:"bytes,2,opt,name=trancheRef,proto3" json:"trancheRef,omitempty"` + ExpirationTime time.Time `protobuf:"bytes,1,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time"` + TrancheRef []byte `protobuf:"bytes,2,opt,name=tranche_ref,json=trancheRef,proto3" json:"tranche_ref,omitempty"` } func (m *LimitOrderExpiration) Reset() { *m = LimitOrderExpiration{} } @@ -89,23 +89,24 @@ func init() { } var fileDescriptor_61264397cad6ae82 = []byte{ - // 255 bytes of a gzipped FileDescriptorProto + // 262 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0xcf, 0xc9, 0xcc, 0xcd, 0x2c, 0x89, 0xcf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x65, + 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x51, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x7a, + 0x71, 0x93, 0x45, 0x01, 0x00, 0x00, } func (m *LimitOrderExpiration) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_tranche.go b/x/dex/types/limit_order_tranche.go index 6e9a7dc74..26d78e0ab 100644 --- a/x/dex/types/limit_order_tranche.go +++ b/x/dex/types/limit_order_tranche.go @@ -3,6 +3,7 @@ package types import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/utils" ) @@ -27,7 +28,7 @@ func NewLimitOrderTranche( } return &LimitOrderTranche{ Key: &LimitOrderTrancheKey{ - TradePairID: tradePairID, + TradePairId: tradePairID, TrancheKey: trancheKey, TickIndexTakerToMaker: tickIndex, }, diff --git a/x/dex/types/limit_order_tranche.pb.go b/x/dex/types/limit_order_tranche.pb.go index 272946670..054bb1169 100644 --- a/x/dex/types/limit_order_tranche.pb.go +++ b/x/dex/types/limit_order_tranche.pb.go @@ -30,9 +30,9 @@ var _ = time.Kitchen const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type LimitOrderTrancheKey struct { - TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` - TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tickIndexTakerToMaker,proto3" json:"tickIndexTakerToMaker,omitempty"` - TrancheKey string `protobuf:"bytes,3,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + TradePairId *TradePairID `protobuf:"bytes,1,opt,name=trade_pair_id,json=tradePairId,proto3" json:"trade_pair_id,omitempty"` + TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tick_index_taker_to_maker,json=tickIndexTakerToMaker,proto3" json:"tick_index_taker_to_maker,omitempty"` + TrancheKey string `protobuf:"bytes,3,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` } func (m *LimitOrderTrancheKey) Reset() { *m = LimitOrderTrancheKey{} } @@ -68,9 +68,9 @@ func (m *LimitOrderTrancheKey) XXX_DiscardUnknown() { var xxx_messageInfo_LimitOrderTrancheKey proto.InternalMessageInfo -func (m *LimitOrderTrancheKey) GetTradePairID() *TradePairID { +func (m *LimitOrderTrancheKey) GetTradePairId() *TradePairID { if m != nil { - return m.TradePairID + return m.TradePairId } return nil } @@ -91,15 +91,15 @@ func (m *LimitOrderTrancheKey) GetTrancheKey() string { type LimitOrderTranche struct { Key *LimitOrderTrancheKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` - ReservesTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=reservesTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesTakerDenom" yaml:"reservesTakerDenom"` - TotalMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=totalMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTokenIn" yaml:"totalMakerDenom"` - TotalTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=totalTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTakerDenom" yaml:"totalTakerDenom"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reserves_maker_denom,json=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` + ReservesTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=reserves_taker_denom,json=reservesTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesTakerDenom" yaml:"reservesTakerDenom"` + TotalMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_maker_denom,json=totalMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTokenIn" yaml:"totalMakerDenom"` + TotalTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=total_taker_denom,json=totalTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTakerDenom" yaml:"totalTakerDenom"` // JIT orders also use goodTilDate to handle deletion but represent a special case // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live // Order deletion still functions the same and the orders will be deleted at the end of the block - ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` - PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,7,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` + ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` + PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,7,opt,name=price_taker_to_maker,json=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` } func (m *LimitOrderTranche) Reset() { *m = LimitOrderTranche{} } @@ -159,42 +159,44 @@ func init() { } var fileDescriptor_8c2ded67c80756d1 = []byte{ - // 557 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xc7,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b8, 0x4c, 0xf4, - 0x87, 0x19, 0xca, 0x96, 0xbd, 0x61, 0x6f, 0x17, 0x54, 0x3e, 0xaf, 0x20, 0x0a, 0x53, 0xb9, 0x25, - 0x21, 0xde, 0x5d, 0x19, 0x62, 0xdb, 0x68, 0x8b, 0xc3, 0x29, 0x71, 0x14, 0x86, 0x71, 0x8a, 0xef, - 0xc1, 0x24, 0xa2, 0x9c, 0x08, 0xca, 0x42, 0x87, 0x06, 0xa0, 0xd6, 0xe4, 0xa3, 0x6b, 0x98, 0xd9, - 0xda, 0x9a, 0xab, 0xb5, 0x35, 0x9d, 0xd5, 0xda, 0xb6, 0xef, 0xcc, 0x12, 0x1d, 0x9d, 0xff, 0xd4, - 0x91, 0xbd, 0x95, 0xab, 0x7c, 0x45, 0x78, 0x3f, 0xe2, 0xd4, 0x85, 0x8d, 0x05, 0xb9, 0x2d, 0xfb, - 0xfa, 0x90, 0xf7, 0xf5, 0xac, 0xd0, 0x57, 0xfe, 0xb0, 0x8f, 0x18, 0xf7, 0x57, 0x67, 0x6b, 0x2c, - 0xe8, 0x28, 0xb6, 0x02, 0x22, 0x06, 0xe6, 0x19, 0x07, 0xb7, 0x03, 0xee, 0x65, 0xa2, 0x97, 0x5d, - 0x97, 0x89, 0xae, 0x66, 0x4d, 0x96, 0x42, 0x86, 0x5d, 0x96, 0xb7, 0x3b, 0xb3, 0xb9, 0x86, 0x2e, - 0xe6, 0x1a, 0xfa, 0x35, 0xd7, 0xd0, 0xf9, 0x42, 0xab, 0x5c, 0x2c, 0xb4, 0xca, 0xf7, 0x85, 0x56, - 0x79, 0xfb, 0xf4, 0x3f, 0x40, 0x93, 0xec, 0xc7, 0x94, 0x0e, 0xbc, 0x5f, 0x93, 0xe3, 0x38, 0xfe, - 0x13, 0x00, 0x00, 0xff, 0xff, 0x2a, 0xca, 0x7c, 0xe1, 0x09, 0x05, 0x00, 0x00, + // 591 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00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0x81, 0xaa, 0xfa, 0xaf, 0x54, 0xce, 0x1f, 0xa8, 0x9c, 0x5d, 0x54, 0x97, 0x49, 0xed, 0x13, + 0x80, 0x87, 0x82, 0x09, 0x3c, 0x2e, 0x19, 0xf5, 0xbf, 0x42, 0x7a, 0x73, 0x6d, 0xa4, 0xdb, 0x6a, + 0x94, 0xc3, 0x46, 0x24, 0xea, 0x47, 0xab, 0x14, 0xdd, 0xcf, 0x60, 0x54, 0xb6, 0xe8, 0xcf, 0xc1, + 0x95, 0x8c, 0xf6, 0x79, 0x83, 0x51, 0x74, 0xe6, 0x86, 0xc2, 0x78, 0x77, 0x6d, 0x8c, 0x6c, 0x7c, + 0xc9, 0x96, 0x22, 0x89, 0xb3, 0x45, 0x52, 0x30, 0xe4, 0x04, 0x1e, 0x90, 0x69, 0x4c, 0x39, 0x16, + 0x94, 0x45, 0xae, 0xbc, 0x54, 0x7d, 0x4f, 0xbd, 0x7d, 0x4d, 0x33, 0x3b, 0x63, 0x73, 0x7d, 0xc6, + 0xa6, 0xb3, 0x3e, 0xe3, 0xee, 0xad, 0x79, 0x8a, 0xc0, 0xd9, 0x4f, 0x04, 0xec, 0xbb, 0x97, 0xcd, + 0xb2, 0xac, 0x7d, 0x05, 0xb0, 0x1e, 0x73, 0xea, 0x91, 0xab, 0xd7, 0x72, 0x53, 0xed, 0xf6, 0x21, + 0xdf, 0xed, 0x49, 0x61, 0xb7, 0xfc, 0x25, 0x3f, 0x62, 0x3c, 0x58, 0xc7, 0xd6, 0x44, 0xd0, 0x71, + 0x62, 0x85, 0x58, 0x0c, 0xcd, 0x53, 0x4e, 0xbc, 0x1e, 0xf1, 0x2e, 0x52, 0x74, 0xa8, 0x06, 0x17, + 0xcf, 0x6c, 0x95, 0x22, 0x3d, 0x5b, 0x74, 0xab, 0xd4, 0xb6, 0xb7, 0xe5, 0xdd, 0xde, 0x7c, 0x61, + 0x80, 0xf3, 0x85, 0x01, 0x7e, 0x2d, 0x0c, 0x70, 0xb6, 0x34, 0x2a, 0xe7, 0x4b, 0xa3, 0xf2, 0x7d, + 0x69, 0x54, 0xde, 0x3e, 0xfe, 0x0b, 0xd0, 0x34, 0xfb, 0x56, 0x49, 0xd3, 0x07, 0x7b, 0xca, 0x91, + 0xe3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x16, 0x67, 0x66, 0x1c, 0x05, 0x00, 0x00, } func (m *LimitOrderTrancheKey) Marshal() (dAtA []byte, err error) { @@ -229,9 +231,9 @@ func (m *LimitOrderTrancheKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if m.TradePairID != nil { + if m.TradePairId != nil { { - size, err := m.TradePairID.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradePairId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -356,8 +358,8 @@ func (m *LimitOrderTrancheKey) Size() (n int) { } var l int _ = l - if m.TradePairID != nil { - l = m.TradePairID.Size() + if m.TradePairId != nil { + l = m.TradePairId.Size() n += 1 + l + sovLimitOrderTranche(uint64(l)) } if m.TickIndexTakerToMaker != 0 { @@ -434,7 +436,7 @@ func (m *LimitOrderTrancheKey) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradePairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradePairId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -461,10 +463,10 @@ func (m *LimitOrderTrancheKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradePairID == nil { - m.TradePairID = &TradePairID{} + if m.TradePairId == nil { + m.TradePairId = &TradePairID{} } - if err := m.TradePairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradePairId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/dex/types/limit_order_tranche_key.go b/x/dex/types/limit_order_tranche_key.go index 76c2aca95..fc9b12ab3 100644 --- a/x/dex/types/limit_order_tranche_key.go +++ b/x/dex/types/limit_order_tranche_key.go @@ -9,11 +9,11 @@ var _ TickLiquidityKey = (*LimitOrderTrancheKey)(nil) func (p LimitOrderTrancheKey) KeyMarshal() []byte { var key []byte - pairKeyBytes := []byte(p.TradePairID.MustPairID().CanonicalString()) + pairKeyBytes := []byte(p.TradePairId.MustPairID().CanonicalString()) key = append(key, pairKeyBytes...) key = append(key, []byte("/")...) - makerDenomBytes := []byte(p.TradePairID.MakerDenom) + makerDenomBytes := []byte(p.TradePairId.MakerDenom) key = append(key, makerDenomBytes...) key = append(key, []byte("/")...) diff --git a/x/dex/types/limit_order_tranche_user.pb.go b/x/dex/types/limit_order_tranche_user.pb.go index 4920c8518..191d47e0a 100644 --- a/x/dex/types/limit_order_tranche_user.pb.go +++ b/x/dex/types/limit_order_tranche_user.pb.go @@ -25,14 +25,14 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type LimitOrderTrancheUser struct { - TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` - TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tickIndexTakerToMaker,proto3" json:"tickIndexTakerToMaker,omitempty"` - TrancheKey string `protobuf:"bytes,3,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + TradePairId *TradePairID `protobuf:"bytes,1,opt,name=trade_pair_id,json=tradePairId,proto3" json:"trade_pair_id,omitempty"` + TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tick_index_taker_to_maker,json=tickIndexTakerToMaker,proto3" json:"tick_index_taker_to_maker,omitempty"` + TrancheKey string `protobuf:"bytes,3,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"sharesOwned"` - SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesWithdrawn" yaml:"sharesWithdrawn"` - SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesCancelled" yaml:"sharesCancelled"` - OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"orderType,omitempty"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"sharesOwned"` + SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=shares_withdrawn,json=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesWithdrawn" yaml:"sharesWithdrawn"` + SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=shares_cancelled,json=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesCancelled" yaml:"sharesCancelled"` + OrderType LimitOrderType `protobuf:"varint,8,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` } func (m *LimitOrderTrancheUser) Reset() { *m = LimitOrderTrancheUser{} } @@ -68,9 +68,9 @@ func (m *LimitOrderTrancheUser) XXX_DiscardUnknown() { var xxx_messageInfo_LimitOrderTrancheUser proto.InternalMessageInfo -func (m *LimitOrderTrancheUser) GetTradePairID() *TradePairID { +func (m *LimitOrderTrancheUser) GetTradePairId() *TradePairID { if m != nil { - return m.TradePairID + return m.TradePairId } return nil } @@ -112,35 +112,37 @@ func init() { } var fileDescriptor_67e5ffbd487ea05f = []byte{ - // 443 bytes of a gzipped FileDescriptorProto + // 470 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xdb, 0x30, - 0x1c, 0x8d, 0xd6, 0xb5, 0x5d, 0x15, 0xd8, 0x40, 0xb4, 0x43, 0x74, 0x60, 0x87, 0x1c, 0x46, 0x28, - 0xd4, 0x86, 0x6e, 0x97, 0xf5, 0xd8, 0xf5, 0x12, 0xb6, 0xd1, 0xe1, 0x79, 0x0c, 0xb6, 0x83, 0x51, - 0xad, 0x1f, 0x89, 0x49, 0x22, 0x19, 0x49, 0xa6, 0xf6, 0x07, 0xe8, 0x7d, 0x1f, 0xab, 0xc7, 0x1e, - 0xc7, 0x0e, 0x66, 0x24, 0xb7, 0x1d, 0xfb, 0x09, 0x86, 0xff, 0xd4, 0x55, 0xc2, 0x2e, 0x63, 0x27, - 0x49, 0xef, 0x3d, 0xde, 0x7b, 0x82, 0x87, 0x8f, 0x04, 0x64, 0x46, 0x49, 0xe1, 0x73, 0xc8, 0xfd, - 0x79, 0xb2, 0x48, 0x4c, 0x24, 0x15, 0x07, 0x15, 0x19, 0xc5, 0x44, 0x3c, 0x85, 0x28, 0xd3, 0xa0, - 0xbc, 0x54, 0x49, 0x23, 0x49, 0xbf, 0xd5, 0x7a, 0x1c, 0xf2, 0xc3, 0xfd, 0x89, 0x9c, 0xc8, 0x1a, - 0xf7, 0xab, 0x5b, 0x23, 0x39, 0x74, 0x6d, 0x3b, 0xa3, 0x18, 0x87, 0x28, 0x65, 0x89, 0x8a, 0x12, - 0xde, 0x0a, 0xf6, 0xd7, 0x04, 0x79, 0x83, 0x0e, 0xaf, 0xb7, 0xf1, 0xc1, 0xfb, 0x2a, 0xfc, 0xa2, - 0xca, 0x0e, 0x9b, 0xe8, 0xcf, 0x1a, 0x14, 0x39, 0xc5, 0xf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 0x00, } func (m *LimitOrderTrancheUser) Marshal() (dAtA []byte, err error) { @@ -217,9 +219,9 @@ func (m *LimitOrderTrancheUser) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if m.TradePairID != nil { + if m.TradePairId != nil { { - size, err := m.TradePairID.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradePairId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -249,8 +251,8 @@ func (m *LimitOrderTrancheUser) Size() (n int) { } var l int _ = l - if m.TradePairID != nil { - l = m.TradePairID.Size() + if m.TradePairId != nil { + l = m.TradePairId.Size() n += 1 + l + sovLimitOrderTrancheUser(uint64(l)) } if m.TickIndexTakerToMaker != 0 { @@ -313,7 +315,7 @@ func (m *LimitOrderTrancheUser) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradePairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradePairId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -340,10 +342,10 @@ func (m *LimitOrderTrancheUser) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradePairID == nil { - m.TradePairID = &TradePairID{} + if m.TradePairId == nil { + m.TradePairId = &TradePairID{} } - if err := m.TradePairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradePairId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/dex/types/pool.go b/x/dex/types/pool.go index 72e73e9ae..e5c6ad381 100644 --- a/x/dex/types/pool.go +++ b/x/dex/types/pool.go @@ -3,6 +3,7 @@ package types import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/utils" ) @@ -16,7 +17,7 @@ func NewPool( feeInt64 := utils.MustSafeUint64ToInt64(fee) id0To1 := &PoolReservesKey{ - TradePairID: NewTradePairIDFromMaker(pairID, pairID.Token1), + TradePairId: NewTradePairIDFromMaker(pairID, pairID.Token1), TickIndexTakerToMaker: centerTickIndexNormalized + feeInt64, Fee: fee, } @@ -31,7 +32,7 @@ func NewPool( return &Pool{ LowerTick0: lowerTick, UpperTick1: upperTick, - ID: id, + Id: id, }, nil } @@ -152,7 +153,7 @@ func (p *Pool) Deposit( } func (p *Pool) GetPoolDenom() string { - return NewPoolDenom(p.ID) + return NewPoolDenom(p.Id) } func (p *Pool) Price(tradePairID *TradePairID) math_utils.PrecDec { diff --git a/x/dex/types/pool.pb.go b/x/dex/types/pool.pb.go index 7824ad7d1..8ddb0f09d 100644 --- a/x/dex/types/pool.pb.go +++ b/x/dex/types/pool.pb.go @@ -24,7 +24,7 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Pool struct { - ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` LowerTick0 *PoolReserves `protobuf:"bytes,2,opt,name=lower_tick0,json=lowerTick0,proto3" json:"lower_tick0,omitempty"` UpperTick1 *PoolReserves `protobuf:"bytes,3,opt,name=upper_tick1,json=upperTick1,proto3" json:"upper_tick1,omitempty"` } @@ -62,9 +62,9 @@ func (m *Pool) XXX_DiscardUnknown() { var xxx_messageInfo_Pool proto.InternalMessageInfo -func (m *Pool) GetID() uint64 { +func (m *Pool) GetId() uint64 { if m != nil { - return m.ID + return m.Id } return 0 } @@ -96,7 +96,7 @@ var fileDescriptor_6ad7a9165eac1fde = []byte{ 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x8a, 0xeb, 0xa5, 0xa4, 0x56, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xc5, 0xf5, 0x41, 0x2c, 0x88, 0x12, 0x29, 0x79, 0x74, 0xad, 0xf1, 0x45, 0xa9, 0xc5, 0xa9, 0x45, 0x65, 0xa9, 0xc5, 0x10, 0x05, 0x4a, 0x7d, 0x8c, 0x5c, 0x2c, 0x01, 0xf9, 0xf9, 0x39, 0x42, - 0x7c, 0x5c, 0x4c, 0x9e, 0x2e, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x4c, 0x9e, 0x2e, 0x42, + 0x7c, 0x5c, 0x4c, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x4c, 0x99, 0x29, 0x42, 0x56, 0x5c, 0xdc, 0x39, 0xf9, 0xe5, 0xa9, 0x45, 0xf1, 0x25, 0x99, 0xc9, 0xd9, 0x06, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x92, 0x7a, 0x48, 0x56, 0xea, 0x81, 0xf4, 0x05, 0x41, 0x8d, 0x0b, 0xe2, 0x02, 0xab, 0x0e, 0x01, 0x29, 0x06, 0xe9, 0x2d, 0x2d, 0x28, 0x80, 0xea, 0x35, 0x94, 0x60, @@ -104,7 +104,7 @@ var fileDescriptor_6ad7a9165eac1fde = []byte{ 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xb4, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xa1, 0x46, 0xe9, 0xe6, 0x17, 0xa5, 0xc3, 0xd8, 0xfa, 0x15, 0x60, 0x4f, 0x96, 0x54, 0x16, 0xa4, - 0x16, 0x27, 0xb1, 0x81, 0x7d, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x23, 0x45, 0x18, + 0x16, 0x27, 0xb1, 0x81, 0x7d, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x6f, 0x46, 0xc2, 0x3b, 0x01, 0x00, 0x00, } @@ -152,8 +152,8 @@ func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.ID != 0 { - i = encodeVarintPool(dAtA, i, uint64(m.ID)) + if m.Id != 0 { + i = encodeVarintPool(dAtA, i, uint64(m.Id)) i-- dAtA[i] = 0x8 } @@ -177,8 +177,8 @@ func (m *Pool) Size() (n int) { } var l int _ = l - if m.ID != 0 { - n += 1 + sovPool(uint64(m.ID)) + if m.Id != 0 { + n += 1 + sovPool(uint64(m.Id)) } if m.LowerTick0 != nil { l = m.LowerTick0.Size() @@ -228,9 +228,9 @@ func (m *Pool) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - m.ID = 0 + m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPool @@ -240,7 +240,7 @@ func (m *Pool) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ID |= uint64(b&0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/dex/types/pool_metadata.go b/x/dex/types/pool_metadata.go index 1f2e70606..4d24c6d0f 100644 --- a/x/dex/types/pool_metadata.go +++ b/x/dex/types/pool_metadata.go @@ -1,5 +1,5 @@ package types func NewPoolMetadata(pairID *PairID, tick int64, fee, poolID uint64) PoolMetadata { - return PoolMetadata{PairID: pairID, Tick: tick, Fee: fee, ID: poolID} + return PoolMetadata{PairId: pairID, Tick: tick, Fee: fee, Id: poolID} } diff --git a/x/dex/types/pool_metadata.pb.go b/x/dex/types/pool_metadata.pb.go index 91d5a3654..83c059c9a 100644 --- a/x/dex/types/pool_metadata.pb.go +++ b/x/dex/types/pool_metadata.pb.go @@ -23,10 +23,10 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type PoolMetadata struct { - ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Tick int64 `protobuf:"varint,2,opt,name=tick,proto3" json:"tick,omitempty"` Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` - PairID *PairID `protobuf:"bytes,4,opt,name=pairID,proto3" json:"pairID,omitempty"` + PairId *PairID `protobuf:"bytes,4,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` } func (m *PoolMetadata) Reset() { *m = PoolMetadata{} } @@ -62,9 +62,9 @@ func (m *PoolMetadata) XXX_DiscardUnknown() { var xxx_messageInfo_PoolMetadata proto.InternalMessageInfo -func (m *PoolMetadata) GetID() uint64 { +func (m *PoolMetadata) GetId() uint64 { if m != nil { - return m.ID + return m.Id } return 0 } @@ -83,9 +83,9 @@ func (m *PoolMetadata) GetFee() uint64 { return 0 } -func (m *PoolMetadata) GetPairID() *PairID { +func (m *PoolMetadata) GetPairId() *PairID { if m != nil { - return m.PairID + return m.PairId } return nil } @@ -97,21 +97,22 @@ func init() { func init() { proto.RegisterFile("neutron/dex/pool_metadata.proto", fileDescriptor_c2ee8eaeac9c06d8) } var fileDescriptor_c2ee8eaeac9c06d8 = []byte{ - // 223 bytes of a gzipped FileDescriptorProto + // 227 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc8, 0xcf, 0xcf, 0x89, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x2a, 0xd0, 0x4b, 0x49, 0xad, 0x90, 0x92, 0x44, 0x51, 0x9d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fb, - 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xa8, 0xc5, 0x28, 0x0a, 0x01, 0x00, 0x00, + 0xa5, 0xa6, 0x4a, 0x30, 0x83, 0x15, 0x81, 0x98, 0x42, 0x3a, 0x5c, 0xec, 0x50, 0x63, 0x25, 0x58, + 0x14, 0x18, 0x35, 0xb8, 0x8d, 0x84, 0xf5, 0x90, 0xec, 0xd7, 0x0b, 0x48, 0xcc, 0x2c, 0xf2, 0x74, + 0x09, 0x62, 0x03, 0xa9, 0xf1, 0x4c, 0x71, 0x72, 0x39, 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, 0xad, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, + 0x01, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0xd8, 0x07, 0x25, 0x95, 0x05, 0xa9, 0xc5, + 0x49, 0x6c, 0x60, 0x0f, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe3, 0xe2, 0x08, 0xd4, 0x0b, + 0x01, 0x00, 0x00, } func (m *PoolMetadata) Marshal() (dAtA []byte, err error) { @@ -134,9 +135,9 @@ func (m *PoolMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.PairID != nil { + if m.PairId != nil { { - size, err := m.PairID.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PairId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -156,8 +157,8 @@ func (m *PoolMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if m.ID != 0 { - i = encodeVarintPoolMetadata(dAtA, i, uint64(m.ID)) + if m.Id != 0 { + i = encodeVarintPoolMetadata(dAtA, i, uint64(m.Id)) i-- dAtA[i] = 0x8 } @@ -181,8 +182,8 @@ func (m *PoolMetadata) Size() (n int) { } var l int _ = l - if m.ID != 0 { - n += 1 + sovPoolMetadata(uint64(m.ID)) + if m.Id != 0 { + n += 1 + sovPoolMetadata(uint64(m.Id)) } if m.Tick != 0 { n += 1 + sovPoolMetadata(uint64(m.Tick)) @@ -190,8 +191,8 @@ func (m *PoolMetadata) Size() (n int) { if m.Fee != 0 { n += 1 + sovPoolMetadata(uint64(m.Fee)) } - if m.PairID != nil { - l = m.PairID.Size() + if m.PairId != nil { + l = m.PairId.Size() n += 1 + l + sovPoolMetadata(uint64(l)) } return n @@ -234,9 +235,9 @@ func (m *PoolMetadata) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - m.ID = 0 + m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPoolMetadata @@ -246,7 +247,7 @@ func (m *PoolMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ID |= uint64(b&0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -291,7 +292,7 @@ func (m *PoolMetadata) Unmarshal(dAtA []byte) error { } case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -318,10 +319,10 @@ func (m *PoolMetadata) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PairID == nil { - m.PairID = &PairID{} + if m.PairId == nil { + m.PairId = &PairID{} } - if err := m.PairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PairId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/dex/types/pool_reserves.pb.go b/x/dex/types/pool_reserves.pb.go index eab47e55b..5350404f5 100644 --- a/x/dex/types/pool_reserves.pb.go +++ b/x/dex/types/pool_reserves.pb.go @@ -26,9 +26,9 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type PoolReservesKey struct { - TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` - TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=TickIndexTakerToMaker,proto3" json:"TickIndexTakerToMaker,omitempty"` - Fee uint64 `protobuf:"varint,3,opt,name=Fee,proto3" json:"Fee,omitempty"` + TradePairId *TradePairID `protobuf:"bytes,1,opt,name=trade_pair_id,json=tradePairId,proto3" json:"trade_pair_id,omitempty"` + TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tick_index_taker_to_maker,json=tickIndexTakerToMaker,proto3" json:"tick_index_taker_to_maker,omitempty"` + Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` } func (m *PoolReservesKey) Reset() { *m = PoolReservesKey{} } @@ -64,9 +64,9 @@ func (m *PoolReservesKey) XXX_DiscardUnknown() { var xxx_messageInfo_PoolReservesKey proto.InternalMessageInfo -func (m *PoolReservesKey) GetTradePairID() *TradePairID { +func (m *PoolReservesKey) GetTradePairId() *TradePairID { if m != nil { - return m.TradePairID + return m.TradePairId } return nil } @@ -87,9 +87,9 @@ func (m *PoolReservesKey) GetFee() uint64 { type PoolReserves struct { Key *PoolReservesKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` - PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,3,opt,name=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` - PriceOppositeTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,4,opt,name=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceOppositeTakerToMaker" yaml:"priceOppositeTakerToMaker"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reserves_maker_denom,json=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` + PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,3,opt,name=price_taker_to_maker,json=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` + PriceOppositeTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,4,opt,name=price_opposite_taker_to_maker,json=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceOppositeTakerToMaker" yaml:"priceOppositeTakerToMaker"` } func (m *PoolReserves) Reset() { *m = PoolReserves{} } @@ -140,35 +140,37 @@ func init() { func init() { proto.RegisterFile("neutron/dex/pool_reserves.proto", fileDescriptor_f0fe9f734c7ad538) } var fileDescriptor_f0fe9f734c7ad538 = []byte{ - // 440 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0x87, 0x3b, 0xa6, 0x08, 0x4e, 0x05, 0x75, 0x50, 0xc8, 0x2e, 0x92, 0x94, 0x1c, 0xa4, 0x08, - 0x3b, 0xc1, 0x3f, 0xa7, 0x3d, 0x2e, 0x45, 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0x6b, 0x5d, 0xad, 0xbd, 0xd6, 0x8f, 0xb5, 0xd7, 0x7a, 0xf7, 0xf4, 0x1f, 0xa2, 0x8b, - 0xed, 0x58, 0x94, 0xbf, 0xf9, 0xfc, 0xb6, 0x9d, 0x87, 0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, - 0xfb, 0xee, 0x71, 0xc4, 0x76, 0x03, 0x00, 0x00, + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x41, 0x8b, 0xd3, 0x40, + 0x14, 0x80, 0x3b, 0xa6, 0x08, 0x4e, 0x15, 0x75, 0xa8, 0x90, 0x2e, 0x9a, 0x94, 0x1c, 0xa4, 0x08, + 0x9b, 0xa0, 0x5e, 0x44, 0x3c, 0x2d, 0xbd, 0x14, 0x11, 0x4b, 0xe8, 0xc9, 0x4b, 0xc8, 0x26, 0xcf, + 0xee, 0xd8, 0x26, 0x2f, 0x4c, 0xa6, 0xd2, 0xfa, 0x2b, 0x04, 0x8f, 0xfb, 0x2b, 0xbc, 0xfb, 0x03, + 0xf6, 0xb8, 0x47, 0xf1, 0x10, 0xa4, 0xbd, 0xed, 0x71, 0x7f, 0x81, 0xcc, 0x24, 0x95, 0xb4, 0xa9, + 0x78, 0xd8, 0xd3, 0xbc, 0xcc, 0xfb, 0xe6, 0xbd, 0x6f, 0x5e, 0x18, 0x6a, 0xa7, 0xb0, 0x90, 0x02, + 0x53, 0x2f, 0x86, 0xa5, 0x97, 0x21, 0xce, 0x03, 0x01, 0x39, 0x88, 0xcf, 0x90, 0xbb, 0x99, 0x40, + 0x89, 0xac, 0x53, 0x01, 0x6e, 0x0c, 0xcb, 0xa3, 0xee, 0x14, 0xa7, 0xa8, 0xf7, 0x3d, 0x15, 0x95, + 0xc8, 0xd1, 0x4e, 0x0d, 0x29, 0xc2, 0x18, 0x82, 0x2c, 0xe4, 0x22, 0xe0, 0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, 0x39, 0xa1, 0xdd, 0x4c, 0xf0, 0x08, 0xf6, 0xc7, 0x63, 0x68, 0xab, 0x4f, 0x95, + 0xd5, 0xf3, 0x9a, 0x55, 0x75, 0xd3, 0x63, 0x14, 0xd3, 0x6d, 0xec, 0x2d, 0x24, 0x9f, 0xe7, 0x5e, + 0x12, 0xca, 0x33, 0x77, 0x2c, 0x20, 0x1a, 0x42, 0x74, 0x55, 0xd8, 0x0f, 0x75, 0xe1, 0xfa, 0x5c, + 0xaf, 0x0b, 0xdb, 0x2c, 0xfd, 0x1a, 0x29, 0xc7, 0x6f, 0xe2, 0xec, 0x07, 0xa1, 0x4f, 0x4a, 0x3b, + 0xcc, 0x32, 0xcc, 0xb9, 0x6c, 0x68, 0xb6, 0xb5, 0xe6, 0x97, 0x9b, 0x68, 0xf6, 0x74, 0x87, 0xf7, + 0x55, 0x83, 0x3d, 0xdd, 0x7e, 0x4d, 0xf7, 0x10, 0xe2, 0xf8, 0xff, 0x3e, 0x7e, 0x32, 0xbc, 0x58, + 0x5b, 0xe4, 0x72, 0x6d, 0x91, 0xdf, 0x6b, 0x8b, 0x7c, 0xdd, 0x58, 0xad, 0xcb, 0x8d, 0xd5, 0xfa, + 0xb9, 0xb1, 0x5a, 0x1f, 0x9e, 0xfd, 0x47, 0x74, 0x59, 0xbe, 0x12, 0xf5, 0xb7, 0x4f, 0x6f, 0xeb, + 0xe7, 0xf1, 0xf2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x52, 0xb3, 0x3e, 0x85, 0x03, 0x00, + 0x00, } func (m *PoolReservesKey) Marshal() (dAtA []byte, err error) { @@ -201,9 +203,9 @@ func (m *PoolReservesKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if m.TradePairID != nil { + if m.TradePairId != nil { { - size, err := m.TradePairID.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradePairId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -298,8 +300,8 @@ func (m *PoolReservesKey) Size() (n int) { } var l int _ = l - if m.TradePairID != nil { - l = m.TradePairID.Size() + if m.TradePairId != nil { + l = m.TradePairId.Size() n += 1 + l + sovPoolReserves(uint64(l)) } if m.TickIndexTakerToMaker != 0 { @@ -367,7 +369,7 @@ func (m *PoolReservesKey) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradePairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradePairId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -394,10 +396,10 @@ func (m *PoolReservesKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradePairID == nil { - m.TradePairID = &TradePairID{} + if m.TradePairId == nil { + m.TradePairId = &TradePairID{} } - if err := m.TradePairID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradePairId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/dex/types/pool_reserves_key.go b/x/dex/types/pool_reserves_key.go index 766a5ca42..da445e3b3 100644 --- a/x/dex/types/pool_reserves_key.go +++ b/x/dex/types/pool_reserves_key.go @@ -2,6 +2,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" + math_utils "github.com/neutron-org/neutron/utils/math" "github.com/neutron-org/neutron/x/dex/utils" ) @@ -11,11 +12,11 @@ var _ TickLiquidityKey = (*PoolReservesKey)(nil) func (p PoolReservesKey) KeyMarshal() []byte { var key []byte - pairKeyBytes := []byte(p.TradePairID.MustPairID().CanonicalString()) + pairKeyBytes := []byte(p.TradePairId.MustPairID().CanonicalString()) key = append(key, pairKeyBytes...) key = append(key, []byte("/")...) - makerDenomBytes := []byte(p.TradePairID.MakerDenom) + makerDenomBytes := []byte(p.TradePairId.MakerDenom) key = append(key, makerDenomBytes...) key = append(key, []byte("/")...) @@ -37,7 +38,7 @@ func (p PoolReservesKey) KeyMarshal() []byte { func (p PoolReservesKey) Counterpart() *PoolReservesKey { feeInt64 := utils.MustSafeUint64ToInt64(p.Fee) return &PoolReservesKey{ - TradePairID: p.TradePairID.Reversed(), + TradePairId: p.TradePairId.Reversed(), TickIndexTakerToMaker: p.TickIndexTakerToMaker*-1 + 2*feeInt64, Fee: p.Fee, } diff --git a/x/dex/types/query.pb.go b/x/dex/types/query.pb.go index b2537e353..3d548f0a1 100644 --- a/x/dex/types/query.pb.go +++ b/x/dex/types/query.pb.go @@ -122,7 +122,7 @@ func (m *QueryParamsResponse) GetParams() Params { type QueryGetLimitOrderTrancheUserRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + TrancheKey string `protobuf:"bytes,2,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` } func (m *QueryGetLimitOrderTrancheUserRequest) Reset() { *m = QueryGetLimitOrderTrancheUserRequest{} } @@ -173,7 +173,7 @@ func (m *QueryGetLimitOrderTrancheUserRequest) GetTrancheKey() string { } type QueryGetLimitOrderTrancheUserResponse struct { - LimitOrderTrancheUser *LimitOrderTrancheUser `protobuf:"bytes,1,opt,name=LimitOrderTrancheUser,proto3" json:"LimitOrderTrancheUser,omitempty"` + LimitOrderTrancheUser *LimitOrderTrancheUser `protobuf:"bytes,1,opt,name=limit_order_tranche_user,json=limitOrderTrancheUser,proto3" json:"limit_order_tranche_user,omitempty"` } func (m *QueryGetLimitOrderTrancheUserResponse) Reset() { *m = QueryGetLimitOrderTrancheUserResponse{} } @@ -261,7 +261,7 @@ func (m *QueryAllLimitOrderTrancheUserRequest) GetPagination() *query.PageReques } type QueryAllLimitOrderTrancheUserResponse struct { - LimitOrderTrancheUser []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=LimitOrderTrancheUser,proto3" json:"LimitOrderTrancheUser,omitempty"` + LimitOrderTrancheUser []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=limit_order_tranche_user,json=limitOrderTrancheUser,proto3" json:"limit_order_tranche_user,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -313,10 +313,10 @@ func (m *QueryAllLimitOrderTrancheUserResponse) GetPagination() *query.PageRespo } type QueryGetLimitOrderTrancheRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TickIndex int64 `protobuf:"varint,2,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` - TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` - TrancheKey string `protobuf:"bytes,4,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TickIndex int64 `protobuf:"varint,2,opt,name=tick_index,json=tickIndex,proto3" json:"tick_index,omitempty"` + TokenIn string `protobuf:"bytes,3,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` + TrancheKey string `protobuf:"bytes,4,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` } func (m *QueryGetLimitOrderTrancheRequest) Reset() { *m = QueryGetLimitOrderTrancheRequest{} } @@ -352,9 +352,9 @@ func (m *QueryGetLimitOrderTrancheRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryGetLimitOrderTrancheRequest proto.InternalMessageInfo -func (m *QueryGetLimitOrderTrancheRequest) GetPairID() string { +func (m *QueryGetLimitOrderTrancheRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -381,7 +381,7 @@ func (m *QueryGetLimitOrderTrancheRequest) GetTrancheKey() string { } type QueryGetLimitOrderTrancheResponse struct { - LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=LimitOrderTranche,proto3" json:"LimitOrderTranche,omitempty"` + LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=limit_order_tranche,json=limitOrderTranche,proto3" json:"limit_order_tranche,omitempty"` } func (m *QueryGetLimitOrderTrancheResponse) Reset() { *m = QueryGetLimitOrderTrancheResponse{} } @@ -425,8 +425,8 @@ func (m *QueryGetLimitOrderTrancheResponse) GetLimitOrderTranche() *LimitOrderTr } type QueryAllLimitOrderTrancheRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -463,9 +463,9 @@ func (m *QueryAllLimitOrderTrancheRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllLimitOrderTrancheRequest proto.InternalMessageInfo -func (m *QueryAllLimitOrderTrancheRequest) GetPairID() string { +func (m *QueryAllLimitOrderTrancheRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -485,7 +485,7 @@ func (m *QueryAllLimitOrderTrancheRequest) GetPagination() *query.PageRequest { } type QueryAllLimitOrderTrancheResponse struct { - LimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=LimitOrderTranche,proto3" json:"LimitOrderTranche,omitempty"` + LimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=limit_order_tranche,json=limitOrderTranche,proto3" json:"limit_order_tranche,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -589,7 +589,7 @@ func (m *QueryAllUserDepositsRequest) GetPagination() *query.PageRequest { } type QueryAllUserDepositsResponse struct { - Deposits []*DepositRecord `protobuf:"bytes,1,rep,name=Deposits,proto3" json:"Deposits,omitempty"` + Deposits []*DepositRecord `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -693,7 +693,7 @@ func (m *QueryAllUserLimitOrdersRequest) GetPagination() *query.PageRequest { } type QueryAllUserLimitOrdersResponse struct { - LimitOrders []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=limitOrders,proto3" json:"limitOrders,omitempty"` + LimitOrders []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=limit_orders,json=limitOrders,proto3" json:"limit_orders,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -745,8 +745,8 @@ func (m *QueryAllUserLimitOrdersResponse) GetPagination() *query.PageResponse { } type QueryAllTickLiquidityRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -783,9 +783,9 @@ func (m *QueryAllTickLiquidityRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllTickLiquidityRequest proto.InternalMessageInfo -func (m *QueryAllTickLiquidityRequest) GetPairID() string { +func (m *QueryAllTickLiquidityRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -805,7 +805,7 @@ func (m *QueryAllTickLiquidityRequest) GetPagination() *query.PageRequest { } type QueryAllTickLiquidityResponse struct { - TickLiquidity []*TickLiquidity `protobuf:"bytes,1,rep,name=tickLiquidity,proto3" json:"tickLiquidity,omitempty"` + TickLiquidity []*TickLiquidity `protobuf:"bytes,1,rep,name=tick_liquidity,json=tickLiquidity,proto3" json:"tick_liquidity,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -857,10 +857,10 @@ func (m *QueryAllTickLiquidityResponse) GetPagination() *query.PageResponse { } type QueryGetInactiveLimitOrderTrancheRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` - TickIndex int64 `protobuf:"varint,3,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` - TrancheKey string `protobuf:"bytes,4,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` + TickIndex int64 `protobuf:"varint,3,opt,name=tick_index,json=tickIndex,proto3" json:"tick_index,omitempty"` + TrancheKey string `protobuf:"bytes,4,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` } func (m *QueryGetInactiveLimitOrderTrancheRequest) Reset() { @@ -898,9 +898,9 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryGetInactiveLimitOrderTrancheRequest proto.InternalMessageInfo -func (m *QueryGetInactiveLimitOrderTrancheRequest) GetPairID() string { +func (m *QueryGetInactiveLimitOrderTrancheRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -927,7 +927,7 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTrancheKey() string { } type QueryGetInactiveLimitOrderTrancheResponse struct { - InactiveLimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=inactiveLimitOrderTranche,proto3" json:"inactiveLimitOrderTranche,omitempty"` + InactiveLimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=inactive_limit_order_tranche,json=inactiveLimitOrderTranche,proto3" json:"inactive_limit_order_tranche,omitempty"` } func (m *QueryGetInactiveLimitOrderTrancheResponse) Reset() { @@ -1021,7 +1021,7 @@ func (m *QueryAllInactiveLimitOrderTrancheRequest) GetPagination() *query.PageRe } type QueryAllInactiveLimitOrderTrancheResponse struct { - InactiveLimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=inactiveLimitOrderTranche,proto3" json:"inactiveLimitOrderTranche,omitempty"` + InactiveLimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=inactive_limit_order_tranche,json=inactiveLimitOrderTranche,proto3" json:"inactive_limit_order_tranche,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -1077,8 +1077,8 @@ func (m *QueryAllInactiveLimitOrderTrancheResponse) GetPagination() *query.PageR } type QueryAllPoolReservesRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -1115,9 +1115,9 @@ func (m *QueryAllPoolReservesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllPoolReservesRequest proto.InternalMessageInfo -func (m *QueryAllPoolReservesRequest) GetPairID() string { +func (m *QueryAllPoolReservesRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -1137,7 +1137,7 @@ func (m *QueryAllPoolReservesRequest) GetPagination() *query.PageRequest { } type QueryAllPoolReservesResponse struct { - PoolReserves []*PoolReserves `protobuf:"bytes,1,rep,name=poolReserves,proto3" json:"poolReserves,omitempty"` + PoolReserves []*PoolReserves `protobuf:"bytes,1,rep,name=pool_reserves,json=poolReserves,proto3" json:"pool_reserves,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -1189,9 +1189,9 @@ func (m *QueryAllPoolReservesResponse) GetPagination() *query.PageResponse { } type QueryGetPoolReservesRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` - TickIndex int64 `protobuf:"varint,3,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TokenIn string `protobuf:"bytes,2,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` + TickIndex int64 `protobuf:"varint,3,opt,name=tick_index,json=tickIndex,proto3" json:"tick_index,omitempty"` Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` } @@ -1228,9 +1228,9 @@ func (m *QueryGetPoolReservesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryGetPoolReservesRequest proto.InternalMessageInfo -func (m *QueryGetPoolReservesRequest) GetPairID() string { +func (m *QueryGetPoolReservesRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -1257,7 +1257,7 @@ func (m *QueryGetPoolReservesRequest) GetFee() uint64 { } type QueryGetPoolReservesResponse struct { - PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=poolReserves,proto3" json:"poolReserves,omitempty"` + PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=pool_reserves,json=poolReserves,proto3" json:"pool_reserves,omitempty"` } func (m *QueryGetPoolReservesResponse) Reset() { *m = QueryGetPoolReservesResponse{} } @@ -1304,11 +1304,11 @@ type QueryEstimateMultiHopSwapRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. - PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` + PickBestRoute bool `protobuf:"varint,6,opt,name=pick_best_route,json=pickBestRoute,proto3" json:"pick_best_route,omitempty"` } func (m *QueryEstimateMultiHopSwapRequest) Reset() { *m = QueryEstimateMultiHopSwapRequest{} } @@ -1373,7 +1373,7 @@ func (m *QueryEstimateMultiHopSwapRequest) GetPickBestRoute() bool { } type QueryEstimateMultiHopSwapResponse struct { - CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` + CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coin_out,json=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` } func (m *QueryEstimateMultiHopSwapResponse) Reset() { *m = QueryEstimateMultiHopSwapResponse{} } @@ -1412,14 +1412,14 @@ var xxx_messageInfo_QueryEstimateMultiHopSwapResponse proto.InternalMessageInfo type QueryEstimatePlaceLimitOrderRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` - TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` - TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - OrderType LimitOrderType `protobuf:"varint,7,opt,name=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"orderType,omitempty"` + TokenIn string `protobuf:"bytes,3,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` + TokenOut string `protobuf:"bytes,4,opt,name=token_out,json=tokenOut,proto3" json:"token_out,omitempty"` + TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tick_index_in_to_out,json=tickIndexInToOut,proto3" json:"tick_index_in_to_out,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + OrderType LimitOrderType `protobuf:"varint,7,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. - ExpirationTime *time.Time `protobuf:"bytes,8,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` - MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` + ExpirationTime *time.Time `protobuf:"bytes,8,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` + MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=maxAmount_out,json=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` } func (m *QueryEstimatePlaceLimitOrderRequest) Reset() { *m = QueryEstimatePlaceLimitOrderRequest{} } @@ -1507,13 +1507,13 @@ func (m *QueryEstimatePlaceLimitOrderRequest) GetExpirationTime() *time.Time { type QueryEstimatePlaceLimitOrderResponse struct { // Total amount of coin used for the limit order // You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin - TotalInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=totalInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"totalInCoin" yaml:"totalInCoin"` + TotalInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=total_in_coin,json=totalInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"totalInCoin" yaml:"totalInCoin"` // Total amount of the token in that was immediately swapped for swapOutCoin - SwapInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=swapInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapInCoin" yaml:"swapInCoin"` + SwapInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=swap_in_coin,json=swapInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapInCoin" yaml:"swapInCoin"` // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - SwapOutCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=swapOutCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapOutCoin" yaml:"swapOutCoin"` + SwapOutCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=swap_out_coin,json=swapOutCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapOutCoin" yaml:"swapOutCoin"` } func (m *QueryEstimatePlaceLimitOrderResponse) Reset() { *m = QueryEstimatePlaceLimitOrderResponse{} } @@ -1550,8 +1550,8 @@ func (m *QueryEstimatePlaceLimitOrderResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryEstimatePlaceLimitOrderResponse proto.InternalMessageInfo type QueryPoolRequest struct { - PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` - TickIndex int64 `protobuf:"varint,2,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` + PairId string `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` + TickIndex int64 `protobuf:"varint,2,opt,name=tick_index,json=tickIndex,proto3" json:"tick_index,omitempty"` Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` } @@ -1588,9 +1588,9 @@ func (m *QueryPoolRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPoolRequest proto.InternalMessageInfo -func (m *QueryPoolRequest) GetPairID() string { +func (m *QueryPoolRequest) GetPairId() string { if m != nil { - return m.PairID + return m.PairId } return "" } @@ -1610,7 +1610,7 @@ func (m *QueryPoolRequest) GetFee() uint64 { } type QueryPoolByIDRequest struct { - PoolID uint64 `protobuf:"varint,1,opt,name=poolID,proto3" json:"poolID,omitempty"` + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` } func (m *QueryPoolByIDRequest) Reset() { *m = QueryPoolByIDRequest{} } @@ -1646,9 +1646,9 @@ func (m *QueryPoolByIDRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPoolByIDRequest proto.InternalMessageInfo -func (m *QueryPoolByIDRequest) GetPoolID() uint64 { +func (m *QueryPoolByIDRequest) GetPoolId() uint64 { if m != nil { - return m.PoolID + return m.PoolId } return 0 } @@ -1742,7 +1742,7 @@ func (m *QueryGetPoolMetadataRequest) GetId() uint64 { } type QueryGetPoolMetadataResponse struct { - PoolMetadata PoolMetadata `protobuf:"bytes,1,opt,name=PoolMetadata,proto3" json:"PoolMetadata"` + PoolMetadata PoolMetadata `protobuf:"bytes,1,opt,name=Pool_metadata,json=PoolMetadata,proto3" json:"Pool_metadata"` } func (m *QueryGetPoolMetadataResponse) Reset() { *m = QueryGetPoolMetadataResponse{} } @@ -1830,7 +1830,7 @@ func (m *QueryAllPoolMetadataRequest) GetPagination() *query.PageRequest { } type QueryAllPoolMetadataResponse struct { - PoolMetadata []PoolMetadata `protobuf:"bytes,1,rep,name=PoolMetadata,proto3" json:"PoolMetadata"` + PoolMetadata []PoolMetadata `protobuf:"bytes,1,rep,name=pool_metadata,json=poolMetadata,proto3" json:"pool_metadata"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -1922,139 +1922,144 @@ func init() { func init() { proto.RegisterFile("neutron/dex/query.proto", fileDescriptor_b6613ea5fce61e9c) } var fileDescriptor_b6613ea5fce61e9c = []byte{ - // 2097 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0xcf, 0x6f, 0x1c, 0x49, - 0x15, 0x4e, 0x79, 0x1c, 0xc7, 0xa9, 0xec, 0xe6, 0x47, 0xc5, 0xd9, 0x4c, 0x26, 0xde, 0x19, 0xa7, - 0x49, 0x62, 0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0x80, 0xfa, - 0xe0, 0x91, 0xe4, 0xf1, 0x11, 0xab, 0x56, 0xf3, 0x69, 0x10, 0x8e, 0x7d, 0xd4, 0x8c, 0x5e, 0x49, - 0x11, 0x63, 0x98, 0xa7, 0x6f, 0xd3, 0x56, 0x7e, 0x42, 0x7e, 0x54, 0x5a, 0xb4, 0x1f, 0x21, 0x7c, - 0x29, 0xc3, 0x05, 0xc0, 0xff, 0x3e, 0x3e, 0x93, 0x68, 0x00, 0xd1, 0x68, 0xb1, 0x68, 0x12, 0x2d, - 0x65, 0x70, 0xc8, 0x4c, 0x1e, 0x46, 0x73, 0x21, 0xd6, 0x55, 0xc7, 0x19, 0x18, 0xeb, 0x0d, 0x8c, - 0xbb, 0x4a, 0x07, 0xe7, 0x97, 0xf5, 0x50, 0x02, 0xba, 0x90, 0x80, 0x1e, 0x2e, 0x38, 0x10, 0x82, - 0xbe, 0x61, 0xd5, 0x29, 0xf4, 0x35, 0x95, 0x9e, 0xda, 0x93, 0x28, 0xf2, 0x74, 0x87, 0xd9, 0x91, - 0xe7, 0xc6, 0x10, 0x39, 0xb9, 0x19, 0x8b, 0x68, 0x42, 0x46, 0x34, 0x9f, 0x19, 0x51, 0x08, 0x2e, - 0x16, 0xd2, 0xcf, 0x11, 0x9e, 0x4b, 0x9d, 0xcc, 0x88, 0xbf, 0xd7, 0x84, 0x0c, 0x6d, 0xbf, 0xbc, - 0x0e, 0x52, 0x81, 0x37, 0x32, 0x8b, 0x8f, 0x8a, 0x45, 0x59, 0x76, 0x6b, 0x74, 0x57, 0x82, 0xc8, - 0x99, 0xdd, 0x06, 0xa1, 0x30, 0xce, 0x76, 0xa8, 0x5b, 0x76, 0xf3, 0xb9, 0x50, 0x61, 0xf0, 0xda, - 0xa3, 0xb0, 0xc9, 0x3e, 0x85, 0x3d, 0xc4, 0x17, 0x06, 0x60, 0x02, 0x8a, 0x4d, 0x7c, 0xaa, 0xef, - 0x23, 0xcc, 0x6d, 0x71, 0x30, 0xbd, 0x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ed, 0xab, 0x32, 0x9a, - 0xeb, 0xe4, 0xcd, 0x17, 0x88, 0x86, 0x7c, 0x82, 0xf0, 0x09, 0xb5, 0x8e, 0x29, 0xf0, 0x2e, 0xa4, - 0xce, 0x79, 0x4f, 0xbd, 0xb5, 0x70, 0x65, 0x08, 0x4b, 0x40, 0x79, 0x55, 0xa2, 0xbc, 0x4c, 0x2e, - 0xf6, 0x4b, 0x03, 0x7e, 0xbb, 0x53, 0x65, 0xf1, 0x3b, 0x84, 0x4f, 0xc6, 0x4a, 0x54, 0x02, 0x57, - 0xb2, 0xb7, 0xa4, 0xfa, 0x5c, 0x61, 0x71, 0x18, 0x53, 0x40, 0xf6, 0x96, 0x44, 0x76, 0x8d, 0xe8, - 0x46, 0xfa, 0xcf, 0x85, 0x49, 0xd4, 0xfd, 0x17, 0xe1, 0x73, 0xa9, 0xb5, 0x12, 0x72, 0x3d, 0x51, - 0x93, 0x59, 0x05, 0x9d, 0xc2, 0x5b, 0xa3, 0x76, 0x83, 0x20, 0xbe, 0x27, 0x83, 0xb8, 0x4b, 0xde, - 0x8f, 0x05, 0x71, 0xcf, 0x76, 0x1c, 0x5a, 0xab, 0xbc, 0xac, 0xb2, 0xff, 0x8a, 0xf0, 0x6c, 0x2a, - 0x04, 0x31, 0x33, 0xd7, 0x13, 0xe9, 0x7e, 0x91, 0x60, 0x87, 0xa9, 0x3f, 0x69, 0x86, 0x0c, 0xf6, - 0x0a, 0x99, 0x1f, 0x32, 0x58, 0xf2, 0x5b, 0x84, 0x4f, 0xa8, 0x37, 0xff, 0x74, 0x95, 0x27, 0x54, - 0x36, 0x52, 0x54, 0x9e, 0x54, 0x82, 0xd0, 0xae, 0x4b, 0x64, 0x06, 0x59, 0x32, 0x52, 0x7f, 0x58, - 0x4e, 0x92, 0xd2, 0x23, 0x14, 0x9e, 0x1a, 0x3a, 0x45, 0x9b, 0x85, 0x44, 0x19, 0x0c, 0x09, 0x2e, - 0xa5, 0x3e, 0xa2, 0xdd, 0x94,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 0xd3, 0x22, 0x7a, 0xf2, 0xb4, - 0x88, 0xfe, 0xfd, 0xb4, 0x88, 0x3e, 0x7e, 0x56, 0x3c, 0xf4, 0xe4, 0x59, 0xf1, 0xd0, 0x67, 0xcf, - 0x8a, 0x87, 0x3e, 0x58, 0xcc, 0x28, 0xc3, 0xed, 0x86, 0xf9, 0x4b, 0x5c, 0x57, 0xb7, 0xa6, 0x64, - 0x05, 0xe4, 0xcd, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x47, 0x35, 0x89, 0x1f, 0x24, 0x00, - 0x00, + // 2185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcf, 0x6f, 0x1b, 0xc7, + 0xf5, 0xf7, 0x8a, 0xb2, 0x2c, 0x8d, 0x24, 0x4b, 0x1a, 0xc9, 0x5f, 0xd3, 0x94, 0x4c, 0xca, 0x9b, + 0xd8, 0x92, 0x9d, 0x88, 0x6b, 0xe9, 0x0b, 0x27, 0x85, 0xd1, 0xa0, 0x15, 0xab, 0xc4, 0x61, 0x13, + 0x43, 0xea, 0x56, 0x41, 0x7f, 0xa0, 0xc0, 0x62, 0xc5, 0x1d, 0x4b, 0x5b, 0x2d, 0x77, 0xd7, 0xbb, + 0x43, 0x47, 0xac, 0x61, 0x14, 0xc8, 0x31, 0x28, 0xda, 0xa0, 0x69, 0x0b, 0xb4, 0x87, 0xf4, 0x50, + 0xf4, 0x58, 0xb4, 0x01, 0x8a, 0xf6, 0xd6, 0x43, 0x81, 0x02, 0x39, 0xe4, 0x10, 0x20, 0x97, 0xa2, + 0x05, 0xd8, 0xc2, 0xce, 0xc9, 0xbd, 0xf9, 0x2f, 0x28, 0x66, 0xf6, 0x2d, 0x39, 0x4b, 0xce, 0x72, + 0x49, 0x9b, 0x29, 0x72, 0xd2, 0xee, 0xec, 0x9b, 0x79, 0x9f, 0xf7, 0x99, 0xcf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0x1d, 0x34, 0xee, 0x68, 0xd4, 0xae, 0x93, 0x90, 0x9a, 0x75, 0x1f, 0x0c, 0xfe, + 0xaf, 0xdb, 0x6f, 0x2a, 0x9e, 0x3a, 0xa1, 0xa6, 0x65, 0x52, 0x33, 0x32, 0x50, 0x97, 0x10, 0xfe, + 0x06, 0x9b, 0x83, 0x3d, 0x4e, 0xae, 0x4e, 0xee, 0x36, 0x48, 0x48, 0xd5, 0xd7, 0xd1, 0x62, 0xa2, + 0x35, 0xf4, 0x3d, 0x37, 0x24, 0x78, 0x13, 0x4d, 0x44, 0x93, 0x90, 0x57, 0x56, 0x95, 0xf5, 0xe9, + 0xad, 0xc5, 0xb2, 0x20, 0x86, 0x72, 0x64, 0x5c, 0x19, 0xff, 0xa8, 0x55, 0x3a, 0xa5, 0x83, 0xa1, + 0x6a, 0xa2, 0xe7, 0xf9, 0x48, 0xb7, 0x08, 0x7d, 0x93, 0x31, 0xbf, 0xcb, 0x88, 0xdf, 0x8f, 0x78, + 0x7f, 0x2b, 0x24, 0x01, 0x78, 0xc4, 0x79, 0x74, 0xc6, 0xb4, 0xac, 0x80, 0x84, 0xd1, 0xd8, 0x53, + 0x7a, 0xfc, 0x8a, 0x4b, 0x68, 0x3a, 0x9e, 0xd3, 0x63, 0xd2, 0xcc, 0x8f, 0xf1, 0xaf, 0x08, 0x9a, + 0xde, 0x20, 0x4d, 0xf5, 0x5d, 0x05, 0x5d, 0xce, 0xf0, 0x01, 0xf8, 0x4d, 0x94, 0x4f, 0x93, 0x0a, + 0x44, 0xa4, 0x26, 0x22, 0x92, 0x8e, 0xc6, 0x03, 0x54, 0xf4, 0x73, 0x8e, 0xec, 0xa3, 0xea, 0x42, + 0xbc, 0xdb, 0x8e, 0xd3, 0x37, 0xde, 0xd7, 0x10, 0xea, 0xa8, 0x1d, 0x9c, 0x5f, 0x29, 0x47, 0x32, + 0x28, 0x33, 0x19, 0x94, 0xa3, 0x45, 0x07, 0x62, 0x28, 0xef, 0x99, 0x87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0xac, 0x15, 0x12, 0xac, 0x41, 0x07, 0x9d, 0x27, 0x2e, 0x60, 0xac, 0xdd, 0x63, + 0x74, 0x44, 0xbd, 0xa3, 0xa0, 0xa2, 0x88, 0xb3, 0x33, 0x59, 0xff, 0x43, 0xb2, 0xfe, 0xac, 0xa0, + 0x52, 0x2a, 0x08, 0xe0, 0xeb, 0x0d, 0x34, 0x23, 0x08, 0x2e, 0x1c, 0x7a, 0xaf, 0x9b, 0xee, 0xa8, + 0x6d, 0x84, 0xf4, 0xfd, 0x4a, 0x98, 0xe6, 0x7d, 0xbb, 0x76, 0xfc, 0x66, 0x7c, 0x90, 0xf8, 0x22, + 0xac, 0xe4, 0x0f, 0x15, 0x74, 0x31, 0x05, 0x1c, 0x90, 0x7a, 0x0b, 0x9d, 0x4d, 0x9e, 0x7f, 0xa4, + 0x52, 0x4c, 0xf4, 0x05, 0x3a, 0x67, 0xa9, 0xd8, 0x38, 0x3a, 0x42, 0x3f, 0x50, 0xd0, 0x7a, 0xbc, + 0x35, 0x57, 0x5d, 0xb3, 0x46, 0xed, 0x7b, 0x64, 0xa4, 0xdb, 0x64, 0x32, 0xab, 0xe4, 0xba, 0xb3, + 0x4a, 0x66, 0xea, 0xf8, 0xa9, 0x82, 0xae, 0x0e, 0x00, 0x10, 0x08, 0x26, 0x68, 0xc5, 0x06, 0x23, + 0xe3, 0x59, 0x93, 0xc9, 0x05, 0x3b, 0xcd, 0x9d, 0x1a, 0x00, 0x69, 0xdb, 0x8e, 0x93, 0x49, 0xda, + 0xa8, 0x8e, 0x2c, 0xff, 0x8c, 0x89, 0xe8, 0xef, 0x74, 0x60, 0x22, 0x72, 0x23, 0x20, 0x62, 0x74, + 0x3a, 0xfc, 0xa5, 0xd2, 0xc9, 0x20, 0x7b, 0x9e, 0xe7, 0xe8, 0x70, 0xfe, 0xff, 0x22, 0xac, 0xeb, + 0xdf, 0x09, 0x9b, 0x4e, 0x12, 0x1b, 0x90, 0xbd, 0x83, 0x66, 0x13, 0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8b, 0xca, 0xbf, 0x1f, 0x16, 0x95, 0xf7, 0x1e, 0x15, 0x4f, + 0x7d, 0xf2, 0xa8, 0x78, 0xea, 0xef, 0x8f, 0x8a, 0xa7, 0xbe, 0x7b, 0x2d, 0xa3, 0x66, 0x77, 0x12, + 0x65, 0x33, 0x76, 0x91, 0x3d, 0x98, 0xe0, 0x25, 0x92, 0xff, 0xff, 0x6f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xca, 0x93, 0x0c, 0xc0, 0x76, 0x24, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3036,10 +3041,10 @@ func (m *QueryGetLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (in i-- dAtA[i] = 0x10 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -3120,10 +3125,10 @@ func (m *QueryAllLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (in i-- dAtA[i] = 0x12 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -3400,10 +3405,10 @@ func (m *QueryAllTickLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, e i-- dAtA[i] = 0x12 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -3498,10 +3503,10 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []b i-- dAtA[i] = 0x12 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -3666,10 +3671,10 @@ func (m *QueryAllPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -3762,10 +3767,10 @@ func (m *QueryGetPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -4097,10 +4102,10 @@ func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.PairID) > 0 { - i -= len(m.PairID) - copy(dAtA[i:], m.PairID) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PairID))) + if len(m.PairId) > 0 { + i -= len(m.PairId) + copy(dAtA[i:], m.PairId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PairId))) i-- dAtA[i] = 0xa } @@ -4127,8 +4132,8 @@ func (m *QueryPoolByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.PoolID != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.PoolID)) + if m.PoolId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PoolId)) i-- dAtA[i] = 0x8 } @@ -4414,7 +4419,7 @@ func (m *QueryGetLimitOrderTrancheRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4451,7 +4456,7 @@ func (m *QueryAllLimitOrderTrancheRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4563,7 +4568,7 @@ func (m *QueryAllTickLiquidityRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4603,7 +4608,7 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4672,7 +4677,7 @@ func (m *QueryAllPoolReservesRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4712,7 +4717,7 @@ func (m *QueryGetPoolReservesRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4845,7 +4850,7 @@ func (m *QueryPoolRequest) Size() (n int) { } var l int _ = l - l = len(m.PairID) + l = len(m.PairId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4864,8 +4869,8 @@ func (m *QueryPoolByIDRequest) Size() (n int) { } var l int _ = l - if m.PoolID != 0 { - n += 1 + sovQuery(uint64(m.PoolID)) + if m.PoolId != 0 { + n += 1 + sovQuery(uint64(m.PoolId)) } return n } @@ -5514,7 +5519,7 @@ func (m *QueryGetLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5542,7 +5547,7 @@ func (m *QueryGetLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -5765,7 +5770,7 @@ func (m *QueryAllLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5793,7 +5798,7 @@ func (m *QueryAllLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -6511,7 +6516,7 @@ func (m *QueryAllTickLiquidityRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6539,7 +6544,7 @@ func (m *QueryAllTickLiquidityRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -6781,7 +6786,7 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6809,7 +6814,7 @@ func (m *QueryGetInactiveLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -7238,7 +7243,7 @@ func (m *QueryAllPoolReservesRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7266,7 +7271,7 @@ func (m *QueryAllPoolReservesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -7508,7 +7513,7 @@ func (m *QueryGetPoolReservesRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7536,7 +7541,7 @@ func (m *QueryGetPoolReservesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -8536,7 +8541,7 @@ func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PairID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PairId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8564,7 +8569,7 @@ func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PairID = string(dAtA[iNdEx:postIndex]) + m.PairId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -8656,9 +8661,9 @@ func (m *QueryPoolByIDRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PoolID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) } - m.PoolID = 0 + m.PoolId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8668,7 +8673,7 @@ func (m *QueryPoolByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PoolID |= uint64(b&0x7F) << shift + m.PoolId |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/dex/types/query.pb.gw.go b/x/dex/types/query.pb.gw.go index 0d0fae871..ef38e09cc 100644 --- a/x/dex/types/query.pb.gw.go +++ b/x/dex/types/query.pb.gw.go @@ -73,15 +73,15 @@ func request_Query_LimitOrderTrancheUser_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } - val, ok = pathParams["trancheKey"] + val, ok = pathParams["tranche_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tranche_key") } protoReq.TrancheKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tranche_key", err) } msg, err := client.LimitOrderTrancheUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -111,15 +111,15 @@ func local_request_Query_LimitOrderTrancheUser_0(ctx context.Context, marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } - val, ok = pathParams["trancheKey"] + val, ok = pathParams["tranche_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tranche_key") } protoReq.TrancheKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tranche_key", err) } msg, err := server.LimitOrderTrancheUser(ctx, &protoReq) @@ -246,48 +246,48 @@ func request_Query_LimitOrderTranche_0(ctx context.Context, marshaler runtime.Ma _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } - val, ok = pathParams["trancheKey"] + val, ok = pathParams["tranche_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tranche_key") } protoReq.TrancheKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tranche_key", err) } msg, err := client.LimitOrderTranche(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -306,48 +306,48 @@ func local_request_Query_LimitOrderTranche_0(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } - val, ok = pathParams["trancheKey"] + val, ok = pathParams["tranche_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tranche_key") } protoReq.TrancheKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tranche_key", err) } msg, err := server.LimitOrderTranche(ctx, &protoReq) @@ -356,7 +356,7 @@ func local_request_Query_LimitOrderTranche_0(ctx context.Context, marshaler runt } var ( - filter_Query_LimitOrderTrancheAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pairID": 0, "tokenIn": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_LimitOrderTrancheAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pair_id": 0, "token_in": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_Query_LimitOrderTrancheAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -370,26 +370,26 @@ func request_Query_LimitOrderTrancheAll_0(ctx context.Context, marshaler runtime _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } if err := req.ParseForm(); err != nil { @@ -415,26 +415,26 @@ func local_request_Query_LimitOrderTrancheAll_0(ctx context.Context, marshaler r _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } if err := req.ParseForm(); err != nil { @@ -522,7 +522,7 @@ func local_request_Query_UserDepositsAll_0(ctx context.Context, marshaler runtim } var ( - filter_Query_TickLiquidityAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pairID": 0, "tokenIn": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_TickLiquidityAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pair_id": 0, "token_in": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_Query_TickLiquidityAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -536,26 +536,26 @@ func request_Query_TickLiquidityAll_0(ctx context.Context, marshaler runtime.Mar _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } if err := req.ParseForm(); err != nil { @@ -581,26 +581,26 @@ func local_request_Query_TickLiquidityAll_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } if err := req.ParseForm(); err != nil { @@ -626,48 +626,48 @@ func request_Query_InactiveLimitOrderTranche_0(ctx context.Context, marshaler ru _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } - val, ok = pathParams["trancheKey"] + val, ok = pathParams["tranche_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tranche_key") } protoReq.TrancheKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tranche_key", err) } msg, err := client.InactiveLimitOrderTranche(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -686,48 +686,48 @@ func local_request_Query_InactiveLimitOrderTranche_0(ctx context.Context, marsha _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } - val, ok = pathParams["trancheKey"] + val, ok = pathParams["tranche_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "trancheKey") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tranche_key") } protoReq.TrancheKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "trancheKey", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tranche_key", err) } msg, err := server.InactiveLimitOrderTranche(ctx, &protoReq) @@ -772,7 +772,7 @@ func local_request_Query_InactiveLimitOrderTrancheAll_0(ctx context.Context, mar } var ( - filter_Query_PoolReservesAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pairID": 0, "tokenIn": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_PoolReservesAll_0 = &utilities.DoubleArray{Encoding: map[string]int{"pair_id": 0, "token_in": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_Query_PoolReservesAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -786,26 +786,26 @@ func request_Query_PoolReservesAll_0(ctx context.Context, marshaler runtime.Mars _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } if err := req.ParseForm(); err != nil { @@ -831,26 +831,26 @@ func local_request_Query_PoolReservesAll_0(ctx context.Context, marshaler runtim _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } if err := req.ParseForm(); err != nil { @@ -876,37 +876,37 @@ func request_Query_PoolReserves_0(ctx context.Context, marshaler runtime.Marshal _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } val, ok = pathParams["fee"] @@ -936,37 +936,37 @@ func local_request_Query_PoolReserves_0(ctx context.Context, marshaler runtime.M _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tokenIn"] + val, ok = pathParams["token_in"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tokenIn") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_in") } protoReq.TokenIn, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tokenIn", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_in", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } val, ok = pathParams["fee"] @@ -1068,26 +1068,26 @@ func request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, clie _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } val, ok = pathParams["fee"] @@ -1117,26 +1117,26 @@ func local_request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler _ = err ) - val, ok = pathParams["pairID"] + val, ok = pathParams["pair_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pairID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pair_id") } - protoReq.PairID, err = runtime.String(val) + protoReq.PairId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pairID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pair_id", err) } - val, ok = pathParams["tickIndex"] + val, ok = pathParams["tick_index"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tickIndex") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tick_index") } protoReq.TickIndex, err = runtime.Int64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tickIndex", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tick_index", err) } val, ok = pathParams["fee"] @@ -1166,15 +1166,15 @@ func request_Query_PoolByID_0(ctx context.Context, marshaler runtime.Marshaler, _ = err ) - val, ok = pathParams["poolID"] + val, ok = pathParams["pool_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "poolID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pool_id") } - protoReq.PoolID, err = runtime.Uint64(val) + protoReq.PoolId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "poolID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pool_id", err) } msg, err := client.PoolByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -1193,15 +1193,15 @@ func local_request_Query_PoolByID_0(ctx context.Context, marshaler runtime.Marsh _ = err ) - val, ok = pathParams["poolID"] + val, ok = pathParams["pool_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "poolID") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pool_id") } - protoReq.PoolID, err = runtime.Uint64(val) + protoReq.PoolId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "poolID", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pool_id", err) } msg, err := server.PoolByID(ctx, &protoReq) @@ -2126,35 +2126,35 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTrancheUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "limit_order_tranche_user", "address", "trancheKey"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LimitOrderTrancheUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "limit_order_tranche_user", "address", "tranche_key"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_LimitOrderTrancheUserAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "limit_order_tranche_user"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_LimitOrderTrancheUserAllByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "user", "limit_orders", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "limit_order_tranche", "pair_id", "token_in", "tick_index", "tranche_key"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "limit_order_tranche", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "limit_order_tranche", "pair_id", "token_in"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_UserDepositsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "user", "deposits", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TickLiquidityAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "tick_liquidity", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TickLiquidityAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "tick_liquidity", "pair_id", "token_in"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InactiveLimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "filled_limit_order_tranche", "pairID", "tokenIn", "tickIndex", "trancheKey"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InactiveLimitOrderTranche_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "filled_limit_order_tranche", "pair_id", "token_in", "tick_index", "tranche_key"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_InactiveLimitOrderTrancheAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "filled_limit_order_tranche"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolReservesAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "pool_reserves", "pairID", "tokenIn"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PoolReservesAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"neutron", "dex", "pool_reserves", "pair_id", "token_in"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolReserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "pool_reserves", "pairID", "tokenIn", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PoolReserves_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"neutron", "dex", "pool_reserves", "pair_id", "token_in", "tick_index", "fee"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_EstimateMultiHopSwap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "estimate_multi_hop_swap"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_EstimatePlaceLimitOrder_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"neutron", "dex", "estimate_place_limit_order"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"neutron", "dex", "pool", "pairID", "tickIndex", "fee"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"neutron", "dex", "pool", "pair_id", "tick_index", "fee"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "dex", "pool", "poolID"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PoolByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "dex", "pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_PoolMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"neutron", "dex", "pool_metadata", "id"}, "", runtime.AssumeColonVerbOpt(false))) diff --git a/x/dex/types/tick_liquidity.pb.go b/x/dex/types/tick_liquidity.pb.go index b5b1877c2..96df486af 100644 --- a/x/dex/types/tick_liquidity.pb.go +++ b/x/dex/types/tick_liquidity.pb.go @@ -70,10 +70,10 @@ type isTickLiquidity_Liquidity interface { } type TickLiquidity_PoolReserves struct { - PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=poolReserves,proto3,oneof" json:"poolReserves,omitempty"` + PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=pool_reserves,json=poolReserves,proto3,oneof" json:"pool_reserves,omitempty"` } type TickLiquidity_LimitOrderTranche struct { - LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,2,opt,name=limitOrderTranche,proto3,oneof" json:"limitOrderTranche,omitempty"` + LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,2,opt,name=limit_order_tranche,json=limitOrderTranche,proto3,oneof" json:"limit_order_tranche,omitempty"` } func (*TickLiquidity_PoolReserves) isTickLiquidity_Liquidity() {} @@ -115,24 +115,24 @@ func init() { func init() { proto.RegisterFile("neutron/dex/tick_liquidity.proto", fileDescriptor_fda22cbad7301397) } var fileDescriptor_fda22cbad7301397 = []byte{ - // 261 bytes of a gzipped FileDescriptorProto + // 265 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0xc9, 0x4c, 0xce, 0x8e, 0xcf, 0xc9, 0x2c, 0x2c, 0xcd, 0x4c, 0xc9, 0x2c, 0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xaa, 0xd0, 0x4b, 0x49, 0xad, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x8b, 0xeb, 0x83, 0x58, 0x10, 0x25, 0x52, 0xaa, 0xc8, 0x86, 0xe4, 0x64, 0xe6, 0x66, 0x96, 0xc4, 0xe7, 0x17, 0xa5, 0xa4, 0x16, 0xc5, 0x97, 0x14, 0x25, 0xe6, 0x25, 0x67, 0xa4, 0x42, 0x95, 0xc9, 0x23, 0x2b, 0x2b, 0xc8, 0xcf, - 0xcf, 0x89, 0x2f, 0x4a, 0x2d, 0x4e, 0x2d, 0x2a, 0x4b, 0x2d, 0x86, 0x28, 0x50, 0x5a, 0xcb, 0xc8, - 0xc5, 0x1b, 0x92, 0x99, 0x9c, 0xed, 0x03, 0x73, 0x82, 0x90, 0x3d, 0x17, 0x0f, 0x48, 0x61, 0x10, - 0x54, 0x9d, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0xa4, 0x1e, 0x92, 0x9b, 0xf4, 0x02, 0x90, - 0x14, 0x78, 0x30, 0x04, 0xa1, 0x68, 0x10, 0xf2, 0xe3, 0x12, 0x04, 0x3b, 0xc8, 0x1f, 0xe4, 0x9e, - 0x10, 0x88, 0x73, 0x24, 0x98, 0xc0, 0xa6, 0xc8, 0xa1, 0x98, 0xe2, 0x83, 0xae, 0xca, 0x83, 0x21, - 0x08, 0x53, 0xab, 0x13, 0x37, 0x17, 0x27, 0x3c, 0x80, 0x9c, 0x5c, 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, 0x2b, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, - 0x57, 0x1f, 0x6a, 0x8b, 0x6e, 0x7e, 0x51, 0x3a, 0x8c, 0xad, 0x5f, 0x01, 0x09, 0xef, 0xca, 0x82, - 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xe7, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xea, 0x7b, 0x19, - 0x9a, 0x8b, 0x01, 0x00, 0x00, + 0xcf, 0x89, 0x2f, 0x4a, 0x2d, 0x4e, 0x2d, 0x2a, 0x4b, 0x2d, 0x86, 0x28, 0x50, 0xda, 0xc0, 0xc8, + 0xc5, 0x1b, 0x92, 0x99, 0x9c, 0xed, 0x03, 0x73, 0x82, 0x90, 0x03, 0x17, 0x2f, 0x8a, 0x42, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x49, 0x3d, 0x24, 0x47, 0xe9, 0x05, 0xe4, 0xe7, 0xe7, 0x04, + 0x41, 0x15, 0x78, 0x30, 0x04, 0xf1, 0x14, 0x20, 0xf1, 0x85, 0x02, 0xb8, 0x84, 0xb1, 0xb8, 0x48, + 0x82, 0x09, 0x6c, 0x8e, 0x1c, 0x8a, 0x39, 0x3e, 0x20, 0x75, 0xfe, 0x20, 0x65, 0x21, 0x10, 0x55, + 0x1e, 0x0c, 0x41, 0x82, 0x39, 0xe8, 0x82, 0x4e, 0xdc, 0x5c, 0x9c, 0xf0, 0x30, 0x72, 0x72, 0x39, + 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, 0xad, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, + 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x2d, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, + 0x24, 0xc8, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xfe, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, + 0xff, 0xae, 0x6c, 0x72, 0x79, 0x8e, 0x01, 0x00, 0x00, } func (m *TickLiquidity) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/trade_pair_id.pb.go b/x/dex/types/trade_pair_id.pb.go index 561d60bd2..51f884991 100644 --- a/x/dex/types/trade_pair_id.pb.go +++ b/x/dex/types/trade_pair_id.pb.go @@ -23,8 +23,8 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type TradePairID struct { - MakerDenom string `protobuf:"bytes,2,opt,name=makerDenom,proto3" json:"makerDenom,omitempty"` - TakerDenom string `protobuf:"bytes,3,opt,name=takerDenom,proto3" json:"takerDenom,omitempty"` + MakerDenom string `protobuf:"bytes,2,opt,name=maker_denom,json=makerDenom,proto3" json:"maker_denom,omitempty"` + TakerDenom string `protobuf:"bytes,3,opt,name=taker_denom,json=takerDenom,proto3" json:"taker_denom,omitempty"` } func (m *TradePairID) Reset() { *m = TradePairID{} } @@ -81,18 +81,19 @@ func init() { func init() { proto.RegisterFile("neutron/dex/trade_pair_id.proto", fileDescriptor_e0082302b8bd9607) } var fileDescriptor_e0082302b8bd9607 = []byte{ - // 173 bytes of a gzipped FileDescriptorProto + // 179 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x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e, 0x2d, 0x8a, 0x4f, 0x49, 0xcd, 0xcb, 0xcf, 0x95, + 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x0c, 0xe2, 0x02, 0x0b, 0xb9, 0x80, 0x44, 0x40, 0x0a, 0x4a, 0x90, + 0x14, 0x30, 0x43, 0x14, 0x94, 0xc0, 0x15, 0x38, 0xb9, 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, 0x56, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, + 0xd4, 0x09, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, 0x7e, 0x05, 0xc4, 0xc5, 0x95, 0x05, 0xa9, 0xc5, + 0x49, 0x6c, 0x60, 0xa7, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xfa, 0x5d, 0x65, 0xcd, + 0x00, 0x00, 0x00, } func (m *TradePairID) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index 488966197..47e78b1b3 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -119,13 +119,13 @@ func (m *DepositOptions) GetDisableAutoswap() bool { type MsgDeposit struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` - TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` - AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsA" yaml:"amountsA"` - AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsB" yaml:"amountsB"` - TickIndexesAToB []int64 `protobuf:"varint,7,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` + TokenA string `protobuf:"bytes,3,opt,name=token_a,json=tokenA,proto3" json:"token_a,omitempty"` + TokenB string `protobuf:"bytes,4,opt,name=token_b,json=tokenB,proto3" json:"token_b,omitempty"` + AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amounts_a,json=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsA" yaml:"amountsA"` + AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amounts_b,json=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsB" yaml:"amountsB"` + TickIndexesAToB []int64 `protobuf:"varint,7,rep,packed,name=tick_indexes_a_to_b,json=tickIndexesAToB,proto3" json:"tick_indexes_a_to_b,omitempty"` Fees []uint64 `protobuf:"varint,8,rep,packed,name=fees,proto3" json:"fees,omitempty"` - Options []*DepositOptions `protobuf:"bytes,9,rep,name=Options,proto3" json:"Options,omitempty"` + Options []*DepositOptions `protobuf:"bytes,9,rep,name=options,proto3" json:"options,omitempty"` } func (m *MsgDeposit) Reset() { *m = MsgDeposit{} } @@ -211,8 +211,8 @@ func (m *MsgDeposit) GetOptions() []*DepositOptions { } type MsgDepositResponse struct { - Reserve0Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,rep,name=Reserve0Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve0Deposited" yaml:"reserve0Deposited"` - Reserve1Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,rep,name=Reserve1Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve1Deposited" yaml:"reserve1Deposited"` + Reserve0Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,rep,name=reserve0_deposited,json=reserve0Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve0Deposited" yaml:"reserve0Deposited"` + Reserve1Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,rep,name=reserve1_deposited,json=reserve1Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve1Deposited" yaml:"reserve1Deposited"` } func (m *MsgDepositResponse) Reset() { *m = MsgDepositResponse{} } @@ -251,10 +251,10 @@ var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo type MsgWithdrawal struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` - TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` - SharesToRemove []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=sharesToRemove,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesToRemove" yaml:"sharesToRemove"` - TickIndexesAToB []int64 `protobuf:"varint,6,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` + TokenA string `protobuf:"bytes,3,opt,name=token_a,json=tokenA,proto3" json:"token_a,omitempty"` + TokenB string `protobuf:"bytes,4,opt,name=token_b,json=tokenB,proto3" json:"token_b,omitempty"` + SharesToRemove []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=shares_to_remove,json=sharesToRemove,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesToRemove" yaml:"sharesToRemove"` + TickIndexesAToB []int64 `protobuf:"varint,6,rep,packed,name=tick_indexes_a_to_b,json=tickIndexesAToB,proto3" json:"tick_indexes_a_to_b,omitempty"` Fees []uint64 `protobuf:"varint,7,rep,packed,name=fees,proto3" json:"fees,omitempty"` } @@ -372,14 +372,14 @@ var xxx_messageInfo_MsgWithdrawalResponse proto.InternalMessageInfo type MsgPlaceLimitOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` - TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` - TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"orderType,omitempty"` + TokenIn string `protobuf:"bytes,3,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` + TokenOut string `protobuf:"bytes,4,opt,name=token_out,json=tokenOut,proto3" json:"token_out,omitempty"` + TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tick_index_in_to_out,json=tickIndexInToOut,proto3" json:"tick_index_in_to_out,omitempty"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + OrderType LimitOrderType `protobuf:"varint,8,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. - ExpirationTime *time.Time `protobuf:"bytes,9,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` - MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` + ExpirationTime *time.Time `protobuf:"bytes,9,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` + MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=max_amount_out,json=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` } func (m *MsgPlaceLimitOrder) Reset() { *m = MsgPlaceLimitOrder{} } @@ -467,11 +467,11 @@ func (m *MsgPlaceLimitOrder) GetExpirationTime() *time.Time { type MsgPlaceLimitOrderResponse struct { TrancheKey string `protobuf:"bytes,1,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` // Total amount of coin used for the limit order - CoinIn github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coinIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinIn" yaml:"coinIn"` + CoinIn github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coin_in,json=coinIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinIn" yaml:"coinIn"` // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - TakerCoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=takerCoinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"takerCoinOut" yaml:"takerCoinOut"` + TakerCoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=taker_coin_out,json=takerCoinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"takerCoinOut" yaml:"takerCoinOut"` } func (m *MsgPlaceLimitOrderResponse) Reset() { *m = MsgPlaceLimitOrderResponse{} } @@ -516,7 +516,7 @@ func (m *MsgPlaceLimitOrderResponse) GetTrancheKey() string { type MsgWithdrawFilledLimitOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + TrancheKey string `protobuf:"bytes,2,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` } func (m *MsgWithdrawFilledLimitOrder) Reset() { *m = MsgWithdrawFilledLimitOrder{} } @@ -604,7 +604,7 @@ var xxx_messageInfo_MsgWithdrawFilledLimitOrderResponse proto.InternalMessageInf type MsgCancelLimitOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` + TrancheKey string `protobuf:"bytes,2,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` } func (m *MsgCancelLimitOrder) Reset() { *m = MsgCancelLimitOrder{} } @@ -738,11 +738,11 @@ type MsgMultiHopSwap struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. - PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` + PickBestRoute bool `protobuf:"varint,6,opt,name=pick_best_route,json=pickBestRoute,proto3" json:"pick_best_route,omitempty"` } func (m *MsgMultiHopSwap) Reset() { *m = MsgMultiHopSwap{} } @@ -807,7 +807,7 @@ func (m *MsgMultiHopSwap) GetPickBestRoute() bool { } type MsgMultiHopSwapResponse struct { - CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` + CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coin_out,json=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` } func (m *MsgMultiHopSwapResponse) Reset() { *m = MsgMultiHopSwapResponse{} } @@ -960,96 +960,101 @@ func init() { func init() { proto.RegisterFile("neutron/dex/tx.proto", fileDescriptor_a489f6e187d5e074) } var fileDescriptor_a489f6e187d5e074 = []byte{ - // 1420 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x6f, 0x13, 0xc7, - 0x17, 0xcf, 0xda, 0xc6, 0x8e, 0x27, 0xbf, 0x9c, 0x09, 0x90, 0xc5, 0x7c, 0xbf, 0xb6, 0xb5, 0xf0, - 0x05, 0x7f, 0x23, 0x61, 0xe3, 0x54, 0x45, 0x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, 0x17, 0x9f, 0xb7, - 0xf0, 0x54, 0xd2, 0x87, 0x60, 0x71, 0x13, 0xd9, 0x98, 0x18, 0xb4, 0x65, 0x53, 0x03, 0x5b, 0x04, - 0xfe, 0x1f, 0xe4, 0xba, 0x06, 0xd1, 0x76, 0x06, 0xa8, 0xa3, 0x0d, 0x29, 0x26, 0xf7, 0x34, 0x5b, - 0x14, 0x4a, 0x42, 0x79, 0x56, 0x5d, 0xe2, 0xf2, 0x3a, 0x17, 0x4b, 0x3f, 0x25, 0x01, 0x68, 0x92, - 0x1e, 0x37, 0x00, 0x45, 0x90, 0xd1, 0x1d, 0xa4, 0x51, 0xec, 0xb0, 0x0d, 0x59, 0xd5, 0x5f, 0xc2, - 0x3c, 0x98, 0x75, 0x90, 0x8e, 0x8c, 0x3d, 0xe4, 0x88, 0x09, 0xa6, 0x0a, 0xd6, 0xf0, 0x34, 0x48, - 0x53, 0xbc, 0x8b, 0xac, 0xba, 0x98, 0x64, 0x1a, 0xbe, 0x0a, 0xe4, 0xb2, 0x98, 0x0a, 0xc9, 0x65, - 0x68, 0x80, 0x59, 0xcd, 0xc4, 0x43, 0x8b, 0x92, 0xba, 0x78, 0xa2, 0x94, 0x2c, 0x67, 0xe5, 0xe6, - 0x93, 0x71, 0x71, 0xe6, 0xb7, 0x71, 0xf1, 0x42, 0xcf, 0xa0, 0xfd, 0xe1, 0x4e, 0x45, 0xc7, 0x26, - 0x3f, 0x24, 0xff, 0x73, 0x89, 0x74, 0x77, 0xab, 0x74, 0xdf, 0x46, 0xa4, 0xa2, 0x58, 0xf4, 0xe5, - 0xb8, 0x18, 0x58, 0x38, 0x18, 0x17, 0x97, 0xf6, 0x35, 0x73, 0x70, 0x55, 0xf2, 0x25, 0x92, 0x1a, - 0x28, 0x43, 0xae, 0x64, 0x31, 0xfd, 0x8e, 0xae, 0xe4, 0x29, 0x57, 0xf2, 0xc4, 0x95, 0x0c, 0xcb, - 0x60, 0x89, 0x1a, 0xfa, 0xae, 0x62, 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x03, 0xbf, 0x5f, 0x80, 0xdc, 0x54, 0xb7, 0x2d, 0xc5, 0xad, 0xc4, - 0x11, 0xf9, 0xf2, 0x51, 0x88, 0xc0, 0xbe, 0x0a, 0xe6, 0x23, 0x7d, 0xf3, 0x3f, 0xf1, 0x9d, 0x61, - 0x6d, 0xfe, 0xfc, 0xeb, 0xb4, 0x61, 0x9b, 0x91, 0x02, 0x9b, 0xb2, 0x19, 0xd6, 0x4e, 0xdb, 0x7c, - 0x55, 0xc6, 0xcb, 0x9b, 0x4f, 0x9e, 0x15, 0x84, 0xa7, 0xcf, 0x0a, 0xc2, 0x1f, 0xcf, 0x0a, 0xc2, - 0x83, 0xe7, 0x85, 0x99, 0xa7, 0xcf, 0x0b, 0x33, 0xbf, 0x3e, 0x2f, 0xcc, 0x7c, 0xb6, 0x76, 0x44, - 0xcf, 0x1b, 0x79, 0xff, 0x03, 0xe0, 0xf6, 0x85, 0x9d, 0x34, 0x7b, 0x3d, 0xbd, 0xf7, 0x57, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xa9, 0x01, 0xb0, 0x91, 0x1d, 0x10, 0x00, 0x00, + // 1494 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4d, 0x6c, 0x1b, 0xc5, + 0x17, 0xcf, 0xc6, 0xa9, 0x3f, 0x26, 0x5f, 0xee, 0x24, 0xfd, 0x67, 0xe3, 0xfe, 0xff, 0xb6, 0xb5, + 0xfd, 0xd3, 0x9a, 0x88, 0xda, 0x4d, 0x10, 0x3d, 0x84, 0x93, 0x9d, 0xa4, 0xe0, 0xd6, 0xae, 0xa3, + 0xad, 0xcb, 0xa7, 0xc4, 0x6a, 0x6c, 0x4f, 0xed, 0x25, 0xf6, 0xce, 0x6a, 0x67, 0x9c, 0x3a, 0x42, + 0xe2, 0x00, 0x37, 0x90, 0xaa, 0xde, 0xb8, 0x72, 0x42, 0x70, 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0xe1, 0x63, 0x5d, 0x4a, 0x3b, 0x5a, 0xe7, + 0x59, 0xfb, 0x10, 0x2c, 0x86, 0x5f, 0x28, 0x13, 0x11, 0x84, 0x00, 0xa9, 0x0b, 0xc7, 0x00, 0x3c, + 0xe3, 0xfb, 0x40, 0x3d, 0xb2, 0xfb, 0xe6, 0x8e, 0x0a, 0x2e, 0x8c, 0x4c, 0x5d, 0x7a, 0x5e, 0xa4, + 0xe7, 0xf7, 0x23, 0x90, 0x9c, 0x68, 0xba, 0xd9, 0xb0, 0x95, 0x30, 0x22, 0x95, 0x3b, 0x0e, 0xe1, + 0xd9, 0xd7, 0xc1, 0x5c, 0xa0, 0x7b, 0xfe, 0x37, 0xbc, 0xd3, 0xaf, 0x4d, 0xfd, 0xff, 0x59, 0x5a, + 0xbf, 0xcd, 0x40, 0x81, 0x4d, 0xd8, 0xf4, 0x6b, 0x27, 0x6d, 0x3e, 0x2d, 0xe3, 0x4b, 0xdb, 0xf7, + 0x1f, 0xa6, 0x95, 0x07, 0x0f, 0xd3, 0xca, 0x1f, 0x0f, 0xd3, 0xca, 0xdd, 0x47, 0xe9, 0xa9, 0x07, + 0x8f, 0xd2, 0x53, 0xbf, 0x3e, 0x4a, 0x4f, 0x7d, 0xb0, 0x76, 0x4c, 0xdb, 0x1b, 0xb8, 0xff, 0x53, + 0xc0, 0xfb, 0x42, 0x23, 0x2a, 0x9e, 0x52, 0xaf, 0xff, 0x15, 0x00, 0x00, 0xff, 0xff, 0x2e, 0xd9, + 0xb3, 0xc0, 0x45, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From 7fd8ba396f2be9afeefd05748fc5f416624c4e25 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 8 Nov 2023 15:20:20 +0200 Subject: [PATCH 222/307] fix json and yaml tags --- proto/neutron/dex/deposit_record.proto | 4 +- proto/neutron/dex/limit_order_tranche.proto | 20 +- .../dex/limit_order_tranche_user.proto | 10 +- proto/neutron/dex/pool_reserves.proto | 12 +- proto/neutron/dex/query.proto | 16 +- proto/neutron/dex/tx.proto | 46 +-- x/dex/types/deposit_record.pb.go | 50 +-- x/dex/types/limit_order_tranche.pb.go | 83 +++-- x/dex/types/limit_order_tranche_user.pb.go | 68 ++-- x/dex/types/pool_reserves.pb.go | 65 ++-- x/dex/types/query.pb.go | 291 +++++++++--------- x/dex/types/tx.pb.go | 214 ++++++------- 12 files changed, 439 insertions(+), 440 deletions(-) diff --git a/proto/neutron/dex/deposit_record.proto b/proto/neutron/dex/deposit_record.proto index c76a32853..86a6c26b9 100644 --- a/proto/neutron/dex/deposit_record.proto +++ b/proto/neutron/dex/deposit_record.proto @@ -8,10 +8,10 @@ import "neutron/dex/pair_id.proto"; message DepositRecord { PairID pair_id = 1; string shares_owned = 2 [ - (gogoproto.moretags) = "yaml:\"totalShares\"", + (gogoproto.moretags) = "yaml:\"total_shares\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "totalShares" + (gogoproto.jsontag) = "total_shares" ]; int64 center_tick_index = 3; int64 lower_tick_index = 4; diff --git a/proto/neutron/dex/limit_order_tranche.proto b/proto/neutron/dex/limit_order_tranche.proto index df97c11a2..3bd70b1d8 100644 --- a/proto/neutron/dex/limit_order_tranche.proto +++ b/proto/neutron/dex/limit_order_tranche.proto @@ -17,28 +17,28 @@ message LimitOrderTrancheKey { message LimitOrderTranche { LimitOrderTrancheKey key = 1; string reserves_maker_denom = 2 [ - (gogoproto.moretags) = "yaml:\"reservesMakerDenom\"", + (gogoproto.moretags) = "yaml:\"reserves_maker_denom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "reservesMakerDenom" + (gogoproto.jsontag) = "reserves_maker_denom" ]; string reserves_taker_denom = 3 [ - (gogoproto.moretags) = "yaml:\"reservesTakerDenom\"", + (gogoproto.moretags) = "yaml:\"reserves_taker_denom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "reservesTakerDenom" + (gogoproto.jsontag) = "reserves_taker_denom" ]; string total_maker_denom = 4 [ - (gogoproto.moretags) = "yaml:\"totalMakerDenom\"", + (gogoproto.moretags) = "yaml:\"total_maker_denom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "totalTokenIn" + (gogoproto.jsontag) = "total_maker_denom" ]; string total_taker_denom = 5 [ - (gogoproto.moretags) = "yaml:\"totalTakerDenom\"", + (gogoproto.moretags) = "yaml:\"total_taker_denom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "totalTakerDenom" + (gogoproto.jsontag) = "total_taker_denom" ]; // GoodTilDate is represented as seconds since January 1, year 1, 00:00:00.00 UTC // LimitOrders with goodTilDate set are valid as long as blockTime <= goodTilDate @@ -51,10 +51,10 @@ message LimitOrderTranche { (gogoproto.nullable) = true ]; string price_taker_to_maker = 7 [ - (gogoproto.moretags) = "yaml:\"priceTakerToMaker\"", + (gogoproto.moretags) = "yaml:\"price_taker_to_maker\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "priceTakerToMaker" + (gogoproto.jsontag) = "price_taker_to_maker" ]; } diff --git a/proto/neutron/dex/limit_order_tranche_user.proto b/proto/neutron/dex/limit_order_tranche_user.proto index 8159d48d5..51b8163ef 100644 --- a/proto/neutron/dex/limit_order_tranche_user.proto +++ b/proto/neutron/dex/limit_order_tranche_user.proto @@ -12,22 +12,22 @@ message LimitOrderTrancheUser { string tranche_key = 3; string address = 4; string shares_owned = 5 [ - (gogoproto.moretags) = "yaml:\"sharesOwned\"", + (gogoproto.moretags) = "yaml:\"shares_owned\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "sharesOwned" ]; string shares_withdrawn = 6 [ - (gogoproto.moretags) = "yaml:\"sharesWithdrawn\"", + (gogoproto.moretags) = "yaml:\"shares_withdrawn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "sharesWithdrawn" + (gogoproto.jsontag) = "shares_withdrawn" ]; string shares_cancelled = 7 [ - (gogoproto.moretags) = "yaml:\"sharesCancelled\"", + (gogoproto.moretags) = "yaml:\"shares_cancelled\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "sharesCancelled" + (gogoproto.jsontag) = "shares_cancelled" ]; LimitOrderType order_type = 8; } diff --git a/proto/neutron/dex/pool_reserves.proto b/proto/neutron/dex/pool_reserves.proto index fedb3ba78..0d489ea99 100644 --- a/proto/neutron/dex/pool_reserves.proto +++ b/proto/neutron/dex/pool_reserves.proto @@ -14,22 +14,22 @@ message PoolReservesKey { message PoolReserves { PoolReservesKey key = 1; string reserves_maker_denom = 2 [ - (gogoproto.moretags) = "yaml:\"reservesMakerDenom\"", + (gogoproto.moretags) = "yaml:\"reserves_maker_denom\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "reservesMakerDenom", + (gogoproto.jsontag) = "reserves_maker_denom", (gogoproto.nullable) = false ]; string price_taker_to_maker = 3 [ - (gogoproto.moretags) = "yaml:\"priceTakerToMaker\"", + (gogoproto.moretags) = "yaml:\"price_taker_to_maker\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "priceTakerToMaker" + (gogoproto.jsontag) = "price_taker_to_maker" ]; string price_opposite_taker_to_maker = 4 [ - (gogoproto.moretags) = "yaml:\"priceOppositeTakerToMaker\"", + (gogoproto.moretags) = "yaml:\"price_opposite_taker_to_maker\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "priceOppositeTakerToMaker" + (gogoproto.jsontag) = "price_opposite_taker_to_maker" ]; } diff --git a/proto/neutron/dex/query.proto b/proto/neutron/dex/query.proto index f168933a0..6251d0b62 100644 --- a/proto/neutron/dex/query.proto +++ b/proto/neutron/dex/query.proto @@ -250,8 +250,8 @@ message QueryEstimateMultiHopSwapRequest { string creator = 1; string receiver = 2; repeated MultiHopRoute routes = 3; - string amount_in = 4 [(gogoproto.moretags) = "yaml:\"amountIn\"" , (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn" ]; - string exit_limit_price = 5 [(gogoproto.moretags) = "yaml:\"exitLimitPrice\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "exitLimitPrice"]; + string amount_in = 4 [(gogoproto.moretags) = "yaml:\"amount_in\"" , (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amount_in" ]; + string exit_limit_price = 5 [(gogoproto.moretags) = "yaml:\"exit_limit_price\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "exit_limit_price"]; // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. @@ -259,7 +259,7 @@ message QueryEstimateMultiHopSwapRequest { } message QueryEstimateMultiHopSwapResponse { - cosmos.base.v1beta1.Coin coin_out = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "coinOut"]; + cosmos.base.v1beta1.Coin coin_out = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "coin_out"]; } message QueryEstimatePlaceLimitOrderRequest { @@ -268,27 +268,27 @@ message QueryEstimatePlaceLimitOrderRequest { string token_in = 3; string token_out = 4; int64 tick_index_in_to_out = 5; - string amount_in = 6 [(gogoproto.moretags) = "yaml:\"amountIn\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amountIn"]; + string amount_in = 6 [(gogoproto.moretags) = "yaml:\"amount_in\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.jsontag) = "amount_in"]; LimitOrderType order_type = 7; // expirationTime is only valid iff orderType == GOOD_TIL_TIME. google.protobuf.Timestamp expiration_time = 8 [(gogoproto.stdtime) = true , (gogoproto.nullable) = true ] ; - string maxAmount_out = 9 [(gogoproto.moretags) = "yaml:\"maxAmountOut\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, (gogoproto.jsontag) = "maxAmountOut"]; + string maxAmount_out = 9 [(gogoproto.moretags) = "yaml:\"max_amount_out\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, (gogoproto.jsontag) = "max_amount_out"]; } message QueryEstimatePlaceLimitOrderResponse { // Total amount of coin used for the limit order // You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin - cosmos.base.v1beta1.Coin total_in_coin = 1 [(gogoproto.moretags) = "yaml:\"totalInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "totalInCoin"]; + cosmos.base.v1beta1.Coin total_in_coin = 1 [(gogoproto.moretags) = "yaml:\"total_in_coin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "total_in_coin"]; // Total amount of the token in that was immediately swapped for swapOutCoin - cosmos.base.v1beta1.Coin swap_in_coin = 2 [(gogoproto.moretags) = "yaml:\"swapInCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapInCoin"]; + cosmos.base.v1beta1.Coin swap_in_coin = 2 [(gogoproto.moretags) = "yaml:\"swap_in_coin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swap_in_coin"]; // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - cosmos.base.v1beta1.Coin swap_out_coin = 3 [(gogoproto.moretags) = "yaml:\"swapOutCoin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swapOutCoin"]; + cosmos.base.v1beta1.Coin swap_out_coin = 3 [(gogoproto.moretags) = "yaml:\"swap_out_coin\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.jsontag) = "swap_out_coin"]; } message QueryPoolRequest { diff --git a/proto/neutron/dex/tx.proto b/proto/neutron/dex/tx.proto index 7ea19633e..41104299a 100644 --- a/proto/neutron/dex/tx.proto +++ b/proto/neutron/dex/tx.proto @@ -34,16 +34,16 @@ message MsgDeposit { string token_a = 3; string token_b = 4; repeated string amounts_a = 5 [ - (gogoproto.moretags) = "yaml:\"amountsA\"", + (gogoproto.moretags) = "yaml:\"amounts_a\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "amountsA" + (gogoproto.jsontag) = "amounts_a" ]; repeated string amounts_b = 6 [ - (gogoproto.moretags) = "yaml:\"amountsB\"", + (gogoproto.moretags) = "yaml:\"amounts_b\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "amountsB" + (gogoproto.jsontag) = "amounts_b" ]; repeated int64 tick_indexes_a_to_b = 7; repeated uint64 fees = 8; @@ -52,16 +52,16 @@ message MsgDeposit { message MsgDepositResponse { repeated string reserve0_deposited = 1 [ - (gogoproto.moretags) = "yaml:\"reserve0Deposited\"", + (gogoproto.moretags) = "yaml:\"reserve0_deposited\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "reserve0Deposited" + (gogoproto.jsontag) = "reserve0_deposited" ]; repeated string reserve1_deposited = 2[ - (gogoproto.moretags) = "yaml:\"reserve1Deposited\"", + (gogoproto.moretags) = "yaml:\"reserve1_deposited\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "reserve1Deposited" + (gogoproto.jsontag) = "reserve1_deposited" ]; } @@ -71,10 +71,10 @@ message MsgWithdrawal { string token_a = 3; string token_b = 4; repeated string shares_to_remove = 5 [ - (gogoproto.moretags) = "yaml:\"sharesToRemove\"", + (gogoproto.moretags) = "yaml:\"shares_to_remove\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "sharesToRemove" + (gogoproto.jsontag) = "shares_to_remove" ]; repeated int64 tick_indexes_a_to_b = 6; repeated uint64 fees = 7; @@ -99,10 +99,10 @@ message MsgPlaceLimitOrder { string token_out = 4; int64 tick_index_in_to_out = 5; string amount_in = 7 [ - (gogoproto.moretags) = "yaml:\"amountIn\"", + (gogoproto.moretags) = "yaml:\"amount_in\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "amountIn" + (gogoproto.jsontag) = "amount_in" ]; LimitOrderType order_type = 8; // expirationTime is only valid iff orderType == GOOD_TIL_TIME. @@ -111,10 +111,10 @@ message MsgPlaceLimitOrder { (gogoproto.nullable) = true ]; string max_amount_out = 10 [ - (gogoproto.moretags) = "yaml:\"maxAmountOut\"", + (gogoproto.moretags) = "yaml:\"max_amount_out\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = true, - (gogoproto.jsontag) = "maxAmountOut" + (gogoproto.jsontag) = "max_amount_out" ]; } @@ -122,19 +122,19 @@ message MsgPlaceLimitOrderResponse { string trancheKey = 1; // Total amount of coin used for the limit order cosmos.base.v1beta1.Coin coin_in = 2 [ - (gogoproto.moretags) = "yaml:\"coinIn\"", + (gogoproto.moretags) = "yaml:\"coin_in\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", - (gogoproto.jsontag) = "coinIn" + (gogoproto.jsontag) = "coin_in" ]; // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future cosmos.base.v1beta1.Coin taker_coin_out = 3 [ - (gogoproto.moretags) = "yaml:\"takerCoinOut\"", + (gogoproto.moretags) = "yaml:\"taker_coin_out\"", (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", - (gogoproto.jsontag) = "takerCoinOut" + (gogoproto.jsontag) = "taker_coin_out" ]; } @@ -164,16 +164,16 @@ message MsgMultiHopSwap { string receiver = 2; repeated MultiHopRoute routes = 3; string amount_in = 4 [ - (gogoproto.moretags) = "yaml:\"amountIn\"", + (gogoproto.moretags) = "yaml:\"amount_in\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "amountIn" + (gogoproto.jsontag) = "amount_in" ]; string exit_limit_price = 5 [ - (gogoproto.moretags) = "yaml:\"exitLimitPrice\"", + (gogoproto.moretags) = "yaml:\"exit_limit_price\"", (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "exitLimitPrice" + (gogoproto.jsontag) = "exit_limit_price" ]; // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. @@ -184,7 +184,7 @@ message MsgMultiHopSwapResponse { cosmos.base.v1beta1.Coin coin_out = 1 [ (gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", - (gogoproto.jsontag) = "coinOut" + (gogoproto.jsontag) = "coin_out" ]; } diff --git a/x/dex/types/deposit_record.pb.go b/x/dex/types/deposit_record.pb.go index 270160cb5..6c773863e 100644 --- a/x/dex/types/deposit_record.pb.go +++ b/x/dex/types/deposit_record.pb.go @@ -26,7 +26,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type DepositRecord struct { PairId *PairID `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` - SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalShares" yaml:"totalShares"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_shares" yaml:"total_shares"` CenterTickIndex int64 `protobuf:"varint,3,opt,name=center_tick_index,json=centerTickIndex,proto3" json:"center_tick_index,omitempty"` LowerTickIndex int64 `protobuf:"varint,4,opt,name=lower_tick_index,json=lowerTickIndex,proto3" json:"lower_tick_index,omitempty"` UpperTickIndex int64 `protobuf:"varint,5,opt,name=upper_tick_index,json=upperTickIndex,proto3" json:"upper_tick_index,omitempty"` @@ -108,30 +108,30 @@ func init() { func init() { proto.RegisterFile("neutron/dex/deposit_record.proto", fileDescriptor_250413eadaebbf28) } var fileDescriptor_250413eadaebbf28 = []byte{ - // 354 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 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e, 0xec, 0x10, 0x16, - 0x4e, 0x08, 0xe9, 0x02, 0xd2, 0xea, 0x33, 0x48, 0xf1, 0xcc, 0xe1, 0xeb, 0x84, 0xa4, 0xb6, 0x1b, - 0xf3, 0xcf, 0xdc, 0x50, 0x38, 0xf0, 0x60, 0x3e, 0x16, 0x51, 0x5f, 0xb9, 0xa1, 0xae, 0x83, 0xc5, - 0xfc, 0xb6, 0x57, 0x33, 0x7b, 0x9e, 0x52, 0x16, 0xdd, 0x15, 0x3d, 0x6a, 0x5f, 0x3e, 0x0d, 0x49, - 0xcc, 0x09, 0xf3, 0x39, 0x0d, 0x67, 0x3e, 0x8d, 0x31, 0xc9, 0xb4, 0xa6, 0x89, 0xac, 0xa6, 0x77, - 0x52, 0xfe, 0x78, 0xa0, 0xe1, 0xcc, 0x2d, 0x6c, 0xd5, 0x92, 0x3b, 0x73, 0x58, 0x1d, 0xa2, 0x2d, - 0x81, 0x1e, 0x0b, 0xff, 0x80, 0x5c, 0x26, 0xc9, 0x21, 0xf9, 0xa7, 0x24, 0x85, 0xff, 0x4b, 0x76, - 0xe4, 0xe6, 0x13, 0x21, 0x5a, 0xdb, 0x44, 0x56, 0xcb, 0x2b, 0xe4, 0x70, 0xb4, 0xd9, 0xe9, 0x68, - 0xbb, 0xd3, 0xd1, 0xc7, 0x4e, 0x47, 0x2f, 0x7b, 0x5d, 0xda, 0xee, 0x75, 0xe9, 0x6d, 0xaf, 0x4b, - 0x8f, 0xfd, 0xda, 0x0a, 0xd5, 0x94, 0x03, 0x60, 0xd1, 0x8f, 0x76, 0x32, 0x71, 0x17, 0xb1, 0xc6, - 0xa4, 0x2d, 0xce, 0x72, 0xf3, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x42, 0xc1, 0x96, 0x79, 0xf8, 0x01, - 0x00, 0x00, + // 353 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xb1, 0x4f, 0xc2, 0x40, + 0x14, 0xc6, 0x7b, 0x80, 0x18, 0x0b, 0x2a, 0x16, 0x87, 0xca, 0xd0, 0x36, 0x0c, 0xa6, 0x21, 0xd2, + 0x26, 0xba, 0x39, 0x12, 0x96, 0x4e, 0x9a, 0x46, 0x17, 0x97, 0xa6, 0xf4, 0xce, 0x72, 0x01, 0xfa, + 0x9a, 0xeb, 0x11, 0xca, 0x7f, 0xe1, 0x9f, 0x85, 0x1b, 0xa3, 0x71, 0x68, 0x0c, 0x6c, 0x8e, 0xfe, + 0x05, 0xa6, 0xd7, 0x1a, 0xcb, 0x74, 0x5f, 0xbe, 0xfb, 0xbd, 0xef, 0x25, 0xdf, 0x93, 0x8d, 0x88, + 0x2c, 0x39, 0x83, 0xc8, 0xc6, 0x24, 0xb5, 0x31, 0x89, 0x21, 0xa1, 0xdc, 0x63, 0x24, 0x00, 0x86, + 0xad, 0x98, 0x01, 0x07, 0xa5, 0x55, 0x12, 0x16, 0x26, 0x69, 0xef, 0x32, 0x84, 0x10, 0x84, 0x6f, + 0xe7, 0xaa, 0x40, 0x7a, 0x57, 0xd5, 0x90, 0xd8, 0xa7, 0xcc, 0xa3, 0xe5, 0x74, 0xff, 0xbd, 0x26, + 0x9f, 0x8e, 0x8b, 0x58, 0x57, 0xa4, 0x2a, 0x37, 0xf2, 0x71, 0x89, 0xa8, 0xc8, 0x40, 0x66, 0xeb, + 0xb6, 0x6b, 0x55, 0x36, 0x58, 0x8f, 0x3e, 0x65, 0xce, 0xd8, 0x6d, 0xe6, 0x8c, 0x83, 0x95, 0x54, + 0x6e, 0x27, 0x53, 0x9f, 0x91, 0xc4, 0x83, 0x55, 0x44, 0xb0, 0x5a, 0x33, 0x90, 0x79, 0x32, 0x7a, + 0xde, 0x64, 0xba, 0xf4, 0x99, 0xe9, 0xd7, 0x21, 0xe5, 0xd3, 0xe5, 0xc4, 0x0a, 0x60, 0x61, 0x07, + 0x90, 0x2c, 0x20, 0x29, 0x9f, 0x61, 0x82, 0x67, 0x36, 0x5f, 0xc7, 0x24, 0xb1, 0x9c, 0x88, 0x7f, + 0x67, 0x7a, 0x9b, 0x03, 0xf7, 0xe7, 0x5e, 0x91, 0xf5, 0x93, 0xe9, 0xdd, 0xb5, 0xbf, 0x98, 0xdf, + 0xf7, 0xab, 0x6e, 0xdf, 0x6d, 0x15, 0xe2, 0x21, 0xdf, 0xa4, 0x0c, 0xe4, 0x8b, 0x80, 0x44, 0x9c, + 0x30, 0x8f, 0xd3, 0x60, 0xe6, 0xd1, 0x08, 0x93, 0x54, 0xad, 0x1b, 0xc8, 0xac, 0xbb, 0xe7, 0xc5, + 0xc7, 0x13, 0x0d, 0x66, 0x4e, 0x6e, 0x2b, 0xa6, 0xdc, 0x99, 0xc3, 0xea, 0x10, 0x6d, 0x08, 0xf4, + 0x4c, 0xf8, 0x07, 0xe4, 0x32, 0x8e, 0x0f, 0xc9, 0xa3, 0x82, 0x14, 0xfe, 0x3f, 0xd9, 0x91, 0xeb, + 0xaf, 0x84, 0xa8, 0x4d, 0x03, 0x99, 0x0d, 0x37, 0x97, 0xa3, 0xf1, 0x66, 0xa7, 0xa1, 0xed, 0x4e, + 0x43, 0x5f, 0x3b, 0x0d, 0xbd, 0xed, 0x35, 0x69, 0xbb, 0xd7, 0xa4, 0x8f, 0xbd, 0x26, 0xbd, 0x0c, + 0x2a, 0x3d, 0x94, 0x65, 0x0e, 0x81, 0x85, 0x7f, 0xda, 0x4e, 0xc5, 0x65, 0x44, 0x1f, 0x93, 0xa6, + 0x38, 0xcc, 0xdd, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0x8f, 0x8e, 0x7e, 0xfa, 0x01, 0x00, + 0x00, } func (m *DepositRecord) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_tranche.pb.go b/x/dex/types/limit_order_tranche.pb.go index 054bb1169..0362678b6 100644 --- a/x/dex/types/limit_order_tranche.pb.go +++ b/x/dex/types/limit_order_tranche.pb.go @@ -91,15 +91,15 @@ func (m *LimitOrderTrancheKey) GetTrancheKey() string { type LimitOrderTranche struct { Key *LimitOrderTrancheKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reserves_maker_denom,json=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` - ReservesTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=reserves_taker_denom,json=reservesTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesTakerDenom" yaml:"reservesTakerDenom"` - TotalMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_maker_denom,json=totalMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTokenIn" yaml:"totalMakerDenom"` - TotalTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=total_taker_denom,json=totalTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalTakerDenom" yaml:"totalTakerDenom"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reserves_maker_denom,json=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserves_maker_denom" yaml:"reserves_maker_denom"` + ReservesTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=reserves_taker_denom,json=reservesTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserves_taker_denom" yaml:"reserves_taker_denom"` + TotalMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_maker_denom,json=totalMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_maker_denom" yaml:"total_maker_denom"` + TotalTakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=total_taker_denom,json=totalTakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_taker_denom" yaml:"total_taker_denom"` // JIT orders also use goodTilDate to handle deletion but represent a special case // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live // Order deletion still functions the same and the orders will be deleted at the end of the block ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` - PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,7,opt,name=price_taker_to_maker,json=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` + PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,7,opt,name=price_taker_to_maker,json=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"price_taker_to_maker" yaml:"price_taker_to_maker"` } func (m *LimitOrderTranche) Reset() { *m = LimitOrderTranche{} } @@ -159,44 +159,43 @@ func init() { } var fileDescriptor_8c2ded67c80756d1 = []byte{ - // 591 bytes of a gzipped FileDescriptorProto + // 572 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xc1, 0x8b, 0xd3, 0x4e, - 0x14, 0xc7, 0x3b, 0xbf, 0xfe, 0x5c, 0xdd, 0xa9, 0xba, 0x6c, 0xa8, 0x92, 0xf6, 0x90, 0xa9, 0x05, - 0xa5, 0x08, 0x9b, 0xa0, 0x7b, 0x11, 0xf1, 0x54, 0x7a, 0x29, 0xba, 0xb8, 0x84, 0x1c, 0x44, 0x0f, - 0x61, 0x9a, 0x8c, 0xe9, 0xd8, 0x26, 0x13, 0x26, 0x53, 0x69, 0xef, 0x82, 0xd7, 0x05, 0x8f, 0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0x33, 0xed, 0xa5, 0x0c, 0xfb, 0x38, 0x8b, 0x0d, 0xab, 0x68, 0xca, 0x26, 0xdd, 0xb9, + 0x1d, 0x0d, 0xfc, 0x9e, 0x06, 0xf6, 0x69, 0x4a, 0xde, 0x0c, 0xf1, 0x31, 0x9d, 0xc7, 0x4c, 0xb8, + 0xc0, 0x78, 0x44, 0xe4, 0xf2, 0xaa, 0x07, 0xd9, 0x40, 0xb6, 0xcd, 0x7c, 0xb3, 0xcd, 0xcd, 0x66, + 0x9b, 0xce, 0x66, 0xb3, 0x7b, 0x77, 0x97, 0xa9, 0x8e, 0x2e, 0xbf, 0xe9, 0xc8, 0xbe, 0xbf, 0x7d, + 0x2c, 0xd3, 0xca, 0x27, 0x84, 0x5b, 0xb1, 0x60, 0x1e, 0xfd, 0x75, 0x81, 0x0e, 0xb3, 0xfe, 0xe2, + 0xa2, 0xbf, 0x67, 0xa5, 0xfe, 0x8a, 0xb9, 0x3f, 0xe5, 0x22, 0xd8, 0xdc, 0xad, 0x19, 0xb0, 0x69, + 0x62, 0x85, 0x2e, 0x8c, 0xcd, 0x73, 0x41, 0xbd, 0x3e, 0xf5, 0xe4, 0x3c, 0x54, 0x15, 0xde, 0xce, + 0x43, 0x55, 0xd6, 0xb0, 0x9b, 0x59, 0xb8, 0xbc, 0xae, 0xbd, 0xfe, 0x72, 0xa5, 0xa1, 0xab, 0x95, + 0x86, 0xbe, 0xaf, 0x34, 0x74, 0xb9, 0xd6, 0x6a, 0x57, 0x6b, 0xad, 0xf6, 0x65, 0xad, 0xd5, 0xde, + 0x3d, 0xfd, 0x0b, 0xd6, 0x3c, 0xff, 0x88, 0x49, 0xfb, 0x47, 0x07, 0x99, 0x2f, 0x67, 0x3f, 0x03, + 0x00, 0x00, 0xff, 0xff, 0xd0, 0xdc, 0xf7, 0xcb, 0x35, 0x05, 0x00, 0x00, } func (m *LimitOrderTrancheKey) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_tranche_user.pb.go b/x/dex/types/limit_order_tranche_user.pb.go index 191d47e0a..19755ffaf 100644 --- a/x/dex/types/limit_order_tranche_user.pb.go +++ b/x/dex/types/limit_order_tranche_user.pb.go @@ -29,9 +29,9 @@ type LimitOrderTrancheUser struct { TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tick_index_taker_to_maker,json=tickIndexTakerToMaker,proto3" json:"tick_index_taker_to_maker,omitempty"` TrancheKey string `protobuf:"bytes,3,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"sharesOwned"` - SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=shares_withdrawn,json=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesWithdrawn" yaml:"sharesWithdrawn"` - SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=shares_cancelled,json=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesCancelled" yaml:"sharesCancelled"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"shares_owned"` + SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=shares_withdrawn,json=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_withdrawn" yaml:"shares_withdrawn"` + SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=shares_cancelled,json=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_cancelled" yaml:"shares_cancelled"` OrderType LimitOrderType `protobuf:"varint,8,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` } @@ -112,37 +112,37 @@ func init() { } var fileDescriptor_67e5ffbd487ea05f = []byte{ - // 470 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xdb, 0x30, - 0x1c, 0x8d, 0xd7, 0xb5, 0x5d, 0x95, 0xfd, 0x43, 0xb4, 0x43, 0xeb, 0xc0, 0x0e, 0x39, 0x8c, 0x50, - 0xa8, 0x0d, 0xdd, 0x65, 0x94, 0x9d, 0xba, 0x5e, 0xc2, 0x36, 0x3a, 0xbc, 0x8c, 0xc1, 0x76, 0x10, - 0xaa, 0xf5, 0x23, 0x11, 0x89, 0x2d, 0x23, 0x29, 0x8b, 0xfd, 0x05, 0x76, 0xee, 0xc7, 0xea, 0xb1, - 0xc7, 0xb1, 0x83, 0x19, 0xc9, 0x6d, 0xc7, 0x7e, 0x82, 0xa1, 0xf8, 0x0f, 0x4e, 0x6f, 0x63, 0x27, - 0xfd, 0xf4, 0x7e, 0x8f, 0xf7, 0x9e, 0xc4, 0x43, 0x47, 0x09, 0xcc, 0x8d, 0x92, 0x49, 0xc0, 0x21, - 0x0b, 0x66, 0x22, 0x16, 0x86, 0x4a, 0xc5, 0x41, 0x51, 0xa3, 0x58, 0x12, 0x4d, 0x80, 0xce, 0x35, - 0x28, 0x3f, 0x55, 0xd2, 0x48, 0xdc, 0xad, 0xb8, 0x3e, 0x87, 0xec, 0x70, 0x7f, 0x2c, 0xc7, 0x72, - 0x8d, 0x07, 0x76, 0x2a, 0x29, 0x87, 0x5e, 0x5b, 0xce, 0x28, 0xc6, 0x81, 0xa6, 0x4c, 0x28, 0x2a, - 0x78, 0x45, 0xd8, 0xdf, 0x20, 0x64, 0x25, 0xda, 0xbf, 0xda,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- 0x4c, 0xb8, 0x62, 0x8b, 0x84, 0xec, 0xac, 0xcd, 0xbf, 0xfd, 0xb3, 0xf9, 0x93, 0x52, 0xe9, 0x4b, - 0x2d, 0x74, 0x5b, 0x78, 0xcf, 0xda, 0x01, 0x9a, 0x45, 0x3f, 0xbc, 0x4b, 0x6d, 0x07, 0x89, 0x58, - 0x12, 0xc1, 0x6c, 0x06, 0x9c, 0xec, 0xfe, 0x5f, 0x90, 0xb7, 0xb5, 0xd0, 0xdd, 0x20, 0xcd, 0xa2, - 0x09, 0xd2, 0x20, 0xf8, 0x14, 0xa1, 0xaa, 0xcc, 0x79, 0x0a, 0xe4, 0x41, 0xcf, 0x19, 0x3c, 0x3e, - 0x79, 0xb1, 0xd1, 0x9c, 0x56, 0xe9, 0xf2, 0x14, 0xc2, 0x3d, 0x59, 0x8f, 0x67, 0xe7, 0xd7, 0x4b, - 0xd7, 0xb9, 0x59, 0xba, 0xce, 0xef, 0xa5, 0xeb, 0x5c, 0xad, 0xdc, 0xce, 0xcd, 0xca, 0xed, 0xfc, - 0x5c, 0xb9, 0x9d, 0xaf, 0x47, 0xad, 0xec, 0x95, 0xd6, 0xb1, 0x54, 0xe3, 0x7a, 0x0e, 0xb2, 0xb2, - 0xdb, 0xf6, 0x0d, 0x97, 0x3b, 0xeb, 0x7e, 0xbf, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xb7, - 0x0b, 0xc1, 0x67, 0x03, 0x00, 0x00, + // 471 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xd4, 0x40, + 0x1c, 0xdd, 0x58, 0xdb, 0xda, 0x89, 0xff, 0x88, 0x2d, 0x8e, 0x15, 0x92, 0x65, 0x0f, 0xb2, 0x14, + 0x9a, 0x40, 0xbd, 0x48, 0xf1, 0x54, 0x7b, 0x59, 0x54, 0x2a, 0x21, 0x22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, 0x83, 0x70, 0x4f, 0x34, 0xe3, 0xd9, 0xf9, 0xd5, + 0xd2, 0xb5, 0xae, 0x97, 0xae, 0xf5, 0x67, 0xe9, 0x5a, 0x3f, 0x56, 0x6e, 0xef, 0x7a, 0xe5, 0xf6, + 0x7e, 0xad, 0xdc, 0xde, 0xd7, 0xa3, 0x4e, 0xfa, 0xda, 0xeb, 0x58, 0xc8, 0x71, 0x33, 0x07, 0x79, + 0x55, 0x70, 0xf3, 0x8a, 0xcb, 0x9d, 0x75, 0xc9, 0x5f, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xb7, + 0xb0, 0x38, 0x91, 0x6c, 0x03, 0x00, 0x00, } func (m *LimitOrderTrancheUser) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/pool_reserves.pb.go b/x/dex/types/pool_reserves.pb.go index 5350404f5..b060cd429 100644 --- a/x/dex/types/pool_reserves.pb.go +++ b/x/dex/types/pool_reserves.pb.go @@ -87,9 +87,9 @@ func (m *PoolReservesKey) GetFee() uint64 { type PoolReserves struct { Key *PoolReservesKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reserves_maker_denom,json=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reservesMakerDenom" yaml:"reservesMakerDenom"` - PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,3,opt,name=price_taker_to_maker,json=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceTakerToMaker" yaml:"priceTakerToMaker"` - PriceOppositeTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,4,opt,name=price_opposite_taker_to_maker,json=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"priceOppositeTakerToMaker" yaml:"priceOppositeTakerToMaker"` + ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=reserves_maker_denom,json=reservesMakerDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserves_maker_denom" yaml:"reserves_maker_denom"` + PriceTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,3,opt,name=price_taker_to_maker,json=priceTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"price_taker_to_maker" yaml:"price_taker_to_maker"` + PriceOppositeTakerToMaker github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,4,opt,name=price_opposite_taker_to_maker,json=priceOppositeTakerToMaker,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"price_opposite_taker_to_maker" yaml:"price_opposite_taker_to_maker"` } func (m *PoolReserves) Reset() { *m = PoolReserves{} } @@ -140,37 +140,36 @@ func init() { func init() { proto.RegisterFile("neutron/dex/pool_reserves.proto", fileDescriptor_f0fe9f734c7ad538) } var fileDescriptor_f0fe9f734c7ad538 = []byte{ - // 465 bytes of a gzipped FileDescriptorProto + // 464 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0x80, 0x3b, 0xa6, 0x08, 0x4e, 0x15, 0x75, 0xa8, 0x90, 0x2e, 0x9a, 0x94, 0x1c, 0xa4, 0x08, - 0x9b, 0xa0, 0x5e, 0x44, 0x3c, 0x2d, 0xbd, 0x14, 0x11, 0x4b, 0xe8, 0xc9, 0x4b, 0xc8, 0x26, 0xcf, - 0xee, 0xd8, 0x26, 0x2f, 0x4c, 0xa6, 0xd2, 0xfa, 0x2b, 0x04, 0x8f, 0xfb, 0x2b, 0xbc, 0xfb, 0x03, - 0xf6, 0xb8, 0x47, 0xf1, 0x10, 0xa4, 0xbd, 0xed, 0x71, 0x7f, 0x81, 0xcc,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 0xfe, 0x58, 0x40, 0x32, 0x84, 0x44, 0x43, 0x36, 0x35, 0xfe, 0x05, 0xd9, 0xe4, + 0x7a, 0xe1, 0x4d, 0x23, 0xef, 0xfc, 0x90, 0xcf, 0x84, 0xde, 0x2d, 0xc3, 0xc8, 0x39, 0x4a, 0xa6, + 0x7e, 0x83, 0x6d, 0x1b, 0xd8, 0xb7, 0xe4, 0x7f, 0x68, 0xff, 0xbe, 0xc5, 0x45, 0xe1, 0xde, 0xab, + 0x63, 0xff, 0x21, 0xe6, 0x85, 0x07, 0xc6, 0x7f, 0x59, 0xd9, 0xf5, 0x39, 0x8e, 0x87, 0x67, 0x6b, + 0x87, 0x9c, 0xaf, 0x1d, 0xf2, 0x6d, 0xed, 0x90, 0x77, 0x1b, 0xa7, 0x75, 0xbe, 0x71, 0x5a, 0x5f, + 0x36, 0x4e, 0xeb, 0xd5, 0x83, 0x7f, 0x00, 0x2f, 0xcb, 0x87, 0xa3, 0x2f, 0xc0, 0xc9, 0x65, 0xf3, + 0x62, 0x1e, 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, 0xc5, 0xf4, 0xdc, 0x1c, 0x98, 0x03, 0x00, 0x00, } func (m *PoolReservesKey) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/query.pb.go b/x/dex/types/query.pb.go index 3d548f0a1..c9aa8017f 100644 --- a/x/dex/types/query.pb.go +++ b/x/dex/types/query.pb.go @@ -1304,8 +1304,8 @@ type QueryEstimateMultiHopSwapRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount_in" yaml:"amount_in"` + ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exit_limit_price" yaml:"exit_limit_price"` // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pick_best_route,json=pickBestRoute,proto3" json:"pick_best_route,omitempty"` @@ -1373,7 +1373,7 @@ func (m *QueryEstimateMultiHopSwapRequest) GetPickBestRoute() bool { } type QueryEstimateMultiHopSwapResponse struct { - CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coin_out,json=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` + CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coin_out,json=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin_out"` } func (m *QueryEstimateMultiHopSwapResponse) Reset() { *m = QueryEstimateMultiHopSwapResponse{} } @@ -1415,11 +1415,11 @@ type QueryEstimatePlaceLimitOrderRequest struct { TokenIn string `protobuf:"bytes,3,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` TokenOut string `protobuf:"bytes,4,opt,name=token_out,json=tokenOut,proto3" json:"token_out,omitempty"` TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tick_index_in_to_out,json=tickIndexInToOut,proto3" json:"tick_index_in_to_out,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount_in" yaml:"amount_in"` OrderType LimitOrderType `protobuf:"varint,7,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. ExpirationTime *time.Time `protobuf:"bytes,8,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` - MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=maxAmount_out,json=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` + MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=maxAmount_out,json=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_amount_out" yaml:"max_amount_out"` } func (m *QueryEstimatePlaceLimitOrderRequest) Reset() { *m = QueryEstimatePlaceLimitOrderRequest{} } @@ -1507,13 +1507,13 @@ func (m *QueryEstimatePlaceLimitOrderRequest) GetExpirationTime() *time.Time { type QueryEstimatePlaceLimitOrderResponse struct { // Total amount of coin used for the limit order // You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin - TotalInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=total_in_coin,json=totalInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"totalInCoin" yaml:"totalInCoin"` + TotalInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=total_in_coin,json=totalInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"total_in_coin" yaml:"total_in_coin"` // Total amount of the token in that was immediately swapped for swapOutCoin - SwapInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=swap_in_coin,json=swapInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapInCoin" yaml:"swapInCoin"` + SwapInCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=swap_in_coin,json=swapInCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swap_in_coin" yaml:"swap_in_coin"` // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - SwapOutCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=swap_out_coin,json=swapOutCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swapOutCoin" yaml:"swapOutCoin"` + SwapOutCoin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=swap_out_coin,json=swapOutCoin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"swap_out_coin" yaml:"swap_out_coin"` } func (m *QueryEstimatePlaceLimitOrderResponse) Reset() { *m = QueryEstimatePlaceLimitOrderResponse{} } @@ -1922,144 +1922,145 @@ func init() { func init() { proto.RegisterFile("neutron/dex/query.proto", fileDescriptor_b6613ea5fce61e9c) } var fileDescriptor_b6613ea5fce61e9c = []byte{ - // 2185 bytes of a gzipped FileDescriptorProto + // 2194 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcf, 0x6f, 0x1b, 0xc7, - 0xf5, 0xf7, 0x8a, 0xb2, 0x2c, 0x8d, 0x24, 0x4b, 0x1a, 0xc9, 0x5f, 0xd3, 0x94, 0x4c, 0xca, 0x9b, - 0xd8, 0x92,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0x5a, 0x6b, 0xa2, 0x4b, 0x7d, 0x70, 0x01, 0xd3, - 0xfb, 0x68, 0x51, 0xc2, 0x34, 0x4c, 0x72, 0xb1, 0x3f, 0xc9, 0x40, 0xf0, 0x42, 0x0f, 0xc1, 0xea, - 0x07, 0x31, 0x27, 0xb2, 0x99, 0xce, 0xe4, 0x44, 0x0c, 0x7a, 0x2c, 0x19, 0x74, 0x52, 0x8a, 0xb9, - 0xa7, 0x96, 0xe2, 0x5f, 0x15, 0x20, 0x47, 0x0e, 0x30, 0x8b, 0x9c, 0xdc, 0x33, 0x90, 0x33, 0x3a, - 0xe5, 0xfd, 0x10, 0x2d, 0xc7, 0x31, 0x30, 0x49, 0xef, 0x44, 0x69, 0x20, 0xcc, 0xde, 0xa6, 0x5e, - 0x93, 0x20, 0x78, 0x1a, 0x16, 0x7f, 0xab, 0xa0, 0x15, 0x39, 0x02, 0x20, 0xf0, 0xcb, 0x68, 0x12, - 0x92, 0x53, 0x08, 0xac, 0x15, 0x12, 0xac, 0x41, 0x07, 0x9d, 0x27, 0x2e, 0x60, 0xac, 0xdd, 0x63, - 0x74, 0x44, 0xbd, 0xa3, 0xa0, 0xa2, 0x88, 0xb3, 0x33, 0x59, 0xff, 0x43, 0xb2, 0xfe, 0xac, 0xa0, - 0x52, 0x2a, 0x08, 0xe0, 0xeb, 0x0d, 0x34, 0x23, 0x08, 0x2e, 0x1c, 0x7a, 0xaf, 0x9b, 0xee, 0xa8, - 0x6d, 0x84, 0xf4, 0xfd, 0x4a, 0x98, 0xe6, 0x7d, 0xbb, 0x76, 0xfc, 0x66, 0x7c, 0x90, 0xf8, 0x22, - 0xac, 0xe4, 0x0f, 0x15, 0x74, 0x31, 0x05, 0x1c, 0x90, 0x7a, 0x0b, 0x9d, 0x4d, 0x9e, 0x7f, 0xa4, - 0x52, 0x4c, 0xf4, 0x05, 0x3a, 0x67, 0xa9, 0xd8, 0x38, 0x3a, 0x42, 0x3f, 0x50, 0xd0, 0x7a, 0xbc, -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, 0x60, 0xf5, 0xc3, + 0x90, 0x13, 0xd9, 0x4c, 0xa7, 0x72, 0x12, 0x0d, 0x7a, 0x2c, 0x1e, 0x74, 0x5c, 0x8a, 0x99, 0x27, + 0x96, 0xe2, 0x5f, 0x14, 0x20, 0x47, 0x0e, 0x30, 0x8d, 0x9c, 0xcc, 0x53, 0x90, 0x33, 0x3a, 0xe5, + 0xfd, 0x18, 0x2d, 0x87, 0x31, 0x70, 0x49, 0xef, 0x06, 0x69, 0xc0, 0x4f, 0xdf, 0xa6, 0x5e, 0x95, + 0x20, 0x78, 0x12, 0x16, 0x7f, 0xa3, 0xa0, 0x15, 0x39, 0x02, 0x20, 0xf0, 0x6b, 0x68, 0x12, 0x92, + 0x93, 0x0f, 0xac, 0xe5, 0x62, 0xac, 0x41, 0x07, 0x5d, 0x24, 0x2e, 0x60, 0xac, 0xdd, 0x63, 0x74, + 0x44, 0xbd, 0xa3, 0xa0, 0x7c, 0x14, 0x67, 0x67, 0xb2, 0xfe, 0x8f, 0x64, 0x7d, 0xa4, 0xa0, 0x42, + 0x22, 0x08, 0xe0, 0xeb, 0x75, 0x34, 0x13, 0x11, 0x9c, 0x3f, 0xf4, 0x5e, 0x37, 0xdd, 0x51, 0xdb, + 0x08, 0xe9, 0xfb, 0x65, 0x64, 0x9a, 0x0f, 0xac, 0xca, 0xc9, 0x1b, 0xe1, 0x41, 0xe2, 0x8b, 0xb0, + 0x92, 0xff, 0xa0, 0xa0, 0xcb, 0x09, 0xe0, 0x80, 0xd4, 0x5b, 0x68, 0x2e, 0x7e, 0xfe, 0x91, 0x4a, + 0x31, 0xd6, 0x17, 0xe8, 0x9c, 0x65, 0xd1, 0xc6, 0xd1, 0x11, 0xfa, 0xa1, 0x82, 0x36, 0xc2, 0xad, + 0xb9, 0xec, 0x98, 0x15, 0x66, 0xdd, 0x23, 0x23, 0xdd, 0x26, 0xe3, 0x59, 0x25, 0xd3, 0x9d, 0x55, + 0x52, 0x53, 0xc7, 0xfb, 0x0a, 0xba, 0x36, 0x00, 0x40, 0x20, 0x98, 0xa0, 0x15, 0x0b, 0x8c, 0x8c, + 0xa7, 0x4d, 0x26, 0x97, 0xac, 0x24, 0x77, 0xaa, 0x07, 0xa4, 0xed, 0xd8, 0x76, 0x2a, 0x69, 0xa3, + 0x3a, 0xb2, 0xfc, 0x23, 0x24, 0xa2, 0xbf, 0xd3, 0x81, 0x89, 0xc8, 0x8c, 0x80, 0x88, 0xd1, 0xe9, + 0xf0, 0x17, 0x4a, 0x27, 0x83, 0xec, 0x53, 0x6a, 0xeb, 0x70, 0xfe, 0xff, 0x22, 0xac, 0xeb, 0xdf, + 0x46, 0x36, 0x9d, 0x38, 0x36, 0x20, 0x7b, 0x17, 0xcd, 0xc6, 0x2e, 0x2d, 0xc0, 0xee, 0xa5, 0xf8, + 0x39, 0x3f, 0xd2, 0x13, 0x88, 0x9d, 0x71, 0x23, 0x6d, 0x23, 0xcd, 0x31, 0xcb, 0xe1, 0x92, 0x19, + 0x15, 0x97, 0x29, 0xcb, 0x78, 0x1e, 0x65, 0xee, 0x10, 0x22, 0x96, 0xef, 0xb8, 0xce, 0x1f, 0xd5, + 0x2a, 0x70, 0xd6, 0x83, 0x21, 0x99, 0x33, 0x65, 0x68, 0xce, 0xd4, 0x8f, 0x32, 0x70, 0xba, 0x7b, + 0xc5, 0x67, 0x56, 0xcd, 0x64, 0xe4, 0x76, 0xdd, 0x66, 0xd6, 0x6b, 0xd4, 0xfd, 0xce, 0xdb, 0xa6, + 0x1b, 0x49, 0xa8, 0x15, 0x8f, 0x98, 0x8c, 0x7a, 0x61, 0x42, 0x85, 0x57, 0x9c, 0x43, 0x93, 0x1e, + 0xa9, 0x10, 0xeb, 0x1e, 0xf1, 0x20, 0xe0, 0xf6, 0x3b, 0xde, 0x46, 0x13, 0x1e, 0xad, 0x33, 0xe2, + 0x67, 0x33, 0x92, 0x3d, 0x3a, 0xf4, 0xa3, 0x73, 0x13, 0x1d, 0x2c, 0xb1, 0x8d, 0xa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 0x5e, 0x2c, 0xf0, + 0x9a, 0xdc, 0x47, 0xe4, 0xd2, 0x91, 0x0a, 0xe3, 0x19, 0x01, 0xe3, 0x32, 0x5e, 0x96, 0xc1, 0x08, + 0x6e, 0x2b, 0x0f, 0xf0, 0x4f, 0x40, 0xfc, 0xed, 0xc3, 0x70, 0xb2, 0xf8, 0xbb, 0x4e, 0xf9, 0x7d, + 0xc4, 0xdf, 0x7d, 0x4e, 0x57, 0xd7, 0x05, 0x94, 0x35, 0x5c, 0xd0, 0x12, 0xff, 0x99, 0x43, 0xbb, + 0xcf, 0xe1, 0xbc, 0x0b, 0xbb, 0x45, 0x38, 0x42, 0xff, 0xdd, 0x62, 0x00, 0x44, 0x09, 0x37, 0x07, + 0x55, 0x15, 0x88, 0x56, 0x70, 0x2e, 0x19, 0x51, 0x69, 0xf7, 0xe3, 0x87, 0x79, 0xe5, 0xd3, 0x87, + 0x79, 0xe5, 0x5f, 0x0f, 0xf3, 0xca, 0x7b, 0x8f, 0xf2, 0x67, 0x3e, 0x7d, 0x94, 0x3f, 0xf3, 0xb7, + 0x47, 0xf9, 0x33, 0x3f, 0xb8, 0x9e, 0x52, 0xca, 0x6b, 0x04, 0xd9, 0x8c, 0x5f, 0x66, 0x0f, 0x27, + 0x44, 0xc9, 0xe4, 0xcb, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x1a, 0x15, 0xc0, 0x8f, 0x24, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index 47e78b1b3..d7aed6aba 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -121,8 +121,8 @@ type MsgDeposit struct { Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` TokenA string `protobuf:"bytes,3,opt,name=token_a,json=tokenA,proto3" json:"token_a,omitempty"` TokenB string `protobuf:"bytes,4,opt,name=token_b,json=tokenB,proto3" json:"token_b,omitempty"` - AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amounts_a,json=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsA" yaml:"amountsA"` - AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amounts_b,json=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountsB" yaml:"amountsB"` + AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amounts_a,json=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amounts_a" yaml:"amounts_a"` + AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amounts_b,json=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amounts_b" yaml:"amounts_b"` TickIndexesAToB []int64 `protobuf:"varint,7,rep,packed,name=tick_indexes_a_to_b,json=tickIndexesAToB,proto3" json:"tick_indexes_a_to_b,omitempty"` Fees []uint64 `protobuf:"varint,8,rep,packed,name=fees,proto3" json:"fees,omitempty"` Options []*DepositOptions `protobuf:"bytes,9,rep,name=options,proto3" json:"options,omitempty"` @@ -211,8 +211,8 @@ func (m *MsgDeposit) GetOptions() []*DepositOptions { } type MsgDepositResponse struct { - Reserve0Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,rep,name=reserve0_deposited,json=reserve0Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve0Deposited" yaml:"reserve0Deposited"` - Reserve1Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,rep,name=reserve1_deposited,json=reserve1Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve1Deposited" yaml:"reserve1Deposited"` + Reserve0Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,rep,name=reserve0_deposited,json=reserve0Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve0_deposited" yaml:"reserve0_deposited"` + Reserve1Deposited []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,rep,name=reserve1_deposited,json=reserve1Deposited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserve1_deposited" yaml:"reserve1_deposited"` } func (m *MsgDepositResponse) Reset() { *m = MsgDepositResponse{} } @@ -253,7 +253,7 @@ type MsgWithdrawal struct { Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` TokenA string `protobuf:"bytes,3,opt,name=token_a,json=tokenA,proto3" json:"token_a,omitempty"` TokenB string `protobuf:"bytes,4,opt,name=token_b,json=tokenB,proto3" json:"token_b,omitempty"` - SharesToRemove []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=shares_to_remove,json=sharesToRemove,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesToRemove" yaml:"sharesToRemove"` + SharesToRemove []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=shares_to_remove,json=sharesToRemove,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_to_remove" yaml:"shares_to_remove"` TickIndexesAToB []int64 `protobuf:"varint,6,rep,packed,name=tick_indexes_a_to_b,json=tickIndexesAToB,proto3" json:"tick_indexes_a_to_b,omitempty"` Fees []uint64 `protobuf:"varint,7,rep,packed,name=fees,proto3" json:"fees,omitempty"` } @@ -375,11 +375,11 @@ type MsgPlaceLimitOrder struct { TokenIn string `protobuf:"bytes,3,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty"` TokenOut string `protobuf:"bytes,4,opt,name=token_out,json=tokenOut,proto3" json:"token_out,omitempty"` TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tick_index_in_to_out,json=tickIndexInToOut,proto3" json:"tick_index_in_to_out,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount_in" yaml:"amount_in"` OrderType LimitOrderType `protobuf:"varint,8,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. ExpirationTime *time.Time `protobuf:"bytes,9,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` - MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=max_amount_out,json=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxAmountOut" yaml:"maxAmountOut"` + MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=max_amount_out,json=maxAmountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_amount_out" yaml:"max_amount_out"` } func (m *MsgPlaceLimitOrder) Reset() { *m = MsgPlaceLimitOrder{} } @@ -467,11 +467,11 @@ func (m *MsgPlaceLimitOrder) GetExpirationTime() *time.Time { type MsgPlaceLimitOrderResponse struct { TrancheKey string `protobuf:"bytes,1,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` // Total amount of coin used for the limit order - CoinIn github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coin_in,json=coinIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinIn" yaml:"coinIn"` + CoinIn github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coin_in,json=coinIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin_in" yaml:"coin_in"` // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future - TakerCoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=taker_coin_out,json=takerCoinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"takerCoinOut" yaml:"takerCoinOut"` + TakerCoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=taker_coin_out,json=takerCoinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"taker_coin_out" yaml:"taker_coin_out"` } func (m *MsgPlaceLimitOrderResponse) Reset() { *m = MsgPlaceLimitOrderResponse{} } @@ -738,8 +738,8 @@ type MsgMultiHopSwap struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` - AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` - ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exitLimitPrice" yaml:"exitLimitPrice"` + AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount_in" yaml:"amount_in"` + ExitLimitPrice github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"exit_limit_price" yaml:"exit_limit_price"` // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pick_best_route,json=pickBestRoute,proto3" json:"pick_best_route,omitempty"` @@ -807,7 +807,7 @@ func (m *MsgMultiHopSwap) GetPickBestRoute() bool { } type MsgMultiHopSwapResponse struct { - CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coin_out,json=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"` + CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coin_out,json=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin_out"` } func (m *MsgMultiHopSwapResponse) Reset() { *m = MsgMultiHopSwapResponse{} } @@ -960,101 +960,101 @@ func init() { func init() { proto.RegisterFile("neutron/dex/tx.proto", fileDescriptor_a489f6e187d5e074) } var fileDescriptor_a489f6e187d5e074 = []byte{ - // 1494 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4d, 0x6c, 0x1b, 0xc5, - 0x17, 0xcf, 0xc6, 0xa9, 0x3f, 0x26, 0x5f, 0xee, 0x24, 0xfd, 0x67, 0xe3, 0xfe, 0xff, 0xb6, 0xb5, - 0xfd, 0xd3, 0x9a, 0x88, 0xda, 0x4d, 0x10, 0x3d, 0x84, 0x93, 0x9d, 0xa4, 0xe0, 0xd6, 0xae, 0xa3, - 0xad, 0xcb, 0xa7, 0xc4, 0x6a, 0x6c, 0x4f, 0xed, 0x25, 0xf6, 0xce, 0x6a, 0x67, 0x9c, 0x3a, 0x42, - 0xe2, 0x00, 0x37, 0x90, 0xaa, 0xde, 0xb8, 0x72, 0x42, 0x70, 0xeb, 0x01, 0x71, 0xe5, 0x84, 0xd4, - 0x63, 0xc5, 0x01, 0x21, 0x0e, 0x06, 0xb5, 0x87, 0x4a, 0x3d, 0x46, 0xe2, 0x8e, 0x66, 0x76, 0xbc, - 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55, 0x69, 0x1b, 0x6e, 0x82, 0xc8, 0xe8, 0x53, 0x64, 0x75, 0xb2, 0x62, + 0xbc, 0xf7, 0xda, 0x64, 0xfa, 0x10, 0xc0, 0x4b, 0x80, 0x0a, 0x00, 0xbe, 0xd7, 0xb8, 0x64, 0x50, + 0x7d, 0x8c, 0x25, 0xb5, 0xc3, 0x31, 0xcf, 0xda, 0xfb, 0x60, 0x29, 0xf8, 0xd6, 0x32, 0x15, 0x41, + 0x40, 0x21, 0x79, 0xe1, 0x18, 0x05, 0xcf, 0xf8, 0x1e, 0x50, 0x0f, 0x6d, 0xc2, 0xd9, 0xc3, 0x82, + 0x0b, 0x6a, 0x26, 0x2f, 0x3d, 0xaf, 0xa6, 0xe7, 0xf7, 0x43, 0x90, 0x98, 0xea, 0xbd, 0x99, 0xa0, + 0x95, 0xa0, 0x46, 0x32, 0x7b, 0x9c, 0x86, 0x67, 0x5f, 0x07, 0x0b, 0x13, 0x4d, 0xf4, 0xbf, 0xc1, + 0x9d, 0x7e, 0x34, 0xf9, 0xff, 0xa3, 0x50, 0xbf, 0xcd, 0x89, 0x02, 0x9b, 0xb2, 0xe9, 0x47, 0xa7, + 0x6d, 0x3e, 0x2b, 0xe3, 0x4b, 0x5b, 0x0f, 0x1e, 0xa5, 0x94, 0x87, 0x8f, 0x52, 0xca, 0x1f, 0x8f, + 0x52, 0xca, 0xbd, 0xc7, 0xa9, 0x99, 0x87, 0x8f, 0x53, 0x33, 0xbf, 0x3c, 0x4e, 0xcd, 0xdc, 0x5e, + 0x3f, 0xa6, 0xf7, 0x0d, 0xdc, 0xff, 0x24, 0xf0, 0xc6, 0xd0, 0x08, 0x8b, 0x97, 0xab, 0xd7, 0xff, + 0x0a, 0x00, 0x00, 0xff, 0xff, 0xe4, 0xfc, 0x40, 0x56, 0x65, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From 2d5d67a2fa945a1bdba989e8be0e051ac14d3e5d Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 8 Nov 2023 15:44:36 +0200 Subject: [PATCH 223/307] fix json tags --- proto/neutron/dex/deposit_record.proto | 4 +- .../dex/limit_order_tranche_user.proto | 2 +- x/dex/types/deposit_record.pb.go | 49 +++++++-------- x/dex/types/limit_order_tranche_user.pb.go | 62 +++++++++---------- 4 files changed, 58 insertions(+), 59 deletions(-) diff --git a/proto/neutron/dex/deposit_record.proto b/proto/neutron/dex/deposit_record.proto index 86a6c26b9..f699d554a 100644 --- a/proto/neutron/dex/deposit_record.proto +++ b/proto/neutron/dex/deposit_record.proto @@ -8,10 +8,10 @@ import "neutron/dex/pair_id.proto"; message DepositRecord { PairID pair_id = 1; string shares_owned = 2 [ - (gogoproto.moretags) = "yaml:\"total_shares\"", + (gogoproto.moretags) = "yaml:\"shares_owned\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "total_shares" + (gogoproto.jsontag) = "shares_owned" ]; int64 center_tick_index = 3; int64 lower_tick_index = 4; diff --git a/proto/neutron/dex/limit_order_tranche_user.proto b/proto/neutron/dex/limit_order_tranche_user.proto index 51b8163ef..c8aade199 100644 --- a/proto/neutron/dex/limit_order_tranche_user.proto +++ b/proto/neutron/dex/limit_order_tranche_user.proto @@ -15,7 +15,7 @@ message LimitOrderTrancheUser { (gogoproto.moretags) = "yaml:\"shares_owned\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, - (gogoproto.jsontag) = "sharesOwned" + (gogoproto.jsontag) = "shares_owned" ]; string shares_withdrawn = 6 [ (gogoproto.moretags) = "yaml:\"shares_withdrawn\"", diff --git a/x/dex/types/deposit_record.pb.go b/x/dex/types/deposit_record.pb.go index 6c773863e..897e3160b 100644 --- a/x/dex/types/deposit_record.pb.go +++ b/x/dex/types/deposit_record.pb.go @@ -26,7 +26,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type DepositRecord struct { PairId *PairID `protobuf:"bytes,1,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"` - SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_shares" yaml:"total_shares"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_owned" yaml:"shares_owned"` CenterTickIndex int64 `protobuf:"varint,3,opt,name=center_tick_index,json=centerTickIndex,proto3" json:"center_tick_index,omitempty"` LowerTickIndex int64 `protobuf:"varint,4,opt,name=lower_tick_index,json=lowerTickIndex,proto3" json:"lower_tick_index,omitempty"` UpperTickIndex int64 `protobuf:"varint,5,opt,name=upper_tick_index,json=upperTickIndex,proto3" json:"upper_tick_index,omitempty"` @@ -108,30 +108,29 @@ func init() { func init() { proto.RegisterFile("neutron/dex/deposit_record.proto", fileDescriptor_250413eadaebbf28) } var fileDescriptor_250413eadaebbf28 = []byte{ - // 353 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xb1, 0x4f, 0xc2, 0x40, - 0x14, 0xc6, 0x7b, 0x80, 0x18, 0x0b, 0x2a, 0x16, 0x87, 0xca, 0xd0, 0x36, 0x0c, 0xa6, 0x21, 0xd2, - 0x26, 0xba, 0x39, 0x12, 0x96, 0x4e, 0x9a, 0x46, 0x17, 0x97, 0xa6, 0xf4, 0xce, 0x72, 0x01, 0xfa, - 0x9a, 0xeb, 0x11, 0xca, 0x7f, 0xe1, 0x9f, 0x85, 0x1b, 0xa3, 0x71, 0x68, 0x0c, 0x6c, 0x8e, 0xfe, - 0x05, 0xa6, 0xd7, 0x1a, 0xcb, 0x74, 0x5f, 0xbe, 0xfb, 0xbd, 0xef, 0x25, 0xdf, 0x93, 0x8d, 0x88, - 0x2c, 0x39, 0x83, 0xc8, 0xc6, 0x24, 0xb5, 0x31, 0x89, 0x21, 0xa1, 0xdc, 0x63, 0x24, 0x00, 0x86, - 0xad, 0x98, 0x01, 0x07, 0xa5, 0x55, 0x12, 0x16, 0x26, 0x69, 0xef, 0x32, 0x84, 0x10, 0x84, 0x6f, - 0xe7, 0xaa, 0x40, 0x7a, 0x57, 0xd5, 0x90, 0xd8, 0xa7, 0xcc, 0xa3, 0xe5, 0x74, 0xff, 0xbd, 0x26, - 0x9f, 0x8e, 0x8b, 0x58, 0x57, 0xa4, 0x2a, 0x37, 0xf2, 0x71, 0x89, 0xa8, 0xc8, 0x40, 0x66, 0xeb, - 0xb6, 0x6b, 0x55, 0x36, 0x58, 0x8f, 0x3e, 0x65, 0xce, 0xd8, 0x6d, 0xe6, 0x8c, 0x83, 0x95, 0x54, - 0x6e, 0x27, 0x53, 0x9f, 0x91, 0xc4, 0x83, 0x55, 0x44, 0xb0, 0x5a, 0x33, 0x90, 0x79, 0x32, 0x7a, - 0xde, 0x64, 0xba, 0xf4, 0x99, 0xe9, 0xd7, 0x21, 0xe5, 0xd3, 0xe5, 0xc4, 0x0a, 0x60, 0x61, 0x07, - 0x90, 0x2c, 0x20, 0x29, 0x9f, 0x61, 0x82, 0x67, 0x36, 0x5f, 0xc7, 0x24, 0xb1, 0x9c, 0x88, 0x7f, - 0x67, 0x7a, 0x9b, 0x03, 0xf7, 0xe7, 0x5e, 0x91, 0xf5, 0x93, 0xe9, 0xdd, 0xb5, 0xbf, 0x98, 0xdf, - 0xf7, 0xab, 0x6e, 0xdf, 0x6d, 0x15, 0xe2, 0x21, 0xdf, 0xa4, 0x0c, 0xe4, 0x8b, 0x80, 0x44, 0x9c, - 0x30, 0x8f, 0xd3, 0x60, 0xe6, 0xd1, 0x08, 0x93, 0x54, 0xad, 0x1b, 0xc8, 0xac, 0xbb, 0xe7, 0xc5, - 0xc7, 0x13, 0x0d, 0x66, 0x4e, 0x6e, 0x2b, 0xa6, 0xdc, 0x99, 0xc3, 0xea, 0x10, 0x6d, 0x08, 0xf4, - 0x4c, 0xf8, 0x07, 0xe4, 0x32, 0x8e, 0x0f, 0xc9, 0xa3, 0x82, 0x14, 0xfe, 0x3f, 0xd9, 0x91, 0xeb, - 0xaf, 0x84, 0xa8, 0x4d, 0x03, 0x99, 0x0d, 0x37, 0x97, 0xa3, 0xf1, 0x66, 0xa7, 0xa1, 0xed, 0x4e, - 0x43, 0x5f, 0x3b, 0x0d, 0xbd, 0xed, 0x35, 0x69, 0xbb, 0xd7, 0xa4, 0x8f, 0xbd, 0x26, 0xbd, 0x0c, - 0x2a, 0x3d, 0x94, 0x65, 0x0e, 0x81, 0x85, 0x7f, 0xda, 0x4e, 0xc5, 0x65, 0x44, 0x1f, 0x93, 0xa6, - 0x38, 0xcc, 0xdd, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0x8f, 0x8e, 0x7e, 0xfa, 0x01, 0x00, - 0x00, + // 349 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xbf, 0x4e, 0xeb, 0x30, + 0x18, 0xc5, 0xe3, 0xb6, 0xb7, 0x57, 0xb8, 0xfc, 0x29, 0x29, 0x43, 0xe8, 0x90, 0x44, 0x1d, 0x50, + 0x54, 0xd1, 0x44, 0x82, 0x8d, 0xb1, 0xea, 0x92, 0x09, 0x14, 0xc1, 0xc2, 0x12, 0xa5, 0xb1, 0x49, + 0xad, 0xb6, 0x71, 0x64, 0xbb, 0x6a, 0xfa, 0x16, 0x3c, 0x56, 0xd9, 0x3a, 0x22, 0x86, 0x08, 0xb5, + 0x1b, 0x23, 0x4f, 0x80, 0xe2, 0x04, 0x91, 0x4c, 0x3e, 0xdf, 0xf1, 0xcf, 0xc7, 0xd2, 0xf9, 0xa0, + 0x19, 0xe3, 0x95, 0x60, 0x34, 0x76, 0x10, 0x4e, 0x1d, 0x84, 0x13, 0xca, 0x89, 0xf0, 0x19, 0x0e, + 0x29, 0x43, 0x76, 0xc2, 0xa8, 0xa0, 0x6a, 0xa7, 0x24, 0x6c, 0x84, 0xd3, 0xfe, 0x45, 0x44, 0x23, + 0x2a, 0x7d, 0x27, 0x57, 0x05, 0xd2, 0xbf, 0xac, 0x86, 0x24, 0x01, 0x61, 0x3e, 0x29, 0x5f, 0x0f, + 0xde, 0x1a, 0xf0, 0x64, 0x52, 0xc4, 0x7a, 0x32, 0x55, 0xbd, 0x86, 0xff, 0x4b, 0x44, 0x03, 0x26, + 0xb0, 0x3a, 0x37, 0x3d, 0xbb, 0xf2, 0x83, 0xfd, 0x10, 0x10, 0xe6, 0x4e, 0xbc, 0x76, 0xce, 0xb8, + 0x48, 0x4d, 0xe1, 0x31, 0x9f, 0x05, 0x0c, 0x73, 0x9f, 0xae, 0x63, 0x8c, 0xb4, 0x86, 0x09, 0xac, + 0xa3, 0xf1, 0xd3, 0x36, 0x33, 0x94, 0x8f, 0xcc, 0xb8, 0x8a, 0x88, 0x98, 0xad, 0xa6, 0x76, 0x48, + 0x97, 0x4e, 0x48, 0xf9, 0x92, 0xf2, 0xf2, 0x18, 0x71, 0x34, 0x77, 0xc4, 0x26, 0xc1, 0xdc, 0x76, + 0x63, 0xf1, 0x95, 0x19, 0xb5, 0x94, 0xef, 0xcc, 0xe8, 0x6d, 0x82, 0xe5, 0xe2, 0x6e, 0x50, 0x75, + 0x07, 0x5e, 0xa7, 0x18, 0xef, 0xf3, 0x49, 0x1d, 0xc2, 0xf3, 0x10, 0xc7, 0x02, 0x33, 0x5f, 0x90, + 0x70, 0xee, 0x93, 0x18, 0xe1, 0x54, 0x6b, 0x9a, 0xc0, 0x6a, 0x7a, 0x67, 0xc5, 0xc5, 0x23, 0x09, + 0xe7, 0x6e, 0x6e, 0xab, 0x16, 0xec, 0x2e, 0xe8, 0xba, 0x8e, 0xb6, 0x24, 0x7a, 0x2a, 0xfd, 0x1a, + 0xb9, 0x4a, 0x92, 0x3a, 0xf9, 0xaf, 0x20, 0xa5, 0xff, 0x47, 0x76, 0x61, 0xf3, 0x05, 0x63, 0xad, + 0x6d, 0x02, 0xab, 0xe5, 0xe5, 0x72, 0x3c, 0xd9, 0xee, 0x75, 0xb0, 0xdb, 0xeb, 0xe0, 0x73, 0xaf, + 0x83, 0xd7, 0x83, 0xae, 0xec, 0x0e, 0xba, 0xf2, 0x7e, 0xd0, 0x95, 0xe7, 0x61, 0xa5, 0x87, 0xb2, + 0xcc, 0x11, 0x65, 0xd1, 0xaf, 0x76, 0x52, 0xb9, 0x19, 0xd9, 0xc7, 0xb4, 0x2d, 0x17, 0x73, 0xfb, + 0x13, 0x00, 0x00, 0xff, 0xff, 0x49, 0x82, 0xcb, 0xe9, 0xfa, 0x01, 0x00, 0x00, } func (m *DepositRecord) Marshal() (dAtA []byte, err error) { diff --git a/x/dex/types/limit_order_tranche_user.pb.go b/x/dex/types/limit_order_tranche_user.pb.go index 19755ffaf..cedd9aed1 100644 --- a/x/dex/types/limit_order_tranche_user.pb.go +++ b/x/dex/types/limit_order_tranche_user.pb.go @@ -29,7 +29,7 @@ type LimitOrderTrancheUser struct { TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tick_index_taker_to_maker,json=tickIndexTakerToMaker,proto3" json:"tick_index_taker_to_maker,omitempty"` TrancheKey string `protobuf:"bytes,3,opt,name=tranche_key,json=trancheKey,proto3" json:"tranche_key,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sharesOwned" yaml:"shares_owned"` + SharesOwned github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shares_owned,json=sharesOwned,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_owned" yaml:"shares_owned"` SharesWithdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=shares_withdrawn,json=sharesWithdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_withdrawn" yaml:"shares_withdrawn"` SharesCancelled github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=shares_cancelled,json=sharesCancelled,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shares_cancelled" yaml:"shares_cancelled"` OrderType LimitOrderType `protobuf:"varint,8,opt,name=order_type,json=orderType,proto3,enum=neutron.dex.LimitOrderType" json:"order_type,omitempty"` @@ -113,36 +113,36 @@ func init() { var fileDescriptor_67e5ffbd487ea05f = []byte{ // 471 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4f, 0x6b, 0xd4, 0x40, - 0x1c, 0xdd, 0x58, 0xdb, 0xda, 0x89, 0xff, 0x88, 0x2d, 0x8e, 0x15, 0x92, 0x65, 0x0f, 0xb2, 0x14, - 0x9a, 0x40, 0xbd, 0x48, 0xf1, 0x54, 0x7b, 0x59, 0x54, 0x2a, 0x21, 0x22, 0x08, 0x32, 0x4c, 0x33, - 0x3f, 0x76, 0x87, 0xdd, 0x64, 0xc2, 0xcc, 0x2c, 0x9b, 0x7c, 0x03, 0x8f, 0x5e, 0xfc, 0x4e, 0x3d, - 0xf6, 0x28, 0x1e, 0x82, 0xec, 0xde, 0x3c, 0xf6, 0x13, 0xc8, 0x6c, 0xfe, 0x90, 0xa5, 0x27, 0xe9, - 0x69, 0x7e, 0xf3, 0xde, 0xe3, 0xfd, 0xde, 0x0c, 0x0f, 0x1d, 0xa5, 0x30, 0xd7, 0x52, 0xa4, 0x01, - 0x83, 0x3c, 0x98, 0xf1, 0x84, 0x6b, 0x22, 0x24, 0x03, 0x49, 0xb4, 0xa4, 0x69, 0x3c, 0x01, 0x32, - 0x57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xe7, 0xc0, 0xf0, 0xee, 0x7f, 0x46, 0x69, 0x9c, 0xee, 0x44, 0x69, 0x98, 0x26, + 0xca, 0xbb, 0x1a, 0x71, 0x4e, 0x11, 0xaa, 0x2a, 0x9d, 0xa7, 0x80, 0x1f, 0xf4, 0xad, 0xe1, 0xe3, + 0x93, 0x97, 0x9d, 0xfe, 0xb4, 0xaa, 0x97, 0xa7, 0x10, 0xee, 0x89, 0x7a, 0x3c, 0x3b, 0xbf, 0x5e, + 0xb9, 0xd6, 0xcd, 0xca, 0xb5, 0x7e, 0xaf, 0x5c, 0xeb, 0xfb, 0xda, 0xed, 0xdd, 0xac, 0xdd, 0xde, + 0xcf, 0xb5, 0xdb, 0xfb, 0x72, 0xd4, 0x4a, 0x5f, 0x79, 0x1d, 0x0b, 0x39, 0xa9, 0xe7, 0x20, 0x2b, + 0x1b, 0x6e, 0x5e, 0x71, 0xb5, 0xb3, 0x69, 0xf9, 0xeb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, + 0x33, 0x63, 0x0d, 0x6d, 0x03, 0x00, 0x00, } func (m *LimitOrderTrancheUser) Marshal() (dAtA []byte, err error) { From f5cf93489ae1c1818a99c37c571958964c290dd7 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Wed, 8 Nov 2023 12:44:23 -0500 Subject: [PATCH 224/307] save --- go.mod | 6 ++-- go.sum | 4 +-- tests/ibc/swap_forward_test.go | 2 -- x/ibcswap/ibc_middleware.go | 50 +++++++++++++++++++++++++++++++++- 4 files changed, 53 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 1f0796f6d..f6ddeb46f 100644 --- a/go.mod +++ b/go.mod @@ -17,9 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - // TEMP: Using this version to support duality swap-and-forward - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 - // github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 github.com/cosmos/ibc-go/v7 v7.2.0 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 @@ -38,9 +36,9 @@ require ( github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 + golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d google.golang.org/grpc v1.59.0 - golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb google.golang.org/protobuf v1.31.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index 524231754..1d2952b0f 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 h1:iFWb/KrnP5jthNZ23l72wqE8nzHJHzoVe22giUfJce8= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79 h1:n+PjYB3JnbKN+sGmX6khST4xMP+D0UdrMNj7O91fuOg= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230803181732-7c8f814d3b79/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 12d07e448..e04dac8d6 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -122,8 +122,6 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { // Check that the funds are now present in the acc on chainB s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) - - s.Assert().NoError(err) } func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 4abad72ce..f7fec4c73 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -3,11 +3,13 @@ package ibcswap import ( "context" "encoding/json" + "fmt" "strings" sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/address" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" @@ -127,6 +129,16 @@ func (im IBCMiddleware) OnRecvPacket( } metadata := m.Swap + + // override the receiver so that senders cannot move funds through arbitrary addresses. + // also needed to match behavior of PFM + overrideReceiver, err := getReceiver(packet.DestinationChannel, data.Sender) + if err != nil { + return channeltypes.NewErrorAcknowledgement(err) + } + metadata.Receiver = overrideReceiver + metadata.Creator = overrideReceiver + if err := metadata.Validate(); err != nil { return channeltypes.NewErrorAcknowledgement(err) } @@ -145,7 +157,9 @@ func (im IBCMiddleware) OnRecvPacket( ) wrappedSdkCtx := ctx.WithContext(ctxWithForwardFlags) - ack := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) + overridePacket := NewPacketWithOverrideReceiver(packet, data, overrideReceiver) + + ack := im.app.OnRecvPacket(wrappedSdkCtx, overridePacket, relayer) if ack == nil || !ack.Success() { return ack } @@ -372,3 +386,37 @@ func getDenomForThisChain( prefixedDenom := transfertypes.GetDenomPrefix(port, channel) + denom return transfertypes.ParseDenomTrace(prefixedDenom).IBCDenom() } + +func NewPacketWithOverrideReceiver(oldPacket channeltypes.Packet, data transfertypes.FungibleTokenPacketData, overrideReceiver string) channeltypes.Packet { + overrideData := transfertypes.FungibleTokenPacketData{ + Denom: data.Denom, + Amount: data.Amount, + Sender: data.Sender, + Receiver: overrideReceiver, // override receiver + } + overrideDataBz := transfertypes.ModuleCdc.MustMarshalJSON(&overrideData) + + return channeltypes.Packet{ + Sequence: oldPacket.Sequence, + SourcePort: oldPacket.SourcePort, + SourceChannel: oldPacket.SourceChannel, + DestinationPort: oldPacket.DestinationPort, + DestinationChannel: oldPacket.DestinationChannel, + Data: overrideDataBz, // override data + TimeoutHeight: oldPacket.TimeoutHeight, + TimeoutTimestamp: oldPacket.TimeoutTimestamp, + } +} + +// NOTE: This has been copied from https://github.com/cosmos/ibc-apps/blob/0288bf5c3ec205134e288815f654b59611bd2153/middleware/packet-forward-middleware/packetforward/ibc_middleware.go#L143 +// this allows us to use the same address as the PFM. +// Unfortunately, this is a very brittle solution that depends on the corresponding function in th PFM not being changed. +// Nonetheless, any breaking changes in the PFM will be caught by tests. +// An issue has been created on the cosmos/ibc-apps repo to make this function public so we can use it directly: https://github.com/cosmos/ibc-apps/issues/131 +func getReceiver(channel, originalSender string) (string, error) { + senderStr := fmt.Sprintf("%s/%s", channel, originalSender) + senderHash32 := address.Hash(forwardtypes.ModuleName, []byte(senderStr)) + sender := sdk.AccAddress(senderHash32[:20]) + bech32Prefix := sdk.GetConfig().GetBech32AccountAddrPrefix() + return sdk.Bech32ifyAddressBytes(bech32Prefix, sender) +} From e4f3ea509cb87b77931b58fb537d47ce31be0a08 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 8 Nov 2023 22:29:21 +0200 Subject: [PATCH 225/307] fix max_gas limit for tests --- network/init-neutrond.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index d2461210f..6d7ce50ff 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -643,7 +643,7 @@ set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BY set_genesis_param proposer_fee "\"0.25\"" # builder(POB) set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) set_genesis_param sudo_call_gas_limit "\"1000000\"" # contractmanager -set_genesis_param max_gas "\"40000000\"" # consensus_params +set_genesis_param max_gas "\"1000000000\"" # consensus_params if ! jq -e . "$GENESIS_PATH" >/dev/null 2>&1; then echo "genesis appears to become incorrect json" >&2 From 1558368c96f6a2ddebd6ad2b915a99307e5b32a7 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 08:38:50 +0300 Subject: [PATCH 226/307] add warning comment about expected error to AddContractFailure --- x/contractmanager/keeper/failure.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 6adc60fd5..54bb3435b 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -8,7 +8,14 @@ import ( "github.com/neutron-org/neutron/x/contractmanager/types" ) -// AddContractFailure adds a specific failure to the store using address as the key +// AddContractFailure adds a specific failure to the store. The provided address is used to determine +// the failure ID and they both are used to create a storage key for the failure. +// +// WARNING: The errMsg string parameter is expected to be deterministic. It means that the errMsg +// must be OS/library version agnostic and carry a concrete defined error message. One of the good +// ways to do so is to redact error as it is done in SudoLimitWrapper Sudo method: +// https://github.com/neutron-org/neutron/blob/4ee803ff75bb8fdddee1ed62fbf8b771d8006347/x/contractmanager/ibc_middleware.go#L40. +// Another good way could be passing here some constant value. func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte, errMsg string) types.Failure { failure := types.Failure{ Address: address, From 10ab425a892abeda108188e2edb847cf4730685c Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 9 Nov 2023 03:16:43 -0500 Subject: [PATCH 227/307] Upgrade x/ibcswap to be compatible with PFM v7.0.2 - Fix issues relating to PFMs new overrideReceiver address - Small cleanup up OnRecvPacket for greater clarity - Get rid of NonRefundable swap param and just use presence NeutronRefundAddress to determine refund behavior. - Improve refund behavior to allow for IBC refund after failed forward - Add additional validation to ensure that only the amount transfered is used for swap --- go.mod | 3 +- go.sum | 4 +- tests/ibc/ibc_setup_test.go | 16 ++++ tests/ibc/swap_forward_test.go | 155 +++++++++++++++++++++++++++----- tests/ibc/swap_test.go | 53 +---------- x/ibcswap/ibc_middleware.go | 159 ++++++++++++++++++--------------- x/ibcswap/keeper/keeper.go | 5 +- x/ibcswap/types/swap.go | 23 +++-- 8 files changed, 266 insertions(+), 152 deletions(-) diff --git a/go.mod b/go.mod index be9d3d6f8..52c19731c 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.2-0.20231103132047-e5a274cf6fc2 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 @@ -169,7 +169,6 @@ require ( go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.13.0 // indirect - golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect golang.org/x/net v0.15.0 // indirect golang.org/x/oauth2 v0.12.0 // indirect golang.org/x/sync v0.3.0 // indirect diff --git a/go.sum b/go.sum index 9cdb5e74d..9ab2d13a7 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.0.1 h1:8mK4Ha/56P6jkRcLhIYhg/ipWhEuXBtj5O4I6fAi6vg= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1/go.mod h1:GGUJN4LnB3J1Luu4kxTklQLbW69So3QXUndSalB003s= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.2-0.20231103132047-e5a274cf6fc2 h1:FM6+3eZI9j9/Gud4TM6t+v1WgHpvyu95PU3Hwk3pPmk= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.2-0.20231103132047-e5a274cf6fc2/go.mod h1:GGUJN4LnB3J1Luu4kxTklQLbW69So3QXUndSalB003s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index e3df4b424..827920bf2 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -6,6 +6,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -325,6 +326,14 @@ func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, ex s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) } +func (s *IBCTestSuite) ReceiverOverrideAddr(channel, sender string) sdk.AccAddress { + addr, err := packetforward.GetReceiver(channel, sender) + if err != nil { + panic("Cannot calc receiver override: " + err.Error()) + } + return sdk.MustAccAddressFromBech32(addr) +} + //nolint:unparam // keep this flexible even if we aren't currently using all the params func (s *IBCTestSuite) neutronDeposit( token0 string, @@ -355,11 +364,18 @@ func (s *IBCTestSuite) neutronDeposit( func (s *IBCTestSuite) RelayAllPacketsAToB(path *icsibctesting.Path) error { sentPackets := path.EndpointA.Chain.SentPackets + chainB := path.EndpointB.Chain if len(sentPackets) == 0 { return fmt.Errorf("No packets to send") } for _, packet := range sentPackets { + // Skip if packet has already been sent + ack, _ := chainB.App.GetIBCKeeper().ChannelKeeper. + GetPacketAcknowledgement(chainB.GetContext(), packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence()) + if ack != nil { + continue + } err := path.RelayPacket(packet) if err != nil { return err diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 4d8e499d8..e975878a0 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -333,11 +333,29 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) + // Transfer native denom from neutron to provider + s.IBCTransfer( + s.neutronTransferPath, + s.neutronTransferPath.EndpointA, + s.neutronAddr, + s.providerAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.neutronTransferPath.EndpointB.ChannelID, + nativeDenom, + ) + transferDenomNeutronProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + s.assertProviderBalance(s.providerAddr, transferDenomNeutronProvider, ibcTransferAmount) + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata s.IBCTransferProviderToNeutron( s.providerAddr, s.neutronAddr, - nativeDenom, + transferDenomNeutronProvider, ibcTransferAmount, string(metadataBz), ) @@ -347,23 +365,18 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.Assert().NoError(err) s.coordinator.CommitBlock(s.neutronChain) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) - // Check that the amountIn has been deducted from the neutron chain - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, nativeDenom, - newProviderBalNative.Sub(ibcTransferAmount).Add(expectedAmountOut), + newProviderBalNative.Add(expectedAmountOut), ) - - s.Assert().NoError(err) } -// TestSwapAndForward_ForwardFails asserts that the swap and forward middleware stack works as intended in the case -// that an incoming IBC swap succeeds but the forward fails. -func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { +// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case +// that an incoming IBC swap succeeds but the forward fails when a NeutronRefundAddress is provided. +// The swap will be reverted and the transferred amount will be credited to the refundAddr +func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token s.IBCTransferProviderToNeutron( s.providerAddr, @@ -397,7 +410,6 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) - expectedAmountOut := math.NewInt(99990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) @@ -420,6 +432,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { err = json.Unmarshal(bz, nextJSON) s.Assert().NoError(err) + refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ @@ -431,7 +444,8 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { TickIndexInToOut: 2, OrderType: types.LimitOrderType_FILL_OR_KILL, }, - Next: nextJSON, + NeutronRefundAddress: refundAddr.String(), + Next: nextJSON, }, } @@ -459,14 +473,13 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - // Check that the amountOut stays on the neutronchain - s.assertNeutronBalance( - s.neutronAddr, - nativeDenom, - postDepositNeutronBalNative.Add(expectedAmountOut), - ) + // Check that nothing remains in the overrideReceiver account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + + // Check that the swap was reverted and the transfer amount is in the refundAddr + s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) // Check that nothing made it to chainB transferDenomPath := transfertypes.GetPrefixedDenom( @@ -478,3 +491,103 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) } + +// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case +// that an incoming IBC swap succeeds but the forward fails when no NeutronRefundAddress is provided. +// The swap will be reverted and a refund to the src chain will take place. +func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( + s.providerAddr, + s.neutronAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Neutron + depositAmount := math.NewInt(100_000) + s.neutronDeposit( + nativeDenom, + s.providerToNeutronDenom, + depositAmount, + depositAmount, + 0, + 1, + s.neutronAddr) + + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := math.NewInt(100000) + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, + Channel: "invalid-channel", // add an invalid channel identifier so the forward fails + Timeout: pfmtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata + s.IBCTransferProviderToNeutron( + s.providerAddr, + s.neutronAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Relay the packets from neutron => ChainB + err = s.RelayAllPacketsAToB(s.neutronChainBPath) + // Relay Fails + s.Assert().Error(err) + + // Check that nothing remains in the overrideReceiver account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + + // Check that the refund takes place and the funds are moved back to the account on Gaia + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(depositAmount)) +} diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index a7cf723af..8c7ac2432 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -102,8 +102,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { TickIndexInToOut: 1, OrderType: dextypes.LimitOrderType_FILL_OR_KILL, }, - NonRefundable: false, - Next: nil, + Next: nil, }, } @@ -127,51 +126,6 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) } -// TestIBCSwapMiddleware_FailNoRefund asserts that the IBC swap middleware works as intended with Neutron running as a -// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron. -func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { - // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair - swapAmount := math.NewInt(100000) - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 1, - OrderType: dextypes.LimitOrderType_FILL_OR_KILL, - }, - NonRefundable: true, - Next: nil, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Send (failing) IBC transfer with swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - // Check that the funds are present in the account on Neutron - s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount) - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // Check that no refund takes place and the funds are not in the account on provider - s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) -} - -// TestIBCSwapMiddleware_FailWithRefundAddr asserts that the IBC swap middleware works as intended with Neutron running as a -// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron but be moved -// to the refund address. - func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() @@ -187,9 +141,8 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { TickIndexInToOut: 1, OrderType: dextypes.LimitOrderType_FILL_OR_KILL, }, - RefundAddress: refundAddr.String(), - NonRefundable: true, - Next: nil, + NeutronRefundAddress: refundAddr.String(), + Next: nil, }, } diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 28ff228a8..b4f732e6b 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -3,14 +3,14 @@ package ibcswap import ( "context" "encoding/json" - "fmt" + "errors" "strings" sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -111,6 +111,15 @@ func (im IBCMiddleware) OnChanCloseConfirm(ctx sdk.Context, portID, channelID st // OnRecvPacket checks the memo field on this packet and if the metadata inside's root key indicates this packet // should be handled by the swap middleware it attempts to perform a swap. If the swap is successful // the underlying application's OnRecvPacket callback is invoked. + +// For clarity, here is a breakdown of the steps +// 1. Check if this is a swap packet; if not pass it to next middleware +// 2. validate swapMetadata; ErrAck if invalid +// 3. Pass through the middleware stack to ibc-go/transfer#OnRecvPacket; transfer coins are sent to receiver +// 4. Do swap; handle failures +// 5. If no PFM is present we are done; return ack +// 6. Unpack packet so that it is a valid PFM packet and set required context variables +// 7. Pass through middleware stack again where the forward is handled by packet-forward-middleware#OnRecvPacket func (im IBCMiddleware) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, @@ -130,48 +139,43 @@ func (im IBCMiddleware) OnRecvPacket( metadata := m.Swap - // override the receiver so that senders cannot move funds through arbitrary addresses. - // also needed to match behavior of PFM - overrideReceiver, err := getReceiver(packet.DestinationChannel, data.Sender) - if err != nil { + if err := metadata.Validate(); err != nil { return channeltypes.NewErrorAcknowledgement(err) } - metadata.Receiver = overrideReceiver - metadata.Creator = overrideReceiver - if err := metadata.Validate(); err != nil { + if err := validateSwapPacket(packet, data, *metadata); err != nil { return channeltypes.NewErrorAcknowledgement(err) } - // Compose our context with values that will be used to pass through to the forward middleware - ctxWithForwardFlags := context.WithValue(ctx.Context(), pfmtypes.ProcessedKey{}, true) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - pfmtypes.NonrefundableKey{}, - true, - ) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - pfmtypes.DisableDenomCompositionKey{}, - true, - ) - wrappedSdkCtx := ctx.WithContext(ctxWithForwardFlags) - - overridePacket := NewPacketWithOverrideReceiver(packet, data, overrideReceiver) + // Use overrideReceiver so that users cannot ibcswap through arbitrary addresses. + // Instead generate a unique address for each user based on their channel and origin-address + overrideReceiver, err := packetforward.GetReceiver(packet.DestinationChannel, data.Sender) + if err != nil { + return channeltypes.NewErrorAcknowledgement(err) + } + metadata.Creator = overrideReceiver + // Update packet data to match the new receiver so that transfer middleware adds tokens to the expected address + packet = newPacketWithOverrideReceiver(packet, data, overrideReceiver) + if metadata.ContainsPFM() { + // If we are using PFM change receiver to the expected address for forwarding + metadata.Receiver = overrideReceiver + } - ack := im.app.OnRecvPacket(wrappedSdkCtx, overridePacket, relayer) + ack := im.app.OnRecvPacket(ctx, packet, relayer) if ack == nil || !ack.Success() { return ack } - // Attempt to perform a swap since this packets memo included swap metadata. - res, err := im.keeper.Swap(ctx, metadata.MsgPlaceLimitOrder) + // Attempt to perform a swap using a cacheCtx + cacheCtx, writeCache := ctx.CacheContext() + res, err := im.keeper.Swap(cacheCtx, metadata.MsgPlaceLimitOrder) if err != nil { return im.handleFailedSwap(ctx, packet, data, metadata, err) } // If there is no next field set in the metadata return ack if metadata.Next == nil { + writeCache() return ack } @@ -182,30 +186,46 @@ func (im IBCMiddleware) OnRecvPacket( return ack } - data.Memo = string(memoBz) + postSwapData := data + postSwapData.Memo = string(memoBz) // Override the packet data to include the token denom and amount that was received from the swap. - data.Denom = res.TakerCoinOut.Denom - data.Amount = res.TakerCoinOut.Amount.String() + postSwapData.Denom = res.TakerCoinOut.Denom + postSwapData.Amount = res.TakerCoinOut.Amount.String() // After a successful swap funds are now in the receiver account from the MsgPlaceLimitOrder so, // we need to override the packets receiver field before invoking the forward middlewares OnRecvPacket. - data.Receiver = m.Swap.Receiver + postSwapData.Receiver = m.Swap.Receiver - dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&data) + dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&postSwapData) if err != nil { return ack } packet.Data = dataBz + // Compose our context with values that will be used to pass through to the forward middleware + ctxWithForwardFlags := context.WithValue(cacheCtx.Context(), pfmtypes.ProcessedKey{}, true) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + pfmtypes.NonrefundableKey{}, + true, + ) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + pfmtypes.DisableDenomCompositionKey{}, + true, + ) + wrappedSdkCtx := cacheCtx.WithContext(ctxWithForwardFlags) + // The forward middleware should return a nil ack if the forward is initiated properly. // If not an error occurred, and we return the original ack. newAck := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) if newAck != nil { - return ack + return im.handleFailedSwap(ctx, packet, data, metadata, errors.New(string(newAck.Acknowledgement()))) } + writeCache() return nil } @@ -286,38 +306,29 @@ func (im IBCMiddleware) handleFailedSwap( "AmountIn", metadata.AmountIn, "TickIndexInToOut", metadata.TickIndexInToOut, "OrderType", metadata.OrderType, - "refundable", metadata.NonRefundable, - "refund address", metadata.RefundAddress, + "refund address", metadata.NeutronRefundAddress, ) // The current denom is from the sender chains perspective, we need to compose the appropriate denom for this side - denomOnThisChain := getDenomForThisChain( - packet.DestinationPort, packet.DestinationChannel, - packet.SourcePort, packet.SourceChannel, - data.Denom, - ) + denomOnThisChain := getDenomForThisChain(packet, data.Denom) - if metadata.NonRefundable { - return im.handleNoRefund(ctx, data, metadata, denomOnThisChain, err) + if len(metadata.NeutronRefundAddress) != 0 { + return im.handleOnChainRefund(ctx, data, metadata, denomOnThisChain, err) } - return im.handleRefund(ctx, packet, data, denomOnThisChain, err) + return im.handleIBCRefund(ctx, packet, data, metadata, denomOnThisChain, err) } -// handleNoRefund will compose a successful ack to send back to the counterparty chain containing any error messages. +// handleOnChainRefund will compose a successful ack to send back to the counterparty chain containing any error messages. // Returning a successful ack ensures that a refund is not issued on the counterparty chain. // See: https://github.com/cosmos/ibc-go/blob/3ecc7dd3aef5790ec5d906936a297b34adf1ee41/modules/apps/transfer/keeper/relay.go#L320 -func (im IBCMiddleware) handleNoRefund( +func (im IBCMiddleware) handleOnChainRefund( ctx sdk.Context, data transfertypes.FungibleTokenPacketData, metadata *types.SwapMetadata, newDenom string, swapErr error, ) ibcexported.Acknowledgement { - if metadata.RefundAddress == "" { - return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) - } - amount, ok := math.NewIntFromString(data.Amount) if !ok { wrappedErr := sdkerrors.Wrapf( @@ -330,7 +341,7 @@ func (im IBCMiddleware) handleNoRefund( } token := sdk.NewCoin(newDenom, amount) - err := im.keeper.SendCoins(ctx, data.Receiver, metadata.RefundAddress, sdk.NewCoins(token)) + err := im.keeper.SendCoins(ctx, metadata.Creator, metadata.NeutronRefundAddress, sdk.NewCoins(token)) if err != nil { wrappedErr := sdkerrors.Wrap(err, "failed to move funds to refund address") wrappedErr = sdkerrors.Wrap(swapErr, wrappedErr.Error()) @@ -340,19 +351,20 @@ func (im IBCMiddleware) handleNoRefund( return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) } -// handleRefund will either burn or transfer the funds back to the appropriate escrow account. +// handleIBCRefund will either burn or transfer the funds back to the appropriate escrow account. // When a packet comes in the transfer module's OnRecvPacket callback is invoked which either // mints or unescrows funds on this side so if the swap fails an explicit refund is required. -func (im IBCMiddleware) handleRefund( +func (im IBCMiddleware) handleIBCRefund( ctx sdk.Context, packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, + metadata *types.SwapMetadata, newDenom string, swapErr error, ) ibcexported.Acknowledgement { data.Denom = newDenom - err := im.keeper.RefundPacketToken(ctx, packet, data) + err := im.keeper.RefundPacketToken(ctx, packet, data, metadata) if err != nil { wrappedErr := sdkerrors.Wrap(swapErr, err.Error()) @@ -366,10 +378,8 @@ func (im IBCMiddleware) handleRefund( // getDenomForThisChain composes a new token denom by either unwinding or prefixing the specified token denom appropriately. // This is necessary because the token denom in the packet data is from the perspective of the counterparty chain. -func getDenomForThisChain( - port, channel, counterpartyPort, counterpartyChannel, denom string, -) string { - counterpartyPrefix := transfertypes.GetDenomPrefix(counterpartyPort, counterpartyChannel) +func getDenomForThisChain(packet channeltypes.Packet, denom string) string { + counterpartyPrefix := transfertypes.GetDenomPrefix(packet.SourcePort, packet.SourceChannel) if strings.HasPrefix(denom, counterpartyPrefix) { // unwind denom unwoundDenom := denom[len(counterpartyPrefix):] @@ -383,11 +393,12 @@ func getDenomForThisChain( } // append port and channel from this chain to denom - prefixedDenom := transfertypes.GetDenomPrefix(port, channel) + denom + prefixedDenom := transfertypes.GetDenomPrefix(packet.DestinationPort, packet.DestinationChannel) + denom return transfertypes.ParseDenomTrace(prefixedDenom).IBCDenom() } -func NewPacketWithOverrideReceiver(oldPacket channeltypes.Packet, data transfertypes.FungibleTokenPacketData, overrideReceiver string) channeltypes.Packet { +// Update the packet data to reflect the new receiver address that is used by the PFM +func newPacketWithOverrideReceiver(oldPacket channeltypes.Packet, data transfertypes.FungibleTokenPacketData, overrideReceiver string) channeltypes.Packet { overrideData := transfertypes.FungibleTokenPacketData{ Denom: data.Denom, Amount: data.Amount, @@ -408,15 +419,23 @@ func NewPacketWithOverrideReceiver(oldPacket channeltypes.Packet, data transfert } } -// NOTE: This has been copied from https://github.com/cosmos/ibc-apps/blob/0288bf5c3ec205134e288815f654b59611bd2153/middleware/packet-forward-middleware/packetforward/ibc_middleware.go#L143 -// this allows us to use the same address as the PFM. -// Unfortunately, this is a very brittle solution that depends on the corresponding function in th PFM not being changed. -// Nonetheless, any breaking changes in the PFM will be caught by tests. -// An issue has been created on the cosmos/ibc-apps repo to make this function public so we can use it directly: https://github.com/cosmos/ibc-apps/issues/131 -func getReceiver(channel, originalSender string) (string, error) { - senderStr := fmt.Sprintf("%s/%s", channel, originalSender) - senderHash32 := address.Hash(pfmtypes.ModuleName, []byte(senderStr)) - sender := sdk.AccAddress(senderHash32[:20]) - bech32Prefix := sdk.GetConfig().GetBech32AccountAddrPrefix() - return sdk.Bech32ifyAddressBytes(bech32Prefix, sender) +func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.FungibleTokenPacketData, sm types.SwapMetadata) error { + denomOnNeutron := getDenomForThisChain(packet, transferData.Denom) + if denomOnNeutron != sm.TokenIn { + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer Denom must match TokenIn") + } + + transferAmount, ok := math.NewIntFromString(transferData.Amount) + if !ok { + return sdkerrors.Wrapf( + transfertypes.ErrInvalidAmount, + "unable to parse transfer amount (%s) into math.Int", + transferData.Amount, + ) + } + + if transferAmount.LT(sm.AmountIn) { + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be <= AmountIn") + } + return nil } diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index 3902568b5..e3f48b3d0 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -113,6 +113,7 @@ func (k Keeper) RefundPacketToken( ctx sdk.Context, packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, + metadata *types.SwapMetadata, ) error { // parse the denomination from the full denom path trace := transfertypes.ParseDenomTrace(data.Denom) @@ -128,8 +129,8 @@ func (k Keeper) RefundPacketToken( } token := sdk.NewCoin(trace.IBCDenom(), transferAmount) - // decode the receiver address - receiver, err := sdk.AccAddressFromBech32(data.Receiver) + // decode the creator address + receiver, err := sdk.AccAddressFromBech32(metadata.Creator) if err != nil { return err } diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go index 57e9faf5e..3c4965db9 100644 --- a/x/ibcswap/types/swap.go +++ b/x/ibcswap/types/swap.go @@ -20,8 +20,11 @@ type PacketMetadata struct { // further in the middleware stack or on the counterparty. type SwapMetadata struct { *dextypes.MsgPlaceLimitOrder - NonRefundable bool `json:"non-refundable,omitempty"` - RefundAddress string `json:"refund-address,omitempty"` + NonRefundable bool `json:"non-refundable,omitempty"` + // If a value is provided for NeutronRefundAddress and the swap fails the Transfer.Amount will be moved to this address for later recovery. + // If no NeutronRefundAddress is provided and a swap fails we will fail the ibc transfer and tokens will be refunded on the source chain. + + NeutronRefundAddress string `json:"refund-address,omitempty"` // Using JSONObject so that objects for next property will not be mutated by golang's lexicographic key sort on map keys during Marshal. // Supports primitives for Unmarshal/Marshal so that an escaped JSON-marshaled string is also valid. @@ -39,10 +42,10 @@ func (sm SwapMetadata) Validate() error { if sm.TokenOut == "" { return sdkerrors.Wrap(ErrInvalidSwapMetadata, "limit order tokenOut cannot be an empty string") } - if sm.RefundAddress != "" { - _, err := sdk.AccAddressFromBech32(sm.RefundAddress) + if sm.NeutronRefundAddress != "" { + _, err := sdk.AccAddressFromBech32(sm.NeutronRefundAddress) if err != nil { - return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.RefundAddress) + return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.NeutronRefundAddress) } } @@ -53,6 +56,16 @@ func (sm SwapMetadata) Validate() error { return nil } +// ContainsPFM checks if the Swapetadata is wrapping packet-forward-middleware +func (sm SwapMetadata) ContainsPFM() bool { + if sm.Next == nil { + return false + } + forward, _ := sm.Next.orderedMap.Get("forward") + + return forward != nil +} + // JSONObject is a wrapper type to allow either a primitive type or a JSON object. // In the case the value is a JSON object, OrderedMap type is used so that key order // is retained across Unmarshal/Marshal. From a0f09684ce11189c8de0e30fc01a8a9ba0b7258d Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 12:39:24 +0300 Subject: [PATCH 228/307] register error for sudo out of gas cases --- x/contractmanager/ibc_middleware.go | 2 +- x/contractmanager/types/errors.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go index 5ea900776..bf17b64ea 100644 --- a/x/contractmanager/ibc_middleware.go +++ b/x/contractmanager/ibc_middleware.go @@ -69,7 +69,7 @@ func outOfGasRecovery( if !ok || !gasMeter.IsOutOfGas() { panic(r) } - *err = errorsmod.Wrapf(errorsmod.ErrPanic, "%v", r) + *err = contractmanagertypes.ErrSudoOutOfGas } } diff --git a/x/contractmanager/types/errors.go b/x/contractmanager/types/errors.go index 612d6742f..d6da70e65 100644 --- a/x/contractmanager/types/errors.go +++ b/x/contractmanager/types/errors.go @@ -9,4 +9,5 @@ var ( IncorrectAckType = errors.Register(ModuleName, 1100, "incorrect acknowledgement type") IncorrectFailureToResubmit = errors.Register(ModuleName, 1101, "incorrect failure to resubmit") FailedToResubmitFailure = errors.Register(ModuleName, 1102, "failed to resubmit acknowledgement") + ErrSudoOutOfGas = errors.Register(ModuleName, 1103, "sudo handling went beyond the gas limit allowed by the module") ) From c54bae5ab8e92a03f1691754d35f9d47e1a58265 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 12:43:25 +0300 Subject: [PATCH 229/307] uniform and polish contractmanager registered errors --- x/contractmanager/keeper/failure.go | 4 ++-- x/contractmanager/types/errors.go | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 54bb3435b..5698a8831 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -78,11 +78,11 @@ func (k Keeper) GetFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id uint // ResubmitFailure tries to call sudo handler for contract with same parameters as initially. func (k Keeper) ResubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, failure *types.Failure) error { if failure.SudoPayload == nil { - return errorsmod.Wrapf(types.IncorrectFailureToResubmit, "cannot resubmit failure without sudo payload; failureId = %d", failure.Id) + return errorsmod.Wrapf(types.ErrIncorrectFailureToResubmit, "cannot resubmit failure without sudo payload; failureId = %d", failure.Id) } if _, err := k.wasmKeeper.Sudo(ctx, contractAddr, failure.SudoPayload); err != nil { - return errorsmod.Wrapf(types.FailedToResubmitFailure, "cannot resubmit failure; failureId = %d; err = %s", failure.Id, err) + return errorsmod.Wrapf(types.ErrFailedToResubmitFailure, "cannot resubmit failure; failureId = %d; err = %s", failure.Id, err) } // Cleanup failure since we resubmitted it successfully diff --git a/x/contractmanager/types/errors.go b/x/contractmanager/types/errors.go index d6da70e65..ba32da1fe 100644 --- a/x/contractmanager/types/errors.go +++ b/x/contractmanager/types/errors.go @@ -6,8 +6,7 @@ import ( // x/contractmanager module sentinel errors var ( - IncorrectAckType = errors.Register(ModuleName, 1100, "incorrect acknowledgement type") - IncorrectFailureToResubmit = errors.Register(ModuleName, 1101, "incorrect failure to resubmit") - FailedToResubmitFailure = errors.Register(ModuleName, 1102, "failed to resubmit acknowledgement") - ErrSudoOutOfGas = errors.Register(ModuleName, 1103, "sudo handling went beyond the gas limit allowed by the module") + ErrIncorrectFailureToResubmit = errors.Register(ModuleName, 1101, "incorrect failure to resubmit") + ErrFailedToResubmitFailure = errors.Register(ModuleName, 1102, "failed to resubmit failure") + ErrSudoOutOfGas = errors.Register(ModuleName, 1103, "sudo handling went beyond the gas limit allowed by the module") ) From eb8b5ae50907439ff9af0527a42ef0cb448a78b5 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 17:14:02 +0300 Subject: [PATCH 230/307] move RedactError func to contractmanager keeper and make public --- x/contractmanager/ibc_middleware.go | 31 +++++++---------------------- x/contractmanager/keeper/failure.go | 26 +++++++++++++++++++++++- 2 files changed, 32 insertions(+), 25 deletions(-) diff --git a/x/contractmanager/ibc_middleware.go b/x/contractmanager/ibc_middleware.go index bf17b64ea..47bb73cdc 100644 --- a/x/contractmanager/ibc_middleware.go +++ b/x/contractmanager/ibc_middleware.go @@ -3,12 +3,10 @@ package contractmanager import ( "fmt" - errorsmod "cosmossdk.io/errors" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/cometbft/cometbft/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" ) @@ -37,7 +35,12 @@ func (k SudoLimitWrapper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, resp, err = k.WasmKeeper.Sudo(cacheCtx, contractAddress, msg) }() if err != nil { // the contract either returned an error or panicked with `out of gas` - failure := k.contractManager.AddContractFailure(ctx, contractAddress.String(), msg, redactError(err).Error()) + failure := k.contractManager.AddContractFailure( + ctx, + contractAddress.String(), + msg, + contractmanagerkeeper.RedactError(err).Error(), + ) ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( wasmtypes.EventTypeSudo, @@ -80,23 +83,3 @@ func createCachedContext(ctx sdk.Context, gasLimit uint64) (sdk.Context, func()) cacheCtx = cacheCtx.WithGasMeter(gasMeter) return cacheCtx, writeFn } - -// redactError removes non-determenistic details from the error returning just codespace and core -// of the error. Returns full error for system errors. -// -// Copy+paste from https://github.com/neutron-org/wasmd/blob/5b59886e41ed55a7a4a9ae196e34b0852285503d/x/wasm/keeper/msg_dispatcher.go#L175-L190 -func redactError(err error) error { - // Do not redact system errors - // SystemErrors must be created in x/wasm and we can ensure determinism - if wasmvmtypes.ToSystemError(err) != nil { - return err - } - - // FIXME: do we want to hardcode some constant string mappings here as well? - // Or better document them? (SDK error string may change on a patch release to fix wording) - // sdk/11 is out of gas - // sdk/5 is insufficient funds (on bank send) - // (we can theoretically redact less in the future, but this is a first step to safety) - codespace, code, _ := errorsmod.ABCIInfo(err, false) - return fmt.Errorf("codespace: %s, code: %d", codespace, code) -} diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 5698a8831..8418ad099 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -1,7 +1,10 @@ package keeper import ( + "fmt" + errorsmod "cosmossdk.io/errors" + wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -13,7 +16,8 @@ import ( // // WARNING: The errMsg string parameter is expected to be deterministic. It means that the errMsg // must be OS/library version agnostic and carry a concrete defined error message. One of the good -// ways to do so is to redact error as it is done in SudoLimitWrapper Sudo method: +// ways to do so is to redact error using the RedactError func as it is done in SudoLimitWrapper +// Sudo method: // https://github.com/neutron-org/neutron/blob/4ee803ff75bb8fdddee1ed62fbf8b771d8006347/x/contractmanager/ibc_middleware.go#L40. // Another good way could be passing here some constant value. func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte, errMsg string) types.Failure { @@ -96,3 +100,23 @@ func (k Keeper) removeFailure(ctx sdk.Context, contractAddr sdk.AccAddress, id u failureKey := types.GetFailureKey(contractAddr.String(), id) store.Delete(failureKey) } + +// RedactError removes non-determenistic details from the error returning just codespace and core +// of the error. Returns full error for system errors. +// +// Copy+paste from https://github.com/neutron-org/wasmd/blob/5b59886e41ed55a7a4a9ae196e34b0852285503d/x/wasm/keeper/msg_dispatcher.go#L175-L190 +func RedactError(err error) error { + // Do not redact system errors + // SystemErrors must be created in x/wasm and we can ensure determinism + if wasmvmtypes.ToSystemError(err) != nil { + return err + } + + // FIXME: do we want to hardcode some constant string mappings here as well? + // Or better document them? (SDK error string may change on a patch release to fix wording) + // sdk/11 is out of gas + // sdk/5 is insufficient funds (on bank send) + // (we can theoretically redact less in the future, but this is a first step to safety) + codespace, code, _ := errorsmod.ABCIInfo(err, false) + return fmt.Errorf("codespace: %s, code: %d", codespace, code) +} From 11b610b2f00ec67667aefbc9444138c57fd21d0a Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 17:15:28 +0300 Subject: [PATCH 231/307] update link to RedactError usage example --- x/contractmanager/keeper/failure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/contractmanager/keeper/failure.go b/x/contractmanager/keeper/failure.go index 8418ad099..2be5209f9 100644 --- a/x/contractmanager/keeper/failure.go +++ b/x/contractmanager/keeper/failure.go @@ -18,7 +18,7 @@ import ( // must be OS/library version agnostic and carry a concrete defined error message. One of the good // ways to do so is to redact error using the RedactError func as it is done in SudoLimitWrapper // Sudo method: -// https://github.com/neutron-org/neutron/blob/4ee803ff75bb8fdddee1ed62fbf8b771d8006347/x/contractmanager/ibc_middleware.go#L40. +// https://github.com/neutron-org/neutron/blob/eb8b5ae50907439ff9af0527a42ef0cb448a78b5/x/contractmanager/ibc_middleware.go#L42. // Another good way could be passing here some constant value. func (k Keeper) AddContractFailure(ctx sdk.Context, address string, sudoPayload []byte, errMsg string) types.Failure { failure := types.Failure{ From 824e229d7fcf517b8247cf671c7973c4e2c21e65 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 17:16:04 +0300 Subject: [PATCH 232/307] regenerate mocks and update tests --- .../contractmanager/types/expected_keepers.go | 43 +++++++----- .../interchaintxs/types/expected_keepers.go | 68 +++++++++++-------- wasmbinding/test/custom_message_test.go | 6 +- x/contractmanager/ibc_middleware_test.go | 11 +-- x/contractmanager/keeper/failure_test.go | 18 ++--- x/interchaintxs/keeper/msg_server_test.go | 5 ++ 6 files changed, 90 insertions(+), 61 deletions(-) diff --git a/testutil/mocks/contractmanager/types/expected_keepers.go b/testutil/mocks/contractmanager/types/expected_keepers.go index c69dcf649..67887c4bc 100644 --- a/testutil/mocks/contractmanager/types/expected_keepers.go +++ b/testutil/mocks/contractmanager/types/expected_keepers.go @@ -7,10 +7,10 @@ package mock_types import ( reflect "reflect" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - types "github.com/cosmos/cosmos-sdk/types" + types "github.com/CosmWasm/wasmd/x/wasm/types" + types0 "github.com/cosmos/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" - types0 "github.com/neutron-org/neutron/x/contractmanager/types" + types1 "github.com/neutron-org/neutron/x/contractmanager/types" ) // MockWasmKeeper is a mock of WasmKeeper interface. @@ -19,11 +19,6 @@ type MockWasmKeeper struct { recorder *MockWasmKeeperMockRecorder } -func (m *MockWasmKeeper) GetContractInfo(ctx types.Context, contractAddress types.AccAddress) *wasmtypes.ContractInfo { - //TODO implement me - panic("implement me") -} - // MockWasmKeeperMockRecorder is the mock recorder for MockWasmKeeper. type MockWasmKeeperMockRecorder struct { mock *MockWasmKeeper @@ -41,8 +36,22 @@ func (m *MockWasmKeeper) EXPECT() *MockWasmKeeperMockRecorder { return m.recorder } +// GetContractInfo mocks base method. +func (m *MockWasmKeeper) GetContractInfo(ctx types0.Context, contractAddress types0.AccAddress) *types.ContractInfo { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetContractInfo", ctx, contractAddress) + ret0, _ := ret[0].(*types.ContractInfo) + return ret0 +} + +// GetContractInfo indicates an expected call of GetContractInfo. +func (mr *MockWasmKeeperMockRecorder) GetContractInfo(ctx, contractAddress interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractInfo", reflect.TypeOf((*MockWasmKeeper)(nil).GetContractInfo), ctx, contractAddress) +} + // HasContractInfo mocks base method. -func (m *MockWasmKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { +func (m *MockWasmKeeper) HasContractInfo(ctx types0.Context, contractAddress types0.AccAddress) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HasContractInfo", ctx, contractAddress) ret0, _ := ret[0].(bool) @@ -56,7 +65,7 @@ func (mr *MockWasmKeeperMockRecorder) HasContractInfo(ctx, contractAddress inter } // Sudo mocks base method. -func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddress, msg []byte) ([]byte, error) { +func (m *MockWasmKeeper) Sudo(ctx types0.Context, contractAddress types0.AccAddress, msg []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Sudo", ctx, contractAddress, msg) ret0, _ := ret[0].([]byte) @@ -94,22 +103,24 @@ func (m *MockContractManagerKeeper) EXPECT() *MockContractManagerKeeperMockRecor } // AddContractFailure mocks base method. -func (m *MockContractManagerKeeper) AddContractFailure(ctx types.Context, address string, sudoPayload []byte) { +func (m *MockContractManagerKeeper) AddContractFailure(ctx types0.Context, address string, sudoPayload []byte, errMsg string) types1.Failure { m.ctrl.T.Helper() - m.ctrl.Call(m, "AddContractFailure", ctx, address, sudoPayload) + ret := m.ctrl.Call(m, "AddContractFailure", ctx, address, sudoPayload, errMsg) + ret0, _ := ret[0].(types1.Failure) + return ret0 } // AddContractFailure indicates an expected call of AddContractFailure. -func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, address, sudoPayload interface{}) *gomock.Call { +func (mr *MockContractManagerKeeperMockRecorder) AddContractFailure(ctx, address, sudoPayload, errMsg interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, address, sudoPayload) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddContractFailure", reflect.TypeOf((*MockContractManagerKeeper)(nil).AddContractFailure), ctx, address, sudoPayload, errMsg) } // GetParams mocks base method. -func (m *MockContractManagerKeeper) GetParams(ctx types.Context) types0.Params { +func (m *MockContractManagerKeeper) GetParams(ctx types0.Context) types1.Params { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetParams", ctx) - ret0, _ := ret[0].(types0.Params) + ret0, _ := ret[0].(types1.Params) return ret0 } diff --git a/testutil/mocks/interchaintxs/types/expected_keepers.go b/testutil/mocks/interchaintxs/types/expected_keepers.go index de9a6d792..32923a9b6 100644 --- a/testutil/mocks/interchaintxs/types/expected_keepers.go +++ b/testutil/mocks/interchaintxs/types/expected_keepers.go @@ -7,15 +7,15 @@ package mock_types import ( reflect "reflect" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - types "github.com/cosmos/cosmos-sdk/types" - types0 "github.com/cosmos/cosmos-sdk/x/auth/types" - types1 "github.com/cosmos/cosmos-sdk/x/capability/types" - types2 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" - types3 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" + types "github.com/CosmWasm/wasmd/x/wasm/types" + types0 "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/x/auth/types" + types2 "github.com/cosmos/cosmos-sdk/x/capability/types" + types3 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + types4 "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" exported "github.com/cosmos/ibc-go/v7/modules/core/exported" gomock "github.com/golang/mock/gomock" - types4 "github.com/neutron-org/neutron/x/feerefunder/types" + types5 "github.com/neutron-org/neutron/x/feerefunder/types" ) // MockAccountKeeper is a mock of AccountKeeper interface. @@ -42,10 +42,10 @@ func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder { } // GetAccount mocks base method. -func (m *MockAccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) types0.AccountI { +func (m *MockAccountKeeper) GetAccount(ctx types0.Context, addr types0.AccAddress) types1.AccountI { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAccount", ctx, addr) - ret0, _ := ret[0].(types0.AccountI) + ret0, _ := ret[0].(types1.AccountI) return ret0 } @@ -79,7 +79,7 @@ func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder { } // SendCoins mocks base method. -func (m *MockBankKeeper) SendCoins(ctx types.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error { +func (m *MockBankKeeper) SendCoins(ctx types0.Context, fromAddr, toAddr types0.AccAddress, amt types0.Coins) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendCoins", ctx, fromAddr, toAddr, amt) ret0, _ := ret[0].(error) @@ -93,10 +93,10 @@ func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt inter } // SpendableCoins mocks base method. -func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins { +func (m *MockBankKeeper) SpendableCoins(ctx types0.Context, addr types0.AccAddress) types0.Coins { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SpendableCoins", ctx, addr) - ret0, _ := ret[0].(types.Coins) + ret0, _ := ret[0].(types0.Coins) return ret0 } @@ -112,10 +112,6 @@ type MockWasmKeeper struct { recorder *MockWasmKeeperMockRecorder } -func (m *MockWasmKeeper) GetContractInfo(ctx types.Context, contractAddress types.AccAddress) *wasmtypes.ContractInfo { - return &wasmtypes.ContractInfo{CodeID: 1} -} - // MockWasmKeeperMockRecorder is the mock recorder for MockWasmKeeper. type MockWasmKeeperMockRecorder struct { mock *MockWasmKeeper @@ -133,8 +129,22 @@ func (m *MockWasmKeeper) EXPECT() *MockWasmKeeperMockRecorder { return m.recorder } +// GetContractInfo mocks base method. +func (m *MockWasmKeeper) GetContractInfo(ctx types0.Context, contractAddress types0.AccAddress) *types.ContractInfo { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetContractInfo", ctx, contractAddress) + ret0, _ := ret[0].(*types.ContractInfo) + return ret0 +} + +// GetContractInfo indicates an expected call of GetContractInfo. +func (mr *MockWasmKeeperMockRecorder) GetContractInfo(ctx, contractAddress interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractInfo", reflect.TypeOf((*MockWasmKeeper)(nil).GetContractInfo), ctx, contractAddress) +} + // HasContractInfo mocks base method. -func (m *MockWasmKeeper) HasContractInfo(ctx types.Context, contractAddress types.AccAddress) bool { +func (m *MockWasmKeeper) HasContractInfo(ctx types0.Context, contractAddress types0.AccAddress) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HasContractInfo", ctx, contractAddress) ret0, _ := ret[0].(bool) @@ -148,7 +158,7 @@ func (mr *MockWasmKeeperMockRecorder) HasContractInfo(ctx, contractAddress inter } // Sudo mocks base method. -func (m *MockWasmKeeper) Sudo(ctx types.Context, contractAddress types.AccAddress, msg []byte) ([]byte, error) { +func (m *MockWasmKeeper) Sudo(ctx types0.Context, contractAddress types0.AccAddress, msg []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Sudo", ctx, contractAddress, msg) ret0, _ := ret[0].([]byte) @@ -186,7 +196,7 @@ func (m *MockICAControllerKeeper) EXPECT() *MockICAControllerKeeperMockRecorder } // GetActiveChannelID mocks base method. -func (m *MockICAControllerKeeper) GetActiveChannelID(ctx types.Context, connectionID, portID string) (string, bool) { +func (m *MockICAControllerKeeper) GetActiveChannelID(ctx types0.Context, connectionID, portID string) (string, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActiveChannelID", ctx, connectionID, portID) ret0, _ := ret[0].(string) @@ -201,7 +211,7 @@ func (mr *MockICAControllerKeeperMockRecorder) GetActiveChannelID(ctx, connectio } // GetInterchainAccountAddress mocks base method. -func (m *MockICAControllerKeeper) GetInterchainAccountAddress(ctx types.Context, connectionID, portID string) (string, bool) { +func (m *MockICAControllerKeeper) GetInterchainAccountAddress(ctx types0.Context, connectionID, portID string) (string, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetInterchainAccountAddress", ctx, connectionID, portID) ret0, _ := ret[0].(string) @@ -216,7 +226,7 @@ func (mr *MockICAControllerKeeperMockRecorder) GetInterchainAccountAddress(ctx, } // RegisterInterchainAccount mocks base method. -func (m *MockICAControllerKeeper) RegisterInterchainAccount(ctx types.Context, connectionID, owner, version string) error { +func (m *MockICAControllerKeeper) RegisterInterchainAccount(ctx types0.Context, connectionID, owner, version string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RegisterInterchainAccount", ctx, connectionID, owner, version) ret0, _ := ret[0].(error) @@ -230,7 +240,7 @@ func (mr *MockICAControllerKeeperMockRecorder) RegisterInterchainAccount(ctx, co } // SendTx mocks base method. -func (m *MockICAControllerKeeper) SendTx(ctx types.Context, chanCap *types1.Capability, connectionID, portID string, icaPacketData types2.InterchainAccountPacketData, timeoutTimestamp uint64) (uint64, error) { +func (m *MockICAControllerKeeper) SendTx(ctx types0.Context, chanCap *types2.Capability, connectionID, portID string, icaPacketData types3.InterchainAccountPacketData, timeoutTimestamp uint64) (uint64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendTx", ctx, chanCap, connectionID, portID, icaPacketData, timeoutTimestamp) ret0, _ := ret[0].(uint64) @@ -268,7 +278,7 @@ func (m *MockFeeRefunderKeeper) EXPECT() *MockFeeRefunderKeeperMockRecorder { } // DistributeAcknowledgementFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeAcknowledgementFee(ctx types0.Context, receiver types0.AccAddress, packetID types5.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeAcknowledgementFee", ctx, receiver, packetID) } @@ -280,7 +290,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeAcknowledgementFee(ctx, r } // DistributeTimeoutFee mocks base method. -func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types.Context, receiver types.AccAddress, packetID types4.PacketID) { +func (m *MockFeeRefunderKeeper) DistributeTimeoutFee(ctx types0.Context, receiver types0.AccAddress, packetID types5.PacketID) { m.ctrl.T.Helper() m.ctrl.Call(m, "DistributeTimeoutFee", ctx, receiver, packetID) } @@ -292,7 +302,7 @@ func (mr *MockFeeRefunderKeeperMockRecorder) DistributeTimeoutFee(ctx, receiver, } // LockFees mocks base method. -func (m *MockFeeRefunderKeeper) LockFees(ctx types.Context, payer types.AccAddress, packetID types4.PacketID, fee types4.Fee) error { +func (m *MockFeeRefunderKeeper) LockFees(ctx types0.Context, payer types0.AccAddress, packetID types5.PacketID, fee types5.Fee) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LockFees", ctx, payer, packetID, fee) ret0, _ := ret[0].(error) @@ -329,10 +339,10 @@ func (m *MockChannelKeeper) EXPECT() *MockChannelKeeperMockRecorder { } // GetChannel mocks base method. -func (m *MockChannelKeeper) GetChannel(ctx types.Context, srcPort, srcChan string) (types3.Channel, bool) { +func (m *MockChannelKeeper) GetChannel(ctx types0.Context, srcPort, srcChan string) (types4.Channel, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetChannel", ctx, srcPort, srcChan) - ret0, _ := ret[0].(types3.Channel) + ret0, _ := ret[0].(types4.Channel) ret1, _ := ret[1].(bool) return ret0, ret1 } @@ -344,7 +354,7 @@ func (mr *MockChannelKeeperMockRecorder) GetChannel(ctx, srcPort, srcChan interf } // GetConnection mocks base method. -func (m *MockChannelKeeper) GetConnection(ctx types.Context, connectionID string) (exported.ConnectionI, error) { +func (m *MockChannelKeeper) GetConnection(ctx types0.Context, connectionID string) (exported.ConnectionI, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetConnection", ctx, connectionID) ret0, _ := ret[0].(exported.ConnectionI) @@ -359,7 +369,7 @@ func (mr *MockChannelKeeperMockRecorder) GetConnection(ctx, connectionID interfa } // GetNextSequenceSend mocks base method. -func (m *MockChannelKeeper) GetNextSequenceSend(ctx types.Context, portID, channelID string) (uint64, bool) { +func (m *MockChannelKeeper) GetNextSequenceSend(ctx types0.Context, portID, channelID string) (uint64, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetNextSequenceSend", ctx, portID, channelID) ret0, _ := ret[0].(uint64) diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index a79dd73db..373aa67b7 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -637,7 +637,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() { payload, err := keeper2.PrepareSudoCallbackMessage(packet, &ack) require.NoError(suite.T(), err) failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, suite.contractAddress.String(), payload) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, suite.contractAddress.String(), payload, "test error") // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ @@ -669,7 +669,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() { payload, err := keeper2.PrepareSudoCallbackMessage(packet, nil) require.NoError(suite.T(), err) failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String()) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, suite.contractAddress.String(), payload) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, suite.contractAddress.String(), payload, "test error") // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ @@ -704,7 +704,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract( failureID := suite.messenger.ContractmanagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress) payload, err := keeper2.PrepareSudoCallbackMessage(packet, &ack) require.NoError(suite.T(), err) - suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, testutil.TestOwnerAddress, payload) + suite.messenger.ContractmanagerKeeper.AddContractFailure(suite.ctx, testutil.TestOwnerAddress, payload, "test error") // Craft message msg, err := json.Marshal(bindings.NeutronMsg{ diff --git a/x/contractmanager/ibc_middleware_test.go b/x/contractmanager/ibc_middleware_test.go index 991d93af7..edadde2cb 100644 --- a/x/contractmanager/ibc_middleware_test.go +++ b/x/contractmanager/ibc_middleware_test.go @@ -1,13 +1,14 @@ package contractmanager_test import ( - "fmt" "testing" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/golang/mock/gomock" test_keeper "github.com/neutron-org/neutron/testutil/interchaintxs/keeper" mock_types "github.com/neutron-org/neutron/testutil/mocks/contractmanager/types" + contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" "github.com/neutron-org/neutron/x/contractmanager/types" "github.com/stretchr/testify/require" ) @@ -49,11 +50,11 @@ func TestSudo(t *testing.T) { // error during Sudo ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) - cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg) + cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg, contractmanagerkeeper.RedactError(wasmtypes.ErrExecuteFailed)) wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { st := cachedCtx.KVStore(storeKey) st.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) - }).Return(nil, fmt.Errorf("sudo error")) + }).Return(nil, wasmtypes.ErrExecuteFailed) _, err = middleware.Sudo(ctx, contractAddress, msg) require.Error(t, err) require.Nil(t, st.Get(ShouldNotBeWrittenKey)) @@ -61,13 +62,13 @@ func TestSudo(t *testing.T) { // ou of gas during Sudo ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) - cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg) + cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg, contractmanagerkeeper.RedactError(types.ErrSudoOutOfGas)) wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { st := cachedCtx.KVStore(storeKey) st.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) cachedCtx.GasMeter().ConsumeGas(10001, "heavy calculations") }) _, err = middleware.Sudo(ctx, contractAddress, msg) - require.ErrorContains(t, err, "{heavy calculations}: panic") + require.ErrorContains(t, err, types.ErrSudoOutOfGas.Error()) require.Nil(t, st.Get(ShouldNotBeWrittenKey)) } diff --git a/x/contractmanager/keeper/failure_test.go b/x/contractmanager/keeper/failure_test.go index b76ef3013..d0871d3e8 100644 --- a/x/contractmanager/keeper/failure_test.go +++ b/x/contractmanager/keeper/failure_test.go @@ -48,7 +48,8 @@ func createNFailure(k *keeper.Keeper, ctx sdk.Context, addresses, failures int) panic(err) } items[i][c].SudoPayload = sudo - k.AddContractFailure(ctx, items[i][c].Address, sudo) + items[i][c].Error = "test error" + k.AddContractFailure(ctx, items[i][c].Address, sudo, "test error") } } return items @@ -87,11 +88,12 @@ func TestAddGetFailure(t *testing.T) { k, ctx := keepertest.ContractManagerKeeper(t, nil) failureID := k.GetNextFailureIDKey(ctx, contractAddress.String()) sudoPayload := []byte("payload") - k.AddContractFailure(ctx, contractAddress.String(), sudoPayload) + k.AddContractFailure(ctx, contractAddress.String(), sudoPayload, "test error") failure, err := k.GetFailure(ctx, contractAddress, failureID) require.NoError(t, err) require.Equal(t, failureID, failure.Id) require.Equal(t, sudoPayload, failure.SudoPayload) + require.Equal(t, "test error", failure.Error) // non-existent id _, err = k.GetFailure(ctx, contractAddress, failureID+1) @@ -123,7 +125,7 @@ func TestResubmitFailure(t *testing.T) { failureID := k.GetNextFailureIDKey(ctx, contractAddr.String()) payload, err := keeper.PrepareSudoCallbackMessage(packet, &ack) require.NoError(t, err) - k.AddContractFailure(ctx, contractAddr.String(), payload) + k.AddContractFailure(ctx, contractAddr.String(), payload, "test error") // success response xSuc := types.MessageSudoCallback{Response: &types.ResponseSudoPayload{ @@ -159,7 +161,7 @@ func TestResubmitFailure(t *testing.T) { failureID2 := k.GetNextFailureIDKey(ctx, contractAddr.String()) payload, err = keeper.PrepareSudoCallbackMessage(packet, &ack) require.NoError(t, err) - k.AddContractFailure(ctx, contractAddr.String(), payload) + k.AddContractFailure(ctx, contractAddr.String(), payload, "test error") wk.EXPECT().Sudo(ctx, contractAddr, msgSuc).Return(nil, fmt.Errorf("failed to sudo")) @@ -177,7 +179,7 @@ func TestResubmitFailure(t *testing.T) { failureID3 := k.GetNextFailureIDKey(ctx, contractAddr.String()) payload, err = keeper.PrepareSudoCallbackMessage(packet, &ackError) require.NoError(t, err) - k.AddContractFailure(ctx, contractAddr.String(), payload) + k.AddContractFailure(ctx, contractAddr.String(), payload, "test error") wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return([]byte{}, nil) @@ -193,7 +195,7 @@ func TestResubmitFailure(t *testing.T) { failureID4 := k.GetNextFailureIDKey(ctx, contractAddr.String()) payload, err = keeper.PrepareSudoCallbackMessage(packet, &ackError) require.NoError(t, err) - k.AddContractFailure(ctx, contractAddr.String(), payload) + k.AddContractFailure(ctx, contractAddr.String(), payload, "test error") wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgErr).Return(nil, fmt.Errorf("failed to sudo")) @@ -211,7 +213,7 @@ func TestResubmitFailure(t *testing.T) { failureID5 := k.GetNextFailureIDKey(ctx, contractAddr.String()) payload, err = keeper.PrepareSudoCallbackMessage(packet, nil) require.NoError(t, err) - k.AddContractFailure(ctx, contractAddr.String(), payload) + k.AddContractFailure(ctx, contractAddr.String(), payload, "test error") wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return([]byte{}, nil) @@ -227,7 +229,7 @@ func TestResubmitFailure(t *testing.T) { failureID6 := k.GetNextFailureIDKey(ctx, contractAddr.String()) payload, err = keeper.PrepareSudoCallbackMessage(packet, nil) require.NoError(t, err) - k.AddContractFailure(ctx, contractAddr.String(), payload) + k.AddContractFailure(ctx, contractAddr.String(), payload, "test error") wk.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddr, msgTimeout).Return(nil, fmt.Errorf("failed to sudo")) diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index c4c173deb..b542bb112 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -7,6 +7,7 @@ import ( "github.com/neutron-org/neutron/app/params" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/keeper" @@ -54,6 +55,7 @@ func TestRegisterInterchainAccount(t *testing.T) { require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().GetContractInfo(ctx, contractAddress).Return(&wasmtypes.ContractInfo{CodeID: 1}) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) require.ErrorContains(t, err, "failed to charge fees to pay for RegisterInterchainAccount msg") require.Nil(t, resp) @@ -61,6 +63,7 @@ func TestRegisterInterchainAccount(t *testing.T) { msgRegAcc.RegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().GetContractInfo(ctx, contractAddress).Return(&wasmtypes.ContractInfo{CodeID: 1}) bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(fmt.Errorf("failed to register ica")) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) @@ -68,6 +71,7 @@ func TestRegisterInterchainAccount(t *testing.T) { require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().GetContractInfo(ctx, contractAddress).Return(&wasmtypes.ContractInfo{CodeID: 1}) bankKeeper.EXPECT(). SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee). Return(fmt.Errorf("failed to send coins")) @@ -76,6 +80,7 @@ func TestRegisterInterchainAccount(t *testing.T) { require.Nil(t, resp) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) + wmKeeper.EXPECT().GetContractInfo(ctx, contractAddress).Return(&wasmtypes.ContractInfo{CodeID: 1}) bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee) icaKeeper.EXPECT().RegisterInterchainAccount(ctx, msgRegAcc.ConnectionId, icaOwner.String(), "").Return(nil) resp, err = icak.RegisterInterchainAccount(goCtx, &msgRegAcc) From bed0634b683111745246c4082374cb95832064ea Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Thu, 9 Nov 2023 17:27:26 +0300 Subject: [PATCH 233/307] fix types difference in EXPECT().AddContractFailure --- x/contractmanager/ibc_middleware_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/contractmanager/ibc_middleware_test.go b/x/contractmanager/ibc_middleware_test.go index edadde2cb..f56fbd95c 100644 --- a/x/contractmanager/ibc_middleware_test.go +++ b/x/contractmanager/ibc_middleware_test.go @@ -50,7 +50,7 @@ func TestSudo(t *testing.T) { // error during Sudo ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) - cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg, contractmanagerkeeper.RedactError(wasmtypes.ErrExecuteFailed)) + cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg, contractmanagerkeeper.RedactError(wasmtypes.ErrExecuteFailed).Error()) wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { st := cachedCtx.KVStore(storeKey) st.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) @@ -62,7 +62,7 @@ func TestSudo(t *testing.T) { // ou of gas during Sudo ctx = infCtx.WithGasMeter(sdk.NewGasMeter(1_000_000_000_000)) cmKeeper.EXPECT().GetParams(ctx).Return(types.Params{SudoCallGasLimit: 10000}) - cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg, contractmanagerkeeper.RedactError(types.ErrSudoOutOfGas)) + cmKeeper.EXPECT().AddContractFailure(ctx, contractAddress.String(), msg, contractmanagerkeeper.RedactError(types.ErrSudoOutOfGas).Error()) wmKeeper.EXPECT().Sudo(gomock.AssignableToTypeOf(ctx), contractAddress, msg).Do(func(cachedCtx sdk.Context, senderAddress sdk.AccAddress, msg []byte) { st := cachedCtx.KVStore(storeKey) st.Set(ShouldNotBeWrittenKey, ShouldNotBeWritten) From 2940131f782223065e69d5fb227b377b788a867c Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 9 Nov 2023 21:20:09 -0500 Subject: [PATCH 234/307] Add extra logic to ensure GetLimitOrderTrancheByKey cannot return nil, true --- x/dex/keeper/limit_order_tranche.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x/dex/keeper/limit_order_tranche.go b/x/dex/keeper/limit_order_tranche.go index 791629989..07974b925 100644 --- a/x/dex/keeper/limit_order_tranche.go +++ b/x/dex/keeper/limit_order_tranche.go @@ -102,7 +102,11 @@ func (k Keeper) GetLimitOrderTrancheByKey( var tick types.TickLiquidity k.cdc.MustUnmarshal(b, &tick) - return tick.GetLimitOrderTranche(), true + tranche = tick.GetLimitOrderTranche() + if tranche != nil { + return tranche, true + } + return nil, false } func (k Keeper) RemoveLimitOrderTranche(ctx sdk.Context, trancheKey *types.LimitOrderTrancheKey) { From 0249e41cde5904ddfd11c3bf312e2983cbb4141c Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 9 Nov 2023 21:30:49 -0500 Subject: [PATCH 235/307] Rename SwapExactAmountIn to be more accurate and add more disclaimers --- x/dex/keeper/multihop_swap.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index 656a76732..6565425da 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -76,10 +76,12 @@ func (k Keeper) MultihopStep( } // TODO: Due to rounding on swap it is possible to leak tokens at each hop. - // In these cases the user will end up with trace amounts of tokens from intermediary steps. + // In these cases the user will lose trace amounts of tokens from intermediary steps. // To fix this we would have to pre-calculate the route such that the amount - // in will be used completely at each step - coinOut, err := k.SwapExactAmountIn(bctx.Ctx, step.tradePairID, inCoin.Amount) + // in will be used completely at each step. + // As an intermediary fix, we should credit the unswapped coins back to the user's account. + + coinOut, err := k.SwapFullAmountIn(bctx.Ctx, step.tradePairID, inCoin.Amount) ctxBranch := bctx.Branch() stepCache[cacheKey] = StepResult{Ctx: bctx, CoinOut: coinOut, Err: err} if err != nil { @@ -139,7 +141,9 @@ func (k Keeper) RunMultihopRoute( return currentOutCoin, bCacheCtx.WriteCache, nil } -func (k Keeper) SwapExactAmountIn(ctx sdk.Context, +// NOTE: SwapFullAmountIn does not ensure that 100% of amountIn is used. Due to rounding it is possible that +// a dust amount of AmountIn remains unswapped. It is the caller's responsibility to handle this appropriately. +func (k Keeper) SwapFullAmountIn(ctx sdk.Context, tradePairID *types.TradePairID, amountIn math.Int, ) (totalOut sdk.Coin, err error) { From dde0a57bb2cec513b95d83b8572593369a9bce63 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 9 Nov 2023 21:35:39 -0500 Subject: [PATCH 236/307] FIX: valid options array is correct length for deposit --- x/dex/types/message_deposit.go | 3 ++- x/dex/types/message_deposit_test.go | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go index 841b0328e..aa097c823 100644 --- a/x/dex/types/message_deposit.go +++ b/x/dex/types/message_deposit.go @@ -71,7 +71,8 @@ func (msg *MsgDeposit) ValidateBasic() error { numDeposits := len(msg.AmountsA) if numDeposits != len(msg.Fees) || numDeposits != len(msg.TickIndexesAToB) || - numDeposits != len(msg.AmountsB) { + numDeposits != len(msg.AmountsB) || + numDeposits != len(msg.Options) { return ErrUnbalancedTxArray } if numDeposits == 0 { diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go index 33c8baf35..61d35a13d 100644 --- a/x/dex/types/message_deposit_test.go +++ b/x/dex/types/message_deposit_test.go @@ -24,6 +24,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{true}}, }, err: ErrInvalidAddress, }, @@ -36,6 +37,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{true}}, }, err: ErrInvalidAddress, }, @@ -48,6 +50,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{}, AmountsA: []math.Int{}, AmountsB: []math.Int{}, + Options: []*DepositOptions{{true}}, }, err: ErrUnbalancedTxArray, }, @@ -60,6 +63,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{}, AmountsB: []math.Int{}, + Options: []*DepositOptions{{true}}, }, err: ErrUnbalancedTxArray, }, @@ -72,6 +76,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{}, + Options: []*DepositOptions{{true}}, }, err: ErrUnbalancedTxArray, }, @@ -84,6 +89,20 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{}, AmountsA: []math.Int{}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{true}}, + }, + err: ErrUnbalancedTxArray, + }, + { + name: "invalid options length", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{1}, + TickIndexesAToB: []int64{1}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{}, }, err: ErrUnbalancedTxArray, }, @@ -96,6 +115,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{}, AmountsA: []math.Int{}, AmountsB: []math.Int{}, + Options: []*DepositOptions{}, }, err: ErrZeroDeposit, }, @@ -108,6 +128,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.ZeroInt()}, AmountsB: []math.Int{math.ZeroInt()}, + Options: []*DepositOptions{{true}}, }, err: ErrZeroDeposit, }, @@ -120,6 +141,7 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { TickIndexesAToB: []int64{0}, AmountsA: []math.Int{math.OneInt()}, AmountsB: []math.Int{math.OneInt()}, + Options: []*DepositOptions{{true}}, }, }, } From 47d47dbad2fd168d3118bf1828c5dcbc92cee516 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 9 Nov 2023 21:02:50 -0500 Subject: [PATCH 237/307] Ensure deposit, withdraw and place/withdraw limit order correctly validate inputs to ensure that abs(tick) + fee < MaxTickExp This not only provides better validation for transactins that will fail at later price checks, but also ensures that tick + fee combinations that could overflow an int64 are not allowed into the system. --- x/dex/types/errors.go | 2 +- x/dex/types/message_deposit.go | 3 +++ x/dex/types/message_deposit_test.go | 24 +++++++++++++++++ x/dex/types/message_place_limit_order.go | 4 +++ x/dex/types/message_place_limit_order_test.go | 26 +++++++++++++++++++ x/dex/types/message_withdrawl.go | 3 +++ x/dex/types/message_withdrawl_test.go | 22 ++++++++++++++++ x/dex/types/price.go | 11 +++++++- 8 files changed, 93 insertions(+), 2 deletions(-) diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index 7f4eaa964..38ce01170 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -42,7 +42,7 @@ var ( ErrTickOutsideRange = sdkerrors.Register( ModuleName, 1117, - "Supplying a tick > 559,680 is not allowed", + "abs(tick) + fee must be < 559,680", ) ErrInvalidPoolDenom = sdkerrors.Register( ModuleName, diff --git a/x/dex/types/message_deposit.go b/x/dex/types/message_deposit.go index 841b0328e..300ad5c45 100644 --- a/x/dex/types/message_deposit.go +++ b/x/dex/types/message_deposit.go @@ -85,6 +85,9 @@ func (msg *MsgDeposit) ValidateBasic() error { if msg.AmountsA[i].Equal(math.ZeroInt()) && msg.AmountsB[i].Equal(math.ZeroInt()) { return ErrZeroDeposit } + if err := ValidateTickFee(msg.TickIndexesAToB[i], msg.Fees[i]); err != nil { + return err + } } return nil diff --git a/x/dex/types/message_deposit_test.go b/x/dex/types/message_deposit_test.go index 33c8baf35..46d57d599 100644 --- a/x/dex/types/message_deposit_test.go +++ b/x/dex/types/message_deposit_test.go @@ -111,6 +111,30 @@ func TestMsgDeposit_ValidateBasic(t *testing.T) { }, err: ErrZeroDeposit, }, + { + name: "invalid tick + fee upper", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{3}, + TickIndexesAToB: []int64{559678}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{math.OneInt()}, + }, + err: ErrTickOutsideRange, + }, + { + name: "invalid tick + fee lower", + msg: MsgDeposit{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{50}, + TickIndexesAToB: []int64{-559631}, + AmountsA: []math.Int{math.OneInt()}, + AmountsB: []math.Int{math.OneInt()}, + }, + err: ErrTickOutsideRange, + }, { name: "valid msg", msg: MsgDeposit{ diff --git a/x/dex/types/message_place_limit_order.go b/x/dex/types/message_place_limit_order.go index 33593ad26..5b3c4e83a 100644 --- a/x/dex/types/message_place_limit_order.go +++ b/x/dex/types/message_place_limit_order.go @@ -90,6 +90,10 @@ func (msg *MsgPlaceLimitOrder) ValidateBasic() error { } } + if IsTickOutOfRange(msg.TickIndexInToOut) { + return ErrTickOutsideRange + } + return nil } diff --git a/x/dex/types/message_place_limit_order_test.go b/x/dex/types/message_place_limit_order_test.go index 2c80d90d1..37ca551f3 100644 --- a/x/dex/types/message_place_limit_order_test.go +++ b/x/dex/types/message_place_limit_order_test.go @@ -81,6 +81,32 @@ func TestMsgPlaceLimitOrder_ValidateBasic(t *testing.T) { }, err: ErrInvalidMaxAmountOutForMaker, }, + { + name: "tick outside range upper", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: 700_000, + AmountIn: math.OneInt(), + OrderType: LimitOrderType_GOOD_TIL_CANCELLED, + }, + err: ErrTickOutsideRange, + }, + { + name: "tick outside range lower", + msg: MsgPlaceLimitOrder{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + TokenIn: "TokenA", + TokenOut: "TokenB", + TickIndexInToOut: -600_000, + AmountIn: math.OneInt(), + OrderType: LimitOrderType_GOOD_TIL_CANCELLED, + }, + err: ErrTickOutsideRange, + }, { name: "valid msg", msg: MsgPlaceLimitOrder{ diff --git a/x/dex/types/message_withdrawl.go b/x/dex/types/message_withdrawl.go index 564b3edbf..168208a62 100644 --- a/x/dex/types/message_withdrawl.go +++ b/x/dex/types/message_withdrawl.go @@ -76,6 +76,9 @@ func (msg *MsgWithdrawal) ValidateBasic() error { if msg.SharesToRemove[i].LTE(math.ZeroInt()) { return ErrZeroWithdraw } + if err := ValidateTickFee(msg.TickIndexesAToB[i], msg.Fees[i]); err != nil { + return err + } } return nil diff --git a/x/dex/types/message_withdrawl_test.go b/x/dex/types/message_withdrawl_test.go index b2bfce5ba..58cfa13c6 100644 --- a/x/dex/types/message_withdrawl_test.go +++ b/x/dex/types/message_withdrawl_test.go @@ -92,6 +92,28 @@ func TestMsgWithdrawal_ValidateBasic(t *testing.T) { }, err: ErrZeroWithdraw, }, + { + name: "invalid tick + fee upper", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{3}, + TickIndexesAToB: []int64{559678}, + SharesToRemove: []math.Int{math.OneInt()}, + }, + err: ErrTickOutsideRange, + }, + { + name: "invalid tick + fee lower", + msg: MsgWithdrawal{ + Creator: sample.AccAddress(), + Receiver: sample.AccAddress(), + Fees: []uint64{50}, + TickIndexesAToB: []int64{-559631}, + SharesToRemove: []math.Int{math.OneInt()}, + }, + err: ErrTickOutsideRange, + }, { name: "valid msg", msg: MsgWithdrawal{ diff --git a/x/dex/types/price.go b/x/dex/types/price.go index 82625f700..aae2876fb 100644 --- a/x/dex/types/price.go +++ b/x/dex/types/price.go @@ -33,5 +33,14 @@ func MustCalcPrice(relativeTickIndex int64) math_utils.PrecDec { } func IsTickOutOfRange(tickIndex int64) bool { - return tickIndex > 0 && uint64(tickIndex) > MaxTickExp + return utils.Abs(tickIndex) > MaxTickExp +} + +func ValidateTickFee(tick int64, fee uint64) error { + // Ensure |tick| + fee <= MaxTickExp + // NOTE: Ugly arithmetic is to ensure that we don't overflow uint64 + if utils.Abs(tick) > MaxTickExp-fee { + return ErrTickOutsideRange + } + return nil } From 8afbca93a8b0a2759ea11ee11c75ed39b368d1bb Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Sat, 11 Nov 2023 13:18:56 +0200 Subject: [PATCH 238/307] revert returning an error in Swap() --- x/dex/keeper/core.go | 5 ++++- x/dex/keeper/liquidity.go | 10 +++++----- x/dex/keeper/liquidity_test.go | 6 ++++-- x/dex/keeper/multihop_swap.go | 5 ++++- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/x/dex/keeper/core.go b/x/dex/keeper/core.go index cab8d8e05..ec7122a68 100644 --- a/x/dex/keeper/core.go +++ b/x/dex/keeper/core.go @@ -331,13 +331,16 @@ func (k Keeper) PlaceLimitOrderCore( } var orderFilled bool - swapInCoin, swapOutCoin, orderFilled = k.SwapWithCache( + swapInCoin, swapOutCoin, orderFilled, err = k.SwapWithCache( ctx, takerTradePairID, amountIn, maxAmountOut, &limitPrice, ) + if err != nil { + return + } if orderType.IsFoK() && !orderFilled { err = types.ErrFoKLimitOrderNotFilled diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index 6bae05491..1b86c504b 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -14,7 +14,7 @@ func (k Keeper) Swap( maxAmountTakerDenom math.Int, maxAmountMakerDenom *math.Int, limitPrice *math_utils.PrecDec, -) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool) { +) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool, err error) { useMaxOut := maxAmountMakerDenom != nil var remainingMakerDenom *math.Int if useMaxOut { @@ -73,7 +73,7 @@ func (k Keeper) Swap( ), sdk.NewCoin( tradePairID.MakerDenom, totalMakerDenom, - ), orderFilled + ), orderFilled, nil } func (k Keeper) SwapWithCache( @@ -82,9 +82,9 @@ func (k Keeper) SwapWithCache( maxAmountIn math.Int, maxAmountOut *math.Int, limitPrice *math_utils.PrecDec, -) (totalIn, totalOut sdk.Coin, orderFilled bool) { +) (totalIn, totalOut sdk.Coin, orderFilled bool, err error) { cacheCtx, writeCache := ctx.CacheContext() - totalIn, totalOut, orderFilled = k.Swap( + totalIn, totalOut, orderFilled, err = k.Swap( cacheCtx, tradePairID, maxAmountIn, @@ -94,7 +94,7 @@ func (k Keeper) SwapWithCache( writeCache() - return totalIn, totalOut, orderFilled + return totalIn, totalOut, orderFilled, err } func (k Keeper) SaveLiquidity(sdkCtx sdk.Context, liquidityI types.Liquidity) { diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 1896dc28d..94d42ef68 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -591,13 +591,14 @@ func (s *DexTestSuite) swap( ) (coinIn, coinOut sdk.Coin) { tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) s.Assert().NoError(err) - coinIn, coinOut, _ = s.App.DexKeeper.Swap( + coinIn, coinOut, _, err = s.App.DexKeeper.Swap( s.Ctx, tradePairID, sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), nil, nil, ) + s.Assert().NoError(err) return coinIn, coinOut } @@ -609,13 +610,14 @@ func (s *DexTestSuite) swapWithMaxOut( ) (coinIn, coinOut sdk.Coin) { tradePairID := types.MustNewTradePairID(tokenIn, tokenOut) maxAmountOutInt := sdkmath.NewInt(maxAmountOut).Mul(denomMultiple) - coinIn, coinOut, _ = s.App.DexKeeper.Swap( + coinIn, coinOut, _, err := s.App.DexKeeper.Swap( s.Ctx, tradePairID, sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), &maxAmountOutInt, nil, ) + s.Assert().NoError(err) return coinIn, coinOut } diff --git a/x/dex/keeper/multihop_swap.go b/x/dex/keeper/multihop_swap.go index 0704e83b5..a9acc89e4 100644 --- a/x/dex/keeper/multihop_swap.go +++ b/x/dex/keeper/multihop_swap.go @@ -144,13 +144,16 @@ func (k Keeper) SwapExactAmountIn(ctx sdk.Context, tradePairID *types.TradePairID, amountIn math.Int, ) (totalOut sdk.Coin, err error) { - _, swapAmountMakerDenom, orderFilled := k.Swap( + _, swapAmountMakerDenom, orderFilled, err := k.Swap( ctx, tradePairID, amountIn, nil, nil, ) + if err != nil { + return sdk.Coin{}, err + } if !orderFilled { return sdk.Coin{}, types.ErrInsufficientLiquidity } From fc0d5de7a115c646d0b0cc2a51b4f9669e8774c3 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Mon, 13 Nov 2023 19:42:51 +0200 Subject: [PATCH 239/307] proper params --- app/app.go | 5 ++- .../testdata/neutron_interchain_txs.wasm | Bin 430188 -> 440533 bytes app/upgrades/nextupgrade/upgrades.go | 34 +++++++++------- app/upgrades/nextupgrade/upgrades_test.go | 4 +- app/upgrades/types.go | 2 + network/init-neutrond.sh | 37 ++++++++++-------- wasmbinding/test/custom_message_test.go | 4 +- x/interchaintxs/keeper/msg_server_test.go | 3 +- x/interchaintxs/types/params.go | 3 +- 9 files changed, 53 insertions(+), 39 deletions(-) diff --git a/app/app.go b/app/app.go index 1bdd4b5c5..a2ff1ca87 100644 --- a/app/app.go +++ b/app/app.go @@ -599,8 +599,8 @@ func New( keys[auctiontypes.StoreKey], app.AccountKeeper, &app.BankKeeper, - // 25% of rewards should be sent to the redistribute address - rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName)), + // 25% of rewards should be sent to the Hub + rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerToSendToProviderName)), authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) @@ -1056,6 +1056,7 @@ func (app *App) setupUpgradeHandlers() { app.mm, app.configurator, &upgrades.UpgradeKeepers{ + AccountKeeper: app.AccountKeeper, FeeBurnerKeeper: app.FeeBurnerKeeper, CronKeeper: app.CronKeeper, IcqKeeper: app.InterchainQueriesKeeper, diff --git a/app/upgrades/nextupgrade/testdata/neutron_interchain_txs.wasm b/app/upgrades/nextupgrade/testdata/neutron_interchain_txs.wasm index 6f3dc56be1f8351a518f68cc9fe4ac3417f169d1..2c797b97946c5535cbddd68b07759c0b72b76334 100644 GIT binary patch literal 440533 zcmeFa4YXX>Rp)s>t6shL>Z$Z)%O6RqDkeOQ?Lq0~NG5m~m6qfr-C2zTUJDN^Gqw|n z*s|g{vJ#SMFZ(5y6D4s#Bu-+2AxdJ#W;%4cn{;Ca6BIDrP7^>)!i=FE5YuK*HwMJC z1Ew*<{Qi5NbMLKs^`2xY!QE*|wyNrW>~qdO`|Pv7Pjch!Z%vaVNk5YfZ^-VtE4d-R zOaJmUz01Dyk#eErvThXqk?MBKuEmR7X!`}O%!F@zO$77KI}^a9cLq2-YXG@Qd;FU; z-sWp3zRvp&^iIB6d-_5r1hC*=LAX;L3!UNRs%^f{Re)?jYZ^cGl_%CuTnd*3l)L$z zcUFkFGy7z=Cf{@GJIfp2^tSy6l0x6xyWe#E{yjJDPTKl4!>=FOfAfJoNur+}yZP3) zy>n0f@a=ED@zx}duim=nT?hQt?v1;5@4x-7;MUqTUU=KBH@}%X|LdM4 z)0_V6P49T?jki|UdbjU+^KF0cRaXqL)_RfZQ@l7`#c=JtTx60jn-t>;Q_-N+d{*FES-+ld?Z@Tg3 zTj}plw12z}DWyq~B!$rw-}Nm`xn_6xW?}Q{6sy{Zk@GEI&N!jWpNtw3Fss(E&Edjx^YGygO zDObFA{9E@^uh)MJgW)HGwLh(yl0S?+*OR3N1B5)+%~q){aFqvA{`3FyA}e&8?&{T2 zC`(iSH$0=BlnG<&B*1I6(t>wq${Bw{@LJ^zh*N9&lcYtFb!c!SlL2h~pYbYG(c#no zB=d%BU?w@_kfn2TYNwR|TF)d5qUiE1AWTS`_!9udt8JR#?X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app/upgrades/nextupgrade/upgrades.go @@ -7,13 +7,15 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + "github.com/neutron-org/neutron/app/params" "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32" "github.com/cosmos/cosmos-sdk/types/module" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" @@ -28,7 +30,6 @@ import ( contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" - feeburnerkeeper "github.com/neutron-org/neutron/x/feeburner/keeper" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" icqtypes "github.com/neutron-org/neutron/x/interchainqueries/types" @@ -87,7 +88,7 @@ func CreateUpgradeHandler( } ctx.Logger().Info("Setting pob params...") - err = setAuctionParams(ctx, keepers.FeeBurnerKeeper, keepers.AuctionKeeper) + err = setAuctionParams(ctx, keepers.AccountKeeper, keepers.AuctionKeeper) if err != nil { return nil, err } @@ -127,20 +128,21 @@ func CreateUpgradeHandler( } } -func setAuctionParams(ctx sdk.Context, feeBurnerKeeper *feeburnerkeeper.Keeper, auctionKeeper auctionkeeper.Keeper) error { - treasury := feeBurnerKeeper.GetParams(ctx).TreasuryAddress - _, data, err := bech32.DecodeAndConvert(treasury) - if err != nil { - return err - } +func setAuctionParams(ctx sdk.Context, accountKeeper authkeeper.AccountKeeper, auctionKeeper auctionkeeper.Keeper) error { + consumerRedistributeAddr := accountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName) auctionParams := auctiontypes.Params{ - MaxBundleSize: 2, - EscrowAccountAddress: data, - ReserveFee: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, - MinBidIncrement: sdk.Coin{Denom: "untrn", Amount: sdk.NewInt(1_000_000)}, - FrontRunningProtection: true, - ProposerFee: math.LegacyNewDecWithPrec(25, 2), + MaxBundleSize: 4, + // 75% of rewards goes to consumer redistribution module and then to the FeeBurner module + // where all the NTRNs are burned + EscrowAccountAddress: consumerRedistributeAddr, + ReserveFee: sdk.Coin{Denom: params.DefaultDenom, Amount: sdk.NewInt(500_000)}, + MinBidIncrement: sdk.Coin{Denom: params.DefaultDenom, Amount: sdk.NewInt(100_000)}, + FrontRunningProtection: false, + // in the app.go on L603 set FixedAddressRewardsAddressProvider (where 25% goes to) + // to ConsumerToSendToProviderName module from where rewards goes to the Hub + // Meaning we sent 25% of the MEV rewards to the Hub + ProposerFee: math.LegacyNewDecWithPrec(25, 2), } return auctionKeeper.SetParams(ctx, auctionParams) } @@ -219,6 +221,8 @@ func migrateInterchainQueriesParams(ctx sdk.Context, paramsKeepers paramskeeper. subspace, _ := paramsKeepers.GetSubspace(icqtypes.StoreKey) subspace.GetParamSet(ctx, &currParams) + currParams.QueryDeposit = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1_000_000))) + if err := currParams.Validate(); err != nil { return err } diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/nextupgrade/upgrades_test.go index bd4180a9c..cded4dca8 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/nextupgrade/upgrades_test.go @@ -171,7 +171,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { ctx = suite.ChainA.GetContext() ) - suite.FundAcc(sdk.AccAddress("neutron1weweewe"), sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(10000)))) + suite.FundAcc(sdk.AccAddress("neutron1weweewe"), sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(1_000_000)))) contractKeeper := keeper.NewDefaultPermissionKeeper(app.WasmKeeper) // store contract for register ica w/o fees codeIDBefore := suite.StoreTestCode(ctx, sdk.AccAddress("neutron1_ica"), "testdata/neutron_interchain_txs.wasm") @@ -200,7 +200,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { // register with fees jsonStringAfterUpgrade := `{"register": {"connection_id":"connection-1","interchain_account_id":"test-3"}}` byteEncodedMsgAfterUpgrade := []byte(jsonStringAfterUpgrade) - _, err = contractKeeper.Execute(ctx, contractAddressAfterUpgrade, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfterUpgrade, sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(1000)))) + _, err = contractKeeper.Execute(ctx, contractAddressAfterUpgrade, sdk.AccAddress("neutron1weweewe"), byteEncodedMsgAfterUpgrade, sdk.NewCoins(sdk.NewCoin("untrn", sdk.NewInt(1_000_000)))) suite.Require().NoError(err) // failed register due lack of fees (fees required) diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 6271ecbae..13747e54b 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" store "github.com/cosmos/cosmos-sdk/store/types" "github.com/cosmos/cosmos-sdk/types/module" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" @@ -38,6 +39,7 @@ type Upgrade struct { type UpgradeKeepers struct { // keepers + AccountKeeper authkeeper.AccountKeeper IcqKeeper icqkeeper.Keeper CronKeeper cronkeeper.Keeper TokenFactoryKeeper *tokenfactorykeeper.Keeper diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index 390284816..603397211 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -627,22 +627,27 @@ function convert_bech32_base64_esc() { DAO_CONTRACT_ADDRESS_B64=$(convert_bech32_base64_esc "$DAO_CONTRACT_ADDRESS") echo $DAO_CONTRACT_ADDRESS_B64 -set_genesis_param admins "[\"$DAO_CONTRACT_ADDRESS\"]" # admin module -set_genesis_param treasury_address "\"$DAO_CONTRACT_ADDRESS\"" # feeburner -set_genesis_param fee_collector_address "\"$DAO_CONTRACT_ADDRESS\"" # tokenfactory -set_genesis_param security_address "\"$SECURITY_SUBDAO_CORE_CONTRACT_ADDRESS\"," # cron -set_genesis_param limit 5 # cron -#set_genesis_param allow_messages "[\"*\"]" # interchainaccounts -set_genesis_param signed_blocks_window "\"$SLASHING_SIGNED_BLOCKS_WINDOW\"," # slashing -set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," # slashing -set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing -set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing -set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES," # globalfee -set_genesis_param max_total_bypass_min_fee_msg_gas_usage "\"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE\"" # globalfee -set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BYPASS_MIN_FEE_MSG_TYPES" # globalfee -set_genesis_param proposer_fee "\"0.25\"" # builder(POB) -set_genesis_param escrow_account_address "\"$DAO_CONTRACT_ADDRESS_B64\"," # builder(POB) -set_genesis_param sudo_call_gas_limit "\"1000000\"" # contractmanager +CONSUMER_REDISTRIBUTE_ACCOUNT_ADDRESS="neutron1x69dz0c0emw8m2c6kp5v6c08kgjxmu30f4a8w5" +CONSUMER_REDISTRIBUTE_ACCOUNT_ADDRESS_B64=$(convert_bech32_base64_esc "$CONSUMER_REDISTRIBUTE_ACCOUNT_ADDRESS") + +set_genesis_param admins "[\"$DAO_CONTRACT_ADDRESS\"]" # admin module +set_genesis_param treasury_address "\"$DAO_CONTRACT_ADDRESS\"" # feeburner +set_genesis_param fee_collector_address "\"$DAO_CONTRACT_ADDRESS\"" # tokenfactory +set_genesis_param security_address "\"$SECURITY_SUBDAO_CORE_CONTRACT_ADDRESS\"," # cron +set_genesis_param limit 5 # cron +#set_genesis_param allow_messages "[\"*\"]" # interchainaccounts +set_genesis_param signed_blocks_window "\"$SLASHING_SIGNED_BLOCKS_WINDOW\"," # slashing +set_genesis_param min_signed_per_window "\"$SLASHING_MIN_SIGNED\"," # slashing +set_genesis_param slash_fraction_double_sign "\"$SLASHING_FRACTION_DOUBLE_SIGN\"," # slashing +set_genesis_param slash_fraction_downtime "\"$SLASHING_FRACTION_DOWNTIME\"" # slashing +set_genesis_param minimum_gas_prices "$MIN_GAS_PRICES," # globalfee +set_genesis_param max_total_bypass_min_fee_msg_gas_usage "\"$MAX_TOTAL_BYPASS_MIN_FEE_MSG_GAS_USAGE\"" # globalfee +set_genesis_param_jq ".app_state.globalfee.params.bypass_min_fee_msg_types" "$BYPASS_MIN_FEE_MSG_TYPES" # globalfee +set_genesis_param proposer_fee "\"0.25\"" # builder(POB) +set_genesis_param escrow_account_address "\"$CONSUMER_REDISTRIBUTE_ACCOUNT_ADDRESS_B64\"," # builder(POB) +set_genesis_param sudo_call_gas_limit "\"1000000\"" # contractmanager + +cat $GENESIS_PATH if ! jq -e . "$GENESIS_PATH" >/dev/null 2>&1; then echo "genesis appears to become incorrect json" >&2 diff --git a/wasmbinding/test/custom_message_test.go b/wasmbinding/test/custom_message_test.go index a79dd73db..ec4662a27 100644 --- a/wasmbinding/test/custom_message_test.go +++ b/wasmbinding/test/custom_message_test.go @@ -90,14 +90,14 @@ func (suite *CustomMessengerTestSuite) TestRegisterInterchainAccount() { RegisterInterchainAccount: &bindings.RegisterInterchainAccount{ ConnectionId: suite.Path.EndpointA.ConnectionID, InterchainAccountId: testutil.TestInterchainID, - RegisterFee: sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))), + RegisterFee: sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1_000_000))), }, }) suite.NoError(err) bankKeeper := suite.neutron.BankKeeper senderAddress := suite.ChainA.SenderAccounts[0].SenderAccount.GetAddress() - err = bankKeeper.SendCoins(suite.ctx, senderAddress, suite.contractAddress, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000)))) + err = bankKeeper.SendCoins(suite.ctx, senderAddress, suite.contractAddress, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1_000_000)))) suite.NoError(err) // Dispatch RegisterInterchainAccount message diff --git a/x/interchaintxs/keeper/msg_server_test.go b/x/interchaintxs/keeper/msg_server_test.go index c4c173deb..a54ca6c2a 100644 --- a/x/interchaintxs/keeper/msg_server_test.go +++ b/x/interchaintxs/keeper/msg_server_test.go @@ -8,6 +8,7 @@ import ( "github.com/neutron-org/neutron/app/params" icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types" + feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types" "github.com/neutron-org/neutron/x/interchaintxs/keeper" @@ -58,7 +59,7 @@ func TestRegisterInterchainAccount(t *testing.T) { require.ErrorContains(t, err, "failed to charge fees to pay for RegisterInterchainAccount msg") require.Nil(t, resp) - msgRegAcc.RegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) + msgRegAcc.RegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1_000_000))) wmKeeper.EXPECT().HasContractInfo(ctx, contractAddress).Return(true) bankKeeper.EXPECT().SendCoins(ctx, sdk.MustAccAddressFromBech32(msgRegAcc.FromAddress), sdk.MustAccAddressFromBech32(TestFeeCollectorAddr), msgRegAcc.RegisterFee) diff --git a/x/interchaintxs/types/params.go b/x/interchaintxs/types/params.go index 58ae59bbe..8a12684df 100644 --- a/x/interchaintxs/types/params.go +++ b/x/interchaintxs/types/params.go @@ -5,6 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/neutron-org/neutron/app/params" "gopkg.in/yaml.v2" @@ -15,7 +16,7 @@ var _ paramtypes.ParamSet = (*Params)(nil) var ( KeyMsgSubmitTxMaxMessages = []byte("MsgSubmitTxMaxMessages") DefaultMsgSubmitTxMaxMessages = uint64(16) - DefaultRegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1000))) + DefaultRegisterFee = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1_000_000))) ) func ParamKeyTable() paramtypes.KeyTable { From e0f8d7db40712894b77299f48ce3839013f48b84 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 9 Nov 2023 20:34:01 -0500 Subject: [PATCH 240/307] switch rounding to favor taker update tests accordingly --- tests/ibc/gmp_swap_forward_test.go | 4 +- tests/ibc/swap_forward_test.go | 18 ++- tests/ibc/swap_test.go | 2 +- .../integration_deposit_doublesided_test.go | 14 +-- .../integration_deposit_singlesided_test.go | 4 +- x/dex/keeper/integration_multihopswap_test.go | 44 +++---- .../integration_placelimitorder_test.go | 10 +- x/dex/keeper/liquidity.go | 7 +- x/dex/keeper/liquidity_test.go | 112 +++++++++--------- x/dex/types/limit_order_tranche.go | 2 +- x/dex/types/pool.go | 1 - 11 files changed, 110 insertions(+), 108 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 06dfa33a3..433093ea4 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -98,8 +98,8 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Check that the funds are moved out of the acc on providerChain s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + // Check that the amountIn is deducted from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) // Check that neutron account did not keep any of the transfer denom s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 12d07e448..5267f663f 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -109,7 +109,7 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { ) // Check that the amountIn is deducted from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) // Check that neutron account did not keep any of the transfer denom s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) @@ -285,7 +285,7 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.providerToNeutronDenom, depositAmount, depositAmount, - 0, + 1, 1, s.neutronAddr) @@ -294,8 +294,8 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - swapAmount := math.NewInt(100000) - expectedAmountOut := math.NewInt(99990) + swapAmount := math.NewInt(100_000) + expectedAmountOut := math.NewInt(99980) retries := uint8(0) @@ -340,7 +340,7 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.providerAddr, s.neutronAddr, nativeDenom, - ibcTransferAmount, + swapAmount, string(metadataBz), ) @@ -349,10 +349,8 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.Assert().NoError(err) s.coordinator.CommitBlock(s.neutronChain) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) - // Check that the amountIn has been deducted from the neutron chain - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) + // Check that the amountIn is deducted from the neutron account + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount).Add(math.OneInt())) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, @@ -462,7 +460,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { ) // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) // Check that the amountOut stays on the neutronchain s.assertNeutronBalance( s.neutronAddr, diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index a7cf723af..dbb21ad65 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -83,7 +83,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) // Check that all of the IBC transfer denom have been used up - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) } // TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Neutron running as a diff --git a/x/dex/keeper/integration_deposit_doublesided_test.go b/x/dex/keeper/integration_deposit_doublesided_test.go index 951ffb004..35c9e3020 100644 --- a/x/dex/keeper/integration_deposit_doublesided_test.go +++ b/x/dex/keeper/integration_deposit_doublesided_test.go @@ -232,19 +232,19 @@ func (s *DexTestSuite) TestDepositValueAccural() { s.bobLimitSells("TokenA", 10, 1000, types.LimitOrderType_IMMEDIATE_OR_CANCEL) } } - s.assertLiquidityAtTickInt(math.NewInt(110516593), math.ZeroInt(), 0, 10) - s.assertDexBalancesInt(math.NewInt(110516593), math.ZeroInt()) + s.assertLiquidityAtTickInt(math.NewInt(110516491), math.ZeroInt(), 0, 10) + s.assertDexBalancesInt(math.NewInt(110516491), math.ZeroInt()) - s.assertLiquidityAtTickInt(math.NewInt(110516593), math.ZeroInt(), 0, 10) + s.assertLiquidityAtTickInt(math.NewInt(110516491), math.ZeroInt(), 0, 10) // Carol deposits 100TokenA @tick0 s.carolDeposits(NewDeposit(100, 0, 0, 10)) - s.assertLiquidityAtTickInt(math.NewInt(210516593), math.ZeroInt(), 0, 10) - s.assertAccountSharesInt(s.carol, 0, 10, math.NewInt(90484150)) + s.assertLiquidityAtTickInt(math.NewInt(210516491), math.ZeroInt(), 0, 10) + s.assertAccountSharesInt(s.carol, 0, 10, math.NewInt(90484233)) // Alice gets back 100% of the accrued trade value s.aliceWithdraws(NewWithdrawal(100, 0, 10)) - s.assertAliceBalancesInt(math.NewInt(110516593), math.NewInt(0)) + s.assertAliceBalancesInt(math.NewInt(110516491), math.NewInt(0)) // AND carol get's back only what she put in - s.carolWithdraws(NewWithdrawalInt(math.NewInt(90484150), 0, 10)) + s.carolWithdraws(NewWithdrawalInt(math.NewInt(90484233), 0, 10)) s.assertCarolBalances(100, 1) } diff --git a/x/dex/keeper/integration_deposit_singlesided_test.go b/x/dex/keeper/integration_deposit_singlesided_test.go index 661747407..cdf8ca9f9 100644 --- a/x/dex/keeper/integration_deposit_singlesided_test.go +++ b/x/dex/keeper/integration_deposit_singlesided_test.go @@ -277,7 +277,7 @@ func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken0() { // Bob arbs s.bobLimitSells("TokenB", -1, 50, types.LimitOrderType_IMMEDIATE_OR_CANCEL) s.bobLimitSells("TokenA", 1, 10) - s.assertBobBalancesInt(sdkmath.NewInt(50_000_000), sdkmath.NewInt(53_294_995)) + s.assertBobBalancesInt(sdkmath.NewInt(50_000_000), sdkmath.NewInt(53_294_996)) } func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken1() { @@ -302,7 +302,7 @@ func (s *DexTestSuite) TestDepositSingleSidedCreatingArbToken1() { // Bob arbs s.bobLimitSells("TokenA", -1, 50, types.LimitOrderType_IMMEDIATE_OR_CANCEL) s.bobLimitSells("TokenB", -1, 10) - s.assertBobBalancesInt(sdkmath.NewInt(53_295_665), sdkmath.NewInt(50_000_000)) + s.assertBobBalancesInt(sdkmath.NewInt(53_295_666), sdkmath.NewInt(50_000_000)) } func (s *DexTestSuite) TestDepositSingleSidedMultiA() { diff --git a/x/dex/keeper/integration_multihopswap_test.go b/x/dex/keeper/integration_multihopswap_test.go index 776b13e7f..4ce918b03 100644 --- a/x/dex/keeper/integration_multihopswap_test.go +++ b/x/dex/keeper/integration_multihopswap_test.go @@ -50,9 +50,9 @@ func (s *DexTestSuite) TestMultiHopSwapSingleRoute() { // GIVEN liquidity in pools A<>B, B<>C, C<>D, s.SetupMultiplePools( - NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), - NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), - NewPoolSetup("TokenC", "TokenD", 0, 100, 0, 1), + NewPoolSetup("TokenA", "TokenB", 0, 100, -1, 1), + NewPoolSetup("TokenB", "TokenC", 0, 100, -1, 1), + NewPoolSetup("TokenC", "TokenD", 0, 100, -1, 1), ) // WHEN alice multihopswaps A<>B => B<>C => C<>D, @@ -61,12 +61,12 @@ func (s *DexTestSuite) TestMultiHopSwapSingleRoute() { // THEN alice gets out 99 TokenD s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) - s.assertAccountBalanceWithDenomInt(s.alice, "TokenD", math.NewInt(99_970_003)) + s.assertAccountBalanceWithDenom(s.alice, "TokenD", 100) s.assertDexBalanceWithDenom("TokenA", 100) s.assertDexBalanceWithDenom("TokenB", 100) s.assertDexBalanceWithDenom("TokenC", 100) - s.assertDexBalanceWithDenomInt("TokenD", math.NewInt(29_997)) + s.assertDexBalanceWithDenom("TokenD", 0) } func (s *DexTestSuite) TestMultiHopSwapInsufficientLiquiditySingleRoute() { @@ -116,15 +116,15 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteOneGood() { // GIVEN viable liquidity in pools A<>B, B<>E, E<>X s.SetupMultiplePools( - NewPoolSetup("TokenA", "TokenB", 0, 100, 0, 1), + NewPoolSetup("TokenA", "TokenB", 0, 100, -1, 1), NewPoolSetup("TokenB", "TokenC", 0, 100, 0, 1), NewPoolSetup("TokenC", "TokenX", 0, 50, 0, 1), NewPoolSetup("TokenC", "TokenX", 0, 50, 2200, 1), NewPoolSetup("TokenB", "TokenD", 0, 100, 0, 1), NewPoolSetup("TokenD", "TokenX", 0, 50, 0, 1), NewPoolSetup("TokenD", "TokenX", 0, 50, 2200, 1), - NewPoolSetup("TokenB", "TokenE", 0, 100, 0, 1), - NewPoolSetup("TokenE", "TokenX", 0, 100, 0, 1), + NewPoolSetup("TokenB", "TokenE", 0, 100, -1, 1), + NewPoolSetup("TokenE", "TokenX", 0, 100, -1, 1), ) // WHEN alice multihopswaps with three routes the first two routes fail and the third works @@ -137,26 +137,26 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteOneGood() { // THEN swap succeeds through route A<>B, B<>E, E<>X s.assertAccountBalanceWithDenom(s.alice, "TokenA", 0) - s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(99_970_003)) - s.assertLiquidityAtTickWithDenomInt( + s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(100_000_000)) + s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(99_999_999), - math.NewInt(10_000), + 100, 0, + -1, 1, ) - s.assertLiquidityAtTickWithDenomInt( + s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - math.NewInt(99_990_000), - math.NewInt(19_999), + 100, 0, + -1, 1, ) - s.assertLiquidityAtTickWithDenomInt( + s.assertLiquidityAtTickWithDenom( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - math.NewInt(99_980_001), - math.NewInt(29_997), + 100, 0, + -1, 1, ) @@ -276,14 +276,14 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(134_943_366)) s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenA", Token1: "TokenB"}, - math.NewInt(99_999_999), + math.NewInt(99_999_998), math.NewInt(10000), 0, 1, ) s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenB", Token1: "TokenE"}, - math.NewInt(99_990_000), + math.NewInt(99_989_999), math.NewInt(19_999), 0, 1, @@ -291,7 +291,7 @@ func (s *DexTestSuite) TestMultiHopSwapMultiRouteFindBestRoute() { s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenE", Token1: "TokenX"}, - math.NewInt(99_980_001), + math.NewInt(99_980_000), math.NewInt(865_056_634), -3000, 1, @@ -369,7 +369,7 @@ func (s *DexTestSuite) TestMultiHopSwapLongRouteWithCache() { s.assertAccountBalanceWithDenomInt(s.alice, "TokenX", math.NewInt(99_880_066)) s.assertLiquidityAtTickWithDenomInt( &types.PairID{Token0: "TokenM", Token1: "TokenX"}, - math.NewInt(99_890_055), + math.NewInt(99_890_054), math.NewInt(119_934), 0, 1, diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 0fc08221f..34358ad0f 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -389,7 +389,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoK0TotalAmountInNotUsed() { // WHEN alice submits FoK limitOrder for 9998 it succeeds // even though trueAmountIn < specifiedAmountIn due to rounding s.aliceLimitSells("TokenA", 21000, 9998, types.LimitOrderType_FILL_OR_KILL) - s.assertAliceBalancesInt(sdkmath.NewInt(5), sdkmath.NewInt(1_353_046_854)) + s.assertAliceBalancesInt(sdkmath.NewInt(7), sdkmath.NewInt(1_353_046_854)) } func (s *DexTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { @@ -403,7 +403,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoK1TotalAmountInNotUsed() { // WHEN alice submits FoK limitOrder for 9998 it succeeds // even though trueAmountIn < specifiedAmountIn due to rounding s.aliceLimitSells("TokenB", -21000, 9998, types.LimitOrderType_FILL_OR_KILL) - s.assertAliceBalancesInt(sdkmath.NewInt(135_3046_854), sdkmath.NewInt(5)) + s.assertAliceBalancesInt(sdkmath.NewInt(135_3046_854), sdkmath.NewInt(7)) } func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { @@ -417,7 +417,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsed() { s.aliceLimitSellsWithMaxOut("TokenB", 0, 50, 20) // THEN alice swap ~19 BIGTokenB and gets back 20 BIGTokenA - s.assertAliceBalancesInt(sdkmath.NewInt(20_000_000), sdkmath.NewInt(31_162_769)) + s.assertAliceBalancesInt(sdkmath.NewInt(20_000_000), sdkmath.NewInt(31_162_770)) } func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { @@ -433,7 +433,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderFoKMaxOutUsedMultiTick() { s.aliceLimitSellsWithMaxOut("TokenB", 0, 50, 20) // THEN alice swap ~19 BIGTokenB and gets back 20 BIGTokenA - s.assertAliceBalancesInt(sdkmath.NewInt(20_000_000), sdkmath.NewInt(31_165_594)) + s.assertAliceBalancesInt(sdkmath.NewInt(20_000_000), sdkmath.NewInt(31_165_596)) } // Immediate Or Cancel LimitOrders //////////////////////////////////////////////////////////////////// @@ -542,7 +542,7 @@ func (s *DexTestSuite) TestPlaceLimitOrderJITBehindEnemyLines() { s.assertLimitLiquidityAtTick("TokenA", 1, 0) // Alice can withdraw ~10 BIGTokenB s.aliceWithdrawsLimitSell(trancheKey) - s.assertAliceBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(9999000)) + s.assertAliceBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(9998999)) } func (s *DexTestSuite) TestPlaceLimitOrderJITNextBlock() { diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index 1b86c504b..e86e77b89 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -49,7 +49,12 @@ func (k Keeper) Swap( // break if remainingTakerDenom will yield less than 1 tokenOut at current price // this avoids unnecessary iteration since outAmount will always be 0 going forward // this also catches the normal exit case where remainingTakerDenom == 0 - if liq.Price().MulInt(remainingTakerDenom).LT(math_utils.OnePrecDec()) { + + // NOTE: In theory this check should be: price * remainingTakerDenom < 1 + // but due to rounding and inaccuracy of fixed decimal math, it is possible + // for liq.swap to use the full the amount of taker liquidity and have a leftover + // amount amount of the taker Denom > than 1 token worth of maker denom + if liq.Price().MulInt(remainingTakerDenom).LT(math_utils.NewPrecDec(2)) { orderFilled = true break } diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 94d42ef68..ec15601ed 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -53,8 +53,8 @@ func (s *DexTestSuite) TestSwap0To1PartialFillLP() { // THEN swap should return ~10 BIGTokenA in and 10 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(10_001_000), tokenOut, sdkmath.NewInt(10_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(10_001_000), sdkmath.ZeroInt()) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(10_000_999), tokenOut, sdkmath.NewInt(10_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(10_000_999), sdkmath.ZeroInt()) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-1) @@ -70,8 +70,8 @@ func (s *DexTestSuite) TestSwap1To0PartialFillLP() { // THEN swap should return ~10 BIGTokenB in and 10 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdk.NewInt(10_001_000), tokenOut, sdk.NewInt(10_000_000)) - s.assertTickBalancesInt(sdk.ZeroInt(), sdk.NewInt(10001000)) + s.assertSwapOutputInt(tokenIn, sdk.NewInt(10_000_999), tokenOut, sdk.NewInt(10_000_000)) + s.assertTickBalancesInt(sdk.ZeroInt(), sdk.NewInt(10_000_999)) s.assertCurr0To1(1) s.assertCurr1To0(math.MinInt64) @@ -87,8 +87,8 @@ func (s *DexTestSuite) TestSwap0To1FillLP() { // THEN swap should return 100 BIGTokenA in and ~98 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(100_000_000), tokenOut, sdkmath.NewInt(97_970_970)) - s.assertTickBalancesInt(sdkmath.NewInt(100_000_000), sdkmath.NewInt(20_29_030)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_999), tokenOut, sdkmath.NewInt(97_970_970)) + s.assertTickBalancesInt(sdkmath.NewInt(99_999_999), sdkmath.NewInt(20_29_030)) s.assertCurr0To1(205) s.assertCurr1To0(195) @@ -105,8 +105,8 @@ func (s *DexTestSuite) TestSwap1To0FillLP() { s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) // NOTE: Given rounding for amountOut, amountIn does not use the full maxAmount - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_998), tokenOut, sdkmath.NewInt(13_533_528)) - s.assertTickBalancesInt(sdkmath.NewInt(86_466_472), sdkmath.NewInt(99_999_998)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_997), tokenOut, sdkmath.NewInt(13_533_528)) + s.assertTickBalancesInt(sdkmath.NewInt(86_466_472), sdkmath.NewInt(99_999_997)) s.assertCurr0To1(-19_999) s.assertCurr1To0(-20_001) @@ -122,8 +122,8 @@ func (s *DexTestSuite) TestSwap0To1FillLPHighFee() { // THEN swap should return ~99 BIGTokenA in and ~12 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_996), tokenOut, sdkmath.NewInt(12_246_928)) - s.assertTickBalancesInt(sdkmath.NewInt(99_999_996), sdkmath.NewInt(87_753_072)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_995), tokenOut, sdkmath.NewInt(12_246_928)) + s.assertTickBalancesInt(sdkmath.NewInt(99_999_995), sdkmath.NewInt(87_753_072)) s.assertCurr0To1(21_000) s.assertCurr1To0(19_000) @@ -139,8 +139,8 @@ func (s *DexTestSuite) TestSwap1To0FillLPHighFee() { // THEN swap should return 100 BIGTokenB in and ~668 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(100_000_000), tokenOut, sdkmath.NewInt(668_525_935)) - s.assertTickBalancesInt(sdkmath.NewInt(331_474_065), sdkmath.NewInt(100_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_999), tokenOut, sdkmath.NewInt(668_525_935)) + s.assertTickBalancesInt(sdkmath.NewInt(331_474_065), sdkmath.NewInt(99_999_999)) s.assertCurr0To1(21_000) s.assertCurr1To0(19_000) @@ -160,8 +160,8 @@ func (s *DexTestSuite) TestSwap0To1PartialFillMultipleLP() { // THEN swap should return ~40 BIGTokenA in and 300 TokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(40_604_647), tokenOut, sdkmath.NewInt(300_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(40_604_647), sdkmath.ZeroInt()) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(40_604_644), tokenOut, sdkmath.NewInt(300_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(40_604_644), sdkmath.ZeroInt()) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-20_001) @@ -181,8 +181,8 @@ func (s *DexTestSuite) TestSwap1To0PartialFillMultipleLP() { // THEN swap should return ~41 BIGTokenB in and 300 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdk.NewInt(40604647), tokenOut, sdk.NewInt(300000000)) - s.assertTickBalancesInt(sdk.ZeroInt(), sdk.NewInt(40604647)) + s.assertSwapOutputInt(tokenIn, sdk.NewInt(40604644), tokenOut, sdk.NewInt(300000000)) + s.assertTickBalancesInt(sdk.ZeroInt(), sdk.NewInt(40604644)) s.assertCurr0To1(20_001) s.assertCurr1To0(math.MinInt64) @@ -203,8 +203,8 @@ func (s *DexTestSuite) TestSwap0To1FillMultipleLP() { // THEN swap should return ~399 BIGTokenA in and 400 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(399_180_884), tokenOut, sdkmath.NewInt(400_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(399_180_884), sdkmath.ZeroInt()) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(399_180_880), tokenOut, sdkmath.NewInt(400_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(399_180_880), sdkmath.ZeroInt()) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-21) @@ -225,8 +225,8 @@ func (s *DexTestSuite) TestSwap1To0FillMultipleLP() { // THEN swap should return 400 BIGTokenB in and ~400 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(399_180_884), tokenOut, sdkmath.NewInt(400_000_000)) - s.assertTickBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(399_180_884)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(399_180_880), tokenOut, sdkmath.NewInt(400_000_000)) + s.assertTickBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(399_180_880)) s.assertCurr0To1(21) s.assertCurr1To0(math.MinInt64) @@ -240,8 +240,8 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 5) // THEN swap should return ~5 BIGTokenA in and 5 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_500), tokenOut, sdkmath.NewInt(5_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(5_000_500), sdkmath.NewInt(5_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_499), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_499), sdkmath.NewInt(5_000_000)) } func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsed() { @@ -252,8 +252,8 @@ func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 5) // THEN swap should return ~5 BIGTokenB in and 5 BIGTokenA out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_500), tokenOut, sdkmath.NewInt(5_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(5_000_000), sdkmath.NewInt(5_000_500)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_499), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_000), sdkmath.NewInt(5_000_499)) } func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsed() { @@ -264,8 +264,8 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 8, 15) // THEN swap should return 8 BIGTokenA in and ~8 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(7_999_200)) - s.assertTickBalancesInt(sdkmath.NewInt(8_000_000), sdkmath.NewInt(20_00_800)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(7_999_999), tokenOut, sdkmath.NewInt(7_999_200)) + s.assertTickBalancesInt(sdkmath.NewInt(7_999_999), sdkmath.NewInt(20_00_800)) } func (s *DexTestSuite) TestSwap1To0LPMaxAmountNotUsed() { @@ -276,8 +276,8 @@ func (s *DexTestSuite) TestSwap1To0LPMaxAmountNotUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 8, 15) // THEN swap should return 8 BIGTokenB in and ~8 BIGTokenA out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(7_999_200)) - s.assertTickBalancesInt(sdkmath.NewInt(2000800), sdkmath.NewInt(8_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(7_999_999), tokenOut, sdkmath.NewInt(7_999_200)) + s.assertTickBalancesInt(sdkmath.NewInt(2000800), sdkmath.NewInt(7_999_999)) } func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { @@ -294,8 +294,8 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountUsedMultiTick() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 20) // THEN swap should return ~20 BIGTokenA in and 20 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(20_005_003), tokenOut, sdkmath.NewInt(20_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(20_005_003), sdkmath.NewInt(30_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(20_004_999), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(20_004_999), sdkmath.NewInt(30_000_000)) } func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { @@ -312,8 +312,8 @@ func (s *DexTestSuite) TestSwap1To0LPMaxAmountUsedMultiTick() { tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 20) // THEN swap should return ~ 20 BIGTokenB in and 20 BIGTokenA out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_994_002), tokenOut, sdkmath.NewInt(20_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(30_000_000), sdkmath.NewInt(19_994_002)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_994_001), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(30_000_000), sdkmath.NewInt(19_994_001)) } func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { @@ -330,8 +330,8 @@ func (s *DexTestSuite) TestSwap0To1LPMaxAmountNotUsedMultiTick() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 19, 20) // THEN swap should return 19 BIGTokenA in and 19 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_000_000), tokenOut, sdkmath.NewInt(18_995_399)) - s.assertTickBalancesInt(sdkmath.NewInt(19_000_000), sdkmath.NewInt(31_004_601)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(18_999_999), tokenOut, sdkmath.NewInt(18_995_402)) + s.assertTickBalancesInt(sdkmath.NewInt(18_999_999), sdkmath.NewInt(31_004_598)) } // swaps against LOs only ///////////////////////////////////////////////////// @@ -346,8 +346,8 @@ func (s *DexTestSuite) TestSwap0To1PartialFillLO() { // THEN swap should return ~11 BIGTokenA in and 10 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(11_051_654), tokenOut, sdkmath.NewInt(10_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(11_051_654), sdkmath.ZeroInt()) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(11_051_653), tokenOut, sdkmath.NewInt(10_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(11_051_653), sdkmath.ZeroInt()) } func (s *DexTestSuite) TestSwap1To0PartialFillLO() { @@ -360,8 +360,8 @@ func (s *DexTestSuite) TestSwap1To0PartialFillLO() { // THEN swap should return ~11 BIGTokenB in and 10 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(11_051_654), tokenOut, sdkmath.NewInt(10_000_000)) - s.assertTickBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(11_051_654)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(11_051_653), tokenOut, sdkmath.NewInt(10_000_000)) + s.assertTickBalancesInt(sdkmath.ZeroInt(), sdkmath.NewInt(11_051_653)) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(math.MinInt64) @@ -377,8 +377,8 @@ func (s *DexTestSuite) TestSwap0To1FillLO() { // THEN swap should return ~99 BIGTokenA in and ~37 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_999), tokenOut, sdkmath.NewInt(36_789_783)) - s.assertTickBalancesInt(sdkmath.NewInt(99_999_999), sdkmath.NewInt(63_210_217)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(99_999_998), tokenOut, sdkmath.NewInt(36_789_783)) + s.assertTickBalancesInt(sdkmath.NewInt(99_999_998), sdkmath.NewInt(63_210_217)) s.assertCurr0To1(10_000) s.assertCurr1To0(math.MinInt64) @@ -394,8 +394,8 @@ func (s *DexTestSuite) TestSwap1To0FillLO() { // THEN swap should return 10 BIGTokenB in and ~4 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(10_000_000), tokenOut, sdkmath.NewInt(3_678_978)) - s.assertTickBalancesInt(sdkmath.NewInt(96_321_022), sdkmath.NewInt(10_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(9_999_999), tokenOut, sdkmath.NewInt(3_678_978)) + s.assertTickBalancesInt(sdkmath.NewInt(96_321_022), sdkmath.NewInt(9_999_999)) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-10_000) @@ -413,8 +413,8 @@ func (s *DexTestSuite) TestSwap0To1FillMultipleLO() { // THEN swap should return 300 BIGTokenA in and ~271 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) s.Assert().Equal("TokenB", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(300_000_000), tokenOut, sdkmath.NewInt(271_428_295)) - s.assertTickBalancesInt(sdkmath.NewInt(300_000_000), sdkmath.NewInt(28_571_705)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(299_999_999), tokenOut, sdkmath.NewInt(271_428_297)) + s.assertTickBalancesInt(sdkmath.NewInt(299_999_999), sdkmath.NewInt(28_571_703)) s.assertCurr0To1(1_002) s.assertCurr1To0(math.MinInt64) @@ -432,8 +432,8 @@ func (s *DexTestSuite) TestSwap1To0FillMultipleLO() { // THEN swap should return 300 BIGTokenB in and ~271 BIGTokenB out s.Assert().Equal("TokenB", tokenIn.Denom) s.Assert().Equal("TokenA", tokenOut.Denom) - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(300_000_000), tokenOut, sdkmath.NewInt(271_428_295)) - s.assertTickBalancesInt(sdkmath.NewInt(28_571_705), sdkmath.NewInt(300_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(299_999_999), tokenOut, sdkmath.NewInt(271_428_297)) + s.assertTickBalancesInt(sdkmath.NewInt(28_571_703), sdkmath.NewInt(299_999_999)) s.assertCurr0To1(math.MaxInt64) s.assertCurr1To0(-1_002) @@ -447,8 +447,8 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 5) // THEN swap should return ~5 BIGTokenA in and 5 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_500), tokenOut, sdkmath.NewInt(5_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(5_000_500), sdkmath.NewInt(5_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(5_000_499), tokenOut, sdkmath.NewInt(5_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(5_000_499), sdkmath.NewInt(5_000_000)) } func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsed() { @@ -471,8 +471,8 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsed() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 8, 15) // THEN swap should return 8 BIGTokenA in and ~8 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(8_000_000), tokenOut, sdkmath.NewInt(7_999_200)) - s.assertTickBalancesInt(sdkmath.NewInt(8_000_000), sdkmath.NewInt(2_000_800)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(7_999_999), tokenOut, sdkmath.NewInt(7_999_200)) + s.assertTickBalancesInt(sdkmath.NewInt(7_999_999), sdkmath.NewInt(2_000_800)) } func (s *DexTestSuite) TestSwap1To0LOMaxAmountNotUsed() { @@ -499,8 +499,8 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountUsedMultiTick() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 50, 20) // THEN swap should return ~20 BIGTokenA in and 20 TokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(20_003_002), tokenOut, sdkmath.NewInt(20_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(20_003_002), sdkmath.NewInt(30_000_000)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(20_002_999), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(20_002_999), sdkmath.NewInt(30_000_000)) } func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { @@ -515,8 +515,8 @@ func (s *DexTestSuite) TestSwap1To0LOMaxAmountUsedMultiTick() { tokenIn, tokenOut := s.swapWithMaxOut("TokenB", "TokenA", 50, 20) // THEN swap should return ~20 BIGTokenB in and 20 BIGTokenA out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_992_002), tokenOut, sdkmath.NewInt(20_000_000)) - s.assertTickBalancesInt(sdkmath.NewInt(30_000_000), sdkmath.NewInt(19_992_002)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_992_001), tokenOut, sdkmath.NewInt(20_000_000)) + s.assertTickBalancesInt(sdkmath.NewInt(30_000_000), sdkmath.NewInt(19_992_001)) } func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { @@ -531,8 +531,8 @@ func (s *DexTestSuite) TestSwap0To1LOMaxAmountNotUsedMultiTick() { tokenIn, tokenOut := s.swapWithMaxOut("TokenA", "TokenB", 19, 20) // THEN swap should return 19 BIGTokenA in and ~19 BIGTokenB out - s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(19_000_000), tokenOut, sdkmath.NewInt(18_997_299)) - s.assertTickBalancesInt(sdkmath.NewInt(19_000_000), sdkmath.NewInt(31_002_701)) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(18_999_999), tokenOut, sdkmath.NewInt(18_997_301)) + s.assertTickBalancesInt(sdkmath.NewInt(18_999_999), sdkmath.NewInt(31_002_699)) } // Swap LO and LP //////////////////////////////////////////////////////////// diff --git a/x/dex/types/limit_order_tranche.go b/x/dex/types/limit_order_tranche.go index 6e9a7dc74..383741837 100644 --- a/x/dex/types/limit_order_tranche.go +++ b/x/dex/types/limit_order_tranche.go @@ -148,7 +148,7 @@ func (t *LimitOrderTranche) Swap(maxAmountTakerIn math.Int, maxAmountMakerOut *m } outAmount = utils.MinIntArr(possibleOutAmounts) - inAmount = math_utils.NewPrecDecFromInt(outAmount).Quo(t.PriceTakerToMaker).Ceil().TruncateInt() + inAmount = math_utils.NewPrecDecFromInt(outAmount).Quo(t.PriceTakerToMaker).TruncateInt() *fillTokenIn = fillTokenIn.Add(inAmount) *totalTokenIn = totalTokenIn.Add(inAmount) diff --git a/x/dex/types/pool.go b/x/dex/types/pool.go index 72e73e9ae..9b0536fd3 100644 --- a/x/dex/types/pool.go +++ b/x/dex/types/pool.go @@ -97,7 +97,6 @@ func (p *Pool) Swap( amountMakerOut = utils.MinIntArr(possibleAmountsMakerOut) amountTakerIn = math_utils.NewPrecDecFromInt(amountMakerOut). Quo(makerReserves.PriceTakerToMaker). - Ceil(). TruncateInt() takerReserves.ReservesMakerDenom = takerReserves.ReservesMakerDenom.Add(amountTakerIn) From b50963ace0596074fb7fe3d05494de008e456928 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 10 Nov 2023 02:24:27 -0500 Subject: [PATCH 241/307] Add swap logic to abort if taker will be getting an unfair price due to rounding --- x/dex/keeper/liquidity.go | 26 ++++++++++++++++++++++++++ x/dex/types/errors.go | 5 +++++ 2 files changed, 31 insertions(+) diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index e86e77b89..7c67568ff 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -41,6 +41,21 @@ func (k Keeper) Swap( } inAmount, outAmount := liq.Swap(remainingTakerDenom, remainingMakerDenom) + + // If (due to rounding) the actual price given to the maker is demonstrably unfair + // we do not save the results of the swap and we exit. + // While the decrease in price quality for the maker is semi-linear with the amount + // being swapped, it is possible that the next swap could yield a "fair" price. + // Nonethless, once the remainingTakerDenom gets small enough to start causing unfair swaps + // it is much simpler to just abort. + if isUnfairTruePrice(inAmount, outAmount, liq) { + // If they've already swapped just end the swap + if remainingTakerDenom.LT(maxAmountTakerDenom) { + break + } + // If they have not swapped anything return informative error + return sdk.Coin{}, sdk.Coin{}, false, types.ErrSwapAmountTooSmall + } k.SaveLiquidity(ctx, liq) remainingTakerDenom = remainingTakerDenom.Sub(inAmount) @@ -113,3 +128,14 @@ func (k Keeper) SaveLiquidity(sdkCtx sdk.Context, liquidityI types.Liquidity) { panic("Invalid liquidity type") } } + +var MaxTrueMakerSpread = math_utils.MustNewPrecDecFromStr("0.005") + +func isUnfairTruePrice(inAmount, outAmount math.Int, liq types.Liquidity) bool { + bookPrice := liq.Price() + truePrice := math_utils.NewPrecDecFromInt(outAmount).QuoInt(inAmount) + priceDiffFromExpected := truePrice.Sub(bookPrice) + pctDiff := priceDiffFromExpected.Quo(bookPrice) + + return pctDiff.GT(MaxTrueMakerSpread) +} diff --git a/x/dex/types/errors.go b/x/dex/types/errors.go index 024a67bbe..cb1c080a4 100644 --- a/x/dex/types/errors.go +++ b/x/dex/types/errors.go @@ -169,4 +169,9 @@ var ( 1150, "Can only provide a single deposit amount for each tick, fee pair", ) + ErrSwapAmountTooSmall = sdkerrors.Register( + ModuleName, + 1151, + "Swap amount too small; creates unfair spread for liquidity providers", + ) ) From 4ff34987a933496f3225d035b714cf68595ef948 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 10 Nov 2023 16:11:00 -0500 Subject: [PATCH 242/307] handle swap case where amountIn is 0 --- x/dex/keeper/liquidity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index 7c67568ff..e2442996e 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -48,7 +48,7 @@ func (k Keeper) Swap( // being swapped, it is possible that the next swap could yield a "fair" price. // Nonethless, once the remainingTakerDenom gets small enough to start causing unfair swaps // it is much simpler to just abort. - if isUnfairTruePrice(inAmount, outAmount, liq) { + if inAmount.IsZero() || isUnfairTruePrice(inAmount, outAmount, liq) { // If they've already swapped just end the swap if remainingTakerDenom.LT(maxAmountTakerDenom) { break From 1836856cdc16b75f81b2b7e3fbe3a87a0b9e96aa Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 10 Nov 2023 18:25:55 -0500 Subject: [PATCH 243/307] add tests for swap rouding behavior --- .../integration_placelimitorder_test.go | 37 ++++++ x/dex/keeper/liquidity_test.go | 114 ++++++++++++++---- x/dex/keeper/msg_server_test.go | 15 ++- 3 files changed, 138 insertions(+), 28 deletions(-) diff --git a/x/dex/keeper/integration_placelimitorder_test.go b/x/dex/keeper/integration_placelimitorder_test.go index 34358ad0f..40c2760c5 100644 --- a/x/dex/keeper/integration_placelimitorder_test.go +++ b/x/dex/keeper/integration_placelimitorder_test.go @@ -503,6 +503,43 @@ func (s *DexTestSuite) TestPlaceLimitOrderIoCWithLPNoFill() { s.assertLimitLiquidityAtTick("TokenA", 1, 0) } +func (s *DexTestSuite) TestPlaceLimitOrderIoCUnfairPriceFails() { + s.fundAliceBalances(10, 0) + s.fundBobBalances(0, 1) + // GIVEN LP of 1 TokenB at tick -20 + s.bobDeposits(NewDeposit(0, 1, -20, 1)) + // WHEN alice submits IoC limitOrder for 2 tokenA + _, err := s.limitSellsInt(s.alice, "TokenA", 10, sdkmath.NewInt(2), types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + // THEN alice's LimitOrder failswith SwapAmountTooSmall + s.ErrorIs(err, types.ErrSwapAmountTooSmall) + + // Nothing is changed + s.assertAliceBalances(10, 0) + s.assertLiquidityAtTick(0, 1, -20, 1) +} + +func (s *DexTestSuite) TestPlaceLimitOrderIoCUnfairPriceAbortsEarly() { + s.fundAliceBalances(1, 0) + s.fundBobBalances(0, 2) + // GIVEN LP of 1 TokenB at ticks -20 & -21 + s.bobDeposits( + NewDeposit(0, 1, -21, 1), + NewDeposit(0, 1, -20, 1), + ) + // WHEN alice submits IoC limitOrder for 999_004 small TokenA + _, err := s.limitSellsInt(s.alice, "TokenA", 10, sdkmath.NewInt(998_004), types.LimitOrderType_IMMEDIATE_OR_CANCEL) + + // THEN alice's LimitOrder swaps through the first tick, but does not swap the second tick due to unfair pricing + s.NoError(err) + + // The first tick swapped and the second tick is not + s.assertLiquidityAtTickInt(sdkmath.NewInt(998_002), sdkmath.ZeroInt(), -21, 1) + s.assertLiquidityAtTick(0, 1, -20, 1) + // only the first swap is deducted from alices balance + s.assertAliceBalancesInt(sdkmath.NewInt(1998), sdkmath.NewInt(1_000_000)) +} + // Just In Time Limit Orders ////////////////////////////////////////////////// func (s *DexTestSuite) TestPlaceLimitOrderJITFills() { diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index ec15601ed..03136fd10 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -17,7 +17,7 @@ func (s *DexTestSuite) TestSwap0To1NoLiquidity() { s.placeGTCLimitOrder("TokenA", 1000, 10) // WHEN swap 10 of tokenB - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 10) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 10) // THEN swap should do nothing s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(0o_000_000), tokenOut, sdkmath.NewInt(0o_000_000)) @@ -32,7 +32,7 @@ func (s *DexTestSuite) TestSwap1To0NoLiquidity() { s.placeGTCLimitOrder("TokenB", 1000, 10) // WHEN swap 10 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 10) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 10) // THEN swap should do nothing s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(0o_000_000), tokenOut, sdkmath.NewInt(0o_000_000)) @@ -41,6 +41,65 @@ func (s *DexTestSuite) TestSwap1To0NoLiquidity() { s.assertCurr1To0(math.MinInt64) } +func (s *DexTestSuite) TestSwapZeroInFailsLowTick() { + // GIVEN liquidity tokenA at tick -20,002 + s.addDeposit(NewDeposit(10000, 0, -20_000, 2)) + + // WHEN swap 7 tokenB + _, _, _, err := s.swap("TokenB", "TokenA", sdkmath.NewInt(7)) + + // THEN swap would give an InAmount and outAmount of 0 and fail + // Floor(7 * 1.0001^-20,000) = 0 + s.ErrorIs(err, types.ErrSwapAmountTooSmall) +} + +func (s *DexTestSuite) TestSwapUnfairPriceFailsLowTick() { + // GIVEN liquidity tokenA at tick -20,002 + s.addDeposit(NewDeposit(10000, 0, -20_000, 2)) + + // WHEN swap 8 tokenB + _, _, _, err := s.swap("TokenB", "TokenA", sdkmath.NewInt(8)) + + // THEN swap fails because maker is selling at an unfair true price + // AmountOut = Floor(8 * 1.0001^-20,000) = 1 + // AmountIn = Floor(1 * 1.0001^20000) = 7 + // TruePrice = AmountOut/AmountIn = 1/7 = .142857 + // BookPrice = 0.135348817 (thus maker is getting a price 5.5% worse than expected) + s.ErrorIs(err, types.ErrSwapAmountTooSmall) +} + +func (s *DexTestSuite) TestSwapUnfairPriceFailsHighTick() { + // GIVEN liquidity tokenA at tick 159,680 + s.addDeposit(NewDeposit(2000, 0, 159681, 1)) + + // WHEN swap 8 tokenB + _, _, _, err := s.swap("TokenB", "TokenA", sdk.NewInt(200)) + + // THEN swap fails because maker is selling at an unfair true price + // AmountOut = Floor(200 * 1.0001^159,680) = 1,719,877,698 + // AmountIn = Floor(1,719,877,697 * 1.0001^-159,680) = 199 + // TruePrice = AmountOut/AmountIn = 1,719,877,698/199 = 8,642,601 + // BookPrice = 8,599,388 (thus maker is getting a price .502% worse than expected) + s.ErrorIs(err, types.ErrSwapAmountTooSmall) +} + +func (s *DexTestSuite) TestSwapUnfairPriceAbortEarly() { + // GIVEN liquidity tokenA at tick 159,681 and 159,680 + s.addDeposits( + NewDeposit(2580, 0, 159682, 1), + NewDeposit(2000, 0, 159681, 1), + ) + + // WHEN swap 700 BIgTokenB + tokenIn, tokenOut, orderFilled, err := s.swap("TokenB", "TokenA", sdk.NewInt(499)) + + // THEN swap works on the first tick, but aborts on the second tick because of Unfair price condition + s.NoError(err) + s.assertSwapOutputInt(tokenIn, sdkmath.NewInt(299), tokenOut, sdkmath.NewInt(2580000000)) + s.False(orderFilled) + s.assertTickBalancesInt(sdkmath.NewInt(2_000_000_000), sdkmath.NewInt(299)) +} + // swaps against LPs only ///////////////////////////////////////////////////// func (s *DexTestSuite) TestSwap0To1PartialFillLP() { @@ -48,7 +107,7 @@ func (s *DexTestSuite) TestSwap0To1PartialFillLP() { s.addDeposit(NewDeposit(0, 10, 0, 1)) // WHEN swap 20 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 20) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 20) // THEN swap should return ~10 BIGTokenA in and 10 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -65,7 +124,7 @@ func (s *DexTestSuite) TestSwap1To0PartialFillLP() { s.addDeposit(NewDeposit(10, 0, 0, 1)) // WHEN swap 20 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 20) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 20) // THEN swap should return ~10 BIGTokenB in and 10 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -82,7 +141,7 @@ func (s *DexTestSuite) TestSwap0To1FillLP() { s.addDeposit(NewDeposit(0, 100, 200, 5)) // WHEN swap 100 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 100) // THEN swap should return 100 BIGTokenA in and ~98 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -99,7 +158,7 @@ func (s *DexTestSuite) TestSwap1To0FillLP() { s.addDeposit(NewDeposit(100, 0, -20_000, 1)) // WHEN swap 100 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 100) // THEN swap should return ~99 BIGTokenB in and ~14 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -117,7 +176,7 @@ func (s *DexTestSuite) TestSwap0To1FillLPHighFee() { s.addDeposit(NewDeposit(0, 100, 20_000, 1_000)) // WHEN swap 100 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 100) // THEN swap should return ~99 BIGTokenA in and ~12 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -134,7 +193,7 @@ func (s *DexTestSuite) TestSwap1To0FillLPHighFee() { s.addDeposit(NewDeposit(1000, 0, 20_000, 1000)) // WHEN swap 100 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 100) // THEN swap should return 100 BIGTokenB in and ~668 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -155,7 +214,7 @@ func (s *DexTestSuite) TestSwap0To1PartialFillMultipleLP() { ) // WHEN swap 100 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 100) // THEN swap should return ~40 BIGTokenA in and 300 TokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -176,7 +235,7 @@ func (s *DexTestSuite) TestSwap1To0PartialFillMultipleLP() { ) // WHEN swap 100 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 100) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 100) // THEN swap should return ~41 BIGTokenB in and 300 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -198,7 +257,7 @@ func (s *DexTestSuite) TestSwap0To1FillMultipleLP() { ) // WHEN swap 100 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 400) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 400) // THEN swap should return ~399 BIGTokenA in and 400 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -220,7 +279,7 @@ func (s *DexTestSuite) TestSwap1To0FillMultipleLP() { ) // WHEN swap 400 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 400) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 400) // THEN swap should return 400 BIGTokenB in and ~400 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -341,7 +400,7 @@ func (s *DexTestSuite) TestSwap0To1PartialFillLO() { s.placeGTCLimitOrder("TokenB", 10, 1_000) // WHEN swap 20 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 20) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 20) // THEN swap should return ~11 BIGTokenA in and 10 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -355,7 +414,7 @@ func (s *DexTestSuite) TestSwap1To0PartialFillLO() { s.placeGTCLimitOrder("TokenA", 10, -1_000) // WHEN swap 20 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 20) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 20) // THEN swap should return ~11 BIGTokenB in and 10 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -372,7 +431,7 @@ func (s *DexTestSuite) TestSwap0To1FillLO() { s.placeGTCLimitOrder("TokenB", 100, 10_000) // WHEN swap 100 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 100) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 100) // THEN swap should return ~99 BIGTokenA in and ~37 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -389,7 +448,7 @@ func (s *DexTestSuite) TestSwap1To0FillLO() { s.placeGTCLimitOrder("TokenA", 100, -10_000) // WHEN swap 10 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 10) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 10) // THEN swap should return 10 BIGTokenB in and ~4 BIGTokenA out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -408,7 +467,7 @@ func (s *DexTestSuite) TestSwap0To1FillMultipleLO() { s.placeGTCLimitOrder("TokenB", 100, 1_002) // WHEN swap 300 of tokenA - tokenIn, tokenOut := s.swap("TokenA", "TokenB", 300) + tokenIn, tokenOut := s.swapSuccess("TokenA", "TokenB", 300) // THEN swap should return 300 BIGTokenA in and ~271 BIGTokenB out s.Assert().Equal("TokenA", tokenIn.Denom) @@ -427,7 +486,7 @@ func (s *DexTestSuite) TestSwap1To0FillMultipleLO() { s.placeGTCLimitOrder("TokenA", 100, -1_002) // WHEN swap 300 of tokenB - tokenIn, tokenOut := s.swap("TokenB", "TokenA", 300) + tokenIn, tokenOut := s.swapSuccess("TokenB", "TokenA", 300) // THEN swap should return 300 BIGTokenB in and ~271 BIGTokenB out s.Assert().Equal("TokenB", tokenIn.Denom) @@ -587,17 +646,25 @@ func (s *DexTestSuite) placeGTCLimitOrder( func (s *DexTestSuite) swap( tokenIn string, tokenOut string, - maxAmountIn int64, -) (coinIn, coinOut sdk.Coin) { + maxAmountIn sdkmath.Int, +) (coinIn, coinOut sdk.Coin, filled bool, err error) { tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) s.Assert().NoError(err) - coinIn, coinOut, _, err = s.App.DexKeeper.Swap( + return s.App.DexKeeper.Swap( s.Ctx, tradePairID, - sdkmath.NewInt(maxAmountIn).Mul(denomMultiple), + maxAmountIn, nil, nil, ) +} + +func (s *DexTestSuite) swapSuccess( + tokenIn string, + tokenOut string, + maxAmountIn int64, +) (coinIn, coinOut sdk.Coin) { + coinIn, coinOut, _, err := s.swap(tokenIn, tokenOut, sdk.NewInt(maxAmountIn).Mul(denomMultiple)) s.Assert().NoError(err) return coinIn, coinOut } @@ -690,9 +757,6 @@ func (s *DexTestSuite) assertTickBalancesInt(expectedABalance, expectedBBalance } func (s *DexTestSuite) assertTickBalances(expectedABalance, expectedBBalance int64) { - // NOTE: We can't just check the actual DEX bank balances since we are testing swap - // before any transfers take place. Instead we have to sum up the total amount of coins - // at each tick expectedAInt := sdkmath.NewInt(expectedABalance).Mul(denomMultiple) expectedBInt := sdkmath.NewInt(expectedBBalance).Mul(denomMultiple) s.assertTickBalancesInt(expectedAInt, expectedBInt) diff --git a/x/dex/keeper/msg_server_test.go b/x/dex/keeper/msg_server_test.go index 999c4d817..056c63da2 100644 --- a/x/dex/keeper/msg_server_test.go +++ b/x/dex/keeper/msg_server_test.go @@ -394,10 +394,10 @@ func (s *DexTestSuite) limitSellsWithMaxOut( return msg.TrancheKey } -func (s *DexTestSuite) limitSells( +func (s *DexTestSuite) limitSellsInt( account sdk.AccAddress, tokenIn string, - tickIndexNormalized, amountIn int, + tickIndexNormalized int, amountIn sdkmath.Int, orderTypeOpt ...types.LimitOrderType, ) (string, error) { var orderType types.LimitOrderType @@ -415,13 +415,22 @@ func (s *DexTestSuite) limitSells( TokenIn: tradePairID.TakerDenom, TokenOut: tradePairID.MakerDenom, TickIndexInToOut: tickIndexTakerToMaker, - AmountIn: sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), + AmountIn: amountIn, OrderType: orderType, }) return msg.TrancheKey, err } +func (s *DexTestSuite) limitSells( + account sdk.AccAddress, + tokenIn string, + tickIndexNormalized, amountIn int, + orderTypeOpt ...types.LimitOrderType, +) (string, error) { + return s.limitSellsInt(account, tokenIn, tickIndexNormalized, sdkmath.NewInt(int64(amountIn)).Mul(denomMultiple), orderTypeOpt...) +} + func (s *DexTestSuite) limitSellsGoodTil( account sdk.AccAddress, tokenIn string, From 38923059654b803e6a17a1f46071b9f7b996bbea Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 13 Nov 2023 17:34:56 -0500 Subject: [PATCH 244/307] Store MaxTrueTakerSpread as a dex param --- proto/neutron/dex/params.proto | 9 ++++- x/dex/keeper/liquidity.go | 13 +++--- x/dex/types/params.go | 15 ++++--- x/dex/types/params.pb.go | 74 +++++++++++++++++++++++++++++----- 4 files changed, 90 insertions(+), 21 deletions(-) diff --git a/proto/neutron/dex/params.proto b/proto/neutron/dex/params.proto index 70c65c293..8e7bfe2c6 100644 --- a/proto/neutron/dex/params.proto +++ b/proto/neutron/dex/params.proto @@ -8,5 +8,12 @@ option go_package = "github.com/neutron-org/neutron/x/dex/types"; // Params defines the parameters for the module. message Params { option (gogoproto.goproto_stringer) = false; - repeated uint64 fee_tiers = 1; + repeated uint64 fee_tiers = 1; + string max_true_taker_spread = 2 [ + (gogoproto.moretags) = "yaml:\"max_true_taker_spread\"", + (gogoproto.customtype) = "github.com/neutron-org/neutron/utils/math.PrecDec", + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "max_true_taker_spread" + ]; + } diff --git a/x/dex/keeper/liquidity.go b/x/dex/keeper/liquidity.go index e2442996e..c50b68e00 100644 --- a/x/dex/keeper/liquidity.go +++ b/x/dex/keeper/liquidity.go @@ -15,6 +15,7 @@ func (k Keeper) Swap( maxAmountMakerDenom *math.Int, limitPrice *math_utils.PrecDec, ) (totalTakerCoin, totalMakerCoin sdk.Coin, orderFilled bool, err error) { + params := k.GetParams(ctx) useMaxOut := maxAmountMakerDenom != nil var remainingMakerDenom *math.Int if useMaxOut { @@ -48,7 +49,7 @@ func (k Keeper) Swap( // being swapped, it is possible that the next swap could yield a "fair" price. // Nonethless, once the remainingTakerDenom gets small enough to start causing unfair swaps // it is much simpler to just abort. - if inAmount.IsZero() || isUnfairTruePrice(inAmount, outAmount, liq) { + if inAmount.IsZero() || isUnfairTruePrice(params.MaxTrueTakerSpread, inAmount, outAmount, liq) { // If they've already swapped just end the swap if remainingTakerDenom.LT(maxAmountTakerDenom) { break @@ -129,13 +130,15 @@ func (k Keeper) SaveLiquidity(sdkCtx sdk.Context, liquidityI types.Liquidity) { } } -var MaxTrueMakerSpread = math_utils.MustNewPrecDecFromStr("0.005") - -func isUnfairTruePrice(inAmount, outAmount math.Int, liq types.Liquidity) bool { +func isUnfairTruePrice( + maxTrueTakerSpread math_utils.PrecDec, + inAmount, outAmount math.Int, + liq types.Liquidity, +) bool { bookPrice := liq.Price() truePrice := math_utils.NewPrecDecFromInt(outAmount).QuoInt(inAmount) priceDiffFromExpected := truePrice.Sub(bookPrice) pctDiff := priceDiffFromExpected.Quo(bookPrice) - return pctDiff.GT(MaxTrueMakerSpread) + return pctDiff.GT(maxTrueTakerSpread) } diff --git a/x/dex/types/params.go b/x/dex/types/params.go index 8bb7fdc0b..b62659eac 100644 --- a/x/dex/types/params.go +++ b/x/dex/types/params.go @@ -4,14 +4,16 @@ import ( fmt "fmt" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + math_utils "github.com/neutron-org/neutron/utils/math" "gopkg.in/yaml.v2" ) var _ paramtypes.ParamSet = (*Params)(nil) var ( - KeyFeeTiers = []byte("FeeTiers") - DefaultFeeTiers = []uint64{0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 150, 200} + KeyFeeTiers = []byte("FeeTiers") + DefaultFeeTiers = []uint64{0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 150, 200} + DefaultMaxTrueTakerSpread = math_utils.MustNewPrecDecFromStr("0.005") ) // ParamKeyTable the param key table for launch module @@ -20,13 +22,16 @@ func ParamKeyTable() paramtypes.KeyTable { } // NewParams creates a new Params instance -func NewParams(feeTiers []uint64) Params { - return Params{FeeTiers: feeTiers} +func NewParams(feeTiers []uint64, maxTrueTakerSpread math_utils.PrecDec) Params { + return Params{ + FeeTiers: feeTiers, + MaxTrueTakerSpread: maxTrueTakerSpread, + } } // DefaultParams returns a default set of parameters func DefaultParams() Params { - return NewParams(DefaultFeeTiers) + return NewParams(DefaultFeeTiers, DefaultMaxTrueTakerSpread) } // ParamSetPairs get the params.ParamSet diff --git a/x/dex/types/params.pb.go b/x/dex/types/params.pb.go index 8ec299924..4333552ee 100644 --- a/x/dex/types/params.pb.go +++ b/x/dex/types/params.pb.go @@ -7,6 +7,7 @@ import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + github_com_neutron_org_neutron_utils_math "github.com/neutron-org/neutron/utils/math" io "io" math "math" math_bits "math/bits" @@ -25,7 +26,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { - FeeTiers []uint64 `protobuf:"varint,1,rep,packed,name=fee_tiers,json=feeTiers,proto3" json:"fee_tiers,omitempty"` + FeeTiers []uint64 `protobuf:"varint,1,rep,packed,name=fee_tiers,json=feeTiers,proto3" json:"fee_tiers,omitempty"` + MaxTrueTakerSpread github_com_neutron_org_neutron_utils_math.PrecDec `protobuf:"bytes,2,opt,name=max_true_taker_spread,json=maxTrueTakerSpread,proto3,customtype=github.com/neutron-org/neutron/utils/math.PrecDec" json:"max_true_taker_spread" yaml:"max_true_taker_spread"` } func (m *Params) Reset() { *m = Params{} } @@ -74,18 +76,24 @@ func init() { func init() { proto.RegisterFile("neutron/dex/params.proto", fileDescriptor_84a6bffcfc21009c) } var fileDescriptor_84a6bffcfc21009c = []byte{ - // 173 bytes of a gzipped FileDescriptorProto + // 272 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0x4f, 0x49, 0xad, 0xd0, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xca, 0xe8, 0xa5, 0xa4, 0x56, 0x48, 0x89, 0xa4, 0xe7, - 0xa7, 0xe7, 0x83, 0xc5, 0xf5, 0x41, 0x2c, 0x88, 0x12, 0x25, 0x6d, 0x2e, 0xb6, 0x00, 0xb0, 0x16, - 0x21, 0x69, 0x2e, 0xce, 0xb4, 0xd4, 0xd4, 0xf8, 0x92, 0xcc, 0xd4, 0xa2, 0x62, 0x09, 0x46, 0x05, - 0x66, 0x0d, 0x96, 0x20, 0x8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x4b, 0xce, 0xcf, + 0xd5, 0x87, 0xda, 0xae, 0x9b, 0x5f, 0x94, 0x0e, 0x63, 0xeb, 0x97, 0x96, 0x64, 0xe6, 0x14, 0xeb, + 0xe7, 0x26, 0x96, 0x64, 0xe8, 0x05, 0x14, 0xa5, 0x26, 0xbb, 0xa4, 0x26, 0xbf, 0xba, 0x27, 0x8f, + 0xdd, 0xe4, 0x4f, 0xf7, 0xe4, 0x65, 0x2a, 0x13, 0x73, 0x73, 0xac, 0x94, 0xb0, 0x4a, 0x2b, 0x05, + 0x09, 0xe5, 0x26, 0x56, 0x84, 0x14, 0x95, 0xa6, 0x86, 0x80, 0x44, 0x83, 0xc1, 0x82, 0x56, 0x2c, + 0x33, 0x16, 0xc8, 0x33, 0x38, 0xb9, 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, 0x16, 0x01, 0xf7, 0x55, 0x80, 0x43, 0xb1, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, + 0x44, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0xa1, 0x2f, 0xd0, 0x61, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -108,6 +116,16 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.MaxTrueTakerSpread.Size() + i -= size + if _, err := m.MaxTrueTakerSpread.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 if len(m.FeeTiers) > 0 { dAtA2 := make([]byte, len(m.FeeTiers)*10) var j1 int @@ -153,6 +171,8 @@ func (m *Params) Size() (n int) { } n += 1 + sovParams(uint64(l)) + l } + l = m.MaxTrueTakerSpread.Size() + n += 1 + l + sovParams(uint64(l)) return n } @@ -267,6 +287,40 @@ func (m *Params) Unmarshal(dAtA []byte) error { } else { return fmt.Errorf("proto: wrong wireType = %d for field FeeTiers", wireType) } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTrueTakerSpread", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxTrueTakerSpread.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) From 35a0950980c4dd8462df5c4b235f6158b3ebfeed Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 13 Nov 2023 17:39:40 -0500 Subject: [PATCH 245/307] FIX: cleanup tests; make linter happy --- x/dex/keeper/liquidity_test.go | 37 +++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/x/dex/keeper/liquidity_test.go b/x/dex/keeper/liquidity_test.go index 03136fd10..265ffd5b7 100644 --- a/x/dex/keeper/liquidity_test.go +++ b/x/dex/keeper/liquidity_test.go @@ -46,11 +46,10 @@ func (s *DexTestSuite) TestSwapZeroInFailsLowTick() { s.addDeposit(NewDeposit(10000, 0, -20_000, 2)) // WHEN swap 7 tokenB - _, _, _, err := s.swap("TokenB", "TokenA", sdkmath.NewInt(7)) // THEN swap would give an InAmount and outAmount of 0 and fail // Floor(7 * 1.0001^-20,000) = 0 - s.ErrorIs(err, types.ErrSwapAmountTooSmall) + s.swapIntFails(types.ErrSwapAmountTooSmall, "TokenB", "TokenA", sdkmath.NewInt(7)) } func (s *DexTestSuite) TestSwapUnfairPriceFailsLowTick() { @@ -58,29 +57,27 @@ func (s *DexTestSuite) TestSwapUnfairPriceFailsLowTick() { s.addDeposit(NewDeposit(10000, 0, -20_000, 2)) // WHEN swap 8 tokenB - _, _, _, err := s.swap("TokenB", "TokenA", sdkmath.NewInt(8)) // THEN swap fails because maker is selling at an unfair true price // AmountOut = Floor(8 * 1.0001^-20,000) = 1 // AmountIn = Floor(1 * 1.0001^20000) = 7 // TruePrice = AmountOut/AmountIn = 1/7 = .142857 // BookPrice = 0.135348817 (thus maker is getting a price 5.5% worse than expected) - s.ErrorIs(err, types.ErrSwapAmountTooSmall) + s.swapIntFails(types.ErrSwapAmountTooSmall, "TokenB", "TokenA", sdkmath.NewInt(8)) } func (s *DexTestSuite) TestSwapUnfairPriceFailsHighTick() { // GIVEN liquidity tokenA at tick 159,680 s.addDeposit(NewDeposit(2000, 0, 159681, 1)) - // WHEN swap 8 tokenB - _, _, _, err := s.swap("TokenB", "TokenA", sdk.NewInt(200)) + // WHEN swap 200 tokenB // THEN swap fails because maker is selling at an unfair true price // AmountOut = Floor(200 * 1.0001^159,680) = 1,719,877,698 // AmountIn = Floor(1,719,877,697 * 1.0001^-159,680) = 199 // TruePrice = AmountOut/AmountIn = 1,719,877,698/199 = 8,642,601 // BookPrice = 8,599,388 (thus maker is getting a price .502% worse than expected) - s.ErrorIs(err, types.ErrSwapAmountTooSmall) + s.swapIntFails(types.ErrSwapAmountTooSmall, "TokenB", "TokenA", sdk.NewInt(200)) } func (s *DexTestSuite) TestSwapUnfairPriceAbortEarly() { @@ -91,7 +88,7 @@ func (s *DexTestSuite) TestSwapUnfairPriceAbortEarly() { ) // WHEN swap 700 BIgTokenB - tokenIn, tokenOut, orderFilled, err := s.swap("TokenB", "TokenA", sdk.NewInt(499)) + tokenIn, tokenOut, orderFilled, err := s.swapInt("TokenB", "TokenA", sdk.NewInt(499)) // THEN swap works on the first tick, but aborts on the second tick because of Unfair price condition s.NoError(err) @@ -643,7 +640,7 @@ func (s *DexTestSuite) placeGTCLimitOrder( s.App.DexKeeper.SaveTranche(s.Ctx, tranche) } -func (s *DexTestSuite) swap( +func (s *DexTestSuite) swapInt( tokenIn string, tokenOut string, maxAmountIn sdkmath.Int, @@ -659,12 +656,32 @@ func (s *DexTestSuite) swap( ) } +func (s *DexTestSuite) swapIntFails( + targetErr error, + tokenIn string, + tokenOut string, + maxAmountIn sdkmath.Int, +) { + tradePairID, err := types.NewTradePairID(tokenIn, tokenOut) + s.Assert().NoError(err) + coinIn, coinOut, _, err := s.App.DexKeeper.Swap( + s.Ctx, + tradePairID, + maxAmountIn, + nil, + nil, + ) + s.Assert().Equal(coinIn, sdk.Coin{}) + s.Assert().Equal(coinOut, sdk.Coin{}) + s.ErrorIs(err, targetErr) +} + func (s *DexTestSuite) swapSuccess( tokenIn string, tokenOut string, maxAmountIn int64, ) (coinIn, coinOut sdk.Coin) { - coinIn, coinOut, _, err := s.swap(tokenIn, tokenOut, sdk.NewInt(maxAmountIn).Mul(denomMultiple)) + coinIn, coinOut, _, err := s.swapInt(tokenIn, tokenOut, sdk.NewInt(maxAmountIn).Mul(denomMultiple)) s.Assert().NoError(err) return coinIn, coinOut } From 1ffecd060b4306212f5c6c011d80a80c0864ec31 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Nov 2023 14:58:16 +0200 Subject: [PATCH 246/307] bump pfm to the latest release --- app/app.go | 41 +++++++++++++++--------------- app/proposals_allowlisting.go | 3 +-- go.mod | 3 +-- go.sum | 5 ++-- tests/ibc/gmp_swap_forward_test.go | 2 +- tests/ibc/swap_forward_test.go | 2 +- x/ibcswap/ibc_middleware.go | 2 +- x/ibcswap/types/swap_test.go | 2 +- 8 files changed, 29 insertions(+), 31 deletions(-) diff --git a/app/app.go b/app/app.go index 668bc5629..beb826874 100644 --- a/app/app.go +++ b/app/app.go @@ -9,8 +9,7 @@ import ( "path/filepath" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router" - + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" "github.com/cosmos/interchain-security/v3/testutil/integration" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -147,8 +146,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" - routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + pfmkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" "github.com/neutron-org/neutron/x/dex" dexkeeper "github.com/neutron-org/neutron/x/dex/keeper" @@ -225,7 +224,7 @@ var ( ), ), ibchooks.AppModuleBasic{}, - router.AppModuleBasic{}, + packetforward.AppModuleBasic{}, auction.AppModuleBasic{}, globalfee.AppModule{}, dex.AppModuleBasic{}, @@ -310,11 +309,11 @@ type App struct { ConsumerKeeper ccvconsumerkeeper.Keeper TokenFactoryKeeper *tokenfactorykeeper.Keeper CronKeeper cronkeeper.Keeper - PFMKeeper *routerkeeper.Keeper + PFMKeeper *pfmkeeper.Keeper DexKeeper dexkeeper.Keeper SwapKeeper ibcswapkeeper.Keeper - RouterModule router.AppModule + PFMModule packetforward.AppModule HooksTransferIBCModule *ibchooks.IBCMiddleware HooksICS4Wrapper ibchooks.ICS4Middleware @@ -396,7 +395,7 @@ func New( evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, - feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, + feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, pfmtypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, dextypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -532,15 +531,15 @@ func New( feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) // PFMKeeper must be created before TransferKeeper - app.PFMKeeper = routerkeeper.NewKeeper( + app.PFMKeeper = pfmkeeper.NewKeeper( appCodec, - app.keys[routertypes.StoreKey], - app.GetSubspace(routertypes.ModuleName), + app.keys[pfmtypes.StoreKey], app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, &app.BankKeeper, app.IBCKeeper.ChannelKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) wasmHooks := ibchooks.NewWasmHooks(nil, sdk.GetConfig().GetBech32AccountAddrPrefix()) // The contract keeper needs to be set later app.HooksICS4Wrapper = ibchooks.NewICS4Middleware( @@ -751,14 +750,14 @@ func New( contractManagerModule := contractmanager.NewAppModule(appCodec, app.ContractManagerKeeper) ibcHooksModule := ibchooks.NewAppModule(app.AccountKeeper) - app.RouterModule = router.NewAppModule(app.PFMKeeper) + app.PFMModule = packetforward.NewAppModule(app.PFMKeeper, app.GetSubspace(pfmtypes.ModuleName)) - var ibcStack ibcporttypes.IBCModule = router.NewIBCMiddleware( + var ibcStack ibcporttypes.IBCModule = packetforward.NewIBCMiddleware( app.HooksTransferIBCModule, app.PFMKeeper, 0, - routerkeeper.DefaultForwardTransferPacketTimeoutTimestamp, - routerkeeper.DefaultRefundTransferPacketTimeoutTimestamp, + pfmkeeper.DefaultForwardTransferPacketTimeoutTimestamp, + pfmkeeper.DefaultRefundTransferPacketTimeoutTimestamp, ) ibcStack = ibcswap.NewIBCMiddleware(ibcStack, app.SwapKeeper) @@ -799,7 +798,7 @@ func New( transferModule, consumerModule, icaModule, - app.RouterModule, + app.PFMModule, interchainQueriesModule, interchainTxsModule, feeModule, @@ -846,7 +845,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -879,7 +878,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -919,7 +918,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, // after auth keeper - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -947,7 +946,7 @@ func New( transferModule, consumerModule, icaModule, - app.RouterModule, + app.PFMModule, interchainQueriesModule, interchainTxsModule, feeBurnerModule, @@ -1288,7 +1287,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) - paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) + paramsKeeper.Subspace(pfmtypes.ModuleName).WithKeyTable(pfmtypes.ParamKeyTable()) paramsKeeper.Subspace(globalfee.ModuleName).WithKeyTable(globalfeetypes.ParamKeyTable()) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 007a6d2cb..e0cb809ef 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -7,7 +7,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -105,5 +104,5 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware - {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + //{Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } diff --git a/go.mod b/go.mod index ed4c0788d..7e8e05939 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - // TEMP: Using this version to support duality swap-and-forward - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.0 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index ac01e1a77..724451783 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 h1:iFWb/KrnP5jthNZ23l72wqE8nzHJHzoVe22giUfJce8= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.0 h1:v4JhwpC2Z+y0ECpLuxGgooSv+HZitmxlG+n/6xDmwHk= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.0/go.mod h1:W2/sU0MZ7tFh3irQuoGIWTIw0lWOS6GZCR8WY5OBUGE= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= @@ -1203,6 +1203,7 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index bc188d290..b35866c44 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/neutron-org/neutron/x/dex/types" diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 33d382bd6..9f177a834 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/iancoleman/orderedmap" "golang.org/x/exp/maps" diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index c5ceccc8d..3829378ec 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -9,7 +9,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go index 87f7107d8..c4f4c468f 100644 --- a/x/ibcswap/types/swap_test.go +++ b/x/ibcswap/types/swap_test.go @@ -5,7 +5,7 @@ import ( "testing" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" "github.com/iancoleman/orderedmap" "github.com/stretchr/testify/require" From 8a7a960196257940645824b1e47a8cea787d3d45 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Nov 2023 15:12:26 +0200 Subject: [PATCH 247/307] update whitelisted msgs --- app/proposals_allowlisting.go | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 064d3d3d3..12c6249e0 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -3,7 +3,11 @@ package app import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" + 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" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" + minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" @@ -61,7 +65,11 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *feeburnertypes.MsgUpdateParams, *feerefundertypes.MsgUpdateParams, *crontypes.MsgUpdateParams, - *contractmanagertypes.MsgUpdateParams: + *contractmanagertypes.MsgUpdateParams, + *banktypes.MsgUpdateParams, + *crisistypes.MsgUpdateParams, + *minttypes.MsgUpdateParams, + *authtypes.MsgUpdateParams: return true } return false @@ -78,30 +86,10 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // ica {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyHostEnabled)}: {}, {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyAllowMessages)}: {}, - // cosmwasm - // {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, - // {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, - // feerefunder - // {Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, - // interchaintxs - // {Subspace: interchaintxstypes.ModuleName, Key: string(interchaintxstypes.KeyMsgSubmitTxMaxMessages)}: {}, - // interchainqueries - // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQuerySubmitTimeout)}: {}, - // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQueryDeposit)}: {}, - // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyTxQueryRemovalLimit)}: {}, - // feeburner - // {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyTreasuryAddress)}: {}, - // {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyNeutronDenom)}: {}, - // tokenfactory - // {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, - // {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, // globalfee {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, - // cron - // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, - // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } From 9d5147510a4949873232ee82477ee4775ce0e1a0 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Nov 2023 15:14:15 +0200 Subject: [PATCH 248/307] fmt --- app/proposals_allowlisting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index e0cb809ef..3a00c7391 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -104,5 +104,5 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware - //{Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + // {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } From 566045ee1ef2f857fd990affb95a543ba5f1e55b Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Nov 2023 15:20:47 +0200 Subject: [PATCH 249/307] proper upgrade name --- app/app.go | 4 ++-- app/upgrades/{nextupgrade => v1.1.0}/constants.go | 7 ++++--- .../testdata/neutron_interchain_txs.wasm | Bin app/upgrades/{nextupgrade => v1.1.0}/upgrades.go | 3 ++- .../{nextupgrade => v1.1.0}/upgrades_test.go | 12 ++++++------ wasmbinding/message_plugin.go | 2 +- 6 files changed, 15 insertions(+), 13 deletions(-) rename app/upgrades/{nextupgrade => v1.1.0}/constants.go (93%) rename app/upgrades/{nextupgrade => v1.1.0}/testdata/neutron_interchain_txs.wasm (100%) rename app/upgrades/{nextupgrade => v1.1.0}/upgrades.go (99%) rename app/upgrades/{nextupgrade => v1.1.0}/upgrades_test.go (97%) diff --git a/app/app.go b/app/app.go index 1bdd4b5c5..0e59a76f2 100644 --- a/app/app.go +++ b/app/app.go @@ -22,8 +22,8 @@ import ( "github.com/neutron-org/neutron/docs" "github.com/neutron-org/neutron/app/upgrades" - "github.com/neutron-org/neutron/app/upgrades/nextupgrade" v044 "github.com/neutron-org/neutron/app/upgrades/v0.4.4" + "github.com/neutron-org/neutron/app/upgrades/v1.1.0" v3 "github.com/neutron-org/neutron/app/upgrades/v3" "github.com/neutron-org/neutron/x/cron" @@ -169,7 +169,7 @@ const ( ) var ( - Upgrades = []upgrades.Upgrade{v3.Upgrade, v044.Upgrade, nextupgrade.Upgrade} + Upgrades = []upgrades.Upgrade{v3.Upgrade, v044.Upgrade, v1_1_0.Upgrade} // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/v1.1.0/constants.go similarity index 93% rename from app/upgrades/nextupgrade/constants.go rename to app/upgrades/v1.1.0/constants.go index c6e0a35c9..463632392 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/v1.1.0/constants.go @@ -1,16 +1,17 @@ -package nextupgrade +package v1_1_0 import ( "github.com/cosmos/cosmos-sdk/store/types" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" - "github.com/neutron-org/neutron/app/upgrades" auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" + + "github.com/neutron-org/neutron/app/upgrades" ) const ( // UpgradeName defines the on-chain upgrade name. - UpgradeName = "Next-Upgrade" + UpgradeName = "v1.1.0" AtomDenom = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" AxelarUsdcDenom = "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349" ) diff --git a/app/upgrades/nextupgrade/testdata/neutron_interchain_txs.wasm b/app/upgrades/v1.1.0/testdata/neutron_interchain_txs.wasm similarity index 100% rename from app/upgrades/nextupgrade/testdata/neutron_interchain_txs.wasm rename to app/upgrades/v1.1.0/testdata/neutron_interchain_txs.wasm diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/v1.1.0/upgrades.go similarity index 99% rename from app/upgrades/nextupgrade/upgrades.go rename to app/upgrades/v1.1.0/upgrades.go index 79b3b7aaf..466db88f2 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -1,4 +1,4 @@ -package nextupgrade +package v1_1_0 import ( "fmt" @@ -7,6 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/neutron-org/neutron/app/params" "cosmossdk.io/math" diff --git a/app/upgrades/nextupgrade/upgrades_test.go b/app/upgrades/v1.1.0/upgrades_test.go similarity index 97% rename from app/upgrades/nextupgrade/upgrades_test.go rename to app/upgrades/v1.1.0/upgrades_test.go index bd4180a9c..86785dac6 100644 --- a/app/upgrades/nextupgrade/upgrades_test.go +++ b/app/upgrades/v1.1.0/upgrades_test.go @@ -1,4 +1,4 @@ -package nextupgrade_test +package v1_1_0_test import ( "testing" @@ -24,7 +24,7 @@ import ( globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" "github.com/stretchr/testify/suite" - "github.com/neutron-org/neutron/app/upgrades/nextupgrade" + "github.com/neutron-org/neutron/app/upgrades/v1.1.0" "github.com/neutron-org/neutron/testutil" ) @@ -80,7 +80,7 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)) upgrade := upgradetypes.Plan{ - Name: nextupgrade.UpgradeName, + Name: v1_1_0.UpgradeName, Info: "some text here", Height: 100, } @@ -126,7 +126,7 @@ func (suite *UpgradeTestSuite) TestRewardDenomsUpgrade() { suite.Require().Equal(denomsBefore, []string{params.DefaultDenom}) upgrade := upgradetypes.Plan{ - Name: nextupgrade.UpgradeName, + Name: v1_1_0.UpgradeName, Info: "some text here", Height: 100, } @@ -154,7 +154,7 @@ func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { suite.Require().Error(err) upgrade := upgradetypes.Plan{ - Name: nextupgrade.UpgradeName, + Name: v1_1_0.UpgradeName, Info: "some text here", Height: 100, } @@ -178,7 +178,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { contractAddressBeforeUpgrade := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1_ica"), codeIDBefore) upgrade := upgradetypes.Plan{ - Name: nextupgrade.UpgradeName, + Name: v1_1_0.UpgradeName, Info: "some text here", Height: 100, } diff --git a/wasmbinding/message_plugin.go b/wasmbinding/message_plugin.go index 09aac1336..808015814 100644 --- a/wasmbinding/message_plugin.go +++ b/wasmbinding/message_plugin.go @@ -315,7 +315,7 @@ func (m *CustomMessenger) submitAdminProposal(ctx sdk.Context, contractAddr sdk. if err != nil { return nil, nil, errors.Wrap(err, "invalid proposal quantity") } - // here we handle pre-nextupgrade style of proposals: param change, upgrade, client update + // here we handle pre-v1.1.0 style of proposals: param change, upgrade, client update if m.isLegacyProposal(adminProposal) { resp, err := m.performSubmitAdminProposalLegacy(ctx, contractAddr, adminProposal) if err != nil { From 92bd291ba48f7770452c99a0a490f4bb0256b572 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Nov 2023 15:26:51 +0200 Subject: [PATCH 250/307] rename package --- app/app.go | 4 ++-- app/upgrades/v1.1.0/constants.go | 2 +- app/upgrades/v1.1.0/upgrades.go | 2 +- app/upgrades/v1.1.0/upgrades_test.go | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/app.go b/app/app.go index 0e59a76f2..590d37529 100644 --- a/app/app.go +++ b/app/app.go @@ -23,7 +23,7 @@ import ( "github.com/neutron-org/neutron/app/upgrades" v044 "github.com/neutron-org/neutron/app/upgrades/v0.4.4" - "github.com/neutron-org/neutron/app/upgrades/v1.1.0" + v110 "github.com/neutron-org/neutron/app/upgrades/v1.1.0" v3 "github.com/neutron-org/neutron/app/upgrades/v3" "github.com/neutron-org/neutron/x/cron" @@ -169,7 +169,7 @@ const ( ) var ( - Upgrades = []upgrades.Upgrade{v3.Upgrade, v044.Upgrade, v1_1_0.Upgrade} + Upgrades = []upgrades.Upgrade{v3.Upgrade, v044.Upgrade, v110.Upgrade} // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string diff --git a/app/upgrades/v1.1.0/constants.go b/app/upgrades/v1.1.0/constants.go index 463632392..8fc8e6d94 100644 --- a/app/upgrades/v1.1.0/constants.go +++ b/app/upgrades/v1.1.0/constants.go @@ -1,4 +1,4 @@ -package v1_1_0 +package v110 import ( "github.com/cosmos/cosmos-sdk/store/types" diff --git a/app/upgrades/v1.1.0/upgrades.go b/app/upgrades/v1.1.0/upgrades.go index 466db88f2..a5d24d776 100644 --- a/app/upgrades/v1.1.0/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -1,4 +1,4 @@ -package v1_1_0 +package v110 import ( "fmt" diff --git a/app/upgrades/v1.1.0/upgrades_test.go b/app/upgrades/v1.1.0/upgrades_test.go index 86785dac6..114663527 100644 --- a/app/upgrades/v1.1.0/upgrades_test.go +++ b/app/upgrades/v1.1.0/upgrades_test.go @@ -1,4 +1,4 @@ -package v1_1_0_test +package v110_test import ( "testing" @@ -24,7 +24,7 @@ import ( globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" "github.com/stretchr/testify/suite" - "github.com/neutron-org/neutron/app/upgrades/v1.1.0" + v110 "github.com/neutron-org/neutron/app/upgrades/v1.1.0" "github.com/neutron-org/neutron/testutil" ) @@ -80,7 +80,7 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { suite.Require().True(globalFeeSubspace.Has(ctx, globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)) upgrade := upgradetypes.Plan{ - Name: v1_1_0.UpgradeName, + Name: v110.UpgradeName, Info: "some text here", Height: 100, } @@ -126,7 +126,7 @@ func (suite *UpgradeTestSuite) TestRewardDenomsUpgrade() { suite.Require().Equal(denomsBefore, []string{params.DefaultDenom}) upgrade := upgradetypes.Plan{ - Name: v1_1_0.UpgradeName, + Name: v110.UpgradeName, Info: "some text here", Height: 100, } @@ -154,7 +154,7 @@ func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { suite.Require().Error(err) upgrade := upgradetypes.Plan{ - Name: v1_1_0.UpgradeName, + Name: v110.UpgradeName, Info: "some text here", Height: 100, } @@ -178,7 +178,7 @@ func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { contractAddressBeforeUpgrade := suite.InstantiateTestContract(ctx, sdk.AccAddress("neutron1_ica"), codeIDBefore) upgrade := upgradetypes.Plan{ - Name: v1_1_0.UpgradeName, + Name: v110.UpgradeName, Info: "some text here", Height: 100, } From c248b083aa2f046702a67b140ec375e19716d739 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 14 Nov 2023 09:13:25 -0500 Subject: [PATCH 251/307] Update to pfm v7.1.0 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 52c19731c..de7366582 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.2-0.20231103132047-e5a274cf6fc2 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.0 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 From e1505680265f94b52b3e2289da0362c32e958440 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 14 Nov 2023 11:27:52 -0500 Subject: [PATCH 252/307] Fix test logic to account for PFM changes --- tests/ibc/gmp_swap_forward_test.go | 9 +++++---- tests/ibc/swap_forward_test.go | 12 +++++++----- tests/ibc/swap_test.go | 3 ++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index ba0c4f5d6..652e4f211 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -99,10 +99,11 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Check that the funds are moved out of the acc on providerChain s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - // Check that the amountIn is deducted from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) - // Check that neutron account did not keep any of the transfer denom - s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + // Check that the amountIn is deducted from the neutron override account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) + // Check that neutron override account did not keep any of the transfer denom + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 110d0e54b..070378e10 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -109,10 +109,11 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deducted from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) + // Check that the amountIn is deducted from the neutron overrid receiver account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) // Check that neutron account did not keep any of the transfer denom - s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, @@ -366,8 +367,9 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.Assert().NoError(err) s.coordinator.CommitBlock(s.neutronChain) - // Check that the amountIn is deducted from the neutron account - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount).Add(math.OneInt())) + // Check that the amountIn is deducted from the neutron override receiever account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.OneInt()) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index ae3f54d13..44e4c2be4 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -83,7 +83,8 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) // Check that all of the IBC transfer denom have been used up - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) } // TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Neutron running as a From 012034fd5c953882da0e71eed492735f93f1f3c3 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 15 Nov 2023 12:53:02 +0200 Subject: [PATCH 253/307] update admin-module version --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 4554067b1..16ba65528 100644 --- a/go.mod +++ b/go.mod @@ -191,7 +191,7 @@ replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.0 - github.com/cosmos/admin-module => github.com/neutron-org/admin-module v0.0.0-20231102080303-b3efc44ef5d9 + github.com/cosmos/admin-module => github.com/neutron-org/admin-module v1.0.0 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 diff --git a/go.sum b/go.sum index bb93f181f..c8e1b5c21 100644 --- a/go.sum +++ b/go.sum @@ -934,8 +934,8 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= -github.com/neutron-org/admin-module v0.0.0-20231102080303-b3efc44ef5d9 h1:46M72zk3g8Uff2i3Fl0Nl/vE/QVL2Fv+jfwqCYI2Ki0= -github.com/neutron-org/admin-module v0.0.0-20231102080303-b3efc44ef5d9/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= +github.com/neutron-org/admin-module v1.0.0 h1:mmX5U6jz4rX+lk8SB5Bx0Lsugu9bh4PCREMnVkLQoIs= +github.com/neutron-org/admin-module v1.0.0/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= github.com/neutron-org/cosmos-sdk v0.47.5 h1:BUBqUPI5I8rF9ql3RfSCo9XkpZBJPhTZSIWexyxutA4= github.com/neutron-org/cosmos-sdk v0.47.5/go.mod h1:3uZbdGpMOT5usEich5wHANLxz0VbKE9lL1PUq+rzkS4= github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbBUJc= From a13d3c13584a2f14b9ab2a9b5621e4f6ae4c960b Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 15 Nov 2023 18:06:08 +0200 Subject: [PATCH 254/307] proper tokenfactory params update --- app/upgrades/v1.1.0/upgrades.go | 1 + app/upgrades/v1.1.0/upgrades_test.go | 36 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/app/upgrades/v1.1.0/upgrades.go b/app/upgrades/v1.1.0/upgrades.go index 986e79527..c696599e0 100644 --- a/app/upgrades/v1.1.0/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -188,6 +188,7 @@ func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keepe var currParams tokenfactorytypes.Params subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationGasConsume, uint64(0)) + subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationFee, sdk.NewCoins()) subspace.GetParamSet(ctx, &currParams) if err := currParams.Validate(); err != nil { diff --git a/app/upgrades/v1.1.0/upgrades_test.go b/app/upgrades/v1.1.0/upgrades_test.go index 2af99a9bb..2507cdcb6 100644 --- a/app/upgrades/v1.1.0/upgrades_test.go +++ b/app/upgrades/v1.1.0/upgrades_test.go @@ -165,6 +165,42 @@ func (suite *UpgradeTestSuite) TestAdminModuleUpgrade() { suite.Require().Equal(uint64(1), id) } +func (suite *UpgradeTestSuite) TestTokenFactoryUpgrade() { + var ( + app = suite.GetNeutronZoneApp(suite.ChainA) + tokenFactorySubspace = app.GetSubspace(tokenfactorytypes.ModuleName) + ctx = suite.ChainA.GetContext() + ) + + var denomGasBefore uint64 + tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationGasConsume, &denomGasBefore) + suite.Require().Equal(denomGasBefore, uint64(0)) + + // emulate mainnet state + tokenFactorySubspace.Set(ctx, tokenfactorytypes.KeyDenomCreationFee, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(100_000_000)))) + + var denomFeeBefore sdk.Coins + tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationFee, &denomFeeBefore) + suite.Require().Equal(denomFeeBefore, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(100_000_000)))) + + upgrade := upgradetypes.Plan{ + Name: v110.UpgradeName, + Info: "some text here", + Height: 100, + } + app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade) + + var denomGas uint64 + tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationGasConsume, &denomGas) + requiredGasDenom := uint64(0) + suite.Require().Equal(requiredGasDenom, denomGas) + + var denomFee sdk.Coins + tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationFee, &denomFee) + requiredFeeDenom := sdk.NewCoins() + suite.Require().Equal(len(requiredFeeDenom), len(denomFee)) +} + func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { var ( app = suite.GetNeutronZoneApp(suite.ChainA) From e94fe0580134f9e5192c0dc0714d2b4ba18ce37a Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 16 Nov 2023 00:06:23 +0200 Subject: [PATCH 255/307] bump pfm to 7.1.1 --- app/app.go | 4 ++-- app/proposals_allowlisting.go | 3 +-- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/app.go b/app/app.go index d53280128..ae75a88b9 100644 --- a/app/app.go +++ b/app/app.go @@ -519,12 +519,12 @@ func New( app.RouterKeeper = pfmkeeper.NewKeeper( appCodec, app.keys[pfmtypes.StoreKey], - app.GetSubspace(pfmtypes.ModuleName), app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, &app.BankKeeper, app.IBCKeeper.ChannelKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) wasmHooks := ibchooks.NewWasmHooks(nil, sdk.GetConfig().GetBech32AccountAddrPrefix()) // The contract keeper needs to be set later app.HooksICS4Wrapper = ibchooks.NewICS4Middleware( @@ -716,7 +716,7 @@ func New( contractManagerModule := contractmanager.NewAppModule(appCodec, app.ContractManagerKeeper) ibcHooksModule := ibchooks.NewAppModule(app.AccountKeeper) - app.RouterModule = packetforward.NewAppModule(app.RouterKeeper) + app.RouterModule = packetforward.NewAppModule(app.RouterKeeper, app.GetSubspace(pfmtypes.ModuleName)) ibcStack := packetforward.NewIBCMiddleware( app.HooksTransferIBCModule, diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 064d3d3d3..96b155ce3 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -7,7 +7,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -103,5 +102,5 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware - {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + //{Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } diff --git a/go.mod b/go.mod index 16ba65528..ed457d3f1 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index c8e1b5c21..626d4a95e 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.0.1 h1:8mK4Ha/56P6jkRcLhIYhg/ipWhEuXBtj5O4I6fAi6vg= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1/go.mod h1:GGUJN4LnB3J1Luu4kxTklQLbW69So3QXUndSalB003s= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 h1:PqIK9vTr6zxCdQmrDZwxwL4KMAqg/GRGsiMEiaMP4wA= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= From 7bc333f426e86a780ed61f39054f89e4a29744e6 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 16 Nov 2023 00:07:48 +0200 Subject: [PATCH 256/307] fmt --- app/proposals_allowlisting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 96b155ce3..50913d27f 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -102,5 +102,5 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware - //{Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + // {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } From 009e80e7f96e05de7f5ac00d65d5f284ad0cdeb1 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 16 Nov 2023 23:13:13 +0200 Subject: [PATCH 257/307] whitelist dex stargate queries --- wasmbinding/stargate_allowlist.go | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 30f0843b2..392908493 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -8,6 +8,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types" + dextypes "github.com/neutron-org/neutron/x/dex/types" feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types" interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types" @@ -54,14 +55,23 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/neutron.feeburner.Query/Params": &feeburnertypes.QueryParamsResponse{}, // dex - "/neutron.dex.Query/Params": &dextypes.QueryParamsResponse{}, - "/neutron.dex.Query/LimitOrderTrancheUser": &dextypes.QueryGetLimitOrderTrancheUserResponse{}, - "/neutron.dex.Query/LimitOrderTranche": &dextypes.QueryGetLimitOrderTrancheResponse{}, - "/neutron.dex.Query/UserDepositsAll": &dextypes.QueryAllUserDepositsResponse{}, - "/neutron.dex.Query/UserLimitOrdersAll": &dextypes.QueryAllUserLimitOrdersResponse{}, - "/neutron.dex.Query/InactiveLimitOrderTranche": &dextypes.QueryGetInactiveLimitOrderTrancheResponse{}, - "/neutron.dex.Query/PoolReserves": &dextypes.QueryGetPoolReservesResponse{}, - "/neutron.dex.Query/EstimateMultiHopSwap": &dextypes.QueryEstimateMultiHopSwapResponse{}, - "/neutron.dex.Query/EstimatePlaceLimitOrder": &dextypes.QueryEstimatePlaceLimitOrderResponse{}, + "/neutron.dex.Query/Params": &dextypes.QueryParamsResponse{}, + "/neutron.dex.Query/LimitOrderTrancheUser": &dextypes.QueryGetLimitOrderTrancheUserResponse{}, + "/neutron.dex.Query/LimitOrderTrancheUserAll": &dextypes.QueryAllLimitOrderTrancheUserResponse{}, + "/neutron.dex.Query/LimitOrderTrancheUserAllByAddress": &dextypes.QueryAllUserLimitOrdersResponse{}, + "/neutron.dex.Query/LimitOrderTranche": &dextypes.QueryGetLimitOrderTrancheResponse{}, + "/neutron.dex.Query/UserDepositsAll": &dextypes.QueryAllUserDepositsResponse{}, + "/neutron.dex.Query/TickLiquidityAll": &dextypes.QueryAllTickLiquidityResponse{}, + "/neutron.dex.Query/UserLimitOrdersAll": &dextypes.QueryAllUserLimitOrdersResponse{}, + "/neutron.dex.Query/InactiveLimitOrderTranche": &dextypes.QueryGetInactiveLimitOrderTrancheResponse{}, + "/neutron.dex.Query/InactiveLimitOrderTrancheAll": &dextypes.QueryAllInactiveLimitOrderTrancheResponse{}, + "/neutron.dex.Query/PoolReservesAll": &dextypes.QueryAllPoolReservesResponse{}, + "/neutron.dex.Query/PoolReserves": &dextypes.QueryGetPoolReservesResponse{}, + "/neutron.dex.Query/EstimateMultiHopSwap": &dextypes.QueryEstimateMultiHopSwapResponse{}, + "/neutron.dex.Query/EstimatePlaceLimitOrder": &dextypes.QueryEstimatePlaceLimitOrderResponse{}, + "/neutron.dex.Query/Pool": &dextypes.QueryPoolResponse{}, + "/neutron.dex.Query/PoolByID": &dextypes.QueryPoolResponse{}, + "/neutron.dex.Query/PoolMetadata": &dextypes.QueryGetPoolMetadataResponse{}, + "/neutron.dex.Query/PoolMetadataAll": &dextypes.QueryAllPoolMetadataResponse{}, } } From 739f1aae9e904c13c26d3e4024a069564f872d2c Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 16 Nov 2023 23:39:42 +0200 Subject: [PATCH 258/307] /neutron.dex.Query/LimitOrderTrancheAll query --- wasmbinding/stargate_allowlist.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 392908493..66216a0b1 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -60,6 +60,7 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/neutron.dex.Query/LimitOrderTrancheUserAll": &dextypes.QueryAllLimitOrderTrancheUserResponse{}, "/neutron.dex.Query/LimitOrderTrancheUserAllByAddress": &dextypes.QueryAllUserLimitOrdersResponse{}, "/neutron.dex.Query/LimitOrderTranche": &dextypes.QueryGetLimitOrderTrancheResponse{}, + "/neutron.dex.Query/LimitOrderTrancheAll": &dextypes.QueryAllLimitOrderTrancheResponse{}, "/neutron.dex.Query/UserDepositsAll": &dextypes.QueryAllUserDepositsResponse{}, "/neutron.dex.Query/TickLiquidityAll": &dextypes.QueryAllTickLiquidityResponse{}, "/neutron.dex.Query/UserLimitOrdersAll": &dextypes.QueryAllUserLimitOrdersResponse{}, From d5a6f7b5851041dc7feddf1a7b1eb51e929906dd Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 16 Nov 2023 21:01:43 -0500 Subject: [PATCH 259/307] Revert "Merge pull request #359 from neutron-org/fix/ibc-_swap_pfm_issues" This reverts commit 798bb43a453038f8a9b0c1dfb8bcf3731fd851e3, reversing changes made to 483f875f12d28b3aaaf304194cc926de0fccf0c4. --- tests/ibc/gmp_swap_forward_test.go | 8 +- tests/ibc/ibc_setup_test.go | 16 --- tests/ibc/swap_forward_test.go | 191 ++++++----------------------- tests/ibc/swap_test.go | 53 +++++++- x/ibcswap/ibc_middleware.go | 163 ++++++++---------------- x/ibcswap/keeper/keeper.go | 5 +- x/ibcswap/types/swap.go | 23 +--- x/ibcswap/types/swap_test.go | 6 +- 8 files changed, 152 insertions(+), 313 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 8199afe7c..b35866c44 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/neutron-org/neutron/x/dex/types" @@ -42,12 +42,12 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), + Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index 827920bf2..e3df4b424 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -6,7 +6,6 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -326,14 +325,6 @@ func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, ex s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) } -func (s *IBCTestSuite) ReceiverOverrideAddr(channel, sender string) sdk.AccAddress { - addr, err := packetforward.GetReceiver(channel, sender) - if err != nil { - panic("Cannot calc receiver override: " + err.Error()) - } - return sdk.MustAccAddressFromBech32(addr) -} - //nolint:unparam // keep this flexible even if we aren't currently using all the params func (s *IBCTestSuite) neutronDeposit( token0 string, @@ -364,18 +355,11 @@ func (s *IBCTestSuite) neutronDeposit( func (s *IBCTestSuite) RelayAllPacketsAToB(path *icsibctesting.Path) error { sentPackets := path.EndpointA.Chain.SentPackets - chainB := path.EndpointB.Chain if len(sentPackets) == 0 { return fmt.Errorf("No packets to send") } for _, packet := range sentPackets { - // Skip if packet has already been sent - ack, _ := chainB.App.GetIBCKeeper().ChannelKeeper. - GetPacketAcknowledgement(chainB.GetContext(), packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence()) - if ack != nil { - continue - } err := path.RelayPacket(packet) if err != nil { return err diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 41f643de6..9f177a834 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/iancoleman/orderedmap" "golang.org/x/exp/maps" @@ -53,12 +53,12 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { retries := uint8(0) - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), + Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -123,6 +123,8 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { // Check that the funds are now present in the acc on chainB s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) + + s.Assert().NoError(err) } func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { @@ -166,26 +168,26 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() retries := uint8(0) - nextForward := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + nextForward := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: chainCAddr.String(), Port: s.chainBChainCPath.EndpointA.ChannelConfig.PortID, Channel: s.chainBChainCPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), + Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, } nextForwardBz, err := json.Marshal(nextForward) s.Assert().NoError(err) - nextForwardJSON := pfmtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) + nextForwardJSON := forwardtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), + Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nextForwardJSON, }, @@ -298,12 +300,12 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { retries := uint8(0) - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: s.providerAddr.String(), Port: s.neutronTransferPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronTransferPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), + Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -334,29 +336,11 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) - // Transfer native denom from neutron to provider - s.IBCTransfer( - s.neutronTransferPath, - s.neutronTransferPath.EndpointA, - s.neutronAddr, - s.providerAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronTransferPath.EndpointB.ChannelID, - nativeDenom, - ) - transferDenomNeutronProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - s.assertProviderBalance(s.providerAddr, transferDenomNeutronProvider, ibcTransferAmount) - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata s.IBCTransferProviderToNeutron( s.providerAddr, s.neutronAddr, - transferDenomNeutronProvider, + nativeDenom, ibcTransferAmount, string(metadataBz), ) @@ -366,18 +350,23 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.Assert().NoError(err) s.coordinator.CommitBlock(s.neutronChain) + // Check that the amountIn is deduced from the neutron account + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) + // Check that the amountIn has been deducted from the neutron chain + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, nativeDenom, - newProviderBalNative.Add(expectedAmountOut), + newProviderBalNative.Sub(ibcTransferAmount).Add(expectedAmountOut), ) + + s.Assert().NoError(err) } -// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case -// that an incoming IBC swap succeeds but the forward fails when a NeutronRefundAddress is provided. -// The swap will be reverted and the transferred amount will be credited to the refundAddr -func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { +// TestSwapAndForward_ForwardFails asserts that the swap and forward middleware stack works as intended in the case +// that an incoming IBC swap succeeds but the forward fails. +func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token s.IBCTransferProviderToNeutron( s.providerAddr, @@ -411,16 +400,17 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) + expectedAmountOut := math.NewInt(99990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + forwardMetadata := forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: "invalid-channel", // add an invalid channel identifier so the forward fails - Timeout: pfmtypes.Duration(5 * time.Minute), + Timeout: forwardtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -433,7 +423,6 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { err = json.Unmarshal(bz, nextJSON) s.Assert().NoError(err) - refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ @@ -445,8 +434,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { TickIndexInToOut: 2, OrderType: types.LimitOrderType_FILL_OR_KILL, }, - NeutronRefundAddress: refundAddr.String(), - Next: nextJSON, + Next: nextJSON, }, } @@ -474,13 +462,14 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that nothing remains in the overrideReceiver account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - - // Check that the swap was reverted and the transfer amount is in the refundAddr - s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) + // Check that the amountIn is deduced from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + // Check that the amountOut stays on the neutronchain + s.assertNeutronBalance( + s.neutronAddr, + nativeDenom, + postDepositNeutronBalNative.Add(expectedAmountOut), + ) // Check that nothing made it to chainB transferDenomPath := transfertypes.GetPrefixedDenom( @@ -492,103 +481,3 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) } - -// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case -// that an incoming IBC swap succeeds but the forward fails when no NeutronRefundAddress is provided. -// The swap will be reverted and a refund to the src chain will take place. -func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { - // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - - // Assert that the funds are gone from the acc on provider and present in the acc on Neutron - newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // deposit stake<>ibcTransferToken to initialize the pool on Neutron - depositAmount := math.NewInt(100_000) - s.neutronDeposit( - nativeDenom, - s.providerToNeutronDenom, - depositAmount, - depositAmount, - 0, - 1, - s.neutronAddr) - - // Assert that the deposit was successful and the funds are moved out of the Neutron user acc - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - - // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := math.NewInt(100000) - chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - - retries := uint8(0) - - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainBAddr.String(), - Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, - Channel: "invalid-channel", // add an invalid channel identifier so the forward fails - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - - bz, err := json.Marshal(forwardMetadata) - s.Assert().NoError(err) - - nextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(bz, nextJSON) - s.Assert().NoError(err) - - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 2, - OrderType: types.LimitOrderType_FILL_OR_KILL, - }, - Next: nextJSON, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - // Relay the packets from neutron => ChainB - err = s.RelayAllPacketsAToB(s.neutronChainBPath) - // Relay Fails - s.Assert().Error(err) - - // Check that nothing remains in the overrideReceiver account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - - // Check that the refund takes place and the funds are moved back to the account on Gaia - s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(depositAmount)) -} diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index 8c7ac2432..a7cf723af 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -102,7 +102,8 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { TickIndexInToOut: 1, OrderType: dextypes.LimitOrderType_FILL_OR_KILL, }, - Next: nil, + NonRefundable: false, + Next: nil, }, } @@ -126,6 +127,51 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) } +// TestIBCSwapMiddleware_FailNoRefund asserts that the IBC swap middleware works as intended with Neutron running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron. +func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { + // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair + swapAmount := math.NewInt(100000) + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 1, + OrderType: dextypes.LimitOrderType_FILL_OR_KILL, + }, + NonRefundable: true, + Next: nil, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send (failing) IBC transfer with swap metadata + s.IBCTransferProviderToNeutron( + s.providerAddr, + s.neutronAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Check that the funds are present in the account on Neutron + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + + // Check that no refund takes place and the funds are not in the account on provider + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) +} + +// TestIBCSwapMiddleware_FailWithRefundAddr asserts that the IBC swap middleware works as intended with Neutron running as a +// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron but be moved +// to the refund address. + func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() @@ -141,8 +187,9 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { TickIndexInToOut: 1, OrderType: dextypes.LimitOrderType_FILL_OR_KILL, }, - NeutronRefundAddress: refundAddr.String(), - Next: nil, + RefundAddress: refundAddr.String(), + NonRefundable: true, + Next: nil, }, } diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index df315b06e..3829378ec 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -3,15 +3,13 @@ package ibcswap import ( "context" "encoding/json" - "errors" "strings" sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -112,15 +110,6 @@ func (im IBCMiddleware) OnChanCloseConfirm(ctx sdk.Context, portID, channelID st // OnRecvPacket checks the memo field on this packet and if the metadata inside's root key indicates this packet // should be handled by the swap middleware it attempts to perform a swap. If the swap is successful // the underlying application's OnRecvPacket callback is invoked. - -// For clarity, here is a breakdown of the steps -// 1. Check if this is a swap packet; if not pass it to next middleware -// 2. validate swapMetadata; ErrAck if invalid -// 3. Pass through the middleware stack to ibc-go/transfer#OnRecvPacket; transfer coins are sent to receiver -// 4. Do swap; handle failures -// 5. If no PFM is present we are done; return ack -// 6. Unpack packet so that it is a valid PFM packet and set required context variables -// 7. Pass through middleware stack again where the forward is handled by packet-forward-middleware#OnRecvPacket func (im IBCMiddleware) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, @@ -139,44 +128,37 @@ func (im IBCMiddleware) OnRecvPacket( } metadata := m.Swap - if err := metadata.Validate(); err != nil { return channeltypes.NewErrorAcknowledgement(err) } - if err := validateSwapPacket(packet, data, *metadata); err != nil { - return channeltypes.NewErrorAcknowledgement(err) - } - - // Use overrideReceiver so that users cannot ibcswap through arbitrary addresses. - // Instead generate a unique address for each user based on their channel and origin-address - overrideReceiver, err := packetforward.GetReceiver(packet.DestinationChannel, data.Sender) - if err != nil { - return channeltypes.NewErrorAcknowledgement(err) - } - metadata.Creator = overrideReceiver - // Update packet data to match the new receiver so that transfer middleware adds tokens to the expected address - packet = newPacketWithOverrideReceiver(packet, data, overrideReceiver) - if metadata.ContainsPFM() { - // If we are using PFM change receiver to the expected address for forwarding - metadata.Receiver = overrideReceiver - } + // Compose our context with values that will be used to pass through to the forward middleware + ctxWithForwardFlags := context.WithValue(ctx.Context(), forwardtypes.ProcessedKey{}, true) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + forwardtypes.NonrefundableKey{}, + true, + ) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + forwardtypes.DisableDenomCompositionKey{}, + true, + ) + wrappedSdkCtx := ctx.WithContext(ctxWithForwardFlags) - ack := im.app.OnRecvPacket(ctx, packet, relayer) + ack := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) if ack == nil || !ack.Success() { return ack } - // Attempt to perform a swap using a cacheCtx - cacheCtx, writeCache := ctx.CacheContext() - res, err := im.keeper.Swap(cacheCtx, metadata.MsgPlaceLimitOrder) + // Attempt to perform a swap since this packets memo included swap metadata. + res, err := im.keeper.Swap(ctx, metadata.MsgPlaceLimitOrder) if err != nil { return im.handleFailedSwap(ctx, packet, data, metadata, err) } // If there is no next field set in the metadata return ack if metadata.Next == nil { - writeCache() return ack } @@ -187,46 +169,30 @@ func (im IBCMiddleware) OnRecvPacket( return ack } - postSwapData := data - postSwapData.Memo = string(memoBz) + data.Memo = string(memoBz) // Override the packet data to include the token denom and amount that was received from the swap. - postSwapData.Denom = res.TakerCoinOut.Denom - postSwapData.Amount = res.TakerCoinOut.Amount.String() + data.Denom = res.TakerCoinOut.Denom + data.Amount = res.TakerCoinOut.Amount.String() // After a successful swap funds are now in the receiver account from the MsgPlaceLimitOrder so, // we need to override the packets receiver field before invoking the forward middlewares OnRecvPacket. - postSwapData.Receiver = m.Swap.Receiver + data.Receiver = m.Swap.Receiver - dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&postSwapData) + dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&data) if err != nil { return ack } packet.Data = dataBz - // Compose our context with values that will be used to pass through to the forward middleware - ctxWithForwardFlags := context.WithValue(cacheCtx.Context(), pfmtypes.ProcessedKey{}, true) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - pfmtypes.NonrefundableKey{}, - true, - ) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - pfmtypes.DisableDenomCompositionKey{}, - true, - ) - wrappedSdkCtx := cacheCtx.WithContext(ctxWithForwardFlags) - // The forward middleware should return a nil ack if the forward is initiated properly. // If not an error occurred, and we return the original ack. newAck := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) if newAck != nil { - return im.handleFailedSwap(ctx, packet, data, metadata, errors.New(string(newAck.Acknowledgement()))) + return ack } - writeCache() return nil } @@ -307,29 +273,38 @@ func (im IBCMiddleware) handleFailedSwap( "AmountIn", metadata.AmountIn, "TickIndexInToOut", metadata.TickIndexInToOut, "OrderType", metadata.OrderType, - "refund address", metadata.NeutronRefundAddress, + "refundable", metadata.NonRefundable, + "refund address", metadata.RefundAddress, ) // The current denom is from the sender chains perspective, we need to compose the appropriate denom for this side - denomOnThisChain := getDenomForThisChain(packet, data.Denom) + denomOnThisChain := getDenomForThisChain( + packet.DestinationPort, packet.DestinationChannel, + packet.SourcePort, packet.SourceChannel, + data.Denom, + ) - if len(metadata.NeutronRefundAddress) != 0 { - return im.handleOnChainRefund(ctx, data, metadata, denomOnThisChain, err) + if metadata.NonRefundable { + return im.handleNoRefund(ctx, data, metadata, denomOnThisChain, err) } - return im.handleIBCRefund(ctx, packet, data, metadata, denomOnThisChain, err) + return im.handleRefund(ctx, packet, data, denomOnThisChain, err) } -// handleOnChainRefund will compose a successful ack to send back to the counterparty chain containing any error messages. +// handleNoRefund will compose a successful ack to send back to the counterparty chain containing any error messages. // Returning a successful ack ensures that a refund is not issued on the counterparty chain. // See: https://github.com/cosmos/ibc-go/blob/3ecc7dd3aef5790ec5d906936a297b34adf1ee41/modules/apps/transfer/keeper/relay.go#L320 -func (im IBCMiddleware) handleOnChainRefund( +func (im IBCMiddleware) handleNoRefund( ctx sdk.Context, data transfertypes.FungibleTokenPacketData, metadata *types.SwapMetadata, newDenom string, swapErr error, ) ibcexported.Acknowledgement { + if metadata.RefundAddress == "" { + return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) + } + amount, ok := math.NewIntFromString(data.Amount) if !ok { wrappedErr := sdkerrors.Wrapf( @@ -342,7 +317,7 @@ func (im IBCMiddleware) handleOnChainRefund( } token := sdk.NewCoin(newDenom, amount) - err := im.keeper.SendCoins(ctx, metadata.Creator, metadata.NeutronRefundAddress, sdk.NewCoins(token)) + err := im.keeper.SendCoins(ctx, data.Receiver, metadata.RefundAddress, sdk.NewCoins(token)) if err != nil { wrappedErr := sdkerrors.Wrap(err, "failed to move funds to refund address") wrappedErr = sdkerrors.Wrap(swapErr, wrappedErr.Error()) @@ -352,20 +327,19 @@ func (im IBCMiddleware) handleOnChainRefund( return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) } -// handleIBCRefund will either burn or transfer the funds back to the appropriate escrow account. +// handleRefund will either burn or transfer the funds back to the appropriate escrow account. // When a packet comes in the transfer module's OnRecvPacket callback is invoked which either // mints or unescrows funds on this side so if the swap fails an explicit refund is required. -func (im IBCMiddleware) handleIBCRefund( +func (im IBCMiddleware) handleRefund( ctx sdk.Context, packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, - metadata *types.SwapMetadata, newDenom string, swapErr error, ) ibcexported.Acknowledgement { data.Denom = newDenom - err := im.keeper.RefundPacketToken(ctx, packet, data, metadata) + err := im.keeper.RefundPacketToken(ctx, packet, data) if err != nil { wrappedErr := sdkerrors.Wrap(swapErr, err.Error()) @@ -379,8 +353,10 @@ func (im IBCMiddleware) handleIBCRefund( // getDenomForThisChain composes a new token denom by either unwinding or prefixing the specified token denom appropriately. // This is necessary because the token denom in the packet data is from the perspective of the counterparty chain. -func getDenomForThisChain(packet channeltypes.Packet, denom string) string { - counterpartyPrefix := transfertypes.GetDenomPrefix(packet.SourcePort, packet.SourceChannel) +func getDenomForThisChain( + port, channel, counterpartyPort, counterpartyChannel, denom string, +) string { + counterpartyPrefix := transfertypes.GetDenomPrefix(counterpartyPort, counterpartyChannel) if strings.HasPrefix(denom, counterpartyPrefix) { // unwind denom unwoundDenom := denom[len(counterpartyPrefix):] @@ -394,49 +370,6 @@ func getDenomForThisChain(packet channeltypes.Packet, denom string) string { } // append port and channel from this chain to denom - prefixedDenom := transfertypes.GetDenomPrefix(packet.DestinationPort, packet.DestinationChannel) + denom + prefixedDenom := transfertypes.GetDenomPrefix(port, channel) + denom return transfertypes.ParseDenomTrace(prefixedDenom).IBCDenom() } - -// Update the packet data to reflect the new receiver address that is used by the PFM -func newPacketWithOverrideReceiver(oldPacket channeltypes.Packet, data transfertypes.FungibleTokenPacketData, overrideReceiver string) channeltypes.Packet { - overrideData := transfertypes.FungibleTokenPacketData{ - Denom: data.Denom, - Amount: data.Amount, - Sender: data.Sender, - Receiver: overrideReceiver, // override receiver - } - overrideDataBz := transfertypes.ModuleCdc.MustMarshalJSON(&overrideData) - - return channeltypes.Packet{ - Sequence: oldPacket.Sequence, - SourcePort: oldPacket.SourcePort, - SourceChannel: oldPacket.SourceChannel, - DestinationPort: oldPacket.DestinationPort, - DestinationChannel: oldPacket.DestinationChannel, - Data: overrideDataBz, // override data - TimeoutHeight: oldPacket.TimeoutHeight, - TimeoutTimestamp: oldPacket.TimeoutTimestamp, - } -} - -func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.FungibleTokenPacketData, sm types.SwapMetadata) error { - denomOnNeutron := getDenomForThisChain(packet, transferData.Denom) - if denomOnNeutron != sm.TokenIn { - return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer Denom must match TokenIn") - } - - transferAmount, ok := math.NewIntFromString(transferData.Amount) - if !ok { - return sdkerrors.Wrapf( - transfertypes.ErrInvalidAmount, - "unable to parse transfer amount (%s) into math.Int", - transferData.Amount, - ) - } - - if transferAmount.LT(sm.AmountIn) { - return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be <= AmountIn") - } - return nil -} diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index e3f48b3d0..3902568b5 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -113,7 +113,6 @@ func (k Keeper) RefundPacketToken( ctx sdk.Context, packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, - metadata *types.SwapMetadata, ) error { // parse the denomination from the full denom path trace := transfertypes.ParseDenomTrace(data.Denom) @@ -129,8 +128,8 @@ func (k Keeper) RefundPacketToken( } token := sdk.NewCoin(trace.IBCDenom(), transferAmount) - // decode the creator address - receiver, err := sdk.AccAddressFromBech32(metadata.Creator) + // decode the receiver address + receiver, err := sdk.AccAddressFromBech32(data.Receiver) if err != nil { return err } diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go index 3c4965db9..57e9faf5e 100644 --- a/x/ibcswap/types/swap.go +++ b/x/ibcswap/types/swap.go @@ -20,11 +20,8 @@ type PacketMetadata struct { // further in the middleware stack or on the counterparty. type SwapMetadata struct { *dextypes.MsgPlaceLimitOrder - NonRefundable bool `json:"non-refundable,omitempty"` - // If a value is provided for NeutronRefundAddress and the swap fails the Transfer.Amount will be moved to this address for later recovery. - // If no NeutronRefundAddress is provided and a swap fails we will fail the ibc transfer and tokens will be refunded on the source chain. - - NeutronRefundAddress string `json:"refund-address,omitempty"` + NonRefundable bool `json:"non-refundable,omitempty"` + RefundAddress string `json:"refund-address,omitempty"` // Using JSONObject so that objects for next property will not be mutated by golang's lexicographic key sort on map keys during Marshal. // Supports primitives for Unmarshal/Marshal so that an escaped JSON-marshaled string is also valid. @@ -42,10 +39,10 @@ func (sm SwapMetadata) Validate() error { if sm.TokenOut == "" { return sdkerrors.Wrap(ErrInvalidSwapMetadata, "limit order tokenOut cannot be an empty string") } - if sm.NeutronRefundAddress != "" { - _, err := sdk.AccAddressFromBech32(sm.NeutronRefundAddress) + if sm.RefundAddress != "" { + _, err := sdk.AccAddressFromBech32(sm.RefundAddress) if err != nil { - return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.NeutronRefundAddress) + return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.RefundAddress) } } @@ -56,16 +53,6 @@ func (sm SwapMetadata) Validate() error { return nil } -// ContainsPFM checks if the Swapetadata is wrapping packet-forward-middleware -func (sm SwapMetadata) ContainsPFM() bool { - if sm.Next == nil { - return false - } - forward, _ := sm.Next.orderedMap.Get("forward") - - return forward != nil -} - // JSONObject is a wrapper type to allow either a primitive type or a JSON object. // In the case the value is a JSON object, OrderedMap type is used so that key order // is retained across Unmarshal/Marshal. diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go index b341bb394..c4f4c468f 100644 --- a/x/ibcswap/types/swap_test.go +++ b/x/ibcswap/types/swap_test.go @@ -5,7 +5,7 @@ import ( "testing" "cosmossdk.io/math" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" "github.com/iancoleman/orderedmap" "github.com/stretchr/testify/require" @@ -41,8 +41,8 @@ func TestPacketMetadata_Marshal(t *testing.T) { // TestPacketMetadata_MarshalWithNext asserts that the marshaling of the swap metadata works as intended with next field initialized. func TestPacketMetadata_MarshalWithNext(t *testing.T) { - forwardMedata := &pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ + forwardMedata := &forwardtypes.PacketMetadata{ + Forward: &forwardtypes.ForwardMetadata{ Receiver: "cosmos14zde8usc4ur04y3aqnufzzmv2uqdpwwttr5uwv", Port: "transfer", Channel: "channel-0", From 72ee33aa95deb377b8593c3c137c5990f45c40de Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 16 Nov 2023 21:08:23 -0500 Subject: [PATCH 260/307] Revert "Merge pull request #369 from neutron-org/chore/bump-pfm-again" This reverts commit 3765f6e71870c8f0f1b3f163ef5e8a634351c4c9, reversing changes made to 3ee6217d485f6e818b2db7c9ad94869d1b8e0eba. --- app/app.go | 4 ++-- app/proposals_allowlisting.go | 3 ++- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/app.go b/app/app.go index 2123aafe8..781739738 100644 --- a/app/app.go +++ b/app/app.go @@ -534,12 +534,12 @@ func New( app.PFMKeeper = pfmkeeper.NewKeeper( appCodec, app.keys[pfmtypes.StoreKey], + app.GetSubspace(pfmtypes.ModuleName), app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, &app.BankKeeper, app.IBCKeeper.ChannelKeeper, - authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) wasmHooks := ibchooks.NewWasmHooks(nil, sdk.GetConfig().GetBech32AccountAddrPrefix()) // The contract keeper needs to be set later app.HooksICS4Wrapper = ibchooks.NewICS4Middleware( @@ -750,7 +750,7 @@ func New( contractManagerModule := contractmanager.NewAppModule(appCodec, app.ContractManagerKeeper) ibcHooksModule := ibchooks.NewAppModule(app.AccountKeeper) - app.PFMModule = packetforward.NewAppModule(app.PFMKeeper, app.GetSubspace(pfmtypes.ModuleName)) + app.RouterModule = packetforward.NewAppModule(app.RouterKeeper) var ibcStack ibcporttypes.IBCModule = packetforward.NewIBCMiddleware( app.HooksTransferIBCModule, diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 3a00c7391..90d63c99f 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -7,6 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -104,5 +105,5 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware - // {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } diff --git a/go.mod b/go.mod index 467aaaa2b..73db24cc2 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index 626d4a95e..c8e1b5c21 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.1.1 h1:PqIK9vTr6zxCdQmrDZwxwL4KMAqg/GRGsiMEiaMP4wA= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 h1:8mK4Ha/56P6jkRcLhIYhg/ipWhEuXBtj5O4I6fAi6vg= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1/go.mod h1:GGUJN4LnB3J1Luu4kxTklQLbW69So3QXUndSalB003s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= From 70f288401b7651b5a7ab4fcea176ea77f8aaf480 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 16 Nov 2023 21:35:54 -0500 Subject: [PATCH 261/307] Revert "bump pfm to the latest release" This reverts commit 1ffecd060b4306212f5c6c011d80a80c0864ec31. --- app/app.go | 41 +++++++++++++++--------------- app/proposals_allowlisting.go | 2 +- go.mod | 3 ++- go.sum | 5 ++-- tests/ibc/gmp_swap_forward_test.go | 2 +- tests/ibc/swap_forward_test.go | 2 +- x/ibcswap/ibc_middleware.go | 2 +- x/ibcswap/types/swap_test.go | 2 +- 8 files changed, 30 insertions(+), 29 deletions(-) diff --git a/app/app.go b/app/app.go index 781739738..5219bccb5 100644 --- a/app/app.go +++ b/app/app.go @@ -9,7 +9,8 @@ import ( "path/filepath" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router" + "github.com/cosmos/interchain-security/v3/testutil/integration" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -146,8 +147,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - pfmkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" + routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" "github.com/neutron-org/neutron/x/dex" dexkeeper "github.com/neutron-org/neutron/x/dex/keeper" @@ -224,7 +225,7 @@ var ( ), ), ibchooks.AppModuleBasic{}, - packetforward.AppModuleBasic{}, + router.AppModuleBasic{}, auction.AppModuleBasic{}, globalfee.AppModule{}, dex.AppModuleBasic{}, @@ -309,11 +310,11 @@ type App struct { ConsumerKeeper ccvconsumerkeeper.Keeper TokenFactoryKeeper *tokenfactorykeeper.Keeper CronKeeper cronkeeper.Keeper - PFMKeeper *pfmkeeper.Keeper + PFMKeeper *routerkeeper.Keeper DexKeeper dexkeeper.Keeper SwapKeeper ibcswapkeeper.Keeper - PFMModule packetforward.AppModule + RouterModule router.AppModule HooksTransferIBCModule *ibchooks.IBCMiddleware HooksICS4Wrapper ibchooks.ICS4Middleware @@ -395,7 +396,7 @@ func New( evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, - feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, pfmtypes.StoreKey, + feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, dextypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -531,10 +532,10 @@ func New( feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) // PFMKeeper must be created before TransferKeeper - app.PFMKeeper = pfmkeeper.NewKeeper( + app.PFMKeeper = routerkeeper.NewKeeper( appCodec, - app.keys[pfmtypes.StoreKey], - app.GetSubspace(pfmtypes.ModuleName), + app.keys[routertypes.StoreKey], + app.GetSubspace(routertypes.ModuleName), app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, @@ -750,14 +751,14 @@ func New( contractManagerModule := contractmanager.NewAppModule(appCodec, app.ContractManagerKeeper) ibcHooksModule := ibchooks.NewAppModule(app.AccountKeeper) - app.RouterModule = packetforward.NewAppModule(app.RouterKeeper) + app.RouterModule = router.NewAppModule(app.PFMKeeper) - var ibcStack ibcporttypes.IBCModule = packetforward.NewIBCMiddleware( + var ibcStack ibcporttypes.IBCModule = router.NewIBCMiddleware( app.HooksTransferIBCModule, app.PFMKeeper, 0, - pfmkeeper.DefaultForwardTransferPacketTimeoutTimestamp, - pfmkeeper.DefaultRefundTransferPacketTimeoutTimestamp, + routerkeeper.DefaultForwardTransferPacketTimeoutTimestamp, + routerkeeper.DefaultRefundTransferPacketTimeoutTimestamp, ) ibcStack = ibcswap.NewIBCMiddleware(ibcStack, app.SwapKeeper) @@ -798,7 +799,7 @@ func New( transferModule, consumerModule, icaModule, - app.PFMModule, + app.RouterModule, interchainQueriesModule, interchainTxsModule, feeModule, @@ -845,7 +846,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - pfmtypes.ModuleName, + routertypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -878,7 +879,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - pfmtypes.ModuleName, + routertypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -918,7 +919,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, // after auth keeper - pfmtypes.ModuleName, + routertypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -946,7 +947,7 @@ func New( transferModule, consumerModule, icaModule, - app.PFMModule, + app.RouterModule, interchainQueriesModule, interchainTxsModule, feeBurnerModule, @@ -1288,7 +1289,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) - paramsKeeper.Subspace(pfmtypes.ModuleName).WithKeyTable(pfmtypes.ParamKeyTable()) + paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) paramsKeeper.Subspace(globalfee.ModuleName).WithKeyTable(globalfeetypes.ParamKeyTable()) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 90d63c99f..007a6d2cb 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" diff --git a/go.mod b/go.mod index 73db24cc2..689dd9625 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,8 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1 + // TEMP: Using this version to support duality swap-and-forward + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index c8e1b5c21..caa8c5cf0 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.0.1 h1:8mK4Ha/56P6jkRcLhIYhg/ipWhEuXBtj5O4I6fAi6vg= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.1/go.mod h1:GGUJN4LnB3J1Luu4kxTklQLbW69So3QXUndSalB003s= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 h1:iFWb/KrnP5jthNZ23l72wqE8nzHJHzoVe22giUfJce8= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= @@ -1203,7 +1203,6 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index b35866c44..bc188d290 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/neutron-org/neutron/x/dex/types" diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 9f177a834..33d382bd6 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/iancoleman/orderedmap" "golang.org/x/exp/maps" diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 3829378ec..c5ceccc8d 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -9,7 +9,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go index c4f4c468f..87f7107d8 100644 --- a/x/ibcswap/types/swap_test.go +++ b/x/ibcswap/types/swap_test.go @@ -5,7 +5,7 @@ import ( "testing" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" "github.com/iancoleman/orderedmap" "github.com/stretchr/testify/require" From a43c2e89882fc8ae6acc87e0c3a2d03a42368ffc Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 16 Nov 2023 21:49:20 -0500 Subject: [PATCH 262/307] Add validation for ibcSwap to ensure transfer receiver is sender also ensure that swap amount <= transferAmount --- x/ibcswap/ibc_middleware.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index c5ceccc8d..262baee59 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -132,6 +132,10 @@ func (im IBCMiddleware) OnRecvPacket( return channeltypes.NewErrorAcknowledgement(err) } + if err := validateSwapPacket(packet, data, *metadata); err != nil { + return channeltypes.NewErrorAcknowledgement(err) + } + // Compose our context with values that will be used to pass through to the forward middleware ctxWithForwardFlags := context.WithValue(ctx.Context(), forwardtypes.ProcessedKey{}, true) ctxWithForwardFlags = context.WithValue( @@ -373,3 +377,34 @@ func getDenomForThisChain( prefixedDenom := transfertypes.GetDenomPrefix(port, channel) + denom return transfertypes.ParseDenomTrace(prefixedDenom).IBCDenom() } + +func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.FungibleTokenPacketData, sm types.SwapMetadata) error { + denomOnNeutron := getDenomForThisChain( + packet.DestinationPort, + packet.DestinationChannel, + packet.SourcePort, + packet.SourceChannel, + transferData.Denom, + ) + if denomOnNeutron != sm.TokenIn { + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer Denom must match TokenIn") + } + + transferAmount, ok := math.NewIntFromString(transferData.Amount) + if !ok { + return sdkerrors.Wrapf( + transfertypes.ErrInvalidAmount, + "unable to parse transfer amount (%s) into math.Int", + transferData.Amount, + ) + } + + if transferAmount.LT(sm.AmountIn) { + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be >= AmountIn") + } + + if transferData.Receiver != sm.Creator || transferData.Receiver != sm.Receiver { + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer receiver must equal swap Creator and Receiver") + } + return nil +} From 015140309c1ead9895a537a5897402f07fd56c75 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 16 Nov 2023 22:09:02 -0500 Subject: [PATCH 263/307] Fix tests --- tests/ibc/ibc_setup_test.go | 7 +++++++ tests/ibc/swap_forward_test.go | 14 +++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index e3df4b424..a5092cf7a 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -355,11 +355,18 @@ func (s *IBCTestSuite) neutronDeposit( func (s *IBCTestSuite) RelayAllPacketsAToB(path *icsibctesting.Path) error { sentPackets := path.EndpointA.Chain.SentPackets + chainB := path.EndpointB.Chain if len(sentPackets) == 0 { return fmt.Errorf("No packets to send") } for _, packet := range sentPackets { + // Skip if packet has already been sent + ack, _ := chainB.App.GetIBCKeeper().ChannelKeeper. + GetPacketAcknowledgement(chainB.GetContext(), packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence()) + if ack != nil { + continue + } err := path.RelayPacket(packet) if err != nil { return err diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 33d382bd6..3ce2ec86a 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -298,8 +298,16 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { swapAmount := math.NewInt(100000) expectedAmountOut := math.NewInt(99990) - retries := uint8(0) + // Send native denom to gaia chain so it can be swapped + s.IBCTransfer(s.neutronTransferPath, s.neutronTransferPath.EndpointA, s.neutronAddr, s.providerAddr, nativeDenom, swapAmount, "") + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.neutronTransferPath.EndpointA.ChannelID, + nativeDenom, + ) + transferDenomNeutronToProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + retries := uint8(0) forwardMetadata := forwardtypes.PacketMetadata{ Forward: &forwardtypes.ForwardMetadata{ Receiver: s.providerAddr.String(), @@ -340,7 +348,7 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.IBCTransferProviderToNeutron( s.providerAddr, s.neutronAddr, - nativeDenom, + transferDenomNeutronToProvider, ibcTransferAmount, string(metadataBz), ) @@ -358,7 +366,7 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.assertProviderBalance( s.providerAddr, nativeDenom, - newProviderBalNative.Sub(ibcTransferAmount).Add(expectedAmountOut), + newProviderBalNative.Add(expectedAmountOut), ) s.Assert().NoError(err) From bf2acf85cf36604ac7e57e8a7fa81b0050ad2b89 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 17 Nov 2023 13:41:06 +0200 Subject: [PATCH 264/307] whitelist ccvconsumer params --- app/proposals_allowlisting.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 12c6249e0..bf9dd285e 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -15,6 +15,7 @@ import ( 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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -92,4 +93,16 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, // packet-forward-middleware {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + // ICS consumer + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyRewardDenoms)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyEnabled)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyBlocksPerDistributionTransmission)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyDistributionTransmissionChannel)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyProviderFeePoolAddrStr)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyTransferTimeoutPeriod)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyConsumerRedistributionFrac)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyHistoricalEntries)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyConsumerUnbondingPeriod)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeySoftOptOutThreshold)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyProviderRewardDenoms)}: {}, } From 55792670d1962eb3385606b088aadafa7a2d1192 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Nov 2023 15:12:26 +0200 Subject: [PATCH 265/307] update whitelisted msgs --- app/proposals_allowlisting.go | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 3a00c7391..6bb7bf9a4 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -3,7 +3,11 @@ package app import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" sdk "github.com/cosmos/cosmos-sdk/types" + 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" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" + minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" @@ -62,7 +66,11 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *feerefundertypes.MsgUpdateParams, *crontypes.MsgUpdateParams, *contractmanagertypes.MsgUpdateParams, - *dextypes.MsgUpdateParams: + *dextypes.MsgUpdateParams, + *banktypes.MsgUpdateParams, + *crisistypes.MsgUpdateParams, + *minttypes.MsgUpdateParams, + *authtypes.MsgUpdateParams: return true } return false @@ -79,30 +87,10 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ // ica {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyHostEnabled)}: {}, {Subspace: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyAllowMessages)}: {}, - // cosmwasm - // {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyUploadAccess)}: {}, - // {Subspace: wasmtypes.ModuleName, Key: string(wasmtypes.ParamStoreKeyInstantiateAccess)}: {}, - // feerefunder - // {Subspace: feerefundertypes.ModuleName, Key: string(feerefundertypes.KeyFees)}: {}, - // interchaintxs - // {Subspace: interchaintxstypes.ModuleName, Key: string(interchaintxstypes.KeyMsgSubmitTxMaxMessages)}: {}, - // interchainqueries - // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQuerySubmitTimeout)}: {}, - // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyQueryDeposit)}: {}, - // {Subspace: interchainqueriestypes.ModuleName, Key: string(interchainqueriestypes.KeyTxQueryRemovalLimit)}: {}, - // feeburner - // {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyTreasuryAddress)}: {}, - // {Subspace: feeburnertypes.ModuleName, Key: string(feeburnertypes.KeyNeutronDenom)}: {}, - // tokenfactory - // {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyDenomCreationFee)}: {}, - // {Subspace: tokenfactorytypes.ModuleName, Key: string(tokenfactorytypes.KeyFeeCollectorAddress)}: {}, // globalfee {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, - // cron - // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeySecurityAddress)}: {}, - // {Subspace: crontypes.ModuleName, Key: string(crontypes.KeyLimit)}: {}, // packet-forward-middleware // {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, } From 4a4c0f33593dac49be043602ea7fdc774e074826 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 17 Nov 2023 13:41:06 +0200 Subject: [PATCH 266/307] whitelist ccvconsumer params --- app/proposals_allowlisting.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 6bb7bf9a4..791c9d689 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -14,6 +14,7 @@ import ( 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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" + ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -91,6 +92,16 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, - // packet-forward-middleware - // {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, + // ICS consumer + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyRewardDenoms)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyEnabled)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyBlocksPerDistributionTransmission)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyDistributionTransmissionChannel)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyProviderFeePoolAddrStr)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyTransferTimeoutPeriod)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyConsumerRedistributionFrac)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyHistoricalEntries)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyConsumerUnbondingPeriod)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeySoftOptOutThreshold)}: {}, + {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyProviderRewardDenoms)}: {}, } From 196b157820d9a7490bb5b72fba231776b936a62b Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 17 Nov 2023 15:18:03 +0200 Subject: [PATCH 267/307] pfm update params whitelits --- app/proposals_allowlisting.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 791c9d689..6bc45f305 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -11,6 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -71,6 +72,7 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *banktypes.MsgUpdateParams, *crisistypes.MsgUpdateParams, *minttypes.MsgUpdateParams, + *pfmtypes.MsgUpdateParams, *authtypes.MsgUpdateParams: return true } From bd8f153ed8e604552c6144cfe5cb2a1279785203 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 17 Nov 2023 16:03:36 +0200 Subject: [PATCH 268/307] fix tokenfactory params upgrade --- app/upgrades/v1.1.0/upgrades.go | 1 + app/upgrades/v1.1.0/upgrades_test.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/upgrades/v1.1.0/upgrades.go b/app/upgrades/v1.1.0/upgrades.go index c696599e0..3ba3a35ef 100644 --- a/app/upgrades/v1.1.0/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -189,6 +189,7 @@ func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keepe subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationGasConsume, uint64(0)) subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationFee, sdk.NewCoins()) + subspace.Set(ctx, tokenfactorytypes.KeyFeeCollectorAddress, "") subspace.GetParamSet(ctx, &currParams) if err := currParams.Validate(); err != nil { diff --git a/app/upgrades/v1.1.0/upgrades_test.go b/app/upgrades/v1.1.0/upgrades_test.go index 2507cdcb6..b035e780f 100644 --- a/app/upgrades/v1.1.0/upgrades_test.go +++ b/app/upgrades/v1.1.0/upgrades_test.go @@ -178,6 +178,7 @@ func (suite *UpgradeTestSuite) TestTokenFactoryUpgrade() { // emulate mainnet state tokenFactorySubspace.Set(ctx, tokenfactorytypes.KeyDenomCreationFee, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(100_000_000)))) + tokenFactorySubspace.Set(ctx, tokenfactorytypes.KeyFeeCollectorAddress, "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh") var denomFeeBefore sdk.Coins tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationFee, &denomFeeBefore) @@ -199,6 +200,11 @@ func (suite *UpgradeTestSuite) TestTokenFactoryUpgrade() { tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationFee, &denomFee) requiredFeeDenom := sdk.NewCoins() suite.Require().Equal(len(requiredFeeDenom), len(denomFee)) + + var feeCollector string + tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyFeeCollectorAddress, &feeCollector) + requiredFeeCollector := "" + suite.Require().Equal(requiredFeeCollector, feeCollector) } func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { From 22e763ca031d2f0504d8459bc04acc95d48bfc2b Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 17 Nov 2023 16:03:36 +0200 Subject: [PATCH 269/307] fix tokenfactory params upgrade --- app/upgrades/v1.1.0/upgrades.go | 1 + app/upgrades/v1.1.0/upgrades_test.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/upgrades/v1.1.0/upgrades.go b/app/upgrades/v1.1.0/upgrades.go index c696599e0..3ba3a35ef 100644 --- a/app/upgrades/v1.1.0/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -189,6 +189,7 @@ func migrateTokenFactoryParams(ctx sdk.Context, paramsKeepers paramskeeper.Keepe subspace, _ := paramsKeepers.GetSubspace(tokenfactorytypes.StoreKey) subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationGasConsume, uint64(0)) subspace.Set(ctx, tokenfactorytypes.KeyDenomCreationFee, sdk.NewCoins()) + subspace.Set(ctx, tokenfactorytypes.KeyFeeCollectorAddress, "") subspace.GetParamSet(ctx, &currParams) if err := currParams.Validate(); err != nil { diff --git a/app/upgrades/v1.1.0/upgrades_test.go b/app/upgrades/v1.1.0/upgrades_test.go index 2507cdcb6..b035e780f 100644 --- a/app/upgrades/v1.1.0/upgrades_test.go +++ b/app/upgrades/v1.1.0/upgrades_test.go @@ -178,6 +178,7 @@ func (suite *UpgradeTestSuite) TestTokenFactoryUpgrade() { // emulate mainnet state tokenFactorySubspace.Set(ctx, tokenfactorytypes.KeyDenomCreationFee, sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(100_000_000)))) + tokenFactorySubspace.Set(ctx, tokenfactorytypes.KeyFeeCollectorAddress, "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh") var denomFeeBefore sdk.Coins tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationFee, &denomFeeBefore) @@ -199,6 +200,11 @@ func (suite *UpgradeTestSuite) TestTokenFactoryUpgrade() { tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyDenomCreationFee, &denomFee) requiredFeeDenom := sdk.NewCoins() suite.Require().Equal(len(requiredFeeDenom), len(denomFee)) + + var feeCollector string + tokenFactorySubspace.Get(ctx, tokenfactorytypes.KeyFeeCollectorAddress, &feeCollector) + requiredFeeCollector := "" + suite.Require().Equal(requiredFeeCollector, feeCollector) } func (suite *UpgradeTestSuite) TestRegisterInterchainAccountCreationFee() { From 0988cc4bc715b1cfc1389bd298c8ad4d2ca2f8c9 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Thu, 16 Nov 2023 22:25:54 -0500 Subject: [PATCH 270/307] fix ibcswap tests to account for changes to swap rounding --- tests/ibc/gmp_swap_forward_test.go | 9 ++++----- tests/ibc/swap_forward_test.go | 13 +++++-------- tests/ibc/swap_test.go | 3 +-- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index caccfad09..a0bc6eb7b 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -99,11 +99,10 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Check that the funds are moved out of the acc on providerChain s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - // Check that the amountIn is deducted from the neutron override account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) - // Check that neutron override account did not keep any of the transfer denom - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + // Check that the amountIn is deduced from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) + // Check that neutron account did not keep any of the transfer denom + s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 2db01e8ed..24284e304 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -109,11 +109,10 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deducted from the neutron overrid receiver account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) + // Check that the amountIn is deducted from the neutron account + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) // Check that neutron account did not keep any of the transfer denom - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, @@ -359,10 +358,8 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.Assert().NoError(err) s.coordinator.CommitBlock(s.neutronChain) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) // Check that the amountIn has been deducted from the neutron chain - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount)) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount).Add(math.OneInt())) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, @@ -472,7 +469,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { ) // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) // Check that the amountOut stays on the neutronchain s.assertNeutronBalance( s.neutronAddr, diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index 05d51e95b..dbb21ad65 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -83,8 +83,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) // Check that all of the IBC transfer denom have been used up - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) } // TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Neutron running as a From 208737bd13d800dff65bb67cede31549c3ec3e5f Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 17 Nov 2023 10:22:33 -0500 Subject: [PATCH 271/307] Revert "pfm update params whitelits" This reverts commit 196b157820d9a7490bb5b72fba231776b936a62b. --- app/proposals_allowlisting.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 6bc45f305..791c9d689 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -72,7 +71,6 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *banktypes.MsgUpdateParams, *crisistypes.MsgUpdateParams, *minttypes.MsgUpdateParams, - *pfmtypes.MsgUpdateParams, *authtypes.MsgUpdateParams: return true } From 433576aa716eb8cd1f285ba5778367e27a8411d5 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Fri, 17 Nov 2023 10:50:46 -0500 Subject: [PATCH 272/307] whitelist pfm params --- app/proposals_allowlisting.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 791c9d689..2c9213774 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -11,6 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" + packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -92,6 +93,8 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, + // packet-forward-middleware + {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, // ICS consumer {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyRewardDenoms)}: {}, {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyEnabled)}: {}, From d88d5bf0f92577f24c42fa03cb14d8b7da32cf28 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 17 Nov 2023 19:24:23 +0200 Subject: [PATCH 273/307] whitelist MsgUpdateParams for auction module --- app/proposals_allowlisting.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 23722d742..898547166 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -15,6 +15,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -66,6 +67,7 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *feerefundertypes.MsgUpdateParams, *crontypes.MsgUpdateParams, *contractmanagertypes.MsgUpdateParams, + *auctiontypes.MsgUpdateParams, *banktypes.MsgUpdateParams, *crisistypes.MsgUpdateParams, *minttypes.MsgUpdateParams, From 7a775631eb6cb38bb04a09d1ebbcc8d9bc762f4d Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Sun, 19 Nov 2023 21:15:19 +0200 Subject: [PATCH 274/307] revert SkipCcvMsgFilter const --- app/ccv_msg_filter_add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ccv_msg_filter_add.go b/app/ccv_msg_filter_add.go index 0f883f44e..d4ead58a7 100644 --- a/app/ccv_msg_filter_add.go +++ b/app/ccv_msg_filter_add.go @@ -2,4 +2,4 @@ package app -const SkipCcvMsgFilter = true // TODO вернуть false +const SkipCcvMsgFilter = false From e2441a1a82a1c1c9c8f5b717f781101e02d6749e Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Sun, 19 Nov 2023 22:46:48 +0200 Subject: [PATCH 275/307] update cosmos-sdk to 0.47.6 --- go.mod | 32 ++++++++++++++--------------- go.sum | 64 +++++++++++++++++++++++++++++----------------------------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/go.mod b/go.mod index ed457d3f1..3d91873c5 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( cosmossdk.io/core v0.5.1 cosmossdk.io/errors v1.0.0 cosmossdk.io/log v1.2.1 - cosmossdk.io/math v1.1.2 + cosmossdk.io/math v1.2.0 github.com/CosmWasm/wasmd v0.43.0 github.com/CosmWasm/wasmvm v1.4.1 github.com/armon/go-metrics v0.4.1 @@ -14,7 +14,7 @@ require ( github.com/cometbft/cometbft-db v0.8.0 github.com/cosmos/admin-module v0.0.0-20220204080909-475a98e03f31 github.com/cosmos/cosmos-proto v1.0.0-beta.2 - github.com/cosmos/cosmos-sdk v0.47.5 + github.com/cosmos/cosmos-sdk v0.47.6 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 @@ -35,16 +35,16 @@ require ( github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d + google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 google.golang.org/grpc v1.59.0 gopkg.in/yaml.v2 v2.4.0 ) require ( - cloud.google.com/go v0.110.7 // indirect + cloud.google.com/go v0.110.8 // indirect cloud.google.com/go/compute v1.23.0 // 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.2 // indirect cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect @@ -103,8 +103,8 @@ require ( github.com/google/orderedcode v0.0.1 // indirect github.com/google/s2a-go v0.1.4 // indirect github.com/google/uuid v1.3.1 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.11.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect @@ -162,23 +162,23 @@ require ( github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.6.0 // indirect github.com/ulikunitz/xz v0.5.11 // indirect - github.com/zondax/hid v0.9.1 // indirect - github.com/zondax/ledger-go v0.14.1 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.13.0 // indirect + golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect golang.org/x/net v0.15.0 // indirect golang.org/x/oauth2 v0.12.0 // indirect golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.12.0 // indirect - golang.org/x/term v0.12.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect - google.golang.org/api v0.126.0 // indirect + google.golang.org/api v0.128.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect + google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect @@ -192,7 +192,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.0 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v1.0.0 - github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.5 + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.6 github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 626d4a95e..0e9619a6e 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,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.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= -cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= +cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= +cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= 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= @@ -114,8 +114,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.2 h1:gacbrBdWcoVmGLozRuStX45YKvJtzIjJdAolzUs1sm4= +cloud.google.com/go/iam v1.1.2/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= 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= @@ -201,8 +201,8 @@ cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk= cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= -cosmossdk.io/math v1.1.2 h1:ORZetZCTyWkI5GlZ6CZS28fMHi83ZYf+A2vVnHNzZBM= -cosmossdk.io/math v1.1.2/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= 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= @@ -313,7 +313,7 @@ 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.5.1 h1:mixz5lJX4Hiz4FpqFREJHIXLfaLBntfaJv1h+/jS+Qg= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= @@ -667,8 +667,8 @@ github.com/google/uuid v1.3.1/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.2.4 h1:uGy6JWR/uMIILU8wbf+OkstIrNiMjGpEIyhx8f6W7s4= +github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= 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= @@ -678,8 +678,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= @@ -936,13 +936,13 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v1.0.0 h1:mmX5U6jz4rX+lk8SB5Bx0Lsugu9bh4PCREMnVkLQoIs= github.com/neutron-org/admin-module v1.0.0/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.5 h1:BUBqUPI5I8rF9ql3RfSCo9XkpZBJPhTZSIWexyxutA4= -github.com/neutron-org/cosmos-sdk v0.47.5/go.mod h1:3uZbdGpMOT5usEich5wHANLxz0VbKE9lL1PUq+rzkS4= +github.com/neutron-org/cosmos-sdk v0.47.6 h1:FaHH5DUb4JP1zI945/j+CzbhBvhxqe6iFIn2HER4xks= +github.com/neutron-org/cosmos-sdk v0.47.6/go.mod h1:7BmlRp0txKo2UZ01OLq4DGEjgLDiPgmpRpjLOq89Jys= github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbBUJc= github.com/neutron-org/wasmd v0.43.0/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +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/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= @@ -1178,10 +1178,10 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= -github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= -github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= -github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= @@ -1236,8 +1236,8 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/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.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= 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= @@ -1501,14 +1501,14 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc 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.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.12.0 h1:/ZfYdc3zq+q02Rv9vGqTeSItdzZTSNDmfTi0mBAuidU= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1657,8 +1657,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.128.0 h1:RjPESny5CnQRn9V6siglged+DZCgfu9l6mO9dkX9VOg= +google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= 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= @@ -1779,12 +1779,12 @@ 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-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY= -google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= -google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= -google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 h1:vlzZttNJGVqTsRFU9AmdnrcO1Znh8Ew9kCD//yjigk0= +google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:CCviP9RmpZ1mxVr8MUjCnSiY09IbAXZxhLE6EhHIdPU= +google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 h1:W18sezcAYs+3tDZX4F80yctqa12jcP1PUS2gQu1zTPU= +google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97/go.mod h1:iargEX0SFPm3xcfMI0d1domjg0ZF4Aa0p2awqyxhvF0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 h1:N3bU/SQDCDyD6R528GJ/PwW9KjYcJA3dgyH+MovAkIM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= From cae36089abf98f32e2972a0c0a7e4261788419e1 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Sun, 19 Nov 2023 23:17:02 -0500 Subject: [PATCH 276/307] Revert "Merge pull request #372 from neutron-org/fix/revert-pfm-upgrade" This reverts commit 4e974e456c7f465b8e86d2ba631a9d7549cbd5e6, reversing changes made to 22e763ca031d2f0504d8459bc04acc95d48bfc2b. --- app/app.go | 41 +++--- app/proposals_allowlisting.go | 5 +- go.mod | 3 +- go.sum | 5 +- tests/ibc/gmp_swap_forward_test.go | 17 +-- tests/ibc/ibc_setup_test.go | 9 ++ tests/ibc/swap_forward_test.go | 211 ++++++++++++++++++++++------- tests/ibc/swap_test.go | 56 +------- x/ibcswap/ibc_middleware.go | 152 +++++++++++++-------- x/ibcswap/keeper/keeper.go | 5 +- x/ibcswap/types/swap.go | 23 +++- x/ibcswap/types/swap_test.go | 6 +- 12 files changed, 330 insertions(+), 203 deletions(-) diff --git a/app/app.go b/app/app.go index 5219bccb5..2123aafe8 100644 --- a/app/app.go +++ b/app/app.go @@ -9,8 +9,7 @@ import ( "path/filepath" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router" - + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" "github.com/cosmos/interchain-security/v3/testutil/integration" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -147,8 +146,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - routerkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/keeper" - routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + pfmkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" "github.com/neutron-org/neutron/x/dex" dexkeeper "github.com/neutron-org/neutron/x/dex/keeper" @@ -225,7 +224,7 @@ var ( ), ), ibchooks.AppModuleBasic{}, - router.AppModuleBasic{}, + packetforward.AppModuleBasic{}, auction.AppModuleBasic{}, globalfee.AppModule{}, dex.AppModuleBasic{}, @@ -310,11 +309,11 @@ type App struct { ConsumerKeeper ccvconsumerkeeper.Keeper TokenFactoryKeeper *tokenfactorykeeper.Keeper CronKeeper cronkeeper.Keeper - PFMKeeper *routerkeeper.Keeper + PFMKeeper *pfmkeeper.Keeper DexKeeper dexkeeper.Keeper SwapKeeper ibcswapkeeper.Keeper - RouterModule router.AppModule + PFMModule packetforward.AppModule HooksTransferIBCModule *ibchooks.IBCMiddleware HooksICS4Wrapper ibchooks.ICS4Middleware @@ -396,7 +395,7 @@ func New( evidencetypes.StoreKey, ibctransfertypes.StoreKey, icacontrollertypes.StoreKey, icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, - feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, routertypes.StoreKey, + feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, pfmtypes.StoreKey, crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, dextypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -532,15 +531,15 @@ func New( feeBurnerModule := feeburner.NewAppModule(appCodec, *app.FeeBurnerKeeper) // PFMKeeper must be created before TransferKeeper - app.PFMKeeper = routerkeeper.NewKeeper( + app.PFMKeeper = pfmkeeper.NewKeeper( appCodec, - app.keys[routertypes.StoreKey], - app.GetSubspace(routertypes.ModuleName), + app.keys[pfmtypes.StoreKey], app.TransferKeeper.Keeper, app.IBCKeeper.ChannelKeeper, app.FeeBurnerKeeper, &app.BankKeeper, app.IBCKeeper.ChannelKeeper, + authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), ) wasmHooks := ibchooks.NewWasmHooks(nil, sdk.GetConfig().GetBech32AccountAddrPrefix()) // The contract keeper needs to be set later app.HooksICS4Wrapper = ibchooks.NewICS4Middleware( @@ -751,14 +750,14 @@ func New( contractManagerModule := contractmanager.NewAppModule(appCodec, app.ContractManagerKeeper) ibcHooksModule := ibchooks.NewAppModule(app.AccountKeeper) - app.RouterModule = router.NewAppModule(app.PFMKeeper) + app.PFMModule = packetforward.NewAppModule(app.PFMKeeper, app.GetSubspace(pfmtypes.ModuleName)) - var ibcStack ibcporttypes.IBCModule = router.NewIBCMiddleware( + var ibcStack ibcporttypes.IBCModule = packetforward.NewIBCMiddleware( app.HooksTransferIBCModule, app.PFMKeeper, 0, - routerkeeper.DefaultForwardTransferPacketTimeoutTimestamp, - routerkeeper.DefaultRefundTransferPacketTimeoutTimestamp, + pfmkeeper.DefaultForwardTransferPacketTimeoutTimestamp, + pfmkeeper.DefaultRefundTransferPacketTimeoutTimestamp, ) ibcStack = ibcswap.NewIBCMiddleware(ibcStack, app.SwapKeeper) @@ -799,7 +798,7 @@ func New( transferModule, consumerModule, icaModule, - app.RouterModule, + app.PFMModule, interchainQueriesModule, interchainTxsModule, feeModule, @@ -846,7 +845,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -879,7 +878,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -919,7 +918,7 @@ func New( feeburnertypes.ModuleName, adminmoduletypes.ModuleName, ibchookstypes.ModuleName, // after auth keeper - routertypes.ModuleName, + pfmtypes.ModuleName, crontypes.ModuleName, globalfee.ModuleName, ibcswaptypes.ModuleName, @@ -947,7 +946,7 @@ func New( transferModule, consumerModule, icaModule, - app.RouterModule, + app.PFMModule, interchainQueriesModule, interchainTxsModule, feeBurnerModule, @@ -1289,7 +1288,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) - paramsKeeper.Subspace(routertypes.ModuleName).WithKeyTable(routertypes.ParamKeyTable()) + paramsKeeper.Subspace(pfmtypes.ModuleName).WithKeyTable(pfmtypes.ParamKeyTable()) paramsKeeper.Subspace(globalfee.ModuleName).WithKeyTable(globalfeetypes.ParamKeyTable()) diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 2c9213774..6bc45f305 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -11,7 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types" - packetforwardmiddlewaretypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/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" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" @@ -72,6 +72,7 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *banktypes.MsgUpdateParams, *crisistypes.MsgUpdateParams, *minttypes.MsgUpdateParams, + *pfmtypes.MsgUpdateParams, *authtypes.MsgUpdateParams: return true } @@ -93,8 +94,6 @@ var WhitelistedParams = map[paramChangeKey]struct{}{ {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMinGasPrices)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyBypassMinFeeMsgTypes)}: {}, {Subspace: globalfeetypes.ModuleName, Key: string(globalfeetypes.ParamStoreKeyMaxTotalBypassMinFeeMsgGasUsage)}: {}, - // packet-forward-middleware - {Subspace: packetforwardmiddlewaretypes.ModuleName, Key: string(packetforwardmiddlewaretypes.KeyFeePercentage)}: {}, // ICS consumer {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyRewardDenoms)}: {}, {Subspace: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyEnabled)}: {}, diff --git a/go.mod b/go.mod index 689dd9625..467aaaa2b 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - // TEMP: Using this version to support duality swap-and-forward - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index caa8c5cf0..626d4a95e 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806 h1:iFWb/KrnP5jthNZ23l72wqE8nzHJHzoVe22giUfJce8= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.0.0-20230629164013-34f5e666f806/go.mod h1:fctjEnz9xaBFOlmYYPdKL8Hs1Y3GUKilSwsJdqBb5QU= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 h1:PqIK9vTr6zxCdQmrDZwxwL4KMAqg/GRGsiMEiaMP4wA= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= @@ -1203,6 +1203,7 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index a0bc6eb7b..652e4f211 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/neutron-org/neutron/x/dex/types" @@ -42,12 +42,12 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) - forwardMetadata := forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: forwardtypes.Duration(5 * time.Minute), + Timeout: pfmtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -99,10 +99,11 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Check that the funds are moved out of the acc on providerChain s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) - // Check that neutron account did not keep any of the transfer denom - s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount.Sub(swapAmount)) + // Check that the amountIn is deducted from the neutron override account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) + // Check that neutron override account did not keep any of the transfer denom + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index a5092cf7a..827920bf2 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -6,6 +6,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -325,6 +326,14 @@ func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, ex s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) } +func (s *IBCTestSuite) ReceiverOverrideAddr(channel, sender string) sdk.AccAddress { + addr, err := packetforward.GetReceiver(channel, sender) + if err != nil { + panic("Cannot calc receiver override: " + err.Error()) + } + return sdk.MustAccAddressFromBech32(addr) +} + //nolint:unparam // keep this flexible even if we aren't currently using all the params func (s *IBCTestSuite) neutronDeposit( token0 string, diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 24284e304..070378e10 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -5,7 +5,7 @@ import ( "time" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/iancoleman/orderedmap" "golang.org/x/exp/maps" @@ -53,12 +53,12 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { retries := uint8(0) - forwardMetadata := forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: forwardtypes.Duration(5 * time.Minute), + Timeout: pfmtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -109,10 +109,11 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deducted from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) + // Check that the amountIn is deducted from the neutron overrid receiver account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) // Check that neutron account did not keep any of the transfer denom - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, @@ -123,8 +124,6 @@ func (s *IBCTestSuite) TestSwapAndForward_Success() { // Check that the funds are now present in the acc on chainB s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) - - s.Assert().NoError(err) } func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { @@ -168,26 +167,26 @@ func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() retries := uint8(0) - nextForward := forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + nextForward := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: chainCAddr.String(), Port: s.chainBChainCPath.EndpointA.ChannelConfig.PortID, Channel: s.chainBChainCPath.EndpointA.ChannelID, - Timeout: forwardtypes.Duration(5 * time.Minute), + Timeout: pfmtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, } nextForwardBz, err := json.Marshal(nextForward) s.Assert().NoError(err) - nextForwardJSON := forwardtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) + nextForwardJSON := pfmtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) - forwardMetadata := forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: forwardtypes.Duration(5 * time.Minute), + Timeout: pfmtypes.Duration(5 * time.Minute), Retries: &retries, Next: nextForwardJSON, }, @@ -298,22 +297,14 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { swapAmount := math.NewInt(100_000) expectedAmountOut := math.NewInt(99980) - // Send native denom to gaia chain so it can be swapped - s.IBCTransfer(s.neutronTransferPath, s.neutronTransferPath.EndpointA, s.neutronAddr, s.providerAddr, nativeDenom, swapAmount, "") - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronTransferPath.EndpointA.ChannelID, - nativeDenom, - ) - transferDenomNeutronToProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - retries := uint8(0) - forwardMetadata := forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: s.providerAddr.String(), Port: s.neutronTransferPath.EndpointA.ChannelConfig.PortID, Channel: s.neutronTransferPath.EndpointA.ChannelID, - Timeout: forwardtypes.Duration(5 * time.Minute), + Timeout: pfmtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -344,11 +335,29 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { metadataBz, err := json.Marshal(metadata) s.Require().NoError(err) + // Transfer native denom from neutron to provider + s.IBCTransfer( + s.neutronTransferPath, + s.neutronTransferPath.EndpointA, + s.neutronAddr, + s.providerAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.neutronTransferPath.EndpointB.ChannelID, + nativeDenom, + ) + transferDenomNeutronProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + s.assertProviderBalance(s.providerAddr, transferDenomNeutronProvider, ibcTransferAmount) + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata s.IBCTransferProviderToNeutron( s.providerAddr, s.neutronAddr, - transferDenomNeutronToProvider, + transferDenomNeutronProvider, swapAmount, string(metadataBz), ) @@ -358,21 +367,21 @@ func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { s.Assert().NoError(err) s.coordinator.CommitBlock(s.neutronChain) - // Check that the amountIn has been deducted from the neutron chain - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Sub(swapAmount).Add(math.OneInt())) + // Check that the amountIn is deducted from the neutron override receiever account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.OneInt()) // Check that the funds are now present on the provider chainer s.assertProviderBalance( s.providerAddr, nativeDenom, newProviderBalNative.Add(expectedAmountOut), ) - - s.Assert().NoError(err) } -// TestSwapAndForward_ForwardFails asserts that the swap and forward middleware stack works as intended in the case -// that an incoming IBC swap succeeds but the forward fails. -func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { +// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case +// that an incoming IBC swap succeeds but the forward fails when a NeutronRefundAddress is provided. +// The swap will be reverted and the transferred amount will be credited to the refundAddr +func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token s.IBCTransferProviderToNeutron( s.providerAddr, @@ -406,17 +415,16 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) - expectedAmountOut := math.NewInt(99990) chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() retries := uint8(0) - forwardMetadata := forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: chainBAddr.String(), Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, Channel: "invalid-channel", // add an invalid channel identifier so the forward fails - Timeout: forwardtypes.Duration(5 * time.Minute), + Timeout: pfmtypes.Duration(5 * time.Minute), Retries: &retries, Next: nil, }, @@ -429,6 +437,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { err = json.Unmarshal(bz, nextJSON) s.Assert().NoError(err) + refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() metadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ @@ -440,7 +449,8 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { TickIndexInToOut: 2, OrderType: types.LimitOrderType_FILL_OR_KILL, }, - Next: nextJSON, + NeutronRefundAddress: refundAddr.String(), + Next: nextJSON, }, } @@ -468,15 +478,121 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { newProviderBalNative.Sub(ibcTransferAmount), ) - // Check that the amountIn is deduced from the neutron account - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) - // Check that the amountOut stays on the neutronchain - s.assertNeutronBalance( + // Check that nothing remains in the overrideReceiver account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + + // Check that the swap was reverted and the transfer amount is in the refundAddr + s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) + + // Check that nothing made it to chainB + transferDenomPath := transfertypes.GetPrefixedDenom( + transfertypes.PortID, + s.neutronChainBPath.EndpointA.ChannelID, + nativeDenom, + ) + transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + + s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) +} + +// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case +// that an incoming IBC swap succeeds but the forward fails when no NeutronRefundAddress is provided. +// The swap will be reverted and a refund to the src chain will take place. +func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( + s.providerAddr, s.neutronAddr, nativeDenom, - postDepositNeutronBalNative.Add(expectedAmountOut), + ibcTransferAmount, + "", ) + // Assert that the funds are gone from the acc on provider and present in the acc on Neutron + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Neutron + depositAmount := math.NewInt(100_000) + s.neutronDeposit( + nativeDenom, + s.providerToNeutronDenom, + depositAmount, + depositAmount, + 0, + 1, + s.neutronAddr) + + // Assert that the deposit was successful and the funds are moved out of the Neutron user acc + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := math.NewInt(100000) + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, + Channel: "invalid-channel", // add an invalid channel identifier so the forward fails + Timeout: pfmtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata + s.IBCTransferProviderToNeutron( + s.providerAddr, + s.neutronAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Relay the packets from neutron => ChainB + err = s.RelayAllPacketsAToB(s.neutronChainBPath) + // Relay Fails + s.Assert().Error(err) + + // Check that nothing remains in the overrideReceiver account + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + // Check that nothing made it to chainB transferDenomPath := transfertypes.GetPrefixedDenom( transfertypes.PortID, @@ -486,4 +602,7 @@ func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) + + // Check that the refund takes place and the funds are moved back to the account on Gaia + s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(depositAmount)) } diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index dbb21ad65..44e4c2be4 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -83,7 +83,8 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) // Check that all of the IBC transfer denom have been used up - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) } // TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Neutron running as a @@ -102,8 +103,7 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { TickIndexInToOut: 1, OrderType: dextypes.LimitOrderType_FILL_OR_KILL, }, - NonRefundable: false, - Next: nil, + Next: nil, }, } @@ -127,51 +127,6 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailRefund() { s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount) } -// TestIBCSwapMiddleware_FailNoRefund asserts that the IBC swap middleware works as intended with Neutron running as a -// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron. -func (s *IBCTestSuite) TestIBCSwapMiddleware_FailNoRefund() { - // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair - swapAmount := math.NewInt(100000) - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &dextypes.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 1, - OrderType: dextypes.LimitOrderType_FILL_OR_KILL, - }, - NonRefundable: true, - Next: nil, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Send (failing) IBC transfer with swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - // Check that the funds are present in the account on Neutron - s.assertNeutronBalance(s.neutronAddr, nativeDenom, genesisWalletAmount) - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // Check that no refund takes place and the funds are not in the account on provider - s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(ibcTransferAmount)) -} - -// TestIBCSwapMiddleware_FailWithRefundAddr asserts that the IBC swap middleware works as intended with Neutron running as a -// consumer chain connected to the Cosmos Hub. The swap should fail and funds should remain on Neutron but be moved -// to the refund address. - func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { // Compose the swap metadata, this swap will fail because there is no pool initialized for this pair refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() @@ -187,9 +142,8 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_FailWithRefundAddr() { TickIndexInToOut: 1, OrderType: dextypes.LimitOrderType_FILL_OR_KILL, }, - RefundAddress: refundAddr.String(), - NonRefundable: true, - Next: nil, + NeutronRefundAddress: refundAddr.String(), + Next: nil, }, } diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 262baee59..df315b06e 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -3,13 +3,15 @@ package ibcswap import ( "context" "encoding/json" + "errors" "strings" sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -110,6 +112,15 @@ func (im IBCMiddleware) OnChanCloseConfirm(ctx sdk.Context, portID, channelID st // OnRecvPacket checks the memo field on this packet and if the metadata inside's root key indicates this packet // should be handled by the swap middleware it attempts to perform a swap. If the swap is successful // the underlying application's OnRecvPacket callback is invoked. + +// For clarity, here is a breakdown of the steps +// 1. Check if this is a swap packet; if not pass it to next middleware +// 2. validate swapMetadata; ErrAck if invalid +// 3. Pass through the middleware stack to ibc-go/transfer#OnRecvPacket; transfer coins are sent to receiver +// 4. Do swap; handle failures +// 5. If no PFM is present we are done; return ack +// 6. Unpack packet so that it is a valid PFM packet and set required context variables +// 7. Pass through middleware stack again where the forward is handled by packet-forward-middleware#OnRecvPacket func (im IBCMiddleware) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, @@ -128,6 +139,7 @@ func (im IBCMiddleware) OnRecvPacket( } metadata := m.Swap + if err := metadata.Validate(); err != nil { return channeltypes.NewErrorAcknowledgement(err) } @@ -136,33 +148,35 @@ func (im IBCMiddleware) OnRecvPacket( return channeltypes.NewErrorAcknowledgement(err) } - // Compose our context with values that will be used to pass through to the forward middleware - ctxWithForwardFlags := context.WithValue(ctx.Context(), forwardtypes.ProcessedKey{}, true) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - forwardtypes.NonrefundableKey{}, - true, - ) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - forwardtypes.DisableDenomCompositionKey{}, - true, - ) - wrappedSdkCtx := ctx.WithContext(ctxWithForwardFlags) + // Use overrideReceiver so that users cannot ibcswap through arbitrary addresses. + // Instead generate a unique address for each user based on their channel and origin-address + overrideReceiver, err := packetforward.GetReceiver(packet.DestinationChannel, data.Sender) + if err != nil { + return channeltypes.NewErrorAcknowledgement(err) + } + metadata.Creator = overrideReceiver + // Update packet data to match the new receiver so that transfer middleware adds tokens to the expected address + packet = newPacketWithOverrideReceiver(packet, data, overrideReceiver) + if metadata.ContainsPFM() { + // If we are using PFM change receiver to the expected address for forwarding + metadata.Receiver = overrideReceiver + } - ack := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) + ack := im.app.OnRecvPacket(ctx, packet, relayer) if ack == nil || !ack.Success() { return ack } - // Attempt to perform a swap since this packets memo included swap metadata. - res, err := im.keeper.Swap(ctx, metadata.MsgPlaceLimitOrder) + // Attempt to perform a swap using a cacheCtx + cacheCtx, writeCache := ctx.CacheContext() + res, err := im.keeper.Swap(cacheCtx, metadata.MsgPlaceLimitOrder) if err != nil { return im.handleFailedSwap(ctx, packet, data, metadata, err) } // If there is no next field set in the metadata return ack if metadata.Next == nil { + writeCache() return ack } @@ -173,30 +187,46 @@ func (im IBCMiddleware) OnRecvPacket( return ack } - data.Memo = string(memoBz) + postSwapData := data + postSwapData.Memo = string(memoBz) // Override the packet data to include the token denom and amount that was received from the swap. - data.Denom = res.TakerCoinOut.Denom - data.Amount = res.TakerCoinOut.Amount.String() + postSwapData.Denom = res.TakerCoinOut.Denom + postSwapData.Amount = res.TakerCoinOut.Amount.String() // After a successful swap funds are now in the receiver account from the MsgPlaceLimitOrder so, // we need to override the packets receiver field before invoking the forward middlewares OnRecvPacket. - data.Receiver = m.Swap.Receiver + postSwapData.Receiver = m.Swap.Receiver - dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&data) + dataBz, err := transfertypes.ModuleCdc.MarshalJSON(&postSwapData) if err != nil { return ack } packet.Data = dataBz + // Compose our context with values that will be used to pass through to the forward middleware + ctxWithForwardFlags := context.WithValue(cacheCtx.Context(), pfmtypes.ProcessedKey{}, true) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + pfmtypes.NonrefundableKey{}, + true, + ) + ctxWithForwardFlags = context.WithValue( + ctxWithForwardFlags, + pfmtypes.DisableDenomCompositionKey{}, + true, + ) + wrappedSdkCtx := cacheCtx.WithContext(ctxWithForwardFlags) + // The forward middleware should return a nil ack if the forward is initiated properly. // If not an error occurred, and we return the original ack. newAck := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) if newAck != nil { - return ack + return im.handleFailedSwap(ctx, packet, data, metadata, errors.New(string(newAck.Acknowledgement()))) } + writeCache() return nil } @@ -277,38 +307,29 @@ func (im IBCMiddleware) handleFailedSwap( "AmountIn", metadata.AmountIn, "TickIndexInToOut", metadata.TickIndexInToOut, "OrderType", metadata.OrderType, - "refundable", metadata.NonRefundable, - "refund address", metadata.RefundAddress, + "refund address", metadata.NeutronRefundAddress, ) // The current denom is from the sender chains perspective, we need to compose the appropriate denom for this side - denomOnThisChain := getDenomForThisChain( - packet.DestinationPort, packet.DestinationChannel, - packet.SourcePort, packet.SourceChannel, - data.Denom, - ) + denomOnThisChain := getDenomForThisChain(packet, data.Denom) - if metadata.NonRefundable { - return im.handleNoRefund(ctx, data, metadata, denomOnThisChain, err) + if len(metadata.NeutronRefundAddress) != 0 { + return im.handleOnChainRefund(ctx, data, metadata, denomOnThisChain, err) } - return im.handleRefund(ctx, packet, data, denomOnThisChain, err) + return im.handleIBCRefund(ctx, packet, data, metadata, denomOnThisChain, err) } -// handleNoRefund will compose a successful ack to send back to the counterparty chain containing any error messages. +// handleOnChainRefund will compose a successful ack to send back to the counterparty chain containing any error messages. // Returning a successful ack ensures that a refund is not issued on the counterparty chain. // See: https://github.com/cosmos/ibc-go/blob/3ecc7dd3aef5790ec5d906936a297b34adf1ee41/modules/apps/transfer/keeper/relay.go#L320 -func (im IBCMiddleware) handleNoRefund( +func (im IBCMiddleware) handleOnChainRefund( ctx sdk.Context, data transfertypes.FungibleTokenPacketData, metadata *types.SwapMetadata, newDenom string, swapErr error, ) ibcexported.Acknowledgement { - if metadata.RefundAddress == "" { - return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) - } - amount, ok := math.NewIntFromString(data.Amount) if !ok { wrappedErr := sdkerrors.Wrapf( @@ -321,7 +342,7 @@ func (im IBCMiddleware) handleNoRefund( } token := sdk.NewCoin(newDenom, amount) - err := im.keeper.SendCoins(ctx, data.Receiver, metadata.RefundAddress, sdk.NewCoins(token)) + err := im.keeper.SendCoins(ctx, metadata.Creator, metadata.NeutronRefundAddress, sdk.NewCoins(token)) if err != nil { wrappedErr := sdkerrors.Wrap(err, "failed to move funds to refund address") wrappedErr = sdkerrors.Wrap(swapErr, wrappedErr.Error()) @@ -331,19 +352,20 @@ func (im IBCMiddleware) handleNoRefund( return channeltypes.NewResultAcknowledgement([]byte(swapErr.Error())) } -// handleRefund will either burn or transfer the funds back to the appropriate escrow account. +// handleIBCRefund will either burn or transfer the funds back to the appropriate escrow account. // When a packet comes in the transfer module's OnRecvPacket callback is invoked which either // mints or unescrows funds on this side so if the swap fails an explicit refund is required. -func (im IBCMiddleware) handleRefund( +func (im IBCMiddleware) handleIBCRefund( ctx sdk.Context, packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, + metadata *types.SwapMetadata, newDenom string, swapErr error, ) ibcexported.Acknowledgement { data.Denom = newDenom - err := im.keeper.RefundPacketToken(ctx, packet, data) + err := im.keeper.RefundPacketToken(ctx, packet, data, metadata) if err != nil { wrappedErr := sdkerrors.Wrap(swapErr, err.Error()) @@ -357,10 +379,8 @@ func (im IBCMiddleware) handleRefund( // getDenomForThisChain composes a new token denom by either unwinding or prefixing the specified token denom appropriately. // This is necessary because the token denom in the packet data is from the perspective of the counterparty chain. -func getDenomForThisChain( - port, channel, counterpartyPort, counterpartyChannel, denom string, -) string { - counterpartyPrefix := transfertypes.GetDenomPrefix(counterpartyPort, counterpartyChannel) +func getDenomForThisChain(packet channeltypes.Packet, denom string) string { + counterpartyPrefix := transfertypes.GetDenomPrefix(packet.SourcePort, packet.SourceChannel) if strings.HasPrefix(denom, counterpartyPrefix) { // unwind denom unwoundDenom := denom[len(counterpartyPrefix):] @@ -374,18 +394,34 @@ func getDenomForThisChain( } // append port and channel from this chain to denom - prefixedDenom := transfertypes.GetDenomPrefix(port, channel) + denom + prefixedDenom := transfertypes.GetDenomPrefix(packet.DestinationPort, packet.DestinationChannel) + denom return transfertypes.ParseDenomTrace(prefixedDenom).IBCDenom() } +// Update the packet data to reflect the new receiver address that is used by the PFM +func newPacketWithOverrideReceiver(oldPacket channeltypes.Packet, data transfertypes.FungibleTokenPacketData, overrideReceiver string) channeltypes.Packet { + overrideData := transfertypes.FungibleTokenPacketData{ + Denom: data.Denom, + Amount: data.Amount, + Sender: data.Sender, + Receiver: overrideReceiver, // override receiver + } + overrideDataBz := transfertypes.ModuleCdc.MustMarshalJSON(&overrideData) + + return channeltypes.Packet{ + Sequence: oldPacket.Sequence, + SourcePort: oldPacket.SourcePort, + SourceChannel: oldPacket.SourceChannel, + DestinationPort: oldPacket.DestinationPort, + DestinationChannel: oldPacket.DestinationChannel, + Data: overrideDataBz, // override data + TimeoutHeight: oldPacket.TimeoutHeight, + TimeoutTimestamp: oldPacket.TimeoutTimestamp, + } +} + func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.FungibleTokenPacketData, sm types.SwapMetadata) error { - denomOnNeutron := getDenomForThisChain( - packet.DestinationPort, - packet.DestinationChannel, - packet.SourcePort, - packet.SourceChannel, - transferData.Denom, - ) + denomOnNeutron := getDenomForThisChain(packet, transferData.Denom) if denomOnNeutron != sm.TokenIn { return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer Denom must match TokenIn") } @@ -400,11 +436,7 @@ func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.F } if transferAmount.LT(sm.AmountIn) { - return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be >= AmountIn") - } - - if transferData.Receiver != sm.Creator || transferData.Receiver != sm.Receiver { - return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer receiver must equal swap Creator and Receiver") + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be <= AmountIn") } return nil } diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index 3902568b5..e3f48b3d0 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -113,6 +113,7 @@ func (k Keeper) RefundPacketToken( ctx sdk.Context, packet channeltypes.Packet, data transfertypes.FungibleTokenPacketData, + metadata *types.SwapMetadata, ) error { // parse the denomination from the full denom path trace := transfertypes.ParseDenomTrace(data.Denom) @@ -128,8 +129,8 @@ func (k Keeper) RefundPacketToken( } token := sdk.NewCoin(trace.IBCDenom(), transferAmount) - // decode the receiver address - receiver, err := sdk.AccAddressFromBech32(data.Receiver) + // decode the creator address + receiver, err := sdk.AccAddressFromBech32(metadata.Creator) if err != nil { return err } diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go index 57e9faf5e..3c4965db9 100644 --- a/x/ibcswap/types/swap.go +++ b/x/ibcswap/types/swap.go @@ -20,8 +20,11 @@ type PacketMetadata struct { // further in the middleware stack or on the counterparty. type SwapMetadata struct { *dextypes.MsgPlaceLimitOrder - NonRefundable bool `json:"non-refundable,omitempty"` - RefundAddress string `json:"refund-address,omitempty"` + NonRefundable bool `json:"non-refundable,omitempty"` + // If a value is provided for NeutronRefundAddress and the swap fails the Transfer.Amount will be moved to this address for later recovery. + // If no NeutronRefundAddress is provided and a swap fails we will fail the ibc transfer and tokens will be refunded on the source chain. + + NeutronRefundAddress string `json:"refund-address,omitempty"` // Using JSONObject so that objects for next property will not be mutated by golang's lexicographic key sort on map keys during Marshal. // Supports primitives for Unmarshal/Marshal so that an escaped JSON-marshaled string is also valid. @@ -39,10 +42,10 @@ func (sm SwapMetadata) Validate() error { if sm.TokenOut == "" { return sdkerrors.Wrap(ErrInvalidSwapMetadata, "limit order tokenOut cannot be an empty string") } - if sm.RefundAddress != "" { - _, err := sdk.AccAddressFromBech32(sm.RefundAddress) + if sm.NeutronRefundAddress != "" { + _, err := sdk.AccAddressFromBech32(sm.NeutronRefundAddress) if err != nil { - return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.RefundAddress) + return sdkerrors.Wrapf(dextypes.ErrInvalidAddress, "%s is not a valid Neutron address", sm.NeutronRefundAddress) } } @@ -53,6 +56,16 @@ func (sm SwapMetadata) Validate() error { return nil } +// ContainsPFM checks if the Swapetadata is wrapping packet-forward-middleware +func (sm SwapMetadata) ContainsPFM() bool { + if sm.Next == nil { + return false + } + forward, _ := sm.Next.orderedMap.Get("forward") + + return forward != nil +} + // JSONObject is a wrapper type to allow either a primitive type or a JSON object. // In the case the value is a JSON object, OrderedMap type is used so that key order // is retained across Unmarshal/Marshal. diff --git a/x/ibcswap/types/swap_test.go b/x/ibcswap/types/swap_test.go index 87f7107d8..b341bb394 100644 --- a/x/ibcswap/types/swap_test.go +++ b/x/ibcswap/types/swap_test.go @@ -5,7 +5,7 @@ import ( "testing" "cosmossdk.io/math" - forwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/router/types" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" "github.com/iancoleman/orderedmap" "github.com/stretchr/testify/require" @@ -41,8 +41,8 @@ func TestPacketMetadata_Marshal(t *testing.T) { // TestPacketMetadata_MarshalWithNext asserts that the marshaling of the swap metadata works as intended with next field initialized. func TestPacketMetadata_MarshalWithNext(t *testing.T) { - forwardMedata := &forwardtypes.PacketMetadata{ - Forward: &forwardtypes.ForwardMetadata{ + forwardMedata := &pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ Receiver: "cosmos14zde8usc4ur04y3aqnufzzmv2uqdpwwttr5uwv", Port: "transfer", Channel: "channel-0", From ccb221160d7eed6f6cf32f0526b50b2606143d2c Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Sun, 19 Nov 2023 23:42:43 -0500 Subject: [PATCH 277/307] disable use of ibcswap middleware with forward-middleware --- tests/ibc/swap_forward_test.go | 1213 ++++++++++++++++---------------- x/ibcswap/ibc_middleware.go | 53 +- 2 files changed, 636 insertions(+), 630 deletions(-) diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 070378e10..ca44a5357 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -1,608 +1,609 @@ package ibc_test -import ( - "encoding/json" - "time" - - "cosmossdk.io/math" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" - transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" - "github.com/iancoleman/orderedmap" - "golang.org/x/exp/maps" - - "github.com/neutron-org/neutron/x/dex/types" - swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" -) - -func (s *IBCTestSuite) TestSwapAndForward_Success() { - // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - - // Assert that the funds are gone from the acc on provider and present in the acc on Neutron - newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // deposit stake<>ibcTransferToken to initialize the pool on Neutron - depositAmount := math.NewInt(100_000) - s.neutronDeposit( - nativeDenom, - s.providerToNeutronDenom, - depositAmount, - depositAmount, - 0, - 1, - s.neutronAddr) - - // Assert that the deposit was successful and the funds are moved out of the Neutron user acc - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - - // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := math.NewInt(100000) - expectedAmountOut := math.NewInt(99990) - chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - - retries := uint8(0) - - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainBAddr.String(), - Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, - Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - - bz, err := json.Marshal(forwardMetadata) - s.Assert().NoError(err) - - nextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(bz, nextJSON) - s.Assert().NoError(err) - - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 2, - OrderType: types.LimitOrderType_FILL_OR_KILL, - }, - Next: nextJSON, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - // Relay the packets - err = s.RelayAllPacketsAToB(s.neutronChainBPath) - s.Assert().NoError(err) - - // Check that the funds are moved out of the acc on providerChain - s.assertProviderBalance( - s.providerAddr, - nativeDenom, - newProviderBalNative.Sub(ibcTransferAmount), - ) - - // Check that the amountIn is deducted from the neutron overrid receiver account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) - // Check that neutron account did not keep any of the transfer denom - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronChainBPath.EndpointA.ChannelID, - nativeDenom, - ) - transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - - // Check that the funds are now present in the acc on chainB - s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) -} - -func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { - // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - - // Assert that the funds are gone from the acc on provider and present in the acc on Neutron - newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // deposit stake<>ibcTransferToken to initialize the pool on Neutron - depositAmount := math.NewInt(100_000) - s.neutronDeposit( - nativeDenom, - s.providerToNeutronDenom, - depositAmount, - depositAmount, - 0, - 1, - s.neutronAddr) - - // Assert that the deposit was successful and the funds are moved out of the Neutron user acc - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - - // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := math.NewInt(100000) - - expectedOut := math.NewInt(99_990) - - chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() - - retries := uint8(0) - nextForward := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainCAddr.String(), - Port: s.chainBChainCPath.EndpointA.ChannelConfig.PortID, - Channel: s.chainBChainCPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - nextForwardBz, err := json.Marshal(nextForward) - s.Assert().NoError(err) - nextForwardJSON := pfmtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) - - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainBAddr.String(), - Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, - Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nextForwardJSON, - }, - } - bz, err := json.Marshal(forwardMetadata) - s.Assert().NoError(err) - - nextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(bz, nextJSON) - s.Assert().NoError(err) - - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 2, - OrderType: types.LimitOrderType_FILL_OR_KILL, - }, - Next: nextJSON, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Assert().NoError(err) - - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - neutronPacket := maps.Values(s.neutronChain.SentPackets)[0] - err = s.neutronChainBPath.EndpointB.UpdateClient() - s.Require().NoError(err) - err = s.neutronChainBPath.EndpointB.RecvPacket(neutronPacket) - s.Require().NoError(err) - err = s.RelayAllPacketsAToB(s.chainBChainCPath) - s.Require().NoError(err) - - transferDenomPathNeutronChainB := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronChainBPath.EndpointB.ChannelID, - nativeDenom, - ) - transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPathNeutronChainB).IBCDenom() - transferDenomPathChainC := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.chainBChainCPath.EndpointB.ChannelID, - transferDenomPathNeutronChainB, - ) - transferDenomChainC := transfertypes.ParseDenomTrace(transferDenomPathChainC).IBCDenom() - - // Check that the funds are moved out of the acc on chainA - s.assertProviderBalance( - s.providerAddr, - nativeDenom, - newProviderBalNative.Sub(ibcTransferAmount), - ) - // Check that chain B balance is unchanged - s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) - - // Check that funds made it to chainC - s.assertChainCBalance(chainCAddr, transferDenomChainC, expectedOut) -} - -// TestSwapAndForward_UnwindIBCDenomSuccess asserts that the swap and forward middleware stack works as intended in the -// case that a native token from ChainB is sent to ChainA and then ChainA initiates a swap and forward with the token. -// This asserts that denom unwinding works as intended when going provider->neutron->provider -func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { - // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - - // Assert that the funds are gone from the acc on provider and present in the acc on Neutron - newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // deposit stake<>ibcTransferToken to initialize the pool on Neutron - depositAmount := math.NewInt(100_000) - s.neutronDeposit( - nativeDenom, - s.providerToNeutronDenom, - depositAmount, - depositAmount, - 1, - 1, - s.neutronAddr) - - // Assert that the deposit was successful and the funds are moved out of the Neutron user acc - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - - swapAmount := math.NewInt(100_000) - expectedAmountOut := math.NewInt(99980) - - retries := uint8(0) - - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: s.providerAddr.String(), - Port: s.neutronTransferPath.EndpointA.ChannelConfig.PortID, - Channel: s.neutronTransferPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - - bz, err := json.Marshal(forwardMetadata) - s.Assert().NoError(err) - - nextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(bz, nextJSON) - s.Assert().NoError(err) - - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: nativeDenom, - TokenOut: s.providerToNeutronDenom, - AmountIn: swapAmount, - TickIndexInToOut: 2, - OrderType: types.LimitOrderType_FILL_OR_KILL, - }, - Next: nextJSON, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Transfer native denom from neutron to provider - s.IBCTransfer( - s.neutronTransferPath, - s.neutronTransferPath.EndpointA, - s.neutronAddr, - s.providerAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronTransferPath.EndpointB.ChannelID, - nativeDenom, - ) - transferDenomNeutronProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - s.assertProviderBalance(s.providerAddr, transferDenomNeutronProvider, ibcTransferAmount) - - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - transferDenomNeutronProvider, - swapAmount, - string(metadataBz), - ) - - // Relay the packets - err = s.RelayAllPacketsAToB(s.neutronTransferPath) - s.Assert().NoError(err) - s.coordinator.CommitBlock(s.neutronChain) - - // Check that the amountIn is deducted from the neutron override receiever account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, nativeDenom, math.OneInt()) - // Check that the funds are now present on the provider chainer - s.assertProviderBalance( - s.providerAddr, - nativeDenom, - newProviderBalNative.Add(expectedAmountOut), - ) -} - -// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case -// that an incoming IBC swap succeeds but the forward fails when a NeutronRefundAddress is provided. -// The swap will be reverted and the transferred amount will be credited to the refundAddr -func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { - // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - - // Assert that the funds are gone from the acc on provider and present in the acc on Neutron - newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // deposit stake<>ibcTransferToken to initialize the pool on Neutron - depositAmount := math.NewInt(100_000) - s.neutronDeposit( - nativeDenom, - s.providerToNeutronDenom, - depositAmount, - depositAmount, - 0, - 1, - s.neutronAddr) - - // Assert that the deposit was successful and the funds are moved out of the Neutron user acc - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - - // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := math.NewInt(100000) - chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - - retries := uint8(0) - - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainBAddr.String(), - Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, - Channel: "invalid-channel", // add an invalid channel identifier so the forward fails - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - - bz, err := json.Marshal(forwardMetadata) - s.Assert().NoError(err) - - nextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(bz, nextJSON) - s.Assert().NoError(err) - - refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 2, - OrderType: types.LimitOrderType_FILL_OR_KILL, - }, - NeutronRefundAddress: refundAddr.String(), - Next: nextJSON, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - // Relay the packets from neutron => ChainB - err = s.RelayAllPacketsAToB(s.neutronChainBPath) - // Relay Fails - s.Assert().Error(err) - - // Check that the funds are moved out of the acc on providerChain - s.assertProviderBalance( - s.providerAddr, - nativeDenom, - newProviderBalNative.Sub(ibcTransferAmount), - ) - - // Check that nothing remains in the overrideReceiver account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - - // Check that the swap was reverted and the transfer amount is in the refundAddr - s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // Check that nothing made it to chainB - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronChainBPath.EndpointA.ChannelID, - nativeDenom, - ) - transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - - s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) -} - -// TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case -// that an incoming IBC swap succeeds but the forward fails when no NeutronRefundAddress is provided. -// The swap will be reverted and a refund to the src chain will take place. -func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { - // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - "", - ) - - // Assert that the funds are gone from the acc on provider and present in the acc on Neutron - newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - - // deposit stake<>ibcTransferToken to initialize the pool on Neutron - depositAmount := math.NewInt(100_000) - s.neutronDeposit( - nativeDenom, - s.providerToNeutronDenom, - depositAmount, - depositAmount, - 0, - 1, - s.neutronAddr) - - // Assert that the deposit was successful and the funds are moved out of the Neutron user acc - s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) - postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) - s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - - // Compose the IBC transfer memo metadata to be used in the swap and forward - swapAmount := math.NewInt(100000) - chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - - retries := uint8(0) - - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainBAddr.String(), - Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, - Channel: "invalid-channel", // add an invalid channel identifier so the forward fails - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - - bz, err := json.Marshal(forwardMetadata) - s.Assert().NoError(err) - - nextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(bz, nextJSON) - s.Assert().NoError(err) - - metadata := swaptypes.PacketMetadata{ - Swap: &swaptypes.SwapMetadata{ - MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ - Creator: s.neutronAddr.String(), - Receiver: s.neutronAddr.String(), - TokenIn: s.providerToNeutronDenom, - TokenOut: nativeDenom, - AmountIn: swapAmount, - TickIndexInToOut: 2, - OrderType: types.LimitOrderType_FILL_OR_KILL, - }, - Next: nextJSON, - }, - } - - metadataBz, err := json.Marshal(metadata) - s.Require().NoError(err) - - // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata - s.IBCTransferProviderToNeutron( - s.providerAddr, - s.neutronAddr, - nativeDenom, - ibcTransferAmount, - string(metadataBz), - ) - - // Relay the packets from neutron => ChainB - err = s.RelayAllPacketsAToB(s.neutronChainBPath) - // Relay Fails - s.Assert().Error(err) - - // Check that nothing remains in the overrideReceiver account - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - - // Check that nothing made it to chainB - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronChainBPath.EndpointA.ChannelID, - nativeDenom, - ) - transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - - s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) - - // Check that the refund takes place and the funds are moved back to the account on Gaia - s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(depositAmount)) -} +// TODO: fully validate PFM post ibcswap before re-enabling this +// import ( +// "encoding/json" +// "time" + +// "cosmossdk.io/math" +// pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" +// transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" +// "github.com/iancoleman/orderedmap" +// "golang.org/x/exp/maps" + +// "github.com/neutron-org/neutron/x/dex/types" +// swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" +// ) + +// func (s *IBCTestSuite) TestSwapAndForward_Success() { +// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// "", +// ) + +// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron +// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // deposit stake<>ibcTransferToken to initialize the pool on Neutron +// depositAmount := math.NewInt(100_000) +// s.neutronDeposit( +// nativeDenom, +// s.providerToNeutronDenom, +// depositAmount, +// depositAmount, +// 0, +// 1, +// s.neutronAddr) + +// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) +// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) +// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + +// // Compose the IBC transfer memo metadata to be used in the swap and forward +// swapAmount := math.NewInt(100000) +// expectedAmountOut := math.NewInt(99990) +// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + +// retries := uint8(0) + +// forwardMetadata := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: chainBAddr.String(), +// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, +// Channel: s.neutronChainBPath.EndpointA.ChannelID, +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nil, +// }, +// } + +// bz, err := json.Marshal(forwardMetadata) +// s.Assert().NoError(err) + +// nextJSON := new(swaptypes.JSONObject) +// err = json.Unmarshal(bz, nextJSON) +// s.Assert().NoError(err) + +// metadata := swaptypes.PacketMetadata{ +// Swap: &swaptypes.SwapMetadata{ +// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ +// Creator: s.neutronAddr.String(), +// Receiver: s.neutronAddr.String(), +// TokenIn: s.providerToNeutronDenom, +// TokenOut: nativeDenom, +// AmountIn: swapAmount, +// TickIndexInToOut: 2, +// OrderType: types.LimitOrderType_FILL_OR_KILL, +// }, +// Next: nextJSON, +// }, +// } + +// metadataBz, err := json.Marshal(metadata) +// s.Require().NoError(err) + +// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// string(metadataBz), +// ) + +// // Relay the packets +// err = s.RelayAllPacketsAToB(s.neutronChainBPath) +// s.Assert().NoError(err) + +// // Check that the funds are moved out of the acc on providerChain +// s.assertProviderBalance( +// s.providerAddr, +// nativeDenom, +// newProviderBalNative.Sub(ibcTransferAmount), +// ) + +// // Check that the amountIn is deducted from the neutron overrid receiver account +// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) +// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) +// // Check that neutron account did not keep any of the transfer denom +// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + +// transferDenomPath := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.neutronChainBPath.EndpointA.ChannelID, +// nativeDenom, +// ) +// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + +// // Check that the funds are now present in the acc on chainB +// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) +// } + +// func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { +// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// "", +// ) + +// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron +// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // deposit stake<>ibcTransferToken to initialize the pool on Neutron +// depositAmount := math.NewInt(100_000) +// s.neutronDeposit( +// nativeDenom, +// s.providerToNeutronDenom, +// depositAmount, +// depositAmount, +// 0, +// 1, +// s.neutronAddr) + +// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) +// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) +// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + +// // Compose the IBC transfer memo metadata to be used in the swap and forward +// swapAmount := math.NewInt(100000) + +// expectedOut := math.NewInt(99_990) + +// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() +// chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() + +// retries := uint8(0) +// nextForward := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: chainCAddr.String(), +// Port: s.chainBChainCPath.EndpointA.ChannelConfig.PortID, +// Channel: s.chainBChainCPath.EndpointA.ChannelID, +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nil, +// }, +// } +// nextForwardBz, err := json.Marshal(nextForward) +// s.Assert().NoError(err) +// nextForwardJSON := pfmtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) + +// forwardMetadata := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: chainBAddr.String(), +// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, +// Channel: s.neutronChainBPath.EndpointA.ChannelID, +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nextForwardJSON, +// }, +// } +// bz, err := json.Marshal(forwardMetadata) +// s.Assert().NoError(err) + +// nextJSON := new(swaptypes.JSONObject) +// err = json.Unmarshal(bz, nextJSON) +// s.Assert().NoError(err) + +// metadata := swaptypes.PacketMetadata{ +// Swap: &swaptypes.SwapMetadata{ +// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ +// Creator: s.neutronAddr.String(), +// Receiver: s.neutronAddr.String(), +// TokenIn: s.providerToNeutronDenom, +// TokenOut: nativeDenom, +// AmountIn: swapAmount, +// TickIndexInToOut: 2, +// OrderType: types.LimitOrderType_FILL_OR_KILL, +// }, +// Next: nextJSON, +// }, +// } + +// metadataBz, err := json.Marshal(metadata) +// s.Assert().NoError(err) + +// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// string(metadataBz), +// ) + +// neutronPacket := maps.Values(s.neutronChain.SentPackets)[0] +// err = s.neutronChainBPath.EndpointB.UpdateClient() +// s.Require().NoError(err) +// err = s.neutronChainBPath.EndpointB.RecvPacket(neutronPacket) +// s.Require().NoError(err) +// err = s.RelayAllPacketsAToB(s.chainBChainCPath) +// s.Require().NoError(err) + +// transferDenomPathNeutronChainB := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.neutronChainBPath.EndpointB.ChannelID, +// nativeDenom, +// ) +// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPathNeutronChainB).IBCDenom() +// transferDenomPathChainC := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.chainBChainCPath.EndpointB.ChannelID, +// transferDenomPathNeutronChainB, +// ) +// transferDenomChainC := transfertypes.ParseDenomTrace(transferDenomPathChainC).IBCDenom() + +// // Check that the funds are moved out of the acc on chainA +// s.assertProviderBalance( +// s.providerAddr, +// nativeDenom, +// newProviderBalNative.Sub(ibcTransferAmount), +// ) +// // Check that chain B balance is unchanged +// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) + +// // Check that funds made it to chainC +// s.assertChainCBalance(chainCAddr, transferDenomChainC, expectedOut) +// } + +// // TestSwapAndForward_UnwindIBCDenomSuccess asserts that the swap and forward middleware stack works as intended in the +// // case that a native token from ChainB is sent to ChainA and then ChainA initiates a swap and forward with the token. +// // This asserts that denom unwinding works as intended when going provider->neutron->provider +// func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { +// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// "", +// ) + +// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron +// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // deposit stake<>ibcTransferToken to initialize the pool on Neutron +// depositAmount := math.NewInt(100_000) +// s.neutronDeposit( +// nativeDenom, +// s.providerToNeutronDenom, +// depositAmount, +// depositAmount, +// 1, +// 1, +// s.neutronAddr) + +// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) +// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) +// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + +// swapAmount := math.NewInt(100_000) +// expectedAmountOut := math.NewInt(99980) + +// retries := uint8(0) + +// forwardMetadata := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: s.providerAddr.String(), +// Port: s.neutronTransferPath.EndpointA.ChannelConfig.PortID, +// Channel: s.neutronTransferPath.EndpointA.ChannelID, +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nil, +// }, +// } + +// bz, err := json.Marshal(forwardMetadata) +// s.Assert().NoError(err) + +// nextJSON := new(swaptypes.JSONObject) +// err = json.Unmarshal(bz, nextJSON) +// s.Assert().NoError(err) + +// metadata := swaptypes.PacketMetadata{ +// Swap: &swaptypes.SwapMetadata{ +// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ +// Creator: s.neutronAddr.String(), +// Receiver: s.neutronAddr.String(), +// TokenIn: nativeDenom, +// TokenOut: s.providerToNeutronDenom, +// AmountIn: swapAmount, +// TickIndexInToOut: 2, +// OrderType: types.LimitOrderType_FILL_OR_KILL, +// }, +// Next: nextJSON, +// }, +// } + +// metadataBz, err := json.Marshal(metadata) +// s.Require().NoError(err) + +// // Transfer native denom from neutron to provider +// s.IBCTransfer( +// s.neutronTransferPath, +// s.neutronTransferPath.EndpointA, +// s.neutronAddr, +// s.providerAddr, +// nativeDenom, +// ibcTransferAmount, +// "", +// ) +// transferDenomPath := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.neutronTransferPath.EndpointB.ChannelID, +// nativeDenom, +// ) +// transferDenomNeutronProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() +// s.assertProviderBalance(s.providerAddr, transferDenomNeutronProvider, ibcTransferAmount) + +// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// transferDenomNeutronProvider, +// swapAmount, +// string(metadataBz), +// ) + +// // Relay the packets +// err = s.RelayAllPacketsAToB(s.neutronTransferPath) +// s.Assert().NoError(err) +// s.coordinator.CommitBlock(s.neutronChain) + +// // Check that the amountIn is deducted from the neutron override receiever account +// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) +// s.assertNeutronBalance(overrideAddr, nativeDenom, math.OneInt()) +// // Check that the funds are now present on the provider chainer +// s.assertProviderBalance( +// s.providerAddr, +// nativeDenom, +// newProviderBalNative.Add(expectedAmountOut), +// ) +// } + +// // TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case +// // that an incoming IBC swap succeeds but the forward fails when a NeutronRefundAddress is provided. +// // The swap will be reverted and the transferred amount will be credited to the refundAddr +// func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { +// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// "", +// ) + +// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron +// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // deposit stake<>ibcTransferToken to initialize the pool on Neutron +// depositAmount := math.NewInt(100_000) +// s.neutronDeposit( +// nativeDenom, +// s.providerToNeutronDenom, +// depositAmount, +// depositAmount, +// 0, +// 1, +// s.neutronAddr) + +// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) +// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) +// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + +// // Compose the IBC transfer memo metadata to be used in the swap and forward +// swapAmount := math.NewInt(100000) +// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + +// retries := uint8(0) + +// forwardMetadata := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: chainBAddr.String(), +// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, +// Channel: "invalid-channel", // add an invalid channel identifier so the forward fails +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nil, +// }, +// } + +// bz, err := json.Marshal(forwardMetadata) +// s.Assert().NoError(err) + +// nextJSON := new(swaptypes.JSONObject) +// err = json.Unmarshal(bz, nextJSON) +// s.Assert().NoError(err) + +// refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() +// metadata := swaptypes.PacketMetadata{ +// Swap: &swaptypes.SwapMetadata{ +// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ +// Creator: s.neutronAddr.String(), +// Receiver: s.neutronAddr.String(), +// TokenIn: s.providerToNeutronDenom, +// TokenOut: nativeDenom, +// AmountIn: swapAmount, +// TickIndexInToOut: 2, +// OrderType: types.LimitOrderType_FILL_OR_KILL, +// }, +// NeutronRefundAddress: refundAddr.String(), +// Next: nextJSON, +// }, +// } + +// metadataBz, err := json.Marshal(metadata) +// s.Require().NoError(err) + +// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// string(metadataBz), +// ) + +// // Relay the packets from neutron => ChainB +// err = s.RelayAllPacketsAToB(s.neutronChainBPath) +// // Relay Fails +// s.Assert().Error(err) + +// // Check that the funds are moved out of the acc on providerChain +// s.assertProviderBalance( +// s.providerAddr, +// nativeDenom, +// newProviderBalNative.Sub(ibcTransferAmount), +// ) + +// // Check that nothing remains in the overrideReceiver account +// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) +// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) +// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + +// // Check that the swap was reverted and the transfer amount is in the refundAddr +// s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // Check that nothing made it to chainB +// transferDenomPath := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.neutronChainBPath.EndpointA.ChannelID, +// nativeDenom, +// ) +// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + +// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) +// } + +// // TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case +// // that an incoming IBC swap succeeds but the forward fails when no NeutronRefundAddress is provided. +// // The swap will be reverted and a refund to the src chain will take place. +// func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { +// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// "", +// ) + +// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron +// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // deposit stake<>ibcTransferToken to initialize the pool on Neutron +// depositAmount := math.NewInt(100_000) +// s.neutronDeposit( +// nativeDenom, +// s.providerToNeutronDenom, +// depositAmount, +// depositAmount, +// 0, +// 1, +// s.neutronAddr) + +// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) +// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) +// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + +// // Compose the IBC transfer memo metadata to be used in the swap and forward +// swapAmount := math.NewInt(100000) +// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + +// retries := uint8(0) + +// forwardMetadata := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: chainBAddr.String(), +// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, +// Channel: "invalid-channel", // add an invalid channel identifier so the forward fails +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nil, +// }, +// } + +// bz, err := json.Marshal(forwardMetadata) +// s.Assert().NoError(err) + +// nextJSON := new(swaptypes.JSONObject) +// err = json.Unmarshal(bz, nextJSON) +// s.Assert().NoError(err) + +// metadata := swaptypes.PacketMetadata{ +// Swap: &swaptypes.SwapMetadata{ +// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ +// Creator: s.neutronAddr.String(), +// Receiver: s.neutronAddr.String(), +// TokenIn: s.providerToNeutronDenom, +// TokenOut: nativeDenom, +// AmountIn: swapAmount, +// TickIndexInToOut: 2, +// OrderType: types.LimitOrderType_FILL_OR_KILL, +// }, +// Next: nextJSON, +// }, +// } + +// metadataBz, err := json.Marshal(metadata) +// s.Require().NoError(err) + +// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata +// s.IBCTransferProviderToNeutron( +// s.providerAddr, +// s.neutronAddr, +// nativeDenom, +// ibcTransferAmount, +// string(metadataBz), +// ) + +// // Relay the packets from neutron => ChainB +// err = s.RelayAllPacketsAToB(s.neutronChainBPath) +// // Relay Fails +// s.Assert().Error(err) + +// // Check that nothing remains in the overrideReceiver account +// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) +// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) +// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + +// // Check that nothing made it to chainB +// transferDenomPath := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.neutronChainBPath.EndpointA.ChannelID, +// nativeDenom, +// ) +// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + +// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) + +// // Check that the refund takes place and the funds are moved back to the account on Gaia +// s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(depositAmount)) +// } diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index df315b06e..85981c188 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -1,7 +1,6 @@ package ibcswap import ( - "context" "encoding/json" "errors" "strings" @@ -11,7 +10,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" @@ -118,9 +116,7 @@ func (im IBCMiddleware) OnChanCloseConfirm(ctx sdk.Context, portID, channelID st // 2. validate swapMetadata; ErrAck if invalid // 3. Pass through the middleware stack to ibc-go/transfer#OnRecvPacket; transfer coins are sent to receiver // 4. Do swap; handle failures -// 5. If no PFM is present we are done; return ack -// 6. Unpack packet so that it is a valid PFM packet and set required context variables -// 7. Pass through middleware stack again where the forward is handled by packet-forward-middleware#OnRecvPacket + func (im IBCMiddleware) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, @@ -157,10 +153,11 @@ func (im IBCMiddleware) OnRecvPacket( metadata.Creator = overrideReceiver // Update packet data to match the new receiver so that transfer middleware adds tokens to the expected address packet = newPacketWithOverrideReceiver(packet, data, overrideReceiver) - if metadata.ContainsPFM() { - // If we are using PFM change receiver to the expected address for forwarding - metadata.Receiver = overrideReceiver - } + // TODO: fully validate PFM with ibcswap before re-enabling + // if metadata.ContainsPFM() { + // // If we are using PFM change receiver to the expected address for forwarding + // metadata.Receiver = overrideReceiver + // } ack := im.app.OnRecvPacket(ctx, packet, relayer) if ack == nil || !ack.Success() { @@ -205,23 +202,24 @@ func (im IBCMiddleware) OnRecvPacket( packet.Data = dataBz - // Compose our context with values that will be used to pass through to the forward middleware - ctxWithForwardFlags := context.WithValue(cacheCtx.Context(), pfmtypes.ProcessedKey{}, true) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - pfmtypes.NonrefundableKey{}, - true, - ) - ctxWithForwardFlags = context.WithValue( - ctxWithForwardFlags, - pfmtypes.DisableDenomCompositionKey{}, - true, - ) - wrappedSdkCtx := cacheCtx.WithContext(ctxWithForwardFlags) + // TODO: fully validate PFM post ibcswap before re-enabling this + // // Compose our context with values that will be used to pass through to the forward middleware + // ctxWithForwardFlags := context.WithValue(cacheCtx.Context(), pfmtypes.ProcessedKey{}, true) + // ctxWithForwardFlags = context.WithValue( + // ctxWithForwardFlags, + // pfmtypes.NonrefundableKey{}, + // true, + // ) + // ctxWithForwardFlags = context.WithValue( + // ctxWithForwardFlags, + // pfmtypes.DisableDenomCompositionKey{}, + // true, + // ) + // wrappedSdkCtx := cacheCtx.WithContext(ctxWithForwardFlags) // The forward middleware should return a nil ack if the forward is initiated properly. // If not an error occurred, and we return the original ack. - newAck := im.app.OnRecvPacket(wrappedSdkCtx, packet, relayer) + newAck := im.app.OnRecvPacket(cacheCtx, packet, relayer) if newAck != nil { return im.handleFailedSwap(ctx, packet, data, metadata, errors.New(string(newAck.Acknowledgement()))) } @@ -436,7 +434,14 @@ func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.F } if transferAmount.LT(sm.AmountIn) { - return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be <= AmountIn") + return sdkerrors.Wrap(types.ErrInvalidSwapMetadata, "Transfer amount must be >= AmountIn") + } + + if sm.ContainsPFM() { + return sdkerrors.Wrap( + types.ErrInvalidSwapMetadata, + "ibcswap middle cannot be used in conjunction with packet-forward-middleware", + ) } return nil } From 5ab3c497464148f9b3898c32858404abf6c1fc39 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Tue, 14 Nov 2023 13:18:29 -0500 Subject: [PATCH 278/307] Return unused tokenIn to original creator addr --- tests/ibc/gmp_swap_forward_test.go | 5 ++--- tests/ibc/swap_test.go | 8 ++++++-- x/ibcswap/ibc_middleware.go | 3 ++- x/ibcswap/keeper/keeper.go | 15 +++++++++++++++ 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 652e4f211..c8a46781f 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -99,10 +99,9 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Check that the funds are moved out of the acc on providerChain s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - // Check that the amountIn is deducted from the neutron override account + // Check that neutron override account did not keep anything overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) - // Check that neutron override account did not keep any of the transfer denom + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) transferDenomPath := transfertypes.GetPrefixedDenom( diff --git a/tests/ibc/swap_test.go b/tests/ibc/swap_test.go index 44e4c2be4..68ea752de 100644 --- a/tests/ibc/swap_test.go +++ b/tests/ibc/swap_test.go @@ -82,9 +82,13 @@ func (s *IBCTestSuite) TestIBCSwapMiddleware_Success() { // Check that the swap funds are now present in the acc on Neutron s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) - // Check that all of the IBC transfer denom have been used up + // Check that the overrideReceiver did not keep anything overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + + // Check that the unused balance is credited to the original creator + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) } // TestIBCSwapMiddleware_FailRefund asserts that the IBC swap middleware works as intended with Neutron running as a diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 85981c188..75bc9457a 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -146,6 +146,7 @@ func (im IBCMiddleware) OnRecvPacket( // Use overrideReceiver so that users cannot ibcswap through arbitrary addresses. // Instead generate a unique address for each user based on their channel and origin-address + originalCreator := m.Swap.Creator overrideReceiver, err := packetforward.GetReceiver(packet.DestinationChannel, data.Sender) if err != nil { return channeltypes.NewErrorAcknowledgement(err) @@ -166,7 +167,7 @@ func (im IBCMiddleware) OnRecvPacket( // Attempt to perform a swap using a cacheCtx cacheCtx, writeCache := ctx.CacheContext() - res, err := im.keeper.Swap(cacheCtx, metadata.MsgPlaceLimitOrder) + res, err := im.keeper.Swap(cacheCtx, originalCreator, metadata.MsgPlaceLimitOrder) if err != nil { return im.handleFailedSwap(ctx, packet, data, metadata, err) } diff --git a/x/ibcswap/keeper/keeper.go b/x/ibcswap/keeper/keeper.go index e3f48b3d0..2e6073b77 100644 --- a/x/ibcswap/keeper/keeper.go +++ b/x/ibcswap/keeper/keeper.go @@ -53,6 +53,7 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { // Swap calls into the base app's msg service router so that the appropriate handler is called when sending the swap msg. func (k Keeper) Swap( ctx sdk.Context, + originalCreator string, msg *dextypes.MsgPlaceLimitOrder, ) (*dextypes.MsgPlaceLimitOrderResponse, error) { swapHandler := k.msgServiceRouter.Handler(msg) @@ -73,6 +74,20 @@ func (k Keeper) Swap( return nil, err } + amountUnused := msg.AmountIn.Sub(msgSwapRes.CoinIn.Amount) + // If not all tokenIn is swapped and a temporary creator address has been used + // return the unused portion to the original creator address + if amountUnused.IsPositive() && originalCreator != msg.Creator { + overrrideCreatorAddr := sdk.MustAccAddressFromBech32(msg.Creator) + originalCreatorAddr := sdk.MustAccAddressFromBech32(originalCreator) + unusedCoin := sdk.NewCoin(msg.TokenIn, amountUnused) + + err := k.bankKeeper.SendCoins(ctx, overrrideCreatorAddr, originalCreatorAddr, sdk.Coins{unusedCoin}) + if err != nil { + return nil, err + } + } + return msgSwapRes, nil } From 535a383e29413bebe5f3418b806e4f5375a45313 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 20 Nov 2023 00:06:15 -0500 Subject: [PATCH 279/307] Disable gmp swap and forward tests. Add simple gmp ibcswap test --- tests/ibc/gmp_swap_forward_test.go | 167 +++++++++++++++++++++-------- 1 file changed, 121 insertions(+), 46 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index c8a46781f..37673c3e4 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -2,19 +2,15 @@ package ibc_test import ( "encoding/json" - "time" "cosmossdk.io/math" - pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" - transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" "github.com/neutron-org/neutron/x/dex/types" "github.com/neutron-org/neutron/x/gmp" swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" ) -// TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Neutron running as a -// consumer chain connected to two other chains via IBC. +// TestGMPSwap_Success asserts that the swap middleware works as intended when the original message is sent via GMP func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Send an IBC transfer from provider to Neutron, so we can initialize a pool with the IBC denom token + native Neutron token s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, "") @@ -27,6 +23,7 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // deposit stake<>ibcTransferToken to initialize the pool on Neutron depositAmount := math.NewInt(100_000) + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) s.neutronDeposit( nativeDenom, s.providerToNeutronDenom, @@ -38,27 +35,7 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Compose the IBC transfer memo metadata to be used in the swap and forward swapAmount := math.NewInt(100000) - expectedAmountOut := math.NewInt(99990) - chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - - retries := uint8(0) - forwardMetadata := pfmtypes.PacketMetadata{ - Forward: &pfmtypes.ForwardMetadata{ - Receiver: chainBAddr.String(), - Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, - Channel: s.neutronChainBPath.EndpointA.ChannelID, - Timeout: pfmtypes.Duration(5 * time.Minute), - Retries: &retries, - Next: nil, - }, - } - - forwardBz, err := json.Marshal(forwardMetadata) - s.Require().NoError(err) - - forwardNextJSON := new(swaptypes.JSONObject) - err = json.Unmarshal(forwardBz, forwardNextJSON) - s.Require().NoError(err) + expectedOut := math.NewInt(99990) swapMetadata := swaptypes.PacketMetadata{ Swap: &swaptypes.SwapMetadata{ @@ -71,7 +48,6 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { TickIndexInToOut: 2, OrderType: types.LimitOrderType_FILL_OR_KILL, }, - Next: forwardNextJSON, }, } swapMetadataBz, err := json.Marshal(swapMetadata) @@ -88,31 +64,130 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { gmpMetadataBz, err := json.Marshal(gmpMetadata) s.Require().NoError(err) - // Send an IBC transfer from chainA to chainB with packet memo containing the swap metadata + // Send an IBC transfer from chainA to chainB with GMP payload containing the swap metadata s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, string(gmpMetadataBz)) - // Relay the packet - err = s.RelayAllPacketsAToB(s.neutronChainBPath) - s.Assert().NoError(err) - // Check that the funds are moved out of the acc on providerChain - s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - - // Check that neutron override account did not keep anything - overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) - s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) - s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - - transferDenomPath := transfertypes.GetPrefixedDenom( - transfertypes.PortID, - s.neutronChainBPath.EndpointA.ChannelID, + s.assertProviderBalance( + s.providerAddr, nativeDenom, + newProviderBalNative.Sub(ibcTransferAmount), ) - transferDenomChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - // Check that the funds are now present in the acc on chainB - s.assertChainBBalance(chainBAddr, transferDenomChainB, expectedAmountOut) + // Check that the swap funds are now present in the acc on Neutron + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative.Add(expectedOut)) + + // Check that the overrideReceiver did not keep anything + overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) + s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) - s.Assert().NoError(err) + // Check that the unused balance is credited to the original creator + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) } + +// TODO: fully validate PFM post ibcswap before re-enabling this +// // TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Neutron running as a +// // consumer chain connected to two other chains via IBC. +// func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { +// // Send an IBC transfer from provider to Neutron, so we can initialize a pool with the IBC denom token + native Neutron token +// s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, "") + +// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron +// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) + +// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) + +// // deposit stake<>ibcTransferToken to initialize the pool on Neutron +// depositAmount := math.NewInt(100_000) +// s.neutronDeposit( +// nativeDenom, +// s.providerToNeutronDenom, +// depositAmount, +// depositAmount, +// 0, +// 1, +// s.neutronAddr) + +// // Compose the IBC transfer memo metadata to be used in the swap and forward +// swapAmount := math.NewInt(100000) +// expectedAmountOut := math.NewInt(99990) +// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + +// retries := uint8(0) +// forwardMetadata := pfmtypes.PacketMetadata{ +// Forward: &pfmtypes.ForwardMetadata{ +// Receiver: chainBAddr.String(), +// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, +// Channel: s.neutronChainBPath.EndpointA.ChannelID, +// Timeout: pfmtypes.Duration(5 * time.Minute), +// Retries: &retries, +// Next: nil, +// }, +// } + +// forwardBz, err := json.Marshal(forwardMetadata) +// s.Require().NoError(err) + +// forwardNextJSON := new(swaptypes.JSONObject) +// err = json.Unmarshal(forwardBz, forwardNextJSON) +// s.Require().NoError(err) + +// swapMetadata := swaptypes.PacketMetadata{ +// Swap: &swaptypes.SwapMetadata{ +// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ +// Creator: s.neutronAddr.String(), +// Receiver: s.neutronAddr.String(), +// TokenIn: s.providerToNeutronDenom, +// TokenOut: nativeDenom, +// AmountIn: swapAmount, +// TickIndexInToOut: 2, +// OrderType: types.LimitOrderType_FILL_OR_KILL, +// }, +// Next: forwardNextJSON, +// }, +// } +// swapMetadataBz, err := json.Marshal(swapMetadata) + +// s.Require().NoError(err) + +// gmpMetadata := gmp.Message{ +// SourceChain: "axelar", +// SourceAddress: "alice", +// Payload: swapMetadataBz, +// Type: gmp.TypeGeneralMessageWithToken, +// } + +// gmpMetadataBz, err := json.Marshal(gmpMetadata) +// s.Require().NoError(err) + +// // Send an IBC transfer from chainA to chainB with packet memo containing the swap metadata + +// s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, string(gmpMetadataBz)) + +// // Relay the packet +// err = s.RelayAllPacketsAToB(s.neutronChainBPath) +// s.Assert().NoError(err) + +// // Check that the funds are moved out of the acc on providerChain +// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) + +// // Check that neutron override account did not keep anything +// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) +// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) +// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) + +// transferDenomPath := transfertypes.GetPrefixedDenom( +// transfertypes.PortID, +// s.neutronChainBPath.EndpointA.ChannelID, +// nativeDenom, +// ) +// transferDenomChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() + +// // Check that the funds are now present in the acc on chainB +// s.assertChainBBalance(chainBAddr, transferDenomChainB, expectedAmountOut) + +// s.Assert().NoError(err) +// } From 0289bbac57e8046f606057149cc0d2423972708a Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 20 Nov 2023 00:11:35 -0500 Subject: [PATCH 280/307] Add test to ensure that swap-and-forward fails gracefully --- tests/ibc/swap_forward_test.go | 109 ++++++++++++++++++++++++++++----- 1 file changed, 95 insertions(+), 14 deletions(-) diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index ca44a5357..91acbf480 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -1,20 +1,101 @@ package ibc_test -// TODO: fully validate PFM post ibcswap before re-enabling this -// import ( -// "encoding/json" -// "time" - -// "cosmossdk.io/math" -// pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" -// transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" -// "github.com/iancoleman/orderedmap" -// "golang.org/x/exp/maps" - -// "github.com/neutron-org/neutron/x/dex/types" -// swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" -// ) +import ( + "encoding/json" + "time" + + "cosmossdk.io/math" + pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" + + "github.com/neutron-org/neutron/x/dex/types" + swaptypes "github.com/neutron-org/neutron/x/ibcswap/types" +) + +// TestSwapAndForward_Fails asserts that the IBC swap middleware fails gracefully when provided with a package-forward memo +func (s *IBCTestSuite) TestSwapAndForward_Fails() { + // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token + s.IBCTransferProviderToNeutron( + s.providerAddr, + s.neutronAddr, + nativeDenom, + ibcTransferAmount, + "", + ) + newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) + + // deposit stake<>ibcTransferToken to initialize the pool on Neutron + depositAmount := math.NewInt(100_000) + s.neutronDeposit( + nativeDenom, + s.providerToNeutronDenom, + depositAmount, + depositAmount, + 0, + 1, + s.neutronAddr) + + postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) + + // Compose the IBC transfer memo metadata to be used in the swap and forward + swapAmount := math.NewInt(100000) + chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() + + retries := uint8(0) + + forwardMetadata := pfmtypes.PacketMetadata{ + Forward: &pfmtypes.ForwardMetadata{ + Receiver: chainBAddr.String(), + Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, + Channel: s.neutronChainBPath.EndpointA.ChannelID, + Timeout: pfmtypes.Duration(5 * time.Minute), + Retries: &retries, + Next: nil, + }, + } + + bz, err := json.Marshal(forwardMetadata) + s.Assert().NoError(err) + + nextJSON := new(swaptypes.JSONObject) + err = json.Unmarshal(bz, nextJSON) + s.Assert().NoError(err) + + metadata := swaptypes.PacketMetadata{ + Swap: &swaptypes.SwapMetadata{ + MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ + Creator: s.neutronAddr.String(), + Receiver: s.neutronAddr.String(), + TokenIn: s.providerToNeutronDenom, + TokenOut: nativeDenom, + AmountIn: swapAmount, + TickIndexInToOut: 2, + OrderType: types.LimitOrderType_FILL_OR_KILL, + }, + Next: nextJSON, + }, + } + + metadataBz, err := json.Marshal(metadata) + s.Require().NoError(err) + + // Send (failing) IBC transfer with PFM data + s.IBCTransferProviderToNeutron( + s.providerAddr, + s.neutronAddr, + nativeDenom, + ibcTransferAmount, + string(metadataBz), + ) + + // Check that the funds are not present in the account on Neutron + s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) + s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) + + // Check that the refund takes place and the funds are moved back to the account on Gaia + s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) +} +// TODO: fully validate PFM post ibcswap before re-enabling this // func (s *IBCTestSuite) TestSwapAndForward_Success() { // // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token // s.IBCTransferProviderToNeutron( From 5f225afb6e2a55f5e25241f845072e65feb1752f Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 20 Nov 2023 00:20:51 -0500 Subject: [PATCH 281/307] fix typo --- x/ibcswap/ibc_middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 75bc9457a..0466dc3a7 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -441,7 +441,7 @@ func validateSwapPacket(packet channeltypes.Packet, transferData transfertypes.F if sm.ContainsPFM() { return sdkerrors.Wrap( types.ErrInvalidSwapMetadata, - "ibcswap middle cannot be used in conjunction with packet-forward-middleware", + "ibcswap middleware cannot be used in conjunction with packet-forward-middleware", ) } return nil From 8757db9ab355f8f8a581a6e6d5a5dc2d87db3efc Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 20 Nov 2023 00:24:27 -0500 Subject: [PATCH 282/307] remove unused NonRefundable key from SwapMetadata --- x/ibcswap/types/swap.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/x/ibcswap/types/swap.go b/x/ibcswap/types/swap.go index 3c4965db9..0aedf4bc8 100644 --- a/x/ibcswap/types/swap.go +++ b/x/ibcswap/types/swap.go @@ -20,10 +20,8 @@ type PacketMetadata struct { // further in the middleware stack or on the counterparty. type SwapMetadata struct { *dextypes.MsgPlaceLimitOrder - NonRefundable bool `json:"non-refundable,omitempty"` // If a value is provided for NeutronRefundAddress and the swap fails the Transfer.Amount will be moved to this address for later recovery. // If no NeutronRefundAddress is provided and a swap fails we will fail the ibc transfer and tokens will be refunded on the source chain. - NeutronRefundAddress string `json:"refund-address,omitempty"` // Using JSONObject so that objects for next property will not be mutated by golang's lexicographic key sort on map keys during Marshal. From 1587c5e8bc82a073ee58fd901c1156082868a266 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Mon, 20 Nov 2023 15:54:26 +0200 Subject: [PATCH 283/307] update cosmos-sdk to 0.47.6 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 3d91873c5..fe521e720 100644 --- a/go.mod +++ b/go.mod @@ -192,7 +192,7 @@ replace ( github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.0 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v1.0.0 - github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.6 + github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.6-neutron github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index 0e9619a6e..290740da2 100644 --- a/go.sum +++ b/go.sum @@ -936,8 +936,8 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/neilotoole/errgroup v0.1.6/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/neutron-org/admin-module v1.0.0 h1:mmX5U6jz4rX+lk8SB5Bx0Lsugu9bh4PCREMnVkLQoIs= github.com/neutron-org/admin-module v1.0.0/go.mod h1:INknneN2W3Fr9Eld7SpfLRdjyHR1muzFbbqXln1ixic= -github.com/neutron-org/cosmos-sdk v0.47.6 h1:FaHH5DUb4JP1zI945/j+CzbhBvhxqe6iFIn2HER4xks= -github.com/neutron-org/cosmos-sdk v0.47.6/go.mod h1:7BmlRp0txKo2UZ01OLq4DGEjgLDiPgmpRpjLOq89Jys= +github.com/neutron-org/cosmos-sdk v0.47.6-neutron h1:agxUiBWlAGQf5+8A7e5omYrpgbylL+SoSQlCVuQTd3Y= +github.com/neutron-org/cosmos-sdk v0.47.6-neutron/go.mod h1:7BmlRp0txKo2UZ01OLq4DGEjgLDiPgmpRpjLOq89Jys= github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbBUJc= github.com/neutron-org/wasmd v0.43.0/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= From 25b8b59a28862e4098e09009a2e02af96171fc02 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Mon, 20 Nov 2023 16:51:51 +0200 Subject: [PATCH 284/307] lint && format --- tests/ibc/ibc_setup_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ibc/ibc_setup_test.go b/tests/ibc/ibc_setup_test.go index 5b42507c0..2beb6a438 100644 --- a/tests/ibc/ibc_setup_test.go +++ b/tests/ibc/ibc_setup_test.go @@ -320,10 +320,12 @@ func (s *IBCTestSuite) assertProviderBalance( s.assertBalance(s.providerApp.GetTestBankKeeper(), s.providerChain, addr, denom, expectedAmt) } +//nolint:unused func (s *IBCTestSuite) assertChainBBalance(addr sdk.AccAddress, denom string, expectedAmt math.Int) { s.assertBalance(s.bundleB.App.GetTestBankKeeper(), s.bundleB.Chain, addr, denom, expectedAmt) } +//nolint:unused func (s *IBCTestSuite) assertChainCBalance(addr sdk.AccAddress, denom string, expectedAmt math.Int) { s.assertBalance(s.bundleC.App.GetTestBankKeeper(), s.bundleC.Chain, addr, denom, expectedAmt) } @@ -336,7 +338,6 @@ func (s *IBCTestSuite) ReceiverOverrideAddr(channel, sender string) sdk.AccAddre return sdk.MustAccAddressFromBech32(addr) } -//nolint:unparam // keep this flexible even if we aren't currently using all the params func (s *IBCTestSuite) neutronDeposit( token0 string, token1 string, From 728a63e3f4f553ee8a728244181a33312c973118 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 20 Nov 2023 12:22:36 -0500 Subject: [PATCH 285/307] delete commented code --- tests/ibc/gmp_swap_forward_test.go | 105 ----- tests/ibc/swap_forward_test.go | 594 ----------------------------- x/ibcswap/ibc_middleware.go | 20 - 3 files changed, 719 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 37673c3e4..8d35b825b 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -86,108 +86,3 @@ func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Check that the unused balance is credited to the original creator s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.OneInt()) } - -// TODO: fully validate PFM post ibcswap before re-enabling this -// // TestSwapAndForward_Success asserts that the swap and forward middleware stack works as intended with Neutron running as a -// // consumer chain connected to two other chains via IBC. -// func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { -// // Send an IBC transfer from provider to Neutron, so we can initialize a pool with the IBC denom token + native Neutron token -// s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, "") - -// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron -// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // deposit stake<>ibcTransferToken to initialize the pool on Neutron -// depositAmount := math.NewInt(100_000) -// s.neutronDeposit( -// nativeDenom, -// s.providerToNeutronDenom, -// depositAmount, -// depositAmount, -// 0, -// 1, -// s.neutronAddr) - -// // Compose the IBC transfer memo metadata to be used in the swap and forward -// swapAmount := math.NewInt(100000) -// expectedAmountOut := math.NewInt(99990) -// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - -// retries := uint8(0) -// forwardMetadata := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: chainBAddr.String(), -// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, -// Channel: s.neutronChainBPath.EndpointA.ChannelID, -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nil, -// }, -// } - -// forwardBz, err := json.Marshal(forwardMetadata) -// s.Require().NoError(err) - -// forwardNextJSON := new(swaptypes.JSONObject) -// err = json.Unmarshal(forwardBz, forwardNextJSON) -// s.Require().NoError(err) - -// swapMetadata := swaptypes.PacketMetadata{ -// Swap: &swaptypes.SwapMetadata{ -// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ -// Creator: s.neutronAddr.String(), -// Receiver: s.neutronAddr.String(), -// TokenIn: s.providerToNeutronDenom, -// TokenOut: nativeDenom, -// AmountIn: swapAmount, -// TickIndexInToOut: 2, -// OrderType: types.LimitOrderType_FILL_OR_KILL, -// }, -// Next: forwardNextJSON, -// }, -// } -// swapMetadataBz, err := json.Marshal(swapMetadata) - -// s.Require().NoError(err) - -// gmpMetadata := gmp.Message{ -// SourceChain: "axelar", -// SourceAddress: "alice", -// Payload: swapMetadataBz, -// Type: gmp.TypeGeneralMessageWithToken, -// } - -// gmpMetadataBz, err := json.Marshal(gmpMetadata) -// s.Require().NoError(err) - -// // Send an IBC transfer from chainA to chainB with packet memo containing the swap metadata - -// s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, string(gmpMetadataBz)) - -// // Relay the packet -// err = s.RelayAllPacketsAToB(s.neutronChainBPath) -// s.Assert().NoError(err) - -// // Check that the funds are moved out of the acc on providerChain -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative.Sub(ibcTransferAmount)) - -// // Check that neutron override account did not keep anything -// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) -// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) -// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - -// transferDenomPath := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.neutronChainBPath.EndpointA.ChannelID, -// nativeDenom, -// ) -// transferDenomChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - -// // Check that the funds are now present in the acc on chainB -// s.assertChainBBalance(chainBAddr, transferDenomChainB, expectedAmountOut) - -// s.Assert().NoError(err) -// } diff --git a/tests/ibc/swap_forward_test.go b/tests/ibc/swap_forward_test.go index 91acbf480..9e66d0406 100644 --- a/tests/ibc/swap_forward_test.go +++ b/tests/ibc/swap_forward_test.go @@ -94,597 +94,3 @@ func (s *IBCTestSuite) TestSwapAndForward_Fails() { // Check that the refund takes place and the funds are moved back to the account on Gaia s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) } - -// TODO: fully validate PFM post ibcswap before re-enabling this -// func (s *IBCTestSuite) TestSwapAndForward_Success() { -// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// "", -// ) - -// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron -// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // deposit stake<>ibcTransferToken to initialize the pool on Neutron -// depositAmount := math.NewInt(100_000) -// s.neutronDeposit( -// nativeDenom, -// s.providerToNeutronDenom, -// depositAmount, -// depositAmount, -// 0, -// 1, -// s.neutronAddr) - -// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) -// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) -// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - -// // Compose the IBC transfer memo metadata to be used in the swap and forward -// swapAmount := math.NewInt(100000) -// expectedAmountOut := math.NewInt(99990) -// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - -// retries := uint8(0) - -// forwardMetadata := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: chainBAddr.String(), -// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, -// Channel: s.neutronChainBPath.EndpointA.ChannelID, -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nil, -// }, -// } - -// bz, err := json.Marshal(forwardMetadata) -// s.Assert().NoError(err) - -// nextJSON := new(swaptypes.JSONObject) -// err = json.Unmarshal(bz, nextJSON) -// s.Assert().NoError(err) - -// metadata := swaptypes.PacketMetadata{ -// Swap: &swaptypes.SwapMetadata{ -// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ -// Creator: s.neutronAddr.String(), -// Receiver: s.neutronAddr.String(), -// TokenIn: s.providerToNeutronDenom, -// TokenOut: nativeDenom, -// AmountIn: swapAmount, -// TickIndexInToOut: 2, -// OrderType: types.LimitOrderType_FILL_OR_KILL, -// }, -// Next: nextJSON, -// }, -// } - -// metadataBz, err := json.Marshal(metadata) -// s.Require().NoError(err) - -// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// string(metadataBz), -// ) - -// // Relay the packets -// err = s.RelayAllPacketsAToB(s.neutronChainBPath) -// s.Assert().NoError(err) - -// // Check that the funds are moved out of the acc on providerChain -// s.assertProviderBalance( -// s.providerAddr, -// nativeDenom, -// newProviderBalNative.Sub(ibcTransferAmount), -// ) - -// // Check that the amountIn is deducted from the neutron overrid receiver account -// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) -// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.OneInt()) -// // Check that neutron account did not keep any of the transfer denom -// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - -// transferDenomPath := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.neutronChainBPath.EndpointA.ChannelID, -// nativeDenom, -// ) -// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - -// // Check that the funds are now present in the acc on chainB -// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, expectedAmountOut) -// } - -// func (s *IBCTestSuite) TestSwapAndForward_MultiHopSuccess() { -// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// "", -// ) - -// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron -// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // deposit stake<>ibcTransferToken to initialize the pool on Neutron -// depositAmount := math.NewInt(100_000) -// s.neutronDeposit( -// nativeDenom, -// s.providerToNeutronDenom, -// depositAmount, -// depositAmount, -// 0, -// 1, -// s.neutronAddr) - -// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) -// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) -// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - -// // Compose the IBC transfer memo metadata to be used in the swap and forward -// swapAmount := math.NewInt(100000) - -// expectedOut := math.NewInt(99_990) - -// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() -// chainCAddr := s.bundleC.Chain.SenderAccount.GetAddress() - -// retries := uint8(0) -// nextForward := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: chainCAddr.String(), -// Port: s.chainBChainCPath.EndpointA.ChannelConfig.PortID, -// Channel: s.chainBChainCPath.EndpointA.ChannelID, -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nil, -// }, -// } -// nextForwardBz, err := json.Marshal(nextForward) -// s.Assert().NoError(err) -// nextForwardJSON := pfmtypes.NewJSONObject(false, nextForwardBz, orderedmap.OrderedMap{}) - -// forwardMetadata := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: chainBAddr.String(), -// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, -// Channel: s.neutronChainBPath.EndpointA.ChannelID, -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nextForwardJSON, -// }, -// } -// bz, err := json.Marshal(forwardMetadata) -// s.Assert().NoError(err) - -// nextJSON := new(swaptypes.JSONObject) -// err = json.Unmarshal(bz, nextJSON) -// s.Assert().NoError(err) - -// metadata := swaptypes.PacketMetadata{ -// Swap: &swaptypes.SwapMetadata{ -// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ -// Creator: s.neutronAddr.String(), -// Receiver: s.neutronAddr.String(), -// TokenIn: s.providerToNeutronDenom, -// TokenOut: nativeDenom, -// AmountIn: swapAmount, -// TickIndexInToOut: 2, -// OrderType: types.LimitOrderType_FILL_OR_KILL, -// }, -// Next: nextJSON, -// }, -// } - -// metadataBz, err := json.Marshal(metadata) -// s.Assert().NoError(err) - -// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// string(metadataBz), -// ) - -// neutronPacket := maps.Values(s.neutronChain.SentPackets)[0] -// err = s.neutronChainBPath.EndpointB.UpdateClient() -// s.Require().NoError(err) -// err = s.neutronChainBPath.EndpointB.RecvPacket(neutronPacket) -// s.Require().NoError(err) -// err = s.RelayAllPacketsAToB(s.chainBChainCPath) -// s.Require().NoError(err) - -// transferDenomPathNeutronChainB := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.neutronChainBPath.EndpointB.ChannelID, -// nativeDenom, -// ) -// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPathNeutronChainB).IBCDenom() -// transferDenomPathChainC := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.chainBChainCPath.EndpointB.ChannelID, -// transferDenomPathNeutronChainB, -// ) -// transferDenomChainC := transfertypes.ParseDenomTrace(transferDenomPathChainC).IBCDenom() - -// // Check that the funds are moved out of the acc on chainA -// s.assertProviderBalance( -// s.providerAddr, -// nativeDenom, -// newProviderBalNative.Sub(ibcTransferAmount), -// ) -// // Check that chain B balance is unchanged -// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) - -// // Check that funds made it to chainC -// s.assertChainCBalance(chainCAddr, transferDenomChainC, expectedOut) -// } - -// // TestSwapAndForward_UnwindIBCDenomSuccess asserts that the swap and forward middleware stack works as intended in the -// // case that a native token from ChainB is sent to ChainA and then ChainA initiates a swap and forward with the token. -// // This asserts that denom unwinding works as intended when going provider->neutron->provider -// func (s *IBCTestSuite) TestSwapAndForward_UnwindIBCDenomSuccess() { -// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// "", -// ) - -// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron -// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // deposit stake<>ibcTransferToken to initialize the pool on Neutron -// depositAmount := math.NewInt(100_000) -// s.neutronDeposit( -// nativeDenom, -// s.providerToNeutronDenom, -// depositAmount, -// depositAmount, -// 1, -// 1, -// s.neutronAddr) - -// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) -// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) -// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - -// swapAmount := math.NewInt(100_000) -// expectedAmountOut := math.NewInt(99980) - -// retries := uint8(0) - -// forwardMetadata := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: s.providerAddr.String(), -// Port: s.neutronTransferPath.EndpointA.ChannelConfig.PortID, -// Channel: s.neutronTransferPath.EndpointA.ChannelID, -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nil, -// }, -// } - -// bz, err := json.Marshal(forwardMetadata) -// s.Assert().NoError(err) - -// nextJSON := new(swaptypes.JSONObject) -// err = json.Unmarshal(bz, nextJSON) -// s.Assert().NoError(err) - -// metadata := swaptypes.PacketMetadata{ -// Swap: &swaptypes.SwapMetadata{ -// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ -// Creator: s.neutronAddr.String(), -// Receiver: s.neutronAddr.String(), -// TokenIn: nativeDenom, -// TokenOut: s.providerToNeutronDenom, -// AmountIn: swapAmount, -// TickIndexInToOut: 2, -// OrderType: types.LimitOrderType_FILL_OR_KILL, -// }, -// Next: nextJSON, -// }, -// } - -// metadataBz, err := json.Marshal(metadata) -// s.Require().NoError(err) - -// // Transfer native denom from neutron to provider -// s.IBCTransfer( -// s.neutronTransferPath, -// s.neutronTransferPath.EndpointA, -// s.neutronAddr, -// s.providerAddr, -// nativeDenom, -// ibcTransferAmount, -// "", -// ) -// transferDenomPath := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.neutronTransferPath.EndpointB.ChannelID, -// nativeDenom, -// ) -// transferDenomNeutronProvider := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() -// s.assertProviderBalance(s.providerAddr, transferDenomNeutronProvider, ibcTransferAmount) - -// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// transferDenomNeutronProvider, -// swapAmount, -// string(metadataBz), -// ) - -// // Relay the packets -// err = s.RelayAllPacketsAToB(s.neutronTransferPath) -// s.Assert().NoError(err) -// s.coordinator.CommitBlock(s.neutronChain) - -// // Check that the amountIn is deducted from the neutron override receiever account -// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) -// s.assertNeutronBalance(overrideAddr, nativeDenom, math.OneInt()) -// // Check that the funds are now present on the provider chainer -// s.assertProviderBalance( -// s.providerAddr, -// nativeDenom, -// newProviderBalNative.Add(expectedAmountOut), -// ) -// } - -// // TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case -// // that an incoming IBC swap succeeds but the forward fails when a NeutronRefundAddress is provided. -// // The swap will be reverted and the transferred amount will be credited to the refundAddr -// func (s *IBCTestSuite) TestSwapAndForward_ForwardFailsRefundAddr() { -// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// "", -// ) - -// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron -// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // deposit stake<>ibcTransferToken to initialize the pool on Neutron -// depositAmount := math.NewInt(100_000) -// s.neutronDeposit( -// nativeDenom, -// s.providerToNeutronDenom, -// depositAmount, -// depositAmount, -// 0, -// 1, -// s.neutronAddr) - -// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) -// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) -// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - -// // Compose the IBC transfer memo metadata to be used in the swap and forward -// swapAmount := math.NewInt(100000) -// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - -// retries := uint8(0) - -// forwardMetadata := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: chainBAddr.String(), -// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, -// Channel: "invalid-channel", // add an invalid channel identifier so the forward fails -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nil, -// }, -// } - -// bz, err := json.Marshal(forwardMetadata) -// s.Assert().NoError(err) - -// nextJSON := new(swaptypes.JSONObject) -// err = json.Unmarshal(bz, nextJSON) -// s.Assert().NoError(err) - -// refundAddr := s.neutronChain.SenderAccounts[1].SenderAccount.GetAddress() -// metadata := swaptypes.PacketMetadata{ -// Swap: &swaptypes.SwapMetadata{ -// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ -// Creator: s.neutronAddr.String(), -// Receiver: s.neutronAddr.String(), -// TokenIn: s.providerToNeutronDenom, -// TokenOut: nativeDenom, -// AmountIn: swapAmount, -// TickIndexInToOut: 2, -// OrderType: types.LimitOrderType_FILL_OR_KILL, -// }, -// NeutronRefundAddress: refundAddr.String(), -// Next: nextJSON, -// }, -// } - -// metadataBz, err := json.Marshal(metadata) -// s.Require().NoError(err) - -// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// string(metadataBz), -// ) - -// // Relay the packets from neutron => ChainB -// err = s.RelayAllPacketsAToB(s.neutronChainBPath) -// // Relay Fails -// s.Assert().Error(err) - -// // Check that the funds are moved out of the acc on providerChain -// s.assertProviderBalance( -// s.providerAddr, -// nativeDenom, -// newProviderBalNative.Sub(ibcTransferAmount), -// ) - -// // Check that nothing remains in the overrideReceiver account -// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) -// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) -// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - -// // Check that the swap was reverted and the transfer amount is in the refundAddr -// s.assertNeutronBalance(refundAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // Check that nothing made it to chainB -// transferDenomPath := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.neutronChainBPath.EndpointA.ChannelID, -// nativeDenom, -// ) -// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - -// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) -// } - -// // TestSwapAndForward_ForwardFailsRefundAddr asserts that the swap and forward middleware stack works as intended in the case -// // that an incoming IBC swap succeeds but the forward fails when no NeutronRefundAddress is provided. -// // The swap will be reverted and a refund to the src chain will take place. -// func (s *IBCTestSuite) TestSwapAndForward_ForwardFails() { -// // Send an IBC transfer from provider chain to neutron, so we can initialize a pool with the IBC denom token + native Neutron token -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// "", -// ) - -// // Assert that the funds are gone from the acc on provider and present in the acc on Neutron -// newProviderBalNative := genesisWalletAmount.Sub(ibcTransferAmount) -// s.assertProviderBalance(s.providerAddr, nativeDenom, newProviderBalNative) - -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, ibcTransferAmount) - -// // deposit stake<>ibcTransferToken to initialize the pool on Neutron -// depositAmount := math.NewInt(100_000) -// s.neutronDeposit( -// nativeDenom, -// s.providerToNeutronDenom, -// depositAmount, -// depositAmount, -// 0, -// 1, -// s.neutronAddr) - -// // Assert that the deposit was successful and the funds are moved out of the Neutron user acc -// s.assertNeutronBalance(s.neutronAddr, s.providerToNeutronDenom, math.ZeroInt()) -// postDepositNeutronBalNative := genesisWalletAmount.Sub(depositAmount) -// s.assertNeutronBalance(s.neutronAddr, nativeDenom, postDepositNeutronBalNative) - -// // Compose the IBC transfer memo metadata to be used in the swap and forward -// swapAmount := math.NewInt(100000) -// chainBAddr := s.bundleB.Chain.SenderAccount.GetAddress() - -// retries := uint8(0) - -// forwardMetadata := pfmtypes.PacketMetadata{ -// Forward: &pfmtypes.ForwardMetadata{ -// Receiver: chainBAddr.String(), -// Port: s.neutronChainBPath.EndpointA.ChannelConfig.PortID, -// Channel: "invalid-channel", // add an invalid channel identifier so the forward fails -// Timeout: pfmtypes.Duration(5 * time.Minute), -// Retries: &retries, -// Next: nil, -// }, -// } - -// bz, err := json.Marshal(forwardMetadata) -// s.Assert().NoError(err) - -// nextJSON := new(swaptypes.JSONObject) -// err = json.Unmarshal(bz, nextJSON) -// s.Assert().NoError(err) - -// metadata := swaptypes.PacketMetadata{ -// Swap: &swaptypes.SwapMetadata{ -// MsgPlaceLimitOrder: &types.MsgPlaceLimitOrder{ -// Creator: s.neutronAddr.String(), -// Receiver: s.neutronAddr.String(), -// TokenIn: s.providerToNeutronDenom, -// TokenOut: nativeDenom, -// AmountIn: swapAmount, -// TickIndexInToOut: 2, -// OrderType: types.LimitOrderType_FILL_OR_KILL, -// }, -// Next: nextJSON, -// }, -// } - -// metadataBz, err := json.Marshal(metadata) -// s.Require().NoError(err) - -// // Send an IBC transfer from provider to neutron with packet memo containing the swap metadata -// s.IBCTransferProviderToNeutron( -// s.providerAddr, -// s.neutronAddr, -// nativeDenom, -// ibcTransferAmount, -// string(metadataBz), -// ) - -// // Relay the packets from neutron => ChainB -// err = s.RelayAllPacketsAToB(s.neutronChainBPath) -// // Relay Fails -// s.Assert().Error(err) - -// // Check that nothing remains in the overrideReceiver account -// overrideAddr := s.ReceiverOverrideAddr(s.neutronTransferPath.EndpointA.ChannelID, s.providerAddr.String()) -// s.assertNeutronBalance(overrideAddr, s.providerToNeutronDenom, math.ZeroInt()) -// s.assertNeutronBalance(overrideAddr, nativeDenom, math.ZeroInt()) - -// // Check that nothing made it to chainB -// transferDenomPath := transfertypes.GetPrefixedDenom( -// transfertypes.PortID, -// s.neutronChainBPath.EndpointA.ChannelID, -// nativeDenom, -// ) -// transferDenomNeutronChainB := transfertypes.ParseDenomTrace(transferDenomPath).IBCDenom() - -// s.assertChainBBalance(chainBAddr, transferDenomNeutronChainB, math.ZeroInt()) - -// // Check that the refund takes place and the funds are moved back to the account on Gaia -// s.assertProviderBalance(s.providerAddr, nativeDenom, genesisWalletAmount.Sub(depositAmount)) -// } diff --git a/x/ibcswap/ibc_middleware.go b/x/ibcswap/ibc_middleware.go index 0466dc3a7..23c4750e5 100644 --- a/x/ibcswap/ibc_middleware.go +++ b/x/ibcswap/ibc_middleware.go @@ -154,11 +154,6 @@ func (im IBCMiddleware) OnRecvPacket( metadata.Creator = overrideReceiver // Update packet data to match the new receiver so that transfer middleware adds tokens to the expected address packet = newPacketWithOverrideReceiver(packet, data, overrideReceiver) - // TODO: fully validate PFM with ibcswap before re-enabling - // if metadata.ContainsPFM() { - // // If we are using PFM change receiver to the expected address for forwarding - // metadata.Receiver = overrideReceiver - // } ack := im.app.OnRecvPacket(ctx, packet, relayer) if ack == nil || !ack.Success() { @@ -203,21 +198,6 @@ func (im IBCMiddleware) OnRecvPacket( packet.Data = dataBz - // TODO: fully validate PFM post ibcswap before re-enabling this - // // Compose our context with values that will be used to pass through to the forward middleware - // ctxWithForwardFlags := context.WithValue(cacheCtx.Context(), pfmtypes.ProcessedKey{}, true) - // ctxWithForwardFlags = context.WithValue( - // ctxWithForwardFlags, - // pfmtypes.NonrefundableKey{}, - // true, - // ) - // ctxWithForwardFlags = context.WithValue( - // ctxWithForwardFlags, - // pfmtypes.DisableDenomCompositionKey{}, - // true, - // ) - // wrappedSdkCtx := cacheCtx.WithContext(ctxWithForwardFlags) - // The forward middleware should return a nil ack if the forward is initiated properly. // If not an error occurred, and we return the original ack. newAck := im.app.OnRecvPacket(cacheCtx, packet, relayer) From d13ded6bf93cf3b183caf2281f1addb5822025a4 Mon Sep 17 00:00:00 2001 From: Julian Compagni Portis Date: Mon, 20 Nov 2023 12:22:58 -0500 Subject: [PATCH 286/307] bump pfm to 7.1.2 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 61c7a29f3..dfb978790 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.6 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index 3daa3c9fe..81a9c6f42 100644 --- a/go.sum +++ b/go.sum @@ -401,6 +401,8 @@ 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-apps/middleware/packet-forward-middleware/v7 v7.1.1 h1:PqIK9vTr6zxCdQmrDZwxwL4KMAqg/GRGsiMEiaMP4wA= github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b h1:3//qzSqcb+SKs5H88D0BfYTLZ9z4Idz4LlZ1kkfdGjw= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= From 22fcbef471182d3c430044633dfb37d645a1f575 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 21 Nov 2023 17:38:07 +0300 Subject: [PATCH 287/307] updated wasmd to 0.45 --- go.mod | 6 +++--- go.sum | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index fe521e720..2f55ab8d3 100644 --- a/go.mod +++ b/go.mod @@ -7,8 +7,8 @@ require ( cosmossdk.io/errors v1.0.0 cosmossdk.io/log v1.2.1 cosmossdk.io/math v1.2.0 - github.com/CosmWasm/wasmd v0.43.0 - github.com/CosmWasm/wasmvm v1.4.1 + github.com/CosmWasm/wasmd v0.45.0 + github.com/CosmWasm/wasmvm v1.5.0 github.com/armon/go-metrics v0.4.1 github.com/cometbft/cometbft v0.37.2 github.com/cometbft/cometbft-db v0.8.0 @@ -190,7 +190,7 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d - github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.0 + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v1.0.0 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.6-neutron github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 diff --git a/go.sum b/go.sum index 290740da2..e7a58ec6e 100644 --- a/go.sum +++ b/go.sum @@ -223,6 +223,8 @@ github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQ github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/CosmWasm/wasmvm v1.4.1 h1:YgodVlBrXa2HJZzOXjWDH0EIRwQzK3zuA73dDPRRLS4= github.com/CosmWasm/wasmvm v1.4.1/go.mod h1:fXB+m2gyh4v9839zlIXdMZGeLAxqUdYdFQqYsTha2hc= +github.com/CosmWasm/wasmvm v1.5.0 h1:3hKeT9SfwfLhxTGKH3vXaKFzBz1yuvP8SlfwfQXbQfw= +github.com/CosmWasm/wasmvm v1.5.0/go.mod h1:fXB+m2gyh4v9839zlIXdMZGeLAxqUdYdFQqYsTha2hc= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= @@ -940,6 +942,8 @@ github.com/neutron-org/cosmos-sdk v0.47.6-neutron h1:agxUiBWlAGQf5+8A7e5omYrpgby github.com/neutron-org/cosmos-sdk v0.47.6-neutron/go.mod h1:7BmlRp0txKo2UZ01OLq4DGEjgLDiPgmpRpjLOq89Jys= github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbBUJc= github.com/neutron-org/wasmd v0.43.0/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= +github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80 h1:NZxcnl5FHTyRjwuHPh6f4jFPvK5OHez7CQvElN+Nz/E= +github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80/go.mod h1:k2/B7hBKbCEHhhOSaiv7UBHUR2fLVb003pnswasgG/w= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= From bcc99dcd15b709e5057133aadec99732d96807ee Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 22 Nov 2023 14:00:48 +0200 Subject: [PATCH 288/307] fix ignite --- Makefile | 2 +- config.yml | 25 + docs/static/openapi.yml | 5512 +++++++++++++----- go.mod | 22 +- go.sum | 42 +- proto/neutron/interchaintxs/v1/genesis.proto | 2 +- proto/neutron/interchaintxs/v1/params.proto | 2 +- proto/neutron/interchaintxs/v1/query.proto | 2 +- x/interchaintxs/types/genesis.pb.go | 24 +- x/interchaintxs/types/params.pb.go | 40 +- x/interchaintxs/types/query.pb.go | 81 +- x/interchaintxs/types/tx.pb.go | 104 +- 12 files changed, 4232 insertions(+), 1626 deletions(-) create mode 100644 config.yml diff --git a/Makefile b/Makefile index 8bf3b11ab..b6b749271 100644 --- a/Makefile +++ b/Makefile @@ -250,4 +250,4 @@ stop-docker-container: mocks: @echo "Regenerate mocks..." - @go generate ./... \ No newline at end of file + @go generate ./... diff --git a/config.yml b/config.yml new file mode 100644 index 000000000..cb2ab0eee --- /dev/null +++ b/config.yml @@ -0,0 +1,25 @@ +version: 1 +build: + main: x/../ + proto: + path: proto + third_party_paths: + - third_party/proto + - proto_vendor +accounts: +- name: alice + coins: + - 200000000untrn + - 200000000stake +faucet: + name: bob + coins: + - 500000ustrd + - 100000stake + host: 0.0.0.0:4500 +client: + openapi: + path: docs/static/openapi.yml +validators: +- name: alice + bonded: 100000000stake diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 9fdfa7be7..5a4103ac3 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -216,6 +216,487 @@ paths: type: object properties: proposals: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain + at least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should + be in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, + for URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions + as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently + available in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods + of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL + and the unpack + + methods only use the fully qualified type name after + the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if + the proposal passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the + proposal. When + + querying a proposal via gRPC, this field is not + populated until the + + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: >- + abstain_count is the number of abstain votes on a + proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto + votes on a proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: >- + voting_start_time is the starting time to vote on a + proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + description: >- + metadata is any arbitrary metadata attached to the + proposal. + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: Proposer is the address of the proposal sumbitter + description: >- + Proposal defines the core field members of a governance + proposal. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /cosmos/adminmodule/adminmodule/archivedproposalslegacy: + get: + summary: Queries a list of archived proposals. + operationId: CosmosAdminmoduleAdminmoduleArchivedProposalsLegacy + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposalsLegacy: type: array items: type: object @@ -15435,19 +15916,19 @@ paths: format: int64 title: >- Height at which validator was first a candidate OR was - unjailed + un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a - bonded + Index which is incremented every time a validator is + bonded in a block and - in a block and may have signed a precommit or not. This - in conjunction with the + _may_ have signed a pre-commit or not. This in + conjunction with the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the + missed block bitmap. jailed_until: type: string format: date-time @@ -15458,18 +15939,20 @@ paths: type: boolean description: >- Whether or not a validator has been tombstoned (killed - out of validator set). It is set + out of validator - once the validator commits an equivocation or for any - other configured misbehiavor. + set). It is set once the validator commits an + equivocation or for any other + + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to + avoid unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -15609,19 +16092,19 @@ paths: format: int64 title: >- Height at which validator was first a candidate OR was - unjailed + un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a - bonded + Index which is incremented every time a validator is + bonded in a block and - in a block and may have signed a precommit or not. This in - conjunction with the + _may_ have signed a pre-commit or not. This in conjunction + with the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the + missed block bitmap. jailed_until: type: string format: date-time @@ -15632,18 +16115,20 @@ paths: type: boolean description: >- Whether or not a validator has been tombstoned (killed out - of validator set). It is set + of validator + + set). It is set once the validator commits an equivocation + or for any other - once the validator commits an equivocation or for any - other configured misbehiavor. + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to avoid + unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -19472,7 +19957,6 @@ paths: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -19480,16 +19964,9 @@ paths: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -19792,7 +20269,6 @@ paths: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -19800,16 +20276,9 @@ paths: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -20325,7 +20794,6 @@ paths: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -20333,16 +20801,9 @@ paths: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -20353,7 +20814,6 @@ paths: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -20361,8 +20821,6 @@ paths: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types @@ -36206,7 +36664,7 @@ paths: - Query /neutron/contractmanager/failures: get: - summary: Queries a list of Failure items. + summary: Queries a list of Failures occurred on the network. operationId: NeutronContractmanagerFailures responses: '200': @@ -36219,28 +36677,32 @@ paths: items: type: object properties: - channel_id: - type: string - title: ChannelId address: type: string title: Address of the failed contract id: type: string format: uint64 - title: id of the failure under specific address - ack_id: + title: Id of the failure under specific address + sudo_payload: type: string - format: uint64 - title: ACK id to restore - ack_type: + format: byte + title: >- + Serialized MessageSudoCallback with Packet and Ack(if + exists) + error: type: string - title: Acknowledgement type - description: >- + title: >- + Redacted error response of the sudo call. Full error is + emitted as an event + title: >- Failure message contains information about ACK failures and can be used to replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm + contract failed for some reason pagination: type: object properties: @@ -36269,6 +36731,9 @@ paths: repeated Bar results = 1; PageResponse page = 2; } + description: >- + QueryFailuresResponse is response type for the Query/Failures RPC + method. default: description: An unexpected error response. schema: @@ -36286,158 +36751,186 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: address - in: query - required: false - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. + one "/" character. The last segment of the URL's path + must represent - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /neutron/contractmanager/failures/{address}: - get: - summary: Queries a Failure by address. - operationId: NeutronContractmanagerAddressFailures - responses: - '200': - description: A successful response. - schema: - type: object - properties: - failures: - type: array - items: - type: object - properties: - channel_id: - type: string - title: ChannelId - address: - type: string - title: Address of the failed contract - id: - type: string - format: uint64 - title: id of the failure under specific address - ack_id: - type: string - format: uint64 - title: ACK id to restore - ack_type: - type: string - title: Acknowledgement type - description: >- - Failure message contains information about ACK failures and - can be used to + expect it to use in the context of Any. However, for + URLs which use the - replay ACK in case of requirement. - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + scheme `http`, `https`, or no scheme, one can optionally + set up a type - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + server that maps type URLs to message definitions as + follows: - corresponding request message has used PageRequest. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - name: address - in: path - required: true + description: address of the contract which Sudo call failed. + in: query + required: false type: string + - name: failure_id + description: ID of the failure for the given contract. + in: query + required: false + type: string + format: uint64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -36496,123 +36989,47 @@ paths: type: boolean tags: - Query - /neutron/contractmanager/params: - get: - summary: Parameters queries the parameters of the module. - operationId: NeutronContractmanagerParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /neutron/cron/params: - get: - summary: Queries the parameters of the module. - operationId: NeutronCronParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - security_address: - type: string - title: Security address that can remove schedules - limit: - type: string - format: uint64 - title: Limit of schedules executed in one block - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /neutron/cron/schedule: + /neutron/contractmanager/failures/{address}: get: - summary: Queries a list of Schedule items. - operationId: NeutronCronSchedules + summary: Queries Failures by contract address. + operationId: NeutronContractmanagerAddressFailures responses: '200': description: A successful response. schema: type: object properties: - schedules: + failures: type: array items: type: object properties: - name: + address: type: string - title: Name of schedule - period: + title: Address of the failed contract + id: type: string format: uint64 - title: Period in blocks - msgs: - type: array - items: - type: object - properties: - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - title: >- - Msg is json encoded message to be passed to the - contract - title: Msgs that will be executed every period amount of time - last_execute_height: + title: Id of the failure under specific address + sudo_payload: type: string - format: uint64 - title: Last execution's block height + format: byte + title: >- + Serialized MessageSudoCallback with Packet and Ack(if + exists) + error: + type: string + title: >- + Redacted error response of the sudo call. Full error is + emitted as an event + title: >- + Failure message contains information about ACK failures and + can be used to + + replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm + contract failed for some reason pagination: type: object properties: @@ -36641,6 +37058,9 @@ paths: repeated Bar results = 1; PageResponse page = 2; } + description: >- + QueryFailuresResponse is response type for the Query/Failures RPC + method. default: description: An unexpected error response. schema: @@ -36658,8 +37078,186 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: + - name: address + description: address of the contract which Sudo call failed. + in: path + required: true + type: string + - name: failure_id + description: ID of the failure for the given contract. + in: query + required: false + type: string + format: uint64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -36718,98 +37316,77 @@ paths: type: boolean tags: - Query - /neutron/cron/schedule/{name}: + /neutron/contractmanager/failures/{address}/{failure_id}: get: - summary: Queries a Schedule by name. - operationId: NeutronCronSchedule + summary: Queries a Failure by contract address and failure ID. + operationId: NeutronContractmanagerAddressFailure responses: '200': description: A successful response. schema: type: object properties: - schedule: - type: object - properties: - name: - type: string - title: Name of schedule - period: - type: string - format: uint64 - title: Period in blocks - msgs: - type: array - items: - type: object - properties: - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - title: >- - Msg is json encoded message to be passed to the - contract - title: Msgs that will be executed every period amount of time - last_execute_height: - type: string - format: uint64 - title: Last execution's block height - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + failures: type: array items: type: object properties: - '@type': + address: type: string - additionalProperties: {} - parameters: - - name: name - in: path - required: true - type: string - tags: - - Query - /neutron/feeburner/params: - get: - summary: Parameters queries the parameters of the module. - operationId: NeutronFeeburnerParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. + title: Address of the failed contract + id: + type: string + format: uint64 + title: Id of the failure under specific address + sudo_payload: + type: string + format: byte + title: >- + Serialized MessageSudoCallback with Packet and Ack(if + exists) + error: + type: string + title: >- + Redacted error response of the sudo call. Full error is + emitted as an event + title: >- + Failure message contains information about ACK failures and + can be used to + + replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm + contract failed for some reason + pagination: type: object properties: - neutron_denom: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string + format: uint64 title: >- - Defines Neutron denom, which will be burned during fee - processing, any + total is total number of results available if + PageRequest.count_total - other denom will be sent to Treasury - reserve_address: - type: string - title: Deprecated in v0.4.4. Is not used anymore - treasury_address: - type: string - title: Defines treasury address + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } description: >- - QueryParamsResponse is response type for the Query/Params RPC + QueryFailuresResponse is response type for the Query/Failures RPC method. default: description: An unexpected error response. @@ -36828,288 +37405,248 @@ paths: properties: '@type': type: string - additionalProperties: {} - tags: - - Query - /neutron/feeburner/total_burned_neutrons_amount: - get: - summary: TotalBurnedNeutronsAmount queries total amount of burned neutron fees. - operationId: NeutronFeeburnerTotalBurnedNeutronsAmount - responses: - '200': - description: A successful response. - schema: - type: object - properties: - total_burned_neutrons_amount: - type: object - properties: - coin: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + protocol buffer message. This string must contain at + least - NOTE: The amount field is an Int which implements the - custom method + one "/" character. The last segment of the URL's path + must represent - signatures required by gogoproto. - title: >- - TotalBurnedNeutronsAmount defines total amount of burned - neutron fees - description: |- - QueryTotalBurnedNeutronsAmountResponse is response type for the - Query/QueryTotalBurnedNeutronsAmount method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /neutron-org/neutron/feerefunder/info: - get: - operationId: NeutronFeerefunderFeeInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - fee_info: - type: object - properties: - payer: - type: string - packet_id: - type: object - properties: - channel_id: - type: string - port_id: - type: string - sequence: - type: string - format: uint64 - fee: - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - NOTE: The amount field is an Int which implements - the custom method + (e.g., leading "." is not accepted). - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + In practice, teams usually precompile into the binary + all types that they - NOTE: The amount field is an Int which implements - the custom method + expect it to use in the context of Any. However, for + URLs which use the - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - NOTE: The amount field is an Int which implements - the custom method - signatures required by gogoproto. - title: the packet timeout fee - title: >- - Fee defines the ICS29 receive, acknowledgement and timeout - fees - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } parameters: - - name: channel_id + - name: address + description: address of the contract which Sudo call failed. + in: path + required: true + type: string + - name: failure_id + description: ID of the failure for the given contract. + in: path + required: true + type: string + format: uint64 + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. in: query required: false type: string - - name: port_id + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. in: query required: false type: string - - name: sequence + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. in: query required: false type: string format: uint64 - tags: - - Query - /neutron-org/neutron/feerefunder/params: - get: - summary: Parameters queries the parameters of the module. - operationId: NeutronFeerefunderParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - min_fee: - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - NOTE: The amount field is an Int which implements - the custom method + a count of the total number of items available for pagination in + UIs. - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + count_total is only respected when offset is used. It is ignored + when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - NOTE: The amount field is an Int which implements - the custom method - signatures required by gogoproto. - title: the packet timeout fee - title: >- - Fee defines the ICS29 receive, acknowledgement and timeout - fees - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query - /neutron/interchainqueries/params: + /neutron/contractmanager/params: get: summary: Parameters queries the parameters of the module. - operationId: NeutronInterchainqueriesParams + operationId: NeutronContractmanagerParams responses: '200': description: A successful response. @@ -37120,43 +37657,9 @@ paths: description: params holds all the parameters of this module. type: object properties: - query_submit_timeout: - type: string - format: uint64 - title: >- - Defines amount of blocks required before query becomes - available for - - removal by anybody - query_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - description: Amount of coins deposited for the query. - tx_query_removal_limit: + sudo_call_gas_limit: type: string format: uint64 - description: >- - Amount of tx hashes to be removed during a single - EndBlock. Can vary to - - balance between network cleaning speed and EndBlock - duration. A zero value - - means no limit. description: >- QueryParamsResponse is response type for the Query/Params RPC method. @@ -37347,85 +37850,1078 @@ paths: } tags: - Query - /neutron/interchainqueries/query_result: + /neutron/cron/params: get: - operationId: NeutronInterchainqueriesQueryResult + summary: Queries the parameters of the module. + operationId: NeutronCronParams responses: '200': description: A successful response. schema: type: object properties: - result: + params: + description: params holds all the parameters of this module. type: object properties: - kv_results: - type: array - items: - type: object - properties: - storage_prefix: - type: string - title: is the substore name (acc, staking, etc.) - key: - type: string - format: byte - title: is the key in IAVL store - value: - type: string - format: byte - title: is the value in IAVL store - Proof: - title: >- - is the Merkle Proof which proves existence of - key-value pair in IAVL - - storage - type: object - properties: - ops: - type: array - items: - type: object - properties: - type: - type: string - key: - type: string - format: byte - data: - type: string - format: byte - title: >- - ProofOp defines an operation used for - calculating Merkle root - - The data could be arbitrary format, providing - nessecary data - - for example neighbouring node hash - block: - type: object - properties: - next_block_header: - title: >- - We need to know block X+1 to verify response of - transaction for block X - - since LastResultsHash is root hash of all results from - the txs from the - - previous block + security_address: + type: string + title: Security address that can remove schedules + limit: + type: string + format: uint64 + title: Limit of schedules executed in one block + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/cron/schedule: + get: + summary: Queries a list of Schedule items. + operationId: NeutronCronSchedules + responses: + '200': + description: A successful response. + schema: + type: object + properties: + schedules: + type: array + items: + type: object + properties: + name: + type: string + title: Name of schedule + period: + type: string + format: uint64 + title: Period in blocks + msgs: + type: array + items: type: object properties: - '@type': + contract: type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain - at least + title: Contract is the address of the smart contract + msg: + type: string + title: >- + Msg is json encoded message to be passed to the + contract + title: Msgs that will be executed every period amount of time + last_execute_height: + type: string + format: uint64 + title: Last execution's block height + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /neutron/cron/schedule/{name}: + get: + summary: Queries a Schedule by name. + operationId: NeutronCronSchedule + responses: + '200': + description: A successful response. + schema: + type: object + properties: + schedule: + type: object + properties: + name: + type: string + title: Name of schedule + period: + type: string + format: uint64 + title: Period in blocks + msgs: + type: array + items: + type: object + properties: + contract: + type: string + title: Contract is the address of the smart contract + msg: + type: string + title: >- + Msg is json encoded message to be passed to the + contract + title: Msgs that will be executed every period amount of time + last_execute_height: + type: string + format: uint64 + title: Last execution's block height + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: name + in: path + required: true + type: string + tags: + - Query + /neutron/feeburner/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronFeeburnerParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + neutron_denom: + type: string + title: >- + Defines Neutron denom, which will be burned during fee + processing, any + + other denom will be sent to Treasury + reserve_address: + type: string + title: Deprecated in v0.4.4. Is not used anymore + treasury_address: + type: string + title: Defines treasury address + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/feeburner/total_burned_neutrons_amount: + get: + summary: TotalBurnedNeutronsAmount queries total amount of burned neutron fees. + operationId: NeutronFeeburnerTotalBurnedNeutronsAmount + responses: + '200': + description: A successful response. + schema: + type: object + properties: + total_burned_neutrons_amount: + type: object + properties: + coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + title: >- + TotalBurnedNeutronsAmount defines total amount of burned + neutron fees + description: |- + QueryTotalBurnedNeutronsAmountResponse is response type for the + Query/QueryTotalBurnedNeutronsAmount method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron-org/neutron/feerefunder/info: + get: + operationId: NeutronFeerefunderFeeInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + fee_info: + type: object + properties: + payer: + type: string + packet_id: + type: object + properties: + channel_id: + type: string + port_id: + type: string + sequence: + type: string + format: uint64 + fee: + type: object + properties: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet timeout fee + title: >- + Fee defines the ICS29 receive, acknowledgement and timeout + fees + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: channel_id + in: query + required: false + type: string + - name: port_id + in: query + required: false + type: string + - name: sequence + in: query + required: false + type: string + format: uint64 + tags: + - Query + /neutron-org/neutron/feerefunder/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronFeerefunderParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + min_fee: + type: object + properties: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + title: the packet timeout fee + title: >- + Fee defines the ICS29 receive, acknowledgement and timeout + fees + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /neutron/interchainqueries/params: + get: + summary: Parameters queries the parameters of the module. + operationId: NeutronInterchainqueriesParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + query_submit_timeout: + type: string + format: uint64 + title: >- + Defines amount of blocks required before query becomes + available for + + removal by anybody + query_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Amount of coins deposited for the query. + tx_query_removal_limit: + type: string + format: uint64 + description: >- + Amount of tx hashes to be removed during a single + EndBlock. Can vary to + + balance between network cleaning speed and EndBlock + duration. A zero value + + means no limit. + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /neutron/interchainqueries/query_result: + get: + operationId: NeutronInterchainqueriesQueryResult + responses: + '200': + description: A successful response. + schema: + type: object + properties: + result: + type: object + properties: + kv_results: + type: array + items: + type: object + properties: + storage_prefix: + type: string + title: is the substore name (acc, staking, etc.) + key: + type: string + format: byte + title: is the key in IAVL store + value: + type: string + format: byte + title: is the value in IAVL store + Proof: + title: >- + is the Merkle Proof which proves existence of + key-value pair in IAVL + + storage + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + title: >- + ProofOp defines an operation used for + calculating Merkle root + + The data could be arbitrary format, providing + nessecary data + + for example neighbouring node hash + block: + type: object + properties: + next_block_header: + title: >- + We need to know block X+1 to verify response of + transaction for block X + + since LastResultsHash is root hash of all results from + the txs from the + + previous block + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain + at least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should + be in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, + for URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions + as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently + available in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any + values in the form + + of utility functions or additional generated methods + of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL + and the unpack + + methods only use the fully qualified type name after + the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will + yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the + regular + + representation of the deserialized, embedded message, + with an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a + custom JSON + + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + header: + title: >- + We need to know block X to verify inclusion of + transaction for block X + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain + at least one "/" character. The last segment of the URL's path must represent @@ -37577,311 +39073,825 @@ paths: If the embedded message type is well-known and has a custom JSON - representation, that representation will be embedded - adding a field + representation, that representation will be embedded + adding a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message + [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tx: + type: object + properties: + response: + type: object + properties: + code: + type: integer + format: int64 + data: + type: string + format: byte + log: + type: string + title: nondeterministic + info: + type: string + title: nondeterministic + gas_wanted: + type: string + format: int64 + gas_used: + type: string + format: int64 + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + title: nondeterministic + description: >- + EventAttribute is a single key-value + pair, associated with an event. + description: >- + Event allows application developers to + attach additional information to + + ResponseBeginBlock, ResponseEndBlock, + ResponseCheckTx and ResponseDeliverTx. + + Later, transactions may be queried using + these events. + title: nondeterministic + codespace: + type: string + delivery_proof: + title: >- + is the Merkle Proof which proves existence of + response in block with height + + next_block_header.Height + type: object + properties: + total: + type: string + format: int64 + index: + type: string + format: int64 + leaf_hash: + type: string + format: byte + aunts: + type: array + items: + type: string + format: byte + inclusion_proof: + title: >- + is the Merkle Proof which proves existence of data + in block with height + + header.Height + type: object + properties: + total: + type: string + format: int64 + index: + type: string + format: int64 + leaf_hash: + type: string + format: byte + aunts: + type: array + items: + type: string + format: byte + data: + type: string + format: byte + title: is body of the transaction + height: + type: string + format: uint64 + revision: + type: string + format: uint64 + allow_kv_callbacks: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: query_id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /neutron/interchainqueries/registered_queries: + get: + operationId: NeutronInterchainqueriesRegisteredQueries + responses: + '200': + description: A successful response. + schema: + type: object + properties: + registered_queries: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + description: The unique id of the registered query. + owner: + type: string + description: The address that registered the query. + query_type: + type: string + title: 'The query type identifier: `kv` or `tx` now' + keys: + type: array + items: + type: object + properties: + path: + type: string + title: >- + Path (storage prefix) to the storage where you + want to read value by key + + (usually name of cosmos-sdk module: 'staking', + 'bank', etc.) + key: + type: string + format: byte + title: Key you want to read from the storage + title: >- + The KV-storage keys for which we want to get values from + remote chain + transactions_filter: + type: string + title: The filter for transaction search ICQ + connection_id: + type: string + title: >- + The IBC connection ID for getting ConsensusState to + verify proofs + update_period: + type: string + format: uint64 + description: >- + Parameter that defines how often the query must be + updated. + last_submitted_result_local_height: + type: string + format: uint64 + description: >- + The local chain last block height when the query result + was updated. + last_submitted_result_remote_height: + description: >- + The remote chain last block height when the query result + was updated. + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the + purposes of updating and + + freezing clients + deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. + + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + description: Amount of coins deposited for the query. + submit_timeout: + type: string + format: uint64 + description: >- + Timeout before query becomes available for everybody to + remove. + registered_at_height: + type: string + format: uint64 + description: The local chain height when the query was registered. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they - `value` which holds the custom JSON in addition to the - `@type` + expect it to use in the context of Any. However, for + URLs which use the - field. Example (for message - [google.protobuf.Duration][]): + scheme `http`, `https`, or no scheme, one can optionally + set up a type - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - header: - title: >- - We need to know block X to verify inclusion of - transaction for block X - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + server that maps type URLs to message definitions as + follows: - protocol buffer message. This string must contain - at least - one "/" character. The last segment of the URL's - path must represent + * If no scheme is provided, `https` is assumed. - the fully qualified name of the type (as in + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - `path/google.protobuf.Duration`). The name should - be in a canonical form + Note: this functionality is not currently available in + the official - (e.g., leading "." is not accepted). + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - In practice, teams usually precompile into the - binary all types that they - expect it to use in the context of Any. However, - for URLs which use the + Schemes other than `http`, `https` (or the empty scheme) + might be - scheme `http`, `https`, or no scheme, one can - optionally set up a type + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - server that maps type URLs to message definitions - as follows: + URL that describes the type of the serialized message. - * If no scheme is provided, `https` is assumed. + Protobuf library provides support to pack/unpack Any values + in the form - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + of utility functions or additional generated methods of the + Any type. - Note: this functionality is not currently - available in the official - protobuf release, and it is not used for type URLs - beginning with + Example 1: Pack and unpack a message in C++. - type.googleapis.com. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - Schemes other than `http`, `https` (or the empty - scheme) might be + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + Example 3: Pack and unpack a message in Python. - URL that describes the type of the serialized message. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - Protobuf library provides support to pack/unpack Any - values in the form + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - of utility functions or additional generated methods - of the Any type. + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Example 1: Pack and unpack a message in C++. + methods only use the fully qualified type name after the + last '/' - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Example 2: Pack and unpack a message in Java. + name "y.z". - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + JSON - Example 4: Pack and unpack a message in Go + ==== - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + The JSON representation of an `Any` value uses the regular - The pack methods provided by protobuf library will by - default use + representation of the deserialized, embedded message, with + an - 'type.googleapis.com/full.type.name' as the type URL - and the unpack + additional field `@type` which contains the type URL. + Example: - methods only use the fully qualified type name after - the last '/' + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - name "y.z". + If the embedded message type is well-known and has a custom + JSON + representation, that representation will be embedded adding + a field + `value` which holds the custom JSON in addition to the + `@type` - JSON + field. Example (for message [google.protobuf.Duration][]): - ==== + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: owners + in: query + required: false + type: array + items: + type: string + collectionFormat: multi + - name: connection_id + in: query + required: false + type: string + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - The JSON representation of an `Any` value uses the - regular + It is less efficient than using key. Only one of offset or key + should - representation of the deserialized, embedded message, - with an + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. - additional field `@type` which contains the type URL. - Example: + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + a count of the total number of items available for pagination in + UIs. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + count_total is only respected when offset is used. It is ignored + when key - If the embedded message type is well-known and has a - custom JSON + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - representation, that representation will be embedded - adding a field - `value` which holds the custom JSON in addition to the - `@type` + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /neutron/interchainqueries/registered_query: + get: + operationId: NeutronInterchainqueriesRegisteredQuery + responses: + '200': + description: A successful response. + schema: + type: object + properties: + registered_query: + type: object + properties: + id: + type: string + format: uint64 + description: The unique id of the registered query. + owner: + type: string + description: The address that registered the query. + query_type: + type: string + title: 'The query type identifier: `kv` or `tx` now' + keys: + type: array + items: + type: object + properties: + path: + type: string + title: >- + Path (storage prefix) to the storage where you want + to read value by key - field. Example (for message - [google.protobuf.Duration][]): + (usually name of cosmos-sdk module: 'staking', + 'bank', etc.) + key: + type: string + format: byte + title: Key you want to read from the storage + title: >- + The KV-storage keys for which we want to get values from + remote chain + transactions_filter: + type: string + title: The filter for transaction search ICQ + connection_id: + type: string + title: >- + The IBC connection ID for getting ConsensusState to verify + proofs + update_period: + type: string + format: uint64 + description: >- + Parameter that defines how often the query must be + updated. + last_submitted_result_local_height: + type: string + format: uint64 + description: >- + The local chain last block height when the query result + was updated. + last_submitted_result_remote_height: + description: >- + The remote chain last block height when the query result + was updated. + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + title: >- + Height is a monotonically increasing data type - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tx: - type: object - properties: - response: - type: object - properties: - code: - type: integer - format: int64 - data: - type: string - format: byte - log: - type: string - title: nondeterministic - info: - type: string - title: nondeterministic - gas_wanted: - type: string - format: int64 - gas_used: - type: string - format: int64 - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value - pair, associated with an event. - description: >- - Event allows application developers to - attach additional information to + that can be compared against another Height for the + purposes of updating and - ResponseBeginBlock, ResponseEndBlock, - ResponseCheckTx and ResponseDeliverTx. + freezing clients + deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - Later, transactions may be queried using - these events. - title: nondeterministic - codespace: - type: string - delivery_proof: - title: >- - is the Merkle Proof which proves existence of - response in block with height - next_block_header.Height - type: object - properties: - total: - type: string - format: int64 - index: - type: string - format: int64 - leaf_hash: - type: string - format: byte - aunts: - type: array - items: - type: string - format: byte - inclusion_proof: - title: >- - is the Merkle Proof which proves existence of data - in block with height + NOTE: The amount field is an Int which implements the + custom method - header.Height - type: object - properties: - total: - type: string - format: int64 - index: - type: string - format: int64 - leaf_hash: - type: string - format: byte - aunts: - type: array - items: - type: string - format: byte - data: - type: string - format: byte - title: is body of the transaction - height: + signatures required by gogoproto. + description: Amount of coins deposited for the query. + submit_timeout: type: string format: uint64 - revision: + description: >- + Timeout before query becomes available for everybody to + remove. + registered_at_height: type: string format: uint64 - allow_kv_callbacks: - type: boolean + description: The local chain height when the query was registered. default: description: An unexpected error response. schema: @@ -38075,139 +40085,18 @@ paths: format: uint64 tags: - Query - /neutron/interchainqueries/registered_queries: + /neutron/interchainqueries/remote_height: get: - operationId: NeutronInterchainqueriesRegisteredQueries + operationId: NeutronInterchainqueriesLastRemoteHeight responses: '200': description: A successful response. schema: type: object properties: - registered_queries: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: The unique id of the registered query. - owner: - type: string - description: The address that registered the query. - query_type: - type: string - title: 'The query type identifier: `kv` or `tx` now' - keys: - type: array - items: - type: object - properties: - path: - type: string - title: >- - Path (storage prefix) to the storage where you - want to read value by key - - (usually name of cosmos-sdk module: 'staking', - 'bank', etc.) - key: - type: string - format: byte - title: Key you want to read from the storage - title: >- - The KV-storage keys for which we want to get values from - remote chain - transactions_filter: - type: string - title: The filter for transaction search ICQ - connection_id: - type: string - title: >- - The IBC connection ID for getting ConsensusState to - verify proofs - update_period: - type: string - format: uint64 - description: >- - Parameter that defines how often the query must be - updated. - last_submitted_result_local_height: - type: string - format: uint64 - description: >- - The local chain last block height when the query result - was updated. - last_submitted_result_remote_height: - description: >- - The remote chain last block height when the query result - was updated. - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the - purposes of updating and - - freezing clients - deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - description: Amount of coins deposited for the query. - submit_timeout: - type: string - format: uint64 - description: >- - Timeout before query becomes available for everybody to - remove. - registered_at_height: - type: string - format: uint64 - description: The local chain height when the query was registered. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + height: + type: string + format: uint64 default: description: An unexpected error response. schema: @@ -38394,159 +40283,33 @@ paths: "value": "1.212s" } parameters: - - name: owners - in: query - required: false - type: array - items: - type: string - collectionFormat: multi - name: connection_id in: query required: false type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /neutron/interchainqueries/registered_query: + /neutron/interchaintxs/params: get: - operationId: NeutronInterchainqueriesRegisteredQuery + summary: Parameters queries the parameters of the module. + operationId: NeutronInterchaintxsV1Params responses: '200': description: A successful response. schema: type: object properties: - registered_query: + params: + description: params holds all the parameters of this module. type: object properties: - id: + msg_submit_tx_max_messages: type: string format: uint64 - description: The unique id of the registered query. - owner: - type: string - description: The address that registered the query. - query_type: - type: string - title: 'The query type identifier: `kv` or `tx` now' - keys: - type: array - items: - type: object - properties: - path: - type: string - title: >- - Path (storage prefix) to the storage where you want - to read value by key - - (usually name of cosmos-sdk module: 'staking', - 'bank', etc.) - key: - type: string - format: byte - title: Key you want to read from the storage - title: >- - The KV-storage keys for which we want to get values from - remote chain - transactions_filter: - type: string - title: The filter for transaction search ICQ - connection_id: - type: string title: >- - The IBC connection ID for getting ConsensusState to verify - proofs - update_period: - type: string - format: uint64 - description: >- - Parameter that defines how often the query must be - updated. - last_submitted_result_local_height: - type: string - format: uint64 - description: >- - The local chain last block height when the query result - was updated. - last_submitted_result_remote_height: - description: >- - The remote chain last block height when the query result - was updated. - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the - purposes of updating and - - freezing clients - deposit: + Defines maximum amount of messages to be passed in + MsgSubmitTx + register_fee: type: array items: type: object @@ -38563,17 +40326,12 @@ paths: custom method signatures required by gogoproto. - description: Amount of coins deposited for the query. - submit_timeout: - type: string - format: uint64 - description: >- - Timeout before query becomes available for everybody to - remove. - registered_at_height: - type: string - format: uint64 - description: The local chain height when the query was registered. + title: >- + Defines a minimum fee required to register interchain + account + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. default: description: An unexpected error response. schema: @@ -38759,26 +40517,21 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: query_id - in: query - required: false - type: string - format: uint64 tags: - Query - /neutron/interchainqueries/remote_height: + /neutron/interchaintxs/{owner_address}/{interchain_account_id}/{connection_id}/interchain_account_address: get: - operationId: NeutronInterchainqueriesLastRemoteHeight + operationId: NeutronInterchaintxsV1InterchainAccountAddress responses: '200': description: A successful response. schema: type: object properties: - height: + interchain_account_address: type: string - format: uint64 + title: The corresponding interchain account address on the host chain + title: Query response for an interchain account address default: description: An unexpected error response. schema: @@ -38965,9 +40718,32 @@ paths: "value": "1.212s" } parameters: + - name: owner_address + description: >- + owner_address is the owner of the interchain account on the + controller + + chain + in: path + required: true + type: string + - name: interchain_account_id + description: >- + interchain_account_id is an identifier of your interchain account + from + + which you want to execute msgs + in: path + required: true + type: string - name: connection_id - in: query - required: false + description: >- + connection_id is an IBC connection identifier between Neutron and + remote + + chain + in: path + required: true type: string tags: - Query @@ -39927,6 +41703,9 @@ paths: - Query /osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/authority_metadata: get: + summary: |- + DenomAuthorityMetadata defines a gRPC query method for fetching + DenomAuthorityMetadata for a particular denom. operationId: OsmosisTokenfactoryV1Beta1DenomAuthorityMetadata responses: '200': @@ -39948,6 +41727,59 @@ paths: only one Admin permission, but is planned to be extended to the future. + description: >- + QueryDenomAuthorityMetadataResponse defines the response structure + for the + + DenomAuthorityMetadata gRPC query. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: creator + in: path + required: true + type: string + - name: subdenom + in: path + required: true + type: string + tags: + - Query + /osmosis/tokenfactory/v1beta1/denoms/factory/{creator}/{subdenom}/before_send_hook: + get: + summary: |- + BeforeSendHookAddress defines a gRPC query method for + getting the address registered for the before send hook. + operationId: OsmosisTokenfactoryV1Beta1BeforeSendHookAddress + responses: + '200': + description: A successful response. + schema: + type: object + properties: + contract_addr: + type: string + description: >- + QueryBeforeSendHookAddressResponse defines the response structure + for the + + DenomBeforeSendHook gRPC query. default: description: An unexpected error response. schema: @@ -39979,6 +41811,9 @@ paths: - Query /osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}: get: + summary: |- + DenomsFromCreator defines a gRPC query method for fetching all + denominations created by a specific admin/creator. operationId: OsmosisTokenfactoryV1Beta1DenomsFromCreator responses: '200': @@ -39990,6 +41825,11 @@ paths: type: array items: type: string + description: >- + QueryDenomsFromCreatorRequest defines the response structure for + the + + DenomsFromCreator gRPC query. default: description: An unexpected error response. schema: @@ -40017,7 +41857,11 @@ paths: - Query /osmosis/tokenfactory/v1beta1/params: get: - summary: Params returns the total set of minting parameters. + summary: >- + Params defines a gRPC query method that returns the tokenfactory + module's + + parameters. operationId: OsmosisTokenfactoryV1Beta1Params responses: '200': @@ -40046,15 +41890,30 @@ paths: custom method signatures required by gogoproto. - title: >- - DenomCreationFee is the fee required to create a new denom - using the tokenfactory module + description: >- + DenomCreationFee defines the fee to be charged on the + creation of a new + + denom. The fee is drawn from the MsgCreateDenom's sender + account, and + + transferred to the community pool. + denom_creation_gas_consume: + type: string + format: uint64 + description: >- + DenomCreationGasConsume defines the gas cost for creating + a new denom. + + This is intended as a spam deterrence mechanism. + + + See: https://github.com/CosmWasm/token-factory/issues/11 fee_collector_address: type: string title: >- FeeCollectorAddress is the address where fees collected from denom creation are sent to - title: Params holds parameters for the tokenfactory module description: >- QueryParamsResponse is the response type for the Query/Params RPC method. @@ -40078,10 +41937,49 @@ paths: additionalProperties: {} tags: - Query - /pob/builder/v1/bid: + /ibc/apps/packetforward/v1/params: + get: + summary: Params queries all parameters of the packetforward module. + operationId: PacketforwardV1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + fee_percentage: + type: string + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /block-sdk/auction/v1/bid: post: - summary: AuctionBid defines a method for sending bids to the x/builder module. - operationId: PobBuilderV1AuctionBid + summary: AuctionBid defines a method for sending bids to the x/auction module. + operationId: SdkAuctionV1AuctionBid responses: '200': description: A successful response. @@ -40137,10 +42035,10 @@ paths: collectionFormat: multi tags: - Msg - /pob/builder/v1/params: + /block-sdk/auction/v1/params: get: - summary: Params queries the parameters of the x/builder module. - operationId: PobBuilderV1Params + summary: Params queries the parameters of the x/auction module. + operationId: SdkAuctionV1Params responses: '200': description: A successful response. @@ -40224,50 +42122,20 @@ paths: additionalProperties: {} tags: - Query - /ibc/apps/router/v1/params: - get: - summary: Params queries all parameters of the router module. - operationId: RouterV1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - fee_percentage: - type: string - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query definitions: cosmos.adminmodule.adminmodule.MsgAddAdminResponse: type: object cosmos.adminmodule.adminmodule.MsgDeleteAdminResponse: type: object + cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: >- + MsgSubmitProposalLegacyResponse defines the Msg/SubmitProposalLegacy + response type. cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse: type: object properties: @@ -40282,10 +42150,10 @@ definitions: type: array items: type: string - cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse: + cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse: type: object properties: - proposals: + proposalsLegacy: type: array items: type: object @@ -40427,6 +42295,278 @@ definitions: format: date-time description: voting_end_time is the end time of voting on a proposal. description: Proposal defines the core field members of a governance proposal. + cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse: + type: object + properties: + proposals: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding a + field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if the + proposal passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: >- + final_tally_result is the final tally result of the proposal. + When + + querying a proposal via gRPC, this field is not populated until + the + + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the proposal. + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: Proposer is the address of the proposal sumbitter + description: Proposal defines the core field members of a governance proposal. cosmos.base.v1beta1.Coin: type: object properties: @@ -40439,6 +42579,297 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. + cosmos.gov.v1.Proposal: + type: object + properties: + id: + type: string + format: uint64 + description: id defines the unique id of the proposal. + messages: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + messages are the arbitrary messages to be executed if the proposal + passes. + status: + description: status defines the proposal status. + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + final_tally_result: + description: |- + final_tally_result is the final tally result of the proposal. When + querying a proposal via gRPC, this field is not populated until the + proposal's voting period has ended. + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: >- + no_with_veto_count is the number of no with veto votes on a + proposal. + submit_time: + type: string + format: date-time + description: submit_time is the time of proposal submission. + deposit_end_time: + type: string + format: date-time + description: deposit_end_time is the end time for deposition. + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: total_deposit is the total deposit on the proposal. + voting_start_time: + type: string + format: date-time + description: voting_start_time is the starting time to vote on a proposal. + voting_end_time: + type: string + format: date-time + description: voting_end_time is the end time of voting on a proposal. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the proposal. + title: + type: string + description: 'Since: cosmos-sdk 0.47' + title: title is the title of the proposal + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is a short summary of the proposal + proposer: + type: string + description: 'Since: cosmos-sdk 0.47' + title: Proposer is the address of the proposal sumbitter + description: Proposal defines the core field members of a governance proposal. + cosmos.gov.v1.ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + cosmos.gov.v1.TallyResult: + type: object + properties: + yes_count: + type: string + description: yes_count is the number of yes votes on a proposal. + abstain_count: + type: string + description: abstain_count is the number of abstain votes on a proposal. + no_count: + type: string + description: no_count is the number of no votes on a proposal. + no_with_veto_count: + type: string + description: no_with_veto_count is the number of no with veto votes on a proposal. + description: TallyResult defines a standard tally for a governance proposal. cosmos.gov.v1beta1.Proposal: type: object properties: @@ -52420,18 +54851,19 @@ definitions: start_height: type: string format: int64 - title: Height at which validator was first a candidate OR was unjailed + title: Height at which validator was first a candidate OR was un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded + Index which is incremented every time a validator is bonded in a + block and - in a block and may have signed a precommit or not. This in - conjunction with the + _may_ have signed a pre-commit or not. This in conjunction with + the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the missed + block bitmap. jailed_until: type: string format: date-time @@ -52442,18 +54874,20 @@ definitions: type: boolean description: >- Whether or not a validator has been tombstoned (killed out of - validator set). It is set + validator + + set). It is set once the validator commits an equivocation or for + any other - once the validator commits an equivocation or for any other - configured misbehiavor. + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to avoid + unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -52477,18 +54911,19 @@ definitions: start_height: type: string format: int64 - title: Height at which validator was first a candidate OR was unjailed + title: Height at which validator was first a candidate OR was un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded + Index which is incremented every time a validator is bonded in a + block and - in a block and may have signed a precommit or not. This in - conjunction with the + _may_ have signed a pre-commit or not. This in conjunction with + the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the missed + block bitmap. jailed_until: type: string format: date-time @@ -52499,18 +54934,20 @@ definitions: type: boolean description: >- Whether or not a validator has been tombstoned (killed out of - validator set). It is set + validator - once the validator commits an equivocation or for any other - configured misbehiavor. + set). It is set once the validator commits an equivocation or + for any other + + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to avoid + unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -52556,18 +54993,18 @@ definitions: start_height: type: string format: int64 - title: Height at which validator was first a candidate OR was unjailed + title: Height at which validator was first a candidate OR was un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded + Index which is incremented every time a validator is bonded in a block + and - in a block and may have signed a precommit or not. This in conjunction - with the + _may_ have signed a pre-commit or not. This in conjunction with the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the missed block + bitmap. jailed_until: type: string format: date-time @@ -52578,18 +55015,18 @@ definitions: type: boolean description: >- Whether or not a validator has been tombstoned (killed out of - validator set). It is set + validator + + set). It is set once the validator commits an equivocation or for any + other - once the validator commits an equivocation or for any other configured - misbehiavor. + configured misbehavior. missed_blocks_counter: type: string format: int64 - description: >- - A counter kept to avoid unnecessary array reads. - - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + description: |- + A counter of missed (unsigned) blocks. It is used to avoid unnecessary + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -56840,7 +59277,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -56848,16 +59284,9 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -56868,7 +59297,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -56876,8 +59304,6 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types @@ -56901,7 +59327,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -56909,16 +59334,9 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -57089,6 +59507,11 @@ definitions: format: byte title: base64-encode raw value title: Model is a struct that holds a KV pair + cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse: + type: object + description: |- + MsgAddCodeUploadParamsAddressesResponse defines the response + structure for executing a MsgAddCodeUploadParamsAddresses message. cosmwasm.wasm.v1.MsgClearAdminResponse: type: object title: MsgClearAdminResponse returns empty data @@ -57139,6 +59562,11 @@ definitions: MsgPinCodes message. Since: 0.40 + cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse: + type: object + description: |- + MsgRemoveCodeUploadParamsAddressesResponse defines the response + structure for executing a MsgRemoveCodeUploadParamsAddresses message. cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse: type: object properties: @@ -57154,6 +59582,26 @@ definitions: for executing a MsgStoreAndInstantiateContract message. Since: 0.40 + cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse: + type: object + properties: + code_id: + type: string + format: uint64 + title: CodeID is the reference to the stored WASM code + checksum: + type: string + format: byte + title: Checksum is the sha256 hash of the stored code + data: + type: string + format: byte + title: Data contains bytes to returned from the contract + description: |- + MsgStoreAndMigrateContractResponse defines the response structure + for executing a MsgStoreAndMigrateContract message. + + Since: 0.42 cosmwasm.wasm.v1.MsgStoreCodeResponse: type: object properties: @@ -57188,6 +59636,9 @@ definitions: cosmwasm.wasm.v1.MsgUpdateAdminResponse: type: object title: MsgUpdateAdminResponse returns empty data + cosmwasm.wasm.v1.MsgUpdateContractLabelResponse: + type: object + title: MsgUpdateContractLabelResponse returns empty data cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse: type: object title: MsgUpdateInstantiateConfigResponse returns empty data @@ -57209,7 +59660,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -57217,16 +59667,9 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -57237,7 +59680,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -57245,8 +59687,6 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types @@ -57313,7 +59753,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -57321,16 +59760,9 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -57366,7 +59798,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -57374,16 +59805,9 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -57667,7 +60091,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -57675,16 +60098,9 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types - address: - type: string - title: |- - Address - Deprecated: replaced by addresses addresses: type: array items: @@ -57695,7 +60111,6 @@ definitions: enum: - ACCESS_TYPE_UNSPECIFIED - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_ONLY_ADDRESS - ACCESS_TYPE_EVERYBODY - ACCESS_TYPE_ANY_OF_ADDRESSES default: ACCESS_TYPE_UNSPECIFIED @@ -57703,8 +60118,6 @@ definitions: - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to a single address - Deprecated: use AccessTypeAnyOfAddresses instead - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses title: AccessType permission types @@ -66081,28 +68494,42 @@ definitions: neutron.contractmanager.Failure: type: object properties: - channel_id: - type: string - title: ChannelId address: type: string title: Address of the failed contract id: type: string format: uint64 - title: id of the failure under specific address - ack_id: + title: Id of the failure under specific address + sudo_payload: type: string - format: uint64 - title: ACK id to restore - ack_type: + format: byte + title: Serialized MessageSudoCallback with Packet and Ack(if exists) + error: type: string - title: Acknowledgement type - description: |- + title: >- + Redacted error response of the sudo call. Full error is emitted as an + event + title: >- Failure message contains information about ACK failures and can be used to + replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm contract failed for + some reason + neutron.contractmanager.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 neutron.contractmanager.Params: type: object + properties: + sudo_call_gas_limit: + type: string + format: uint64 description: Params defines the parameters for the module. neutron.contractmanager.QueryFailuresResponse: type: object @@ -66112,28 +68539,30 @@ definitions: items: type: object properties: - channel_id: - type: string - title: ChannelId address: type: string title: Address of the failed contract id: type: string format: uint64 - title: id of the failure under specific address - ack_id: + title: Id of the failure under specific address + sudo_payload: type: string - format: uint64 - title: ACK id to restore - ack_type: + format: byte + title: Serialized MessageSudoCallback with Packet and Ack(if exists) + error: type: string - title: Acknowledgement type - description: >- + title: >- + Redacted error response of the sudo call. Full error is emitted + as an event + title: >- Failure message contains information about ACK failures and can be used to replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm contract + failed for some reason pagination: type: object properties: @@ -66160,12 +68589,17 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } + description: QueryFailuresResponse is response type for the Query/Failures RPC method. neutron.contractmanager.QueryParamsResponse: type: object properties: params: description: params holds all the parameters of this module. type: object + properties: + sudo_call_gas_limit: + type: string + format: uint64 description: QueryParamsResponse is response type for the Query/Params RPC method. neutron.cron.MsgExecuteContract: type: object @@ -66176,6 +68610,13 @@ definitions: msg: type: string title: Msg is json encoded message to be passed to the contract + neutron.cron.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 neutron.cron.Params: type: object properties: @@ -66313,6 +68754,13 @@ definitions: type: string format: uint64 title: Last execution's block height + neutron.feeburner.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 neutron.feeburner.Params: type: object properties: @@ -66588,6 +69036,13 @@ definitions: signatures required by gogoproto. title: the packet timeout fee title: Fee defines the ICS29 receive, acknowledgement and timeout fees + neutron.feerefunder.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 neutron.feerefunder.PacketID: type: object properties: @@ -67183,6 +69638,13 @@ definitions: type: object neutron.interchainqueries.MsgUpdateInterchainQueryResponse: type: object + neutron.interchainqueries.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 neutron.interchainqueries.Params: type: object properties: @@ -68843,22 +71305,60 @@ definitions: The data could be arbitrary format, providing nessecary data for example neighbouring node hash title: ProofOps is Merkle proof defined by the list of ProofOps - neutron.interchaintxs.Params: + neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse: + type: object + description: |- + MsgRegisterInterchainAccountResponse is the response type for + MsgRegisterInterchainAccount. + neutron.interchaintxs.v1.MsgSubmitTxResponse: + type: object + properties: + sequence_id: + type: string + format: uint64 + description: channel's sequence_id for outgoing ibc packet. Unique per a channel. + channel: + type: string + title: channel src channel on neutron side transaction was submitted from + title: MsgSubmitTxResponse defines the response for Msg/SubmitTx + neutron.interchaintxs.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 + neutron.interchaintxs.v1.Params: type: object properties: msg_submit_tx_max_messages: type: string format: uint64 title: Defines maximum amount of messages to be passed in MsgSubmitTx + register_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: Defines a minimum fee required to register interchain account description: Params defines the parameters for the module. - neutron.interchaintxs.QueryInterchainAccountAddressResponse: + neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse: type: object properties: interchain_account_address: type: string title: The corresponding interchain account address on the host chain title: Query response for an interchain account address - neutron.interchaintxs.QueryParamsResponse: + neutron.interchaintxs.v1.QueryParamsResponse: type: object properties: params: @@ -68869,23 +71369,25 @@ definitions: type: string format: uint64 title: Defines maximum amount of messages to be passed in MsgSubmitTx + register_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: Defines a minimum fee required to register interchain account description: QueryParamsResponse is response type for the Query/Params RPC method. - neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse: - type: object - description: |- - MsgRegisterInterchainAccountResponse is the response type for - MsgRegisterInterchainAccount. - neutron.interchaintxs.v1.MsgSubmitTxResponse: - type: object - properties: - sequence_id: - type: string - format: uint64 - description: channel's sequence_id for outgoing ibc packet. Unique per a channel. - channel: - type: string - title: channel src channel on neutron side trasaction was submitted from - title: MsgSubmitTxResponse defines the response for Msg/SubmitTx ibc.applications.transfer.v1.DenomTrace: type: object properties: @@ -69056,6 +71558,9 @@ definitions: type: object osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse: type: object + description: |- + MsgChangeAdminResponse defines the response structure for an executed + MsgChangeAdmin message. osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse: type: object properties: @@ -69064,8 +71569,29 @@ definitions: title: |- MsgCreateDenomResponse is the return value of MsgCreateDenom It returns the full string of the newly created denom + osmosis.tokenfactory.v1beta1.MsgForceTransferResponse: + type: object osmosis.tokenfactory.v1beta1.MsgMintResponse: type: object + osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse: + type: object + description: >- + MsgSetBeforeSendHookResponse defines the response structure for an + executed + + MsgSetBeforeSendHook message. + osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse: + type: object + description: |- + MsgSetDenomMetadataResponse defines the response structure for an executed + MsgSetDenomMetadata message. + osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: 0.47 osmosis.tokenfactory.v1beta1.Params: type: object properties: @@ -69083,15 +71609,35 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - title: >- - DenomCreationFee is the fee required to create a new denom using the - tokenfactory module + description: >- + DenomCreationFee defines the fee to be charged on the creation of a + new + + denom. The fee is drawn from the MsgCreateDenom's sender account, and + + transferred to the community pool. + denom_creation_gas_consume: + type: string + format: uint64 + description: |- + DenomCreationGasConsume defines the gas cost for creating a new denom. + This is intended as a spam deterrence mechanism. + + See: https://github.com/CosmWasm/token-factory/issues/11 fee_collector_address: type: string title: >- FeeCollectorAddress is the address where fees collected from denom creation are sent to - title: Params holds parameters for the tokenfactory module + description: Params defines the parameters for the tokenfactory module. + osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse: + type: object + properties: + contract_addr: + type: string + description: |- + QueryBeforeSendHookAddressResponse defines the response structure for the + DenomBeforeSendHook gRPC query. osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse: type: object properties: @@ -69109,6 +71655,9 @@ definitions: Admin permission, but is planned to be extended to the future. + description: |- + QueryDenomAuthorityMetadataResponse defines the response structure for the + DenomAuthorityMetadata gRPC query. osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse: type: object properties: @@ -69116,6 +71665,9 @@ definitions: type: array items: type: string + description: |- + QueryDenomsFromCreatorRequest defines the response structure for the + DenomsFromCreator gRPC query. osmosis.tokenfactory.v1beta1.QueryParamsResponse: type: object properties: @@ -69140,23 +71692,61 @@ definitions: method signatures required by gogoproto. - title: >- - DenomCreationFee is the fee required to create a new denom using - the tokenfactory module + description: >- + DenomCreationFee defines the fee to be charged on the creation of + a new + + denom. The fee is drawn from the MsgCreateDenom's sender account, + and + + transferred to the community pool. + denom_creation_gas_consume: + type: string + format: uint64 + description: >- + DenomCreationGasConsume defines the gas cost for creating a new + denom. + + This is intended as a spam deterrence mechanism. + + + See: https://github.com/CosmWasm/token-factory/issues/11 fee_collector_address: type: string title: >- FeeCollectorAddress is the address where fees collected from denom creation are sent to - title: Params holds parameters for the tokenfactory module description: QueryParamsResponse is the response type for the Query/Params RPC method. - pob.builder.v1.MsgAuctionBidResponse: + packetforward.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + packetforward.v1.Params: + type: object + properties: + fee_percentage: + type: string + description: Params defines the set of packetforward parameters. + packetforward.v1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + fee_percentage: + type: string + description: QueryParamsResponse is the response type for the Query/Params RPC method. + sdk.auction.v1.MsgAuctionBidResponse: type: object description: MsgAuctionBidResponse defines the Msg/AuctionBid response type. - pob.builder.v1.MsgUpdateParamsResponse: + sdk.auction.v1.MsgUpdateParamsResponse: type: object description: MsgUpdateParamsResponse defines the Msg/UpdateParams response type. - pob.builder.v1.Params: + sdk.auction.v1.Params: type: object properties: max_bundle_size: @@ -69207,8 +71797,8 @@ definitions: block proposer that proposed the block. - description: Params defines the parameters of the x/builder module. - pob.builder.v1.QueryParamsResponse: + description: Params defines the parameters of the x/auction module. + sdk.auction.v1.QueryParamsResponse: type: object properties: params: @@ -69266,19 +71856,3 @@ definitions: proposer that proposed the block. description: QueryParamsResponse is the response type for the Query/Params RPC method. - router.v1.Params: - type: object - properties: - fee_percentage: - type: string - description: Params defines the set of IBC router parameters. - router.v1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - fee_percentage: - type: string - description: QueryParamsResponse is the response type for the Query/Params RPC method. diff --git a/go.mod b/go.mod index fe521e720..640effb3a 100644 --- a/go.mod +++ b/go.mod @@ -26,6 +26,7 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.30.0 @@ -35,16 +36,16 @@ require ( github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 + google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 google.golang.org/grpc v1.59.0 gopkg.in/yaml.v2 v2.4.0 ) require ( - cloud.google.com/go v0.110.8 // indirect - cloud.google.com/go/compute v1.23.0 // indirect + cloud.google.com/go v0.110.9 // indirect + cloud.google.com/go/compute v1.23.2 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.2 // indirect + cloud.google.com/go/iam v1.1.4 // indirect cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect @@ -89,6 +90,7 @@ require ( github.com/felixge/httpsnoop v1.0.2 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/getsentry/sentry-go v0.23.0 // indirect + github.com/ghodss/yaml v1.0.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.6.0 // indirect @@ -98,7 +100,7 @@ require ( github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect - github.com/google/go-cmp v0.5.9 // 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 @@ -168,17 +170,17 @@ require ( go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect - golang.org/x/net v0.15.0 // indirect - golang.org/x/oauth2 v0.12.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/oauth2 v0.13.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect - golang.org/x/text v0.13.0 // indirect + golang.org/x/text v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.128.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect + google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 290740da2..e204f40c6 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,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.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= -cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= +cloud.google.com/go v0.110.9 h1:e7ITSqGFFk4rbz/JFIqZh3G4VEHguhAL4BQcFlWtU68= +cloud.google.com/go v0.110.9/go.mod h1:rpxevX/0Lqvlbc88b7Sc1SPNdyK1riNBTUU6JXhYNpM= 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= @@ -73,8 +73,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.2 h1:nWEMDhgbBkBJjfpVySqU4jgWdc22PLR0o4vEexZHers= +cloud.google.com/go/compute v1.23.2/go.mod h1:JJ0atRC0J/oWYiiVBmsSsrRnh92DhZPG4hFDcR04Rns= 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= @@ -114,8 +114,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.2 h1:gacbrBdWcoVmGLozRuStX45YKvJtzIjJdAolzUs1sm4= -cloud.google.com/go/iam v1.1.2/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= +cloud.google.com/go/iam v1.1.4 h1:K6n/GZHFTtEoKT5aUG3l9diPi0VduZNQ1PfdnpkkIFk= +cloud.google.com/go/iam v1.1.4/go.mod h1:l/rg8l1AaA+VFMho/HYx2Vv6xinPSLMF8qfhRPIZ0L8= 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= @@ -504,6 +504,7 @@ github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW 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/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= @@ -624,8 +625,9 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -704,6 +706,8 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf 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.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1/go.mod h1:YvJ2f6MplWDhfxiUC3KpyTy76kYUZA4W3pTv/wdKQ9Y= 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= @@ -1348,8 +1352,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= 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= @@ -1375,8 +1379,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.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= -golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= +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= @@ -1520,8 +1524,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1779,12 +1783,12 @@ 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-20230920204549-e6e6cdab5c13 h1:vlzZttNJGVqTsRFU9AmdnrcO1Znh8Ew9kCD//yjigk0= -google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:CCviP9RmpZ1mxVr8MUjCnSiY09IbAXZxhLE6EhHIdPU= -google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 h1:W18sezcAYs+3tDZX4F80yctqa12jcP1PUS2gQu1zTPU= -google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97/go.mod h1:iargEX0SFPm3xcfMI0d1domjg0ZF4Aa0p2awqyxhvF0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 h1:N3bU/SQDCDyD6R528GJ/PwW9KjYcJA3dgyH+MovAkIM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA= +google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 h1:I6WNifs6pF9tNdSob2W24JtyxIYjzFB9qDlpUC76q+U= +google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1:JpwMPBpFN3uKhdaekDpiNlImDdkUAyiJ6ez/uxGaUSo= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= diff --git a/proto/neutron/interchaintxs/v1/genesis.proto b/proto/neutron/interchaintxs/v1/genesis.proto index 0376f482d..bff673af1 100644 --- a/proto/neutron/interchaintxs/v1/genesis.proto +++ b/proto/neutron/interchaintxs/v1/genesis.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; import "gogoproto/gogo.proto"; import "neutron/interchaintxs/v1/params.proto"; diff --git a/proto/neutron/interchaintxs/v1/params.proto b/proto/neutron/interchaintxs/v1/params.proto index 734e7cb2e..1a720e961 100644 --- a/proto/neutron/interchaintxs/v1/params.proto +++ b/proto/neutron/interchaintxs/v1/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/neutron/interchaintxs/v1/query.proto b/proto/neutron/interchaintxs/v1/query.proto index 9af74de0c..285aacdf7 100644 --- a/proto/neutron/interchaintxs/v1/query.proto +++ b/proto/neutron/interchaintxs/v1/query.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; diff --git a/x/interchaintxs/types/genesis.pb.go b/x/interchaintxs/types/genesis.pb.go index dc6f22312..e6a20056e 100644 --- a/x/interchaintxs/types/genesis.pb.go +++ b/x/interchaintxs/types/genesis.pb.go @@ -69,7 +69,7 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.GenesisState") + proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.v1.GenesisState") } func init() { @@ -77,20 +77,20 @@ func init() { } var fileDescriptor_d16558b72a810826 = []byte{ - // 201 bytes of a gzipped FileDescriptorProto + // 204 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0x85, 0xaa, 0xd3, 0x43, 0x51, 0x27, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, - 0x56, 0xa1, 0x0f, 0x62, 0x41, 0x14, 0x4b, 0xa9, 0xe2, 0x34, 0xb4, 0x20, 0xb1, 0x28, 0x31, 0x17, - 0x6a, 0xa6, 0x92, 0x37, 0x17, 0x8f, 0x3b, 0xc4, 0x92, 0xe0, 0x92, 0xc4, 0x92, 0x54, 0x21, 0x6b, - 0x2e, 0x36, 0x88, 0xbc, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0xac, 0x1e, 0x56, 0x4b, 0xf5, - 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0x3c, + 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, + 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x99, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, + 0x7e, 0x05, 0x9a, 0x4b, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xce, 0x34, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xc0, 0xc8, 0x84, 0x5c, 0x27, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/params.pb.go b/x/interchaintxs/types/params.pb.go index 00f396fe7..844def56c 100644 --- a/x/interchaintxs/types/params.pb.go +++ b/x/interchaintxs/types/params.pb.go @@ -79,7 +79,7 @@ func (m *Params) GetRegisterFee() []types.Coin { } func init() { - proto.RegisterType((*Params)(nil), "neutron.interchaintxs.Params") + proto.RegisterType((*Params)(nil), "neutron.interchaintxs.v1.Params") } func init() { @@ -87,25 +87,25 @@ func init() { } var fileDescriptor_52b0ced89d3fa9c6 = []byte{ - // 285 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x31, 0x4b, 0x03, 0x31, - 0x18, 0x86, 0x2f, 0x5a, 0x3a, 0x5c, 0x9d, 0x8a, 0x4a, 0xed, 0x90, 0x16, 0x41, 0xe8, 0x62, 0x42, - 0xd5, 0xa9, 0x63, 0x05, 0xb7, 0x8a, 0x54, 0x27, 0x97, 0x23, 0x77, 0x7c, 0xa6, 0x19, 0x92, 0x1c, - 0xf9, 0x72, 0x25, 0xfe, 0x09, 0x71, 0x74, 0xf4, 0xe7, 0x74, 0xec, 0xe8, 0x24, 0x72, 0xf7, 0x47, - 0xa4, 0x77, 0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57, 0x45, 0xca, 0x32, 0xab, 0x79, 0x3b, 0xc1, 0xa5, - 0x75, 0x72, 0x9f, 0x79, 0xf8, 0xb7, 0x9b, 0x7f, 0xcd, 0x01, 0xd3, 0x6e, 0x7d, 0xe7, 0xf5, 0x6f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x81, 0x7b, 0xd6, 0x7d, 0x5d, 0x01, 0x00, 0x00, + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xb1, 0x4a, 0x33, 0x41, + 0x14, 0x85, 0x77, 0xfe, 0x3f, 0xa4, 0xd8, 0x58, 0x05, 0x91, 0x98, 0x62, 0x12, 0x04, 0x21, 0x8d, + 0x33, 0xac, 0x5a, 0xa5, 0x8c, 0x60, 0x17, 0x91, 0x68, 0x65, 0xb3, 0xcc, 0x2e, 0xd7, 0xc9, 0x14, + 0x33, 0x13, 0xe6, 0xce, 0x2e, 0xe3, 0x4b, 0x88, 0xa5, 0xa5, 0x8f, 0x93, 0x32, 0xa5, 0x95, 0xc8, + 0xee, 0x8b, 0x48, 0x76, 0x37, 0x85, 0x76, 0x07, 0xce, 0x77, 0xf9, 0xb8, 0x27, 0x3e, 0x37, 0x50, + 0x78, 0x67, 0x0d, 0x57, 0xc6, 0x83, 0xcb, 0xd7, 0x42, 0x19, 0x1f, 0x90, 0x97, 0x09, 0xdf, 0x08, + 0x27, 0x34, 0xb2, 0x8d, 0xb3, 0xde, 0x0e, 0x47, 0x1d, 0xc6, 0x7e, 0x61, 0xac, 0x4c, 0xc6, 0xc7, + 0xd2, 0x4a, 0xdb, 0x40, 0x7c, 0x9f, 0x5a, 0x7e, 0x4c, 0x73, 0x8b, 0xda, 0x22, 0xcf, 0x04, 0x02, + 0x2f, 0x93, 0x0c, 0xbc, 0x48, 0x78, 0x6e, 0x95, 0x69, 0xfb, 0xb3, 0x57, 0x12, 0xf7, 0xef, 0x1b, + 0xc1, 0x70, 0x1e, 0x8f, 0x35, 0xca, 0x14, 0x8b, 0x4c, 0x2b, 0x9f, 0xfa, 0x90, 0x6a, 0x11, 0x52, + 0x0d, 0x88, 0x42, 0x02, 0x8e, 0xc8, 0x94, 0xcc, 0x7a, 0xab, 0x13, 0x8d, 0xf2, 0xa1, 0x01, 0x1e, + 0xc3, 0x52, 0x84, 0x65, 0xd7, 0x0e, 0x17, 0xf1, 0x91, 0x03, 0xa9, 0xd0, 0x83, 0x4b, 0x9f, 0x01, + 0x46, 0xff, 0xa6, 0xff, 0x67, 0x83, 0xcb, 0x53, 0xd6, 0xda, 0xd9, 0xde, 0xce, 0x3a, 0x3b, 0xbb, + 0xb1, 0xca, 0x2c, 0x7a, 0xdb, 0xaf, 0x49, 0xb4, 0x1a, 0x1c, 0x8e, 0x6e, 0x01, 0xe6, 0xbd, 0xf7, + 0x8f, 0x49, 0xb4, 0xb8, 0xdb, 0x56, 0x94, 0xec, 0x2a, 0x4a, 0xbe, 0x2b, 0x4a, 0xde, 0x6a, 0x1a, + 0xed, 0x6a, 0x1a, 0x7d, 0xd6, 0x34, 0x7a, 0xba, 0x96, 0xca, 0xaf, 0x8b, 0x8c, 0xe5, 0x56, 0xf3, + 0x6e, 0x85, 0x0b, 0xeb, 0xe4, 0x21, 0xf3, 0xf0, 0x67, 0x3a, 0xff, 0xb2, 0x01, 0xcc, 0xfa, 0xcd, + 0x9f, 0x57, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xcc, 0x9a, 0x6c, 0x60, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/query.pb.go b/x/interchaintxs/types/query.pb.go index 34432afb6..6d7ea05e7 100644 --- a/x/interchaintxs/types/query.pb.go +++ b/x/interchaintxs/types/query.pb.go @@ -205,10 +205,10 @@ func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() st } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "neutron.interchaintxs.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "neutron.interchaintxs.QueryParamsResponse") - proto.RegisterType((*QueryInterchainAccountAddressRequest)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressRequest") - proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "neutron.interchaintxs.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "neutron.interchaintxs.v1.QueryParamsResponse") + proto.RegisterType((*QueryInterchainAccountAddressRequest)(nil), "neutron.interchaintxs.v1.QueryInterchainAccountAddressRequest") + proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse") } func init() { @@ -216,37 +216,38 @@ func init() { } var fileDescriptor_6130c5f6c54e2428 = []byte{ - // 479 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0xed, 0x14, 0x22, 0x38, 0x60, 0xb9, 0xb6, 0x52, 0x64, 0x51, 0x07, 0x99, 0x46, 0x82, - 0x4a, 0xf8, 0x94, 0xc0, 0x44, 0xbb, 0xb4, 0x5b, 0x16, 0x04, 0x19, 0x59, 0xa2, 0x8b, 0x7d, 0x72, - 0x4f, 0x90, 0x7b, 0xce, 0xdd, 0xb9, 0xb4, 0x8a, 0xb2, 0x30, 0xa0, 0x8e, 0x48, 0x8c, 0x2c, 0xfd, - 0x04, 0x7c, 0x8e, 0x8e, 0x95, 0x58, 0x98, 0x10, 0x4a, 0x18, 0xf8, 0x18, 0xc8, 0x77, 0xd7, 0x56, - 0x2e, 0x31, 0x45, 0x6c, 0xd1, 0xcb, 0xff, 0xfd, 0xff, 0xbf, 0x7b, 0xef, 0x19, 0x6d, 0x0a, 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, 0x1a, 0x35, 0xcd, 0x67, 0xf7, - 0xf4, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x82, 0x97, 0x0f, 0x98, 0x3c, 0x04, 0x00, 0x00, + // 482 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4f, 0x6b, 0x13, 0x41, + 0x14, 0xdf, 0x4d, 0x35, 0xe8, 0xa8, 0x97, 0x69, 0x85, 0x65, 0xd1, 0x4d, 0x59, 0x1b, 0x10, 0xb1, + 0x3b, 0x24, 0x7a, 0x12, 0xa9, 0xb4, 0xb7, 0x5c, 0x44, 0x03, 0x5e, 0xbc, 0x84, 0xc9, 0xee, 0xb0, + 0x1d, 0x34, 0xf3, 0x36, 0x3b, 0xb3, 0xb1, 0x25, 0xe4, 0xe2, 0xc9, 0x83, 0x88, 0xe0, 0x17, 0xe8, + 0xcd, 0x9b, 0x9f, 0xa3, 0xc7, 0x82, 0x17, 0x4f, 0x22, 0x89, 0x07, 0x3f, 0x86, 0xec, 0xcc, 0xb4, + 0x65, 0x6b, 0x96, 0x48, 0x6f, 0xcb, 0xdb, 0xdf, 0xfb, 0xfd, 0x79, 0xef, 0x0d, 0xda, 0x12, 0xac, + 0x50, 0x39, 0x08, 0xc2, 0x85, 0x62, 0x79, 0xbc, 0x4f, 0xb9, 0x50, 0x07, 0x92, 0x4c, 0x3a, 0x64, + 0x5c, 0xb0, 0xfc, 0x30, 0xca, 0x72, 0x50, 0x80, 0x3d, 0x8b, 0x8a, 0x2a, 0xa8, 0x68, 0xd2, 0xf1, + 0x37, 0x52, 0x48, 0x41, 0x83, 0x48, 0xf9, 0x65, 0xf0, 0xfe, 0x9d, 0x14, 0x20, 0x7d, 0xcb, 0x08, + 0xcd, 0x38, 0xa1, 0x42, 0x80, 0xa2, 0x8a, 0x83, 0x90, 0xf6, 0xef, 0x83, 0x18, 0xe4, 0x08, 0x24, + 0x19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0x2e, 0x6a, 0x9a, 0xd1, 0xe1, 0x87, 0xf5, 0xc3, 0xfd, 0x77, + 0x63, 0xfe, 0xf6, 0x7f, 0xa2, 0x8d, 0xdf, 0xb0, 0xfd, 0xfe, 0xfb, 0xef, 0x2f, 0x8d, 0x16, 0xbe, + 0x4b, 0x96, 0x9f, 0x89, 0x59, 0x18, 0xfe, 0xd4, 0x40, 0x5e, 0x5d, 0x76, 0xbc, 0xb3, 0x42, 0x72, + 0xc5, 0x92, 0xfd, 0x67, 0x97, 0xee, 0xb7, 0x21, 0xc6, 0x3a, 0xc4, 0x1b, 0xcc, 0x6b, 0x42, 0x4c, + 0x2b, 0x37, 0x34, 0x23, 0xd3, 0xa5, 0xe7, 0x32, 0x23, 0xd3, 0xca, 0x49, 0xcc, 0x48, 0xfd, 0x26, + 0xf7, 0x9e, 0x1f, 0xcf, 0x03, 0xf7, 0x64, 0x1e, 0xb8, 0xbf, 0xe6, 0x81, 0xfb, 0x79, 0x11, 0x38, + 0x27, 0x8b, 0xc0, 0xf9, 0xb1, 0x08, 0x9c, 0xd7, 0x8f, 0x53, 0xae, 0xf6, 0x8b, 0x61, 0x14, 0xc3, + 0xe8, 0xd4, 0xce, 0x36, 0xe4, 0xe9, 0x99, 0xb5, 0x83, 0x0b, 0xe6, 0xd4, 0x61, 0xc6, 0xe4, 0xb0, + 0xa9, 0x5f, 0xe1, 0xa3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xad, 0xfd, 0x25, 0x21, 0x4e, 0x04, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -276,7 +277,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -285,7 +286,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) InterchainAccountAddress(ctx context.Context, in *QueryInterchainAccountAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountAddressResponse, error) { out := new(QueryInterchainAccountAddressResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Query/InterchainAccountAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Query/InterchainAccountAddress", in, out, opts...) if err != nil { return nil, err } @@ -324,7 +325,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Query/Params", + FullMethod: "/neutron.interchaintxs.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -342,7 +343,7 @@ func _Query_InterchainAccountAddress_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Query/InterchainAccountAddress", + FullMethod: "/neutron.interchaintxs.v1.Query/InterchainAccountAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).InterchainAccountAddress(ctx, req.(*QueryInterchainAccountAddressRequest)) @@ -351,7 +352,7 @@ func _Query_InterchainAccountAddress_Handler(srv interface{}, ctx context.Contex } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.interchaintxs.Query", + ServiceName: "neutron.interchaintxs.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 8a204d154..89d6f5d02 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -330,58 +330,58 @@ func init() { func init() { proto.RegisterFile("neutron/interchaintxs/v1/tx.proto", fileDescriptor_50f087790e59c806) } var fileDescriptor_50f087790e59c806 = []byte{ - // 803 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xbf, 0x6f, 0x1a, 0x4b, - 0x10, 0xe6, 0x80, 0xe7, 0x1f, 0x0b, 0x4f, 0x4f, 0xef, 0x8c, 0xe5, 0x03, 0xd9, 0x80, 0xef, 0x3d, - 0x47, 0xc4, 0x12, 0x77, 0x86, 0x44, 0x2e, 0x2c, 0x25, 0x8a, 0x89, 0x64, 0x89, 0x82, 0xc8, 0x3a, - 0x3b, 0x4d, 0x1a, 0xb4, 0xdc, 0x2d, 0xc7, 0x29, 0xdc, 0x2e, 0xb9, 0xdd, 0xb3, 0xa0, 0x4d, 0x15, - 0xa5, 0x4a, 0x93, 0x32, 0x92, 0xcb, 0x28, 0x95, 0x8b, 0xb4, 0xe9, 0x5d, 0x5a, 0xa9, 0x52, 0x39, - 0x91, 0x5d, 0x38, 0x5d, 0x24, 0xff, 0x05, 0xd1, 0xed, 0xed, 0x99, 0x1f, 0x32, 0xc8, 0x4a, 0x03, - 0x3b, 0x33, 0xdf, 0x7e, 0x33, 0xfb, 0xcd, 0xec, 0x1e, 0x58, 0xc7, 0xc8, 0x67, 0x1e, 0xc1, 0xba, - 0x83, 0x19, 0xf2, 0xcc, 0x0e, 0x74, 0x30, 0xeb, 0x53, 0xfd, 0xa8, 0xa2, 0xb3, 0xbe, 0xd6, 0xf3, - 0x08, 0x23, 0xb2, 0x22, 0x20, 0xda, 0x18, 0x44, 0x3b, 0xaa, 0xe4, 0xb2, 0x26, 0xa1, 0x2e, 0xa1, - 0x4d, 0x8e, 0xd3, 0x43, 0x23, 0xdc, 0x94, 0xcb, 0x87, 0x96, 0xde, 0x82, 0x14, 0xe9, 0x47, 0x95, - 0x16, 0x62, 0xb0, 0xa2, 0x9b, 0xc4, 0xc1, 0x22, 0xbe, 0x31, 0x35, 0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, 0x2c, - 0x57, 0xbe, 0x13, 0x6c, 0x24, 0x47, 0x17, 0xa4, 0xc7, 0x5a, 0x7b, 0x7f, 0x26, 0xc1, 0x28, 0x34, - 0x57, 0xb9, 0x33, 0x34, 0xca, 0x57, 0x7b, 0x76, 0x7a, 0x91, 0x97, 0xce, 0x2e, 0xf2, 0xd2, 0x8f, - 0x8b, 0xbc, 0xf4, 0xee, 0x32, 0x1f, 0x3b, 0xbb, 0xcc, 0xc7, 0xbe, 0x5d, 0xe6, 0x63, 0x2f, 0x1e, - 0x8e, 0xbc, 0x20, 0x82, 0xb6, 0x4c, 0x3c, 0x3b, 0x5a, 0xeb, 0xfd, 0x89, 0x8f, 0x08, 0x7f, 0x53, - 0x5a, 0x73, 0xfc, 0xb2, 0x3d, 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x1e, 0xbd, 0xdf, 0xb4, 0xe2, - 0x06, 0x00, 0x00, + // 802 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xbf, 0x6b, 0x1b, 0x4b, + 0x10, 0xd6, 0x49, 0x7a, 0xfe, 0xb1, 0xd2, 0xe3, 0xf1, 0xce, 0x32, 0x3e, 0x09, 0x5b, 0x92, 0xef, + 0x3d, 0x07, 0xc5, 0xa0, 0x3b, 0x4b, 0x09, 0x2e, 0x0c, 0x09, 0x58, 0x06, 0x83, 0x0a, 0x05, 0x73, + 0x76, 0x9a, 0x34, 0x62, 0x75, 0xb7, 0x3a, 0x1d, 0xd1, 0xed, 0x2a, 0xb7, 0x7b, 0x46, 0x6a, 0x53, + 0x85, 0x54, 0x69, 0x52, 0x06, 0x5c, 0x86, 0x54, 0x2e, 0xf2, 0x07, 0xa4, 0x74, 0x69, 0x52, 0xa5, + 0x72, 0x82, 0x5d, 0x38, 0x5d, 0xc0, 0x7f, 0x41, 0xb8, 0xbd, 0x3d, 0xeb, 0x07, 0x96, 0x30, 0x69, + 0xa4, 0x9d, 0x99, 0x6f, 0xbf, 0x99, 0xfd, 0x66, 0x76, 0x0f, 0xac, 0x63, 0xe4, 0x33, 0x8f, 0x60, + 0xdd, 0xc1, 0x0c, 0x79, 0x66, 0x07, 0x3a, 0x98, 0xf5, 0xa9, 0x7e, 0x5c, 0xd1, 0x59, 0x5f, 0xeb, + 0x79, 0x84, 0x11, 0x59, 0x11, 0x10, 0x6d, 0x0c, 0xa2, 0x1d, 0x57, 0x72, 0x59, 0x93, 0x50, 0x97, + 0xd0, 0x26, 0xc7, 0xe9, 0xa1, 0x11, 0x6e, 0xca, 0xe5, 0x43, 0x4b, 0x6f, 0x41, 0x8a, 0xf4, 0xe3, + 0x4a, 0x0b, 0x31, 0x58, 0xd1, 0x4d, 0xe2, 0x60, 0x11, 0xdf, 0x98, 0x9a, 0xb7, 0x07, 0x3d, 0xe8, + 0x46, 0x34, 0x19, 0x9b, 0xd8, 0x24, 0xa4, 0x0f, 0x56, 0xc2, 0xbb, 0x6c, 0x13, 0x62, 0x77, 0x91, + 0x0e, 0x7b, 0x8e, 0xde, 0x61, 0xac, 0x27, 0xdc, 0xab, 0x23, 0x6e, 0x88, 0x31, 0x61, 0x90, 0x39, + 0x04, 0x47, 0x54, 0x59, 0x11, 0xe5, 0x56, 0xcb, 0x6f, 0xeb, 0x10, 0x0f, 0x44, 0x68, 0x2d, 0x2a, + 0xa6, 0x8d, 0x90, 0x87, 0xda, 0x3e, 0xb6, 0x90, 0x17, 0xac, 0x45, 0x78, 0x45, 0x9c, 0xc5, 0xa5, + 0x76, 0x50, 0xa0, 0x4b, 0x6d, 0x11, 0xf8, 0x17, 0xba, 0x0e, 0x26, 0x3a, 0xff, 0x0d, 0x5d, 0xea, + 0x79, 0x1c, 0xac, 0x36, 0xa8, 0x6d, 0x20, 0xdb, 0xa1, 0x0c, 0x79, 0xf5, 0xdb, 0xd3, 0xed, 0x9a, + 0x26, 0xf1, 0x31, 0x93, 0xd7, 0x41, 0x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, 0xc1, 0x21, 0x3f, 0x5e, 0x9f, 0x6e, 0x4a, 0x86, 0xd8, 0xba, + 0xb3, 0xf5, 0xfa, 0xfa, 0x74, 0x73, 0x48, 0xfa, 0xf6, 0xfa, 0x74, 0x73, 0x6d, 0xfc, 0x81, 0x99, + 0x28, 0x57, 0xcd, 0x82, 0x95, 0x09, 0x57, 0x24, 0x4c, 0xf5, 0x57, 0x1c, 0x24, 0x1a, 0xd4, 0x96, + 0xdf, 0x4b, 0x20, 0x3b, 0xfd, 0x3e, 0x6f, 0x4f, 0xaf, 0x73, 0xd6, 0xd4, 0xe6, 0x9e, 0xfe, 0xd9, + 0xbe, 0xdb, 0x69, 0x8f, 0xc9, 0x2d, 0xb0, 0x70, 0x3b, 0xeb, 0x1b, 0x33, 0xd9, 0x22, 0x58, 0xae, + 0x7c, 0x2f, 0xd8, 0x48, 0x8e, 0x2e, 0x48, 0x8f, 0x75, 0xf7, 0xe1, 0x4c, 0x82, 0x51, 0x68, 0xae, + 0x72, 0x6f, 0x68, 0x94, 0xaf, 0xf6, 0xec, 0xec, 0x32, 0x2f, 0x9d, 0x5f, 0xe6, 0xa5, 0x1f, 0x97, + 0x79, 0xe9, 0xdd, 0x55, 0x3e, 0x76, 0x7e, 0x95, 0x8f, 0x7d, 0xbb, 0xca, 0xc7, 0x5e, 0x3c, 0x1e, + 0x79, 0x44, 0x04, 0x6d, 0x99, 0x78, 0x76, 0xb4, 0xd6, 0xfb, 0x13, 0xdf, 0x11, 0xfe, 0xac, 0xb4, + 0xe6, 0xf8, 0x7d, 0x7b, 0xf4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xd3, 0x11, 0x00, 0xe5, 0x06, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From 477ef889d329dabe7320147f4960f4ea8c76f741 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 22 Nov 2023 14:02:26 +0200 Subject: [PATCH 289/307] fix denom --- config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yml b/config.yml index cb2ab0eee..9be87cbd9 100644 --- a/config.yml +++ b/config.yml @@ -14,7 +14,7 @@ accounts: faucet: name: bob coins: - - 500000ustrd + - 500000untrn - 100000stake host: 0.0.0.0:4500 client: From 3f9c62289c67066c48dccfd53f5df90548815c24 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 22 Nov 2023 14:58:14 +0200 Subject: [PATCH 290/307] fix stargate allowlist --- tools/tools.go | 11 +++++++++++ wasmbinding/stargate_allowlist.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tools/tools.go diff --git a/tools/tools.go b/tools/tools.go new file mode 100644 index 000000000..6e7a12d40 --- /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/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 1a1ca5483..f4320b8dd 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -45,7 +45,7 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/cosmos.bank.v1beta1.Query/SupplyOf": &banktypes.QuerySupplyOfResponse{}, // interchaintxs - "/neutron.interchaintxs.Query/Params": &interchaintxstypes.QueryParamsResponse{}, + "/neutron.interchaintxs.v1.Query/Params": &interchaintxstypes.QueryParamsResponse{}, // interchainqueries "/neutron.interchainqueries.Query/Params": &interchainqueriestypes.QueryParamsResponse{}, From f4c3175176519f984b4143743c70105fad4fda8f Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 22 Nov 2023 15:01:33 +0200 Subject: [PATCH 291/307] add openapi generate command to the Makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index b6b749271..8ba0ca4d3 100644 --- a/Makefile +++ b/Makefile @@ -248,6 +248,9 @@ start-docker-container: stop-docker-container: @docker stop neutron +openapi: + ignite generate openapi + mocks: @echo "Regenerate mocks..." @go generate ./... From 7465bda13527a70e252ef8521c0388050df14cc3 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 22 Nov 2023 16:42:04 +0300 Subject: [PATCH 292/307] tagged wasmd version --- go.mod | 2 +- go.sum | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 2f55ab8d3..43357d737 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ require ( replace ( github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d - github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80 + github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.45.0 github.com/cosmos/admin-module => github.com/neutron-org/admin-module v1.0.0 github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.47.6-neutron github.com/cosmos/gaia/v11 => github.com/cosmos/gaia/v11 v11.0.0-20230724152830-861ba391c3b4 diff --git a/go.sum b/go.sum index e7a58ec6e..a8841acda 100644 --- a/go.sum +++ b/go.sum @@ -944,6 +944,7 @@ github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbB github.com/neutron-org/wasmd v0.43.0/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80 h1:NZxcnl5FHTyRjwuHPh6f4jFPvK5OHez7CQvElN+Nz/E= github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80/go.mod h1:k2/B7hBKbCEHhhOSaiv7UBHUR2fLVb003pnswasgG/w= +github.com/neutron-org/wasmd v0.45.0/go.mod h1:k2/B7hBKbCEHhhOSaiv7UBHUR2fLVb003pnswasgG/w= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= From b476f7ccb012a705140abc7612e6bee8de2c0965 Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 22 Nov 2023 17:05:48 +0300 Subject: [PATCH 293/307] go get ./... --- go.sum | 1 + 1 file changed, 1 insertion(+) diff --git a/go.sum b/go.sum index a8841acda..457168a82 100644 --- a/go.sum +++ b/go.sum @@ -944,6 +944,7 @@ github.com/neutron-org/wasmd v0.43.0 h1:aXzN9diVRAKTs2+EdK4zoTOmNCjjr8vpAhIq8VbB github.com/neutron-org/wasmd v0.43.0/go.mod h1:GEWnDHjbx7qtVHQ+5ocrNe1sIHNiXcTlSocXyLQNnRY= github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80 h1:NZxcnl5FHTyRjwuHPh6f4jFPvK5OHez7CQvElN+Nz/E= github.com/neutron-org/wasmd v0.43.1-0.20231121134303-e47173b19d80/go.mod h1:k2/B7hBKbCEHhhOSaiv7UBHUR2fLVb003pnswasgG/w= +github.com/neutron-org/wasmd v0.45.0 h1:K3WpYYTP9Msd7cLtdIau8VBUW1n1CC1qC/yaKPCYJsQ= github.com/neutron-org/wasmd v0.45.0/go.mod h1:k2/B7hBKbCEHhhOSaiv7UBHUR2fLVb003pnswasgG/w= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= From 713963529c4d822ffb2f84f08f754fdfe73fa15e Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 23 Nov 2023 12:47:23 +0200 Subject: [PATCH 294/307] remove v1 from ictx module --- docs/static/openapi.yml | 16 +- .../interchaintxs/{v1 => }/genesis.proto | 4 +- .../interchaintxs/{v1 => }/params.proto | 2 +- .../interchaintxs/{v1 => }/query.proto | 4 +- proto/neutron/interchaintxs/{v1 => }/tx.proto | 4 +- wasmbinding/stargate_allowlist.go | 2 +- x/interchaintxs/types/genesis.pb.go | 36 ++-- x/interchaintxs/types/params.pb.go | 48 +++--- x/interchaintxs/types/query.pb.go | 105 ++++++------ x/interchaintxs/types/query.pb.gw.go | 2 +- x/interchaintxs/types/tx.pb.go | 155 +++++++++--------- 11 files changed, 187 insertions(+), 191 deletions(-) rename proto/neutron/interchaintxs/{v1 => }/genesis.proto (76%) rename proto/neutron/interchaintxs/{v1 => }/params.proto (94%) rename proto/neutron/interchaintxs/{v1 => }/query.proto (95%) rename proto/neutron/interchaintxs/{v1 => }/tx.proto (97%) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 5a4103ac3..5a6428940 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -40292,7 +40292,7 @@ paths: /neutron/interchaintxs/params: get: summary: Parameters queries the parameters of the module. - operationId: NeutronInterchaintxsV1Params + operationId: NeutronInterchaintxsParams responses: '200': description: A successful response. @@ -40521,7 +40521,7 @@ paths: - Query /neutron/interchaintxs/{owner_address}/{interchain_account_id}/{connection_id}/interchain_account_address: get: - operationId: NeutronInterchaintxsV1InterchainAccountAddress + operationId: NeutronInterchaintxsInterchainAccountAddress responses: '200': description: A successful response. @@ -71305,12 +71305,12 @@ definitions: The data could be arbitrary format, providing nessecary data for example neighbouring node hash title: ProofOps is Merkle proof defined by the list of ProofOps - neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse: + neutron.interchaintxs.MsgRegisterInterchainAccountResponse: type: object description: |- MsgRegisterInterchainAccountResponse is the response type for MsgRegisterInterchainAccount. - neutron.interchaintxs.v1.MsgSubmitTxResponse: + neutron.interchaintxs.MsgSubmitTxResponse: type: object properties: sequence_id: @@ -71321,14 +71321,14 @@ definitions: type: string title: channel src channel on neutron side transaction was submitted from title: MsgSubmitTxResponse defines the response for Msg/SubmitTx - neutron.interchaintxs.v1.MsgUpdateParamsResponse: + neutron.interchaintxs.MsgUpdateParamsResponse: type: object description: |- MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. Since: 0.47 - neutron.interchaintxs.v1.Params: + neutron.interchaintxs.Params: type: object properties: msg_submit_tx_max_messages: @@ -71351,14 +71351,14 @@ definitions: signatures required by gogoproto. title: Defines a minimum fee required to register interchain account description: Params defines the parameters for the module. - neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse: + neutron.interchaintxs.QueryInterchainAccountAddressResponse: type: object properties: interchain_account_address: type: string title: The corresponding interchain account address on the host chain title: Query response for an interchain account address - neutron.interchaintxs.v1.QueryParamsResponse: + neutron.interchaintxs.QueryParamsResponse: type: object properties: params: diff --git a/proto/neutron/interchaintxs/v1/genesis.proto b/proto/neutron/interchaintxs/genesis.proto similarity index 76% rename from proto/neutron/interchaintxs/v1/genesis.proto rename to proto/neutron/interchaintxs/genesis.proto index bff673af1..850394c59 100644 --- a/proto/neutron/interchaintxs/v1/genesis.proto +++ b/proto/neutron/interchaintxs/genesis.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package neutron.interchaintxs.v1; +package neutron.interchaintxs; import "gogoproto/gogo.proto"; -import "neutron/interchaintxs/v1/params.proto"; +import "neutron/interchaintxs/params.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; diff --git a/proto/neutron/interchaintxs/v1/params.proto b/proto/neutron/interchaintxs/params.proto similarity index 94% rename from proto/neutron/interchaintxs/v1/params.proto rename to proto/neutron/interchaintxs/params.proto index 1a720e961..734e7cb2e 100644 --- a/proto/neutron/interchaintxs/v1/params.proto +++ b/proto/neutron/interchaintxs/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package neutron.interchaintxs.v1; +package neutron.interchaintxs; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/neutron/interchaintxs/v1/query.proto b/proto/neutron/interchaintxs/query.proto similarity index 95% rename from proto/neutron/interchaintxs/v1/query.proto rename to proto/neutron/interchaintxs/query.proto index 285aacdf7..e10fb44c5 100644 --- a/proto/neutron/interchaintxs/v1/query.proto +++ b/proto/neutron/interchaintxs/query.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package neutron.interchaintxs.v1; +package neutron.interchaintxs; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "neutron/interchaintxs/v1/params.proto"; +import "neutron/interchaintxs/params.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; diff --git a/proto/neutron/interchaintxs/v1/tx.proto b/proto/neutron/interchaintxs/tx.proto similarity index 97% rename from proto/neutron/interchaintxs/v1/tx.proto rename to proto/neutron/interchaintxs/tx.proto index 5ce7899c8..cb1dabbfd 100644 --- a/proto/neutron/interchaintxs/v1/tx.proto +++ b/proto/neutron/interchaintxs/tx.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package neutron.interchaintxs.v1; +package neutron.interchaintxs; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "neutron/interchaintxs/v1/params.proto"; +import "neutron/interchaintxs/params.proto"; import "gogoproto/gogo.proto"; import "google/api/http.proto"; import "google/api/annotations.proto"; diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index f4320b8dd..1a1ca5483 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -45,7 +45,7 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/cosmos.bank.v1beta1.Query/SupplyOf": &banktypes.QuerySupplyOfResponse{}, // interchaintxs - "/neutron.interchaintxs.v1.Query/Params": &interchaintxstypes.QueryParamsResponse{}, + "/neutron.interchaintxs.Query/Params": &interchaintxstypes.QueryParamsResponse{}, // interchainqueries "/neutron.interchainqueries.Query/Params": &interchainqueriestypes.QueryParamsResponse{}, diff --git a/x/interchaintxs/types/genesis.pb.go b/x/interchaintxs/types/genesis.pb.go index e6a20056e..0f59b4765 100644 --- a/x/interchaintxs/types/genesis.pb.go +++ b/x/interchaintxs/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/v1/genesis.proto +// source: neutron/interchaintxs/genesis.proto package types @@ -32,7 +32,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_d16558b72a810826, []int{0} + return fileDescriptor_e49275bc96c5883d, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,28 +69,28 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.v1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.GenesisState") } func init() { - proto.RegisterFile("neutron/interchaintxs/v1/genesis.proto", fileDescriptor_d16558b72a810826) + proto.RegisterFile("neutron/interchaintxs/genesis.proto", fileDescriptor_e49275bc96c5883d) } -var fileDescriptor_d16558b72a810826 = []byte{ - // 204 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0x4b, 0x2d, 0x2d, +var fileDescriptor_e49275bc96c5883d = []byte{ + // 198 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2d, 0x2d, 0x29, 0xca, 0xcf, 0xd3, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0xa9, - 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x92, 0x80, 0xaa, 0xd3, 0x43, 0x51, 0xa7, 0x57, 0x66, 0x28, 0x25, 0x92, 0x9e, - 0x9f, 0x9e, 0x0f, 0x56, 0xa4, 0x0f, 0x62, 0x41, 0xd4, 0x4b, 0xa9, 0xe2, 0x34, 0xb7, 0x20, 0xb1, - 0x28, 0x31, 0x17, 0x6a, 0xac, 0x92, 0x1f, 0x17, 0x8f, 0x3b, 0xc4, 0x9e, 0xe0, 0x92, 0xc4, 0x92, - 0x54, 0x21, 0x3b, 0x2e, 0x36, 0x88, 0xbc, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x82, 0x1e, - 0x2e, 0x7b, 0xf5, 0x02, 0xc0, 0xea, 0x9c, 0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0xea, 0x72, - 0xf2, 0x3b, 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, 0x93, 0xf4, 0xcc, 0x92, - 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x99, 0xba, 0x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e, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x83, 0x76, + 0x5c, 0x97, 0x1b, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/params.pb.go b/x/interchaintxs/types/params.pb.go index 844def56c..205eb708b 100644 --- a/x/interchaintxs/types/params.pb.go +++ b/x/interchaintxs/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/v1/params.proto +// source: neutron/interchaintxs/params.proto package types @@ -35,7 +35,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_52b0ced89d3fa9c6, []int{0} + return fileDescriptor_0371c2fec8782216, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,33 +79,33 @@ func (m *Params) GetRegisterFee() []types.Coin { } func init() { - proto.RegisterType((*Params)(nil), "neutron.interchaintxs.v1.Params") + proto.RegisterType((*Params)(nil), "neutron.interchaintxs.Params") } func init() { - proto.RegisterFile("neutron/interchaintxs/v1/params.proto", fileDescriptor_52b0ced89d3fa9c6) + proto.RegisterFile("neutron/interchaintxs/params.proto", fileDescriptor_0371c2fec8782216) } -var fileDescriptor_52b0ced89d3fa9c6 = []byte{ - // 288 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xb1, 0x4a, 0x33, 0x41, - 0x14, 0x85, 0x77, 0xfe, 0x3f, 0xa4, 0xd8, 0x58, 0x05, 0x91, 0x98, 0x62, 0x12, 0x04, 0x21, 0x8d, - 0x33, 0xac, 0x5a, 0xa5, 0x8c, 0x60, 0x17, 0x91, 0x68, 0x65, 0xb3, 0xcc, 0x2e, 0xd7, 0xc9, 0x14, - 0x33, 0x13, 0xe6, 0xce, 0x2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2b, 0x4a, 0xde, 0x6a, 0x1a, - 0xed, 0x6a, 0x1a, 0x7d, 0xd6, 0x34, 0x7a, 0xba, 0x96, 0xca, 0xaf, 0x8b, 0x8c, 0xe5, 0x56, 0xf3, - 0x6e, 0x85, 0x0b, 0xeb, 0xe4, 0x21, 0xf3, 0xf0, 0x67, 0x3a, 0xff, 0xb2, 0x01, 0xcc, 0xfa, 0xcd, - 0x9f, 0x57, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xcc, 0x9a, 0x6c, 0x60, 0x01, 0x00, 0x00, +var fileDescriptor_0371c2fec8782216 = []byte{ + // 282 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xb1, 0x4e, 0xf3, 0x30, + 0x14, 0x85, 0xe3, 0xff, 0xaf, 0x3a, 0xa4, 0x4c, 0x15, 0xa0, 0xd2, 0xc1, 0xad, 0x3a, 0x75, 0xc1, + 0x56, 0x81, 0xa9, 0x63, 0x90, 0xd8, 0x8a, 0x50, 0x61, 0x62, 0x89, 0x9c, 0xe8, 0xe2, 0x7a, 0xb0, + 0x1d, 0xf9, 0x3a, 0xc8, 0xbc, 0x04, 0x62, 0x64, 0xe4, 0x71, 0x3a, 0x76, 0x64, 0x42, 0x28, 0x79, + 0x11, 0xd4, 0x24, 0x1d, 0x60, 0x3b, 0xd2, 0xf9, 0xec, 0x4f, 0xf7, 0xc4, 0x33, 0x03, 0xa5, 0x77, + 0xd6, 0x70, 0x65, 0x3c, 0xb8, 0x7c, 0x23, 0x94, 0xf1, 0x01, 0x79, 0x21, 0x9c, 0xd0, 0xc8, 0x0a, + 0x67, 0xbd, 0x1d, 0x9e, 0x74, 0x0c, 0xfb, 0xc5, 0x8c, 0x8f, 0xa5, 0x95, 0xb6, 0x21, 0xf8, 0x3e, + 0xb5, 0xf0, 0x98, 0xe6, 0x16, 0xb5, 0x45, 0x9e, 0x09, 0x04, 0xfe, 0xbc, 0xc8, 0xc0, 0x8b, 0x05, + 0xcf, 0xad, 0x32, 0x6d, 0x3f, 0x7b, 0x25, 0x71, 0xff, 0xae, 0xf9, 0x7d, 0xb8, 0x8c, 0xc7, 0x1a, + 0x65, 0x8a, 0x65, 0xa6, 0x95, 0x4f, 0x7d, 0x48, 0xb5, 0x08, 0xa9, 0x06, 0x44, 0x21, 0x01, 0x47, + 0x64, 0x4a, 0xe6, 0xbd, 0xf5, 0xa9, 0x46, 0x79, 0xdf, 0x00, 0x0f, 0x61, 0x25, 0xc2, 0xaa, 0x6b, + 0x87, 0x49, 0x7c, 0xe4, 0x40, 0x2a, 0xf4, 0xe0, 0xd2, 0x27, 0x80, 0xd1, 0xbf, 0xe9, 0xff, 0xf9, + 0xe0, 0xe2, 0x8c, 0xb5, 0x76, 0xb6, 0xb7, 0xb3, 0xce, 0xce, 0xae, 0xad, 0x32, 0x49, 0x6f, 0xfb, + 0x35, 0x89, 0xd6, 0x83, 0xc3, 0xa3, 0x1b, 0x80, 0x65, 0xef, 0xfd, 0x63, 0x12, 0x25, 0xb7, 0xdb, + 0x8a, 0x92, 0x5d, 0x45, 0xc9, 0x77, 0x45, 0xc9, 0x5b, 0x4d, 0xa3, 0x5d, 0x4d, 0xa3, 0xcf, 0x9a, + 0x46, 0x8f, 0x57, 0x52, 0xf9, 0x4d, 0x99, 0xb1, 0xdc, 0x6a, 0xde, 0x4d, 0x70, 0x6e, 0x9d, 0x3c, + 0x64, 0x1e, 0xfe, 0x8c, 0xe6, 0x5f, 0x0a, 0xc0, 0xac, 0xdf, 0xdc, 0x79, 0xf9, 0x13, 0x00, 0x00, + 0xff, 0xff, 0x35, 0xb5, 0x95, 0xb4, 0x5a, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/query.pb.go b/x/interchaintxs/types/query.pb.go index 6d7ea05e7..514420970 100644 --- a/x/interchaintxs/types/query.pb.go +++ b/x/interchaintxs/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/v1/query.proto +// source: neutron/interchaintxs/query.proto package types @@ -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_6130c5f6c54e2428, []int{0} + return fileDescriptor_9804d0830e584ce5, []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_6130c5f6c54e2428, []int{1} + return fileDescriptor_9804d0830e584ce5, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ func (m *QueryInterchainAccountAddressRequest) Reset() { *m = QueryInter func (m *QueryInterchainAccountAddressRequest) String() string { return proto.CompactTextString(m) } func (*QueryInterchainAccountAddressRequest) ProtoMessage() {} func (*QueryInterchainAccountAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6130c5f6c54e2428, []int{2} + return fileDescriptor_9804d0830e584ce5, []int{2} } func (m *QueryInterchainAccountAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,7 +168,7 @@ func (m *QueryInterchainAccountAddressResponse) Reset() { *m = QueryInte func (m *QueryInterchainAccountAddressResponse) String() string { return proto.CompactTextString(m) } func (*QueryInterchainAccountAddressResponse) ProtoMessage() {} func (*QueryInterchainAccountAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6130c5f6c54e2428, []int{3} + return fileDescriptor_9804d0830e584ce5, []int{3} } func (m *QueryInterchainAccountAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -205,49 +205,46 @@ func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() st } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "neutron.interchaintxs.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "neutron.interchaintxs.v1.QueryParamsResponse") - proto.RegisterType((*QueryInterchainAccountAddressRequest)(nil), "neutron.interchaintxs.v1.QueryInterchainAccountAddressRequest") - proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse") -} - -func init() { - proto.RegisterFile("neutron/interchaintxs/v1/query.proto", fileDescriptor_6130c5f6c54e2428) -} - -var fileDescriptor_6130c5f6c54e2428 = []byte{ - // 482 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4f, 0x6b, 0x13, 0x41, - 0x14, 0xdf, 0x4d, 0x35, 0xe8, 0xa8, 0x97, 0x69, 0x85, 0x65, 0xd1, 0x4d, 0x59, 0x1b, 0x10, 0xb1, - 0x3b, 0x24, 0x7a, 0x12, 0xa9, 0xb4, 0xb7, 0x5c, 0x44, 0x03, 0x5e, 0xbc, 0x84, 0xc9, 0xee, 0xb0, - 0x1d, 0x34, 0xf3, 0x36, 0x3b, 0xb3, 0xb1, 0x25, 0xe4, 0xe2, 0xc9, 0x83, 0x88, 0xe0, 0x17, 0xe8, - 0xcd, 0x9b, 0x9f, 0xa3, 0xc7, 0x82, 0x17, 0x4f, 0x22, 0x89, 0x07, 0x3f, 0x86, 0xec, 0xcc, 0xb4, - 0x65, 0x6b, 0x96, 0x48, 0x6f, 0xcb, 0xdb, 0xdf, 0xfb, 0xfd, 0x79, 0xef, 0x0d, 0xda, 0x12, 0xac, - 0x50, 0x39, 0x08, 0xc2, 0x85, 0x62, 0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0x5f, 0xe1, 0xa3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xad, 0xfd, 0x25, 0x21, 0x4e, 0x04, - 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "neutron.interchaintxs.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "neutron.interchaintxs.QueryParamsResponse") + proto.RegisterType((*QueryInterchainAccountAddressRequest)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressRequest") + proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressResponse") +} + +func init() { proto.RegisterFile("neutron/interchaintxs/query.proto", fileDescriptor_9804d0830e584ce5) } + +var fileDescriptor_9804d0830e584ce5 = []byte{ + // 474 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0xed, 0x14, 0x22, 0x38, 0x60, 0xb9, 0xb6, 0x52, 0x64, 0x51, 0x07, 0x0c, 0x95, 0xa0, + 0x12, 0x3e, 0x35, 0x30, 0xd1, 0x2e, 0xed, 0x96, 0x05, 0x41, 0x46, 0x96, 0xe8, 0x62, 0x9f, 0xdc, + 0x13, 0xe4, 0x9e, 0x73, 0x77, 0x86, 0x56, 0x51, 0x16, 0x06, 0xd4, 0x11, 0x89, 0x91, 0xa5, 0x9f, + 0x80, 0xcf, 0xd1, 0xb1, 0x12, 0x0b, 0x13, 0x42, 0x09, 0x03, 0x1f, 0x03, 0xf9, 0xee, 0xda, 0xca, + 0xc5, 0x6e, 0x11, 0x5b, 0xf4, 0xf2, 0x7f, 0xff, 0xff, 0xef, 0xde, 0x7b, 0x46, 0xf7, 0x05, 0x2b, + 0xb4, 0x04, 0x41, 0xb8, 0xd0, 0x4c, 0x26, 0x7b, 0x94, 0x0b, 0xbd, 0xaf, 0xc8, 0xa4, 0x60, 0xf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a, 0xed, 0x92, 0x35, 0x3e, 0x2f, 0xf6, 0xd3, 0xe7, 0x37, + 0x0e, 0x8f, 0xba, 0xde, 0xef, 0xa3, 0xae, 0x17, 0x31, 0xb4, 0x7e, 0x05, 0xaf, 0x1b, 0xcb, 0x36, + 0x0a, 0x6a, 0x58, 0xaa, 0xf4, 0x1d, 0xde, 0xe0, 0xd2, 0xfb, 0xb2, 0x84, 0xae, 0x9b, 0x1c, 0xfc, + 0xd1, 0x47, 0x6d, 0x3b, 0x3a, 0xfc, 0xb8, 0x61, 0xb2, 0x7f, 0xef, 0x2a, 0xd8, 0xf8, 0x17, 0xa9, + 0x25, 0x8d, 0xd6, 0x3f, 0x7c, 0xfb, 0xf5, 0xb9, 0xd5, 0xc5, 0x6b, 0xe4, 0xb2, 0xd3, 0xc0, 0x87, + 0x2d, 0xd4, 0x69, 0x7a, 0x35, 0xde, 0xba, 0x2c, 0xef, 0x8a, 0xdd, 0x06, 0xdb, 0xff, 0xd7, 0xec, + 0xf0, 0x27, 0x06, 0xff, 0x0d, 0xe6, 0x0d, 0xf8, 0xd3, 0xca, 0xdd, 0xcc, 0xc8, 0xb4, 0xf6, 0x44, + 0x66, 0x64, 0x5a, 0x39, 0x83, 0x19, 0x69, 0xde, 0xde, 0xee, 0x8b, 0xe3, 0x79, 0xe8, 0x9f, 0xcc, + 0x43, 0xff, 0xe7, 0x3c, 0xf4, 0x3f, 0x2d, 0x42, 0xef, 0x64, 0x11, 0x7a, 0xdf, 0x17, 0xa1, 0xf7, + 0xfa, 0x59, 0xc6, 0xf5, 0x5e, 0x31, 0x8a, 0x13, 0x18, 0x9f, 0xe2, 0x3c, 0x01, 0x99, 0x9d, 0xa1, + 0xed, 0x5f, 0x80, 0xd3, 0x07, 0x39, 0x53, 0xa3, 0xb6, 0xf9, 0xec, 0x9e, 0xfe, 0x09, 0x00, 0x00, + 0xff, 0xff, 0x39, 0xa6, 0x49, 0x7e, 0x36, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -277,7 +274,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -286,7 +283,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) InterchainAccountAddress(ctx context.Context, in *QueryInterchainAccountAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountAddressResponse, error) { out := new(QueryInterchainAccountAddressResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Query/InterchainAccountAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Query/InterchainAccountAddress", in, out, opts...) if err != nil { return nil, err } @@ -325,7 +322,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.v1.Query/Params", + FullMethod: "/neutron.interchaintxs.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -343,7 +340,7 @@ func _Query_InterchainAccountAddress_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.v1.Query/InterchainAccountAddress", + FullMethod: "/neutron.interchaintxs.Query/InterchainAccountAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).InterchainAccountAddress(ctx, req.(*QueryInterchainAccountAddressRequest)) @@ -352,7 +349,7 @@ func _Query_InterchainAccountAddress_Handler(srv interface{}, ctx context.Contex } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.interchaintxs.v1.Query", + ServiceName: "neutron.interchaintxs.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -365,7 +362,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "neutron/interchaintxs/v1/query.proto", + Metadata: "neutron/interchaintxs/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/query.pb.gw.go b/x/interchaintxs/types/query.pb.gw.go index 943b58aab..7fd1f4d23 100644 --- a/x/interchaintxs/types/query.pb.gw.go +++ b/x/interchaintxs/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: neutron/interchaintxs/v1/query.proto +// source: neutron/interchaintxs/query.proto /* Package types is a reverse proxy. diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 89d6f5d02..0b6665e65 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/v1/tx.proto +// source: neutron/interchaintxs/tx.proto package types @@ -48,7 +48,7 @@ func (m *MsgRegisterInterchainAccount) Reset() { *m = MsgRegisterInterch func (m *MsgRegisterInterchainAccount) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainAccount) ProtoMessage() {} func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_50f087790e59c806, []int{0} + return fileDescriptor_40a159e5a7dbb364, []int{0} } func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ func (m *MsgRegisterInterchainAccountResponse) Reset() { *m = MsgRegiste func (m *MsgRegisterInterchainAccountResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainAccountResponse) ProtoMessage() {} func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_50f087790e59c806, []int{1} + return fileDescriptor_40a159e5a7dbb364, []int{1} } func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -135,7 +135,7 @@ func (m *MsgSubmitTx) Reset() { *m = MsgSubmitTx{} } func (m *MsgSubmitTx) String() string { return proto.CompactTextString(m) } func (*MsgSubmitTx) ProtoMessage() {} func (*MsgSubmitTx) Descriptor() ([]byte, []int) { - return fileDescriptor_50f087790e59c806, []int{2} + return fileDescriptor_40a159e5a7dbb364, []int{2} } func (m *MsgSubmitTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -176,7 +176,7 @@ func (m *MsgSubmitTxResponse) Reset() { *m = MsgSubmitTxResponse{} } func (m *MsgSubmitTxResponse) String() string { return proto.CompactTextString(m) } func (*MsgSubmitTxResponse) ProtoMessage() {} func (*MsgSubmitTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_50f087790e59c806, []int{3} + return fileDescriptor_40a159e5a7dbb364, []int{3} } func (m *MsgSubmitTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,7 +235,7 @@ 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_50f087790e59c806, []int{4} + return fileDescriptor_40a159e5a7dbb364, []int{4} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -289,7 +289,7 @@ 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_50f087790e59c806, []int{5} + return fileDescriptor_40a159e5a7dbb364, []int{5} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,69 +319,68 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgRegisterInterchainAccount)(nil), "neutron.interchaintxs.v1.MsgRegisterInterchainAccount") - proto.RegisterType((*MsgRegisterInterchainAccountResponse)(nil), "neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse") - proto.RegisterType((*MsgSubmitTx)(nil), "neutron.interchaintxs.v1.MsgSubmitTx") - proto.RegisterType((*MsgSubmitTxResponse)(nil), "neutron.interchaintxs.v1.MsgSubmitTxResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "neutron.interchaintxs.v1.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.interchaintxs.v1.MsgUpdateParamsResponse") -} - -func init() { proto.RegisterFile("neutron/interchaintxs/v1/tx.proto", fileDescriptor_50f087790e59c806) } - -var fileDescriptor_50f087790e59c806 = []byte{ - // 802 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xbf, 0x6b, 0x1b, 0x4b, - 0x10, 0xd6, 0x49, 0x7a, 0xfe, 0xb1, 0xd2, 0xe3, 0xf1, 0xce, 0x32, 0x3e, 0x09, 0x5b, 0x92, 0xef, - 0x3d, 0x07, 0xc5, 0xa0, 0x3b, 0x4b, 0x09, 0x2e, 0x0c, 0x09, 0x58, 0x06, 0x83, 0x0a, 0x05, 0x73, - 0x76, 0x9a, 0x34, 0x62, 0x75, 0xb7, 0x3a, 0x1d, 0xd1, 0xed, 0x2a, 0xb7, 0x7b, 0x46, 0x6a, 0x53, - 0x85, 0x54, 0x69, 0x52, 0x06, 0x5c, 0x86, 0x54, 0x2e, 0xf2, 0x07, 0xa4, 0x74, 0x69, 0x52, 0xa5, - 0x72, 0x82, 0x5d, 0x38, 0x5d, 0xc0, 0x7f, 0x41, 0xb8, 0xbd, 0x3d, 0xeb, 0x07, 0x96, 0x30, 0x69, - 0xa4, 0x9d, 0x99, 0x6f, 0xbf, 0x99, 0xfd, 0x66, 0x76, 0x0f, 0xac, 0x63, 0xe4, 0x33, 0x8f, 0x60, - 0xdd, 0xc1, 0x0c, 0x79, 0x66, 0x07, 0x3a, 0x98, 0xf5, 0xa9, 0x7e, 0x5c, 0xd1, 0x59, 0x5f, 0xeb, - 0x79, 0x84, 0x11, 0x59, 0x11, 0x10, 0x6d, 0x0c, 0xa2, 0x1d, 0x57, 0x72, 0x59, 0x93, 0x50, 0x97, - 0xd0, 0x26, 0xc7, 0xe9, 0xa1, 0x11, 0x6e, 0xca, 0xe5, 0x43, 0x4b, 0x6f, 0x41, 0x8a, 0xf4, 0xe3, - 0x4a, 0x0b, 0x31, 0x58, 0xd1, 0x4d, 0xe2, 0x60, 0x11, 0xdf, 0x98, 0x9a, 0xb7, 0x07, 0x3d, 0xe8, - 0x46, 0x34, 0x19, 0x9b, 0xd8, 0x24, 0xa4, 0x0f, 0x56, 0xc2, 0xbb, 0x6c, 0x13, 0x62, 0x77, 0x91, - 0x0e, 0x7b, 0x8e, 0xde, 0x61, 0xac, 0x27, 0xdc, 0xab, 0x23, 0x6e, 0x88, 0x31, 0x61, 0x90, 0x39, - 0x04, 0x47, 0x54, 0x59, 0x11, 0xe5, 0x56, 0xcb, 0x6f, 0xeb, 0x10, 0x0f, 0x44, 0x68, 0x2d, 0x2a, - 0xa6, 0x8d, 0x90, 0x87, 0xda, 0x3e, 0xb6, 0x90, 0x17, 0xac, 0x45, 0x78, 0x45, 0x9c, 0xc5, 0xa5, - 0x76, 0x50, 0xa0, 0x4b, 0x6d, 0x11, 0xf8, 0x17, 0xba, 0x0e, 0x26, 0x3a, 0xff, 0x0d, 0x5d, 0xea, - 0x79, 0x1c, 0xac, 0x36, 0xa8, 0x6d, 0x20, 0xdb, 0xa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0x9b, 0xcf, 0x93, 0xa4, 0xaa, 0x45, 0x6d, 0xda, - 0xb3, 0xa3, 0x85, 0x99, 0x6a, 0x8b, 0xc1, 0x21, 0x3f, 0x5e, 0x9f, 0x6e, 0x4a, 0x86, 0xd8, 0xba, - 0xb3, 0xf5, 0xfa, 0xfa, 0x74, 0x73, 0x48, 0xfa, 0xf6, 0xfa, 0x74, 0x73, 0x6d, 0xfc, 0x81, 0x99, - 0x28, 0x57, 0xcd, 0x82, 0x95, 0x09, 0x57, 0x24, 0x4c, 0xf5, 0x57, 0x1c, 0x24, 0x1a, 0xd4, 0x96, - 0xdf, 0x4b, 0x20, 0x3b, 0xfd, 0x3e, 0x6f, 0x4f, 0xaf, 0x73, 0xd6, 0xd4, 0xe6, 0x9e, 0xfe, 0xd9, - 0xbe, 0xdb, 0x69, 0x8f, 0xc9, 0x2d, 0xb0, 0x70, 0x3b, 0xeb, 0x1b, 0x33, 0xd9, 0x22, 0x58, 0xae, - 0x7c, 0x2f, 0xd8, 0x48, 0x8e, 0x2e, 0x48, 0x8f, 0x75, 0xf7, 0xe1, 0x4c, 0x82, 0x51, 0x68, 0xae, - 0x72, 0x6f, 0x68, 0x94, 0xaf, 0xf6, 0xec, 0xec, 0x32, 0x2f, 0x9d, 0x5f, 0xe6, 0xa5, 0x1f, 0x97, - 0x79, 0xe9, 0xdd, 0x55, 0x3e, 0x76, 0x7e, 0x95, 0x8f, 0x7d, 0xbb, 0xca, 0xc7, 0x5e, 0x3c, 0x1e, - 0x79, 0x44, 0x04, 0x6d, 0x99, 0x78, 0x76, 0xb4, 0xd6, 0xfb, 0x13, 0xdf, 0x11, 0xfe, 0xac, 0xb4, - 0xe6, 0xf8, 0x7d, 0x7b, 0xf4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xd3, 0x11, 0x00, 0xe5, 0x06, - 0x00, 0x00, + proto.RegisterType((*MsgRegisterInterchainAccount)(nil), "neutron.interchaintxs.MsgRegisterInterchainAccount") + proto.RegisterType((*MsgRegisterInterchainAccountResponse)(nil), "neutron.interchaintxs.MsgRegisterInterchainAccountResponse") + proto.RegisterType((*MsgSubmitTx)(nil), "neutron.interchaintxs.MsgSubmitTx") + proto.RegisterType((*MsgSubmitTxResponse)(nil), "neutron.interchaintxs.MsgSubmitTxResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.interchaintxs.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.interchaintxs.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("neutron/interchaintxs/tx.proto", fileDescriptor_40a159e5a7dbb364) } + +var fileDescriptor_40a159e5a7dbb364 = []byte{ + // 795 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6f, 0xd3, 0x4a, + 0x10, 0x8e, 0x93, 0xbc, 0xfe, 0xd8, 0xe4, 0xe9, 0xe9, 0xb9, 0xa9, 0xea, 0x44, 0xad, 0x13, 0x0c, + 0xaa, 0xa2, 0x48, 0xb5, 0xdb, 0x14, 0x71, 0x28, 0x42, 0xa2, 0x41, 0xaa, 0x94, 0x43, 0x50, 0xe5, + 0x96, 0x0b, 0x42, 0x8a, 0x36, 0xf6, 0xc6, 0xb1, 0xa8, 0x77, 0x83, 0x77, 0x5d, 0x25, 0x57, 0x4e, + 0x88, 0x0b, 0xfc, 0x03, 0x48, 0x3d, 0x22, 0x4e, 0x3d, 0x70, 0xe5, 0xde, 0x63, 0xc5, 0x89, 0x0b, + 0x05, 0xb5, 0x87, 0x72, 0xee, 0x5f, 0x80, 0xd6, 0x5e, 0x37, 0x3f, 0x94, 0x94, 0x8a, 0x4b, 0xbc, + 0x33, 0xf3, 0xed, 0x37, 0xb3, 0xdf, 0xcc, 0x6e, 0x80, 0x8a, 0x51, 0xc0, 0x7c, 0x82, 0x0d, 0x17, + 0x33, 0xe4, 0x5b, 0x1d, 0xe8, 0x62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b1, 0x5a, 0xb5, 0x3c, 0x58, 0x1a, 0x73, + 0xc5, 0xaa, 0x54, 0xbf, 0x27, 0x41, 0xaa, 0x41, 0x1d, 0xf9, 0x9d, 0x04, 0xf2, 0xd3, 0x2f, 0xf3, + 0xe6, 0x94, 0x22, 0x6f, 0x9a, 0xd7, 0xc2, 0xc3, 0xbf, 0xd8, 0x74, 0x3d, 0xe4, 0x09, 0xf9, 0x05, + 0x98, 0xbb, 0x1e, 0x71, 0x6d, 0x3a, 0x55, 0x8c, 0x29, 0x54, 0xfe, 0x8c, 0x19, 0x62, 0x6f, 0x83, + 0xec, 0x48, 0x3b, 0x57, 0xa7, 0xef, 0x1e, 0xc6, 0x15, 0xf4, 0xdb, 0xe1, 0xe2, 0x4c, 0xb5, 0xa7, + 0x27, 0xe7, 0xaa, 0x74, 0x7a, 0xae, 0x4a, 0x3f, 0xcf, 0x55, 0xe9, 0xfd, 0x85, 0x9a, 0x38, 0xbd, + 0x50, 0x13, 0xdf, 0x2e, 0xd4, 0xc4, 0xf3, 0xfb, 0x43, 0xef, 0x85, 0xe0, 0x5c, 0x23, 0xbe, 0x13, + 0xaf, 0x8d, 0xde, 0xf8, 0x3f, 0x14, 0x7f, 0x41, 0x5a, 0x33, 0xe1, 0xd5, 0xda, 0xfc, 0x1d, 0x00, + 0x00, 0xff, 0xff, 0xba, 0xdc, 0x2b, 0xd0, 0xc7, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -411,7 +410,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error) { out := new(MsgRegisterInterchainAccountResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Msg/RegisterInterchainAccount", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Msg/RegisterInterchainAccount", in, out, opts...) if err != nil { return nil, err } @@ -420,7 +419,7 @@ func (c *msgClient) RegisterInterchainAccount(ctx context.Context, in *MsgRegist func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error) { out := new(MsgSubmitTxResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Msg/SubmitTx", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Msg/SubmitTx", in, out, opts...) if err != nil { return nil, err } @@ -429,7 +428,7 @@ func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc. func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -471,7 +470,7 @@ func _Msg_RegisterInterchainAccount_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.v1.Msg/RegisterInterchainAccount", + FullMethod: "/neutron.interchaintxs.Msg/RegisterInterchainAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterInterchainAccount(ctx, req.(*MsgRegisterInterchainAccount)) @@ -489,7 +488,7 @@ func _Msg_SubmitTx_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.v1.Msg/SubmitTx", + FullMethod: "/neutron.interchaintxs.Msg/SubmitTx", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).SubmitTx(ctx, req.(*MsgSubmitTx)) @@ -507,7 +506,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.v1.Msg/UpdateParams", + FullMethod: "/neutron.interchaintxs.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -516,7 +515,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.interchaintxs.v1.Msg", + ServiceName: "neutron.interchaintxs.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -533,7 +532,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "neutron/interchaintxs/v1/tx.proto", + Metadata: "neutron/interchaintxs/tx.proto", } func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error) { From 0d8dc79f2f773714a38b1a44329c70676c9f9f2e Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 23 Nov 2023 13:13:32 +0200 Subject: [PATCH 295/307] remove skip's block-sdk --- app/ante_handler.go | 22 ------ app/app.go | 118 ++----------------------------- app/proposals_allowlisting.go | 2 - app/upgrades/types.go | 2 - app/upgrades/v1.1.0/constants.go | 2 - app/upgrades/v1.1.0/upgrades.go | 29 -------- go.mod | 33 +++++---- go.sum | 72 +++++++++---------- 8 files changed, 56 insertions(+), 224 deletions(-) diff --git a/app/ante_handler.go b/app/ante_handler.go index d7821cf1a..7f193471d 100644 --- a/app/ante_handler.go +++ b/app/ante_handler.go @@ -15,9 +15,6 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper" consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante" ibcconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper" - blocksdk "github.com/skip-mev/block-sdk/block" - auctionante "github.com/skip-mev/block-sdk/x/auction/ante" - auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" ) // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC @@ -30,13 +27,6 @@ type HandlerOptions struct { WasmConfig *wasmTypes.WasmConfig TXCounterStoreKey storetypes.StoreKey - // block-sdk deps - // Auction deps - AuctionKeeper auctionkeeper.Keeper - TxEncoder sdk.TxEncoder - MEVLane auctionante.MEVLane - Mempool blocksdk.Mempool - // globalFee GlobalFeeSubspace paramtypes.Subspace } @@ -61,13 +51,6 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, return nil, errors.Wrap(gaiaerrors.ErrNotFound, "globalfee param store is required for AnteHandler") } - if options.Mempool == nil { - return nil, errors.Wrap(gaiaerrors.ErrLogic, "mempool is required for AnteHandler") - } - if options.MEVLane == nil { - return nil, errors.Wrap(gaiaerrors.ErrLogic, "mev lane is required for AnteHandler") - } - sigGasConsumer := options.SigGasConsumer if sigGasConsumer == nil { sigGasConsumer = ante.DefaultSigVerificationGasConsumer @@ -97,11 +80,6 @@ func NewAnteHandler(options HandlerOptions, logger log.Logger) (sdk.AnteHandler, ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler), ante.NewIncrementSequenceDecorator(options.AccountKeeper), ibcante.NewRedundantRelayDecorator(options.IBCKeeper), - auctionante.NewAuctionDecorator( - options.AuctionKeeper, - options.TxEncoder, - options.MEVLane, - ), } // Don't delete it even if IDE tells you so. diff --git a/app/app.go b/app/app.go index ae75a88b9..bea69a97a 100644 --- a/app/app.go +++ b/app/app.go @@ -149,19 +149,6 @@ import ( consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" pfmkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper" pfmtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types" - - // Block-sdk imports - blocksdkabci "github.com/skip-mev/block-sdk/abci" - signer_extraction_adapter "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter" - blocksdk "github.com/skip-mev/block-sdk/block" - blocksdkbase "github.com/skip-mev/block-sdk/block/base" - base_lane "github.com/skip-mev/block-sdk/lanes/base" - mev_lane "github.com/skip-mev/block-sdk/lanes/mev" - "github.com/skip-mev/block-sdk/x/auction" - auctionante "github.com/skip-mev/block-sdk/x/auction/ante" - auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" - rewardsaddressprovider "github.com/skip-mev/block-sdk/x/auction/rewards" - auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" ) const ( @@ -216,14 +203,12 @@ var ( ), ibchooks.AppModuleBasic{}, packetforward.AppModuleBasic{}, - auction.AppModuleBasic{}, globalfee.AppModule{}, ) // module account permissions maccPerms = map[string][]string{ authtypes.FeeCollectorName: nil, - auctiontypes.ModuleName: nil, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, icatypes.ModuleName: nil, wasmtypes.ModuleName: {}, @@ -274,12 +259,10 @@ type App struct { memKeys map[string]*storetypes.MemoryStoreKey // keepers - AccountKeeper authkeeper.AccountKeeper - AdminmoduleKeeper adminmodulekeeper.Keeper - AuthzKeeper authzkeeper.Keeper - BankKeeper bankkeeper.BaseKeeper - // AuctionKeeper is the keeper that handles processing auction transactions - AuctionKeeper auctionkeeper.Keeper + AccountKeeper authkeeper.AccountKeeper + AdminmoduleKeeper adminmodulekeeper.Keeper + AuthzKeeper authzkeeper.Keeper + BankKeeper bankkeeper.BaseKeeper CapabilityKeeper *capabilitykeeper.Keeper SlashingKeeper slashingkeeper.Keeper CrisisKeeper crisiskeeper.Keeper @@ -323,13 +306,6 @@ type App struct { // sm is the simulation manager sm *module.SimulationManager - - // Custom checkTx handler - checkTxHandler mev_lane.CheckTx - - // Lanes - Mempool blocksdk.Mempool - MEVLane auctionante.MEVLane } func (app *App) GetTestBankKeeper() integration.TestBankKeeper { @@ -381,7 +357,7 @@ func New( icahosttypes.StoreKey, capabilitytypes.StoreKey, interchainqueriesmoduletypes.StoreKey, contractmanagermoduletypes.StoreKey, interchaintxstypes.StoreKey, wasmtypes.StoreKey, feetypes.StoreKey, feeburnertypes.StoreKey, adminmoduletypes.StoreKey, ccvconsumertypes.StoreKey, tokenfactorytypes.StoreKey, pfmtypes.StoreKey, - crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, auctiontypes.StoreKey, + crontypes.StoreKey, ibchookstypes.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey, ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, feetypes.MemStoreKey) @@ -594,16 +570,6 @@ func New( app.TokenFactoryKeeper.Hooks(), )) - app.AuctionKeeper = auctionkeeper.NewKeeperWithRewardsAddressProvider( - appCodec, - keys[auctiontypes.StoreKey], - app.AccountKeeper, - &app.BankKeeper, - // 25% of rewards should be sent to the Hub - rewardsaddressprovider.NewFixedAddressRewardsAddressProvider(app.AccountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerToSendToProviderName)), - authtypes.NewModuleAddress(adminmoduletypes.ModuleName).String(), - ) - wasmDir := filepath.Join(homePath, "wasm") wasmConfig, err := wasm.ReadWasmConfig(appOpts) if err != nil { @@ -772,7 +738,6 @@ func New( tokenfactory.NewAppModule(appCodec, *app.TokenFactoryKeeper, app.AccountKeeper, app.BankKeeper), cronModule, globalfee.NewAppModule(app.GetSubspace(globalfee.ModuleName)), - auction.NewAppModule(appCodec, app.AuctionKeeper), crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them ) @@ -781,7 +746,6 @@ func New( // CanWithdrawInvariant invariant. // NOTE: staking module is required if HistoricalEntries param > 0 app.mm.SetOrderBeginBlockers( - auctiontypes.ModuleName, upgradetypes.ModuleName, capabilitytypes.ModuleName, slashingtypes.ModuleName, @@ -812,7 +776,6 @@ func New( ) app.mm.SetOrderEndBlockers( - auctiontypes.ModuleName, crisistypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, @@ -848,7 +811,6 @@ func New( // so that other modules that want to create or claim capabilities afterwards in InitChain // can do so safely. app.mm.SetOrderInitGenesis( - auctiontypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, ibctransfertypes.ModuleName, @@ -916,38 +878,6 @@ func New( app.SetInitChainer(app.InitChainer) app.SetBeginBlocker(app.BeginBlocker) - // initialize block-sdk Mempool - maxTxs := 0 // no limit - cfg := blocksdkbase.LaneConfig{ - Logger: app.Logger(), - TxDecoder: app.GetTxConfig().TxDecoder(), - TxEncoder: app.GetTxConfig().TxEncoder(), - SignerExtractor: signer_extraction_adapter.NewDefaultAdapter(), - MaxBlockSpace: sdk.ZeroDec(), - MaxTxs: maxTxs, - } - - baseLane := base_lane.NewDefaultLane(cfg) - - mevLane := mev_lane.NewMEVLane( - cfg, - mev_lane.NewDefaultAuctionFactory(app.GetTxConfig().TxDecoder(), signer_extraction_adapter.NewDefaultAdapter()), - ) - app.MEVLane = mevLane - // initialize mempool - mempool := blocksdk.NewLanedMempool( - app.Logger(), - true, - []blocksdk.Lane{ - mevLane, // mev-lane is first to prioritize bids being placed at the TOB - baseLane, // finally, all the rest of txs... - }..., - ) - - // set the mempool first - app.SetMempool(mempool) - app.Mempool = mempool - anteHandler, err := NewAnteHandler( HandlerOptions{ HandlerOptions: ante.HandlerOptions{ @@ -962,10 +892,6 @@ func New( TXCounterStoreKey: keys[wasmtypes.StoreKey], ConsumerKeeper: app.ConsumerKeeper, GlobalFeeSubspace: app.GetSubspace(globalfee.ModuleName), - AuctionKeeper: app.AuctionKeeper, - TxEncoder: app.GetTxConfig().TxEncoder(), - Mempool: app.Mempool, - MEVLane: app.MEVLane, }, app.Logger(), ) @@ -974,29 +900,9 @@ func New( } app.SetAnteHandler(anteHandler) - mevLane.SetAnteHandler(anteHandler) - baseLane.SetAnteHandler(anteHandler) app.SetEndBlocker(app.EndBlocker) - handler := blocksdkabci.NewProposalHandler( - app.Logger(), - app.GetTxConfig().TxDecoder(), - app.GetTxConfig().TxEncoder(), - mempool, - ) - app.SetPrepareProposal(handler.PrepareProposalHandler()) - app.SetProcessProposal(handler.ProcessProposalHandler()) - - checkTxHandler := mev_lane.NewCheckTxHandler( - app.BaseApp, - encodingConfig.TxConfig.TxDecoder(), - mevLane, - anteHandler, - chainID, - ) - app.SetCheckTx(checkTxHandler.CheckTx()) - // must be before Loading version // requires the snapshot store to be created and registered as a BaseAppOption // see cmd/wasmd/root.go: 206 - 214 approx @@ -1064,7 +970,6 @@ func (app *App) setupUpgradeHandlers() { SlashingKeeper: app.SlashingKeeper, ParamsKeeper: app.ParamsKeeper, CapabilityKeeper: app.CapabilityKeeper, - AuctionKeeper: app.AuctionKeeper, ContractManager: app.ContractManagerKeeper, AdminModule: app.AdminmoduleKeeper, ConsensusKeeper: &app.ConsensusParamsKeeper, @@ -1078,19 +983,6 @@ func (app *App) setupUpgradeHandlers() { } } -// CheckTx will check the transaction with the provided checkTxHandler. We override the default -// handler so that we can verify bid transactions before they are inserted into the mempool. -// With the POB CheckTx, we can verify the bid transaction and all of the bundled transactions -// before inserting the bid transaction into the mempool. -func (app *App) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx { - return app.checkTxHandler(req) -} - -// SetCheckTx sets the checkTxHandler for the app. -func (app *App) SetCheckTx(handler mev_lane.CheckTx) { - app.checkTxHandler = handler -} - // Name returns the name of the App func (app *App) Name() string { return app.BaseApp.Name() } diff --git a/app/proposals_allowlisting.go b/app/proposals_allowlisting.go index 898547166..23722d742 100644 --- a/app/proposals_allowlisting.go +++ b/app/proposals_allowlisting.go @@ -15,7 +15,6 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" - auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types" crontypes "github.com/neutron-org/neutron/x/cron/types" @@ -67,7 +66,6 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool { *feerefundertypes.MsgUpdateParams, *crontypes.MsgUpdateParams, *contractmanagertypes.MsgUpdateParams, - *auctiontypes.MsgUpdateParams, *banktypes.MsgUpdateParams, *crisistypes.MsgUpdateParams, *minttypes.MsgUpdateParams, diff --git a/app/upgrades/types.go b/app/upgrades/types.go index 13747e54b..c07d1dad1 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -11,7 +11,6 @@ import ( paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" cronkeeper "github.com/neutron-org/neutron/x/cron/keeper" @@ -47,7 +46,6 @@ type UpgradeKeepers struct { SlashingKeeper slashingkeeper.Keeper ParamsKeeper paramskeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper - AuctionKeeper auctionkeeper.Keeper ContractManager contractmanagerkeeper.Keeper AdminModule adminmodulekeeper.Keeper ConsensusKeeper *consensuskeeper.Keeper diff --git a/app/upgrades/v1.1.0/constants.go b/app/upgrades/v1.1.0/constants.go index 8fc8e6d94..030e54299 100644 --- a/app/upgrades/v1.1.0/constants.go +++ b/app/upgrades/v1.1.0/constants.go @@ -4,7 +4,6 @@ import ( "github.com/cosmos/cosmos-sdk/store/types" consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" - auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" "github.com/neutron-org/neutron/app/upgrades" ) @@ -23,7 +22,6 @@ var Upgrade = upgrades.Upgrade{ Added: []string{ consensusparamtypes.ModuleName, crisistypes.ModuleName, - auctiontypes.ModuleName, }, }, } diff --git a/app/upgrades/v1.1.0/upgrades.go b/app/upgrades/v1.1.0/upgrades.go index 3ba3a35ef..9c9e3314a 100644 --- a/app/upgrades/v1.1.0/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -5,13 +5,11 @@ import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/baseapp" - authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/neutron-org/neutron/app/params" - "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -22,8 +20,6 @@ import ( "github.com/cosmos/gaia/v11/x/globalfee/types" v6 "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/migrations/v6" ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types" - auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper" - auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" "github.com/neutron-org/neutron/app/upgrades" contractmanagerkeeper "github.com/neutron-org/neutron/x/contractmanager/keeper" @@ -86,12 +82,6 @@ func CreateUpgradeHandler( return nil, err } - ctx.Logger().Info("Setting pob params...") - err = setAuctionParams(ctx, keepers.AccountKeeper, keepers.AuctionKeeper) - if err != nil { - return nil, err - } - ctx.Logger().Info("Setting sudo callback limit...") err = setContractManagerParams(ctx, keepers.ContractManager) if err != nil { @@ -127,25 +117,6 @@ func CreateUpgradeHandler( } } -func setAuctionParams(ctx sdk.Context, accountKeeper authkeeper.AccountKeeper, auctionKeeper auctionkeeper.Keeper) error { - consumerRedistributeAddr := accountKeeper.GetModuleAddress(ccvconsumertypes.ConsumerRedistributeName) - - auctionParams := auctiontypes.Params{ - MaxBundleSize: 4, - // 75% of rewards goes to consumer redistribution module and then to the FeeBurner module - // where all the NTRNs are burned - EscrowAccountAddress: consumerRedistributeAddr, - ReserveFee: sdk.Coin{Denom: params.DefaultDenom, Amount: sdk.NewInt(500_000)}, - MinBidIncrement: sdk.Coin{Denom: params.DefaultDenom, Amount: sdk.NewInt(100_000)}, - FrontRunningProtection: false, - // in the app.go on L603 set FixedAddressRewardsAddressProvider (where 25% goes to) - // to ConsumerToSendToProviderName module from where rewards goes to the Hub - // Meaning we sent 25% of the MEV rewards to the Hub - ProposerFee: math.LegacyNewDecWithPrec(25, 2), - } - return auctionKeeper.SetParams(ctx, auctionParams) -} - func setContractManagerParams(ctx sdk.Context, keeper contractmanagerkeeper.Keeper) error { cmParams := contractmanagertypes.Params{ SudoCallGasLimit: contractmanagertypes.DefaultSudoCallGasLimit, diff --git a/go.mod b/go.mod index fe521e720..340f9db25 100644 --- a/go.mod +++ b/go.mod @@ -24,27 +24,26 @@ require ( github.com/gogo/protobuf v1.3.3 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.3 - github.com/gorilla/mux v1.8.0 + github.com/gorilla/mux v1.8.1 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/rs/zerolog v1.30.0 - github.com/skip-mev/block-sdk v1.1.0 github.com/spf13/cast v1.5.1 - github.com/spf13/cobra v1.7.0 + github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 + google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 google.golang.org/grpc v1.59.0 gopkg.in/yaml.v2 v2.4.0 ) require ( - cloud.google.com/go v0.110.8 // indirect - cloud.google.com/go/compute v1.23.0 // indirect + cloud.google.com/go v0.110.9 // indirect + cloud.google.com/go/compute v1.23.2 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.2 // indirect + cloud.google.com/go/iam v1.1.4 // indirect cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/api v0.3.1 // indirect cosmossdk.io/depinject v1.0.0-alpha.4 // indirect @@ -53,13 +52,13 @@ require ( github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect - github.com/aws/aws-sdk-go v1.44.224 // indirect + github.com/aws/aws-sdk-go v1.44.203 // 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 github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect - github.com/cenkalti/backoff/v4 v4.2.1 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chzyer/readline v1.5.1 // indirect @@ -125,10 +124,10 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.16.7 // indirect + github.com/klauspost/compress v1.16.5 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/lib/pq v1.10.9 // indirect + github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.0 // indirect github.com/magiconair/properties v1.8.7 // indirect @@ -149,7 +148,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_model v0.4.0 // indirect github.com/prometheus/common v0.44.0 // indirect - github.com/prometheus/procfs v0.11.0 // indirect + github.com/prometheus/procfs v0.10.1 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect @@ -168,8 +167,8 @@ require ( go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect - golang.org/x/net v0.15.0 // indirect - golang.org/x/oauth2 v0.12.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/oauth2 v0.11.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect @@ -177,12 +176,12 @@ require ( golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.128.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect + google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - nhooyr.io/websocket v1.8.7 // indirect + nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v0.6.2 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) diff --git a/go.sum b/go.sum index 290740da2..2dfa65c97 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,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.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= -cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= +cloud.google.com/go v0.110.9 h1:e7ITSqGFFk4rbz/JFIqZh3G4VEHguhAL4BQcFlWtU68= +cloud.google.com/go v0.110.9/go.mod h1:rpxevX/0Lqvlbc88b7Sc1SPNdyK1riNBTUU6JXhYNpM= 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= @@ -73,8 +73,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.2 h1:nWEMDhgbBkBJjfpVySqU4jgWdc22PLR0o4vEexZHers= +cloud.google.com/go/compute v1.23.2/go.mod h1:JJ0atRC0J/oWYiiVBmsSsrRnh92DhZPG4hFDcR04Rns= 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= @@ -114,8 +114,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.2 h1:gacbrBdWcoVmGLozRuStX45YKvJtzIjJdAolzUs1sm4= -cloud.google.com/go/iam v1.1.2/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= +cloud.google.com/go/iam v1.1.4 h1:K6n/GZHFTtEoKT5aUG3l9diPi0VduZNQ1PfdnpkkIFk= +cloud.google.com/go/iam v1.1.4/go.mod h1:l/rg8l1AaA+VFMho/HYx2Vv6xinPSLMF8qfhRPIZ0L8= 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= @@ -263,8 +263,8 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l 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/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ= -github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +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= @@ -320,8 +320,8 @@ github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= -github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= +github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= @@ -415,7 +415,7 @@ github.com/cosmos/rosetta-sdk-go v0.10.0 h1:E5RhTruuoA7KTIXUcMicL76cffyeoyvNybzU 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.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.3/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= @@ -688,8 +688,9 @@ github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= @@ -820,8 +821,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.7 h1:2mk3MPGNzKyxErAw8YaohYh69+pa4sIQSC0fPGCFR9I= -github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= +github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= @@ -844,8 +845,8 @@ github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2 github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= -github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= 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= @@ -1037,8 +1038,8 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.11.0 h1:5EAgkfkMl659uZPbe9AS2N68a7Cc1TJbPEuGzFuRbyk= -github.com/prometheus/procfs v0.11.0/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= +github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= @@ -1079,9 +1080,7 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/skip-mev/block-sdk v1.1.0 h1:cYEO/ASxhtasdRStMXhw1cWOjCJ78Z3J+K01n++OHkU= -github.com/skip-mev/block-sdk v1.1.0/go.mod h1:G/ryMdo70R1xOJehV1RqDyTH0x7gffwB1wU9MLMzIHE= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -1097,8 +1096,8 @@ 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.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= 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= @@ -1281,7 +1280,7 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= +golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1348,8 +1347,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= 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= @@ -1375,8 +1374,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.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= -golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= +golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= +golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= 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= @@ -1592,7 +1591,7 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= +golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1779,12 +1778,12 @@ 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-20230920204549-e6e6cdab5c13 h1:vlzZttNJGVqTsRFU9AmdnrcO1Znh8Ew9kCD//yjigk0= -google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:CCviP9RmpZ1mxVr8MUjCnSiY09IbAXZxhLE6EhHIdPU= -google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 h1:W18sezcAYs+3tDZX4F80yctqa12jcP1PUS2gQu1zTPU= -google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97/go.mod h1:iargEX0SFPm3xcfMI0d1domjg0ZF4Aa0p2awqyxhvF0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 h1:N3bU/SQDCDyD6R528GJ/PwW9KjYcJA3dgyH+MovAkIM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA= +google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 h1:I6WNifs6pF9tNdSob2W24JtyxIYjzFB9qDlpUC76q+U= +google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1:JpwMPBpFN3uKhdaekDpiNlImDdkUAyiJ6ez/uxGaUSo= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= 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.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1893,9 +1892,8 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= +nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= 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.6.2 h1:ErW5sL+UKtfBfUTsWHDCoeB+eZKLKMxrSd1VJY6W4bw= pgregory.net/rapid v0.6.2/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= From 1ec52a5ba6d643eedcab23a8b1a65779efab4cb8 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 23 Nov 2023 13:16:29 +0200 Subject: [PATCH 296/307] remove unused var --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index bea69a97a..744b681c4 100644 --- a/app/app.go +++ b/app/app.go @@ -327,7 +327,7 @@ func (app *App) GetTestEvidenceKeeper() integration.TestEvidenceKeeper { // New returns a reference to an initialized blockchain app func New( logger log.Logger, - chainID string, + _ string, db dbm.DB, traceStore io.Writer, loadLatest bool, From dcc09b9243ef06ddc508d007be3f9909aed5b036 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Thu, 23 Nov 2023 13:21:28 +0200 Subject: [PATCH 297/307] Revert "remove v1 from ictx module" This reverts commit 713963529c4d822ffb2f84f08f754fdfe73fa15e. --- docs/static/openapi.yml | 16 +- .../interchaintxs/{ => v1}/genesis.proto | 4 +- .../interchaintxs/{ => v1}/params.proto | 2 +- .../interchaintxs/{ => v1}/query.proto | 4 +- proto/neutron/interchaintxs/{ => v1}/tx.proto | 4 +- wasmbinding/stargate_allowlist.go | 2 +- x/interchaintxs/types/genesis.pb.go | 36 ++-- x/interchaintxs/types/params.pb.go | 48 +++--- x/interchaintxs/types/query.pb.go | 105 ++++++------ x/interchaintxs/types/query.pb.gw.go | 2 +- x/interchaintxs/types/tx.pb.go | 155 +++++++++--------- 11 files changed, 191 insertions(+), 187 deletions(-) rename proto/neutron/interchaintxs/{ => v1}/genesis.proto (76%) rename proto/neutron/interchaintxs/{ => v1}/params.proto (94%) rename proto/neutron/interchaintxs/{ => v1}/query.proto (95%) rename proto/neutron/interchaintxs/{ => v1}/tx.proto (97%) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 5a6428940..5a4103ac3 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -40292,7 +40292,7 @@ paths: /neutron/interchaintxs/params: get: summary: Parameters queries the parameters of the module. - operationId: NeutronInterchaintxsParams + operationId: NeutronInterchaintxsV1Params responses: '200': description: A successful response. @@ -40521,7 +40521,7 @@ paths: - Query /neutron/interchaintxs/{owner_address}/{interchain_account_id}/{connection_id}/interchain_account_address: get: - operationId: NeutronInterchaintxsInterchainAccountAddress + operationId: NeutronInterchaintxsV1InterchainAccountAddress responses: '200': description: A successful response. @@ -71305,12 +71305,12 @@ definitions: The data could be arbitrary format, providing nessecary data for example neighbouring node hash title: ProofOps is Merkle proof defined by the list of ProofOps - neutron.interchaintxs.MsgRegisterInterchainAccountResponse: + neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse: type: object description: |- MsgRegisterInterchainAccountResponse is the response type for MsgRegisterInterchainAccount. - neutron.interchaintxs.MsgSubmitTxResponse: + neutron.interchaintxs.v1.MsgSubmitTxResponse: type: object properties: sequence_id: @@ -71321,14 +71321,14 @@ definitions: type: string title: channel src channel on neutron side transaction was submitted from title: MsgSubmitTxResponse defines the response for Msg/SubmitTx - neutron.interchaintxs.MsgUpdateParamsResponse: + neutron.interchaintxs.v1.MsgUpdateParamsResponse: type: object description: |- MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. Since: 0.47 - neutron.interchaintxs.Params: + neutron.interchaintxs.v1.Params: type: object properties: msg_submit_tx_max_messages: @@ -71351,14 +71351,14 @@ definitions: signatures required by gogoproto. title: Defines a minimum fee required to register interchain account description: Params defines the parameters for the module. - neutron.interchaintxs.QueryInterchainAccountAddressResponse: + neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse: type: object properties: interchain_account_address: type: string title: The corresponding interchain account address on the host chain title: Query response for an interchain account address - neutron.interchaintxs.QueryParamsResponse: + neutron.interchaintxs.v1.QueryParamsResponse: type: object properties: params: diff --git a/proto/neutron/interchaintxs/genesis.proto b/proto/neutron/interchaintxs/v1/genesis.proto similarity index 76% rename from proto/neutron/interchaintxs/genesis.proto rename to proto/neutron/interchaintxs/v1/genesis.proto index 850394c59..bff673af1 100644 --- a/proto/neutron/interchaintxs/genesis.proto +++ b/proto/neutron/interchaintxs/v1/genesis.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; import "gogoproto/gogo.proto"; -import "neutron/interchaintxs/params.proto"; +import "neutron/interchaintxs/v1/params.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; diff --git a/proto/neutron/interchaintxs/params.proto b/proto/neutron/interchaintxs/v1/params.proto similarity index 94% rename from proto/neutron/interchaintxs/params.proto rename to proto/neutron/interchaintxs/v1/params.proto index 734e7cb2e..1a720e961 100644 --- a/proto/neutron/interchaintxs/params.proto +++ b/proto/neutron/interchaintxs/v1/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/neutron/interchaintxs/query.proto b/proto/neutron/interchaintxs/v1/query.proto similarity index 95% rename from proto/neutron/interchaintxs/query.proto rename to proto/neutron/interchaintxs/v1/query.proto index e10fb44c5..285aacdf7 100644 --- a/proto/neutron/interchaintxs/query.proto +++ b/proto/neutron/interchaintxs/v1/query.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "neutron/interchaintxs/params.proto"; +import "neutron/interchaintxs/v1/params.proto"; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; diff --git a/proto/neutron/interchaintxs/tx.proto b/proto/neutron/interchaintxs/v1/tx.proto similarity index 97% rename from proto/neutron/interchaintxs/tx.proto rename to proto/neutron/interchaintxs/v1/tx.proto index cb1dabbfd..5ce7899c8 100644 --- a/proto/neutron/interchaintxs/tx.proto +++ b/proto/neutron/interchaintxs/v1/tx.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package neutron.interchaintxs; +package neutron.interchaintxs.v1; option go_package = "github.com/neutron-org/neutron/x/interchaintxs/types"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "neutron/interchaintxs/params.proto"; +import "neutron/interchaintxs/v1/params.proto"; import "gogoproto/gogo.proto"; import "google/api/http.proto"; import "google/api/annotations.proto"; diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 1a1ca5483..f4320b8dd 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -45,7 +45,7 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries { "/cosmos.bank.v1beta1.Query/SupplyOf": &banktypes.QuerySupplyOfResponse{}, // interchaintxs - "/neutron.interchaintxs.Query/Params": &interchaintxstypes.QueryParamsResponse{}, + "/neutron.interchaintxs.v1.Query/Params": &interchaintxstypes.QueryParamsResponse{}, // interchainqueries "/neutron.interchainqueries.Query/Params": &interchainqueriestypes.QueryParamsResponse{}, diff --git a/x/interchaintxs/types/genesis.pb.go b/x/interchaintxs/types/genesis.pb.go index 0f59b4765..e6a20056e 100644 --- a/x/interchaintxs/types/genesis.pb.go +++ b/x/interchaintxs/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/genesis.proto +// source: neutron/interchaintxs/v1/genesis.proto package types @@ -32,7 +32,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_e49275bc96c5883d, []int{0} + return fileDescriptor_d16558b72a810826, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,28 +69,28 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.GenesisState") + proto.RegisterType((*GenesisState)(nil), "neutron.interchaintxs.v1.GenesisState") } func init() { - proto.RegisterFile("neutron/interchaintxs/genesis.proto", fileDescriptor_e49275bc96c5883d) + proto.RegisterFile("neutron/interchaintxs/v1/genesis.proto", fileDescriptor_d16558b72a810826) } -var fileDescriptor_e49275bc96c5883d = []byte{ - // 198 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2d, 0x2d, +var fileDescriptor_d16558b72a810826 = []byte{ + // 204 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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0x76, - 0x5c, 0x97, 0x1b, 0x01, 0x00, 0x00, + 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x92, 0x80, 0xaa, 0xd3, 0x43, 0x51, 0xa7, 0x57, 0x66, 0x28, 0x25, 0x92, 0x9e, + 0x9f, 0x9e, 0x0f, 0x56, 0xa4, 0x0f, 0x62, 0x41, 0xd4, 0x4b, 0xa9, 0xe2, 0x34, 0xb7, 0x20, 0xb1, + 0x28, 0x31, 0x17, 0x6a, 0xac, 0x92, 0x1f, 0x17, 0x8f, 0x3b, 0xc4, 0x9e, 0xe0, 0x92, 0xc4, 0x92, + 0x54, 0x21, 0x3b, 0x2e, 0x36, 0x88, 0xbc, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x82, 0x1e, + 0x2e, 0x7b, 0xf5, 0x02, 0xc0, 0xea, 0x9c, 0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0xea, 0x72, + 0xf2, 0x3b, 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, 0x93, 0xf4, 0xcc, 0x92, + 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x99, 0xba, 0xf9, 0x45, 0xe9, 0x30, 0xb6, + 0x7e, 0x05, 0x9a, 0x4b, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xce, 0x34, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xc0, 0xc8, 0x84, 0x5c, 0x27, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/params.pb.go b/x/interchaintxs/types/params.pb.go index 205eb708b..844def56c 100644 --- a/x/interchaintxs/types/params.pb.go +++ b/x/interchaintxs/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/params.proto +// source: neutron/interchaintxs/v1/params.proto package types @@ -35,7 +35,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_0371c2fec8782216, []int{0} + return fileDescriptor_52b0ced89d3fa9c6, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,33 +79,33 @@ func (m *Params) GetRegisterFee() []types.Coin { } func init() { - proto.RegisterType((*Params)(nil), "neutron.interchaintxs.Params") + proto.RegisterType((*Params)(nil), "neutron.interchaintxs.v1.Params") } func init() { - proto.RegisterFile("neutron/interchaintxs/params.proto", fileDescriptor_0371c2fec8782216) + proto.RegisterFile("neutron/interchaintxs/v1/params.proto", fileDescriptor_52b0ced89d3fa9c6) } -var fileDescriptor_0371c2fec8782216 = []byte{ - // 282 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xb1, 0x4e, 0xf3, 0x30, - 0x14, 0x85, 0xe3, 0xff, 0xaf, 0x3a, 0xa4, 0x4c, 0x15, 0xa0, 0xd2, 0xc1, 0xad, 0x3a, 0x75, 0xc1, - 0x56, 0x81, 0xa9, 0x63, 0x90, 0xd8, 0x8a, 0x50, 0x61, 0x62, 0x89, 0x9c, 0xe8, 0xe2, 0x7a, 0xb0, - 0x1d, 0xf9, 0x3a, 0xc8, 0xbc, 0x04, 0x62, 0x64, 0xe4, 0x71, 0x3a, 0x76, 0x64, 0x42, 0x28, 0x79, - 0x11, 0xd4, 0x24, 0x1d, 0x60, 0x3b, 0xd2, 0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70, 0x6e, 0x9d, 0x3c, - 0x64, 0x1e, 0xfe, 0x8c, 0xe6, 0x5f, 0x0a, 0xc0, 0xac, 0xdf, 0xdc, 0x79, 0xf9, 0x13, 0x00, 0x00, - 0xff, 0xff, 0x35, 0xb5, 0x95, 0xb4, 0x5a, 0x01, 0x00, 0x00, +var fileDescriptor_52b0ced89d3fa9c6 = []byte{ + // 288 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xb1, 0x4a, 0x33, 0x41, + 0x14, 0x85, 0x77, 0xfe, 0x3f, 0xa4, 0xd8, 0x58, 0x05, 0x91, 0x98, 0x62, 0x12, 0x04, 0x21, 0x8d, + 0x33, 0xac, 0x5a, 0xa5, 0x8c, 0x60, 0x17, 0x91, 0x68, 0x65, 0xb3, 0xcc, 0x2e, 0xd7, 0xc9, 0x14, + 0x33, 0x13, 0xe6, 0xce, 0x2e, 0xe3, 0x4b, 0x88, 0xa5, 0xa5, 0x8f, 0x93, 0x32, 0xa5, 0x95, 0xc8, + 0xee, 0x8b, 0x48, 0x76, 0x37, 0x85, 0x76, 0x07, 0xce, 0x77, 0xf9, 0xb8, 0x27, 0x3e, 0x37, 0x50, + 0x78, 0x67, 0x0d, 0x57, 0xc6, 0x83, 0xcb, 0xd7, 0x42, 0x19, 0x1f, 0x90, 0x97, 0x09, 0xdf, 0x08, + 0x27, 0x34, 0xb2, 0x8d, 0xb3, 0xde, 0x0e, 0x47, 0x1d, 0xc6, 0x7e, 0x61, 0xac, 0x4c, 0xc6, 0xc7, + 0xd2, 0x4a, 0xdb, 0x40, 0x7c, 0x9f, 0x5a, 0x7e, 0x4c, 0x73, 0x8b, 0xda, 0x22, 0xcf, 0x04, 0x02, + 0x2f, 0x93, 0x0c, 0xbc, 0x48, 0x78, 0x6e, 0x95, 0x69, 0xfb, 0xb3, 0x57, 0x12, 0xf7, 0xef, 0x1b, + 0xc1, 0x70, 0x1e, 0x8f, 0x35, 0xca, 0x14, 0x8b, 0x4c, 0x2b, 0x9f, 0xfa, 0x90, 0x6a, 0x11, 0x52, + 0x0d, 0x88, 0x42, 0x02, 0x8e, 0xc8, 0x94, 0xcc, 0x7a, 0xab, 0x13, 0x8d, 0xf2, 0xa1, 0x01, 0x1e, + 0xc3, 0x52, 0x84, 0x65, 0xd7, 0x0e, 0x17, 0xf1, 0x91, 0x03, 0xa9, 0xd0, 0x83, 0x4b, 0x9f, 0x01, + 0x46, 0xff, 0xa6, 0xff, 0x67, 0x83, 0xcb, 0x53, 0xd6, 0xda, 0xd9, 0xde, 0xce, 0x3a, 0x3b, 0xbb, + 0xb1, 0xca, 0x2c, 0x7a, 0xdb, 0xaf, 0x49, 0xb4, 0x1a, 0x1c, 0x8e, 0x6e, 0x01, 0xe6, 0xbd, 0xf7, + 0x8f, 0x49, 0xb4, 0xb8, 0xdb, 0x56, 0x94, 0xec, 0x2a, 0x4a, 0xbe, 0x2b, 0x4a, 0xde, 0x6a, 0x1a, + 0xed, 0x6a, 0x1a, 0x7d, 0xd6, 0x34, 0x7a, 0xba, 0x96, 0xca, 0xaf, 0x8b, 0x8c, 0xe5, 0x56, 0xf3, + 0x6e, 0x85, 0x0b, 0xeb, 0xe4, 0x21, 0xf3, 0xf0, 0x67, 0x3a, 0xff, 0xb2, 0x01, 0xcc, 0xfa, 0xcd, + 0x9f, 0x57, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xcc, 0x9a, 0x6c, 0x60, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/query.pb.go b/x/interchaintxs/types/query.pb.go index 514420970..6d7ea05e7 100644 --- a/x/interchaintxs/types/query.pb.go +++ b/x/interchaintxs/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/query.proto +// source: neutron/interchaintxs/v1/query.proto package types @@ -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_9804d0830e584ce5, []int{0} + return fileDescriptor_6130c5f6c54e2428, []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_9804d0830e584ce5, []int{1} + return fileDescriptor_6130c5f6c54e2428, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ func (m *QueryInterchainAccountAddressRequest) Reset() { *m = QueryInter func (m *QueryInterchainAccountAddressRequest) String() string { return proto.CompactTextString(m) } func (*QueryInterchainAccountAddressRequest) ProtoMessage() {} func (*QueryInterchainAccountAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9804d0830e584ce5, []int{2} + return fileDescriptor_6130c5f6c54e2428, []int{2} } func (m *QueryInterchainAccountAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,7 +168,7 @@ func (m *QueryInterchainAccountAddressResponse) Reset() { *m = QueryInte func (m *QueryInterchainAccountAddressResponse) String() string { return proto.CompactTextString(m) } func (*QueryInterchainAccountAddressResponse) ProtoMessage() {} func (*QueryInterchainAccountAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9804d0830e584ce5, []int{3} + return fileDescriptor_6130c5f6c54e2428, []int{3} } func (m *QueryInterchainAccountAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -205,46 +205,49 @@ func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() st } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "neutron.interchaintxs.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "neutron.interchaintxs.QueryParamsResponse") - proto.RegisterType((*QueryInterchainAccountAddressRequest)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressRequest") - proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.QueryInterchainAccountAddressResponse") -} - -func init() { proto.RegisterFile("neutron/interchaintxs/query.proto", fileDescriptor_9804d0830e584ce5) } - -var fileDescriptor_9804d0830e584ce5 = []byte{ - // 474 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0xed, 0x14, 0x22, 0x38, 0x60, 0xb9, 0xb6, 0x52, 0x64, 0x51, 0x07, 0x0c, 0x95, 0xa0, - 0x12, 0x3e, 0x35, 0x30, 0xd1, 0x2e, 0xed, 0x96, 0x05, 0x41, 0x46, 0x96, 0xe8, 0x62, 0x9f, 0xdc, - 0x13, 0xe4, 0x9e, 0x73, 0x77, 0x86, 0x56, 0x51, 0x16, 0x06, 0xd4, 0x11, 0x89, 0x91, 0xa5, 0x9f, - 0x80, 0xcf, 0xd1, 0xb1, 0x12, 0x0b, 0x13, 0x42, 0x09, 0x03, 0x1f, 0x03, 0xf9, 0xee, 0xda, 0xca, - 0xc5, 0x6e, 0x11, 0x5b, 0xf4, 0xf2, 0x7f, 0xff, 0xff, 0xef, 0xde, 0x7b, 0x46, 0xf7, 0x05, 0x2b, - 0xb4, 0x04, 0x41, 0xb8, 0xd0, 0x4c, 0x26, 0x7b, 0x94, 0x0b, 0xbd, 0xaf, 0xc8, 0xa4, 0x60, 0xf2, - 0x20, 0xce, 0x25, 0x68, 0xc0, 0xab, 0x4e, 0x12, 0x57, 0x24, 0xc1, 0x4a, 0x06, 0x19, 0x18, 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a3, 0xae, 0x17, 0x31, 0xb4, 0x7e, 0x05, 0xaf, 0x1b, 0xcb, 0x36, - 0x0a, 0x6a, 0x58, 0xaa, 0xf4, 0x1d, 0xde, 0xe0, 0xd2, 0xfb, 0xb2, 0x84, 0xae, 0x9b, 0x1c, 0xfc, - 0xd1, 0x47, 0x6d, 0x3b, 0x3a, 0xfc, 0xb8, 0x61, 0xb2, 0x7f, 0xef, 0x2a, 0xd8, 0xf8, 0x17, 0xa9, - 0x25, 0x8d, 0xd6, 0x3f, 0x7c, 0xfb, 0xf5, 0xb9, 0xd5, 0xc5, 0x6b, 0xe4, 0xb2, 0xd3, 0xc0, 0x87, - 0x2d, 0xd4, 0x69, 0x7a, 0x35, 0xde, 0xba, 0x2c, 0xef, 0x8a, 0xdd, 0x06, 0xdb, 0xff, 0xd7, 0xec, - 0xf0, 0x27, 0x06, 0xff, 0x0d, 0xe6, 0x0d, 0xf8, 0xd3, 0xca, 0xdd, 0xcc, 0xc8, 0xb4, 0xf6, 0x44, - 0x66, 0x64, 0x5a, 0x39, 0x83, 0x19, 0x69, 0xde, 0xde, 0xee, 0x8b, 0xe3, 0x79, 0xe8, 0x9f, 0xcc, - 0x43, 0xff, 0xe7, 0x3c, 0xf4, 0x3f, 0x2d, 0x42, 0xef, 0x64, 0x11, 0x7a, 0xdf, 0x17, 0xa1, 0xf7, - 0xfa, 0x59, 0xc6, 0xf5, 0x5e, 0x31, 0x8a, 0x13, 0x18, 0x9f, 0xe2, 0x3c, 0x01, 0x99, 0x9d, 0xa1, - 0xed, 0x5f, 0x80, 0xd3, 0x07, 0x39, 0x53, 0xa3, 0xb6, 0xf9, 0xec, 0x9e, 0xfe, 0x09, 0x00, 0x00, - 0xff, 0xff, 0x39, 0xa6, 0x49, 0x7e, 0x36, 0x04, 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "neutron.interchaintxs.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "neutron.interchaintxs.v1.QueryParamsResponse") + proto.RegisterType((*QueryInterchainAccountAddressRequest)(nil), "neutron.interchaintxs.v1.QueryInterchainAccountAddressRequest") + proto.RegisterType((*QueryInterchainAccountAddressResponse)(nil), "neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse") +} + +func init() { + proto.RegisterFile("neutron/interchaintxs/v1/query.proto", fileDescriptor_6130c5f6c54e2428) +} + +var fileDescriptor_6130c5f6c54e2428 = []byte{ + // 482 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4f, 0x6b, 0x13, 0x41, + 0x14, 0xdf, 0x4d, 0x35, 0xe8, 0xa8, 0x97, 0x69, 0x85, 0x65, 0xd1, 0x4d, 0x59, 0x1b, 0x10, 0xb1, + 0x3b, 0x24, 0x7a, 0x12, 0xa9, 0xb4, 0xb7, 0x5c, 0x44, 0x03, 0x5e, 0xbc, 0x84, 0xc9, 0xee, 0xb0, + 0x1d, 0x34, 0xf3, 0x36, 0x3b, 0xb3, 0xb1, 0x25, 0xe4, 0xe2, 0xc9, 0x83, 0x88, 0xe0, 0x17, 0xe8, + 0xcd, 0x9b, 0x9f, 0xa3, 0xc7, 0x82, 0x17, 0x4f, 0x22, 0x89, 0x07, 0x3f, 0x86, 0xec, 0xcc, 0xb4, + 0x65, 0x6b, 0x96, 0x48, 0x6f, 0xcb, 0xdb, 0xdf, 0xfb, 0xfd, 0x79, 0xef, 0x0d, 0xda, 0x12, 0xac, + 0x50, 0x39, 0x08, 0xc2, 0x85, 0x62, 0x79, 0xbc, 0x4f, 0xb9, 0x50, 0x07, 0x92, 0x4c, 0x3a, 0x64, + 0x5c, 0xb0, 0xfc, 0x30, 0xca, 0x72, 0x50, 0x80, 0x3d, 0x8b, 0x8a, 0x2a, 0xa8, 0x68, 0xd2, 0xf1, + 0x37, 0x52, 0x48, 0x41, 0x83, 0x48, 0xf9, 0x65, 0xf0, 0xfe, 0x9d, 0x14,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, 0x9d, 0xcc, 0x53, 0xe4, 0x2f, 0xf1, 0x52, 0x75, 0xef, 0xf1, 0x1a, 0x96, 0xee, 0xd7, + 0x35, 0x74, 0x55, 0xeb, 0xe0, 0x8f, 0x2e, 0x6a, 0x9a, 0xd1, 0xe1, 0x87, 0xf5, 0xc3, 0xfd, 0x77, + 0x63, 0xfe, 0xf6, 0x7f, 0xa2, 0x8d, 0xdf, 0xb0, 0xfd, 0xfe, 0xfb, 0xef, 0x2f, 0x8d, 0x16, 0xbe, + 0x4b, 0x96, 0x9f, 0x89, 0x59, 0x18, 0xfe, 0xd4, 0x40, 0x5e, 0x5d, 0x76, 0xbc, 0xb3, 0x42, 0x72, + 0xc5, 0x92, 0xfd, 0x67, 0x97, 0xee, 0xb7, 0x21, 0xc6, 0x3a, 0xc4, 0x1b, 0xcc, 0x6b, 0x42, 0x4c, + 0x2b, 0x37, 0x34, 0x23, 0xd3, 0xa5, 0xe7, 0x32, 0x23, 0xd3, 0xca, 0x49, 0xcc, 0x48, 0xfd, 0x26, + 0xf7, 0x9e, 0x1f, 0xcf, 0x03, 0xf7, 0x64, 0x1e, 0xb8, 0xbf, 0xe6, 0x81, 0xfb, 0x79, 0x11, 0x38, + 0x27, 0x8b, 0xc0, 0xf9, 0xb1, 0x08, 0x9c, 0xd7, 0x8f, 0x53, 0xae, 0xf6, 0x8b, 0x61, 0x14, 0xc3, + 0xe8, 0xd4, 0xce, 0x36, 0xe4, 0xe9, 0x99, 0xb5, 0x83, 0x0b, 0xe6, 0xd4, 0x61, 0xc6, 0xe4, 0xb0, + 0xa9, 0x5f, 0xe1, 0xa3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xad, 0xfd, 0x25, 0x21, 0x4e, 0x04, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -274,7 +277,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -283,7 +286,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) InterchainAccountAddress(ctx context.Context, in *QueryInterchainAccountAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountAddressResponse, error) { out := new(QueryInterchainAccountAddressResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Query/InterchainAccountAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Query/InterchainAccountAddress", in, out, opts...) if err != nil { return nil, err } @@ -322,7 +325,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Query/Params", + FullMethod: "/neutron.interchaintxs.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -340,7 +343,7 @@ func _Query_InterchainAccountAddress_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Query/InterchainAccountAddress", + FullMethod: "/neutron.interchaintxs.v1.Query/InterchainAccountAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).InterchainAccountAddress(ctx, req.(*QueryInterchainAccountAddressRequest)) @@ -349,7 +352,7 @@ func _Query_InterchainAccountAddress_Handler(srv interface{}, ctx context.Contex } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.interchaintxs.Query", + ServiceName: "neutron.interchaintxs.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -362,7 +365,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "neutron/interchaintxs/query.proto", + Metadata: "neutron/interchaintxs/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/interchaintxs/types/query.pb.gw.go b/x/interchaintxs/types/query.pb.gw.go index 7fd1f4d23..943b58aab 100644 --- a/x/interchaintxs/types/query.pb.gw.go +++ b/x/interchaintxs/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: neutron/interchaintxs/query.proto +// source: neutron/interchaintxs/v1/query.proto /* Package types is a reverse proxy. diff --git a/x/interchaintxs/types/tx.pb.go b/x/interchaintxs/types/tx.pb.go index 0b6665e65..89d6f5d02 100644 --- a/x/interchaintxs/types/tx.pb.go +++ b/x/interchaintxs/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: neutron/interchaintxs/tx.proto +// source: neutron/interchaintxs/v1/tx.proto package types @@ -48,7 +48,7 @@ func (m *MsgRegisterInterchainAccount) Reset() { *m = MsgRegisterInterch func (m *MsgRegisterInterchainAccount) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainAccount) ProtoMessage() {} func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_40a159e5a7dbb364, []int{0} + return fileDescriptor_50f087790e59c806, []int{0} } func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ func (m *MsgRegisterInterchainAccountResponse) Reset() { *m = MsgRegiste func (m *MsgRegisterInterchainAccountResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterInterchainAccountResponse) ProtoMessage() {} func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_40a159e5a7dbb364, []int{1} + return fileDescriptor_50f087790e59c806, []int{1} } func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -135,7 +135,7 @@ func (m *MsgSubmitTx) Reset() { *m = MsgSubmitTx{} } func (m *MsgSubmitTx) String() string { return proto.CompactTextString(m) } func (*MsgSubmitTx) ProtoMessage() {} func (*MsgSubmitTx) Descriptor() ([]byte, []int) { - return fileDescriptor_40a159e5a7dbb364, []int{2} + return fileDescriptor_50f087790e59c806, []int{2} } func (m *MsgSubmitTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -176,7 +176,7 @@ func (m *MsgSubmitTxResponse) Reset() { *m = MsgSubmitTxResponse{} } func (m *MsgSubmitTxResponse) String() string { return proto.CompactTextString(m) } func (*MsgSubmitTxResponse) ProtoMessage() {} func (*MsgSubmitTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_40a159e5a7dbb364, []int{3} + return fileDescriptor_50f087790e59c806, []int{3} } func (m *MsgSubmitTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,7 +235,7 @@ 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_40a159e5a7dbb364, []int{4} + return fileDescriptor_50f087790e59c806, []int{4} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -289,7 +289,7 @@ 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_40a159e5a7dbb364, []int{5} + return fileDescriptor_50f087790e59c806, []int{5} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,68 +319,69 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgRegisterInterchainAccount)(nil), "neutron.interchaintxs.MsgRegisterInterchainAccount") - proto.RegisterType((*MsgRegisterInterchainAccountResponse)(nil), "neutron.interchaintxs.MsgRegisterInterchainAccountResponse") - proto.RegisterType((*MsgSubmitTx)(nil), "neutron.interchaintxs.MsgSubmitTx") - proto.RegisterType((*MsgSubmitTxResponse)(nil), "neutron.interchaintxs.MsgSubmitTxResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "neutron.interchaintxs.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.interchaintxs.MsgUpdateParamsResponse") -} - -func init() { proto.RegisterFile("neutron/interchaintxs/tx.proto", fileDescriptor_40a159e5a7dbb364) } - -var fileDescriptor_40a159e5a7dbb364 = []byte{ - // 795 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6f, 0xd3, 0x4a, - 0x10, 0x8e, 0x93, 0xbc, 0xfe, 0xd8, 0xe4, 0xe9, 0xe9, 0xb9, 0xa9, 0xea, 0x44, 0xad, 0x13, 0x0c, - 0xaa, 0xa2, 0x48, 0xb5, 0xdb, 0x14, 0x71, 0x28, 0x42, 0xa2, 0x41, 0xaa, 0x94, 0x43, 0x50, 0xe5, - 0x96, 0x0b, 0x42, 0x8a, 0x36, 0xf6, 0xc6, 0xb1, 0xa8, 0x77, 0x83, 0x77, 0x5d, 0x25, 0x57, 0x4e, - 0x88, 0x0b, 0xfc, 0x03, 0x48, 0x3d, 0x22, 0x4e, 0x3d, 0x70, 0xe5, 0xde, 0x63, 0xc5, 0x89, 0x0b, - 0x05, 0xb5, 0x87, 0x72, 0xee, 0x5f, 0x80, 0xd6, 0x5e, 0x37, 0x3f, 0x94, 0x94, 0x8a, 0x4b, 0xbc, - 0x33, 0xf3, 0xed, 0x37, 0xb3, 0xd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0x6d, 0xad, 0xbf, 0xbe, 0x3c, 0xae, 0x0c, - 0x18, 0xdf, 0x5e, 0x1e, 0x57, 0x56, 0x46, 0x9f, 0x96, 0xb1, 0x5a, 0xb5, 0x3c, 0x58, 0x1a, 0x73, - 0xc5, 0xaa, 0x54, 0xbf, 0x27, 0x41, 0xaa, 0x41, 0x1d, 0xf9, 0x9d, 0x04, 0xf2, 0xd3, 0x2f, 0xf3, - 0xe6, 0x94, 0x22, 0x6f, 0x9a, 0xd7, 0xc2, 0xc3, 0xbf, 0xd8, 0x74, 0x3d, 0xe4, 0x09, 0xf9, 0x05, - 0x98, 0xbb, 0x1e, 0x71, 0x6d, 0x3a, 0x55, 0x8c, 0x29, 0x54, 0xfe, 0x8c, 0x19, 0x62, 0x6f, 0x83, - 0xec, 0x48, 0x3b, 0x57, 0xa7, 0xef, 0x1e, 0xc6, 0x15, 0xf4, 0xdb, 0xe1, 0xe2, 0x4c, 0xb5, 0xa7, - 0x27, 0xe7, 0xaa, 0x74, 0x7a, 0xae, 0x4a, 0x3f, 0xcf, 0x55, 0xe9, 0xfd, 0x85, 0x9a, 0x38, 0xbd, - 0x50, 0x13, 0xdf, 0x2e, 0xd4, 0xc4, 0xf3, 0xfb, 0x43, 0xef, 0x85, 0xe0, 0x5c, 0x23, 0xbe, 0x13, - 0xaf, 0x8d, 0xde, 0xf8, 0x3f, 0x14, 0x7f, 0x41, 0x5a, 0x33, 0xe1, 0xd5, 0xda, 0xfc, 0x1d, 0x00, - 0x00, 0xff, 0xff, 0xba, 0xdc, 0x2b, 0xd0, 0xc7, 0x06, 0x00, 0x00, + proto.RegisterType((*MsgRegisterInterchainAccount)(nil), "neutron.interchaintxs.v1.MsgRegisterInterchainAccount") + proto.RegisterType((*MsgRegisterInterchainAccountResponse)(nil), "neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse") + proto.RegisterType((*MsgSubmitTx)(nil), "neutron.interchaintxs.v1.MsgSubmitTx") + proto.RegisterType((*MsgSubmitTxResponse)(nil), "neutron.interchaintxs.v1.MsgSubmitTxResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "neutron.interchaintxs.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "neutron.interchaintxs.v1.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("neutron/interchaintxs/v1/tx.proto", fileDescriptor_50f087790e59c806) } + +var fileDescriptor_50f087790e59c806 = []byte{ + // 802 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xbf, 0x6b, 0x1b, 0x4b, + 0x10, 0xd6, 0x49, 0x7a, 0xfe, 0xb1, 0xd2, 0xe3, 0xf1, 0xce, 0x32, 0x3e, 0x09, 0x5b, 0x92, 0xef, + 0x3d, 0x07, 0xc5, 0xa0, 0x3b, 0x4b, 0x09, 0x2e, 0x0c, 0x09, 0x58, 0x06, 0x83, 0x0a, 0x05, 0x73, + 0x76, 0x9a, 0x34, 0x62, 0x75, 0xb7, 0x3a, 0x1d, 0xd1, 0xed, 0x2a, 0xb7, 0x7b, 0x46, 0x6a, 0x53, + 0x85, 0x54, 0x69, 0x52, 0x06, 0x5c, 0x86, 0x54, 0x2e, 0xf2, 0x07, 0xa4, 0x74, 0x69, 0x52, 0xa5, + 0x72, 0x82, 0x5d, 0x38, 0x5d, 0xc0, 0x7f, 0x41, 0xb8, 0xbd, 0x3d, 0xeb, 0x07, 0x96, 0x30, 0x69, + 0xa4, 0x9d, 0x99, 0x6f, 0xbf, 0x99, 0xfd, 0x66, 0x76, 0x0f, 0xac, 0x63, 0xe4, 0x33, 0x8f, 0x60, + 0xdd, 0xc1, 0x0c, 0x79, 0x66, 0x07, 0x3a, 0x98, 0xf5, 0xa9, 0x7e, 0x5c, 0xd1, 0x59, 0x5f, 0xeb, + 0x79, 0x84, 0x11, 0x59, 0x11, 0x10, 0x6d, 0x0c, 0xa2, 0x1d, 0x57, 0x72, 0x59, 0x93, 0x50, 0x97, + 0xd0, 0x26, 0xc7, 0xe9, 0xa1, 0x11, 0x6e, 0xca, 0xe5, 0x43, 0x4b, 0x6f, 0x41, 0x8a, 0xf4, 0xe3, + 0x4a, 0x0b, 0x31, 0x58, 0xd1, 0x4d, 0xe2, 0x60, 0x11, 0xdf, 0x98, 0x9a, 0xb7, 0x07, 0x3d, 0xe8, + 0x46, 0x34, 0x19, 0x9b, 0xd8, 0x24, 0xa4, 0x0f, 0x56, 0xc2, 0xbb, 0x6c, 0x13, 0x62, 0x77, 0x91, + 0x0e, 0x7b, 0x8e, 0xde, 0x61, 0xac, 0x27, 0xdc, 0xab, 0x23, 0x6e, 0x88, 0x31, 0x61, 0x90, 0x39, + 0x04, 0x47, 0x54, 0x59, 0x11, 0xe5, 0x56, 0xcb, 0x6f, 0xeb, 0x10, 0x0f, 0x44, 0x68, 0x2d, 0x2a, + 0xa6, 0x8d, 0x90, 0x87, 0xda, 0x3e, 0xb6, 0x90, 0x17, 0xac, 0x45, 0x78, 0x45, 0x9c, 0xc5, 0xa5, + 0x76, 0x50, 0xa0, 0x4b, 0x6d, 0x11, 0xf8, 0x17, 0xba, 0x0e, 0x26, 0x3a, 0xff, 0x0d, 0x5d, 0xea, + 0x79, 0x1c, 0xac, 0x36, 0xa8, 0x6d, 0x20, 0xdb, 0xa1, 0x0c, 0x79, 0xf5, 0xdb, 0xd3, 0xed, 0x9a, + 0x26, 0xf1, 0x31, 0x93, 0xd7, 0x41, 0xba, 0xed, 0x11, 0xb7, 0x09, 0x2d, 0xcb, 0x43, 0x94, 0x2a, + 0x52, 0x51, 0x2a, 0x2d, 0x1a, 0xa9, 0xc0, 0xb7, 0x1b, 0xba, 0xe4, 0x27, 0xe0, 0x6f, 0x93, 0x60, + 0x8c, 0xcc, 0xa0, 0xfc, 0xa6, 0x63, 0x29, 0xf1, 0x00, 0x53, 0x53, 0x6e, 0x2e, 0x0a, 0x99, 0x01, + 0x74, 0xbb, 0x3b, 0xea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, 0x2b, 0x60, 0x9e, 0x39, 0x2e, + 0x22, 0x3e, 0x53, 0xe6, 0x8a, 0x52, 0x29, 0x69, 0x44, 0xa6, 0xbc, 0x05, 0x12, 0x81, 0xf8, 0xf3, + 0x45, 0xa9, 0x94, 0xaa, 0x2a, 0x5a, 0x74, 0x33, 0x47, 0xe6, 0x56, 0xdb, 0x47, 0xa8, 0x96, 0x0c, + 0xb4, 0x37, 0x02, 0xe8, 0x88, 0x8e, 0x07, 0x60, 0x69, 0x44, 0x9e, 0x48, 0x36, 0xb9, 0x00, 0x52, + 0x14, 0xbd, 0xf2, 0x11, 0x36, 0x51, 0x70, 0x1a, 0x89, 0x27, 0x04, 0x91, 0xab, 0x6e, 0x05, 0xd5, + 0x98, 0x1d, 0x88, 0x31, 0xea, 0x0a, 0x59, 0x22, 0x53, 0xfd, 0x22, 0x81, 0x7f, 0x1a, 0xd4, 0x7e, + 0xde, 0xb3, 0x20, 0x43, 0x07, 0xfc, 0xde, 0xca, 0xdb, 0x60, 0x11, 0xfa, 0xac, 0x43, 0x3c, 0x87, + 0x0d, 0x42, 0xc9, 0x6b, 0xca, 0xd7, 0xcf, 0xe5, 0x8c, 0x98, 0x13, 0xa1, 0xfc, 0x21, 0xf3, 0x1c, + 0x6c, 0x1b, 0x43, 0xa8, 0xbc, 0x07, 0xe6, 0xc2, 0x9b, 0xcf, 0x93, 0xa4, 0xaa, 0x45, 0x6d, 0xda, + 0xb3, 0xa3, 0x85, 0x99, 0x6a, 0x8b, 0xc1, 0x21, 0x3f, 0x5e, 0x9f, 0x6e, 0x4a, 0x86, 0xd8, 0xba, + 0xb3, 0xf5, 0xfa, 0xfa, 0x74, 0x73, 0x48, 0xfa, 0xf6, 0xfa, 0x74, 0x73, 0x6d, 0xfc, 0x81, 0x99, + 0x28, 0x57, 0xcd, 0x82, 0x95, 0x09, 0x57, 0x24, 0x4c, 0xf5, 0x57, 0x1c, 0x24, 0x1a, 0xd4, 0x96, + 0xdf, 0x4b, 0x20, 0x3b, 0xfd, 0x3e, 0x6f, 0x4f, 0xaf, 0x73, 0xd6, 0xd4, 0xe6, 0x9e, 0xfe, 0xd9, + 0xbe, 0xdb, 0x69, 0x8f, 0xc9, 0x2d, 0xb0, 0x70, 0x3b, 0xeb, 0x1b, 0x33, 0xd9, 0x22, 0x58, 0xae, + 0x7c, 0x2f, 0xd8, 0x48, 0x8e, 0x2e, 0x48, 0x8f, 0x75, 0xf7, 0xe1, 0x4c, 0x82, 0x51, 0x68, 0xae, + 0x72, 0x6f, 0x68, 0x94, 0xaf, 0xf6, 0xec, 0xec, 0x32, 0x2f, 0x9d, 0x5f, 0xe6, 0xa5, 0x1f, 0x97, + 0x79, 0xe9, 0xdd, 0x55, 0x3e, 0x76, 0x7e, 0x95, 0x8f, 0x7d, 0xbb, 0xca, 0xc7, 0x5e, 0x3c, 0x1e, + 0x79, 0x44, 0x04, 0x6d, 0x99, 0x78, 0x76, 0xb4, 0xd6, 0xfb, 0x13, 0xdf, 0x11, 0xfe, 0xac, 0xb4, + 0xe6, 0xf8, 0x7d, 0x7b, 0xf4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xd3, 0x11, 0x00, 0xe5, 0x06, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -410,7 +411,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error) { out := new(MsgRegisterInterchainAccountResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Msg/RegisterInterchainAccount", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Msg/RegisterInterchainAccount", in, out, opts...) if err != nil { return nil, err } @@ -419,7 +420,7 @@ func (c *msgClient) RegisterInterchainAccount(ctx context.Context, in *MsgRegist func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error) { out := new(MsgSubmitTxResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Msg/SubmitTx", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Msg/SubmitTx", in, out, opts...) if err != nil { return nil, err } @@ -428,7 +429,7 @@ func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc. func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/neutron.interchaintxs.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/neutron.interchaintxs.v1.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -470,7 +471,7 @@ func _Msg_RegisterInterchainAccount_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Msg/RegisterInterchainAccount", + FullMethod: "/neutron.interchaintxs.v1.Msg/RegisterInterchainAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterInterchainAccount(ctx, req.(*MsgRegisterInterchainAccount)) @@ -488,7 +489,7 @@ func _Msg_SubmitTx_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Msg/SubmitTx", + FullMethod: "/neutron.interchaintxs.v1.Msg/SubmitTx", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).SubmitTx(ctx, req.(*MsgSubmitTx)) @@ -506,7 +507,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/neutron.interchaintxs.Msg/UpdateParams", + FullMethod: "/neutron.interchaintxs.v1.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -515,7 +516,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "neutron.interchaintxs.Msg", + ServiceName: "neutron.interchaintxs.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -532,7 +533,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "neutron/interchaintxs/tx.proto", + Metadata: "neutron/interchaintxs/v1/tx.proto", } func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error) { From 434b089d67fe8e8adda50282a9c6db6f54d3f486 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 16:24:09 +0200 Subject: [PATCH 298/307] global fee min gas prices --- app/upgrades/v1.1.0/upgrades.go | 14 ++++++++------ app/upgrades/v1.1.0/upgrades_test.go | 6 +++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/upgrades/v1.1.0/upgrades.go b/app/upgrades/v1.1.0/upgrades.go index 3ba3a35ef..36ec025cb 100644 --- a/app/upgrades/v1.1.0/upgrades.go +++ b/app/upgrades/v1.1.0/upgrades.go @@ -259,13 +259,15 @@ func setInterchainTxsParams(ctx sdk.Context, paramsKeepers paramskeeper.Keeper, func migrateGlobalFees(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) error { //nolint:unparam ctx.Logger().Info("Implementing GlobalFee Params...") - // global fee is empty set, set global fee to equal to 0.05 USD (for 200k of gas) in appropriate coin - // As of June 22nd, 2023 this is - // 0.9untrn,0.026ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9,0.25ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349 + // The average gas cost for an average transaction on Neutron should not go beyond 5 cents. + // Users have three designated coins that can be used for gas: NTRN, ATOM, and axlUSDC + // Assuming average transaction gas on Neutron consumer is ~250000 approximately, ATOM 30D TWAP is $8.4 and NTRN 30D TWAP is $0.36 + // we set minimum-gas-prices as per this formula: + // ((0.05 * 10^(6)) / TOKEN_30d_TWAP) / AVG_GAS_PRICE requiredGlobalFees := sdk.DecCoins{ - sdk.NewDecCoinFromDec(params.DefaultDenom, sdk.MustNewDecFromStr("0.9")), - sdk.NewDecCoinFromDec(AtomDenom, sdk.MustNewDecFromStr("0.026")), - sdk.NewDecCoinFromDec(AxelarUsdcDenom, sdk.MustNewDecFromStr("0.25")), + sdk.NewDecCoinFromDec(params.DefaultDenom, sdk.MustNewDecFromStr("0.56")), + sdk.NewDecCoinFromDec(AtomDenom, sdk.MustNewDecFromStr("0.02")), + sdk.NewDecCoinFromDec(AxelarUsdcDenom, sdk.MustNewDecFromStr("0.2")), } requiredGlobalFees = requiredGlobalFees.Sort() diff --git a/app/upgrades/v1.1.0/upgrades_test.go b/app/upgrades/v1.1.0/upgrades_test.go index b035e780f..318da7923 100644 --- a/app/upgrades/v1.1.0/upgrades_test.go +++ b/app/upgrades/v1.1.0/upgrades_test.go @@ -93,9 +93,9 @@ func (suite *UpgradeTestSuite) TestGlobalFeesUpgrade() { var globalMinGasPrices sdk.DecCoins globalFeeSubspace.Get(ctx, globalfeetypes.ParamStoreKeyMinGasPrices, &globalMinGasPrices) requiredGlobalFees := sdk.DecCoins{ - sdk.NewDecCoinFromDec("ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", sdk.MustNewDecFromStr("0.026")), - sdk.NewDecCoinFromDec("ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", sdk.MustNewDecFromStr("0.25")), - sdk.NewDecCoinFromDec("untrn", sdk.MustNewDecFromStr("0.9")), + sdk.NewDecCoinFromDec("ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", sdk.MustNewDecFromStr("0.02")), + sdk.NewDecCoinFromDec("ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", sdk.MustNewDecFromStr("0.2")), + sdk.NewDecCoinFromDec("untrn", sdk.MustNewDecFromStr("0.56")), } suite.Require().Equal(requiredGlobalFees, globalMinGasPrices) From df079eb25bd3bd944fc895856ca4c97f07a487fa Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 16:32:01 +0200 Subject: [PATCH 299/307] remove unused var --- app/app.go | 1 - app/proposals_allowlisting_test.go | 1 - cmd/neutrond/root.go | 8 ++++---- tests/e2e/interchain_security_test.go | 2 +- testutil/contractmanager/network/network.go | 3 ++- testutil/cron/network/network.go | 3 ++- testutil/interchainqueries/network/network.go | 3 ++- testutil/interchaintxs/network/network.go | 3 ++- testutil/test_helpers.go | 9 ++++----- 9 files changed, 17 insertions(+), 16 deletions(-) diff --git a/app/app.go b/app/app.go index 744b681c4..5eb6e0dcd 100644 --- a/app/app.go +++ b/app/app.go @@ -327,7 +327,6 @@ func (app *App) GetTestEvidenceKeeper() integration.TestEvidenceKeeper { // New returns a reference to an initialized blockchain app func New( logger log.Logger, - _ string, db dbm.DB, traceStore io.Writer, loadLatest bool, diff --git a/app/proposals_allowlisting_test.go b/app/proposals_allowlisting_test.go index a8368f60b..09810f35a 100644 --- a/app/proposals_allowlisting_test.go +++ b/app/proposals_allowlisting_test.go @@ -30,7 +30,6 @@ func SetupTestingAppConsumer() (ibctesting.TestingApp, map[string]json.RawMessag encoding := app.MakeEncodingConfig() testApp := app.New( log.NewNopLogger(), - "test-1", db, nil, true, diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 7674d3652..3f666acc0 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -36,11 +36,12 @@ import ( "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/neutron-org/neutron/app" - "github.com/neutron-org/neutron/app/params" "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cast" "github.com/spf13/cobra" + + "github.com/neutron-org/neutron/app" + "github.com/neutron-org/neutron/app/params" ) // NewRootCmd creates a new root command for neutrond. It is called once in the @@ -241,7 +242,7 @@ func (ac appCreator) newApp( chainID = appGenesis.ChainID } - return app.New(logger, chainID, db, traceStore, true, skipUpgradeHeights, + return app.New(logger, db, traceStore, true, skipUpgradeHeights, cast.ToString(appOpts.Get(flags.FlagHome)), cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), ac.encCfg, @@ -290,7 +291,6 @@ func (ac appCreator) appExport( var emptyWasmOpts []wasmkeeper.Option interchainapp = app.New( logger, - chainID, db, traceStore, loadLatest, diff --git a/tests/e2e/interchain_security_test.go b/tests/e2e/interchain_security_test.go index 2ba3e4f8b..35c80108f 100644 --- a/tests/e2e/interchain_security_test.go +++ b/tests/e2e/interchain_security_test.go @@ -18,7 +18,7 @@ func TestCCVTestSuite(t *testing.T) { // Pass in concrete app types that implement the interfaces defined in /testutil/e2e/interfaces.go ccvSuite := e2e.NewCCVTestSuite[*appProvider.App, *appConsumer.App]( // Pass in ibctesting.AppIniters for provider and consumer. - icssimapp.ProviderAppIniter, testutil.SetupTestingApp("test-1"), + icssimapp.ProviderAppIniter, testutil.SetupTestingApp(), // TODO: These three tests just don't work in IS, so skip them for now []string{"TestSendRewardsRetries", "TestRewardsDistribution", "TestEndBlockRD"}) diff --git a/testutil/contractmanager/network/network.go b/testutil/contractmanager/network/network.go index 20e2b8d73..3ce77f8c4 100644 --- a/testutil/contractmanager/network/network.go +++ b/testutil/contractmanager/network/network.go @@ -22,6 +22,7 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/neutron-org/neutron/app/params" "github.com/neutron-org/neutron/app" @@ -73,7 +74,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, sims.EmptyAppOptions{}, nil, diff --git a/testutil/cron/network/network.go b/testutil/cron/network/network.go index b31c16d1b..924afd076 100644 --- a/testutil/cron/network/network.go +++ b/testutil/cron/network/network.go @@ -12,6 +12,7 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/neutron-org/neutron/testutil/consumer" "github.com/neutron-org/neutron/app/params" @@ -75,7 +76,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, sims.EmptyAppOptions{}, nil, diff --git a/testutil/interchainqueries/network/network.go b/testutil/interchainqueries/network/network.go index d7fa4006d..895287529 100644 --- a/testutil/interchainqueries/network/network.go +++ b/testutil/interchainqueries/network/network.go @@ -22,6 +22,7 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/neutron-org/neutron/app/params" "github.com/neutron-org/neutron/app" @@ -73,7 +74,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, sims.EmptyAppOptions{}, nil, diff --git a/testutil/interchaintxs/network/network.go b/testutil/interchaintxs/network/network.go index 945ee62b3..d68004813 100644 --- a/testutil/interchaintxs/network/network.go +++ b/testutil/interchaintxs/network/network.go @@ -22,6 +22,7 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" staking "github.com/cosmos/cosmos-sdk/x/staking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/neutron-org/neutron/app/params" "github.com/neutron-org/neutron/testutil/consumer" @@ -74,7 +75,7 @@ func DefaultConfig() network.Config { } return app.New( - val.GetCtx().Logger, chainID, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, + val.GetCtx().Logger, tmdb.NewMemDB(), nil, true, map[int64]bool{}, val.GetCtx().Config.RootDir, 0, encoding, sims.EmptyAppOptions{}, nil, diff --git a/testutil/test_helpers.go b/testutil/test_helpers.go index 54ad72935..f215b95ef 100644 --- a/testutil/test_helpers.go +++ b/testutil/test_helpers.go @@ -57,7 +57,7 @@ var ( ) func init() { - ibctesting.DefaultTestingAppInit = SetupTestingApp("test-1") + ibctesting.DefaultTestingAppInit = SetupTestingApp() app.GetDefaultConfig() } @@ -263,11 +263,11 @@ func NewProviderConsumerCoordinator(t *testing.T) *ibctesting.Coordinator { chainID = ibctesting.GetChainID(2) coordinator.Chains[chainID] = NewTestChainWithValSet(t, coordinator, - SetupTestingApp(chainID), chainID, providerChain.Vals, providerChain.Signers) + SetupTestingApp(), chainID, providerChain.Vals, providerChain.Signers) chainID = ibctesting.GetChainID(3) coordinator.Chains[chainID] = NewTestChainWithValSet(t, coordinator, - SetupTestingApp(chainID), chainID, providerChain.Vals, providerChain.Signers) + SetupTestingApp(), chainID, providerChain.Vals, providerChain.Signers) return coordinator } @@ -374,13 +374,12 @@ func RegisterInterchainAccount(endpoint *ibctesting.Endpoint, owner string) erro } // SetupTestingApp initializes the IBC-go testing application -func SetupTestingApp(chainID string) func() (ibctesting.TestingApp, map[string]json.RawMessage) { +func SetupTestingApp() func() (ibctesting.TestingApp, map[string]json.RawMessage) { return func() (ibctesting.TestingApp, map[string]json.RawMessage) { encoding := app.MakeEncodingConfig() db := dbm.NewMemDB() testApp := app.New( log.NewNopLogger(), - chainID, db, nil, true, From 2d30ee660cc28911297e6661dd6777d064f5f3e7 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 16:33:45 +0200 Subject: [PATCH 300/307] format --- cmd/neutrond/root.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmd/neutrond/root.go b/cmd/neutrond/root.go index 3f666acc0..1d78f7a8a 100644 --- a/cmd/neutrond/root.go +++ b/cmd/neutrond/root.go @@ -277,16 +277,6 @@ func (ac appCreator) appExport( return servertypes.ExportedApp{}, errors.New("application home is not set") } - chainID := cast.ToString(appOpts.Get(flags.FlagChainID)) - if chainID == "" { - appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homePath, "config", "genesis.json")) - if err != nil { - panic(err) - } - - chainID = appGenesis.ChainID - } - loadLatest := height == -1 var emptyWasmOpts []wasmkeeper.Option interchainapp = app.New( From 6c7507df4318ecda39633b24924bc6ab892e21a6 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 18:35:35 +0200 Subject: [PATCH 301/307] fix go.sum --- go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.sum b/go.sum index b2550c07b..016833be6 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,6 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.1.1 h1:PqIK9vTr6zxCdQmrDZwxwL4KMAqg/GRGsiMEiaMP4wA= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.1/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b h1:3//qzSqcb+SKs5H88D0BfYTLZ9z4Idz4LlZ1kkfdGjw= github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= From bc7fa370aa06f50be292d2de82f7f3b98f009b39 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 20:07:19 +0200 Subject: [PATCH 302/307] update linter in actions --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 13e45fb32..3173af7a2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,14 +18,14 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: '1.19' + go-version: '1.20' cache: false - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: 'v1.51.2' + version: 'v1.52.1' # Optional: working directory, useful for monorepos # working-directory: somedir From 70e9fbc3e2376daeaaa07c8530e34225c0ef9af6 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 23:20:29 +0200 Subject: [PATCH 303/307] bump pfm --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 016f29dee..13b6f7217 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/cosmos/cosmos-sdk v0.47.6 github.com/cosmos/gaia/v11 v11.0.0-00010101000000-000000000000 github.com/cosmos/gogoproto v1.4.10 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2 github.com/cosmos/ibc-go/v7 v7.3.1 github.com/cosmos/ics23/go v0.10.0 github.com/cosmos/interchain-security/v3 v3.1.0 diff --git a/go.sum b/go.sum index 016833be6..e887edaff 100644 --- a/go.sum +++ b/go.sum @@ -399,8 +399,8 @@ github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoK 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-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b h1:3//qzSqcb+SKs5H88D0BfYTLZ9z4Idz4LlZ1kkfdGjw= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2-0.20231117212947-db2db9b72a0b/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2 h1:6zjj+yIpMbCTRI2eJ2fXuflElENs3mrUSLH/TSWL8fk= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7 v7.1.2/go.mod h1:UvDmcGIWJPIytq+Q78/ff5NTOsuX/7IrNgEugTW5i0s= github.com/cosmos/ibc-go/v7 v7.3.1 h1:bil1IjnHdyWDASFYKfwdRiNtFP6WK3osW7QFEAgU4I8= github.com/cosmos/ibc-go/v7 v7.3.1/go.mod h1:wvx4pPBofe5ZdMNV3OFRxSI4auEP5Qfqf8JXLLNV04g= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= From 1151d0dc181e90325c3d7a91d24bc4d5dcaf37d4 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 24 Nov 2023 23:20:52 +0200 Subject: [PATCH 304/307] update contracts --- contracts/credits_vault.wasm | Bin 0 -> 196487 bytes contracts/cwd_core.wasm | Bin 469838 -> 460292 bytes contracts/cwd_pre_propose_multiple.wasm | Bin 415074 -> 425490 bytes contracts/cwd_pre_propose_overrule.wasm | Bin 455535 -> 452122 bytes contracts/cwd_pre_propose_single.wasm | Bin 409248 -> 419892 bytes contracts/cwd_proposal_multiple.wasm | Bin 605068 -> 609224 bytes contracts/cwd_proposal_single.wasm | Bin 563822 -> 563948 bytes .../cwd_security_subdao_pre_propose.wasm | Bin 0 -> 407787 bytes contracts/cwd_subdao_core.wasm | Bin 490195 -> 484753 bytes contracts/cwd_subdao_pre_propose_single.wasm | Bin 447380 -> 438712 bytes ...subdao_pre_propose_single_no_timelock.wasm | Bin 0 -> 426278 bytes contracts/cwd_subdao_proposal_single.wasm | Bin 562906 -> 560021 bytes contracts/cwd_subdao_timelock_single.wasm | Bin 405761 -> 458573 bytes contracts/investors_vesting_vault.wasm | Bin 186167 -> 189570 bytes contracts/lockdrop_vault.wasm | Bin 241744 -> 245611 bytes contracts/neutron_distribution.wasm | Bin 185384 -> 189423 bytes contracts/neutron_reserve.wasm | Bin 239440 -> 236337 bytes contracts/neutron_vault.wasm | Bin 204101 -> 208193 bytes contracts/neutron_voting_registry.wasm | Bin 218846 -> 215027 bytes contracts/vesting_lp_vault.wasm | Bin 0 -> 245479 bytes 20 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 contracts/credits_vault.wasm create mode 100644 contracts/cwd_security_subdao_pre_propose.wasm create mode 100644 contracts/cwd_subdao_pre_propose_single_no_timelock.wasm create mode 100644 contracts/vesting_lp_vault.wasm diff --git a/contracts/credits_vault.wasm b/contracts/credits_vault.wasm new file mode 100644 index 0000000000000000000000000000000000000000..57ca3bf852f4c46cabb36fe981d58242ca084b69 GIT binary patch literal 196487 zcmd?Sf4p6HS?9Zc?O$h~ea_C0wn>xHwRa1gK#v4(NkZGvvobv`9ja5kea#DzJ8hsD z+mlk-P&zOd+fyhKwB89?v|y1S)kZBt5gdy$8lW%%E5tEKQARUbwZ1ND_11ekBglP! zp69#PUi+MrA1BQ)f7rlTYp=Dwzn<^&`}=&KZ?x-;uaBcBivM$b?)AxCcg1({~28$Mc22(tLkftM*P1l!mTxNr&o5THFBq4 z%9i<+-l^KVWo29`I92=UPm(+JJiF^oYDnIfOsBhVxudb`wQtyad(_l@>xS1}w|Doh z8={7OwfXgL_uh2-?kLvJj=g;S8}8UW`uL5n+jUEnltpjZ{pQ=fXm8gIH|)Lcj$Jq3 zbi*#nTXk#f83o>O%T2H2&A;0nMJnmv-uR~1@4BUW)_>#f*WLP^FWa`~rPtlDd+$yE z<}KdHhSB4_yI)67_Fi}En_jzT_gkXAYMR=8!*{;yWiNgCSef-|+z5SQco#uMF6K5TYMxD+S{fV3LRI?GqU47Gv8vdVt z&>R0jb8(mP>6)f#;zQ^$lwQ=bJ|}78EZ!#cE9$ip%1xhrPMjn(6GzhLsKii^d?Ls9pxsQ9aQe#)*->)QIwxYvCB?$^Iz?^}|nd($m%ynWX# zx8Ed;c};8gn|HtNP2Bw-4V#(hy4LG&`k}pgcYS-;%{RZ{b-MjfJaNPB>eqvDfA8+w z-gML6-EX{(s`lJ;%MV4r7_X^6+xtT*R(}Y7Q|lY{@^IZ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6X@tJByPPRx~hO{mr3J2~zy``C;K0!>sQg z>$l{??B5jBnd5|2#!BV<;9r3)$F()Mw4f(Dg%5HoA%mLr8vNjwj64+K-$;8IpReEK zY@~8QxEO?^m{IzYV*!O)UY(->a1OPpDc@ssS7fug^K&yi1gPh~AoC)gdy9kP(9H=E zFBF3O37L0>UPoqG!Ef=8&H6K_b*9yr?elNuoij6FAipc`Z5e;uZDEuyD4jC>eF*d9 Pb^JE-Tg~t2Wu^ZIfZ9{~ literal 0 HcmV?d00001 diff --git a/contracts/cwd_core.wasm b/contracts/cwd_core.wasm index e679f72a991a64964810699963f85b714a46fe49..435662ea083907bac6b15ac7029683a56d9edcfe 100644 GIT binary patch literal 460292 zcmeFa3%FfpS?@b8^S0(%b7iJU+w?}qoJ3jCuG6SB32l!%Bb&5EidLU;L?8BP3W>HW zp@a~6%6V!VXn`OFio&KSU?@lmv{(_aZonO|VxdJN7AUlO;;~?L7k7njD2j4^|M&gI zWv*+o8unqU&C@l;9OJvb_xJtY?;FwOFL_}cMNxb>K5bia{q>Rl#Mf_2uh+f)@+0Q9 z!7Z1jE?i?hZ`luiwf%;>PPp?T*KLc6DipUSxJLY6)Zo@Sxz1a@F7igN$BWjvQggEQ)1M^Q>3QS&>u4bP^<+i5UevaA87ryA~9aZ6%yx{VyqO_=b)sAcSdez?L+qdtz?CQ&RUAg^o z>RWRw?HLtbbk&tF;LZQNBZ^hi%Ucd{(?{y8E*?Jr^1Uy(V&qkG`;Ocjy*5C>;+d`e&tn+_mkbpG zvz0{6DDi(u6pf9=QHvLpYbBki(~4tWwwfKDw4#n$P;;x3rfMfN7By6uKURsqjRpn$ zN7QKWCQ0HrZp{9VXL{)4un2|8AzjFwqw#A%Po_TrX}K26#u@rbd-y;e%S{>f{g z56aU~{}hVz_S7_?r`_@U`PWS2Xl3h^^!hm8x9?Cietnex#RooN*CV>N?~Ny0FWm9M z7wvgj5{+MZ)l2qXe%0P9MYw+ww|88#;{`9}_Rr#`kx2Bpxc$N_e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K3bi~dZ+t;!wyg~rG^XS#n%tt6*m~^~ z>&xXDNt0*DOiCA|*d0rXT2w9e*rG8_c1=zhSuJb9N-;b3v)W}d9W6GkxhcOzote_A zXtB?mwL)QXYe+~{H94YaeZgF%Mktug(!42~AMEP2$6mU9+R~IQ?)0o}`}!yE`B{HN zDHj*Wd?R&*Ikw!`t$mY)nE91{NFUPLJL-xF6M6n=FPjGgJn9fX4ed>Bb?5cD$A*g%{wR=1LNzH;X#A zLyB?>M?TDr$kvM;dbIdV<---_ZoP8#WA9Y*d!toFUq+qW*Lv`wcr^GGdpF3m(V?*^ z?}naC?TEN?_C(wT9W9>}?U~l#?`S`}V$Y1}t4CkH`{16-xnmtOJ73!~lY4vg72G@T z&f5Q8$DEJfA3gW@M|T1vl!(^CfH& zD9_{CYn8c}4_NUd2&i{Cud>rbHiiXPdO9tu*n8|=i4#yuu~ZP*4}hQJ+l6MkN8G@I zX=SLVCU}5TVRgb-{PcW1?%Vd;(7o7Vfk+9Wu-!~hM;Vl5EQ_Tog7l(FmB}WmqOAyy z@&Asp$?)^}St@;5LG(aur+`M4I2+?XL(79B*mmS6GF>Z`jh2#m!3lzM3JAh3&q7gv zijRppf;@g9K-iC&eZvMhHn+a diff --git a/contracts/cwd_pre_propose_multiple.wasm b/contracts/cwd_pre_propose_multiple.wasm index 2337e0aa6165492b61c6c090c90ec46afa897048..fc5c2e0fe0e97b1f303f7904ffbddf064cd0ab6c 100644 GIT binary patch literal 425490 zcmeFaf4E&&S?@c4te<=BwX@QskhX!&wd{G^+uL1Itx2f4$IShZ(q5_-Z~v%1+@~od z$9C^f(hz#eeXtGCVuT7U6e&D@!a@EUUnkGq-ekFbO_Uxvc(wp=**`D7N z|MDc|L5&AoQhia^JwF)!+U0Am@grR+tiLx3j81Gz72dRcYUHOs$!^s18Wr4_WbepUEuGzaYN%gaBFJJny>vs-6e)&tTx;DvU(Q9|!u-A)r zuiCL=&z09-wdo+-QWBD z8yC*M^7@^7uK91T^hVYVAMe@u5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-Sby7&)R4QZ6@9GqG!h4)MgIi z?y6yXx&2Xr5}>$uyV2Al16kKy?9NL@<6lT=GN%cutd;7yksmU)1nKg~r71nRR`8(I zkFuz7r^b!^l$8e~+&k$n=6ba)3A0j(NVFAzBS=wu|6+zhE3Zk=0Wb&K)RoImYDBu? zaoxFz`3?-vanFxk!gHrJavH)kZkALkk~}^3wkQX}cBb5U?&7#RpH>%`7UNm>9^N@G m1_Y90NoQd48OO+elHDW&hSw>`rawjhe2nY;T(@4>`2PUOChjT# diff --git a/contracts/cwd_pre_propose_overrule.wasm b/contracts/cwd_pre_propose_overrule.wasm index dd92f80c0ae4c62bbcad07fd08b2228bf044d269..9ff2db339c6908db69df982a6f85db2f2b7e27ed 100644 GIT binary patch literal 452122 zcmeFa4YXZXS?|3*_SZRk?~|Q2rRfKB?M;*u?YRwFPeSN>&B{wk8B`7Tc8s^)!5B@U z(e|8B(hzvz9nc&klz1spE)@zFFnlIRD+NJ{paiTKv0{`8Ra=Z&v0gyqwQ9K(d4Krp_xmnLE6udb~-kz*W_ulxj>a{O;@qvR; zRrmGlUU1EUz1LnB)%2^uumAVJ4F~r|v3`!&%NM=)WqZqyU-H6hZ;aAV^v1m}Kj@0K zuf6WN1J}Il+I=@%cP-_uy7l&q0x!Pth8ObY|JxfyD(Swx{-rOv_Qv8_=Ouezxc`TK zWODlH*Su`+fg6766|Rwu<>Lc;Ur0|5T(keBFPPr@ifFxR8ryr_5Bf@wNMf#eHJ**{hty-xkBb7?h8fmqXN>tOQ z^hV>=;8g%XMAc-YepN;(8;y>xqrZ$|U9}d)O?_04YVJQP5&2)#6*n1-u7Dz?B1YI| zsO_k3_et$MJ)(P2yPi_4bN&SyH`PR)Dy!23<&&-^N znuntN?|%KWcAfbQ*ZSw;cI`!bU-aSwuSlZi4L82z;I%g%yg~H(skpxP<$GWFQf@yT zSB)~FUyJK6y5Xk}==HD1odbJsdg%=Z_P*qr8~48S;DHz47=1BrT)S`Ii(jbs?@C6m z+gtqlg=B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HW)P$ZbRT1wLWUsI;*)V63#e8{b<7{hh(BWFOvu9l2b3HMsgtm)C zYMollhV|^7);*raBxen0iFIGdy>FK&k6%nw+EI>ZqjF;TL-aOgC5q%&+c{2IILiD? zT_E3)QFk|=3av`E`Cwukx&L~5MsIVTD4HirS#>_Tqnx-YPSoT%;|wK^m-PJ2{Cs31 zRViNL9NReB{L?5A(aFpc#tB;)?b4>G=I&^YwTvn-BSdrkl6R<+Sjo?5hY0h_uF)uT zu2?Q;O5CL7KwEU#21OOge0{juEB;p*eodCcaUu(6f*9wUQTey(xAmJ}gXm7`{NE`5 z@Ev<=7o1BB$8IOT6*@q>_^wX05n!4-9LZh&&2V4*t#muw^LHgzY?n}-<{O39bH*;)%vd0+ zFBbI9tp6mpudyaPvw2`{-^2;?^CxXQ&^JlwpV`uVqOV0boqv;X_T1#%AIxn1=zM~N*IVB30sm_d6S@0%+p>RgZ2&8l7s3I1p_=nGMb36q{*`oRxDBj_5ePF z3>$(PnFSRpXbwdpGzw>9N*olN`e6~lDi;w*4$g&N4fu+X5w<7@WII}f3(!vq#R?M1 zdq4zet;8{6SyV9!=7new(hLWO$r&3tHDV| zSb^z)s=`?DatQw&+9pEm!INeFWG<%%VA|`$yI4Dw3dXfv80$A=Ap#q>ea2u}*fx9alW{lq< z(JsIXPe5bnM0hUvaV99!u*@RMSjwf35W%1oGO{5TLw3OGOk!kRXfwc!ra%Gdc1h?o d2ZZF#Kd!qKeJd1zZpt8>fp5^~AUxdS_!sEZ_iq3I diff --git a/contracts/cwd_pre_propose_single.wasm b/contracts/cwd_pre_propose_single.wasm index 72f30670b99872cab861cc9fb2683f15bac709bb..f3869d36098779365f1600d7087506e07da0e83f 100644 GIT binary patch literal 419892 zcmeFad%R^;b?3Vt`+3gZr*=Vs1(dS(4)^0ZhI1_vQdJ`9u63@(<4QW14}Xv}pQcbM zfjT7?Wl8J(5GdPHNklCp5j2{VuYdxI3C2fE--^L2BDUB~6cY84gcy<#Q&HL`k;MD` zjWOrid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>o`g?FnlAMNRS=QJHXx-0Z$etp2DdoU?!=vMr%hb$;#v=S%k55GVbfdzrgSYE>W2t_?bQyl#WBvk2z-YZ}(eQZ!h8|qp z>q@D;mup=4Ken^&Vi}z$dDGdXwIYR`G)cnD0d(onz75=T+!^hQ17T-fq4eZX0++m*P6@ltM=>gZR|Eb zwwE3;iAo?vzfL!Ovjk>!eYQT$Yr4PV<7DO#t5_?->BhffY#yZZjlDiTIgj{2scm9W z-I`xF{(zMSMd(+cKbLL=>O5klJcii_ghP=6^zPXh3R=0qgARamP#e3_@hcZbo7>Gh z-BYbW;A#4au2b<`Yc%FSnZ_}T&u4fSxvn;~PFIUhpQg`t>(yv=x@gfI*Ka_bwJu=5 hJM7i^#$VHf?nm8?I-t64f*txHToGK|xMpmt`M(Niei8rx diff --git a/contracts/cwd_proposal_multiple.wasm b/contracts/cwd_proposal_multiple.wasm index 0889a6c0401fd7d733cf2e353e4f9f4c657451bd..94b0ca1c4bd21711eff14ccc030937a008c7d31d 100644 GIT binary patch literal 609224 zcmeFa3%p%beeXLT>$%rjd#^lzKtSeNpzc_92^10nf|>gm&|5qQd%5?t{q*wzG&w?| zh!MSdZVREHjn>*|u|~x`;Rf^ zoNMhzlAU;t_qKs#t~uv;{{R2+e~&SvYhL-XIEte9&g27V%KtJ9nHTmNzs z^RvcJE_GeF#(Lhc8}6F!M|gizC`Xx=f92}jWbN=iQb%0r!Ajr6AD&Vnw8c;B{wCLr zUaRw)Xo#`+iw#f1xJiT3bBe_`#W!8uREzv^!_+TzX8&5*P8b(g%1l;n-IL@d2M5=a z>L>3^rqV6fzq)?Si(bC{#;B&>&CM^mYWtRJHb+g}wYdAgwqJMSmMGF~+g`rx<*(jS z7JlW6uem--L)GiIyyiw%wRg?t&D*bf^))ZOZu2$Nx8|1FGb+6N`s-fIoBz5cidEB< zz4lcvyXN}hS^t$=UVOv3=das#&Q-78vi-XM@>&gw z?SWb=O6p0gktF(OBB`I)swWUvlqB^=ROf~t6OAO&e-U?j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